Training method, prediction method and device for molecular property prediction model of lipid molecules
Through self-supervised pre-training and supervised fine-tuning technology based on the BERT model, a high-accuracy molecular property prediction model for lipid molecules is generated, which solves the problem of low accuracy in predicting lipid molecular properties in the existing technology and improves lipid performance. Delivery efficiency and formulation stability of plasmid nanoparticles.
Patent Information
- Application Number
- CN202410863288.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-29
AI Technical Summary
Existing AI models have low accuracy in predicting lipid molecular properties and cannot be effectively used to optimize the delivery efficiency, targeting and formulation stability of lipid nanoparticles.
A training method based on the BERT model is used to generate a molecular property prediction model for lipid molecules through self-supervised pre-training and supervised fine-tuning. The SMILES-style generated character mask sequence is used for pre-training, and fine-tuning training is performed based on wet experimental data. , obtain a highly accurate molecular property prediction model.
It improves the accuracy and efficiency of predicting the properties of lipid molecules, reduces the experimental cost of developing new lipid molecules, and improves the delivery efficiency and formulation stability of lipid nanoparticles.
Smart Images

Figure CN118398125B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of molecular property prediction, and in particular to a training method, a prediction method and a device for a molecular property prediction model for lipid molecules. Background Art
[0002] Lipid bilayer membrane is a bilayer membrane vesicle composed of a variety of lipid molecules, which can be used to encapsulate and deliver different types of substances and is widely used in the delivery of small molecules and nucleic acid drugs. For example, after the small molecules to be delivered are encapsulated in the lipid bilayer membrane, lipid nanoparticles (LNP) are formed. The lipid bilayer membrane includes ionizable lipids, structural lipids, neutral lipids and polyethylene glycol lipids. Among them, ionizable lipids are the main components of lipid bilayer membranes and the core of LNP delivery systems, playing a decisive role in the delivery efficiency, targeting, formulation stability and other aspects of the entire lipid nanoparticles. Therefore, it is necessary to further develop new ionizable lipid molecules and continuously improve LNP technology to obtain novel LNPs with good nucleic acid delivery efficiency.
[0003] As the basic attributes that describe the characteristics and behaviors of molecules, molecular properties are of great significance in research fields and specific applications such as pharmacology and materials chemistry. In recent years, the prediction of molecular properties (such as physicochemical properties, pharmacological activity, toxicity, etc.) assisted by artificial intelligence has become a research hotspot in the field of drug development. At present, AI models for predicting the molecular properties of small molecule drugs generally predict properties based on molecular descriptors. Such AI models are not suitable for predicting the molecular properties of lipid molecules, and the prediction results have the problem of low accuracy.
[0004] Based on this, how to develop a new AI model for predicting the molecular properties of lipid molecules to improve the prediction accuracy of molecular properties is a problem that needs to be solved at present. Summary of the invention
[0005] In order to solve or partially solve the problems existing in the related art, the present application provides a training method, a prediction method and a device for a molecular property prediction model for lipid molecules, which can obtain a molecular property prediction model for predicting the molecular properties of lipid molecules and obtain more accurate property prediction results.
[0006] The first aspect of the present application provides a training method for a molecular property prediction model for lipid molecules, comprising:
[0007] Acquire pre-training data and fine-tuning training data, wherein the pre-training data includes molecular information of sample lipids, and the fine-tuning training data includes molecular information of fine-tuning lipids and wet experimental data corresponding to preset molecular properties;
[0008] According to the molecular information of the sample lipid, a corresponding character mask sequence is generated;
[0009] Pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model;
[0010] A prediction task model is embedded downstream of the pre-trained BERT model, and fine-tuning training is performed in combination with the wet experimental data of the preset molecular properties to obtain the trained molecular property prediction model for predicting the preset molecular properties of the target lipid molecules.
[0011] The second aspect of the present application provides a method for predicting molecular properties of lipid molecules, comprising:
[0012] Obtaining molecular information of target lipid molecules;
[0013] The molecular information is input into the molecular property prediction model trained by the training method described in the first aspect above to obtain corresponding property prediction results.
[0014] The third aspect of the present application provides a device for predicting molecular properties of lipid molecules, comprising:
[0015] An information acquisition module, used to obtain molecular information of target lipid molecules;
[0016] The property prediction module is used to input the molecular information into the molecular property prediction model trained according to the training method described in the first aspect to obtain the corresponding property prediction results.
[0017] A fourth aspect of the present application provides an electronic device, including:
[0018] Processor; and
[0019] A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the training method as described in the first aspect or the prediction method as described in the second aspect.
[0020] In a fifth aspect, the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor executes the training method described in the first aspect or the prediction method described in the second aspect.
[0021] The sixth aspect of the present application provides a computer program product, including a computer program, characterized in that the computer program is used to execute computer program code instructions corresponding to the training method described in the first aspect or the prediction method described in the second aspect.
[0022] The technical solution provided by this application may have the following beneficial effects:
[0023] The training method of the molecular property prediction model for lipid molecules of the present application is based on the BERT model. The MarkedLM method is first used to complete self-supervised pre-training based on the molecular information of sample lipids. After the pre-trained BERT model is obtained, the molecular information of the fine-tuned lipids and the wet experimental data of the preset molecular properties are used to perform supervised fine-tuning training on the pre-trained BERT model and the downstream embedded prediction task model, thereby obtaining a molecular property prediction model that can predict the preset molecular properties of lipid molecules, obtaining high-throughput prediction efficiency and high-accuracy property prediction results, which helps to reduce the experimental cost of new lipid molecules and improve research and development efficiency.
[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail the exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0026] Figure 1 It is a schematic diagram of a flow chart of a method for training a molecular property prediction model for lipid molecules shown in the present application;
[0027] Figure 2 It is a flowchart of the pre-training method of the BERT model shown in Example 1 of the present application;
[0028] Figure 3 It is a structural diagram of the prediction task model shown in this application;
[0029] Figure 4 It is a schematic diagram of the process of fine-tuning training of the molecular property prediction model shown in this application;
[0030] Figure 5 It is a flowchart of the pre-training method of the BERT model shown in Example 2 of the present application;
[0031] Figure 6 It is a flowchart of the pre-training method of the BERT model shown in Example 3 of the present application;
[0032] Figure 7 It is a molecular property prediction method for lipid molecules shown in this application;
[0033] Figure 8 It is a schematic diagram of the structure of the molecular property prediction model shown in this application;
[0034] Fig. 9is a schematic diagram of the structure of a device for predicting molecular properties of lipid molecules shown in the present application;
[0035] Fig.10 It is a schematic diagram of the structure of the electronic device shown in this application. DETAILED DESCRIPTION
[0036] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0037] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0038] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0039] In the related technology, the AI model constructed by training based on molecular descriptors is not suitable for predicting the molecular properties of lipid molecules and LNPs, and the accuracy of the prediction results is low.
[0040] In response to the above problems, the present application provides a method for training a molecular property prediction model for lipid molecules, which can be used to train a molecular property prediction model for predicting the molecular properties of lipid molecules to obtain more accurate property prediction results.
[0041] The technical solution of the present application is described in detail below with reference to the accompanying drawings.
[0042] Example 1
[0043] See also Figure 1 , a training method for a molecular property prediction model for lipid molecules shown in the present application, comprising:
[0044] S110, obtaining pre-training data and fine-tuning training data, the pre-training data including molecular information of sample lipids, and the fine-tuning training data including molecular information of fine-tuning lipids and wet experimental data corresponding to preset molecular properties.
[0045] In this application, pre-training data refers to the training data used by the BERT model in the pre-training stage of the subsequent steps. Fine-tuning training data refers to the training data used by the BERT model and prediction task model in the subsequent steps for fine-tuning prediction.
[0046] The pre-training data collected in this step may include a large number of known lipid molecules, and may also include custom designed lipid molecules. Among them, the sample lipids can be various types of lipid molecules, such as ionizable lipids, structural lipids, neutral lipids and polymer lipids, etc., without limitation. It can be understood that the lipid molecule has a branch chain as the molecular head and one or more branch chains as the molecular tail. Among them, the molecular head is hydrophilic and the molecular tail is hydrophobic.
[0047] Among them, the molecular information of the sample lipid may include a corresponding SMILES formula (Simplified Molecular Input Line Formula System). In the present application, the sample lipid can be screened in advance according to the string length of the SMILES. For example, lipid molecules with a SMILES string length less than or equal to 128 characters are used as sample lipids. In other words, lipid molecules with a SMILES string length greater than 128 characters are not suitable for sample lipids.
[0048] In order to standardize the SMILES expression, in this embodiment, Canonical SMILES (standard smiles writing method of RDKiT software) can be used to uniformly represent the molecular information of each sample lipid. Taking the SMILES of a known sample lipid ALC0315 as an example, according to the Canonical writing method, it can be expressed as follows: CCCCCCCCC(CCCCCC)C(=O)OCCCCCCN(CCCCO)CCCCCCOC(=O)C(CCCCCC)CCCCCCCC.
[0049] Similarly, in the fine-tuning training data, the fine-tuning lipids can be various types of lipid molecules; the molecular information of the fine-tuning lipids includes the corresponding SMILES formula. The preset molecular properties can be the preset molecular properties corresponding to the lipid molecule, or the preset molecular properties of the corresponding LNP. For example, when the fine-tuning lipid is an ionizable lipid, the preset molecular properties of the LNP are equivalent to the molecular properties of the ionizable lipid.
[0050] In some embodiments, the preset molecular properties are divided into quantitative attributes or non-quantitative attributes. Among them, the preset molecular properties with quantitative attributes may include overall fluorescence intensity, heart fluorescence intensity, liver fluorescence intensity, spleen fluorescence intensity, lung fluorescence intensity, kidney fluorescence intensity, etc. Non-quantitative attributes may include particle size, encapsulation efficiency, toxicity, in vitro activity, in vitro toxicity, etc.; each molecular property of non-quantitative attributes is represented by a corresponding preset category.
[0051] Furthermore, the wet test data can be the true value corresponding to the preset molecular property. For example, the true value corresponding to the quantitative attribute is a specific numerical value. The true value of the non-quantitative attribute is the corresponding preset category. Taking particle size as an example, the true value corresponding to the wet test data is that the particle size is qualified or the particle size is unqualified. Taking toxicity as an example, the wet test data is toxic or non-toxic. Among them, in order to form a computer-readable form, different codes can be used in advance to represent the corresponding categories. For example, qualified particle size, qualified encapsulation rate, non-toxic toxicity, etc. can all be represented by True; unqualified particle size, unqualified encapsulation rate, toxicity, etc. can all be represented by False.
[0052] S120, generating a corresponding character mask sequence according to the molecular information of the sample lipids.
[0053] The molecular property prediction model of the present application is constructed based on the BERT (Bidirectional Encoder Representations from Transformers) model. Among them, the MaskedLM (i.e., Mask Language Model) method in the relevant technology is used to pre-train the BERT model. Optionally, MaskedLM can be integrated into the BERT model or set independently of the BERT model.
[0054] In some embodiments, a corresponding original character sequence is generated based on the SMILES formula of the sample lipids; a preset classification marker is added to the first position of the original character sequence; and when the length of the original character sequence is less than the preset sequence length, padding characters are added until the preset sequence length is reached to generate a character input sequence; the character input sequence is masked according to preset mask rules to generate a corresponding character mask sequence.
[0055] Specifically, based on the SMILES formula of the sample lipid, the SMILES formula can be converted into an original character sequence through relevant technologies such as a tokenizer model, that is, a string (i.e., a token) that can be processed by the BERT model. Furthermore, the preset classification marker is the [CLS] marker for the BERT model. By setting the [CLS] marker at the first position of the sequence, the vector in the [CLS] marker of the character prediction output layer of the BERT model can be extracted as the output result according to different types of prediction results.
[0056] Among them, the preset sequence length of the character input sequence can be 128 bits or 256 bits, which is selected according to different types of input data. Among them, the preset sequence length includes the length of all special characters and non-special characters. In this embodiment, the preset sequence length is 128 bits. When the length of the original character sequence is less than the preset sequence length, the preset filling character can be used to supplement it, and then combined with the first preset classification marker, the character input sequence can be formed. It can be understood that when the length of the original character sequence is equal to the preset sequence length, the original character sequence and the preset classification marker combined with the first position form the character input sequence together.
[0057] Furthermore, each character input sequence can be masked by MaskedLM to generate a character mask sequence for prediction learning by the BERT model. In a specific implementation, for a character input sequence, 15% of non-special characters are randomly selected, and among the selected 15% of non-special characters, 80% of the characters are randomly selected to be replaced with mask characters, such as [MASK], and another 10% of the characters are randomly selected and randomly replaced with non-special characters different from the original characters, and the remaining 10% of the characters remain unchanged, thereby generating a corresponding character mask sequence.
[0058] Among them, non-special characters refer to SMILES-style characters used to constitute lipid molecules, and each non-special character is used to represent a non-hydrogen atom, a bracket, a subscript number or a double bond, etc. It can be understood that special characters refer to characters with specific functions such as preset classification markers [CLS], fill characters [PAD], mask characters [MASK], separator characters [SEP], etc. Of course, special characters can also be replaced by other different codes, which is not limited here.
[0059] S130, pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model.
[0060] In some implementations, during the pre-training phase, the BERT model includes an input layer, multiple hidden layers, a character prediction output layer, and a corresponding first loss function.
[0061] See also Figure 2 In some implementations, a character mask sequence is input into a hidden layer, and a corresponding character prediction result is output through a character prediction output layer; based on the character prediction result and the character input sequence, a first loss value calculated by a first loss function is back-propagated to iteratively adjust the network parameters of each hidden layer until the first loss value of the first loss function converges, thereby obtaining a pre-trained BERT model.
[0062] It can be understood that in the related art, in the pre-training stage, the BERT model predicts the mask characters in the character mask sequence respectively, and generates a vector of non-special characters in each masked position. Specifically, the 1*768d vector corresponding to each masked character can be output in the character prediction output layer, and then the character with the highest probability in each masked position is obtained through softmax as the corresponding character prediction result. The first loss value is then calculated for the character prediction result and the original character at the corresponding position in the character input sequence, and the network parameters of the BERT model are iteratively adjusted according to back propagation until the first loss value converges. The converged network parameters are used as pre-trained target pre-training parameters to obtain a pre-trained BERT model. Optionally, the first loss function can be, for example, a cross entropy loss function.
[0063] S140, embedding a prediction task model downstream of the pre-trained BERT model, and performing fine-tuning training using fine-tuning training data to obtain a trained molecular property prediction model for predicting preset molecular properties of target lipid molecules.
[0064] In this step, the amount of fine-tuning training data can be much smaller than the amount of pre-training data. After obtaining the pre-trained BERT model, the prediction task model is embedded in the downstream of the BERT model, that is, after the last hidden layer, and the network parameters of the BERT model are further fine-tuned according to the fine-tuning training data, so that the fine-tuned BERT model and the fine-tuned prediction task model are combined to form a molecular property prediction model. Among them, the prediction task model can be a multi-layer perceptron (MLP). The prediction task model is set as a classification prediction model or a regression prediction model according to the attributes of the preset molecular properties.
[0065] It can be understood that the target task of the molecular property prediction model of the present application is to predict a certain molecular property of lipid molecules or LNP. Accordingly, according to different target tasks, in the fine-tuning training data, the corresponding wet experimental data is pre-selected to perform supervised fine-tuning training on the BERT model. In the present application, for each preset molecular property, a corresponding molecular property prediction model can be independently trained according to the corresponding wet experimental data; alternatively, the molecular property prediction models with different prediction tasks are integrated to form a large model that can simultaneously predict multiple molecular properties.
[0066] Furthermore, in this step, the molecular information of the fine-tuning lipids in the fine-tuning training data and the wet experimental data corresponding to the preset molecular properties are combined to train a molecular property prediction model that can predict the corresponding preset molecular properties.
[0067] See also Figure 3 and Figure 4In some specific implementations, the molecular information of fine-tuning lipids is input into a pre-trained BERT model, and a character embedding vector of a preset dimension is obtained through the last hidden layer of the BERT model; the character embedding vector is input into the prediction task model for nonlinear transformation, and the corresponding property prediction result is output through the output layer of the prediction task model; according to the property prediction result and the corresponding wet experimental data, the corresponding fourth loss value is calculated through the fourth loss function; back propagation is performed according to the fourth loss value to iteratively adjust the network parameters of the BERT model and the prediction task model until the fourth loss value of the fourth loss function converges, thereby obtaining a trained molecular property prediction model.
[0068] Specifically, in the fine-tuning stage, the SMILES formula of the fine-tuned lipid is converted into the above-mentioned character input sequence that meets the preset sequence length without masking, and is input through the input layer of the pre-trained BERT. After passing through multiple hidden layers, the last hidden layer outputs an n*768-dimensional character vector, where n is the preset sequence length. Among them, only the 1*768-dimensional character embedding vector (i.e., token embedding) in the first [CLS] is extracted as the character embedding vector of the input prediction task model, i.e., the MLP model. See also Figure 3 In some specific implementations, the character embedding vector is input into the prediction task model for nonlinear transformation, including: performing nonlinear transformation layer by layer through multiple linear layers and activation functions, and designing the dimension of the last linear layer according to the attributes of the preset molecular properties. For example, the multiple linear layers may include 4 layers, the dimension of the first linear layer may be 512 dimensions, the dimension of the second linear layer may be 256 dimensions, the dimension of the third linear layer may be 128 dimensions, and the dimension of the fourth linear layer is m.
[0069] When the preset molecular property is a non-quantitative attribute, the prediction task model is a classification prediction model, and m is the number of categories corresponding to the non-quantitative attribute of the preset molecular property; accordingly, the dimension of the fourth linear layer is designed according to the category of the preset molecular property, and the type of the fourth loss function is a cross entropy loss function. It can be understood that when m is greater than 1, the category with the highest probability can be used as the corresponding property prediction result.
[0070] When the preset molecular property is a quantitative attribute, the prediction task model is a regression prediction model, and the dimension m of the fourth linear layer is 1; accordingly, the dimension of the output vector of the fourth linear layer is 1, and the type of the fourth loss function is the mean square loss function (MSEloss). Finally, the fourth linear layer is used as the output layer to output the corresponding property prediction result.
[0071] Furthermore, in some implementations, an activation function is set between each two adjacent linear layers, so that the output vector of each linear layer undergoes a nonlinear change through the activation function before being input into the next linear layer. Optionally, the activation function may be, for example, a GELU activation function.
[0072] In order to avoid overfitting, in some implementations, some network parameters are randomly reset to zero at a preset ratio between each two adjacent linear layers. For example, in each round of forward propagation, some network parameters can be randomly reset to zero (dropout) at a ratio of 10% to avoid overfitting of model parameters and make the model more generalizable.
[0073] It can be understood that the prediction task model, which is a classification prediction model or a regression prediction model, can be trained according to the same training principle. Among them, back propagation is performed according to the fourth loss value to iterate the network parameters, so that the network parameters of the pre-trained BERT model are fine-tuned, and the target network parameters are obtained when the fourth loss value reaches convergence; at the same time, the network parameters of each linear layer of the prediction task model also obtain the target network parameters when the fourth loss value reaches convergence, thereby obtaining a trained molecular property prediction model. In other words, in each round of iteration, the network parameters of the BERT model and the prediction task model are iterated synchronously.
[0074] The following is a test set to evaluate the prediction performance of the trained molecular property prediction model. The test set includes different sample ionizable lipids and corresponding prepared LNPs, each of which has a true value corresponding to each molecular property.
[0075] It can be understood that for each preset molecular property of lipid molecules or / LNP, the corresponding molecular property prediction model is trained to perform one-to-one accurate prediction. For example, the molecular property prediction model used to predict particle size, the molecular property prediction model used to predict encapsulation efficiency, and so on. The following takes 9 different molecular properties as examples to evaluate the performance of 9 molecular property prediction models for different purposes.
[0076] Specifically, the SMILES of the ionizable lipid samples in the test set were input into each molecular property prediction model, and the prediction results of each molecular property prediction model were obtained. Then, the R of each prediction model was calculated. 2 and F1 score. 2 It is used to evaluate the performance of molecular property prediction models that predict molecular properties of quantitative attributes. F1 is used to evaluate the performance of molecular property prediction models that predict molecular properties of non-quantitative attributes.
[0077] R 2 The score calculation formula is:
[0078]
[0079] in, is the serial number of each LNP in the test set (i.e. LNPs), For the The predicted value of the same molecular property of LNPs, is the true value of the same molecular property of each LNP, It is the average of all true values of the same preset molecular property in the test set.
[0080] The calculation formula of F1 score is:
[0081]
[0082] Among them, the concepts of TP, TN, FP, and FN are introduced. For the molecular properties of non-quantitative attributes, TP represents the number of experiments where the true value is True and the predicted value is also True; TN represents the number of experiments where the true value is False and the predicted value is also False; FP represents the number of experiments where the true value is False and the predicted value is True; FN represents the number of experiments where the true value is True and the predicted value is False.
[0083] Table 1
[0084]
[0085] From the data in Table 1 above, we can see that R 2 Or the larger the F1 score, the better the corresponding model performance. The molecular property prediction model obtained by the training method of the present application has a high accuracy rate for the molecular properties of different attributes of LNP.
[0086] From this example, it can be seen that the training method of the molecular property prediction model for lipid molecules of the present application is based on the BERT model. The MaskedLM method is first used to complete self-supervised pre-training based on the molecular information of the sample lipids. After obtaining the pre-trained BERT model, the molecular information of the fine-tuned lipids and the wet experimental data of the preset molecular properties are used to perform supervised fine-tuning training on the pre-trained BERT model and the downstream embedded prediction task model, thereby obtaining a molecular property prediction model that can predict the preset molecular properties of lipid molecules or LNPs, obtaining high-throughput prediction efficiency and high-accuracy property prediction results, which helps to reduce the experimental cost of research and development of new lipid molecules or LNPs and improve research and development efficiency.
[0087] Example 2
[0088] With respect to the above step S130, another embodiment of the present application further provides a pre-training method for a BERT model. The difference from the above embodiment 1 is that the pre-training data of step S110 additionally adds molecular structure information specific to lipid molecules, and after pre-training based on richer pre-training data, a new pre-trained BERT model is obtained to improve the prediction accuracy applied to the field of lipid molecules or LNPs.
[0089] In a specific embodiment, the pre-training data also includes molecular structure labels corresponding to sample lipids, and the molecular structure labels include one or more of connection atomic number labels, tail chain quantity labels, and molecular head and tail information labels of the sample lipids.
[0090] The connecting atom refers to the atom in the lipid molecule that is used to connect the head and tail of the molecule. The connecting atom number refers to the arrangement number of the character position corresponding to the connecting atom in the lipid molecule SMILES string. The connecting atom number is less than or equal to 56. Accordingly, the connecting atom number label of the same sample lipid is one of the numbers 1 to 56.
[0091] The number of tail chains refers to the number of branch chains at the molecular tail of the lipid molecule. The number of tail chains of each lipid molecule is 2 to 5. Accordingly, the number of tail chains of the same sample lipid is labeled as one of the numbers 2 to 5.
[0092] Among them, the molecular head and tail information refers to the classification information that each character (token) in the SMILES string of the lipid molecule belongs to the molecular head, molecular tail or other categories. Accordingly, in the SMILES string of the same sample lipid, the corresponding molecular head and tail information label can be pre-set with different preset codes to represent the classification information of each character. For example, when the character represents the atom of the molecular head, it is represented by the corresponding preset code "1"; when the character represents the atom of the molecular tail, it is represented by the corresponding preset code "2"; when the character represents a special mark such as [CLS], [PAD], brackets, double bonds, etc., which are not the molecular head atoms and tail atoms, the corresponding preset code "0" is used to represent. Of course, the preset code is only used as an example here, and different classification information only needs to be distinguished and represented by different digital codes. For example, when the character input sequence corresponding to the SMILES string is "[CLS]...N(CCCCO)...CC...C", the corresponding molecular head and tail information label is "0...10111110...22...2".
[0093] Accordingly, the BERT model includes multiple hidden layers, and parallel character prediction output layers and structure prediction output layers; wherein the character prediction output layer is used to output character prediction results, and the structure prediction output layer is used to output structure prediction results, and the structure prediction results correspond to the types of molecular structure labels contained in the pre-training data. In some embodiments, the character prediction output layer and each structure prediction output layer are arranged in parallel and share hidden layers.
[0094] Specifically, according to the types of molecular structure labels, corresponding structure prediction output layers are set for the BERT model to be pre-trained. The number of structure prediction output layers is the same as the types of molecular structure labels in the pre-training data. In other words, each structure prediction output layer is used to independently predict and output the structure prediction results of the corresponding type of molecular structure labels, and different structure prediction output layers have different structure prediction results.
[0095] For example, when the pre-training data also includes the connected atomic numbers of sample lipids, a parallel structure prediction output layer is added on the basis of the existing character prediction output layer to separately output the structure prediction results corresponding to the sample lipids, namely the connected atomic numbers.
[0096] For another example, when the pre-training data also includes the connection atomic number label and the molecular head and tail information label of the sample lipid, two layers of structure prediction output layer are added on the basis of the existing character prediction output layer, and the character prediction output layer and the two layers of structure prediction output layer are independently and parallelly arranged. Such a design enables the character prediction output layer to output the character prediction result of the sample lipid; one layer of the structure prediction output layer outputs the connection atomic number corresponding to the sample lipid, and the other layer of the structure prediction output layer outputs the molecular head and tail information corresponding to the sample lipid.
[0097] As described above, the number of structure prediction output layers is increased according to the number of molecular structure labels in the pre-training data, which will not be described in detail here.
[0098] See also Figure 5 , the pre-training method of the BERT model of this embodiment will be further introduced below in combination with the specific implementation method.
[0099] S210, inputting the character mask sequence into the hidden layer, outputting the corresponding character prediction result through the character prediction output layer, and outputting the structure prediction result corresponding to the second preset classification marker through at least one structure prediction output layer.
[0100] In this step, the method for generating the character mask sequence is the same as the above step S120, that is, conversion is performed based on the SMILES formula of the sample lipids to form a character mask sequence with the first preset classification marker [CLS] marker at the first position and a length that meets the preset sequence length, i.e., 128 bits.
[0101] Furthermore, the first preset classification marker and the second preset classification marker are both [CLS] markers. After the character mask sequence extracts features layer by layer through multiple hidden layers, the corresponding results are independently output from the character prediction output layer and the structure prediction output layer. Among them, the corresponding character prediction result is obtained through the character prediction output layer. The corresponding structure prediction result is obtained by extracting each structure prediction output layer; the structure prediction result can be, for example, the connected atomic sequence number, the number of tail chains, or the molecular head and tail information corresponding to the predicted sample lipid. When the structure prediction result is the connected atomic sequence number or the number of tail chains, the vector in the second preset classification marker, i.e., [CLS], is extracted as the structure prediction result. When the structure prediction result is the molecular head and tail information, the predicted classification information corresponding to each position outside the second preset classification marker is used as the structure prediction result. It can be understood that the number and function of the structure prediction output layer are designed according to the number of molecular structure labels contained in the pre-training data, and then used to predict the corresponding structure prediction result of the output.
[0102] S220, calculating a corresponding first loss value through a first loss function according to the character prediction result and the original character at the corresponding position in the character input sequence; and calculating a corresponding second loss value through a second loss function according to the molecular structure label and the corresponding structure prediction result.
[0103] In this embodiment, both the first loss function and the second loss function may be cross entropy loss functions. When the structure prediction output layer has multiple layers arranged in parallel, the second loss function corresponding to each structure prediction output layer may be the same. In other embodiments, the first loss function and the second loss function may also be different.
[0104] It can be understood that the first loss value corresponding to the character prediction result and the character input sequence is calculated by the first loss function; synchronously, the second loss value corresponding to the molecular structure label and the corresponding structure prediction result is calculated by each second loss function. That is, this step can obtain a first loss value and one or more second loss values.
[0105] S230, performing back propagation according to the first loss value and at least one second loss value to iteratively adjust the network parameters of each hidden layer until the sum of the first loss value of the first loss function and the second loss values of each second loss function reaches convergence, thereby obtaining a pre-trained BERT model.
[0106] In this step, the first loss value and at least one second loss value may be added or weighted to obtain a total loss value; back propagation is performed based on the total loss value to iteratively adjust the network parameters of each hidden layer. With multiple rounds of iterations, when the total loss values converge, the converged network parameters are used as pre-trained target pre-training parameters to obtain a pre-trained BERT model.
[0107] After obtaining the pre-trained BERT model in this step S230, the prediction task model can be connected downstream with reference to the above S140, and supervised fine-tuning training can be performed in combination with the molecular information of the fine-tuned lipids and the wet experimental data corresponding to the preset molecular properties. It should be supplemented that in the process of fine-tuning training, the downstream of the pre-trained BERT model in this embodiment, that is, the last hidden layer, is connected to the first linear layer of the MLP model, and the 1*768-dimensional vector in the first classification marker [CLS] is extracted from the output result of the BERT model as the input data of the MLP model. Such a design allows the 1*768-dimensional character embedding vector [CLS] of the last hidden layer of the BERT model to be extracted as the input data of the prediction task model, that is, the MLP model. Similarly, with reference to the fine-tuning process in S140, the network parameters of the pre-trained BERT model are fine-tuned, and the target network parameters are obtained when the fourth loss value reaches convergence; at the same time, the network parameters of each linear layer of the prediction task model also obtain the corresponding target network parameters when the fourth loss value reaches convergence, thereby obtaining a trained molecular property prediction model.
[0108] From this example, we can see that by adding information about the molecular structure characteristics of lipid molecules to the pre-training data to pre-train the BERT model, the specificity of lipid molecules can be learned to improve the accuracy of the molecular property prediction model in predicting the molecular properties of lipid molecules.
[0109] Example 3
[0110] In order to enable the BERT model to better learn the molecular information characteristics of lipid molecules, for the above-mentioned step S110, another embodiment of the present application also provides a pre-training method for a BERT model. The difference from the above-mentioned embodiment 1 is that in the pre-training data of this embodiment, the molecular information of the sample lipids includes the original SMILES formula, the positive sample SMILES formula and the negative sample SMILES formula of the sample lipids. Among them, the original SMILES formula and the positive sample SMILES formula refer to the SMILES formula formed by the same lipid molecule using different SMILES writing methods. The negative sample SMILES formula refers to an erroneous SMILES formula formed by arbitrarily swapping the positions of two or more different elements on the basis of the original SMILES formula.
[0111] Among them, different SMILES writing methods in related software can be used to generate different SMILES formulas for the same sample lipid. For example, taking the SMILES of a known sample lipid ALC0315 as an example, the SMILES formula obtained according to the Canonical writing method can be used as the original SMILES formula of the sample lipid, that is, the original character sequence. In addition, any other writing method in the related software is used to form a positive sample SMILES formula, such as writing method 1 and writing method 2 shown in the following table, which can form the corresponding positive sample SMILES formula. In addition, by randomly swapping the positions of any two atoms of different elements in the original SMILES formula, the corresponding negative sample SMILES formula can be obtained. For example, in Table 2 below, the atoms corresponding to the underlined part of the original SMILES formula of ALC0315 are the atoms whose positions are exchanged.
[0112]
[0113] In some embodiments, after generating corresponding positive sample SMILES formula and negative sample SMILES formula for each sample lipid, a molecular information combination is formed according to a preset rule to form a character input sequence of the BERT model during pre-training. In some specific embodiments, the original SMILES formula of the sample lipid is combined with the positive sample SMILES formula according to a preset probability, such as 50%, or combined with the negative sample SMILES formula according to a preset probability, such as 50%; and a preset separation marker is used between the original SMILES formula and the positive / negative sample SMILES formula to separate, so as to obtain a molecular information combination corresponding to the sample lipid that conforms to the preset arrangement format. The preset separation marker can be, for example, [SEP]. The molecular information combination of the preset arrangement format can be, for example: [CLS][original SMILES formula][SEP][positive sample SMILES formula], or [CLS][original SMILES formula][SEP][negative sample SMILES formula]. That is, a complete molecular information combination contains two SMILES formulas; according to the preset probability, the latter SMILES formula may be a positive sample SMILES formula, or a negative sample SMILES formula.
[0114] Furthermore, in order to meet the character length requirement of the BERT model, if the total length of the two SMILES formulas in the above molecular information combination is less than the preset sequence length, such as 256, a preset padding character is used to supplement the end of the sequence to obtain a character input sequence that meets the preset sequence length.
[0115] It can be understood that after forming a character input sequence with a preset arrangement format and a preset sequence length, a corresponding character mask sequence is generated in accordance with the MaskedLM method in S120 above, which will not be described in detail here.
[0116] Furthermore, the pre-training data of this embodiment also includes positive and negative labels corresponding to sample lipids. Wherein, when the character input sequence contains a positive sample SMILES formula, the sample lipid has a corresponding positive label. When the character input sequence contains a negative sample SMILES formula, the sample lipid has a corresponding negative label. Of course, the aforementioned positive label can also be replaced by other expressions, such as "true", "TRUE", "1", etc., which are only used as examples and are not limited. Similarly, the aforementioned negative and positive labels can also be replaced by other expressions, such as "false", "False", "0", etc., which are only used as examples and are not limited.
[0117] In this embodiment, according to the current pre-training data, the BERT model to be trained includes multiple hidden layers, and parallel character prediction output layers and positive and negative prediction output layers; wherein the character prediction output layer is used to output the character prediction results, and the positive and negative prediction output layer is used to output the positive and negative prediction results. In other words, the character prediction output layer and the positive and negative prediction output layer have a common hidden layer, and the two are independently arranged in parallel to output corresponding results for the character input sequence of the same sample lipid. Similarly, according to the above-mentioned expression form of the positive and negative labels, the positive and negative prediction results can be, for example, "positive" or "negative", which is only used as an example here and is not limited.
[0118] See also Figure 6 , the pre-training method of the BERT model of this embodiment will be further introduced below in combination with the specific implementation method.
[0119] S310, inputting the character mask sequence into the hidden layer, outputting the corresponding character prediction results through the character prediction output layer, and outputting the corresponding positive and negative prediction results through the positive and negative prediction output layer.
[0120] In this embodiment, according to the above description, the character mask sequence includes two tokens corresponding to the SMILES format, and the total length of the character mask sequence after adding the padding characters is 256.
[0121] Similarly, referring to the description in S210, after the character mask sequence is input into the hidden layer, the character mask sequence extracts features layer by layer through the multiple hidden layers, and then the corresponding results are independently output from the character prediction output layer and the positive and negative prediction output layer. The corresponding character prediction results are obtained through the character prediction output layer. The corresponding positive and negative prediction results are obtained by extracting the vectors in the third preset classification markers of the positive and negative prediction output layers.
[0122] It can be understood that the third preset classification marker is similarly [CLS].
[0123] S320, calculating a corresponding first loss value through a first loss function according to the character prediction result and the character input sequence; and calculating a corresponding third loss value through a third loss function according to the positive and negative labels and the corresponding positive and negative prediction results.
[0124] In this embodiment, both the first loss function and the third loss function may be cross entropy loss functions.
[0125] It can be understood that the first loss function is used to calculate the first loss value corresponding to the character prediction result and the character input sequence; synchronously, the third loss function is used to calculate the third loss value corresponding to the positive and negative labels and the corresponding positive and negative prediction results.
[0126] S330, performing back propagation according to the first loss value and the third loss value to iteratively adjust the network parameters of each hidden layer until the sum of the first loss value of the first loss function and the third loss value of the third loss function reaches convergence, thereby obtaining a pre-trained BERT model.
[0127] In this step, the first loss value and the third loss value can be added or weighted to obtain a total loss value; back propagation is performed based on the total loss value to iteratively adjust the network parameters of each hidden layer of the BERT model. Similarly, when the first loss value and the third loss value both reach convergence, the converged network parameters are used as pre-trained target pre-training parameters to obtain a pre-trained BERT model.
[0128] After obtaining the pre-trained BERT model in step S330, the prediction task model can be connected downstream with reference to the above step S140, and supervised fine-tuning training can be performed in combination with the molecular information of the fine-tuned lipids and the wet experimental data to obtain a trained molecular property prediction model. This will not be repeated here.
[0129] It can be seen from the above three embodiments that in the training method of the present application, different pre-training data can be used to pre-train the BERT model to obtain different pre-trained BERT models. At the same time, each pre-trained BERT model has learned the unique molecular information of lipid molecules through mask training, and then after fine-tuning the network parameters using wet experimental data, the molecular properties corresponding to lipid molecules or LNPs can be predicted in a targeted manner.
[0130] See also Figure 7 and Figure 8 One embodiment of the present application also provides a method for predicting molecular properties of lipid molecules, which is based on the molecular property prediction model obtained in the above embodiments. The prediction method includes:
[0131] S410, obtaining molecular information of target lipid molecules.
[0132] In the present application, the target lipid molecules can be ionizable lipids, structural lipids, neutral lipids, polymer lipids, etc., without limitation thereto.
[0133] The molecular information of the target lipid molecule includes, for example, the corresponding SMILES formula. In this embodiment, it can be expressed according to the writing method of Canonical SMILES. Still taking the lipid molecule ALC0315 as an example, its SMILES formula can be expressed as: CCCCCCCCC(CCCCCC)C(=O)OCCCCCCN(CCCCO)CCCCCCOC(=O)C(CCCCCC)CCCCCCCC.
[0134] S420, inputting the molecular information into the trained molecular property prediction model to obtain corresponding property prediction results.
[0135] In this step, before the SMILES of the target lipid molecule is input into the model, relevant technologies such as tokenizer can be used to convert the SMILES into corresponding characters (tokens) to form an original character sequence. When the original character sequence is less than the preset character length of 128, a preset filler character such as [PAD] is used to supplement the end of the sequence. And add a preset classification marker [CLS] at the beginning to form a complete character input sequence, and then input the character input sequence into the trained molecular property prediction model for prediction. For example, the character input sequence of the above-mentioned lipid molecule ALC0315 is shown in the following table, so that the molecular property prediction model makes predictions based on the following complete character input sequence.
[0136]
[0137] Furthermore, the trained molecular property prediction model can be the molecular property prediction model trained in the above-mentioned embodiment 1, embodiment 2 or embodiment 3. It can be understood that the molecular property prediction model is composed of a BERT model and a downstream prediction task model. Specifically, in the trained molecular property prediction model, the last hidden layer of its BERT model is connected to the first linear layer of the prediction task model, and the 1*768 dimensional vector of [CLS] of the last hidden layer is extracted and input into the downstream prediction task model such as the MLP model. After the multi-layer linear layer of the MLP model performs layer-by-layer nonlinear transformation and activation, the corresponding property prediction result is output.
[0138] Among them, when the molecular property prediction model is used to predict the molecular property of a certain quantitative attribute, the prediction task model is a trained regression model, and the property prediction result is a specific numerical value. When the molecular property prediction model is used to predict the molecular property of a certain non-quantitative attribute, the prediction task model is a trained classification model, and the property prediction result is the category with the highest probability.
[0139] In this embodiment, for each molecular property of the target lipid molecule, a pre-trained molecular property prediction model can be used for prediction. That is, for different molecular property prediction tasks, there are independently trained molecular property prediction models. Such a design ensures that each molecular property can be predicted by a customized model, ensuring the accuracy of the prediction results.
[0140] Taking the molecular property prediction model trained in Example 1 as an example, the prediction effect of the molecular property prediction model of the present application will be introduced in combination with specific experimental data.
[0141] Among them, the target lipid molecule is the ionizable lipid molecule MTL215, and the CAS number is 2999552-47-3. After the target lipid molecule is made into lipid nanoparticles, i.e., LNPs, according to the relevant method, the corresponding molecular properties, i.e., particle size, encapsulation efficiency, overall fluorescence intensity, fluorescence intensity of total bioluminescence photons in the heart, fluorescence intensity of total bioluminescence photons in the liver, fluorescence intensity of total bioluminescence photons in the spleen, fluorescence intensity of total bioluminescence photons in the lungs, fluorescence intensity of total bioluminescence photons in the kidneys and toxicity are truly detected to obtain true experimental values, wherein the total bioluminescence photons in the organ are the total bioluminescence photons in the organ 6 hours after in vivo administration, and the overall fluorescence intensity is the multiple of the total bioluminescence photons in vivo relative to MC3 6 hours after in vivo administration. The preparation method of lipid nanoparticles, particle size, encapsulation efficiency, experimental method of fluorescence intensity and total number of luminescent photons, etc. refer to the relevant introduction of the applicant's other patents (application number CN202310400925.4 or application number CN202211419648.3), which will not be elaborated here.
[0142] In addition, after the SMILES formula of MTL215 was generated into a 128-bit character input sequence, 9 molecular property prediction models trained with different wet experimental data were input respectively to obtain the corresponding prediction values. The experimental values (i.e., true values) and prediction values of each molecular property are shown in Table 3 below:
[0143] Table 3
[0144] It can be seen from the above table that the molecular property prediction model of the present application for predicting different molecular properties has a high prediction accuracy for non-quantitative attributes compared to experimental values; the prediction results for quantitative attributes have a smaller deviation and also a higher accuracy.
[0145] Corresponding to the aforementioned application function realization method embodiment, the present application also provides a molecular property prediction device for lipid molecules and corresponding embodiments.
[0146] Fig. 9It is a schematic diagram of the structure of the molecular property prediction device for lipid molecules shown in this application.
[0147] See also Fig. 9 The molecular property prediction device for lipid molecules shown in the present application includes an information acquisition module 910 and a property prediction module 920. Among them:
[0148] The information acquisition module 910 is used to acquire molecular information of target lipid molecules.
[0149] The property prediction module 920 is used to input the molecular information into the molecular property prediction model trained by the training method of any of the above embodiments to obtain the corresponding property prediction result.
[0150] The molecular property prediction device of the present application can be used to predict the molecular properties of various lipid molecules and obtain relatively accurate property prediction results, which is beneficial to assist the development of new lipid molecules, reduce experimental costs, and improve research and development efficiency.
[0151] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0152] Fig.10 It is a schematic diagram of the structure of the electronic device shown in this application.
[0153] See also Fig.10 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0154] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0155] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0156] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0157] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0158] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0159] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for training a molecular property prediction model for lipid molecules, characterized in that: include: Acquire pre-training data and fine-tuning training data, wherein the pre-training data includes molecular information of sample lipids, and the fine-tuning training data includes molecular information of fine-tuning lipids and wet experimental data corresponding to preset molecular properties; According to the molecular information of the sample lipid, a corresponding character mask sequence is generated; Pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model; the BERT model includes multiple hidden layers, a character prediction output layer and a corresponding first loss function; wherein the character mask sequence is input into the hidden layer, and the corresponding character prediction result is output through the character prediction output layer; according to the character prediction result and the original character at the corresponding position in the character input sequence, back propagation is performed through the first loss value calculated by the first loss function to iteratively adjust the network parameters of each hidden layer until the first loss value of the first loss function converges to obtain a pre-trained BERT model; Embedding a prediction task model downstream of the pre-trained BERT model, and performing fine-tuning training using the fine-tuning training data to obtain the trained molecular property prediction model for predicting the preset molecular properties of the target lipid molecule; Wherein, the fine-tuning training is performed using the fine-tuning training data to obtain the trained molecular property prediction model, including: The molecular information of the fine-tuning lipid is input into the pre-trained BERT model, and a character embedding vector of a preset dimension is obtained through the last hidden layer of the BERT model; the character embedding vector is input into the prediction task model for nonlinear transformation, and the corresponding property prediction result is output through the output layer of the prediction task model; according to the property prediction result and the corresponding wet experimental data, the corresponding fourth loss value is calculated through the fourth loss function; back propagation is performed according to the fourth loss value to iteratively adjust the network parameters of the BERT model and the prediction task model until the fourth loss value of the fourth loss function converges, so as to obtain a trained molecular property prediction model.
2. The training method according to claim 1, characterized in that: The molecular information of the sample lipid includes the SMILES formula of the sample lipid; The step of generating a corresponding character mask sequence according to the molecular information of the sample lipids comprises: According to the SMILES formula of the sample lipid, a corresponding original character sequence is generated; Adding a preset classification marker to the first position of the original character sequence; and when the length of the original character sequence is less than the preset sequence length, adding padding characters until the preset sequence length is reached to generate a character input sequence; The character input sequence is masked according to a preset masking rule to generate the corresponding character mask sequence.
3. The training method according to claim 1 or 2, characterized in that: The prediction task model is a classification prediction model or a regression prediction model; the method further includes: According to the non-quantitative attribute or the quantitative attribute of the preset molecular property, the type of the prediction task model is preset to obtain the property prediction result of the corresponding attribute.
4. A training method for a molecular property prediction model for lipid molecules, characterized in that: include: Acquire pre-training data and fine-tuning training data, wherein the pre-training data includes molecular information of sample lipids, and the fine-tuning training data includes molecular information of fine-tuning lipids and wet experimental data corresponding to preset molecular properties; wherein the molecular information of the sample lipids includes a SMILES formula of the sample lipids, and the pre-training data also includes a molecular structure label corresponding to the sample lipids, and the molecular structure label includes one or more of the connecting atomic number, the number of tail chains, and the molecular head and tail information of the sample lipids; According to the molecular information of the sample lipid, a corresponding character mask sequence is generated; Pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model; wherein the BERT model includes multiple hidden layers, and parallel character prediction output layers and structure prediction output layers, and the corresponding number of structure prediction output layers are pre-set according to the number of the molecular structure labels; wherein the character prediction output layer is used to output the character prediction result, and the structure prediction output layer is used to output the structure prediction result, and the structure prediction result corresponds to the molecular structure label; Embedding a prediction task model downstream of the pre-trained BERT model, and performing fine-tuning training using the fine-tuning training data to obtain the trained molecular property prediction model for predicting the preset molecular properties of the target lipid molecule; Wherein, the fine-tuning training is performed using the fine-tuning training data to obtain the trained molecular property prediction model, including: The molecular information of the fine-tuning lipid is input into the pre-trained BERT model, and a character embedding vector of a preset dimension is obtained through the last hidden layer of the BERT model; the character embedding vector is input into the prediction task model for nonlinear transformation, and the corresponding property prediction result is output through the output layer of the prediction task model; according to the property prediction result and the corresponding wet experimental data, the corresponding fourth loss value is calculated through the fourth loss function; back propagation is performed according to the fourth loss value to iteratively adjust the network parameters of the BERT model and the prediction task model until the fourth loss value of the fourth loss function converges, so as to obtain a trained molecular property prediction model.
5. The training method according to claim 4, characterized in that: The method of pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model includes: Inputting the character mask sequence corresponding to the sample lipid into the hidden layer, outputting the corresponding character prediction result through the character prediction output layer, and outputting the corresponding structure prediction result through at least one of the structure prediction output layers; Calculating a corresponding first loss value by a first loss function according to the character prediction result and the original character at the corresponding position in the character input sequence; and calculating a corresponding second loss value by a second loss function according to the molecular structure label and the corresponding structure prediction result; Back propagation is performed according to the first loss value and at least one of the second loss values to iteratively adjust the network parameters of each hidden layer until the sum of the first loss value of the first loss function and the second loss values of each of the second loss functions converges, thereby obtaining a pre-trained BERT model.
6. The training method according to claim 4, characterized in that: The prediction task model is a classification prediction model or a regression prediction model; the method further includes: According to the non-quantitative attribute or the quantitative attribute of the preset molecular property, the type of the prediction task model is preset to obtain the property prediction result of the corresponding attribute.
7. The training method according to any one of claims 4 to 6, characterized in that: The step of generating a corresponding character mask sequence according to the molecular information of the sample lipids comprises: According to the SMILES formula of the sample lipid, a corresponding original character sequence is generated; Adding a preset classification marker to the first position of the original character sequence; and when the length of the original character sequence is less than the preset sequence length, adding padding characters until the preset sequence length is reached to generate a character input sequence; The character input sequence is masked according to a preset masking rule to generate the corresponding character mask sequence.
8. A method for training a molecular property prediction model for lipid molecules, characterized in that: include: Acquire pre-training data and fine-tuning training data, wherein the pre-training data includes molecular information of sample lipids, and the fine-tuning training data includes molecular information of fine-tuning lipids and wet experimental data corresponding to preset molecular properties; wherein the molecular information of the sample lipids includes the original SMILES formula of the sample lipids, the positive sample SMILES formula and the negative sample SMILES formula; the pre-training data also includes positive and negative labels corresponding to the sample lipids; According to the molecular information of the sample lipid, a corresponding character mask sequence is generated; Pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model; wherein the BERT model includes a plurality of hidden layers, and a parallel character prediction output layer and a positive and negative prediction output layer; the character prediction output layer is used to output a character prediction result, and the positive and negative prediction output layer is used to output a positive and negative prediction result; Embedding a prediction task model downstream of the pre-trained BERT model, and performing fine-tuning training using the fine-tuning training data to obtain the trained molecular property prediction model for predicting the preset molecular properties of the target lipid molecule; Wherein, the fine-tuning training is performed using the fine-tuning training data to obtain the trained molecular property prediction model, including: The molecular information of the fine-tuning lipid is input into the pre-trained BERT model, and a character embedding vector of a preset dimension is obtained through the last hidden layer of the BERT model; the character embedding vector is input into the prediction task model for nonlinear transformation, and the corresponding property prediction result is output through the output layer of the prediction task model; according to the property prediction result and the corresponding wet experimental data, the corresponding fourth loss value is calculated through the fourth loss function; back propagation is performed according to the fourth loss value to iteratively adjust the network parameters of the BERT model and the prediction task model until the fourth loss value of the fourth loss function converges, so as to obtain a trained molecular property prediction model.
9. The training method according to claim 8, characterized in that: The step of generating a corresponding character mask sequence according to the molecular information of the sample lipids comprises: According to the positive sample SMILES formula and the negative sample SMILES formula of the same sample lipid, after merging with the corresponding original SMILES formula according to a preset probability to form a character input sequence in a preset arrangement format, a corresponding character mask sequence is generated; The method of pre-training the BERT model according to the character mask sequence of each sample lipid to obtain a pre-trained BERT model includes: Inputting the character mask sequence into the hidden layer, outputting the corresponding character prediction results through the character prediction output layer, and outputting the corresponding positive and negative prediction results through the positive and negative prediction output layer; Calculate a corresponding first loss value by a first loss function according to the character prediction result and the character input sequence; and calculate a corresponding third loss value by a third loss function according to the positive and negative labels and the corresponding positive and negative prediction results; Back propagation is performed according to the first loss value and the third loss value to iteratively adjust the network parameters of each hidden layer until the first loss value of the first loss function and the third loss value of the third loss function converge to obtain a pre-trained BERT model.
10. The training method according to claim 8 or 9, characterized in that: The prediction task model is a classification prediction model or a regression prediction model; the method further includes: According to the non-quantitative attribute or the quantitative attribute of the preset molecular property, the type of the prediction task model is preset to obtain the property prediction result of the corresponding attribute.
11. A method for predicting molecular properties of lipid molecules, characterized in that: include: Obtaining molecular information of target lipid molecules; The molecular information is input into the molecular property prediction model trained by the training method according to any one of claims 1 to 10 to obtain the corresponding property prediction result.
12. A device for predicting molecular properties of lipid molecules, characterized in that: include: An information acquisition module, used to obtain molecular information of target lipid molecules; The property prediction module is used to input the molecular information into the molecular property prediction model trained by the training method according to any one of claims 1 to 10 to obtain the corresponding property prediction results.
13. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the training method for a molecular property prediction model for lipid molecules as described in any one of claims 1 to 10 or the molecular property prediction method as described in claim 11.
14. A computer-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the training method for a molecular property prediction model for lipid molecules as described in any one of claims 1 to 10 or the molecular property prediction method as described in claim 11.
15. A computer program product comprising a computer program, characterized in that The computer program is used to execute computer program code instructions corresponding to the training method for a molecular property prediction model for lipid molecules described in any one of claims 1 to 10 or the molecular property prediction method described in claim 11.
