A virulence factor classification method based on contrastive learning and protein language model

By employing contrastive learning and protein language models, and utilizing self-supervised contrastive learning and multilayer perceptron classifiers, the high false negative rate and long-tailed distribution problems in virulence factor identification in traditional methods are solved, achieving accurate classification of highly homologous and rare virulence factors.

CN123182767APending Publication Date: 2026-11-27ANHUI AGRICULTURAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611570769.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-12
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional methods for identifying virulence factors rely on biological sequence alignment techniques, which suffer from high false negative rates and decreased identification accuracy in long-tailed samples, making it difficult to accurately identify highly homologous and scarce functional subtypes of virulence factors.

Method used

A method based on contrastive learning and protein language model is adopted. Features are extracted by pre-trained ESM-2 and ProtT5 models, combined with self-supervised contrastive learning and multilayer perceptron classifier, and features are enhanced by random masking and Gaussian noise transformation. A feature projection module and classifier are constructed to classify functional subtypes of virulence factors.

Benefits of technology

It improves the ability to identify easily confused virulence factor types, alleviates feature confusion between highly homologous sequences, and enhances the classification accuracy and processing efficiency of virulence factor functional subtypes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182767A_ABST
    Figure CN123182767A_ABST
Patent Text Reader

Abstract

The application discloses a virulence factor classification method based on contrast learning and a protein language model, and comprises the following steps: 1, constructing a non-redundant virulence factor sequence dataset; 2, extracting semantic features and pooling by using a pre-trained protein language model, and outputting an initial feature vector set; 3, performing double-view enhancement on the feature vectors in a batch by using a feature discarding mask and Gaussian noise disturbance, and generating a positive sample pair view; 4, constructing a feature projection network, mapping the enhanced views to output refined semantic vectors respectively, calculating cosine similarity, and constructing a self-supervised contrast loss function to update the network; 5, constructing a multilayer perceptron classifier, and optimizing by using a multi-class cross-entropy loss; and 6, performing forward calculation on a to-be-classified unknown sequence in cascade, and determining a final functional subtype classification result. The application realizes efficient and accurate multi-classification of virulence factors, and effectively overcomes the feature similarity problem caused by high homology interference of virulence factor sequences and long-tail distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of bioinformatics and pathogen virulence factor prediction technology, and involves technologies such as pre-trained protein language models, contrastive learning, multilayer perceptron classifiers, and neural networks. Specifically, it is a virulence factor classification method based on contrastive learning and protein language models. Background Technology

[0002] The interplay between bacterial pathogenicity and host immune clearance is central to microbiology research. Pathogens colonize the host environment, evade immune clearance, and mediate tissue damage by secreting or expressing a series of virulence factors (VFs). Accurate identification of virulence factors in the bacterial genome and recognition of their fine-grained functional subtypes are crucial technical supports for elucidating pathogenic mechanisms, discovering novel antimicrobial drug targets, and blocking cross-species transmission of pathogens.

[0003] Traditional methods for identifying virulence factors primarily rely on biological sequence alignment techniques, such as using algorithms like BLAST and DIAMOND to compare unknown genomic sequences with known reference databases (e.g., VFDB) and setting fixed similarity thresholds. However, these methods are overly dependent on known high sequence homology, resulting in extremely high false negative rates. Furthermore, in real biological samples, the distribution of virulence factor samples from different functional categories exhibits a severe "long-tailed distribution," leading to a significant decrease in the identification accuracy of traditional computational models for boundary samples or rare subtypes.

[0004] In recent years, self-supervised pre-trained protein language models and deep manifold optimization mechanisms have brought innovative breakthroughs to this field. By using language models pre-trained on large-scale unsupervised text to extract contextual semantics, and then combining them with a dual-view self-supervised contrastive learning manifold reshaping network, it is possible to force the manifolds of homologous variant samples to be closer together and the manifolds of heterologous confused samples to be pushed apart in the feature space. This provides a novel high-generalization solution for overcoming the pain points of feature similarity and long-tailed data distribution in virulence factor classification. Summary of the Invention

[0005] To overcome the bottlenecks of feature confusion and long-tail distribution in existing technologies for multi-classification of virulence factors, this invention provides a virulence factor classification method based on contrastive learning and protein language models, aiming to accurately identify highly homologous and sample-scarce functional subtypes of virulence factors, thereby providing a new solution for multi-classification of virulence factors.

[0006] To achieve the above-mentioned objectives, the present invention adopts the following technical solution: The virulence factor classification method based on contrastive learning and protein language models of this invention is characterized by the following steps: Step 1: Obtain the virulence factor protein sequence dataset and perform redundancy removal to obtain a set of non-redundant sequences. ;make The Middle The protein sequence of the virulence factor is denoted as ,in, , The total number of virulence factor protein sequences; The corresponding real label is denoted as ,in, The total number of functional categories; Step 2: Constructing a virulence factor protein sequence feature extraction module, which utilizes pre-trained protein language models ESM-2 and ProtT5 to extract protein language features. Feature extraction is performed, and the corresponding ESM semantic feature matrix is ​​output. and Prot semantic feature matrix After concatenation along the dimensions, a global context-aware feature matrix is ​​obtained. And then Perform average pooling to output The initial high-dimensional semantic feature set ; Step 3, from Randomly selected We have an initial high-dimensional semantic feature vector and construct a batch of training sets. , making B the first Let the initial high-dimensional semantic feature vectors be denoted as . ,in, The dimension of the initial high-dimensional semantic features. The total number of initial high-dimensional semantic feature vectors; respectively for Perform random mask transformation and Gaussian noise transformation to generate the corresponding first... First enhanced feature view With the A second enhanced feature view ,make and Any number in the middle Each enhanced feature view is denoted as ; Step 4, constructing a feature projection module for self-supervised contrastive learning, is to... Mapping to the hidden space, we get the first zero-order hidden states ,right Perform low-rank iteration to obtain the th The first First-order hidden state After undergoing nonlinear characteristic transformation, the first... The first Second-order hidden state , After passing through After normalization, we obtain the first... The first Refined semantic representation vector ; and calculate With the The first Refined semantic representation vector Cosine similarity between Thus, a self-supervised contrastive loss function is constructed. This is used to train the feature projection network, obtaining the trained feature projection model and its output. The The first Optimal Refined Representation Vector ;in, The dimension representing the hidden state; for The dimension; Step 5: Construct a multilayer perceptron classifier and perform... Process and output the first... virulence factor protein sequence The corresponding number Predicted Logical Value Vector ; and thus based on Corresponding real tags and Construct a multi-class cross-entropy loss function for the multi-class perceptron classifier, and use it to train the multi-class perceptron classifier to obtain the trained multi-class perceptron classifier. Step 6: Separate the amino acid sequences of the unknown virulence factors to be classified. The signal is processed sequentially by the virulence factor protein sequence feature extraction module, the trained feature projection model, and the trained multilayer perceptron classifier, resulting in the output. The optimal prediction logic value vector After Softmax normalization, we obtain The final functional subtype classification results.

[0007] The virulence factor classification method based on contrastive learning and protein language model described in this invention is characterized in that step 3 involves discarding features according to a preset feature discard probability. Using equation (2) Perform a random mask transformation to obtain the first... First enhanced feature view : (1) In equation (1), Let represent the j-th mask vector, and Each mask value in the array independently follows the parameter. Bernoulli distribution, It represents the Hadamardi (or Hadama) stack; Using equation (2) Perform Gaussian noise transformation to obtain the first... A second enhanced feature view : (2) In equation (2), Indicates the first There are n additive Gaussian noise vectors that follow a multivariate normal distribution and whose standard deviations satisfy the following conditions: ,in, The disturbance coefficient is... This represents the operation of calculating the standard deviation of a function.

[0008] Furthermore, step 4 includes: Step 4.1: Use equation (3) to obtain the first... The first Zero-order hidden state : (3) In equation (3), The input is the weight matrix of the linear layer. For the bias term of the input linear layer; Step 4.2, for Perform low-rank iteration to obtain the th One-order hidden state ; Step 4.3, using equation (10) to... Perform nonlinear characteristic transformation to obtain the first The first Second-order hidden state : (10) In equation (10), This represents the batch normalization operator. Represents the linear rectification activation function; Step 4.4, using equation (11) to... Process and output the first... The first Refined representation vector : (11) In equation (12), To output the weight matrix of the linear layer, express Norm operators; Step 4.5: Calculate using equation (12) and Cosine similarity : (12) In equation (12), This represents a cosine similarity metric function with a temperature coefficient. The preset temperature coefficient constant, Indicates the vector transpose sign; Step 4.6: Construct the self-supervised contrastive loss function for the feature projection module using equation (13). : (13) In equation (13), and They represent the first Initial high-dimensional semantic feature vectors First enhanced feature view and second enhanced feature view, express The Middle Initial high-dimensional semantic feature vectors The An enhanced feature view; Step 4.7, based on The feature projection network is iteratively updated using gradient backpropagation to obtain the trained feature projection model and its updated parameters. The first Optimal Refined Representation Vector Furthermore, step 4.2 includes: Step 4.2.1: Set the current iteration number to t, and initialize t=1, initializing the... Step 1 The first state variable The total number of low-rank iterations is defined as... ; Step 4.2.2, using equation (4) to... Map to a lower-rank space and obtain the first... Step 1 The first Low-rank eigenvectors : (4) In equation (4), Indicates the first The low-rank mapping matrix of the step; for The dimension; Step 4.2.3, using equation (5) to... Perform a nonlinear transformation to obtain the first... Step 1 The first Activation feature vector : (5) In equation (5), Represents the activation function of the Gaussian error linear unit; Step 4.2.4, using formula (6) to... Projection mapping back to the dimension of the hidden state , obtained the Step 1 The first State feature increment : (6) In equation (6), For the first The incremental mapping matrix of the step; Step 4.2.5: Use equation (8) to obtain the first... Step 1 The first State variables : (7) Step 4.2.6, will Assign to Then, return to step 4.2.2 and execute sequentially until... Until then, thus obtaining the first Step 1 State variables ; Step 4.2.7, using equation (8) to... Processing yields the first... The vth optimized feature vector : (8) In equation (8), For layer normalization operators, For random deactivation operators; Step 4.2.8, using equation (9) to... and Perform residual join to obtain the first The first First-order hidden state ; (9).

[0009] Furthermore, step 5 includes: Step 5.1, using equation (14) to... Perform layer normalization and linear projection sequentially to obtain the th layer. The first Preprocessing status : (14) In equation (14), This is the weight matrix of the first layer in a multilayer perceptron classifier. For the first layer of bias terms, is the channel dimension of the hidden layer in a multilayer perceptron classifier; Step 5.2, using equation (15) to... Perform processing to obtain the first classifier internally. The first Hidden state : (15) Step 5.3, using equation (16) to... Mapped to the functional category space, generating the first The first Predicted Logical Value Vector : (16) In equation (16), This is the weight matrix of the output layer in a multilayer perceptron classifier. For the bias term of the output layer; Step 5.4: Construct the multi-class cross-entropy loss of the multilayer perceptron classifier using equation (3). : (17) In equation (17), The total number of functional categories, for The real value of the c-th functional category. for Corresponding category The predicted logical value, express The prediction score for the c-th category is not normalized.

[0010] Furthermore, step 6 includes: Step 6.1: Obtain the unknown amino acid sequence The input is fed into a pre-trained protein language model, and initial feature vectors are extracted through feature concatenation and pooling. ; Step 6.2, The vector is fed into the feature projection network and outputs the corresponding refined semantic representation vector. ; Step 6.3, The input is fed into a multilayer perceptron classifier, which outputs a prediction vector. ; Step 6.4, for implement Normalization yields the predicted probability vectors for each fine-grained functional category. The maximum value retrieval operator is then used to find the category index containing the maximum probability value. : (18) The present invention provides an electronic device, including a memory and a processor, characterized in that the memory is used to store a program that supports the processor in executing the virulence factor classification method based on contrastive learning and protein language model, and the processor is configured to execute the program stored in the memory.

[0011] The present invention discloses a computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, performs the steps of the virulence factor classification method based on contrastive learning and a protein language model.

[0012] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. In the training of the contrastive representation network, this invention adopts an independent dual-view data augmentation strategy. By simulating the first-level variation and noise interference of the sequence through feature discard mask and Gaussian noise perturbation, the network is forced to ignore redundant homologous features by means of a self-supervised contrast mechanism. This enables the model to extract relatively stable features even when some features are missing or there is noise, thereby improving the ability to identify easily confused virulence factor types.

[0013] 2. This invention constructs a feature projection network containing a low-rank iterative module. By alternating iterative use of unbiased descent projection and ascending projection matrices in conjunction with residual connections, it not only significantly reduces the total number of learnable parameters and computational complexity in the mapping process, but also retains information related to the functional classification of virulence factors, which helps to improve the processing efficiency of a large number of virulence factor protein sequences.

[0014] 3. This invention uses dual-channel independent forward propagation to input two enhanced views of the same virulence factor sequence into the feature projection network to obtain the corresponding refined semantic vectors. It also enhances the stability and discriminativeness of features through self-supervised contrastive learning, thereby alleviating feature confusion between highly homologous sequences and improving the classification accuracy of virulence factor functional subtypes. Attached Figure Description

[0015] Figure 1 This is an architectural diagram of the virulence factor classification method based on contrastive learning and protein language model of the present invention.

[0016] Figure 2 This is a computational architecture diagram of the low-rank iterative module inside the feature projection network in this invention. Detailed Implementation

[0017] In this embodiment, as Figure 1 As shown, a virulence factor classification method based on contrastive learning and a protein language model proceeds as follows: Step 1: Construct and preprocess the amino acid sequence dataset of virulence factors: Step 1.1: Obtain the dataset of the original amino acid sequences of virulence factors, denoted as... And define the total number of categories as In this embodiment, the VFDB dataset and NCBI sequences were integrated to establish... Each of the following is a separate functional category (including effector delivery systems, adhesins, infiltrates, exotoxins, etc.).

[0018] Step 1.2: Use the CD-HIT sequence deredundancy tool to... After processing, with a similarity threshold of 0.7, a non-redundant dataset was obtained. In this embodiment, the final result is... sequence.

[0019] Step 1.3, Obtain The Middle bar sequence The corresponding single-tag categories are then converted into a One-Hot tag matrix, denoted as... .

[0020] Step 1.4, Randomly divided into training sets (Contains 12,037 sequences) and test set (Contains 2,125 sequences) and performs 10-fold cross-validation on the training set.

[0021] Step 2: Perform initial feature extraction using a pre-trained protein language model: Step 2.1, The inputs are fed into the ESM-2 protein language model and the ProtT5 protein language model respectively for representation extraction, and the first evolutionary semantic feature matrix is ​​output. With the second evolutionary semantic matrix .

[0022] Step 2.2: Perform horizontal feature concatenation on the feature matrix to obtain the fused feature matrix. As shown in equation (1): (1) At this point, the total hidden channel dimension of the spliced ​​features dimension.

[0023] Step 2.3, for Perform average pooling to output the corresponding initial feature vector set. The set of the first The feature vector corresponding to each sample is denoted as . .

[0024] Step 3, Enhance multiple data views: Step 3.1, from China-Israel sample batch size Randomly select to construct the current training batch set .

[0025] Step 3.2, let As a traversal set Independent sample sequence pointers (i.e. (This refers to the current pointer within a batch.) Indexed Two independent transformation strategies are enabled for data augmentation: (a) Setting the feature discard probability Generation and Vectors dimensionally consistent mask vector ,in Each element independently obeys the parameter. The Bernoulli distribution. The first enhanced feature view is output using equation (2). : (2) In equation (2), It represents the Hadamardi (or Hadama) stack.

[0026] (b) Perform Gaussian noise processing and set the perturbation coefficient. Calculate the standard deviation of each dimension of the vector. The noise standard deviation was obtained. Introducing an additive Gaussian noise vector (in (where the identity matrix is ​​used), the second enhanced feature view is generated using equation (3). : (3) This batch produced a total of A single enhanced feature view (generalized as) ,in (Then it will be moved to the next stage.)

[0027] Step 4: Feature projection network manifold optimization: Step 4.1, (in This is mapped to the hidden space via a linear layer. In this embodiment, the hidden state dimension is set. The zero-order hidden state is calculated using equation (4). : (4) Step 4.2, The input is fed into the low-rank iterative module to capture feature correlations, such as... Figure 2 As shown, the left side illustrates the overall processing flow of the low-rank iteration module, while the right side shows the internal calculation process of one iteration. The input vector in the figure corresponds to the zero-order hidden state obtained in step 4.1. The general number of iterations in the figure is denoted as t in this embodiment. The total number of iterations is set. Low-rank intermediate dimension .initialization , No. Step 1 The first State variables And save the initial input as a residual term.

[0028] For the Step-by-step iterative operation ( ): Using equation (5) Perform dimensionality reduction projection to obtain the dimensionality reduction projection. Step 1 The first Low-rank eigenvectors : (5) Using equation (6) implement Activate the transformation to obtain the first Step 1 The first Activation feature vector : (6) Using equation (7) Perform dimensional feature reconstruction to obtain the first... Step 1 The first State feature increment : (7) By using equation (8) to update the state variables, we obtain the first... Step 1 The first State variables : (8) like Figure 2 As shown on the right, equations (5) to (8) correspond to one low-rank iteration. The current state variable is first reduced from 512 dimensions to 128 dimensions through a dimension reduction mapping without bias terms, resulting in a low-rank feature vector. After a GELU nonlinear transformation, it is then restored to 512 dimensions through a dimension increase mapping without bias terms, resulting in the state feature increment. This increment is added to the input state of this iteration to obtain the state variable for use in the next iteration. Through successive updates, the module can extract the correlation between features while retaining the information obtained in the previous iteration.

[0029] After completing two rounds of low-rank iterations at t=1 and t=2, update t to 3; at this point, t> Terminate the iteration and output the state variables. .

[0030] like Figure 2 As shown on the left, after two low-rank iterations, the final state is first processed by layer normalization and random deactivation, and then added to the zero-order hidden state saved before the iteration along the outer residual branch in the figure.

[0031] For the final iteration state Layer normalization and random deactivation (dropout rate set to 0.1) are performed sequentially, and residual connections are introduced. The first layer is obtained using equation (9). The first First-order hidden state : (9) Step 4.3, for Perform batch normalization sequentially. Activation and random deactivation (dropout rate set to 0.1), using equation (10) to obtain the first... The first Second-order hidden state : (10) like Figure 2 The outer residual connection shown allows the zero-order hidden state to directly participate in the output, which helps to preserve the original feature information and reduce the information loss that may be caused by multiple iterations.

[0032] By outputting linear layer mapping and executing Normalization, the final representation dimension of this implementation Dimension, using equation (11) to output the corresponding dimension The first Refined semantic representation vector : (11) Step 4.4: For the current training batch with two independent pointers and For each indexed sample, set the hyperparameter temperature coefficient. Calculate using equation (12) and cosine similarity : (12) Step 4.5, j is the sequence index within the current training batch. and They represent the first Initial high-dimensional semantic feature vectors First enhanced feature view and second enhanced feature view, express The Middle Initial high-dimensional semantic feature vectors The An enhanced feature view.

[0033] Construct the overall self-supervised contrastive loss function using equation (13). The feature projection network is then iteratively updated with new parameters. (13) Step 4.6: Perform backpropagation gradient descent using the AdamW optimizer to synchronously iteratively update the learnable parameters of the entire network. Repeat this process on the training set until the loss function converges, completing the first stage of self-supervised training, thus obtaining the trained feature projection model and its updated parameters. The first Optimal Refined Representation Vector .

[0034] Step 5: Classifier head network training: Step 5.1: Obtain the v-th enhanced feature view of the j-th virulence factor protein sequence generated in Step 3. Input the feature projection network to obtain the first... The first Optimal refined semantic representation vector Using equation (14) Layer normalization and linear layer projection are performed sequentially. In this embodiment, the hidden layer dimension of the first layer output is set to... Dimension, obtained the first The first Preprocessing status : (14) Step 5.2, execute sequentially Activation and random deactivation mechanism (dropout rate set to 0.2), using equation (15) to obtain the first classifier internal value. The first Hidden state : (15) Step 5.3: Map the output classification layer to the established... In the functional category space, the first function is generated using equation (16). The first Predicted Logical Value Vector : (16) Step 5.4: Import the real One-Hot labels of the current batch of samples. The multi-class cross-entropy loss function established using equation (17) Calculate real values ​​and iteratively update the parameters of the multilayer perceptron classifier: (17) After the parameters are iteratively optimized to convergence, the entire two-stage cascaded network model is fully trained.

[0035] Step 6: Full-process model inference and classification: In rapid, high-throughput functional screening and prediction of actual unknown sequences, an amino acid sequence of an unknown functional protein is input. The trained network is used to perform real-time forward inference classification. Step 6.1, The inputs are fed into ESM-2 and ProtT5, where they are concatenated and subjected to global average pooling forward processing. The output is a unique initial high-dimensional semantic feature vector for the sequence. .

[0036] Step 6.2, The input is directly fed into the feature projection network, and the forward manifold mapping calculations of equations (4) to (11) are performed to output the refined semantic representation vector that uniquely corresponds to the sequence. .

[0037] Step 6.3 transform the representation vector The input is fed into a multilayer perceptron classifier, and forward inference calculations are performed using equations (15) to (17), directly outputting a 12-dimensional predicted logistic value vector. .

[0038] Step 6.4 For the predicted logic value vector implement Normalized activation, using the maximum value retrieval operator corresponding to equation (18) to find the category index where the corresponding probability maximum value is located. : (18) Based on category index By searching the subtype dictionary, the final mapping determined the sequence of the unknown bacteria. The fine-grained functional subtype prediction classification results are obtained. The entire forward computation model inference process is complete.

[0039] In this embodiment, an electronic device includes a memory and a processor. The memory is used to store a computer program that supports the processor in performing the above-described methods, and the processor is configured to execute the computer program stored in the memory.

[0040] In this embodiment, a computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the virulence factor classification method based on contrastive learning and a protein language model.

Claims

1. A virulence factor classification method based on contrastive learning and protein language models, characterized in that, The procedure is as follows: Step 1: Obtain the virulence factor protein sequence dataset and perform redundancy removal to obtain a set of non-redundant sequences. ;make The Middle The protein sequence of the virulence factor is denoted as ,in, , The total number of virulence factor protein sequences; The corresponding real label is denoted as ,in, The total number of functional categories; Step 2: Constructing a virulence factor protein sequence feature extraction module, which utilizes pre-trained protein language models ESM-2 and ProtT5 to extract protein language features. Feature extraction is performed, and the corresponding ESM semantic feature matrix is ​​output. and Prot semantic feature matrix After concatenation along the dimensions, a global context-aware feature matrix is ​​obtained. And then Perform average pooling to output The initial high-dimensional semantic feature set ; Step 3, from Randomly selected from We have an initial high-dimensional semantic feature vector and construct a batch of training sets. , making B the first Let the initial high-dimensional semantic feature vectors be denoted as . ,in, The dimension of the initial high-dimensional semantic features. The total number of initial high-dimensional semantic feature vectors; respectively for Perform random mask transformation and Gaussian noise transformation to generate the corresponding first... First enhanced feature view With the A second enhanced feature view ,make and Any number in the middle Each enhanced feature view is denoted as ; Step 4, constructing a feature projection module for self-supervised contrastive learning, is to... Mapping to the hidden space, we get the first zero-order hidden state ,right Perform low-rank iteration to obtain the th The first First-order hidden state After undergoing nonlinear characteristic transformation, the first... The first Second-order hidden state , After passing through After normalization, we obtain the first... The first Refined semantic representation vector ; and calculate With the The first Refined semantic representation vector Cosine similarity between Thus, a self-supervised contrastive loss function is constructed. This is used to train the feature projection network, obtaining the trained feature projection model and its output. The The first Optimal Refined Representation Vector ;in, The dimension representing the hidden state; for The dimension; Step 5: Construct a multilayer perceptron classifier and perform... Process and output the first... virulence factor protein sequence The corresponding number Predicted Logical Value Vector ; and thus based on Corresponding real tags and Construct a multi-class cross-entropy loss function for the multi-layer perceptron classifier, and use it to train the multi-layer perceptron classifier to obtain the trained multi-layer perceptron classifier. Step 6: Separate the amino acid sequences of the unknown virulence factors to be classified. The signal is processed sequentially by the virulence factor protein sequence feature extraction module, the trained feature projection model, and the trained multilayer perceptron classifier, resulting in the output. The optimal prediction logic value vector After Softmax normalization, we obtain The final functional subtype classification results.

2. The virulence factor classification method based on contrastive learning and protein language model according to claim 1, characterized in that, Step 3 involves discarding features according to a preset probability. Using equation (2) Perform a random mask transformation to obtain the first... First enhanced feature view : (1) In equation (1), Let represent the j-th mask vector, and Each mask value in the array independently follows the parameter. Bernoulli distribution, It represents the Hadamardi (or Hadama) stack; Using equation (2) Perform Gaussian noise transformation to obtain the first... A second enhanced feature view : (2) In equation (2), Indicates the first There are n additive Gaussian noise vectors that follow a multivariate normal distribution and whose standard deviations satisfy the following conditions: ,in, The disturbance coefficient is... This represents the operation of calculating the standard deviation of a function.

3. The virulence factor classification method based on contrastive learning and protein language model according to claim 1, characterized in that, Step 4 includes: Step 4.1: Use equation (3) to obtain the first... The first Zero-order hidden state : (3) In equation (3), The input is the weight matrix of the linear layer. For the bias term of the input linear layer; Step 4.2, for Perform low-rank iteration to obtain the th One first-order hidden state ; Step 4.3, using equation (10) to... Perform nonlinear characteristic transformation to obtain the first The first Second-order hidden state : (10) In equation (10), This represents the batch normalization operator. Represents the linear rectification activation function; Step 4.4, using equation (11) to... Process and output the first... The first Refined representation vector : (11) In equation (12), To output the weight matrix of the linear layer, express Norm operators; Step 4.5: Calculate using equation (12) and Cosine similarity : (12) In equation (12), This represents a cosine similarity metric function with a temperature coefficient. The preset temperature coefficient constant, Indicates the vector transpose symbol; Step 4.6: Construct the self-supervised contrastive loss function for the feature projection module using equation (13). : (13) In equation (13), and They represent the first Initial high-dimensional semantic feature vectors First enhanced feature view and second enhanced feature view, express The Middle Initial high-dimensional semantic feature vectors The An enhanced feature view; Step 4.7, based on The feature projection network is iteratively updated using gradient backpropagation to obtain the trained feature projection model and its updated parameters. The first Optimal Refined Representation Vector .

4. The virulence factor classification method based on contrastive learning and protein language model according to claim 3, characterized in that, Step 4.2 includes: Step 4.2.1: Set the current iteration step number to t, and initialize t=1, initializing the first iteration step... Step 1 The first state variable The total number of low-rank iterations is defined as... ; Step 4.2.2, using equation (4) to... Map to a lower-rank space and obtain the first... Step 1 The first Low-rank eigenvectors : (4) In equation (4), Indicates the first The low-rank mapping matrix of the step; for The dimension; Step 4.2.3, using equation (5) to... Perform a nonlinear transformation to obtain the first... Step 1 The first Activation feature vector : (5) In equation (5), Represents the activation function of the Gaussian error linear unit; Step 4.2.4, using formula (6) to... Projection mapping back to the dimension of the hidden state , obtained the Step 1 The first State feature increment : (6) In equation (6), For the first The incremental mapping matrix of the step; Step 4.2.5: Use equation (8) to obtain the first... Step 1 The first State variables : (7) Step 4.2.6, will Assign to Then, return to step 4.2.2 and execute sequentially until... Until then, thus obtaining the first Step 1 State variables ; Step 4.2.7, using equation (8) to... Processing yields the first... The vth optimized feature vector : (8) In equation (8), For layer normalization operators, For random deactivation operators; Step 4.2.8, using equation (9) to... and Perform residual join to obtain the first The first First-order hidden state ; (9)。 5. The virulence factor classification method based on contrastive learning and protein language model according to claim 4, characterized in that, Step 5 includes: Step 5.1, using equation (14) to... Perform layer normalization and linear projection sequentially to obtain the th layer. The first Preprocessing status : (14) In equation (14), This is the weight matrix of the first layer in a multilayer perceptron classifier. For the first layer of bias terms, represents the channel dimension of the hidden layer in a multilayer perceptron classifier; Step 5.2, using equation (15) to... Perform processing to obtain the first classifier internally. The first Hidden state : (15) Step 5.3, using equation (16) to... Mapped to the functional category space, generating the first The first Predicted Logical Value Vector : (16) In equation (16), This is the weight matrix of the output layer in a multilayer perceptron classifier. For the bias term of the output layer; Step 5.4: Construct the multi-class cross-entropy loss of the multilayer perceptron classifier using equation (3). : (17) In equation (17), The total number of functional categories, for The real value of the c-th functional category. for Corresponding category The predicted logical value, express The prediction score for the c-th category is not normalized.

6. The virulence factor classification method based on contrastive learning and protein language model according to claim 5, characterized in that, Step 6 includes: Step 6.1: Obtain the unknown amino acid sequence The input is fed into a pre-trained protein language model, and initial feature vectors are extracted through feature concatenation and pooling. ; Step 6.2, The vector is fed into the feature projection network and outputs the corresponding refined semantic representation vector. ; Step 6.3, The input is fed into a multilayer perceptron classifier, which outputs a prediction vector. ; Step 6.4, for implement Normalization yields the predicted probability vectors for each fine-grained functional category. The maximum value retrieval operator is then used to find the category index containing the maximum probability value. : (18)。 7. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store a program that supports the processor in executing the virulence factor classification method based on contrastive learning and protein language model as described in any one of claims 1-6, and the processor is configured to execute the program stored in the memory.

8. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is run by the processor, it performs the steps of the virulence factor classification method based on contrastive learning and protein language model as described in any one of claims 1-8.