Training method, device, equipment and storage medium for molecular generation model

Through the molecule generation model training method, the expression information is segmented to obtain the expression information of macrocyclic small molecules, and the model is adjusted to generate linker molecules with better drug effects, which solves the problem of low pharmacological activity of the chain structure of existing small molecule drugs. , improve the efficacy of the drug.

CN114373522BActive Publication Date: 2024-09-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210038522.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2024-09-27
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

The chain-like structure of existing small molecule drug compounds has low pharmacological activity and selectivity, resulting in poor efficacy in drug development. Moreover, the drug properties of macrocyclic small molecules generated based on deep learning models do not meet the druggability requirements.

Method used

Through the molecule generation model training method, the expression information of the first sample molecule and the expression information of the second sample molecule are segmented to obtain the expression information of macrocyclic small molecules, and the reward value is obtained through the patent drug effect information, and the model is adjusted to generate a more accurate model. Linker molecules with good pharmaceutical effects.

Benefits of technology

The drug-making effects of macrocyclic small molecules are improved, such as water solubility, blood-brain barrier permeability and reduced cardiotoxicity, thus improving the efficacy of the drug.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114373522B
    Figure CN114373522B
Patent Text Reader

Abstract

The present application discloses a training method, device, equipment and storage medium for a molecular generation model, and belongs to the field of artificial intelligence technology. The present application predicts the expression information of a linker molecule that can be combined with the first sample molecule through a molecular generation model and the expression information of a first sample molecule and the expression information of a second sample molecule obtained by segmenting the same molecule, thereby obtaining the expression information of a macrocyclic small molecule, and obtaining the drug-forming effect information of the macrocyclic small molecule to obtain a reward value that can represent the quality of the drug-forming effect of the macrocyclic small molecule, and further trains the model based on the reward value, the expression information predicted by the model and the expression information of the second sample molecule, so that the macrocyclic small molecule obtained based on the linker molecule has a better drug-forming effect while ensuring that the model accurately generates the expression information of the linker molecule, thereby making the developed drug have a better efficacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a training method, device, equipment and storage medium for a molecular generation model. Background Art

[0002] At present, in the process of developing small molecule drug compounds, small molecules that can act on the target are often screened from a variety of existing small molecule drug compounds according to the target corresponding to the disease, and then relevant clinical trials are carried out on the screened small molecules. However, the existing small molecule drug compounds are often chain structures with low pharmacological activity and selectivity. Therefore, it is necessary to transform the structure of small molecules to make them macrocyclic small molecules, so that the developed drugs have better efficacy.

[0003] In the related art, based on the chemical structure of the small molecule, the chemical structure of the linker molecule corresponding to the small molecule is obtained through a deep learning model. The linker molecule is a molecule that can combine with the small molecule to form a macrocyclic structure. The small molecule is combined with the linker molecule to obtain a macrocyclic small molecule.

[0004] In the above-mentioned technologies, the drug properties of the macrocyclic small molecules obtained based on the deep learning model often do not meet the requirements of drugability. The drug properties of the molecules refer to absorption rate, metabolic rate and toxicity, etc., which leads to poor efficacy of drugs developed based on macrocyclic small molecules. Summary of the invention

[0005] The embodiment of the present application provides a training method, device, equipment and storage medium for a molecular generation model, which can obtain macrocyclic small molecules with better drug-making effects. The technical solution is as follows:

[0006] In one aspect, a method for training a molecular generative model is provided, the method comprising:

[0007] Based on the expression information of the first sample molecule, the expression information of the second sample molecule and the molecule generation model, the expression information of the macrocyclic small molecule is obtained, the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, the second sample molecule is a replaceable molecular fragment in the molecule, the molecule generation model is used to obtain the expression information of the predicted molecule, the predicted molecule is a small molecule that can bind to the first sample molecule, and the macrocyclic small molecule is obtained based on the binding of the first sample molecule to the predicted molecule;

[0008] Based on the expression information of the macrocyclic small molecule, obtaining the drug effect information of the macrocyclic small molecule;

[0009] Based on the drug effect information of the macrocyclic small molecule, a reward value is obtained, and the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule;

[0010] The molecule generation model is trained based on the reward value, the expression information of the predicted molecule and the expression information of the second sample molecule.

[0011] In one aspect, a training device for a molecular generation model is provided, the device comprising:

[0012] A generation module, used to obtain expression information of a macrocyclic small molecule based on expression information of a first sample molecule, expression information of a second sample molecule and a molecule generation model, wherein the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, the second sample molecule is a replaceable molecular fragment in the molecule, the molecule generation model is used to obtain expression information of a predicted molecule, the predicted molecule is a small molecule that can bind to the first sample molecule, and the macrocyclic small molecule is obtained based on the binding of the first sample molecule to the predicted molecule;

[0013] An acquisition module, used to acquire drug-forming effect information of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule;

[0014] The acquisition module is used to acquire a reward value based on the drug effect information of the macrocyclic small molecule, and the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule;

[0015] A training module is used to train the molecule generation model based on the reward value, the expression information of the predicted molecule and the expression information of the second sample molecule.

[0016] In some embodiments, the acquisition module includes:

[0017] A first acquisition submodule is used to acquire a molecular topology map of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule;

[0018] The second acquisition submodule is used to obtain the drug effect information of the macrocyclic small molecule based on the molecular topology of the macrocyclic small molecule.

[0019] In some embodiments, the second acquisition submodule is used to input the molecular topology map into a drug effect prediction model; based on the first submodel of the drug effect prediction model and the molecular topology map, the atomic characteristics and chemical bond characteristics of the macrocyclic small molecule are extracted; based on the second submodel of the drug effect prediction model, the atomic characteristics and chemical bond characteristics of the macrocyclic small molecule are mapped to obtain the drug effect information of the macrocyclic small molecule.

[0020] In some embodiments, the acquisition module is used to determine the reward value as a positive reward value if the drug effect information meets the preset conditions; if the drug effect information does not meet the preset conditions, determine the reward value as a negative reward value.

[0021] In some embodiments, the drug-forming effect information of the macrocyclic small molecule includes at least one of the water solubility, blood-brain barrier permeability and cardiac toxicity of the macrocyclic small molecule;

[0022] Accordingly, the preset condition includes at least one of the following:

[0023] The water solubility of the macrocyclic small molecule is greater than or equal to a first threshold;

[0024] The blood-brain barrier permeability of the macrocyclic small molecule is greater than or equal to a second threshold;

[0025] The toxicity of the macrocyclic small molecule is less than or equal to a third threshold.

[0026] In some embodiments, the training module is used to obtain a loss value based on the expression information of the predicted molecule and the expression information of the second sample molecule, and the loss value is used to represent the error between the expression information of the predicted molecule and the expression information of the second sample molecule; add the reward value to the loss value to obtain a target loss value; and train the molecule generation model based on the target loss value.

[0027] In some embodiments, the apparatus further comprises:

[0028] A pre-training module is used to obtain a training data set, the training set includes multiple sample molecule pairs, the sample molecule pairs include expression information of a first sample molecule and expression information of a second sample molecule obtained based on the segmentation of the same molecule; the expression information of the first sample molecule in the sample molecule pair is used as input data of a molecule generation model, and the expression information of the second sample molecule in the sample molecule pair is used as supervision data to pre-train the molecule generation model.

[0029] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to implement the training method of the molecular generation model.

[0030] On the one hand, a computer-readable storage medium is provided, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor to implement the training method of the molecular generation model.

[0031] In one aspect, a computer program product is provided, the computer program product comprising at least one computer program, the at least one computer program being stored in a computer-readable storage medium. A processor of a computer device reads the at least one computer program from the computer-readable storage medium, and the processor executes the at least one computer program, so that the computer device implements the training method of the executed molecular generation model.

[0032] The technical solution provided in the embodiment of the present application predicts the expression information of the linker molecule that can bind to the first sample molecule through the molecular generation model and the expression information of the first sample molecule and the expression information of the second sample molecule obtained by segmenting the same molecule, thereby obtaining the expression information of the macrocyclic small molecule, and obtaining the drug effect information of the macrocyclic small molecule to obtain a reward value that can represent the quality of the drug effect of the macrocyclic small molecule. The model is further trained based on the reward value, the predicted expression information and the expression information of the second sample molecule. While ensuring that the model accurately generates the expression information of the linker molecule, the macrocyclic small molecule obtained based on the linker molecule has a better drug effect, thereby making the developed drug have a better efficacy. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 This is a flow chart of drug development provided in an embodiment of the present application;

[0035] Figure 2 It is a schematic diagram of an implementation environment of a training method for a molecular generation model provided in an embodiment of the present application;

[0036] Figure 3 It is a flow chart of a method for training a molecular generation model provided in an embodiment of the present application;

[0037] Figure 4 It is a flow chart of a method for training a molecular generation model provided in an embodiment of the present application;

[0038] Figure 5 is a schematic diagram of reinforcement learning provided by an embodiment of the present application;

[0039] Figure 6 is a schematic diagram of a molecular generation model provided in an embodiment of the present application;

[0040] Figure 7 It is a schematic diagram of a drug effect prediction model provided in an embodiment of the present application;

[0041] Figure 8 This is a schematic diagram of the distribution of water solubility of a molecule provided in an embodiment of the present application;

[0042] Fig. 9This is a distribution diagram of a molecular blood-brain barrier permeability provided in an embodiment of the present application;

[0043] Fig.10 is a schematic diagram of the distribution of molecular cardiotoxicity provided in an embodiment of the present application;

[0044] Fig.11 It is a structural schematic diagram of a training device for a molecular generation model provided in an embodiment of the present application;

[0045] Fig.12 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation mode of the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0047] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.

[0048] In order to facilitate understanding of the technical process of the embodiments of the present application, some terms involved in the embodiments of the present application are explained below:

[0049] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0050] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0051] The technical solution provided in the embodiment of the present application can also be combined with cloud technology, for example, the trained molecular generation model is deployed on a cloud server. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or local area network to realize data calculation, storage, processing, and sharing.

[0052] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0053] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0054] Convolutional Neural Networks (CNN) are a type of feedforward neural network that includes convolutional calculations and has a deep structure. Its artificial neurons can respond to surrounding units within a certain coverage area. It consists of one or more convolutional layers and a fully connected layer at the top (corresponding to the classic neural network), as well as associated weights and a pooling layer. It is one of the representative algorithms of deep learning.

[0055] Simplified Molecular Input Line Entry Specification (SMILES) is a specification that uses ASCII strings to represent the chemical structure of molecules.

[0056] The following is an introduction to the application scenarios of the training method for the molecular generation model proposed in this application.

[0057] The method provided in this application can be used for small molecule drug development, such as Figure 1 As shown, small molecule drug development mainly includes four processes: target identification and validation, compound screening and lead discovery, preclinical study, and clinical trial. After completing target identification and validation, drug researchers will screen out small molecules that can act on the target from the existing various small molecule drug compounds through the obtained targets. The small molecules screened are often chain structures, and there may be problems with low pharmacological activity and selectivity. The molecular generation model trained based on the method of this application can obtain the expression information of the linker molecule corresponding to the chain molecule while ensuring the drug effect. The linker molecule can be combined with the chain molecule, thereby transforming the small molecule of the chain structure into a macrocyclic small molecule, and at the same time, it can also ensure the drug effect of the macrocyclic small molecule, greatly improving the research and development efficiency and reducing the cost of drug research and development.

[0058] The following is an introduction to the implementation environment of this application. Figure 2 is a schematic diagram of an implementation environment of a training method for a molecular generation model provided in an embodiment of the present application, such as Figure 2 As shown, the implementation environment includes: a terminal 201 and a server 202, and the terminal 201 and the server 202 are connected to each other via a wired or wireless network.

[0059] The terminal 201 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., which is not limited in the present embodiment. In some embodiments, the terminal 201 is used to provide the server 201 with parameters required for training the molecular generation model, such as network initialization parameters and model training hyperparameters.

[0060] Server 202 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN) and basic cloud computing services such as big data and artificial intelligence platforms. In certain embodiments, server 202 is used for training the molecular generation model based on the data provided by terminal 201. Optionally, the number of the above-mentioned terminals or servers can be more or less, and the present application embodiment is not limited to this.

[0061] Optionally, during the process of training the molecular generation model, the server 202 undertakes the main computing work and the terminal 201 undertakes the secondary computing work; or, the server 202 undertakes the secondary computing work and the terminal 201 undertakes the main computing work; or, the server 202 or the terminal 201 can each independently undertake the computing work.

[0062] In some embodiments, the terminal 201 and the server 202 can serve as nodes in a blockchain system.

[0063] In order to more clearly illustrate the method provided by the present application, the following first briefly introduces the molecular generation model involved in the present application. The structure of the molecular generation model is based on the Seq2Seq algorithm for text generation in natural language processing (Natural Language Processing, NLP), and the molecular generation model includes a first embedding vector sub-model, an encoding sub-model, a second embedding vector sub-model and a decoding sub-model. The first embedding vector sub-model is used to convert the expression information of the molecules required by the encoding sub-model into vectors for processing by the encoding sub-model to obtain the encoded information, and the second embedding vector sub-model is used to convert the expression information of the molecules required by the decoding sub-model into vectors, so that the decoding sub-model can generate the expression information of the linker molecule according to the vector and the encoded information. Optionally, the molecular generation model is also called LinkerTransformer.

[0064] based on Figure 2 The implementation environment shown and the molecular generation model introduced above, Figure 3 is a flow chart of a method for training a molecular generation model provided in an embodiment of the present application, the method being executed by a server, such as Figure 3 As shown, this embodiment includes the following steps.

[0065] 301. The server obtains expression information of the macrocyclic small molecule based on expression information of the first sample molecule, expression information of the second sample molecule and a molecule generation model, wherein the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, and the second sample molecule is a replaceable molecular fragment in the molecule. The molecule generation model is used to obtain expression information of the predicted molecule, and the predicted molecule is a small molecule that can bind to the first sample molecule. The macrocyclic small molecule is obtained based on the binding of the first sample molecule with the predicted molecule.

[0066] The expression information is used to represent the chemical structure of the corresponding molecule. Optionally, the expression information is a string that complies with the Simplified Molecular Linear Input Specification (SMILES).

[0067] Wherein, the molecule used to obtain the first sample molecule and the second sample molecule is a known small molecule drug compound. Optionally, the molecule is a small molecule or a macrocyclic small molecule with a chain structure, which is not limited in the present embodiment of the application. By segmenting the molecule, a sample molecule pair for training the model is obtained, and the sample molecule pair includes the expression information of the first sample molecule and the expression information of the second sample molecule. Optionally, the second sample molecule is also called a linker molecule of the first sample molecule.

[0068] The predicted molecule is a linker molecule predicted by the molecule generation model. In some embodiments, the server inputs the expression information of the first sample molecule and the expression information of the second sample molecule into the molecule generation model to obtain the expression information of the predicted molecule, and then obtains the expression information of the macrocyclic small molecule through the expression information of the first sample molecule and the expression information of the predicted molecule.

[0069] 302. The server obtains drug-effect information of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule.

[0070] Among them, the drug efficacy information includes multiple properties of macrocyclic small molecules, such as absorption properties, distribution properties, metabolism properties, excretion properties and toxicity, etc. Among them, absorption properties include water solubility, oral bioavailability, etc., distribution properties include blood-brain barrier permeability (Blood-Brain Barrier Permeability, BBBP), plasma protein binding, etc., and toxicity includes cardiotoxicity (hERG), etc.

[0071] It should be noted that the drug effect information is represented by a vector, and each value in the vector is used to represent an attribute of the macrocyclic small molecule.

[0072] 303. The server obtains a reward value based on the drug effect information of the macrocyclic small molecule, and the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule.

[0073] In some embodiments, if the reward value is greater than 0, it indicates that the drug effect of the macrocyclic small molecule is better; if the reward value is less than 0, it indicates that the drug effect of the macrocyclic small molecule is poor.

[0074] 304. The server trains a molecule generation model based on the reward value, the expression information of the predicted molecule, and the expression information of the second sample molecule.

[0075] In some embodiments, the server first obtains the loss value between the expression information of the predicted molecule and the expression information of the second sample molecule, and then adjusts the loss value based on the reward value, and trains the molecule generation model based on the adjusted loss value.

[0076] The technical solution provided in the embodiment of the present application predicts the expression information of the linker molecule that can bind to the first sample molecule through the molecular generation model and the expression information of the first sample molecule and the expression information of the second sample molecule obtained by segmenting the same molecule, thereby obtaining the expression information of the macrocyclic small molecule, and obtaining the drug effect information of the macrocyclic small molecule to obtain a reward value that can represent the quality of the drug effect of the macrocyclic small molecule. The model is further trained based on the reward value, the expression information predicted by the model and the expression information of the second sample molecule. While ensuring that the model accurately generates the expression information of the linker molecule, the macrocyclic small molecule obtained based on the linker molecule has a better drug effect, thereby making the developed drug have a better efficacy.

[0077] Above Figure 3 The corresponding embodiment is a brief introduction to the training method of the molecular generation model proposed in this application. It should be noted that before performing model training, the server first obtains a training data set for training the model, and the training data set includes multiple sample molecule pairs, each sample molecule pair includes expression information of a first sample molecule and expression information of a second sample molecule obtained based on the same molecule segmentation. In some embodiments, the server can obtain expression information of multiple existing molecules from an associated molecular database, and segment the multiple molecules based on the expression information of the multiple molecules to obtain a sample data set. Optionally, the molecular database is a ChEMBL database.

[0078] In some embodiments, the process of training the molecular generation model includes a pre-training process and a reinforcement learning training process. In the pre-training process of the model, the server uses the expression information of the first sample molecule in the sample molecule pair as input data of the molecular generation model, and the expression information of the second sample molecule in the sample molecule pair as supervision data to pre-train the molecular generation model.

[0079] After completing the model pre-training, the server performs reinforcement learning training on the molecule generation model based on the training data set. Figure 4 and Figure 5 , the training process of the reinforcement learning is described. It should be noted that in the training process of reinforcement learning, the server inputs multiple sample molecule pairs in the training data set into the molecule generation model in batches, and updates the network parameters of the molecule generation model through multiple iterations until the training end condition of the molecule generation model is met. Optionally, the batch size is 8192.

[0080] Figure 4 is a flow chart of a method for training a molecular generation model provided in an embodiment of the present application. The present application embodiment takes any iterative training in the training process of reinforcement learning as an example to illustrate the method. The method is executed by a server, such as Figure 4 As shown, the method includes the following steps.

[0081] 401. The server obtains expression information of the macrocyclic small molecule based on expression information of the first sample molecule, expression information of the second sample molecule and a molecule generation model, wherein the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, and the second sample molecule is a replaceable molecular fragment in the molecule. The molecule generation model is used to obtain expression information of the predicted molecule, and the predicted molecule is a small molecule that can bind to the first sample molecule. The macrocyclic small molecule is obtained based on the binding of the first sample molecule with the predicted molecule.

[0082] In some embodiments, the server inputs the expression information of the first sample molecule and the expression information of the second sample molecule into the molecular generation model to obtain the expression information of the predicted molecule, and then determines the binding mode of the first sample molecule and the predicted molecule through the expression information of the first sample molecule and the expression information of the predicted molecule, and obtains the expression information of the macrocyclic small molecule based on the binding mode.

[0083] By way of example, the process of obtaining the expression information of the predicted molecule is described. Figure 6As shown, the server inputs the expression information of the first sample molecule into the first embedding vector sub-model of the molecule generation model to obtain the embedding vector of the first sample molecule, and inputs the embedding vector of the first sample molecule into the encoding sub-model of the molecule generation model to obtain the molecular binding information of the first sample molecule, and the molecular binding information is used to represent the characteristics of the small molecule that can bind to the first sample molecule. The server inputs the expression information of the second sample molecule into the second embedding vector sub-model of the molecule generation model to obtain the embedding vector of the second sample molecule, and inputs the molecular binding information of the first sample molecule and the embedding vector of the second sample molecule into the decoding sub-model of the molecule generation model to obtain the expression information of the predicted molecule. It should be noted that the molecular binding information is in vector form.

[0084] It should be noted that step 401 corresponds to Figure 5 In part 501, during the training process of reinforcement learning, the molecular generation model is also called an agent.

[0085] 402. The server obtains a molecular topology map of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule.

[0086] The molecular topology graph is a graph structure data, including multiple vertices and multiple edges, each vertex is used to represent an atom in the macrocyclic small molecule, and each edge is used to represent a chemical bond in the macrocyclic small molecule. Optionally, the vertices and edges in the molecular topology graph are represented by vectors.

[0087] In some embodiments, the server determines the atoms, chemical bonds and positions of each atom and each chemical bond contained in the macrocyclic small molecule based on the expression information of the macrocyclic small molecule, and obtains a molecular topology map based on the atoms, chemical bonds and positions of each atom and each chemical bond contained in the macrocyclic small molecule.

[0088] Optionally, the server obtains the molecular topology map based on the expression information of the macrocyclic small molecule through a chemical calculation tool, for example, the chemical calculation tool is RDKit.

[0089] 403. The server obtains drug-effect information of the macrocyclic small molecule based on the molecular topology of the macrocyclic small molecule.

[0090] In some embodiments, the server obtains the drug efficacy information of the macrocyclic small molecule based on the drug efficacy prediction model. Figure 7As shown, the drug effect prediction model includes a first sub-model and a second sub-model. The server inputs the molecular topology map into the drug effect prediction model, extracts the atomic features and chemical bond features of the macrocyclic small molecule based on the first sub-model and the molecular topology map, and maps the atomic features and chemical bond features of the macrocyclic small molecule based on the second sub-model to obtain the drug effect information of the macrocyclic small molecule. Optionally, the first sub-model is a convolutional neural network, which is also called a molecular encoding sub-model, and the second sub-model is a fully connected neural network, which is also called a regression sub-model.

[0091] Optionally, the drug effect prediction model is a graph neural network (GNN). It should be understood that the drug effect prediction model can also be other deep learning models, such as a Transformer model, etc., which is not limited in the embodiments of the present application.

[0092] Exemplarily, the training process of the drug effect prediction model is described. First, the server obtains the molecular topology map of multiple third sample molecules used for training the model and the corresponding reference drug effect information. The third sample molecule is an existing drug small molecule. The server can obtain the expression information of multiple third sample molecules and the corresponding reference drug effect information from the associated molecular database, and obtain the molecular topology map of multiple third sample molecules based on the expression information of the multiple third sample molecules, thereby obtaining data for training the drug effect prediction model. Then, the server trains the drug effect prediction model based on the acquired data. The training process is implemented through multiple iterations. During any iterative training process, the server inputs the molecular topology map of the sample third sample molecule into the drug effect prediction model to obtain the predicted drug effect information of the third sample molecule. Based on the predicted drug effect information and the corresponding reference drug effect information, the drug effect prediction model is trained until the training end condition of the drug effect prediction model is met.

[0093] It should be noted that step 403 corresponds to Figure 5 In part 502, during the training process of reinforcement learning, the drug effect prediction model is also called a critic.

[0094] 404. The server obtains a reward value based on the drug effect information of the macrocyclic small molecule, and the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule.

[0095] In some embodiments, if the drug effect information meets the preset conditions, the server determines the reward value as a positive reward value; if the drug effect information does not meet the preset conditions, the server determines the reward value as a negative reward value. Optionally, the positive reward value is 10 and the negative reward value is -2.

[0096] Exemplarily, the drug efficacy information includes at least one of water solubility, blood-brain barrier permeability and cardiac toxicity of the macrocyclic small molecule, and accordingly, the preset condition includes at least one of the following:

[0097] The water solubility of the macrocyclic small molecule is greater than or equal to a first threshold;

[0098] The blood-brain barrier permeability of the macrocyclic small molecule is greater than or equal to a second threshold;

[0099] The toxicity of the macrocyclic small molecule is less than or equal to a third threshold.

[0100] Optionally, the first threshold is 0.7, the second threshold is 0.7, and the third threshold is 0.4.

[0101] Through this preset condition, a positive reward value can be obtained when the macrocyclic small molecule has a better drug-forming effect, and a negative reward value can be obtained when the macrocyclic small molecule has a poor drug-forming effect. In the subsequent steps, the molecular generation model is trained based on the reward value, which can make the macrocyclic small molecule obtained based on the model have a better drug-forming effect.

[0102] It should be noted that the above steps 401 to 404 are described by taking any sample molecule pair in a batch of sample molecule pairs as an example.

[0103] 405. The server trains the molecule generation model based on the reward value, the expression information of the predicted molecule, and the expression information of the second sample molecule.

[0104] In some embodiments, for any sample molecule pair in a batch of sample molecule pairs, the server obtains a loss value based on the expression information of the predicted molecule and the expression information of the second sample molecule, and the loss value is used to represent the error between the expression information of the predicted molecule and the expression information of the second sample molecule, and the reward value is added to the loss value to obtain the target loss value. The server obtains the mean of the target loss values ​​of a batch of sample molecule pairs. If the training process does not meet the training end condition, the server updates the network parameters of the molecule generation model based on the mean of the target loss value. If the training process meets the training end condition, the server outputs the molecule generation model. Optionally, during the training process, the learning rate (Learning Rate) is set to 0.0001, the forgetting rate (Dropout) is set to 0.1, the weight decay coefficient (Weight Decay) is set to 0.000001, and the training period (Epochs) is set to 50.

[0105] Optionally, the training termination condition of the molecular generation model is that the variance of multiple reward means is less than a fourth threshold, the reward mean is the mean of the reward values ​​of N iterative trainings, and N is an integer greater than 0; or, the number of model iterative trainings reaches a fifth threshold.

[0106] Exemplarily, the process of updating the network parameters of the molecular generation model is described. Based on the mean of the target loss value, the server obtains the gradient of each network layer in the molecular generation model through a backward calculation algorithm (Back Forward), and based on the gradient of each network layer, updates the network parameters of the molecular generation model through an adaptive momentum estimation algorithm (Adaptive Moment Estimation, Adam).

[0107] It should be noted that since the water solubility, blood-brain barrier permeability and cardiac toxicity of macrocyclic small molecules are the key properties that affect the drug-making effect of macrocyclic small molecules, in order to better verify the effect of the proposed method, the macrocyclic small molecules obtained by the method of the present application and the macrocyclic molecules obtained without using the method of the present application were compared in terms of the above three properties. Figure 8 , Fig. 9 , Fig.10 The comparison results of the above three attributes are shown respectively.

[0108] Figure 8 is a distribution diagram of water solubility of a molecule provided in an embodiment of the present application. The larger the water solubility value, the better the drug-making effect of the macrocyclic small molecule. Figure 8 As shown, the average water solubility of the macrocyclic small molecule obtained based on the method of the present application is increased from -3.4 to -2.8, which is a relative increase of 18%.

[0109] Fig. 9 : is a distribution diagram of the blood-brain barrier permeability of a molecule provided in an embodiment of the present application. The larger the value of the blood-brain barrier permeability, the better the drug-making effect of the macrocyclic small molecule. Fig. 9 As shown, compared with the macrocyclic small molecules obtained by the method of the present application and those not obtained by the method of the present application, the average blood-brain barrier permeability of the macrocyclic small molecules obtained by the method of the present application increased from 0.6 to 0.66, a relative increase of 10%.

[0110] Fig.10 : is a distribution diagram of molecular cardiotoxicity provided in the embodiment of the present application. The smaller the value of cardiotoxicity is, the better the drug effect of the macrocyclic small molecule is. Fig.10 As shown, the mean cardiac toxicity of the macrocyclic small molecule obtained based on the method of the present application is reduced from 0.2 to 0.112, a relative reduction of 44%.

[0111] In summary, the macrocyclic small molecules obtained by the method of this application have an average drug-making effect of 24% for the above three properties. It can be seen that the method proposed in this application can obtain macrocyclic small molecules with better drug-making effects.

[0112] The technical solution provided in the embodiment of the present application predicts the expression information of the linker molecule that can bind to the first sample molecule through the molecular generation model and the expression information of the first sample molecule and the expression information of the second sample molecule obtained by segmenting the same molecule, thereby obtaining the expression information of the macrocyclic small molecule, and obtaining the drug effect information of the macrocyclic small molecule to obtain a reward value that can represent the quality of the drug effect of the macrocyclic small molecule. The model is further trained based on the reward value, the predicted expression information and the expression information of the second sample molecule. While ensuring that the model accurately generates the expression information of the linker molecule, the macrocyclic small molecule obtained based on the linker molecule has a better drug effect, thereby making the developed drug have a better efficacy.

[0113] Fig.11 is a schematic diagram of the structure of a training device for a molecular generation model provided in an embodiment of the present application, such as Fig.11 As shown, the device includes: a generating module 1101, an acquiring module 1102 and a training module 1103.

[0114] A generation module 1101 is used to obtain expression information of a macrocyclic small molecule based on expression information of a first sample molecule, expression information of a second sample molecule, and a molecule generation model, wherein the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, the second sample molecule is a replaceable molecular fragment in the molecule, and the molecule generation model is used to obtain expression information of a predicted molecule, the predicted molecule is a small molecule that can bind to the first sample molecule, and the macrocyclic small molecule is obtained based on the binding of the first sample molecule to the predicted molecule;

[0115] An acquisition module 1102 is used to acquire drug efficacy information of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule;

[0116] The acquisition module 1102 is used to acquire a reward value based on the drug effect information of the macrocyclic small molecule, and the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule;

[0117] The training module 1103 is used to train the molecule generation model based on the reward value, the expression information of the predicted molecule and the expression information of the second sample molecule.

[0118] In some embodiments, the acquisition module 1102 includes:

[0119] A first acquisition submodule is used to acquire a molecular topology map of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule;

[0120] The second acquisition submodule is used to obtain the drug effect information of the macrocyclic small molecule based on the molecular topology of the macrocyclic small molecule.

[0121] In some embodiments, the second acquisition submodule is used to input the molecular topology map into a drug effect prediction model; based on the first submodel of the drug effect prediction model and the molecular topology map, the atomic characteristics and chemical bond characteristics of the macrocyclic small molecule are extracted; based on the second submodel of the drug effect prediction model, the atomic characteristics and chemical bond characteristics of the macrocyclic small molecule are mapped to obtain the drug effect information of the macrocyclic small molecule.

[0122] In some embodiments, the acquisition module 1102 is used to determine the reward value as a positive reward value if the drug effect information meets the preset conditions; if the drug effect information does not meet the preset conditions, determine the reward value as a negative reward value.

[0123] In some embodiments, the drug-forming effect information of the macrocyclic small molecule includes at least one of the water solubility, blood-brain barrier permeability and cardiac toxicity of the macrocyclic small molecule;

[0124] Accordingly, the preset condition includes at least one of the following:

[0125] The water solubility of the macrocyclic small molecule is greater than or equal to a first threshold;

[0126] The blood-brain barrier permeability of the macrocyclic small molecule is greater than or equal to a second threshold;

[0127] The toxicity of the macrocyclic small molecule is less than or equal to a third threshold.

[0128] In some embodiments, the training module is used for 1103, based on the expression information of the predicted molecule and the expression information of the second sample molecule, obtaining a loss value, the loss value being used to represent the error between the expression information of the predicted molecule and the expression information of the second sample molecule; adding the reward value to the loss value to obtain a target loss value; and training the molecule generation model based on the target loss value.

[0129] In some embodiments, the apparatus further comprises:

[0130] A pre-training module is used to obtain a training data set, the training set includes multiple sample molecule pairs, the sample molecule pairs include expression information of a first sample molecule and expression information of a second sample molecule obtained based on the segmentation of the same molecule; the expression information of the first sample molecule in the sample molecule pair is used as input data of a molecule generation model, and the expression information of the second sample molecule in the sample molecule pair is used as supervision data to pre-train the molecule generation model.

[0131] It should be noted that: the training device for the molecular generation model provided in the above embodiment only uses the division of the above functional modules as an example when training the molecular generation model. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the training device for the molecular generation model provided in the above embodiment and the training method embodiment of the molecular generation model belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0132] The present disclosure provides a computer device for executing the above-mentioned training method for molecular generation model. In some embodiments, the computer device is provided as a server. Fig.12 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1200 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1201 and one or more memories 1202, wherein the one or more memories 1202 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1201 to implement the methods provided in the above-mentioned various method embodiments. Of course, the server 1200 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1200 may also include other components for implementing device functions, which will not be described in detail here.

[0133] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including at least one program code, and the at least one program code can be executed by a processor to complete the training method of the molecular generation model in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0134] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising at least one computer program, the at least one computer program being stored in a computer-readable storage medium. A processor of a computer device reads the at least one computer program from the computer-readable storage medium, and the processor executes the at least one computer program, so that the computer device performs the operations performed by the above-mentioned training method for generating a molecular model.

[0135] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.

[0136] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0137] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for training a molecular generative model, characterized in that: The method comprises: Acquiring expression information of a macrocyclic small molecule based on expression information of a first sample molecule, expression information of a second sample molecule, and a molecule generation model, wherein the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, the second sample molecule is a replaceable molecular fragment in the molecule, the molecule generation model is used to acquire expression information of a predicted molecule, the predicted molecule is a small molecule that can bind to the first sample molecule, and the macrocyclic small molecule is obtained based on the binding of the first sample molecule to the predicted molecule; Based on the expression information of the macrocyclic small molecule, obtaining a molecular topology map of the macrocyclic small molecule; Inputting the molecular topology map into a drug effect prediction model; Extracting atomic features and chemical bond features of the macrocyclic small molecule based on the first sub-model of the drug efficacy prediction model and the molecular topology map; Based on the second sub-model of the drug-effect prediction model, the atomic features and chemical bond features of the macrocyclic small molecule are mapped to obtain drug-effect information of the macrocyclic small molecule; the drug-effect information of the macrocyclic small molecule includes at least one of water solubility, blood-brain barrier permeability and cardiac toxicity of the macrocyclic small molecule; Based on the drug effect information of the macrocyclic small molecule, a reward value is obtained, wherein the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule; Based on the expression information of the predicted molecule and the expression information of the second sample molecule, acquiring a loss value, wherein the loss value is used to represent an error between the expression information of the predicted molecule and the expression information of the second sample molecule; Adding the reward value to the loss value to obtain a target loss value; The molecule generation model is trained based on the target loss value.

2. The method according to claim 1, characterized in that The obtaining of the reward value based on the drug-making effect information of the macrocyclic small molecule includes: If the drug effect information meets the preset conditions, the reward value is determined as a positive reward value; If the drug effect information does not meet the preset conditions, the reward value is determined as a negative reward value.

3. The method according to claim 2, characterized in that The preset condition includes at least one of the following: The water solubility of the macrocyclic small molecule is greater than or equal to a first threshold; The blood-brain barrier permeability of the macrocyclic small molecule is greater than or equal to a second threshold; The toxicity of the macrocyclic small molecule is less than or equal to a third threshold.

4. The method according to claim 1, characterized in that: Before acquiring the expression information of the macrocyclic small molecule based on the expression information of the first sample molecule, the expression information of the second sample molecule and the molecular generation model, the method further comprises: Acquire a training data set, wherein the training data set includes a plurality of sample molecule pairs, wherein the sample molecule pairs include expression information of a first sample molecule and expression information of a second sample molecule obtained based on segmentation of the same molecule; The expression information of the first sample molecule in the sample molecule pair is used as input data of the molecule generation model, and the expression information of the second sample molecule in the sample molecule pair is used as supervision data to pre-train the molecule generation model.

5. A training device for a molecular generation model, characterized in that: The device comprises: A generation module, used to obtain expression information of a macrocyclic small molecule based on expression information of a first sample molecule, expression information of a second sample molecule and a molecule generation model, wherein the first sample molecule and the second sample molecule are obtained by segmenting the same molecule, the second sample molecule is a replaceable molecular fragment in the molecule, the molecule generation model is used to obtain expression information of a predicted molecule, the predicted molecule is a small molecule that can bind to the first sample molecule, and the macrocyclic small molecule is obtained based on the binding of the first sample molecule to the predicted molecule; An acquisition module, comprising a first acquisition submodule and a second acquisition submodule; The first acquisition submodule is used to acquire a molecular topology map of the macrocyclic small molecule based on the expression information of the macrocyclic small molecule; The second acquisition submodule is used to input the molecular topology map into a drug effect prediction model; based on the first submodel of the drug effect prediction model and the molecular topology map, the atomic features and chemical bond features of the macrocyclic small molecule are extracted; based on the second submodel of the drug effect prediction model, the atomic features and chemical bond features of the macrocyclic small molecule are mapped to obtain drug effect information of the macrocyclic small molecule; the drug effect information of the macrocyclic small molecule includes at least one of the water solubility, blood-brain barrier permeability and cardiac toxicity of the macrocyclic small molecule; The acquisition module is used to acquire a reward value based on the drug effect information of the macrocyclic small molecule, and the reward value is used to indicate the quality of the drug effect of the macrocyclic small molecule; A training module is used to obtain a loss value based on the expression information of the predicted molecule and the expression information of the second sample molecule, wherein the loss value is used to represent the error between the expression information of the predicted molecule and the expression information of the second sample molecule; add the reward value to the loss value to obtain a target loss value; and train the molecule generation model based on the target loss value.

6. The device according to claim 5, characterized in that The acquisition module is used to determine the reward value as a positive reward value if the drug effect information meets the preset conditions; if the drug effect information does not meet the preset conditions, determine the reward value as a negative reward value.

7. The device according to claim 6, characterized in that The preset condition includes at least one of the following: The water solubility of the macrocyclic small molecule is greater than or equal to a first threshold; The blood-brain barrier permeability of the macrocyclic small molecule is greater than or equal to a second threshold; The toxicity of the macrocyclic small molecule is less than or equal to a third threshold.

8. The device according to claim 5, characterized in that The device also includes: A pre-training module is used to obtain a training data set, wherein the training data set includes multiple sample molecule pairs, wherein the sample molecule pairs include expression information of a first sample molecule and expression information of a second sample molecule obtained based on segmentation of the same molecule; the expression information of the first sample molecule in the sample molecule pair is used as input data of a molecule generation model, and the expression information of the second sample molecule in the sample molecule pair is used as supervision data to pre-train the molecule generation model.

9. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to implement the training method for the molecular generation model as described in any one of claims 1 to claim 4.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the training method for a molecular generation model as described in any one of claims 1 to 4.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the training method for a molecular generation model according to any one of claims 1 to 4 is implemented.