Data processing method, device, model training method, device and electronic device
By defining a difficulty coefficient for the training data and training the model in rounds, the problem of insufficient prediction accuracy of the pre-trained model in downstream tasks is solved, and the model training effect is improved and the accuracy of the prediction results is enhanced.
Patent Information
- Application Number
- CN202210502445.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-05-10
AI Technical Summary
When existing pre-trained models are applied to downstream tasks in drug development and materials design, their prediction accuracy is insufficient, especially under small sample sizes and high-noise data conditions, making it difficult to meet user needs.
By defining the difficulty coefficient of the training data, the model is trained in rounds from low to high. Data with a low difficulty coefficient are used to train the model first, and then gradually advanced to data with a high difficulty coefficient, thereby improving the learning effect of the model. and prediction accuracy.
It effectively improves the prediction accuracy of the pre-trained model in downstream tasks, improves the model training effect, ensures the training process from easy to difficult, and enhances the robustness of the model and the accuracy of the prediction results.
Smart Images

Figure CN114842926B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence and computer simulation technology, and in particular to a data processing method, device, model training method, device and electronic equipment. Background Art
[0002] With the rapid development of computer technology and artificial intelligence technology, computer simulation technology is being applied to more and more scenarios, such as material design, drug design, etc.
[0003] However, the applicant found that the prediction accuracy of the pre-trained model obtained by the relevant technology needs to be improved when applied to a certain target task. Summary of the invention
[0004] In order to solve or partially solve the problems existing in the related art, the present application provides a data processing method, device and model training method, device and electronic device, which can effectively improve the accuracy of the pre-trained model in specific target tasks.
[0005] The first aspect of the present application provides a data processing method, comprising: obtaining a training data set; determining the difficulty coefficient of at least part of the training data in the training data set, so as to classify the difficulty of at least part of the data in the training data set based on the difficulty coefficient of at least part of the training data; wherein the training data includes molecular data, and the difficulty coefficient of the molecular data is determined based on molecular properties and / or model training properties.
[0006] The second aspect of the present application provides a model training method, including: obtaining a training data set, wherein at least part of the training data in the training data set each has a difficulty coefficient, and the difficulty coefficient is determined based on the above-mentioned data processing method; using at least part of the training data in the training data set, in order of difficulty coefficient from low to high, to train the training model in rounds.
[0007] The third aspect of the present application provides a method for predicting molecular properties, comprising: obtaining molecular data; based on the molecular data, predicting the molecular properties of the molecular data using a molecular prediction model obtained by the model to be trained as trained as above.
[0008] The fourth aspect of the present application provides a method for evaluating molecular properties, comprising: obtaining molecular data, the molecular data having label information; based on the molecular data, evaluating using a molecular evaluation model obtained from the trained model to be trained as described above to obtain a molecular evaluation result of the molecular data.
[0009] The fifth aspect of the present application provides a design method, comprising: obtaining molecular properties and / or molecular evaluation results according to the above method; and performing drug design or material design based on the molecular properties and / or molecular evaluation results.
[0010] The sixth aspect of the present application provides a data processing device, including: a training data set acquisition module, used to obtain a training data set, wherein the training data includes molecular data; a difficulty coefficient determination module, used to determine the difficulty coefficient of at least part of the training data in the training data set, so as to perform difficulty classification on at least part of the data in the training data set based on the difficulty coefficient of at least part of the training data, wherein the difficulty coefficient of the molecular data is determined based on molecular properties and / or model training properties.
[0011] The seventh aspect of the present application provides a model training device, including: a training data set acquisition module, used to obtain a training data set, at least part of the training data in the training data set each having a difficulty coefficient, and the difficulty coefficient is obtained based on the above-mentioned data processing device; a model training module, used to use at least part of the training data in the training data set to train the training model in rounds in order of difficulty coefficient from low to high.
[0012] The eighth aspect of the present application provides a molecular property prediction device, including: a first molecular data acquisition module, used to obtain molecular data; a molecular property prediction module, used to predict the molecular properties of the molecular data based on the molecular data, using a molecular prediction model obtained according to the above-mentioned trained model to be trained.
[0013] The ninth aspect of the present application provides a molecular property evaluation device, including: a second molecular data acquisition module, used to obtain molecular data, the molecular data having label information; a molecular property prediction module, used to evaluate based on the molecular data, using a molecular evaluation model obtained according to the above-mentioned trained model to be trained, to obtain a molecular evaluation result of the molecular data.
[0014] The tenth aspect of the present application provides a design device, which includes: an information acquisition module, used to obtain molecular properties according to the above-mentioned molecular property prediction device, and / or obtain molecular evaluation results according to the above-mentioned molecular property evaluation device; a design module, used to perform drug design or material design based on molecular properties and / or molecular evaluation results.
[0015] The eleventh aspect of the present application provides an electronic device, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method.
[0016] The twelfth aspect of the present application also provides a computer-readable storage medium on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the above method.
[0017] The thirteenth aspect of the present application also provides a computer program product, including executable code, which implements the above method when executed by a processor.
[0018] The data processing method, device, model training method, device, and electronic device provided by the present application define the difficulty coefficient of training data learning, so that the training data can be classified based on the difficulty coefficient. This makes it easy for users to select the required training data from the required difficulty classification for applications such as model training.
[0019] In addition, due to the difficulty coefficients of different training data, during the model training process, we can first use the training data with low difficulty coefficients for model training, and gradually advance to the training data with high difficulty coefficients, so that the model can better learn knowledge, thus completing the training of the entire data set from easy to difficult. The above-mentioned phased training of the model from easy to difficult can effectively improve the model training effect and improve the accuracy of the model prediction results.
[0020] In addition, a monotonically increasing curve is constructed using a competition function, in which the number of training rounds is the independent variable and the difficulty coefficient of the training data is the dependent variable. The training data set is divided by the curve to facilitate training using training data with corresponding difficulty coefficients in different periods.
[0021] 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
[0022] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail 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.
[0023] Figure 1 An exemplary system architecture to which a data processing method, device, model training method, device, and electronic device according to an embodiment of the present application can be applied is schematically shown;
[0024] Figure 2 A flowchart schematically shows a data processing method according to an embodiment of the present application;
[0025] Figure 3 A schematic diagram schematically shows the distance between the predicted value and the label value according to an embodiment of the present application;
[0026] Figure 4 A schematic diagram schematically shows the corresponding relationship between the molecular complexity and the number of training rounds according to an embodiment of the present application;
[0027] Figure 5 A schematic diagram schematically shows the corresponding relationship between the training results and the number of training rounds according to an embodiment of the present application;
[0028] Figure 6 A flowchart of a model training method according to an embodiment of the present application is schematically shown;
[0029] Figure 7 A schematic diagram of a process for obtaining target training data according to an embodiment of the present application is schematically shown;
[0030] Figure 8 A schematic diagram of another process of obtaining target training data according to an embodiment of the present application is schematically shown;
[0031] Fig. 9 The following schematically shows an architecture diagram of a model training system according to an embodiment of the present application;
[0032] Fig.10 A schematic diagram schematically shows a model training process according to an embodiment of the present application;
[0033] Fig.11 A flowchart of a molecular property prediction method according to an embodiment of the present application is schematically shown;
[0034] Fig.12 A flowchart of a molecular property evaluation method according to an embodiment of the present application is schematically shown;
[0035] Fig.13 A flowchart of a design method according to an embodiment of the present application is schematically shown;
[0036] Fig.14 A block diagram of a data processing device according to an embodiment of the present application is schematically shown;
[0037] Fig.15 A block diagram of a training device according to an embodiment of the present application is schematically shown;
[0038] Fig.16 A block diagram of a prediction device according to an embodiment of the present application is schematically shown;
[0039] Fig.17 A block diagram of an evaluation device according to an embodiment of the present application is schematically shown;
[0040] Fig.18 A block diagram of a design device according to an embodiment of the present application is schematically shown;
[0041] Fig.19 A block diagram of an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0042] 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.
[0043] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0044] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0045] 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.
[0046] Before describing the technical solution of the present application, some technical terms in the field involved in the present application are first explained.
[0047] The pre-trained model is a model obtained by performing pre-supervised training on a large amount of unlabeled data on a pre-set task. The model will then be used for the migration of downstream tasks to achieve better results.
[0048] Model evaluation indicators are used to evaluate the performance of the trained model. Model evaluation indicators include but are not limited to at least one of the following: evaluation index determination coefficient, area under the receiver operating characteristic curve (ROC curve), accuracy, recall, sensitivity, specificity, root mean square error (STD), and mean absolute error.
[0049] Traditional pharmaceutical R&D is characterized by long processes and high failure rates. For example, nearly three-quarters of pre-researched drugs fail due to efficacy or safety reasons. Compared with traditional methods such as computer-aided drug design, artificial intelligence-driven drug development (AIDD) methods have gradually been recognized and applied in recent years. At present, artificial intelligence (AI) solutions for business needs such as molecular property prediction in the industry can be based on traditional machine learning or earlier graph neural network technology, and have not taken advantage of deep learning big data methods.
[0050] In this context, data has become a bottleneck for the development of AIDD. Although a certain application domain has a large amount of data without label information (such as data with molecular sequence or structure but no properties, etc.), there is very little data with label information. Among them, one application domain can correspond to multiple target tasks.
[0051] By training the pre-trained model and migrating it to downstream tasks, a trained model with high prediction accuracy can be obtained with only a small amount of training data with labeled information. Pre-trained models have been applied in many industrial scenarios, such as natural language processing and computer vision.
[0052] During the drug development process, the applicant discovered that when the pre-trained model is migrated to the downstream, the input data of the pre-trained model may have problems such as small data volume, high noise, and batch effects between data, which results in the prediction accuracy of the pre-trained model migrated to the downstream being unable to meet user needs. Due to the low accuracy of molecular property prediction based on artificial intelligence models, it cannot meet the screening and design requirements of auxiliary drugs, etc.
[0053] For example, pre-training drug molecules under specific representations and using the pre-trained model for downstream small sample size tasks is a possible effective solution for this scenario. In the field of AI-based drug research and development, a large number of pre-trained models have emerged, including Pretrained-GNN, GROVER, and so on. Related technologies can migrate pre-trained models by increasing the number of network layers in downstream tasks, adjusting only the subnet, etc., but the model prediction accuracy is still difficult to meet user needs.
[0054] There have been no similar attempts to fully utilize pre-trained models in AI-based drug development to maximize their migration to downstream tasks with small sample sizes and improve model performance.
[0055] In the embodiment of the present application, by defining the learning difficulty of the training data, during the model training process, the model is first trained using easy training data, and then gradually advanced to complex training data and knowledge, thereby completing the training of the entire data set from easy to difficult. In this way, the prediction accuracy of the pre-trained model migrated to the target field is effectively improved.
[0056] The following will be passed Figures 1 to 19 A data processing method, device, model training method, device and electronic device in an embodiment of the present application are described in detail.
[0057] Figure 1 The following schematically illustrates an exemplary system architecture to which the data processing method, device, model training method, device, and electronic device according to the embodiments of the present application can be applied. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present application can be applied, in order to help those skilled in the art understand the technical content of the present application, but it does not mean that the embodiments of the present application cannot be used in other devices, systems, environments or scenarios.
[0058] See also Figure 1 According to the embodiment, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0059] The user can use the terminal devices 101, 102, 103 to interact with other terminal devices and the server 105 through the network 104 to receive or send information, such as sending training data (set) requests, model training requests, molecular property prediction requests, molecular design requests, and receiving training data (sets), model parameters, molecular properties, and molecular structures, etc. The terminal devices 101, 102, 103 can be installed with various communication client applications, such as drug development applications, material design applications, web browser applications, database applications, search applications, instant messaging tools, email clients, social platform software, and other applications.
[0060] The terminal devices 101, 102, 103 include but are not limited to smart desktop computers, tablet computers, laptop computers, and other electronic devices that can support functions such as surfing the Internet, modeling, analytical calculation, and design.
[0061] The server 105 can receive training data (set) requests, model training requests, molecular property prediction requests, molecular design requests, etc., and can also be used to send target data, model training results, molecular properties and molecular structures, etc. to the terminal devices 101, 102, 103. For example, the server 105 can be a background management server, a server cluster, etc.
[0062] It should be noted that the number of terminal devices, networks and servers is only illustrative, and any number of terminal devices, networks and clouds may be provided as required.
[0063] Figure 2 The flowchart of the data processing method according to the embodiment of the present application is schematically shown.
[0064] like Figure 2 As shown, this embodiment provides a data processing method, which includes operations S210 to S220, which are specifically as follows.
[0065] In operation S210, a training data set is obtained.
[0066] The training data in the training data set may have label information. The training data may include molecular data, and accordingly, the training data set may include a molecular data set. For example, the training data set may be used to fine-tune a pre-trained model. For another example, the training data set may be used for pre-training.
[0067] The training data set can be obtained through a variety of channels. For example, the training data set can be a collection of all training data sets obtained for free through public channels, or a collection of small molecule compound data obtained through commercial purchase. For example, the training data set can be a commercially purchased ZINC15 data set (containing about 20 million small molecule compound data). For example, the training data set can be a molecular data set accumulated by the user based on historical R&D experience.
[0068] It should be noted that the training data set may also include drug-like small molecule data, which can also be obtained through a variety of channels. For example, it can be a collection of all drug-like small molecule data obtained free of charge through public channels, such as the CHEMBL data set of drug-like small molecule data with biological activity.
[0069] In operation S220, difficulty coefficients of at least part of the training data in the training data set are determined, so as to classify difficulty of at least part of the data in the training data set based on the difficulty coefficients of at least part of the training data.
[0070] In this embodiment, when a certain training data is used for model training, the difficulty coefficient can be used to characterize the ease with which the model can grasp the knowledge implied by the training data through machine learning. For example, if the training data includes molecular data, the difficulty coefficient of the molecular data can be determined based on molecular properties and / or model training properties.
[0071] Molecular properties can characterize the complexity of molecular structures. For example, the more complex a molecule is, the more information it contains, the more knowledge that can be abstracted, and the higher the difficulty coefficient of model training using the molecular data.
[0072] For example, molecular data can conform to the format of simplified molecular linear input specification (Simplified molecular inputline entry system, referred to as SMILES), which is a specification for describing molecular structure with ASCII string. In addition, in addition to expressing molecular structure as SMILES, molecules can also be expressed as low-dimensional descriptors such as MACCS, Morgan and hybrid fingerprints, which are not limited here. For example, Morgan fingerprints can be roughly equivalent to extended connectivity fingerprints (Extended-Connectivity Fingerprints, ECFPs). The calculation speed can be effectively improved by using Morgan fingerprints. In addition, it can be free of pre-definition (infinitely many different molecular features can be represented), chiral information can be included, each element in the fingerprint represents a specific substructure, can be easily analyzed and interpreted, and can be modified accordingly according to different needs. In addition, it can also be used for similarity search, clustering, virtual screening and other directions.
[0073] Model training attributes can characterize the difficulty of using certain training data to train the model to be trained into a model that meets the prediction accuracy requirements. For example, the shorter the time it takes to train the model to be trained using the training data, the higher the confidence level of the output result, and the lower the training difficulty coefficient of the training data.
[0074] Specifically, for each of at least a portion of the training data in the training data set, determining the difficulty coefficient of each of at least a portion of the training data in the training data set may include the following operations.
[0075] First, at least one difficulty feature of the training data is obtained, the difficulty feature including at least one of a molecular complexity feature or a training result feature. Then, a difficulty coefficient of the training data is determined based on the at least one difficulty feature.
[0076] For example, the molecular complexity characteristics include at least one of the following: the number of atoms, the number of bonds, the number of hybridized atoms of a specific type, the proportion of hybridized atoms of a specific type, the number of ring-forming atoms, the proportion of ring-forming atoms, and the proportion of chiral atoms.
[0077] The atomic number may refer to the atomic number of a specific type of atoms or the total atomic number of all types of atoms included in the molecule corresponding to the molecular data. For example, for an organic molecule, the atomic number may include only the number of carbon atoms or the total number of carbon atoms and hydrogen atoms.
[0078] The number of bonds can refer to the number of specific types of chemical bonds and / or physical bonds. Among them, chemical bonds include but are not limited to ionic bonds and covalent bonds. Ionic bonds are chemical bonds formed by electrostatic attraction between positive and negative ions when a metal atom with very low electronegativity and a non-metal ion atom with very high electronegativity approach each other, the metal atom loses electrons to form a positive ion, and the non-metal ion atom gains atoms to form a negative ion. A covalent bond is a chemical bond formed between atoms in a molecule through shared electron pairs (electron cloud overlap). In addition, ionic bonds and / or covalent bonds can be subdivided to study specific types of bonds that users are concerned about. For example, covalent bonds can also be subdivided into hybrid bonds, such as sp 3 Hybridized bond.
[0079] The number of hybrid atoms of a specific type refers to the number of hybridized atoms. In the process of bonding, due to the mutual influence between atoms, several different types of atomic orbitals (i.e. wave functions) with similar energies in the same molecule can be linearly combined, redistributing energy and determining spatial directions to form new atomic orbitals of equal number. This orbital recombination is called hybridization, and the new orbital formed after hybridization is called a hybrid orbital. According to the type of atomic orbitals participating in hybridization, orbital hybridization has two main types: sp and spd, which are divided into sp and sp 2 , sp 3 , dsp 2 , sp 3 d, sp 3 d 2 , d 2 sp 3 .
[0080] For example, the number of hybrid atoms of a particular type may be sp 3 The number of carbons. 3 Hybridization refers to the hybridization of one ns orbital and three np orbitals in the same atom. The four hybrid orbitals formed are called sp 3 Hybrid orbitals. Each contains 1 / 4 s component and 3 / 4 p component. The angle between the hybrid orbitals is 109°28', and the spatial configuration is a regular tetrahedron. For example, the sp 3The three-dimensional nature of carbon atoms provides an advantage to probe pharmacophore or backbone regions that are orthogonal to the ring plane.
[0081] Ring atoms, such as the benzene ring, are mainly composed of six carbon atoms C, which are linked together by a large π bond. In the structural formula, they are double bonds separated by two atoms, and their hydrogen atoms H are connected to the C atoms and do not participate in the formation of the benzene ring skeleton, so it is a six-membered ring. The number of ring atoms can include the number of all ring atoms in the molecule corresponding to the molecular data.
[0082] A chiral atom, or chiral carbon atom, refers to a carbon atom connected to four different atoms or groups, represented by C*. The vast majority of drugs are composed of chiral molecules (which include chiral atoms). The interaction between drug molecules and human tissues is very complex. Some are chemical reactions between small molecules, some are chemical reactions between small drug molecules and protein macromolecules, and some are electrostatic interactions between small drug molecules and protein macromolecules. In this way, since there are asymmetric carbon atoms on the proteins of human tissues, many drug molecules that can have pharmacological effects on human tissues often must have a specific chirality.
[0083] In some embodiments, the training result feature may include at least one of the distance between the predicted value and the label value and the sample uncertainty.
[0084] The distance between the predicted value and the label value refers to the distance between the predicted result and the label after processing the labeled data with the trained model. Figure 3 A schematic diagram schematically shows the distance between a predicted value and a label value according to an embodiment of the present application.
[0085] See also Figure 3 , molecular structure 1 is the annotation information (correct prediction result), molecular structure 2 is the prediction result of the trained model obtained based on the first training data, and molecular structure 3 is the prediction result of the trained model obtained based on the second training data. Figure 3 It can be seen that the predicted molecular structures 2 and 3 are similar to molecular structure 1, but there are certain deviations. However, relatively speaking, the similarity between molecular structure 2 and molecular structure 1 is higher than the similarity between molecular structure 3 and molecular structure 1. Therefore, the difficulty coefficient of the first training data is higher than the difficulty coefficient of the second training data.
[0086] Figure 3, a scenario where there is a deviation between the predicted result and the actual result is shown in FIG. In some scenarios, the predicted result of the trained model obtained using the first training data is consistent with the actual result, and the predicted result of the trained model obtained using the second training data is also consistent with the actual result. In this case, the first training data and the second training data can be divided into difficulty coefficients based on sample uncertainty.
[0087] The following is an exemplary description of how to determine sample uncertainty.
[0088] Assume that the training data set X = {x 1 , x 2 , ..., x n}, x i ∈R d , belongs to class m, that is, f(x i )∈{y 1 ,y 2 , ..., y m}. Among them, x i is the training data, y m It is the label information.
[0089] The size of the posterior probability value of the prediction result corresponding to the training data can indicate the confidence of the prediction result. For example, the smaller the possibility that the training data belongs to a certain class, the greater the uncertainty. The posterior probability xi* is shown in formula (1).
[0090]
[0091] That is, only the category with the largest posterior probability of xi is considered, and the possibility of this category is used as the confidence level.
[0092] When the posterior probability xi* of xi is applied to the uncertainty calculation for the training data, formula (2) can be used for calculation.
[0093] x * = argmax i=1,2,……,n -∑P(y i |x i )logP(y i |x i ) Formula (2)
[0094] Among them, P(y j |x i ) represents x iThe entropy-based method considers the possibility that the training data belongs to each category to measure the uncertainty of the training data, so it is more applicable to multi-class problems. When the probability of the training data being divided into each category is the same, the entropy value is the largest, that is, the uncertainty of this training data is the largest. When dealing with two-class problems, the greater the difference in the posterior probability of each category, the less uncertainty this training data is considered.
[0095] In addition, in order to better apply it to multi-class problems, each sample has a score value for the possibility of each category, and the sample with the smallest difference between the first predicted category and the second predicted category is selected for labeling, which is the margin-based selection criterion, as shown in formula (3).
[0096]
[0097] in, and They are x i The first two categories with the greatest probability have the smallest difference in probability, which means that the classifier is least able to distinguish the specific category of the sample, and it is considered that the uncertainty of the training data is the greatest.
[0098] Specifically, the sample uncertainty can be obtained in the following manner: for the current training data, the difference between the predicted probability value of the current training data and the decision probability threshold is calculated.
[0099] For example, the prediction results of model 1 trained with the first training data include: the confidence level of outputting the first result (correct result) is 90%, and the confidence level of outputting the second result (wrong result) is 10% (which can be understood as an uncertainty of about 10%. The above is only an example, and more results can be output). The prediction results of model 2 trained with the second training data include: the confidence level of outputting the first result (correct result) is 60%, and the confidence level of outputting the second result (wrong result) is 40% (which can be understood as an uncertainty of about 40%). In this embodiment, although the results output by model 1 and model 2 are both the first results, relatively speaking, model 1 can output a correct result with a higher confidence level. This also shows that the effect of using the first training data to train the model to be trained is better, and accordingly, the training difficulty of the first training data is lower than that of the second training data.
[0100] In a specific embodiment, the difficulty coefficient of the training data is defined, and a difficulty coefficient calculation cumulative distribution function is given according to the difficulty coefficient of the training data.
[0101] For example, the difficulty coefficient calculation cumulative distribution function may include multiple variables as shown below as difficulty coefficients or difficulty values.
[0102] Variable 1: the number of atoms Num (Atoms) + the number of bonds Num (Bonds). Note that variable 1 is more suitable for use within 1000 molecules.
[0103] Variable 2: sp in the molecule 3 The number of carbons.
[0104] Variable 3: MCE18 index of molecular complexity, which can be determined by formula (4). It should be noted that the difficulty coefficient can be determined based on the MCE18 index of molecular complexity, such as by performing function operation on the MCE18 index.
[0105] MCE18=QINDEX*(2*Fsp3Ring / (1+Fsp3)+Int(AR>0)+int(AR<NRING)+int(CHIRALC)+int(SPIRO> 0) Formula (4)
[0106] Among them, QINDEX: the square of the number of bonds of each atom in the molecule / 2–2 and then sum it up.
[0107] Fsp 3 is the intramolecular sp 3 The ratio of carbon, which is the sp 3 Number of carbon atoms / total number of carbon atoms: (sp 3 Number of carbons) / number of carbons
[0108] The ratio of aromatic carbon in the molecule AR, this ratio = number of aromatic carbon atoms / total number of carbon atoms in the molecule.
[0109] The number of spiro atoms in the molecule SPIRO.
[0110] The number of rings in the molecule is NRING.
[0111] The ratio of SP3 atoms in the intramolecular ring to carbon atoms in the entire molecule is FSP3RING.
[0112] The ratio of chiral atoms in a molecule to all atoms in the molecule is CHIRALC.
[0113] Variable 4: Label Distance, calculates the absolute value of the distance between the model's predicted value and the label value after training once, and defines this absolute value as the difficulty coefficient. Note that variable 4 is more suitable for use when there are more than 1,000 molecules.
[0114] The above variables 1 to 4 can be selected as one of the difficulty coefficients, or they can be weighted summed or weighted averaged according to their respective weight coefficients, which is not limited here.
[0115] In some embodiments, in order to further improve the convenience of obtaining training data with a specific difficulty coefficient according to the number of training rounds when training the model, the corresponding relationship between the number of training rounds and the difficulty coefficient can also be determined.
[0116] Specifically, the above method may further include the following operation: determining the correspondence between the difficulty coefficient and the number of training rounds, so as to determine the difficulty coefficient and / or training data corresponding to the specific number of training rounds for the model to be trained.
[0117] The difficulty coefficient and the number of training rounds may be positively correlated. For example, as the number of training rounds increases, training data with a higher difficulty coefficient may be used. This makes it easier to use training data with a low difficulty coefficient to train the model to be trained in the early stage, such as improving the robustness of the early model.
[0118] In some embodiments, determining the correspondence between the difficulty coefficient and the number of training rounds may include the following operations: determining the correspondence between the difficulty coefficient and the number of training rounds based on a cumulative distribution function of the difficulty coefficient, wherein the variables of the cumulative distribution function of the difficulty coefficient include a competition coefficient of the difficulty distribution function and the number of training rounds, or the variables include the competition coefficient of the difficulty distribution function and at least one of the following: at least one of the current number of training rounds, the total number of training rounds, and the exponential power of the difficulty coefficient.
[0119] In a specific embodiment, after defining the original value of the difficulty coefficient, a cumulative distribution function c(t) can be defined for calculating the difficulty coefficient as the number of training rounds changes. For example, the calculation formula of c(t) can be shown as formula (5).
[0120]
[0121] Among them, c 0 It is the distribution function competition constant, which takes value according to the cumulative distribution function of the difficulty coefficient and ranges from 0 to 1.
[0122] p is the power of the square root of the difficulty coefficient, and its value can be 1-4. The larger the value, the more randomly sampled (distributed) data is used for training, and the smaller the value, the more sampled (distributed) data is used for training according to the difficulty coefficient.
[0123] T is the total number of training rounds, which is calculated based on the number of samples in a batch and the total number of samples in each training: 100*(total number of samples / number of samples in a batch).
[0124] t is the current training round number.
[0125] Figure 4 The diagram schematically shows the corresponding relationship between the molecular complexity and the number of training rounds according to an embodiment of the present application.
[0126] See also Figure 4 , shows three groups of training data, where the bottom row is related information of the first group of training data, the middle row is related information of the second group of training data, and the top row is related information of the third group of training data.
[0127] The molecular structures in the first set of training data are the simplest, such as no rings, fewer atoms, and fewer bonds. The first set of training data has the lowest difficulty coefficient and can be used as the first round of training data.
[0128] The molecular structures in the second set of training data can be more complex than those in the first set of training data, such as the presence of chiral carbon atoms, sp 3 Hybridization, etc. The difficulty coefficient of the second set of training data is higher than that of the first set of training data, and can be used as the second round of training data.
[0129] The molecular structures in the third set of training data can be more complex than those in the second set of training data. For example, the number of atoms in the molecule exceeds 1000, there are sp 3 Hybridization, etc. The third set of training data has the highest difficulty coefficient and can be used as the third round of training data.
[0130] Figure 5 A schematic diagram schematically shows the corresponding relationship between the training results and the number of training rounds according to an embodiment of the present application.
[0131] See also Figure 5 , shows three groups of training data, where the bottom row is related information of the first group of training data, the middle row is related information of the second group of training data, and the top row is related information of the third group of training data.
[0132] For example, the confidence of the output results corresponding to the first set of training data models is higher, etc., and can be used as the training data for the first round. For example, the confidence of the output results corresponding to the second set of training data models is higher than the confidence of the output results corresponding to the first set of training data models, and the second set of training data can be used as the training data for the second round. For example, the confidence of the output results corresponding to the third set of training data models can be higher than the confidence of the output results corresponding to the second set of training data models, and the third set of training data can be used as the training data for the third round.
[0133] The embodiment of the present application defines the difficulty level of machine learning for training data, so that during the training process of the model to be trained, learning can start from easy training data and gradually advance to complex training data and knowledge, thereby completing the training of the entire training data set from easy to difficult.
[0134] In addition, a monotonically increasing curve is constructed using a competitive function (such as one that is only related to the current number of training rounds). This curve takes the number of training rounds as the independent variable and the difficulty of training data as the dependent variable. This curve facilitates the division of the training data set and the use of different data sets in different numbers of training rounds, thereby improving the convenience of obtaining training data with a specific difficulty coefficient.
[0135] In another aspect, the present application also provides a model training method.
[0136] Figure 6 A flowchart of a model training method according to an embodiment of the present application is schematically shown.
[0137] See also Figure 6 , the model training method may include operations S610 to S620.
[0138] In operation S610, a training data set is obtained, and at least part of the training data in the training data set each has a difficulty coefficient, and the difficulty coefficient is determined based on the above data processing method. For example, the training data set may include multiple training data subsets, and each training data subset may have a different difficulty coefficient. For example, each training data in the training data set each has a difficulty coefficient, so that training data with a specific difficulty coefficient is selected based on the difficulty coefficient of each training data.
[0139] Using at least part of the training data in the training data set, the model to be trained is trained in rounds in order of difficulty from low to high.
[0140] The training data with difficulty coefficient information obtained by the above data processing method is used for fine-tuning the pre-trained model. By defining the difficulty of the data to correspond to the difficulty of fine-tuning, fine-tuning is performed according to the degree of difficulty, which effectively improves the model training effect.
[0141] In some embodiments, using at least part of the training data in the training data set, training the model to be trained in rounds in order of difficulty from low to high may include the following operations.
[0142] First, the difficulty coefficient corresponding to the current training round is determined based on the corresponding relationship between the difficulty coefficient and the training round number. For example, if the current training round number is the first round, training data with a lower difficulty coefficient can be selected.
[0143] Then, based on the difficulty coefficient, a sub-training data set corresponding to the difficulty coefficient is obtained from the training data set, wherein the sub-training data set is a data set obtained from the training data set based on the difficulty coefficient of the training data.
[0144] Next, the model to be trained is trained based on the training data in the sub-training dataset.
[0145] Figure 7 A schematic diagram of a process for obtaining target training data according to an embodiment of the present application is schematically shown.
[0146] See also Figure 7 , taking target task 1 as an example, difficulty classification can be performed on multiple training data in target task 1 to obtain multiple sub-data sets, as shown in the dashed boxes. The training data in each dashed box has the same specific difficulty coefficient, so as to obtain training data with a specific difficulty coefficient in target task 1. For example, Figure 7 The sub-datasets where training data 1, 2, 7, 8, 13, 14, etc. are located can be characterized as a training data subset with a first difficulty coefficient. The sub-datasets where training data 3, 4, 9, 10, 15, 16, etc. are located can be characterized as a training data subset with a third difficulty coefficient. The sub-datasets where training data 5, 6, 11, 12, 17, 18 are located can be characterized as a training data subset with a second difficulty coefficient.
[0147] It should be noted that the above-mentioned multiple sub-datasets are stored in the same or adjacent storage space. The above-mentioned multiple sub-datasets can also be stored in different storage spaces (such as different databases, data tables), which is not limited here.
[0148] This embodiment effectively improves the convenience of obtaining training data with a specific difficulty coefficient by selecting a sub-training data set corresponding to the difficulty coefficient, and selects a specific number of candidate data from the sub-training data set as training data for a specific number of training rounds, and facilitates the use of training data (sets) with a specific difficulty coefficient for model training.
[0149] In some embodiments, when model training is required, required training data may be directly selected from the training data set based on the difficulty coefficient.
[0150] Specifically, using at least part of the training data in the training data set, training the model to be trained in rounds in order of difficulty coefficient from low to high may include the following operations.
[0151] First, the difficulty coefficient corresponding to the current number of training rounds is determined based on the corresponding relationship between the difficulty coefficient and the number of training rounds.
[0152] Then, target training data corresponding to the difficulty coefficient is obtained from the training dataset.
[0153] Next, the model to be trained is trained based on the target training data.
[0154] Figure 8A schematic diagram of another process of obtaining target training data according to an embodiment of the present application is schematically shown.
[0155] See also Figure 8 , the user can first select training data 1 from the training data for target task 2 as candidate data 1, and then determine the difficulty coefficient of candidate data 1. If the difficulty coefficient does not meet the difficulty coefficient requirement, it can be determined that training data 1 is non-target data. For example, the user can also select training data 5 as candidate data 5, and then determine the difficulty coefficient of candidate data 5. If the similarity meets the similarity requirement, it can be determined that training data 5 is the target data.
[0156] In some embodiments, the model to be trained includes a pre-trained model, and the training data has corresponding label information.
[0157] Model pre-training is to pre-train an initial model on an original task (such as one or more application domains), and then use the model on the target task, and fine-tune the initial model according to the characteristics of the target task, so as to achieve the purpose of improving the target task. In essence, model pre-training is a method of transfer learning, which uses a model trained by others on one's own target task.
[0158] In order to facilitate understanding of the relationship between the application domain and the target task, the following exemplary explanation is given. The molecules corresponding to the molecular data can be applied to at least one application domain. For example, the application domain can refer to the field where the molecule can be applied, such as drug treatment, angiography, health care, etc. Of course, the application domain can also be subdivided. For example, the application domain of drug treatment can be further divided into: infection treatment, specific disease treatment, immunity enhancement treatment, etc. Among them, infection treatment can be further divided into: viral infection treatment, bacterial infection treatment, specific type of viral infection treatment (which can be understood as the target task). Specific disease treatment can also be further divided into: antibiotics, cardiovascular and cerebrovascular drugs, digestive system drugs, respiratory system drugs, urinary system drugs, blood system drugs, etc. For example, a drug database for infection treatment with rich training data can be used for pre-training, and then the trained pre-trained model can be fine-tuned using a drug database for viral infection to improve the model training effect.
[0159] This embodiment can be applicable to the case where a pre-trained model has been obtained, and the prediction accuracy for the target task can be improved by fine-tuning the pre-trained model (such as fine-tuning in rounds according to the difficulty coefficients of different training data). For example, the pre-trained model can be a downloaded pre-trained model provided by a third party. For example, the pre-trained model can also be a pre-trained model provided by a third party, which is then pre-trained twice with training data for a specific application domain to obtain an adjusted pre-trained model.
[0160] In some embodiments, in the process of training the pre-trained model, tasks such as context prediction, attribute masking, and graph-level motif prediction may be added.
[0161] For example, attribute masking is performed by masking the attributes of atoms or edges and predicting the masked content at that position. Specifically, 10% of the identifiers (tokens) in each input string can be randomly masked. In order to prevent overfitting, 5 training process epochs (forward calculation + back propagation) can be trained in an early stopping manner. When learning to recover the masked identifier (masktoken), the model forms a representation topology of the chemical space, which can be applied to different molecular attribute prediction tasks.
[0162] For example, context prediction is used to predict the context words corresponding to a given center word. For example, in Skip-gram, the center word is the input word and the context words are the output words.
[0163] In this embodiment, the pre-trained model can be the following two models: a model obtained by assigning parameters of an existing model (eg, an open source model), or a pre-trained model based on a migrated open source model.
[0164] For example, an initial model is pre-trained on an original task, and then the model is used on the target task. During the model fine-tuning process, the training data corresponding to the current number of training rounds can be selected according to the difficulty coefficient of the training data, so that the pre-trained model can be fine-tuned using training data of different difficulty coefficients in different rounds, which helps to improve the accuracy of the model prediction results.
[0165] The architecture of the above-mentioned pre-trained models includes but is not limited to: Graph Isomorphism Network (GIN), Graph Attention Network (GAT), Graph Aggregation Network (GraphSage), and Graph Convolutional Network (GCN).
[0166] For example, graph representation learning of graph isomorphic networks mainly includes the following two processes: first, the node representation is calculated. Then, the representation of each node on the graph is pooled (graph pooling), or called graph readout, to obtain the graph representation.
[0167] For ease of understanding, the first pre-training process is described as follows. The original model can be a Contextpred model or a GROVER model, etc. For the Contextpred model, two self-supervised tasks including context prediction and attribute masking can be added. For example, predict the adjacent nodes within a certain range around the central node and predict the randomly masked nodes / edges. For the GROVER model, two unsupervised tasks including context prediction and graph-level motif (important functional fragments in small molecules) prediction can be added. For example, input the target atom / bond to predict the adjacent atom / bond information and predict whether the motif detected by Rdkit (Rational Discovery Kit) appears. Through pre-training self-supervised learning, the Contextpred model and the GROVER model have a grasp of the global characteristics of the molecular space, realizing the first pre-training process.
[0168] Fig. 9 The schematic diagram shows the architecture of the model training system according to an embodiment of the present application.
[0169] See also Fig. 9 , the training data set can be a downstream task data set, wherein the training data in the training data set can be data used to fine-tune the pre-trained model. Such as moleculenet and other physical and chemical data sets. The fine-tuning process can be as follows. First, the difficulty analysis of the training data in the training data set can be performed to obtain the corresponding difficulty coefficient. Then, based on the competition curve, the training data corresponding to the difficulty coefficient is divided to obtain multiple subsets of training data with different difficulty coefficients for iterative training. At a specific number of training rounds, sampling is performed from the subset of training data corresponding to the specific number of training rounds to obtain the training data required for the specific number of training rounds. In this way, the pre-trained model can be fine-tuned in rounds using training data with different difficulty coefficients to obtain a fine-tuned downstream model.
[0170] In some embodiments, training the models to be trained in rounds may include: adding a linear classifier or a multilayer perceptron to the adjusted multiple pre-trained models to obtain one or more molecular prediction models or molecular evaluation models to be adjusted. It should be noted that different functions such as molecular property prediction or molecular evaluation can be achieved for different training data and model structures.
[0171] For example, in each round of training, training data without label information is used to adjust the model parameters of one or more molecular prediction models to be adjusted to obtain one or more adjusted molecular prediction models.
[0172] For example, in each round of training process, the model parameters of one or more molecular evaluation models to be adjusted are adjusted using training data with label information to obtain one or more adjusted molecular evaluation models.
[0173] Fig.10 A schematic diagram of a model training process according to an embodiment of the present application is schematically shown.
[0174] See also Fig.10 , pre-training is performed using unlabeled training data to obtain a pre-trained model. Then, the pre-trained model can be trained in rounds from easy to difficult using the unlabeled training data corresponding to the target task to obtain an adjusted model for prediction tasks. In addition, the pre-trained model can be fine-tuned using the labeled training data corresponding to the target task to obtain an adjusted model, which can be used for evaluation tasks, etc.
[0175] In this embodiment, the training data sampling order is defined according to the defined difficulty coefficient to achieve round-by-round fine-tuning of the pre-trained model for downstream tasks, which can effectively improve the model training effect without adding too many training tasks.
[0176] In order to determine the effect of the adjusted pre-trained model obtained in each embodiment, the test is as follows.
[0177] Specifically, the datasets used include datasets of physicochemical properties from MoleculeNet and the applicant's internal data sets, as shown in Table 1. Table 1 includes the Freesolv dataset that records the solvation energy of molecules, the ESOL dataset that records the solubility of molecules, the Caco2 dataset that records the permeability of molecules, and the Lipolicity dataset that records the lipid solubility of molecules.
[0178] Table 1
[0179]
[0180]
[0181] Among them, the FreeSolv dataset contains experimental values of the hydration free energy of small molecules in water, which can be obtained through molecular dynamics simulation. The ESOL dataset contains water solubility data of common organic small molecules (for example: logarithmic solubility, mol / L). The Lipophilicity dataset contains experimental results of the octanol or water partition coefficients of known molecules, which reflect the solubility of the molecules. In addition, the datasets shown below can also be used. For example, the BBBP dataset contains a dataset of molecules that have been measured to penetrate the blood-brain barrier. The ClinTox dataset includes data on drugs approved by the FDA and those that have failed clinical trials due to toxicity. The Tox21 dataset includes data on the toxicity of compounds that have been measured on 12 different targets, including experimental measurements of nuclear receptors and stress response pathways. The HIV dataset includes data on small molecules that have been experimentally determined to have the ability to inhibit HIV replication.
[0182] When p=2, the maximum improvement is 20%, and the minimum improvement is 1.304%. This shows that defining the difficulty coefficient of the training data in advance and then training the model from easy to difficult according to the difficulty is more conducive to the migration of the pre-trained model to downstream tasks.
[0183] The above-mentioned preset evaluation indicators may include at least one of the following: evaluation indicator determination coefficient, area under the ROC curve, accuracy, recall rate, sensitivity, specificity, root mean square error, and mean absolute error.
[0184] The calculation formula of the root mean square error RMSE is shown in formula (6).
[0185]
[0186] Where m is the number of training data, y i is the true value, is the predicted value;
[0187] Coefficient of determination R 2 The calculation formula of is shown in formula (7).
[0188] R 2 =SSR / SST=1-SSE / SST Formula (7)
[0189] Among them, the total sum of squares (SST), the regression sum of squares (SSR), and the error sum of squares (SSE).
[0190] In addition, the mean value (MEAN) and root mean square error (STD) can be used for evaluation.
[0191] Table 2
[0192]
[0193] Table 3
[0194]
[0195] Table 4
[0196]
[0197] Table 5
[0198]
[0199]
[0200] In an embodiment of the present application, by defining the difficulty of learning the training data, during the model fine-tuning process, the model can start learning from easy training data and gradually advance to complex training data and knowledge, thereby completing the training of the entire data set from easy to difficult, effectively improving the model training effect and the accuracy of the model prediction results.
[0201] Another aspect of the present application provides a method for predicting molecular properties.
[0202] Fig.11 The flowchart of the molecular property prediction method according to an embodiment of the present application is schematically shown.
[0203] See also Fig.11 , the molecular property prediction method may include operations S1110 to S1120.
[0204] In operation S1110 , molecule data is obtained.
[0205] In operation S1120, based on the molecular data, the molecular properties of the molecular data are predicted using the molecular prediction model obtained by the trained model to be trained as described above.
[0206] The molecular attribute can be a structure-function score of the molecule based on data. In this application, the predicted molecular attributes include, but are not limited to, water-soluble molecular physiological, biochemical, and biophysical properties. When predicting molecular attributes, a fine-tuned model is required. Then, the molecular data is input into the fine-tuned model to obtain the molecular attribute prediction.
[0207] In some embodiments, the molecular data has label information, and the above method may further include: based on the molecular data, performing an evaluation using a molecular evaluation model obtained by a trained model to be trained to obtain a molecular evaluation result of the molecular data.
[0208] For example, whether the molecule corresponding to the current molecular data is a potential effective drug for a certain disease. The evaluation result can be yes or no, or a scoring result, which is not limited here.
[0209] Another aspect of the present application provides a method for predicting molecular properties.
[0210] Fig.12 The flowchart of the molecular property evaluation method according to an embodiment of the present application is schematically shown.
[0211] See also Fig.12 , the molecular property prediction method may include operations S1210 to S1220.
[0212] In operation S1210, molecule data is obtained, the molecule data having tag information.
[0213] In operation S1220, based on the molecular data, the molecular evaluation model obtained by the trained model to be trained is used for evaluation to obtain a molecular evaluation result of the molecular data. The molecular evaluation result may be as shown above.
[0214] In this embodiment, the downstream tasks are fine-tuned in a round-by-round manner according to the order of training data from easy to difficult, which effectively improves the accuracy of molecular property prediction and molecular evaluation.
[0215] On the other hand, the present application also provides a design method.
[0216] Fig.13 The flowchart of the design method according to the embodiment of the present application is schematically shown.
[0217] See also Fig.13 , the above-mentioned design method may include operations S1310 to S1320.
[0218] In operation S1310, molecular attributes and / or molecular evaluation results are obtained. For details, please refer to the above related embodiments, which will not be described in detail here.
[0219] In operation S1320 , drug design or material design is performed based on the molecular attributes and / or the molecular evaluation results.
[0220] In this embodiment, molecular properties and molecular evaluation results with high confidence are used for design, such as pharmaceutical development, which can effectively improve the design efficiency and success rate.
[0221] On the other hand, the present application also provides a data processing device.
[0222] Fig.14 A block diagram of a data processing device according to an embodiment of the present application is schematically shown.
[0223] See also Fig.14 , the data processing device 1400 may include: a training data set acquisition module 1410 and a difficulty coefficient determination module 1420.
[0224] The training data set acquisition module 1410 is used to obtain a training data set, wherein the training data includes molecular data.
[0225] The difficulty coefficient determination module 1420 is used to determine the difficulty coefficient of at least part of the training data in the training data set, so as to classify the difficulty of at least part of the data in the training data set based on the difficulty coefficient of at least part of the training data, wherein the difficulty coefficient of the molecular data is determined based on the molecular attributes and / or the model training attributes.
[0226] In some embodiments, the difficulty coefficient determination module 1420 includes a difficulty characteristic obtaining unit and a difficulty coefficient determination unit.
[0227] The difficulty feature acquisition unit is used to obtain at least one difficulty feature of the training data, and the difficulty feature includes at least one of a molecular complexity feature or a training result feature.
[0228] The difficulty coefficient determination unit is used to determine the difficulty coefficient of the training data based on at least one difficulty feature.
[0229] In some embodiments, the molecular complexity characteristics include at least one of the number of atoms, the number of bonds, the number of hybrid atoms of a specific type, the proportion of hybrid atoms of a specific type, the number of ring atoms, the proportion of ring atoms, and the proportion of chiral atoms.
[0230] The training result features include: at least one of the distance between the predicted value and the label value and the sample uncertainty.
[0231] In some embodiments, the sample uncertainty is obtained by calculating, for current training data, the difference between the predicted probability value of the current training data and a decision probability threshold.
[0232] In some embodiments, the above-mentioned device 1400 also includes: a correspondence determination module, which is used to determine the correspondence between the difficulty coefficient and the number of training rounds, so as to determine the difficulty coefficient and / or training data corresponding to the specific number of training rounds for the model to be trained.
[0233] In some embodiments, the correspondence determination module is specifically used to determine the correspondence between the difficulty coefficient and the number of training rounds based on the cumulative distribution function of the difficulty coefficient, wherein the variables of the cumulative distribution function of the difficulty coefficient include the difficulty distribution function competition coefficient and the number of training rounds, or the variables include the difficulty distribution function competition coefficient and at least one of the following: the current number of training rounds, the total number of training rounds, and the exponential power of the difficulty coefficient.
[0234] On the other hand, the present application also provides a model training device.
[0235] Fig.15 A block diagram of a training device according to an embodiment of the present application is schematically shown.
[0236] See also Fig.15 , the model training device 1500 may include: a training data set acquisition module 1510 and a model training module 1520.
[0237] The training data set acquisition module 1510 is used to obtain a training data set, wherein at least part of the training data in the training data set each has a difficulty coefficient, and the difficulty coefficient is obtained based on the above-mentioned data processing device.
[0238] The model training module 1520 is used to train the pre-trained model in rounds in order of difficulty coefficient from low to high using at least part of the training data in the training data set.
[0239] On the other hand, the present application also provides a molecular property prediction device.
[0240] Fig.16 The block diagram of the prediction device according to the embodiment of the present application is schematically shown.
[0241] See also Fig.16 The molecular property prediction device 1600 may include: a first molecular data acquisition module 1610 and a molecular property prediction module 1620 .
[0242] The first molecule data obtaining module 1610 is used to obtain molecule data.
[0243] The molecular property prediction module 1620 is used to predict the molecular properties of the molecular data based on the molecular data using the molecular prediction model obtained according to the trained model to be trained as described above.
[0244] In some embodiments, the prediction device 1600 may further include: an evaluation model training module, which is used to perform evaluation using the molecular evaluation model obtained by the trained model to be trained as described above to obtain a molecular evaluation result of the molecular data.
[0245] On the other hand, the present application also provides an evaluation device.
[0246] Fig.17 The block diagram of the evaluation device according to the embodiment of the present application is schematically shown.
[0247] See also Fig.17 The evaluation device 1700 may include: a second molecule data obtaining module 1710 and a molecule property evaluation module 1720 .
[0248] The second molecular data obtaining module 1710 is used to obtain molecular data, where the molecular data has label information.
[0249] The molecular property evaluation module 1720 is used to evaluate the molecular data using the molecular evaluation model obtained according to the trained model to be trained as described above, to obtain the molecular evaluation result of the molecular data.
[0250] On the other hand, the present application also provides a design device.
[0251] Fig.18 A block diagram of a design device according to an embodiment of the present application is schematically shown.
[0252] See also Fig.18 , the prediction device 1800 may include: an information acquisition module 1810 and a design module 1820.
[0253] The information acquisition module 1810 is used to obtain molecular properties according to the above molecular property prediction device, and / or to obtain molecular evaluation results according to the above molecular property evaluation device.
[0254] The design module 1820 is used to perform drug design or material design based on molecular properties and / or molecular evaluation results.
[0255] Regarding the devices 1400, 1500, 1600, 1700, and 1800 in the above embodiments, the specific manner in which each module and unit performs operations has been described in detail in the embodiments of the method, and will not be elaborated again here.
[0256] Another aspect of the present application provides an electronic device.
[0257] Fig.19 A block diagram of an electronic device according to an embodiment of the present application is schematically shown.
[0258] See also Fig.19 , the electronic device 1900 includes a memory 1910 and a processor 1920 .
[0259] The processor 1920 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.
[0260] The memory 1910 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 1920 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 1910 may include any combination of computer-readable storage media, including various types of semiconductor memory 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 1910 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.
[0261] The memory 1910 stores executable codes, and when the executable codes are processed by the processor 1920 , the processor 1920 can execute part or all of the methods described above.
[0262] 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.
[0263] 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.
[0264] 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 data processing method, characterized in that: include: Get a training dataset; Determining respective difficulty coefficients of at least a portion of the training data in the training data set, so as to classify the difficulty of at least a portion of the data in the training data set based on the respective difficulty coefficients of at least a portion of the training data; Wherein, the training data includes molecular data, and the difficulty coefficient of the molecular data is determined based on molecular complexity characteristics and / or training result characteristics; Wherein, determining the difficulty coefficient of at least part of the training data in the training data set includes: for each of at least part of the training data in the training data set, obtaining at least one difficulty feature of the training data, the difficulty feature includes: at least one of a molecular complexity feature or a training result feature; wherein the molecular complexity feature includes: at least one of the number of atoms, the number of bonds, the number of hybridized atoms of a specific type, the proportion of hybridized atoms of a specific type, the number of ring-forming atoms, the proportion of ring-forming atoms, and the proportion of chiral atoms; the training result feature includes: at least one of the distance between the predicted value and the label value and the sample uncertainty; the difficulty coefficient of the training data is determined based on the at least one difficulty feature.
2. The data processing method according to claim 1, characterized in that: The sample uncertainty is obtained in the following manner: for the current training data, the difference between the predicted probability value of the current training data and the decision probability threshold is calculated.
3. The data processing method according to claim 1 or 2, characterized in that: Also includes: The corresponding relationship between the difficulty coefficient and the number of training rounds is determined, so as to determine the difficulty coefficient and / or training data corresponding to the specific number of training rounds for the model to be trained.
4. The data processing method according to claim 3, characterized in that: Determining the correspondence between the difficulty coefficient and the number of training rounds includes: The correspondence between the difficulty coefficient and the number of training rounds is determined based on the cumulative distribution function of the difficulty coefficient, wherein the variables of the cumulative distribution function of the difficulty coefficient include the difficulty distribution function competition coefficient and the number of training rounds, or the variables include the difficulty distribution function competition coefficient and at least one of the following: the current number of training rounds, the total number of training rounds, and the exponential power of the difficulty coefficient.
5. A model training method, characterized in that: include: Obtaining a training data set, wherein at least part of the training data in the training data set each has a difficulty coefficient, and the difficulty coefficient is determined based on the data processing method according to any one of claims 1 to 4; Using at least part of the training data in the training data set, the model to be trained is trained in rounds in order of difficulty coefficient from low to high.
6. The model training method according to claim 5, characterized in that: The training of the model to be trained in rounds according to the order of difficulty coefficient from low to high by using at least part of the training data in the training data set includes: Determine the difficulty coefficient corresponding to the current number of training rounds based on the corresponding relationship between the difficulty coefficient and the number of training rounds; Acquire target training data corresponding to the difficulty coefficient from the training data set; The model to be trained is trained based on the target training data.
7. The model training method according to claim 5, characterized in that: The training of the model to be trained in rounds according to the order of difficulty coefficient from low to high by using at least part of the training data in the training data set includes: Determine the difficulty coefficient corresponding to the current number of training rounds based on the corresponding relationship between the difficulty coefficient and the number of training rounds; Based on the difficulty coefficient, acquiring a sub-training data set corresponding to the difficulty coefficient from the training data set, wherein the sub-training data set is a data set acquired from the training data set based on the difficulty coefficient of the training data; The model to be trained is trained based on the training data in the sub-training data set.
8. The model training method according to claim 5, characterized in that: The model to be trained includes a pre-trained model, and the training data has corresponding label information.
9. The model training method according to claim 5, characterized in that: The rounds of training the model to be trained include: Adding a linear classifier or a multilayer perceptron to the adjusted multiple pre-trained models to obtain one or more molecular prediction models or molecular evaluation models to be adjusted; For each round of training, the model parameters of one or more of the molecular prediction models to be adjusted are adjusted using training data without label information to obtain one or more adjusted molecular prediction models; or, For each round of training process, the model parameters of one or more of the molecular evaluation models to be adjusted are adjusted using the training data with label information to obtain one or more adjusted molecular evaluation models.
10. A method for predicting molecular properties, characterized in that: include: Obtain molecular data; Based on the molecular data, the molecular properties of the molecular data are predicted using a molecular prediction model obtained by the trained model to be trained provided according to any one of claims 5 to 9.
11. The molecular property prediction method according to claim 10, characterized in that: The molecular data has label information, and the method further includes: Based on the molecular data, the molecular evaluation model obtained by the trained model to be trained is used for evaluation to obtain the molecular evaluation result of the molecular data.
12. A method for evaluating molecular properties, characterized in that: include: obtaining molecular data, wherein the molecular data has label information; Based on the molecular data, an evaluation is performed using a molecular evaluation model obtained by using the trained model to be trained provided according to any one of claims 5 to 9 to obtain a molecular evaluation result of the molecular data.
13. A design method, characterized in that: The method include: Obtaining molecular properties according to the method of claim 10, and / or obtaining molecular evaluation results according to the method of claim 11; Drug design or material design is performed based on the molecular properties and / or the molecular evaluation results.
14. A data processing device, characterized in that: include: A training data set acquisition module, used to acquire a training data set, wherein the training data includes molecular data; A difficulty coefficient determination module is used to determine the difficulty coefficient of each of at least part of the training data in the training data set, so as to classify the difficulty of at least part of the data in the training data set based on the difficulty coefficient of each of at least part of the training data, wherein the difficulty coefficient of the molecular data is determined based on the molecular complexity feature and / or the training result feature; wherein the determination of the difficulty coefficient of each of at least part of the training data in the training data set includes: for each of at least part of the training data in the training data set, obtaining at least one difficulty feature of the training data, the difficulty feature includes: at least one of the molecular complexity feature or the training result feature; wherein the molecular complexity feature includes: at least one of the number of atoms, the number of bonds, the number of hybridized atoms of a specific type, the proportion of hybridized atoms of a specific type, the number of ring-forming atoms, the proportion of ring-forming atoms, and the proportion of chiral atoms; the training result feature includes: at least one of the distance between the predicted value and the label value and the sample uncertainty; the difficulty coefficient of the training data is determined based on the at least one difficulty feature.
15. A model training device, characterized in that: include: A training data set acquisition module, used to obtain a training data set, wherein at least part of the training data in the training data set each has a difficulty coefficient, and the difficulty coefficient is obtained based on the data processing device according to claim 14; The model training module is used to train the model to be trained in rounds according to the order of difficulty coefficient from low to high, using at least part of the training data in the training data set.
16. A molecular property prediction device, characterized in that: include: A first molecular data acquisition module, used to obtain molecular data; A molecular property prediction module is used to predict the molecular properties of the molecular data based on the molecular data using a molecular prediction model obtained by the trained model to be trained provided according to claim 15.
17. A molecular property evaluation device, characterized in that: include: A second molecular data acquisition module, used to obtain molecular data, wherein the molecular data has label information; The molecular property evaluation module is used to evaluate the molecular data based on the molecular evaluation model obtained by the trained model to be trained provided according to claim 15 to obtain the molecular evaluation result of the molecular data.
18. A design device, characterized in that: include: An information acquisition module, used for obtaining the molecular property according to the molecular property prediction device according to claim 16, and / or obtaining the molecular evaluation result according to the molecular property evaluation device according to claim 17; A design module is used to perform drug design or material design based on the molecular properties and / or the molecular evaluation results.
19. 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 method according to any one of claims 1 to 13.
20. A computer-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method according to any one of claims 1-13.
