Method for generating RBS sequence based on machine learning, RBS sequence generation model training method and electronic equipment

Using machine learning methods to train the RBS sequence generation model solves the problem of lack of RBS sequence design tools for Bacillus subtilis, achieves fast and accurate RBS sequence design, and improves the efficiency of gene expression regulation of Bacillus subtilis.

CN118588166APending Publication Date: 2024-09-03NINGXIA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410712452.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Among the existing technologies, there are few studies on generating RBS sequences of Bacillus subtilis based on artificial intelligence, which leads to the lagging development of the design and analysis of its regulatory elements and the lack of effective design tools.

Method used

Using machine learning methods, we obtain the natural RBS sequence of Bacillus subtilis, extract sequence base features, generate a coding matrix, and train an RBS sequence generation model, including an encoder and a decoder, to optimize model parameters and generate RBS sequences with expression intensity.

Benefits of technology

It achieves the rapid, accurate and low-cost design of Bacillus subtilis RBS sequences with expression strength, fills the gap in this field in the existing technology, and provides an effective design tool.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118588166A
    Figure CN118588166A
Patent Text Reader

Abstract

The invention discloses a method for generating an RBS sequence based on machine learning, an RBS sequence generation model training method and electronic equipment. The method comprises the following steps: acquiring a plurality of groups of bacillus subtilis natural RBS sequences; coding the natural RBS sequences of each group of bacillus subtilis to extract sequence base characteristics in the natural RBS sequences of each group of bacillus subtilis; generating a corresponding coding matrix according to sequence base characteristics extracted from the natural RBS sequences of each group of bacillus subtilis; based on the coding matrixes corresponding to the plurality of groups of bacillus subtilis natural RBS sequences, a training set for training an RBS sequence generation model is generated, and the RBS sequence generation model comprises a coder and a decoder; training the RBS sequence generation model: acquiring a natural RBS sequence of the target bacillus subtilis, and inputting the natural RBS sequence into the trained RBS sequence generation model to obtain a generative RBS sequence of the natural RBS sequence of the target bacillus subtilis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of synthetic biology and relates to a method for generating an RBS sequence based on machine learning, an RBS sequence generation model training method, and an electronic device. Background Art

[0002] The design of synthetic biology regulatory elements plays an important role in gene synthesis circuit design and metabolic engineering, and has great potential in drug design and specific product production. According to functional characteristics, regulatory elements usually include promoters, ribosome binding sites (RBS), enhancers, silencers, etc., which play different regulatory roles on gene expression to meet the needs of microbial life activities. Regulatory elements of different strengths can affect gene expression to different degrees to form different metabolic fluxes, thereby optimizing the metabolic pathway of the product. Therefore, how to reasonably design the sequence structure of regulatory elements to quantitatively regulate gene expression has become an important challenge we face.

[0003] Machine learning plays an important role in the field of synthetic biology, providing biologists and researchers with powerful tools to analyze and design biological systems. It can use sequence data as a driver to train a suitable mapping model from sequence to activity, then predict unknown structures and verify the results with biological experiments. These methods can be used to easily learn and analyze large amounts of complex biological data, enabling people to observe and analyze biological information from a new perspective and gain new insights into the laws of life. Similarly, the data obtained from a large number of biological experiments on various gene expression regulatory elements, such as promoters, RBS, etc., also provide a basis for their combination with machine learning methods. This has further promoted the research progress in the field of design and analysis of regulatory elements.

[0004] RBS is an important element for regulating translation intensity. Artificially designed RBS can be easily connected to specific genes through primer design and PCR amplification, thereby regulating the expression intensity of genes at the translation level. Therefore, if you want to achieve precise regulation of gene expression, it depends largely on the design and analysis of RBS regulatory elements. At present, the tools that can realize intelligent design of RBS regulatory elements mainly include RBS calculator, RBSDesigner, UTR designer, etc.

[0005] The emergence of machine learning and deep learning provides new methods for the strength prediction of RBS and the de novo design of RBS elements. In one prior art, a high-throughput strategy is used to design, screen and optimize 5'UTR sequences to enhance the protein expression of strong human cytomegalovirus (CMV). In this scheme, naturally occurring 5'UTR sequences with high translation efficiency are first identified, and this information is used together with a computer genetic algorithm to generate synthetic 5'UTRs. Then a recombinase-mediated integration strategy is used to screen a total of about 12,000 5'UTR sequences, and then three synthetic 5'UTRs are identified, which are superior to commonly used non-viral gene therapy plasmids in expressing protein payloads. In another prior art, a machine learning model is created to reliably design RBS using a relatively small high-quality data set. In this scheme, a Gaussian process regression algorithm is used for learning data sets, and a confidence upper limit multi-armed bandit algorithm is used to design RBS. These machine learning algorithms are integrated with laboratory automation and high-throughput processes to achieve reliable data generation. A total of 450 RBS variants were tested in four DBTL cycles. Finally, the designed RBS was experimentally verified to have a high translation initiation rate, 34% of the highest strength benchmark RBS. The results show that machine learning is a powerful tool for designing RBS, paving the way for studying complex gene regulatory elements.

[0006] In summary, artificial intelligence technology has shown great advantages and potential in the de novo design of RBS regulatory elements. However, so far, compared with traditional model strains such as Escherichia coli and yeast, the research on key regulatory elements of Bacillus subtilis is relatively small and the development is relatively lagging behind. There are currently no reports on the generation of Bacillus subtilis RBS based on artificial intelligence. Summary of the invention

[0007] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for generating an RBS sequence based on machine learning, an RBS sequence generation model training method, and an electronic device.

[0008] The technical solution of the present invention is summarized as follows:

[0009] A method for generating an RBS sequence based on machine learning, comprising:

[0010] Obtaining several groups of natural RBS sequences of Bacillus subtilis;

[0011] Encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences;

[0012] Generate a corresponding coding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences;

[0013] Based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis, a training set for training an RBS sequence generation model is generated, wherein the RBS sequence generation model includes an encoder and a decoder;

[0014] The RBS sequence generation model is trained based on the following steps:

[0015] Inputting the training set into the RBS sequence generation model, so that the encoder maps the training set from the training set space to the latent space to obtain latent variables, and inversely maps the latent variables from the latent space back to the training set space through the decoder to obtain a reconstructed data set, and the reconstructed data set is used as the generated RBS sequence set;

[0016] Calculating a reconstruction error between the generated RBS sequence set and the training set, and optimizing model parameters of the encoder and the decoder based on the reconstruction error until a trained RBS sequence generation model is obtained;

[0017] The target Bacillus subtilis natural RBS sequence is obtained and input into the trained RBS sequence generation model to obtain a generated RBS sequence of the target Bacillus subtilis natural RBS sequence.

[0018] Optionally, the obtaining of several groups of natural RBS sequences of Bacillus subtilis comprises:

[0019] Access the PaxDb database to download genome-wide protein abundance data;

[0020] For the whole genome protein abundance data, obtaining the protein intensity expressed by each gene therein;

[0021] Based on the protein intensity expressed by each gene, select protein abundance data of several genes whose protein intensity is greater than a set protein intensity threshold from the whole genome protein abundance data;

[0022] The SubtiWiki target database is accessed to match several upstream groups of sequences of the screened several genome protein abundance data from the Bacillus subtilis genome therein, and use them as several groups of natural RBS sequences of Bacillus subtilis.

[0023] Optionally, encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences includes:

[0024] The "A" base, "T" base, "C" base, and "G" base in each group of Bacillus subtilis natural RBS sequences are encoded and converted into vector representations;

[0025] The vectors corresponding to the "A" base, the "T" base, the "C" base, and the "G" base are represented as the sequence base features of each group of natural RBS sequences of Bacillus subtilis extracted.

[0026] The method for generating an RBS sequence based on machine learning according to claim 3, characterized in that the vector representations of the "A" base, "T" base, "C" base, and "G" base are [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], and [0, 0, 0, 1], respectively.

[0027] Optionally, generating a corresponding encoding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences comprises:

[0028] The vectors corresponding to all bases in each group of natural RBS sequences of Bacillus subtilis form a two-dimensional matrix, which is used as the encoding matrix, wherein the rows of the two-dimensional matrix represent the categories of the bases, and the columns of the two-dimensional matrix represent the serial numbers of the bases in the natural RBS sequences of Bacillus subtilis.

[0029] Optionally, generating a training set for training an RBS sequence generation model based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis comprises:

[0030] The two-dimensional matrices corresponding to the several groups of natural RBS sequences of Bacillus subtilis are combined to form a training set for training the RBS sequence generation model.

[0031] Optionally, inputting the training set into the RBS sequence generation model so that the encoder maps the training set from the training set space to a latent space to obtain a latent variable comprises:

[0032] Inputting the training set into the RBS sequence generation model to obtain a mean vector and a variance vector corresponding to each two-dimensional matrix;

[0033] The mean vector and the variance vector constitute the latent variable.

[0034] Optionally, inputting the training set into the RBS sequence generation model to obtain a mean vector and a variance vector corresponding to each two-dimensional matrix includes:

[0035] Based on the linear function in the encoder, the product of each two-dimensional matrix and the set weight matrix is ​​calculated, and the sum with the set bias term is obtained to obtain the corresponding mean vector and variance vector.

[0036] Optionally, the method further comprises: sampling the latent variables corresponding to each group of natural RBS sequences of Bacillus subtilis in the latent space based on a standard normal distribution;

[0037] The step of inversely mapping the latent variables from the latent space back to the training set space by the decoder to obtain the reconstructed data set includes: the decoder inversely mapping the sampled latent variables from the latent space back to the training set space to obtain the reconstructed data set.

[0038] Optionally, the calculating the reconstruction error between the generated RBS sequence set and the training set includes: calculating the reconstruction error between the generated RBS sequence set and the training set based on a reconstruction error function.

[0039] Optionally, the reconstruction error function is a binary cross entropy loss function.

[0040] Optionally, the reconstruction error function includes a reconstruction error and a regularization term, the reconstruction error is used to make the generated RBS sequence set close to the training set, and the regularization term is used to constrain the complexity of the RBS sequence generation model and prevent overfitting of the training.

[0041] Optionally, the reconstruction error is KL divergence.

[0042] Optionally, the step of obtaining a target Bacillus subtilis natural RBS sequence and inputting the sequence into the trained RBS sequence generation model to obtain a generated RBS sequence of the target Bacillus subtilis natural RBS sequence comprises:

[0043] Encoding the target Bacillus subtilis natural RBS sequence to extract sequence base features in the target Bacillus subtilis natural RBS sequence;

[0044] Generate a corresponding coding matrix according to the sequence base features extracted from the natural RBS sequence of the target Bacillus subtilis;

[0045] Based on the trained encoder, the encoding matrix corresponding to the target Bacillus subtilis natural RBS sequence is mapped into the latent space to obtain the target latent variable, and the decoder is used to inversely map the target latent variable from the latent space back to the training set space to obtain the generated RBS sequence of the target Bacillus subtilis natural RBS sequence.

[0046] A RBS sequence generation model training method, comprising:

[0047] Obtaining several groups of natural RBS sequences of Bacillus subtilis;

[0048] Encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences;

[0049] Generate a corresponding coding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences;

[0050] Based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis, a training set for training an RBS sequence generation model is generated, wherein the RBS sequence generation model includes an encoder and a decoder;

[0051] The RBS sequence generation model is trained based on the following steps:

[0052] Inputting the training set into the RBS sequence generation model, so that the encoder maps the training set from the training set space to the latent space to obtain latent variables, and inversely maps the latent variables from the latent space back to the training set space through the decoder to obtain a reconstructed data set, and the reconstructed data set is used as the generated RBS sequence set;

[0053] A reconstruction error between the generated RBS sequence set and the training set is calculated, so as to optimize the model parameters of the encoder and the decoder based on the reconstruction error until a trained RBS sequence generation model is obtained.

[0054] An electronic device comprising: a memory and a processor, wherein the memory

[0055] The memory stores computer executable instructions, and the processor is used to execute the computer executable instructions to implement the method described in any one of the embodiments of the present application.

[0056] Advantages of the present invention:

[0057] The model provided by the present invention is trained by the natural RBS sequence of Bacillus subtilis, and can realize the rapid, accurate and low-cost design of the RBS sequence of Bacillus subtilis with strong expression strength. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 This is a flow chart of a method for generating an RBS sequence based on machine learning according to an embodiment of the present application.

[0059] Figure 2 Schematic diagram of the process of training the model for this application.

[0060] Figure 3 This is a motif comparison chart of 2000 natural RBS sequences of Bacillus subtilis in the test set and 2000 RBS sequences output by the test. DETAILED DESCRIPTION

[0061] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments and the accompanying drawings.

[0062] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0063] Figure 1 This is a flow chart of a method for generating an RBS sequence based on machine learning according to an embodiment of the present application. Figure 1 As shown, the method includes:

[0064] Obtaining several groups of natural RBS sequences of Bacillus subtilis;

[0065] Encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences;

[0066] Generate a corresponding coding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences;

[0067] Based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis, a training set for training an RBS sequence generation model is generated, wherein the RBS sequence generation model includes an encoder and a decoder;

[0068] Based on the following steps (see Figure 2 ), train the RBS sequence generation model:

[0069] The target Bacillus subtilis natural RBS sequence is obtained and input into the trained RBS sequence generation model to obtain a generated RBS sequence of the target Bacillus subtilis natural RBS sequence.

[0070] Figure 2 The following is a flow chart of the model training process implemented in this application. Figure 2 As shown, the training method includes:

[0071] Inputting the training set into the RBS sequence generation model, so that the encoder maps the training set from the training set space to the latent space to obtain latent variables, and inversely maps the latent variables from the latent space back to the training set space through the decoder to obtain a reconstructed data set, and the reconstructed data set is used as the generated RBS sequence set;

[0072] A reconstruction error between the generated RBS sequence set and the training set is calculated, so as to optimize the model parameters of the encoder and the decoder based on the reconstruction error until a trained RBS sequence generation model is obtained.

[0073] Optionally, the obtaining of several groups of natural RBS sequences of Bacillus subtilis comprises:

[0074] Access the PaxDb database to download genome-wide protein abundance data;

[0075] For the whole genome protein abundance data, obtaining the protein intensity expressed by each gene therein;

[0076] Based on the protein intensity expressed by each gene, select protein abundance data of several genes whose protein intensity is greater than a set protein intensity threshold from the whole genome protein abundance data;

[0077] The SubtiWiki target database is accessed to match several upstream groups of sequences of the screened several genome protein abundance data from the Bacillus subtilis genome therein, and use them as several groups of natural RBS sequences of Bacillus subtilis.

[0078] Specifically, in one application scenario, the specific process of obtaining several groups of natural RBS sequences of Bacillus subtilis is as follows:

[0079] The PaxDb database (https: / / pax-db.org / dataset / 224308 / 3215854222 / ) was accessed to download the protein abundance data of the whole genome of Bacillus subtilis subsp. subtilis str.168, and the protein intensity expressed by each gene was obtained. The top 2000 genes with high protein expression intensity were selected, and then the upstream 30 bp sequences of these genes in the Bacillus subtilis genome were searched in the SubtiWiki (http: / / subtiwiki.uni-goettingen.de / ) database to obtain 2000 natural RBS sequences of Bacillus subtilis.

[0080] The specific meanings of the above Bacillus subtilis subsp.subtilis str. are as follows:

[0081] Bacillus subtilis: The name of a bacterium that belongs to the species Bacillus subtilis of the genus Bacillus.

[0082] subsp.: Abbreviation for "subspecies." In bacterial taxonomy, subspecies is often used to describe a group of bacteria that differ from the main species in genetic, physiological, or ecological characteristics, but are still similar enough to be classified as that species.

[0083] str.: is the abbreviation of "strain", which means strain or strain. In microbiology, strains or strains are usually used to describe specific bacterial groups that have been specifically treated or selected in the laboratory. These groups may have specific genetic characteristics, physiological properties or application values.

[0084] Bacillus subtilis subsp. subtilis str.168 is a specific subspecies (subsp. subtilis) of the genus Bacillus subtilis and a specific strain (str.168) of this subspecies.

[0085] Optionally, encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences includes:

[0086] The "A" base, "T" base, "C" base, and "G" base in each group of Bacillus subtilis natural RBS sequences are encoded and converted into vector representations;

[0087] The vectors corresponding to the "A" base, the "T" base, the "C" base, and the "G" base are represented as the sequence base features of each group of natural RBS sequences of Bacillus subtilis extracted.

[0088] The "A" base is adenine A, the "C" base is cytosine C, the "G" base is guanine G, and the "T" base is thymine T.

[0089] Optionally, the vector representations of the "A" base, "T" base, "C" base, and "G" base are [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], and [0, 0, 0, 1], respectively.

[0090] In a specific scenario, the length of each group of natural RBS sequences of Bacillus subtilis is 30bp (short for base pair, meaning "base pair" in Chinese), and each group of natural RBS sequences of Bacillus subtilis includes "A" bases, "T" bases, "C" bases, and "G" bases. Since they cannot be directly recognized by a computer, they are converted into a computer-recognizable language through the above encoding.

[0091] Optionally, when encoding the "A" bases, "T" bases, "C" bases, and "G" bases in each group of natural RBS sequences of Bacillus subtilis, one-hot encoding, binary encoding, integer encoding, etc. can be used. The specific encoding method can be selected according to the application scenario.

[0092] Optionally, in one embodiment, one-hot encoding is used to encode the "A" base, "T" base, "C" base, and "G" base in each group of natural RBS sequences of Bacillus subtilis, and the "A" base, "T" base, "C" base, and "G" base are converted into corresponding vector representations, which are composed of 0s and 1s, which are [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1], respectively.

[0093] Optionally, generating a corresponding encoding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences comprises:

[0094] The vectors corresponding to all bases in each group of natural RBS sequences of Bacillus subtilis form a two-dimensional matrix, which is used as the encoding matrix, wherein the rows of the two-dimensional matrix represent the categories of the bases, and the columns of the two-dimensional matrix represent the serial numbers of the bases in the natural RBS sequences of Bacillus subtilis.

[0095] For example, for the natural RBS sequence of Bacillus subtilis with a length of 30bp, the conversion results in a 4*30 two-dimensional matrix. Since there are four types of bases, namely "A" bases, "T" bases, "C" bases, and "G" bases, the 4 in the matrix represents the total number of base types, and the 30 columns correspond to the 30 bases of the natural RBS sequence of Bacillus subtilis.

[0096] Optionally, generating a training set for training an RBS sequence generation model based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis comprises:

[0097] The two-dimensional matrices corresponding to the several groups of natural RBS sequences of Bacillus subtilis are combined to form a training set for training the RBS sequence generation model.

[0098] For example, in a specific application scenario, 2000 natural RBS sequences of Bacillus subtilis are one-hot encoded to obtain 2000 sets of 4*30 two-dimensional matrices, each set of matrices represents a natural RBS sequence of Bacillus subtilis. The 2000 sets of two-dimensional matrices are used as training sets for training the RBS sequence generation model.

[0099] Optionally, inputting the training set into the RBS sequence generation model so that the encoder maps the training set from the training set space to a latent space to obtain a latent variable comprises:

[0100] Inputting the training set into the RBS sequence generation model to obtain a mean vector and a variance vector corresponding to each two-dimensional matrix;

[0101] The mean vector and the variance vector constitute the latent variable.

[0102] Optionally, inputting the training set into the RBS sequence generation model to obtain a mean vector and a variance vector corresponding to each two-dimensional matrix includes:

[0103] Based on the linear function in the encoder, the product of each two-dimensional matrix and the set weight matrix is ​​calculated, and the sum with the set bias term is obtained to obtain the corresponding mean vector and variance vector.

[0104] For example, in a specific application scenario, the encoder maps each two-dimensional matrix (such as a 4*30 two-dimensional matrix) to a mean vector and a variance vector in the latent space. The mean vector and the variance vector constitute the latent variables corresponding to each two-dimensional matrix. The goal of training the encoder is to learn the latent variables in the latent space. The latent space refers to a low-dimensional space for representing data learned by the RBS sequence generation model. It is a set of latent variables, which contains the sequence features of each base of the natural RBS sequence of Bacillus subtilis (i.e., the above vector representation). The latent variable is the result of the encoder converting each two-dimensional matrix into a latent space. The decoder samples the latent variables from the latent space and decodes them into reconstructed data. The reconstructed data corresponding to all two-dimensional matrices constitute a reconstructed data set, i.e., the generated RBS sequence set.

[0105] For each input two-dimensional matrix, the Linear function is the fully connected layer in the model. When the encoder uses the fully connected layer for linear transformation, it calculates the product of each two-dimensional matrix and the set weight matrix, and takes the sum with the set bias term to obtain the corresponding mean vector and variance vector. The mean vector and variance vector form a latent variable, thereby realizing the mapping of each of the above two-dimensional matrices (such as a 4*30 two-dimensional matrix) to the latent space and converting it into a latent variable. Since the latent variable is represented by the mean vector and the variance vector, the mean vector represents the mean position of the data in the latent space, and the variance vector represents the variance of each dimension in the latent space. To this end, this representation allows the decoder in the model to generate new data (latent variables) by sampling latent variables from the latent space, and helps the model to better learn latent variables during training.

[0106] Optionally, the method further comprises: sampling the latent variables corresponding to each group of natural RBS sequences of Bacillus subtilis in the latent space based on a standard normal distribution;

[0107] The step of inversely mapping the latent variables from the latent space back to the training set space by the decoder to obtain the reconstructed data set includes: the decoder inversely mapping the sampled latent variables from the latent space back to the training set space to obtain the reconstructed data set.

[0108] In a specific application scenario, randomness is introduced by sampling the latent variables corresponding to each group of natural RBS sequences of Bacillus subtilis in the latent space based on a standard normal distribution, thereby ensuring that the model can learn the global structure of the data distribution.

[0109] Optionally, the calculating the reconstruction error between the generated RBS sequence set and the training set includes: calculating the reconstruction error between the generated RBS sequence set and the training set based on a reconstruction error function.

[0110] Optionally, the reconstruction error function is a binary cross entropy loss function.

[0111] Optionally, the reconstruction error function includes a reconstruction error and a regularization term, the reconstruction error is used to make the generated RBS sequence set close to the training set, and the regularization term is used to constrain the complexity of the RBS sequence generation model and prevent overfitting of the training.

[0112] Optionally, the reconstruction error is KL divergence.

[0113] In this embodiment, the reconstruction error refers to the difference or error between the decoder output (i.e., the reconstructed data set) and the original input data (training set) in the encoder-decoder framework. It is usually measured using the reconstruction error of the data (such as the mean square error). By minimizing the reconstruction error, the goal of machine learning is to learn how to map the input data to the latent space, and then reconstruct the output from the latent space that is as close to the original data as possible.

[0114] Regularization terms are additional terms added to the loss function to constrain model complexity and prevent overfitting. KL divergence is usually used to measure the difference between the distribution of the encoded latent variables and the prior distribution (latent components before sampling). By minimizing KL divergence, the distribution of latent variables can be ensured to be as close to the prior distribution as possible during model training, so as to effectively model the latent space and improve the generalization ability of the model.

[0115] Exemplarily, an implementation code based on the above model training process is provided as follows:

[0116]

[0117]

[0118]

[0119] Optionally, before obtaining the target Bacillus subtilis natural RBS sequence and inputting it into the trained RBS sequence generation model to obtain the generated RBS sequence of the target Bacillus subtilis natural RBS sequence, the method further comprises:

[0120] Based on the constructed test set, the trained RBS sequence generation model is tested, and after the test passes, the target Bacillus subtilis natural RBS sequence is input into the trained RBS sequence generation model.

[0121] Based on the constructed test set (similar to the process of constructing the training set, another 2000 natural RBS sequences of Bacillus subtilis are selected to form the test set), the exemplary code for testing the trained RBS sequence generation model is as follows:

[0122]

[0123] Using the above test set, the trained RBS sequence generation model will generate 2000 RBS sequences.

[0124] Figure 3 This is a comparison chart of the motifs of 2000 natural RBS sequences of Bacillus subtilis in the test set and 2000 RBS sequences output by the test. Figure 3 As shown, it can be seen that the distribution of the 2000 RBS sequences output by the test is extremely similar to the distribution of the 2000 natural RBS sequences of Bacillus subtilis, and the distribution frequency of the bases appearing at each position is very similar.

[0125] Optionally, the step of obtaining a target Bacillus subtilis natural RBS sequence and inputting the sequence into the trained RBS sequence generation model to obtain a generated RBS sequence of the target Bacillus subtilis natural RBS sequence comprises:

[0126] Encoding the target Bacillus subtilis natural RBS sequence to extract sequence base features in the target Bacillus subtilis natural RBS sequence;

[0127] Generate a corresponding coding matrix according to the sequence base features extracted from the natural RBS sequence of the target Bacillus subtilis;

[0128] Based on the trained encoder, the encoding matrix corresponding to the target Bacillus subtilis natural RBS sequence is mapped into the latent space to obtain the target latent variable, and the decoder is used to inversely map the target latent variable from the latent space back to the training set space to obtain the generated RBS sequence of the target Bacillus subtilis natural RBS sequence.

[0129] The target Bacillus subtilis natural RBS sequence is obtained in the above-mentioned step and input into the trained RBS sequence generation model to obtain the generated RBS sequence of the target Bacillus subtilis natural RBS sequence. The trained RBS sequence generation model is, for example, the RBS sequence generation model that has passed the above-mentioned test.

[0130] Here, it should be noted that the process of obtaining the target Bacillus subtilis natural RBS sequence and inputting it into the trained RBS sequence generation model to obtain the generated RBS sequence of the target Bacillus subtilis natural RBS sequence is similar to the above training process.

[0131] An embodiment of the present application further provides an electronic device, which includes: a memory and a processor, wherein the memory stores computer executable instructions, and the processor is used to run the computer executable instructions to implement any method described in any one of the embodiments of the present application.

[0132] Furthermore, the following provides a method for verifying the generated RBS sequence of the target Bacillus subtilis natural RBS sequence obtained by the trained RBS sequence generation model after the training is completed.

[0133] The Bacillus subtilis 168 described in the following description was purchased from Zhili Zhongte (Wuhan) Biotechnology Co., Ltd. ( https: / / www.zlzt.com / Strain / zl-059601.html ). Other engineered bacteria such as Bacillus subtilis can also be used. Escherichia coli DH5α was purchased from Thermo Fisher Scientific (https: / / www.thermofisher.cn / ).

[0134] The pAD123 plasmid used was purchased from the Plasmid Vector Bacteria Cell Protein Antibody Gene Collection Center ( http: / / www.biovector.net / ).

[0135] The DNA ligase and other molecular biological reagents used were purchased from Thermo Company, and other biochemical kits were purchased from Sangon Biotechnology (Shanghai) Co., Ltd. ( http: / / www.sangon.com / ).

[0136] Five RBS sequences (identifiers: R1-R5, sequence numbers in the database: SEQ ID NO.1-SEQ ID NO.5) were selected from the generated RBS sequences to verify their expression strength.

[0137] First, construct the vector pAD123-P 578 -gfp: pAD123 plasmid (containing gfp gene) was used as template and P 578 -F (SEQ ID NO.6 in the database), P 578 -R (SEQ ID NO.7) was used as primer for PCR amplification to obtain pAD123-P 578 -gfp fragment, for pAD123-P 578 The -gfp fragment was purified and recovered and directly transformed into E. coli DH5α. After sequencing verification, the vector pAD123-P was obtained. 578 -gfp.

[0138] Secondly, the vector pAD123-P 578 -gfp plasmid was used as a template, and PCR amplification was performed using upper and lower primers containing R1 (SEQ ID NO.8, SEQID NO.9). The amplified product was then purified and transformed into Escherichia coli DH5α to obtain a plasmid expressing the R1 sequence with gfp as a reporter gene. The plasmid with the correct sequencing results was transformed into the B. subtilis 168 strain using the Spizizen transformation method to obtain a reporter strain for characterizing R1.

[0139] Similarly, pAD123-P 578 -gfp plasmid was used as a template, and PCR amplification was performed using upper and lower primers containing R2-R5 (SEQ ID NO.10 to SEQ ID NO.94). The amplified product was then purified and transformed into Escherichia coli DH5α to obtain a plasmid expressing the R2-R30 sequence with gfp as a reporter gene. These plasmids with correct sequencing results were transformed into B. subtilis 168 strains using the Spizizen transformation method to obtain a reporter strain for characterizing R2-R5.

[0140] After obtaining the reporter strains for characterizing R1-R5, these reporter strains were inoculated into 96 deep-well plates containing 1 ml LB liquid medium containing 5 μg / mL chloramphenicol in each well, and cultured at 220 rpm and 37 ° C for 16 h. After that, centrifuge at 4200 rpm for 10 min, discard the supernatant, add 1 mL ddH2O to each well of the deep-well plate to resuspend the bacteria, and mix thoroughly. Centrifuge at 4200 rpm for 10 min, discard the supernatant, add 1 mL ddH2O to each well, blow and aspirate with a pipette, mix the bacteria thoroughly, and obtain a resuspended bacterial solution for measuring OD value and fluorescence intensity. Take 200 μL of the resuspended bacterial solution and place it in a black 96-well ELISA plate. The ELISA reader measures the fluorescence intensity (RFU), with an excitation wavelength of 485 nm and an emission wavelength of 533 nm. An equal volume of ddH2O is used as a blank reference. Take 200 μL of the resuspended bacterial solution and place it in a colorless and transparent 96-well ELISA plate to measure the OD value at 600 nm. An equal volume of ddH2O was used as a blank reference. The final fluorescence intensity was expressed as RFU / OD per unit bacterial concentration. 600 , the strength of each RBS is shown in Table 1.

[0141] It has been verified that the generative RBS sequence can achieve the expression of the gfp gene in Bacillus subtilis, indicating that it can also achieve the expression regulation of other genes. This model can be used in conjunction with the RBS prediction model to predict the strength of the generated sequence, and then manually select the RBS of the specified strength, so as to achieve the intelligent design of the RBS of the specified strength.

[0142] Table 1 Fluorescence intensity expressed by generated RBS sequences

[0143]

[0144] Table 2 Primers used in the construction of reporter strains characterizing RBS

[0145]

[0146]

[0147] The above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for generating RBS sequences based on machine learning, It is characterized in that include: Obtaining several groups of natural RBS sequences of Bacillus subtilis; Encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences; Generate a corresponding coding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences; Based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis, a training set for training an RBS sequence generation model is generated, wherein the RBS sequence generation model includes an encoder and a decoder; The RBS sequence generation model is trained based on the following steps: Inputting the training set into the RBS sequence generation model, so that the encoder maps the training set from the training set space to the latent space to obtain latent variables, and inversely maps the latent variables from the latent space back to the training set space through the decoder to obtain a reconstructed data set, and the reconstructed data set is used as the generated RBS sequence set; Calculating a reconstruction error between the generated RBS sequence set and the training set, and optimizing model parameters of the encoder and the decoder based on the reconstruction error until a trained RBS sequence generation model is obtained; The target Bacillus subtilis natural RBS sequence is obtained and input into the trained RBS sequence generation model to obtain a generated RBS sequence of the target Bacillus subtilis natural RBS sequence.

2. The method for generating an RBS sequence based on machine learning according to claim 1, It is characterized in that The step of encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences comprises: Encode the "A" base, "T" base, "C" base, and "G" base in each group of Bacillus subtilis natural RBS sequences respectively and convert them into vector representation; The vectors corresponding to the "A" base, the "T" base, the "C" base, and the "G" base are represented as the sequence base features of each group of natural RBS sequences of Bacillus subtilis extracted.

3. The method for generating an RBS sequence based on machine learning according to claim 2, It is characterized in that The vector representations of the "A" base, "T" base, "C" base, and "G" base are [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], and [0, 0, 0, 1], respectively.

4. The method for generating an RBS sequence based on machine learning according to claim 1, It is characterized in that The method generates a corresponding coding matrix according to the sequence base features extracted from each group of natural RBS sequences of Bacillus subtilis, including: The vectors corresponding to all bases in each group of natural RBS sequences of Bacillus subtilis form a two-dimensional matrix, which is used as the encoding matrix, wherein the rows of the two-dimensional matrix represent the categories of the bases, and the columns of the two-dimensional matrix represent the serial numbers of the bases in the natural RBS sequences of Bacillus subtilis.

5. The method for generating an RBS sequence based on machine learning according to claim 1, It is characterized in that The step of inputting the training set into the RBS sequence generation model so that the encoder maps the training set from the training set space to a latent space to obtain a latent variable comprises: Inputting the training set into the RBS sequence generation model to obtain a mean vector and a variance vector corresponding to each two-dimensional matrix; The mean vector and the variance vector constitute the latent variable.

6. The method for generating an RBS sequence based on machine learning according to claim 5, It is characterized in that The step of inputting the training set into the RBS sequence generation model to obtain a mean vector and a variance vector corresponding to each two-dimensional matrix includes: Based on the linear function in the encoder, the product of each two-dimensional matrix and the set weight matrix is ​​calculated, and the sum with the set bias term is obtained to obtain the corresponding mean vector and variance vector.

7. The method for generating an RBS sequence based on machine learning according to claim 1, It is characterized in that The method further comprises: sampling the latent variables corresponding to each group of natural RBS sequences of Bacillus subtilis in the latent space based on a standard normal distribution; The step of inversely mapping the latent variables from the latent space back to the training set space by the decoder to obtain the reconstructed data set includes: the decoder inversely mapping the sampled latent variables from the latent space back to the training set space to obtain the reconstructed data set.

8. The method for generating an RBS sequence based on machine learning according to claim 1, It is characterized in that The step of obtaining the target Bacillus subtilis natural RBS sequence and inputting it into the trained RBS sequence generation model to obtain a generated RBS sequence of the target Bacillus subtilis natural RBS sequence comprises: Encoding the target Bacillus subtilis natural RBS sequence to extract sequence base features in the target Bacillus subtilis natural RBS sequence; Generate a corresponding coding matrix according to the sequence base features extracted from the natural RBS sequence of the target Bacillus subtilis; Based on the trained encoder, the encoding matrix corresponding to the target Bacillus subtilis natural RBS sequence is mapped into the latent space to obtain the target latent variable, and the decoder is used to inversely map the target latent variable from the latent space back to the training set space to obtain the generated RBS sequence of the target Bacillus subtilis natural RBS sequence.

9. A RBS sequence generation model training method, It is characterized in that include: Obtaining several groups of natural RBS sequences of Bacillus subtilis; Encoding each group of Bacillus subtilis natural RBS sequences to extract sequence base features in each group of Bacillus subtilis natural RBS sequences; Generate a corresponding coding matrix according to the sequence base features extracted from each group of Bacillus subtilis natural RBS sequences; Based on the encoding matrices corresponding to the plurality of groups of natural RBS sequences of Bacillus subtilis, a training set for training an RBS sequence generation model is generated, wherein the RBS sequence generation model includes an encoder and a decoder; The RBS sequence generation model is trained based on the following steps: Inputting the training set into the RBS sequence generation model, so that the encoder maps the training set from the training set space to the latent space to obtain latent variables, and inversely maps the latent variables from the latent space back to the training set space through the decoder to obtain a reconstructed data set, and the reconstructed data set is used as the generated RBS sequence set; A reconstruction error between the generated RBS sequence set and the training set is calculated, so as to optimize the model parameters of the encoder and the decoder based on the reconstruction error until a trained RBS sequence generation model is obtained.

10. An electronic device, It is characterized in that include: A memory and a processor, the memory The memory stores computer executable instructions, and the processor is used to execute the computer executable instructions to implement the method described in any one of claims 1-8.