A method for analyzing coronavirus antigen variation and evolution based on self-game sequence optimization and RetNet
By combining self-game sequence optimization and RetNet, the problems of low search efficiency and high computational resource consumption in the prediction of the evolution of the novel coronavirus were solved. This approach enables in-depth analysis of the virus's evolutionary patterns and accurate prediction of key mutation sites, supporting the updating of vaccines and drugs.
Patent Information
- Application Number
- CN202410218562.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-02-28
AI Technical Summary
Existing technologies for predicting the evolution of the novel coronavirus suffer from problems such as low efficiency in searching the viral mutation space, high computational resource consumption and low prediction accuracy of deep learning models when processing long sequences, making it difficult to accurately capture long-term dependent and complex sequence structures.
A method combining self-game sequence optimization and RetNet was adopted. The optimization direction of viral proteins was searched through self-game learning. The model was built using ESM2 and RetNet network architectures. Fitness was calculated by combining protein stability, ACE2 binding ability and antibody binding ability to optimize amino acid sequence.
It has enabled in-depth analysis of the evolutionary patterns of the novel coronavirus, accurately predicted the direction of viral evolution and key mutation sites, provided early warning of future mutation trends, and supported vaccine updates and antiviral drug development.
Smart Images

Figure CN118506861B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of COVID-19 evolution prediction and analysis technology, and in particular to a method for analyzing COVID-19 antigenic variation and evolution based on self-game sequence optimization and RetNet. Background Technology
[0002] Evolutionary research on SARS-CoV-2 can be broadly divided into two categories: research based on biological experimental data and research based on computational biology methods. The former primarily focuses on studying biological experimental data to explore the virus's biological characteristics, diffusion mechanisms, and effects on host cells. The latter, however, utilizes modern technologies such as neural networks and machine learning to predict viral mutation trends, diffusion pathways, drug resistance, and rapidly identify new viral subtypes. This approach provides a basis for predicting viral transmission patterns in diverse populations and reveals how the virus avoids immune responses and drug treatments.
[0003] Research based on biological experimental data helps scientists gain a deeper understanding of biological processes, such as the evolutionary mechanisms and future mutation trends of the novel coronavirus. However, these experiments are resource-intensive and time-consuming, and cannot be extended to the large viral antigen protein sequence space. Therefore, machine learning-based methods are widely used to predict and analyze the evolution and mutation trends of SARS-CoV-2. These methods can simulate the interaction between the virus and the host, predict the impact of key mutation sites on transmissibility, assess the impact of different mutations on affinity and immune escape, capture the evolutionary dynamics of viruses in different regions, and predict high-risk variants. Some new methods can also simulate the viral assembly process and possible mutation combinations, and are expected to become important tools for predicting future variants.
[0004] However, current machine learning-based methods for predicting the evolution of the novel coronavirus have some shortcomings. One significant problem is that the screening of the novel coronavirus evolutionary sequences primarily relies on traditional genetic algorithms. This can limit the search of the viral mutation space, as traditional genetic algorithms may not be able to efficiently find optimal solutions in complex high-dimensional spaces. This limitation may hinder the accurate detection of broader and more complex viral mutation patterns. Existing deep learning models also face challenges when dealing with long viral sequences, affecting their sequence modeling capabilities. For example, processing long sequences requires more computational resources, including larger models and more training time, and prediction accuracy cannot be guaranteed. This may limit the feasibility of training deep learning models on large-scale data. Furthermore, sequences contain rich information involving long-term memory and complex sequence structures, which some traditional deep learning models may struggle to effectively capture. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a method for analyzing the antigenic variation and evolution of SARS-CoV-2 based on self-game sequence optimization and RetNet, which can accurately depict the evolutionary map of SARS-CoV-2 and enhance the understanding of the evolutionary dynamics of SARS-CoV-2.
[0006] The above-mentioned technical objective of the present invention is achieved through the following technical solution:
[0007] A method for analyzing the antigenic variation and evolution of the novel coronavirus based on self-game sequence optimization and RetNet includes the following steps:
[0008] S1, Data Collection and Processing: Classify and organize the obtained spike protein information into sequence parts and non-sequence parts;
[0009] S2, fitness calculation of the sequence;
[0010] S3 uses sequence and fitness to train a self-game sequence optimization model, while using the same sequence to train a spike protein sequence modeling model.
[0011] S4. The optimized sequence is analyzed and visualized using the trained spike protein sequence model.
[0012] S5. Analyze the non-sequence information collected in step S1 and visualize and verify it.
[0013] Furthermore, in step S2, protein fitness consists of three attributes: protein stability, binding ability to ACE2, and binding ability to antibodies.
[0014] Furthermore, the fold free energy ΔG is used to measure protein stability. In a protein sequence, each site mutation results in a change in the fold free energy ΔG. Assuming the fold free energy at each site in the wild-type sequence is 0, then the fold free energy of the wild-type sequence is 0. The change in fold free energy after a mutation at the i-th position in an amino acid sequence of length L is ΔG. i The change in folding free energy of the entire amino acid sequence for:
[0015]
[0016] when At that time, the protein sequence develops towards stability, when At that time, the protein sequence tends towards instability.
[0017] Furthermore, assuming the wild-type sequence has a binding affinity of 0 to ACE2, the change in binding affinity resulting from a mutation at the i-th position in an amino acid sequence of length L is: The binding affinity of the entire amino acid sequence to ACE2 for:
[0018]
[0019] when At this time, the protein sequence's ability to bind to ACE2 is enhanced. At this time, the protein sequence's ability to bind to ACE2 weakens.
[0020] Furthermore, assuming the wild-type sequence's binding affinity to all antibodies is 0, the binding affinity of a sequence of length L with the j-th antibody after a mutation at the i-th position is... The average value of antibody changes at each site As the change in antibody binding ability at each site, where:
[0021]
[0022] This represents the change in the binding ability of the entire sequence to the antibody. When... At that time, the binding ability of the protein sequence to the antibody becomes stronger. At that time, the binding ability of the protein sequence to the antibody weakens.
[0023] In conclusion, It is positively correlated with the fitness of the protein sequence. Fitness is negatively correlated with protein sequence fitness, therefore the fitness of the spike protein amino acid sequence is calculated. The method is sum and The difference is that, in the subsequent sequence optimization process, the fitness value is only used as a relative reference for ranking, and in this application, the three attributes are regarded as equally important, that is, the weight of the three attributes is 1.
[0024] Fitness of spike protein amino acid sequence
[0025] Furthermore, in step S3, sequence optimization includes a self-game learning phase, a neural network training phase, and a network evaluation phase.
[0026] Furthermore, in step S3, the spike protein sequence modeling model includes a pre-trained ESM2 protein language model and a RetNet network architecture based on the Retention mechanism.
[0027] The beneficial effects of this invention are as follows:
[0028] 1. This application proposes a method for predicting the evolution of SARS-CoV-2 by combining model analysis and data analysis. In the model analysis, a reinforcement learning self-game approach is used to search for possible optimization directions for viral proteins, solving the problem of finding effective evolutionary pathways for proteins in a huge mutation space.
[0029] 2. An advanced protein language model based on ESM2 and RetNet is trained, which outperforms existing models. The optimized sequences are analyzed using this model to achieve in-depth analysis of viral evolution patterns.
[0030] 3. Through a series of downstream analytical experiments, the method in this application accurately predicted the evolutionary direction of the virus and successfully identified key mutation sites that may enhance viral adaptability and immune evasion capabilities. In addition to validating known mutations, the method can also predict potential mutations that have not yet appeared, which is crucial for early warning and the development of public health strategies. By monitoring and analyzing currently prevalent viral lineages, future mutation trends can be predicted, providing a valuable time window for vaccine updates and antiviral drug development. Furthermore, data analysis explored multidimensional information influencing viral evolution, including viral transmission volume, geographical distribution, and the evolutionary trajectories of different lineages, providing a panoramic view of viral evolutionary patterns from a macroscopic perspective. Attached Figure Description
[0031] Figure 1 This is an overall flowchart of an embodiment of the present invention;
[0032] Figure 2 This is a network architecture diagram of the RetNet network according to an embodiment of the present invention;
[0033] Figure 3 This is a schematic diagram of the mutation site fitness calculation in an embodiment of the present invention; where a is the three-dimensional open structure of the spike protein trimer; b is the three-dimensional structure of the RBD / ACE2 conjugate; and c is a heatmap of fitness changes resulting from mutations of some RBD region sites into different amino acids.
[0034] Figure 4 This is a schematic diagram of the optimization of RBD sequences according to an embodiment of the present invention; wherein, a is a three-dimensional structure diagram of a sequence in the RBD optimized sequence set; b is a three-dimensional structure diagram of a wild-type sequence; c is a three-dimensional structure diagram of the most similar sequence in multiple sequence alignment; d is a schematic diagram of the predicted regression correlation between the fitness predicted by the model during optimization and the fitness calculated after the generated sequence for the generated optimized sequence.
[0035] Figure 5This is a schematic diagram illustrating the performance of the DARSEP model in an embodiment of the present invention; it includes a comparison of the performance of different models in amino acid sequence mask training, including DARSEP, Sars-escape network, Flowformer, AminoBert, gMLP, CSCS, and GTP2;
[0036] Figure 6 The diagram shows the ablation experiment results of this invention, including the model performance of different combinations within DARSEP, as well as the performance of ESM2 and RetNet trained individually.
[0037] Figure 7 The following are the clustering analysis results of the protein language model in this embodiment of the application; where a is the semantic embedding clustering diagram of the training sequence dataset; b is the semantic embedding clustering diagram of the training sequence dataset, colored by year; c is the semantic embedding clustering diagram of the training and optimized datasets; d is the semantic embedding clustering diagram of the training and optimized datasets, with purple representing training data and yellow representing optimized data; e is the semantic embedding clustering diagram of the training and optimized datasets, colored by year; and f is the semantic embedding clustering diagram of the optimized sequence set.
[0038] Figure 8 This is a schematic diagram of the construction of the evolutionary vector field in the embodiments of this application; where a is the evolutionary streamline diagram of the RBD sequence from 2019 to 2023; b is the prediction diagram of the pseudo-time of the starting point sampling; c is the prediction diagram of the pseudo-time of the ending point sampling; d is the evolutionary streamline diagram of the RBD sequence of the total sequence set (2019-2023 and after optimization); e is the prediction diagram of the pseudo-time of the starting point sampling of the total sequence set (2019-2023 and after optimization); and f is the prediction diagram of the pseudo-time of the ending point sampling of the total sequence set (2019-2023 and after optimization).
[0039] Figure 9 A heatmap of missense mutation fractions for a portion of the RBD sequences in an embodiment of the present invention;
[0040] Figure 10 This is a schematic diagram of semantic analysis of the Omicron mutant strain according to an embodiment of the present invention; wherein, a is a schematic diagram of the mutation sites in the RBD region of the Omicron mutant strain BA.1; b is a schematic diagram of the semantic changes and percentile ranking of the mutation sites in the RBD region of the Omicron mutant strain BA.1; c is a schematic diagram of the mutation sites in the RBD region of the Omicron mutant strain EG.5; d is a schematic diagram of the semantic changes and percentile ranking of the mutation sites in the RBD region of the Omicron mutant strain EG.5; e is a violin diagram of the semantic changes of the Omicron mutant strain BA.1; and f is a violin diagram of the semantic changes of the Omicron mutant strain EG.5.
[0041] Figure 11 This is a statistical chart showing the changes in the number of viral mutations by continent. Figure a shows the percentage of mutations by continent; besides the continents shown, Oceania accounts for 1.62% and Africa for 0.98%. Figure b is a word cloud of viral mutation lineages. Figures c and d show the changes in the number of viral sequence mutations by continent over time.
[0042] Figure 12 A heatmap showing the variation frequency of important mutation sites in the SARS-CoV-2 spike protein in major strains;
[0043] Figure 13 This is a statistical chart of SARS-CoV-2 lineage data. a) is a scatter plot showing the number of RBD sequence mutation sites in the major SARS-CoV-2 lineages over time, with the horizontal axis representing the number of days since the start date of December 1, 2019; b) is the phylogenetic tree of SARS-CoV-2; and c) is a statistical chart showing the monthly percentage change in the number of variants from each lineage. Detailed Implementation
[0044] The technical solutions of the present invention will be further described below with reference to the accompanying drawings and embodiments.
[0045] A method for analyzing the antigenic variation and evolution of the novel coronavirus based on self-game sequence optimization and RetNet, such as Figure 1 As shown, the overall process includes obtaining the sequence information of the novel coronavirus and performing data processing. Figure 1 Step a); where sequence data is used to train the DARSEP model, while other information, including sampling time, geographic information, and lineage, is used for statistical analysis. Figure 1 Step d) and visualization. After obtaining the sequence, calculate the fitness of the sequence ( Figure 1 In step b), the DARSEP-SPRLM self-game sequence optimization model is then trained using the sequence and fitness. Figure 1 (Step c) Simultaneously, the same sequence was used to train the spike protein sequence modeling model DARSEP-PMLM ( Figure 1 (Step c) Finally, the original amino acid sequence and the optimized amino acid sequence are input into DARSEP-PMLM for downstream task analysis. Figure 1 Step e) is used to obtain the analysis and prediction results. This research framework combines sequence information, fitness calculation, and training of self-game and modeling models to provide a comprehensive and in-depth analysis for COVID-19 research.
[0046] Specific methods:
[0047] 1. Dataset:
[0048] The data studied in this application primarily came from GISAID (https: / / gisaid.org / ) and NCBI Virus (https: / / www.ncbi.nlm.nih.gov / labs / virus / vssi / ). Specifically, the amino acid sequences of the SARS-CoV-2 spike protein (from December 2019 to October 2023), along with sampling time and geographic information, were collected mainly from GISAID. Viral lineage information was primarily collected from the NCBI Virus database.
[0049] After collecting the amino acid sequences, they were processed to select sequences with a length range of 1265-1273, with no more than 10 instances of the unknown character 'X' in each amino acid sequence, and duplicate sequences were removed. Then, the selected sequences underwent multiple sequence alignment, and the RBD region was extracted. Repeated duplicate sequences were removed again. Finally, sequences from 2019-2021 were used as the training set, and sequences from 2022-2023 were used as the test set.
[0050] 2. Fitness Calculation
[0051] Infection, vaccination, or passive immunization (through neutralizing antibodies) all increase population immunity to the SARS-CoV-2 virus, significantly increasing the selective pressure on the virus. This leads to viral mutations that create new variants to adapt to the selective pressure and thus evade the immune response and survive. To measure the virus's ability to evade the immune response, this method defines the concept of "fitness" for viral survival in the host environment, which consists of three attributes: protein stability, ACE2 binding ability, and antibody binding ability.
[0052] Protein stability: In this application, fold free energy is used to measure protein stability. Fold free energy is an important concept in thermodynamics, describing the stability and phase transition behavior of a system under different external conditions. Free energy is a characteristic of a system, containing information such as the system's energy, entropy, and volume. Studying fold free energy can help understand the phase transition laws of matter and the energy and entropy changes during phase transitions. In a protein sequence, each site mutation results in a change in fold free energy ΔΔG. Assuming that the fold free energy at each site in the wild-type sequence is 0, then the fold free energy of the wild-type sequence is 0. The change in fold free energy after a mutation at the i-th position in an amino acid sequence of length L is ΔΔG. i The change in folding free energy of the entire amino acid sequence for:
[0053]
[0054] when At that time, the protein sequence develops towards stability, when At that time, the protein sequence tends towards instability.
[0055] To calculate the changes in folding free energy when point mutations occur in the spike protein, this application uses the PoPMuSiC algorithm, which is based on a combination of the target protein's 3D structure and statistically averaged potential. PoPMuSiC was applied to the complete 3D structure of the spike protein, and the complete spike protein template structure 6VYB was downloaded from the database to obtain the changes in folding free energy for each amino acid mutated at all sites.
[0056] Binding affinity with ACE2: For changes in ACE2 binding affinity resulting from single-point mutations, this application employs the BeAtMuSiC algorithm, using the 6M0J RBD / ACE2 complex structural template as input, to predict the effect of all possible single-point mutations on its binding affinity to the host ACE2 receptor. Similar to calculating changes in folding free energy, assuming the wild-type sequence's binding affinity to ACE2 is 0, the change in binding affinity resulting from a mutation at the i-th position in an amino acid sequence of length L is... The binding affinity of the entire amino acid sequence to ACE2 for:
[0057]
[0058] when At this time, the protein sequence's ability to bind to ACE2 is enhanced. At this time, the protein sequence's ability to bind to ACE2 weakens.
[0059] Antibody binding ability: Similar to the method used to calculate ACE2 binding ability, this application used the BeAtMuSiC algorithm to calculate the changes in binding ability of all possible single point mutations in the spike protein with 73 antibodies. It was assumed that the wild-type sequence had zero binding ability with all antibodies, and that for an amino acid sequence of length L, the binding ability with the j-th antibody after a mutation at the i-th position was... This application uses the average value of 73 antibody changes at each site. As the change in antibody binding ability at each site, where:
[0060]
[0061] This represents the change in the binding ability of the entire sequence to the antibody. When... At that time, the binding ability of the protein sequence to the antibody becomes stronger. At that time, the binding ability of the protein sequence to the antibody weakens.
[0062] In conclusion, It is positively correlated with the fitness of the protein sequence. Fitness is negatively correlated with protein sequence fitness, therefore the fitness of the spike protein amino acid sequence is calculated. The method is sum and The difference is significant because, in the subsequent sequence optimization process, the fitness value is only used as a relative reference for ranking, and this application treats all three attributes as equally important, meaning each attribute has a weight of 1. That is: the fitness of the spike protein amino acid sequence...
[0063] 3. Sequence optimization
[0064] This application employs an AlphaZero-based Go self-play reinforcement learning framework, treating amino acids as game pieces and mutations as actions. Designing a sequence is viewed as a game of Go, and Monte Carlo tree search and a policy-value neural network model are used to guide the model's "backward optimization," thereby selecting spike protein sequences with stronger adaptability and greater potential for immune escape. Based on the fundamental elements of reinforcement learning, the environment state S is composed of a 20×L binary matrix, where 20 represents the types of amino acids and L is the sequence length. The matrix resembles a chessboard, where 1 represents "playing a move," meaning the i-th position contains the j-th amino acid, and 0 indicates that there is no mutation at that position. Action A represents a single-point mutation at a position in the sequence, resulting in a change in the environment state S. This causes the state of the mutated amino acid at the mutated position to become 1, while other positions in the same column become 0. The state for each move is represented by s. t With r t express.
[0065] The input of this application is a training set consisting of amino acid sequences of length L and the fitness corresponding to each sequence. The training set is then converted into a one-hot encoded expression and input into the model along with the fitness.
[0066] The optimization process is divided into a self-game learning stage, a neural network training stage, and a network evaluation stage.
[0067] In the self-game phase, each move is made using a Monte Carlo tree search. Each node in the tree has three attributes: N(s,a), P(s,a), and Q(s,a), where N represents the number of times the node has been visited, P represents the strategy (the probability of choosing the next move), and Q represents the value of the current node. First, the UCB (Upper Confidence Bound) method is used to select the most valuable node, and the UCB value U(s,a) of the node is calculated:
[0068]
[0069] Where c is a constant, N(s,b) is the number of times the parent node is visited, and the action with the highest score is obtained by calculating the maximum value of the sum of U(s,a) and Q(s,a).
[0070] a = argmax(Q(s,a) + U(s,a))
[0071] Continue searching in the above manner until you encounter a leaf node s. L Add it to the search tree and initialize its parameters:
[0072] N(s L ,a)=0,Q(s L ,a)=0,p(s L ,a)=0
[0073] Through the strategy-value neural network model f θ Predict leaf nodes s L The probability distribution and state value p of the corresponding set of optional actions L ,v L Thus, P(s,a) is obtained. Then, the process is repeated backtracking until the root node is reached, while updating the value and visit count of each node on the backtracking path:
[0074] (p L ,v L )=f θ (s L )
[0075] N(s,a)=N(s,a)+1
[0076]
[0077] The model's loss function consists of three parts. The first part is the mean squared error loss function, used to evaluate the difference between the win / loss result predicted by the neural network and the actual result. The second part is the cross-entropy loss function, used to evaluate the difference between the output policy of the neural network and the policy output by our MCTS. The third part is the L2 regularization term.
[0078]
[0079] Where r is the reward value for each move, π is the strategy obtained from the Monte Carlo tree search, τ is the adjustable temperature parameter, and α is the regularization parameter for θ. In this application, the amino acid sequence set and its corresponding fitness are input into the model, and after training, the optimized sequence set and the sequence fitness obtained through prediction are obtained.
[0080] 4. DARSEP Model
[0081] The DARSEP model proposed in this application mainly consists of a pre-trained ESM2 protein language model and a RetNet network architecture based on a retention mechanism. ESM2 trains an autoregressive neural network on a large-scale protein sequence database to learn the evolutionary patterns of proteins and the sequence-structure-function relationship. ESM2 can generate hidden vectors representing the structural and functional features of a given protein sequence. RetNet, building upon the Transformer, uses a multi-scale retention mechanism instead of the standard self-attention mechanism, breaking the "impossible triangle" (parallel training, low-cost inference, and good scalability) that many neural network architectures, including the Transformer, cannot overcome. Its performance in language modeling tasks is comparable to the Transformer, and even surpasses it and its variants in terms of speed and throughput. This application combines the advantages of both models to model and analyze viral sequences.
[0082] In this application, the input is an amino acid sequence of length L, x = (x1, x2, ..., x...). L ), where x i Belonging to AA = {all amino acids}, the masked sequence x is obtained by randomly masking a portion of the amino acids. mask =(x1,x2,[mask],...,[mask],x L Then, the encoder of ESM2 will convert x... mask Encoded into a digital sequence x encode =(x1,x2,...,x L ), where 0≤x i ≤33, where 33 is the length of the sequence alphabet AA. All sequences in the training set are uniformly encoded into a two-dimensional matrix dataset X represented by numbers, while the masked amino acids are the tag set Y.
[0083] First, embedding computation is performed on the dataset, mapping discrete data to a continuous vector space. A learnable parameter matrix is used to map each discrete data point to a fixed-length vector representation. This mapping process is learned through training, ensuring that similar discrete data have similar vector representations in the embedding space, which is beneficial for subsequent model learning.
[0084] X embedding =Emebdding(X)
[0085] Based on the obtained computed embedding dataset X embedding The sequence is then input into the pre-trained protein language model ESM2 to obtain its structural, functional, and other related features, which are defined as follows:
[0086] X feat_1 =ESM2(X embedding )
[0087] Second, this application uses the RetNet network architecture to model amino acid sequences, which has a similar structure to the Transformer (see...). Figure 2 In step f), after calculating the embedding, it passes through a LayerNorm layer and a Multi-Scale Retention (MSR) layer:
[0088] X step_1 =X embedding +MSR(LayerNorm(X embedding ))
[0089] Among them, MSR is a multi-scale preservation mechanism similar to the multi-head self-attention mechanism. First, the number of multi-heads h = d is calculated. model / d, d model 'd' is the feature dimension, and 'd' is the head dimension. Then, calculate using the following formula:
[0090] h i =Retention(X) embedding ,1-2 -5-arrange(0,h) )
[0091] H = GN(Conact(h1,h2,...,h) i ))
[0092]
[0093] The Retention mechanism employs both recurrent and parallel methods. It introduces a position-dependent exponential decay term to replace Softmax, simplifying computation while preserving information from previous steps in a decaying form. It uses complex space to represent positional information, replacing absolute or relative position encoding, making it easily convertible to a recursive form. Furthermore, the retention mechanism uses multi-scale decay rates, increasing the model's expressive power, and leverages the scaling invariance of GroupNorm to improve the numerical accuracy of the Retention layer. Based on this mechanism, the trained model can be trained in parallel while repeatedly performing inference, balancing computational speed and modeling capability. Finally, the result is obtained after passing through LayerNorm and FeedForward layers.
[0094] X step_2 =X step_1 +Gelu(FeedFroward(LayerNorm(X step_1 )))
[0095] X feat_2=X step_2
[0096] Third, X feat_1 With X feat_2 The final output is obtained through fusion calculation:
[0097] outputs=Linear(Relu(Linear(Concat(X feat_1 ,X feat_2 ))))
[0098] Finally, calculate the loss of the model:
[0099]
[0100] Where N is the total number of sequences in the batch, L i y is the length of the i-th sequence in the batch. ij is the log probability of the true class at position j in the i-th sequence, and num_classes is the total number of classes in the classification task.
[0101] 5. Evaluation Indicators
[0102] The evaluation metrics in this application are calculated by assessing whether the mutation sites in the optimized sequences obtained after training the model on the training set (2019-2021) can be found in the test set (2022-2023), and by evaluating the correlation coefficient (Pearson) and canonical correlation analysis coefficient (CCA) between the fitness of the sequence prediction obtained during the optimization process and the fitness of the sequence obtained through calculation.
[0103]
[0104] The evaluation metrics for the protein sequence modeling model DARSEP-PMLM are calculated by training with a mask on the training set (2019-2021) and then calculating accuracy, precision, recall, and F1 score on the test set (2022-2023). Here, TP represents true positives, TN represents true negatives, FP represents false positives, and FN represents false negatives.
[0105]
[0106] Experimental Results and Analysis
[0107] The research objective of this experiment was to study the RBD region of the SARS-CoV-2 spike protein. The data came from GISAID, and spike protein sequences from the global outbreak of SARS-CoV-2 in 2019 to 2021 were selected as the training set. The sequence length was controlled between 1265 and 1273. After multiple sequence alignment, the sequences were aligned to the standard length of 1273. The RBD region was truncated and repetitive sequences were removed to obtain 23,633 sequences.
[0108] 1. Sequence optimization experiment
[0109] Fitness calculation: Fitness is mainly composed of stability (folding free energy), ACE2 binding ability, and antibody binding ability. For stability, this application adopts the PoPMuSiC algorithm based on a combination of protein 3D structure and statistical average potential, by inputting the 3D structure of the spike protein 6VYB (see...). Figure 3 In section a), the energy change (in kcal / mol) ΔG resulting from the mutation of each site into each amino acid is obtained. Similarly, the BeAtMuSiC algorithm is used in this application to calculate the ACE2 binding capacity, given the 3D structure 6M0J (see...). Figure 3 b) Using the RBD / ACE2 conjugate as input, the energy changes that may result from all mutations at each site are calculated. When calculating the changes in antibody binding ability, this application selected 73 antibodies. Using the BeAtMuSiC algorithm, 6M0J and the structure of each antibody were input, and the changes brought about by different mutations at each site of the RBD when binding with different antibodies were obtained. The average value of these 73 antibodies was calculated as the change brought about by mutations when binding with the antibody. Adding these three values together gives the change brought about by different mutations at each site of the RBD sequence, thus obtaining the fitness of the entire sequence (assuming the fitness of the wild-type sequence is 0). Figure 2 The graph in section c uses a heatmap to show how fitness changes when different mutations occur at certain sites.
[0110] Generating optimized RBD sequences: This application uses RBD sequences as the training set and the calculated fitness as the label. A policy-value neural network based on MCTS and CNN is used for sequence optimization in a self-game manner. After multiple rounds of optimization, a batch of RBD sequences and their fitness values are obtained. Statistical analysis of mutation sites reveals a large number of mutations that occurred after the training set time (after 2021) or did not occur in the training set in the optimized sequences. Table 1 shows detailed information on some mutation sites, demonstrating that the model in this application has the ability to predict new mutated sequences. To further verify the structural characteristics of these sequences, this application uses AlphaFold2 to predict the three-dimensional structure of some sequences and compares it with the three-dimensional structure of wild-type sequences and the three-dimensional structure of the most similar sequence in multiple sequence alignment (see Table 1). Figure 4(a, b, c) , and also verified the correlation between the fitness of the optimized sequence set predicted by the model and the fitness of the optimized sequence set calculated ( Figure 4 In section d), the Pearson coefficient was 0.87 and the CCA coefficient was 0.83. The results show that the optimized sequence is highly structurally similar to the wild-type and similar sequences, indicating that optimization did not destroy the basic structural features of the sequence. The correlation coefficient calculation results show that the model has strong predictive ability and can accurately predict the fitness level of the optimized sequence. Overall, this application successfully obtained new RBD sequences through this self-game optimization framework. These sequences are highly consistent with the original sequences in structure and function, and contain many new mutation sites. This demonstrates that the model in this application has a certain degree of sequence design and prediction ability, providing a reference for further experimental research.
[0111] Table 1 lists some mutations and their evidence.
[0112]
[0113] 2. DARSEP Training and Downstream Task Analysis
[0114] Training the DARSEP model: The protein language model in DARSEP mainly consists of a pre-trained ESM2 protein language model and a hybrid model based on the Retention mechanism. This application trains the model using sequence masking on RBD sequences collected from GISAID, allowing the model to learn the positional dependencies within the sequences and their semantic and grammatical patterns. It is then compared with a series of sequence modeling models, including DARSEP, Flowformer, Sars-escapenetwork, AminoBert, CSCS, gMLP, and GPT2. The comparison metrics include Accuracy, Precision, Recall, and F1Score. The comparison shows that the model in this application outperforms other state-of-the-art methods in all metrics (see [link to relevant documentation]). Figure 5 Therefore, the model of this application can be applied in downstream analysis.
[0115] Ablation Studies: This application conducted ablation studies to demonstrate the effectiveness of each module. Individual masked training tests were performed on each major part of the protein language model, including separate training of ESM2 and RetNet, and a comparison of the performance of ESM2 and RetNet models under different combinations. Separate training of ESM2 demonstrated its significant contribution to the specific task. The effectiveness of this module indicates its crucial role in protein language understanding and its unique function within the task. The independent performance of ESM2 confirms its impact on the overall model performance. On the other hand, separate training of RetNet also revealed the importance of this module in protein language modeling. Through independent training tests of RetNet, its contribution to the task and how it works synergistically with other modules to improve overall performance were better understood. Experiments with different combinations showed that combining ESM2 and RetNet in parallel achieved the best results. The results of the ablation studies are as follows: Figure 6 As shown.
[0116] Downstream Task Analysis—Cluster Analysis: Downstream task analysis is performed on the trained protein language model. First, the semantic embeddings of the training sequence set and the optimized sequence set are calculated, and the nonlinear dimensionality reduction algorithm UMAP is used to achieve manifold learning and visualization of the semantic embeddings. Then, the Leiden algorithm is used to perform graph-based clustering on the training sequence set, the optimized sequence set, and the sequence set resulting from their combination, and different clustering results are visualized using color schemes (e.g., Figure 7As shown in the cluster visualization, the Leiden clustering effect on the original training sequence set is good. Different categories of viral protein sequences can be clearly divided into multiple clusters, reflecting the differentiation trend of viral protein sequences during natural evolution. Each cluster represents a major evolutionary branch in the viral evolution process. Although the sequences in different clusters originate from the same virus, sequence variations have accumulated over a long evolutionary process, eventually leading to different evolutionary directions. Furthermore, by coloring the clusters by year, it was observed that viral sequences tended to cluster more in the early stages of the pandemic, while different evolutionary directions emerged over time. The viral sequence characteristics showed a drift trend over time, reflecting changes in the genetic relationship between old and new strains. This has guiding significance for predicting the future evolutionary direction of the virus and the emergence of new strains. In addition, Leiden clustering on the optimized sequence set, the original training sequence set, and a mixture of both showed that the optimized sequences clustered with the original training sequences rather than completely separating. This indicates that despite optimization, the new sequences maintain a close genetic relationship with the original data, without showing a very significant genetic distance. By clustering and coloring based on the year attribute, it was observed that the new sequences clearly differentiated from the original sequences, and even formed independent evolutionary branches. In summary, the clustering analysis based on sequence sets verified the effectiveness of the protein sequence optimization model proposed in this application, and the trained protein language model can accurately understand and analyze the semantic features of viral sequences.
[0117] Downstream Task Analysis—Constructing an Evolutionary Field: In the downstream task analysis, Evo-velocity analysis was used to construct a dynamic evolutionary vector field for coronavirus receptor-binding domain (RBD) sequences. This was achieved through an Evo-velocity diagram (see...). Figure 8 This study visualized the RBD sequence set from 2019 to 2023, as well as the total sequence set (including both the 2019-2023 and optimized sequences). The construction of the sampling-time evolution field for 2019-2023 showed that the trajectory of viral evolution is closely related to time. In other words, the viral evolutionary path exhibits a clear trend over time. Simultaneously, the so-called "pseudo-time" (a parameter describing the speed and direction of viral evolution) also shows a high correlation with the sampling date, further confirming the influence of time on the viral evolutionary trajectory. During the construction of the total sequence vector field, its future evolutionary direction is trending towards the optimized sequences described in this application. This finding implies that the optimized sequences may become the main path for future viral evolution. Therefore, these sequences need to be given high attention and used as key detection targets to better understand and predict viral evolutionary dynamics, thereby providing more effective prevention and control strategies.
[0118] Downstream Task Analysis—Missense Variant Effect Prediction: Predict the impact of all possible missense variants in the RBD region. The effect of missense variants at all positions in the RBD region is calculated using a trained protein language model. The effect score for each variant is the log-likelihood ratio (LLR) between the variant and wild-type (WT) residues, such as... Figure 9 The image shows a heatmap illustrating the effects of partial site mutations. A complete list of missense mutation effects can be found in the appendix. Higher scores indicate more significant harmful effects from the mutation, such as G339D in the Omicron series variants.
[0119] Downstream Task Analysis—Popular Strain Analysis: Analysis was conducted using the BA.1 lineage, which caused widespread transmission in Omicron, and the currently prevalent EG.5 lineage. The structural sites of mutations were plotted for each lineage. Figure 10 a and Figure 10 (c) and used the model to calculate the percentile ranking of semantic changes and grammar for each mutation site. Figure 10 b and Figure 10 (d). A violin diagram of the semantic changes of these two variants was also drawn, showing the position of the semantic changes of the two variants in the entire viral mutation system. From the percentile ranking of semantic and syntactic changes of mutation sites, it can be seen that sites with larger semantic changes and higher percentile rankings, such as T478K, have appeared in strains that caused widespread epidemics, such as Delta and Omicron. Moreover, research shows that the T478K mutation may directly enhance the interaction between the S protein and the receptor, thereby evading the surveillance of the immune system, which also supports why it has a large semantic change. N501Y is one of the early mutations. Its binding ability to the human ACE2 receptor is hundreds of times that of the wild-type virus, which is a decisive factor in the enhanced infection and transmission ability of the novel coronavirus. By calculating the semantic changes of BA.1 and EG.5 and through the violin diagram, it can be seen that ( Figure 10 e and Figure 10 In the study of EG.5, the semantic changes from BA.1 to EG.5 decreased, but observations showed that the harm caused by EG.5 also decreased. Although EG.5 has replaced XBB as the current mainstream strain, the WHO's comprehensive assessment in early August concluded that EG.5 does not pose a new or more serious threat, which also proves the validity of the analysis in this application.
[0120] 3. Data Analysis
[0121] Data analysis of amino acid sequences and related information provides an important means for a comprehensive understanding of viral evolution. It not only reveals biological characteristics but also provides scientists with profound insights through comprehensive analysis of information including sampling time and geographical distribution. This comprehensive analysis provides fundamental support for science communication control strategies and vaccine development, while deepening the understanding of viral evolution mechanisms and providing a substantial foundation for the formulation of precise prevention and control strategies. This application will complete the tasks shown below in the data analysis and analyze the results, including:
[0122] • Calculate the proportion of variant spike proteins in each continent.
[0123] • Creating a word cloud of viral lineages
[0124] • Calculate the change in the number of variants in each continent over time.
[0125] • Calculate the variation frequency of important mutation sites in the master strain.
[0126] • Calculate the number of mutation sites in the receptor-binding domain (RBD) of the major strain.
[0127] • Draw the phylogenetic tree of the main strains
[0128] • Calculate the proportion of lineages appearing each month
[0129] The specific data analysis and calculation methods are described in section S1 below, and the results of the data analysis are described in section S2 below.
[0130] S1 data analysis calculation method
[0131] Task I
[0132] Task Content: The proportion of variant spike protein in each continent (2019-2023)
[0133] Calculation Method: N: Total number of variants, N continent p: Number of mutants in each continent; p: Mutation ratio in each continent
[0134]
[0135] Mission II
[0136] Task Content: Word cloud of viral lineages
[0137] Calculation Method: N: Total number of lineage occurrences, N pangolin : Frequency of occurrence in each lineage, TF (pangolin): Lineage frequency
[0138]
[0139] Mission III
[0140] Task Content: Changes in the number of mutants in each continent over time
[0141] Calculation Method: N continent-month Monthly number of mutants in each continent, M: month
[0142] Mission IV
[0143] Task Content: Calculate the percentage of mutants from major countries in each continent that represents the total number of mutants in that continent.
[0144] Calculation Method: N continent Number of mutants in each continent, N continent-country p: Number of variants per country; p: Proportion of variants in each continent.
[0145]
[0146] Task V
[0147] Task Content: Variation frequency of important mutation sites in major strains
[0148] Calculation Method: N site N: The number of times a certain mutation site occurs. site-strain p: The number of times a line corresponding to a certain mutation site appears; p: the variation frequency of the site in the line.
[0149]
[0150] Task VI
[0151] Task Content: Number of mutation sites in the receptor-binding domain (RBD) of major strains
[0152] Calculation Method: N strain-RBD Number of mutation sites in the RBD region
[0153] Mission VII
[0154] Task Content: Phylogenetic tree of major strains
[0155] Calculation Method: Data sourced from Nextstrain (https: / / nextstrain.org / )
[0156] Mission VIII
[0157] Task Content: Calculate the proportion of lineages appearing each month.
[0158] Calculation Method: N month Total number of strains per month, N month-strain p: Monthly number of each strain, p: percentage of the total number of strains
[0159]
[0160] Results of S2 data analysis
[0161] like Figure 11 As shown, this section primarily displays statistics on the changes in the number of virus mutations by continent. Figure 11 The figure 'a' represents a rectangular tree diagram showing the proportion of viral mutations across the six continents. The diagram shows that Europe and North America have a larger proportion of mutated sequences, indicating that SARS-CoV-2 has a higher mutation frequency and a larger number of mutations in these two continents. Figure 11 In the diagram, 'b' represents the word cloud of the viral variant sequences' lineages, indicating the frequency of occurrence of different lineages. By observing the word cloud, some viral lineages, such as "BA 1.1" and "AY.44 / 103," are clearly visible, appearing relatively frequently in the data. This suggests that these lineages hold an important position in the viral samples and may possess broader transmission or other specific characteristics. This is very helpful in understanding the prevalence of viral lineages and potential influencing factors. Figure 11 c and Figure 11 The graph in the middle (d) represents the trend of the number of mutated viruses in each continent over time. It can be clearly observed that some regions experienced relatively drastic fluctuations in a certain period of time, which may be related to the spread and expansion of the mutated strain. This information can provide a more comprehensive understanding of the evolution trend of the number of mutated viruses in each continent over time, which is very helpful for formulating prevention and control strategies and understanding the global dynamics of SARS-CoV-2.
[0162] like Figure 12This is a heatmap showing the variation frequency of important mutation sites in the SARS-CoV-2 spike protein across major strains. Mutations such as E484K, N501Y, and D614G are predominant in many circulating strains, indicating that these mutations may cause the virus to evade the host's immune response. This means they may weaken the neutralizing effect of antibodies, making it more difficult for infected individuals to develop protective immunity. These mutations may represent the evolutionary trend of the virus. Viruses constantly mutate to adapt to different environments and hosts. Under the pressure of natural selection, certain mutations may occur more frequently, especially in circulating strains. Understanding the distribution of these important mutation sites across different strains helps public health authorities and vaccine developers better monitor viral variation. This can help adjust vaccine design to improve coverage across different strains.
[0163] Figure 13 Figure 'a' is a scatter plot showing the change in the number of amino acid sequence variant sites in the RBD region of the major SARS-CoV-2 lineages over time. The plot shows that the number of amino acid sequence variant sites in the RBD region of each major lineage increases over time, indicating that the SARS-CoV-2 virus exhibits a certain degree of evolutionary variation at different stages. As the virus spreads in the population for an extended period, amino acid sequence variations in the RBD region, as an important target for immune diseases, will continue to accumulate. This may affect the pathogenicity and immune evasion ability of the virus, introducing a degree of uncertainty into subsequent SARS-CoV-2 prevention and control. Figure 13 Figure b is a phylogenetic tree of the viral lineages. The tree clearly shows that, over time, there has been an evolutionary divergence within each major lineage. This means that sequence analysis is of significant reference value in tracing viral evolution. By comparing viral sequence data from different periods, the variation patterns of SARS-CoV-2 during its spread worldwide can be observed. Figure 13 The graph in Figure 'c' shows the monthly percentage of new strains emerging since the SARS-CoV-2 outbreak. Initially, 2019-nCoV dominated. Subsequently, the proportion of imported strains from overseas rapidly increased. From mid-to-late 2021, due to the high transmissibility of the Indian Delta variant, the Delta strain significantly replaced other strains as the dominant strain. The latest data from the Omicron strain shows its proportion has further increased, indicating it may be a promoter of a new wave of viral transmission. This suggests that over time, new strains imported from different geographical regions will spread locally, gradually replacing older strains and becoming the dominant strain in the short term. Continuous monitoring of the mutation characteristics and transmission patterns of emerging strains in various regions is necessary.
[0164] This application proposes a method for predicting the evolution of SARS-CoV-2 by combining model analysis and data analysis. In the model analysis, a reinforcement learning self-game approach is first used to search for possible optimization directions of viral proteins, solving the challenge of finding effective evolutionary pathways in a vast mutation space. Then, an advanced protein language model based on ESM2 and RetNet is trained, outperforming existing models. The optimized sequences are analyzed using this model to achieve in-depth analysis of viral evolutionary patterns. Through a series of downstream analysis experiments, this method accurately predicts the evolutionary direction of the virus and successfully identifies key mutation sites that may enhance viral adaptability and immune evasion capabilities. In addition to validating known mutations, this method can also predict potential future mutations based on data from 2019-2021, which is crucial for early warning and the development of public health strategies. By monitoring and analyzing currently prevalent viral lineages, future mutation trends can be predicted, providing a valuable time window for vaccine updates and antiviral drug development. Furthermore, data analysis explores multidimensional information influencing viral evolution, including viral transmission volume, geographical distribution, and the evolutionary trajectories of different lineages, providing a panoramic view of viral evolutionary patterns from a macro perspective.
[0165] Overall, the multi-level and multi-angle SARS-CoV-2 evolution prediction and analysis method proposed in this paper can accurately depict the evolutionary map of SARS-CoV-2, enhance the understanding of the evolutionary dynamics of SARS-CoV-2, and provide strong scientific support for addressing the challenges posed by SARS-CoV-2 now and in the future.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for analyzing the antigenic variation and evolution of SARS-CoV-2 based on self-game sequence optimization and RetNet, characterized in that: Includes the following steps: S1, Data Collection and Processing: Classify and organize the obtained spike protein information into sequence parts and non-sequence parts; S2, sequence fitness calculation: Using folding free energy To measure protein stability, each mutation at a specific site in the protein sequence results in a change in the folding free energy. Assuming the fold free energy at each site of the wild-type sequence is 0, then the fold free energy of the wild-type sequence is 0, and its length is... The first amino acid sequence The change in folding free energy after abrupt changes at each position is: The change in folding free energy of the entire amino acid sequence for: ; Assume the wild sequence has a binding affinity of 0 to ACE2, and its length is... The first amino acid sequence The change in binding affinity resulting from mutation at each position is: The binding affinity of the entire amino acid sequence to ACE2 is... for: ; Assume the wild-type sequence has a binding affinity of 0 to all antibodies, and its length is... The first amino acid sequence After mutation at the first position, it is related to the first... The binding capacity of each antibody is The average value of antibody changes at each site As the change in antibody binding ability at each site, where: , , This represents the change in the binding ability of the entire sequence to the antibody; Fitness of spike protein amino acid sequence ; S3, use the sequence and fitness to train the self-game sequence optimization model, and at the same time use the same sequence to train the spike protein sequence modeling model; in step S3, the spike protein sequence modeling model includes a pre-trained ESM2 protein language model and a RetNet network architecture based on the Retention mechanism. S4. The optimized sequence is analyzed and visualized using the trained spike protein sequence model. S5. Analyze the non-sequence information collected in step S1 and visualize and verify it.
2. The method for analyzing the antigenic variation and evolution of SARS-CoV-2 based on self-game sequence optimization and RetNet as described in claim 1, characterized in that: when At 0, the protein sequence develops towards stability. At 0, the protein sequence tends towards instability.
3. The method for analyzing the antigenic variation and evolution of the novel coronavirus based on self-game sequence optimization and RetNet as described in claim 1, characterized in that: when At this time, the protein sequence's ability to bind to ACE2 is enhanced. At this time, the protein sequence's ability to bind to ACE2 weakens.
4. The method for analyzing the antigenic variation and evolution of the novel coronavirus based on self-game sequence optimization and RetNet as described in claim 1, characterized in that: when At that time, the binding ability of the protein sequence to the antibody becomes stronger. At that time, the binding ability of the protein sequence to the antibody weakens.
Citation Information
Patent Citations
Codon optimized mRNA vaccine against novel coronavirus
CN115814074A
Virus evolution trend prediction method and system
CN117174163A
