A drug virtual screening method based on adaptive meta-learning

The adaptive meta-learning method is used to adjust the task weight of the drug virtual screening model, which solves the problem of insufficient correlation between upstream and downstream tasks and improves the generalization performance and prediction effect of the drug virtual screening model.

CN115101145BActive Publication Date: 2024-09-17JINAN UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing drug virtual screening methods are difficult to achieve good results when there is insufficient downstream task data, and insufficient correlation between upstream and downstream tasks leads to insufficient model generalization performance, leading to insufficient drug activity screening.

Method used

Adopting a method based on adaptive meta-learning, by building a multi-task neural network model, using the meta-learner to adjust task weights, adding prediction layers related to target tasks, and adaptively adjusting the drug virtual screening model to make it more efficient among upstream and downstream tasks. to achieve better correlation and generalization performance.

Benefits of technology

It improves the generalization performance of the drug virtual screening model, can screen out drug molecules with sufficient activity and meets the requirements when downstream tasks lack annotated data, and improves the prediction performance of the drug virtual screening model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115101145B
    Figure CN115101145B
Patent Text Reader

Abstract

The present invention discloses a drug virtual screening method and system based on adaptive meta-learning, comprising the following steps: S1, pre-processing drug molecule data of a public database to obtain molecular graph data and dividing T data sets; S2, constructing a multi-task neural network model based on a meta-learner; S3, pre-training the neural network model using the above data sets to obtain a drug virtual screening model; S4, inputting task target data into the above drug virtual screening model, adjusting the task weight, adding a prediction layer related to the target task, and obtaining a drug virtual screening model that is strongly related to the target task. Compared with the drug screening method based on deep learning, this method uses a meta-learner to adjust the task weight of the model, and by adding a prediction layer related to the target task, the model can be adaptively adjusted, so that the drug virtual screening model achieves better generalization performance, and can screen out drug molecules that are sufficiently active and meet the requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of drug research and development based on deep learning, and more specifically, to a drug virtual screening method based on adaptive meta-learning. Background Art

[0002] In the process of drug development, the stage of generating large-scale experimental data is often in the drug screening step. The so-called drug screening is to screen out compounds that are active against predefined target proteins from hundreds of candidate compounds. However, such a process is very costly and time-consuming, so it is impossible to conduct biochemical experiments on a large amount of compound space. In recent years, with the improvement of computer computing power and the emergence of artificial intelligence-related technologies, the use of deep learning to accelerate drug virtual screening and reduce unnecessary experimental costs has become a hot spot and difficulty in research.

[0003] Nowadays, virtual drug screening based on supervised learning and self-supervised learning has made considerable progress. The core idea of ​​these methods is to use a large number of existing active indicators or artificially designed label drug molecules in the upstream to train the deep neural network model according to the designed supervision tasks, and then transfer the trained model parameters with domain knowledge to various downstream tasks. Finally, use a small part of the downstream drug molecule data to train the deep model in a small amount and use it for virtual drug screening. However, these methods often require that the downstream tasks have a certain correlation with the upstream tasks, otherwise negative transfer will occur, resulting in insufficient generalization performance of the model, and then the problem of insufficient activity of the screened drugs. How to make the upstream and downstream tasks consistent and adapt to different downstream tasks needs to be solved urgently.

[0004] The prior art discloses a drug screening method, device and electronic device, which specifically includes: determining the structural features of the protein molecule and the target molecule in the molecular sample pair; determining the node information transmission subnetwork of the graph neural network in the drug screening model; determining the edge information transmission subnetwork of the graph neural network in the drug screening model based on the structural features of the protein molecule; and combining the protein molecule and the target molecule through the drug screening model. The drawback of this solution is that it cannot achieve good results in executing downstream tasks, and is not suitable for situations where there is insufficient data for downstream tasks.

[0005] To this end, in combination with the above requirements and the shortcomings of the prior art, this application proposes a drug virtual screening method and system based on adaptive meta-learning. Summary of the invention

[0006] The present invention provides a drug virtual screening method and system based on adaptive meta-learning, which can adaptively adjust the drug virtual screening model according to the upstream and downstream tasks of the drug virtual screening task, so that the drug virtual screening model can achieve better generalization performance.

[0007] The primary purpose of the present invention is to solve the above technical problems. The technical solution of the present invention is as follows:

[0008] The first aspect of the present invention provides a drug virtual screening method based on adaptive meta-learning, comprising the following steps:

[0009] S1. Set the number of task types T, pre-process the drug molecule experimental data in the public database to obtain molecular graph data, and then sort out T mutually exclusive data sets and T tasks related to the training task.

[0010] S2. Build a multi-task neural network model based on meta-learner.

[0011] S3. Use the above data set to pre-train the neural network model to obtain a drug virtual screening model with domain knowledge.

[0012] S4. Input a set amount of task target data into the above-mentioned drug virtual screening model, adjust the weights of T tasks according to the meta-learner, add a prediction layer related to the target task, and obtain a drug virtual screening model that is strongly related to the target task.

[0013] S5, using a drug virtual screening model that is strongly related to the task objective to perform large-scale drug virtual screening. Further, the process of preprocessing the drug molecule experimental data described in step S1 is specifically as follows:

[0014] S11. Collect drug molecules and corresponding compounds that can act on several known protein targets in the human body from public databases.

[0015] S12. Classify the experimental types of drug molecules and compounds, including water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient and molecular 3D coordinate distance.

[0016] S13. Use the tool library of the scripting language to convert the sorted and classified drug molecules and compounds into SMILES strings and molecular structures, and finally output the graph data as task-related data.

[0017] S14. Use task-related data to pre-train the neural network model.

[0018] The public database is ChEMBL. The drug molecule experimental data of the public database ChEMBL are preprocessed and classified according to the type of experiment, which mainly includes water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient, molecular 3D coordinate distance, etc.

[0019] Furthermore, the drug molecules and compounds in step S13 are converted into graph data output, and the mathematical expression thereof is as follows:

[0020] G=(U,H,E)

[0021]

[0022]

[0023] Among them, U is the global attribute of the graph data; H represents the node set; h i is the attribute vector of the node; E is the set of edges; e k is the attribute vector of the edge; r k is the index of the receiving node; k is the index of the emission node; N represents the number of nodes in the molecular graph, and its connection relationship is the same as the chemical bond connection relationship of the molecule. A value of 0 indicates that there is no edge connection between the nodes, and a value of 1 indicates that there is an edge connection;

[0024] Among them, the node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

[0025] Furthermore, the specific process of obtaining T mutually exclusive data sets related to the training task in step S1 is: dividing the experimental types of drug molecules and compounds into T task types, respectively represented as T1, T2, T3, T4...T T , the pre-processed drug molecule data are divided into T mutually exclusive sets, and the set consisting of the graph data after molecular conversion and its labels is hash mapped and saved in a local file for training the first stage pre-training model.

[0026] Furthermore, the multi-task neural network model based on the meta-learner in step S2 includes three modules connected in sequence, specifically: a multi-layer graph convolution module based on multiple attention fusion edge and node information, a task-related multi-layer perceptron module, and a meta-learner module for adaptively adjusting task weights.

[0027] Among them, the preprocessed drug molecule experimental data is input into the multi-layer graph convolution module to obtain a vector representation of the molecular graph data, and the vector representation is input into T parallel multi-layer perceptron modules corresponding to T task types, and task-related prediction values ​​and task-related features are output. The task-related features are input into the meta-learner module to obtain the weight coefficient of the task-related layer; the weight coefficient is multiplied by the difference between the predicted value and the true value as the loss function of the neural network model, and the back-propagation algorithm is used for training.

[0028] The formula of the loss function is as follows:

[0029]

[0030]

[0031] Where f(x) represents the predicted value of the neural network model, y represents the label corresponding to the input data, m represents the number of samples, L1 represents the loss function of the regression task, and L2 represents the loss function of the classification task.

[0032] Furthermore, the multi-layer graph convolution module based on multiple attention fusion edge and node information is composed of multiple single-layer graph convolution modules based on the attention mechanism connected in sequence, and a single single-layer graph convolution module based on the attention mechanism specifically includes: a message passing module, an information aggregation module, and an update module.

[0033] The message passing module uses the neighboring nodes u∈N of the central node v to communicate with each other according to the adjacency relationship of the nodes in the molecular graph data. v And its side information e are spliced ​​to obtain the triple fusion information C v , the attention mechanism is used to transform the triple fusion information, and the output includes the attention scores of the neighbor nodes and the neighbor information of the connected edges for the central node, and the attention scores are normalized.

[0034] The information aggregation module performs weighted summation of the features of all neighbor nodes of the central node according to the normalized attention scores to obtain the message feature vector to be updated.

[0035]

[0036] The update module updates the message feature vector to be updated. And the feature vector v of the central node is concatenated, and through the linear transformation operation with the activation function, the graph data that integrates the features of the first-order neighbor nodes is output, and then the input graph data and the output graph data that integrates the features of the first-order neighbor nodes are added, and input into the layer normalization module to obtain the updated graph data.

[0037] Among them, multiple single-layer graph convolution modules based on the attention mechanism are connected in sequence to form a multi-layer graph convolution module based on multiple attention fusion edge and node information. The molecular graph data is output through the multi-layer graph convolution module to form a vector representation including the representation of the entire molecular graph.

[0038] Furthermore, the input end of the task-related multilayer perceptron module is connected to the output end of the multilayer graph convolution module, including multilayer perceptron modules of T task types, and the parameters of each task layer are different. The multilayer perceptron has three layers, and each layer includes a fully connected layer and an activation function.

[0039] Among them, the specific structure of the multilayer perceptron is as follows: the vector representation is input into the multilayer perceptron module, and the prediction value of the corresponding task type is output after passing through the first fully connected layer, activation function, second fully connected layer, activation function, third fully connected layer, and activation function in sequence; the second connection layer will also output an intermediate layer corresponding to the task to output task-related features for the meta-learner to calculate the task weight.

[0040] Furthermore, the input end of the meta-learner module for adaptively adjusting task weights is connected to the output end of the multi-layer perceptron module, and includes three groups of parallel fully connected layers and activation functions.

[0041] The input end of the meta-learner module receives T task layers T1, T2, ..., T T The output features of the second connection layer are respectively transformed through the first linear transformation Q and the activation function to obtain the transformed task Query feature T1 q ,T2 q ,…,T T q The output features are respectively transformed through the second linear transformation K and the activation function to obtain the transformed task Key feature T1 k ,T2 k ,…,T T k The output features are respectively transformed through the third linear transformation V and the activation function to obtain the transformed task Value feature T1 v ,T2 v ,…,T T v; Perform a dot product operation on the Query feature and the Key feature vector to obtain the attention weight score and normalize it. Use the attention weight score to perform weighted summation on the task Value feature, and input the obtained feature vector into a layer of linear transformation to obtain a four-dimensional weight vector; The weight vector is used to evaluate the correlation between the current input graph data and T tasks. The higher the correlation, the greater the weight of the corresponding task position, otherwise the smaller the weight.

[0042] Furthermore, the process of pre-training the neural network model described in step S3 is as follows: for each batch of graph data input during training, the neural network model is trained by a back-propagation algorithm under the guidance of a loss function; the objective function of the graph data is based on the task weights output by a meta-learner module that adaptively adjusts the task weights, and the losses of T tasks are weighted summed to obtain a dynamic task loss sum; the generalization performance of the neural network model is optimized by minimizing the dynamic task loss sum, thereby obtaining a drug virtual screening model with domain knowledge.

[0043] The mathematical expression of the objective function is as follows:

[0044]

[0045] Among them, a1, a2, a3, and a4 are the task weights adaptively calculated by the meta-learner, and a1+a2+a3+a4=1. Minimizing the above objective function is used to enable the model to fully learn the chemical domain knowledge that is common to a variety of drug property tasks or strongly related to downstream tasks, thereby improving the accuracy of drug virtual screening.

[0046] Furthermore, step S4 is specifically as follows: for the specific downstream drug screening task, a small amount of target task data is selected and input into the pre-trained drug virtual screening model with domain knowledge, and the weights of T tasks are adjusted according to the meta-learner so that the model adaptively adjusts the weights of the tasks to obtain a drug virtual screening model with better generalization performance; a prediction layer related to the target task is added, and the prediction layer uses the target task data to fine-tune the drug virtual screening model with better generalization performance to obtain a drug virtual screening model that is strongly related to the target task.

[0047] Furthermore, the step S5 is specifically as follows: converting the target task molecular data into graph data, initializing the features of the nodes and edges, inputting the above data into a drug virtual screening model that is strongly related to the target task, and outputting the screening results of active drug molecules associated with downstream tasks.

[0048] Among them, the process of initializing the features of nodes and edges is as follows: the node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons, which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

[0049] Furthermore, the drug virtual screening model strongly related to the target task obtained in step S4 maintains the model weight and structure unchanged. Then, the molecule corresponding to the target task is initialized according to the above steps, and the corresponding feature vector is input into the model, and the model outputs the corresponding molecular activity data prediction value. The prediction values ​​of all molecules are sorted from large to small, and the top several molecules are taken as the final drug virtual screening results.

[0050] A second aspect of the present invention provides a drug virtual screening system based on adaptive meta-learning, comprising a memory and a processor, wherein the memory comprises a drug virtual screening program based on adaptive meta-learning, and when the drug virtual screening program based on adaptive meta-learning is executed by the processor, the following steps are implemented:

[0051] S1. Set the number of task types T, pre-process the drug molecule experimental data in the public database to obtain molecular graph data, and then sort out T mutually exclusive data sets and T tasks related to the training task;

[0052] S2. Build a multi-task neural network model based on meta-learner;

[0053] S3, using the above data set to pre-train the neural network model to obtain a drug virtual screening model with domain knowledge;

[0054] S4, inputting a set number of task target data into the above-mentioned drug virtual screening model, adjusting the weights of T tasks according to the meta-learner, adding a prediction layer related to the target task, and obtaining a drug virtual screening model that is strongly related to the target task;

[0055] S5. Use a drug virtual screening model that is strongly related to the task objectives to conduct large-scale drug virtual screening.

[0056] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0057] The present invention provides a drug virtual screening method based on adaptive meta-learning. A drug virtual screening model with domain knowledge is obtained by pre-training the model using existing large-scale molecular data, so that the generalization performance of the model can be improved when downstream tasks lack labeled data. The meta-learner is used to adjust the task weights of the drug virtual screening model with domain knowledge, and a prediction layer related to the target task is added to make the drug virtual screening model pay more attention to the correlation between upstream and downstream tasks, achieve better generalization performance, and be able to screen out drug molecules with sufficient activity and meeting the requirements, thereby improving the prediction performance of the drug virtual screening model. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 This is a flow chart of a drug virtual screening method based on adaptive meta-learning of the present invention.

[0059] Figure 2 This is a schematic diagram of a training strategy for adaptively adjusting task weight parameters and the overall process in a drug virtual screening method based on adaptive meta-learning of the present invention.

[0060] Figure 3 The figure is a flow chart of the conversion of molecule to graph data and its feature initialization in one embodiment of the present invention.

[0061] Figure 4 These are the values ​​used to initialize the node features and edge features of the molecular graph data in one embodiment of the present invention.

[0062] Figure 5 In one embodiment of the present invention, taking the butyric acid molecule as an example, a schematic diagram of the process of the molecule passing through a single-layer graph convolution module based on the attention mechanism is shown.

[0063] Figure 6 Schematic diagram of the structure of the multi-layer graph convolution module based on multi-attention fusion of edge and node information in the present invention.

[0064] Figure 7 It is a schematic diagram of the structure of the multi-layer perceptron module based on task correlation in the present invention.

[0065] Figure 8 Schematic diagram of the structure of the meta-learner module for adaptively adjusting task weights in the present invention.

[0066] Fig. 9 It is a schematic diagram of the structure of the prediction layer module related to the target task in the present invention.

[0067] Fig.10 This is a schematic diagram of the structure of a drug virtual screening system based on adaptive meta-learning in the present invention. DETAILED DESCRIPTION

[0068] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0069] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0070] Example 1

[0071] like Figure 1-Figure 2 As shown, the present invention provides a drug virtual screening method based on adaptive meta-learning, comprising the following steps:

[0072] S1. Set the number of task types T, pre-process the drug molecule experimental data in the public database to obtain molecular graph data, and then sort out T mutually exclusive data sets and T tasks related to the training task.

[0073] S2. Build a multi-task neural network model based on meta-learner.

[0074] S3. Use the above data set to pre-train the neural network model to obtain a drug virtual screening model with domain knowledge.

[0075] S4. Input a set amount of task target data into the above-mentioned drug virtual screening model, adjust the weights of T tasks according to the meta-learner, add a prediction layer related to the target task, and obtain a drug virtual screening model that is strongly related to the target task.

[0076] S5, using a drug virtual screening model that is strongly related to the task objective to perform large-scale drug virtual screening. Further, the process of preprocessing the drug molecule experimental data described in step S1 is specifically as follows:

[0077] S11. Collect drug molecules and corresponding compounds that can act on several known protein targets in the human body from public databases.

[0078] S12. Classify the experimental types of drug molecules and compounds, including water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient and molecular 3D coordinate distance.

[0079] S13. Use the tool library of the scripting language to convert the sorted and classified drug molecules and compounds into SMILES strings and molecular structures, and finally output the graph data as task-related data.

[0080] S14. Use task-related data to pre-train the neural network model.

[0081] Wherein, T is 4; the public database is ChEMBL, and the scripting language tool library is the Python tool library Rdkit. The drug molecule experimental data of the public database ChEMBL are preprocessed and classified according to the type of experiment, which mainly includes water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient, molecular 3D coordinate distance, etc.

[0082] In a specific embodiment, according to the ten known protein targets of the human body, drug molecules that can act on them are collected from the public database ChEMBL, and one million drug molecules are downloaded for each protein target, and then they are sorted and classified according to four experimental types, mainly including water solubility coefficient, fat solubility coefficient, drug target affinity coefficient, and molecular 3D coordinate distance. The sorted and classified compounds are converted from SMILES to molecular structure through the Python tool library Rdkit in turn, and finally expressed through graph data.

[0083] Furthermore, the drug molecules and compounds in step S13 are converted into graph data output, and the mathematical expression thereof is as follows:

[0084] G=(U,H,E)

[0085]

[0086]

[0087] Among them, U is the global attribute of the graph data; H represents the node set; h i is the attribute vector of the node; E is the set of edges; e k is the attribute vector of the edge; r k is the index of the receiving node; k is the index of the emission node; N represents the number of nodes in the molecular graph, and its connection relationship is the same as the chemical bond connection relationship of the molecule. A value of 0 indicates that there is no edge connection between the nodes, and a value of 1 indicates that there is an edge connection.

[0088] Among them, the node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

[0089] Furthermore, the specific process of obtaining T mutually exclusive data sets related to the training task in step S1 is: dividing the experimental types of drug molecules and compounds into T task types, respectively represented as T1, T2, T3, T4...T T , the pre-processed drug molecule data are divided into T mutually exclusive sets, and the set consisting of the graph data after molecular conversion and its labels is hash mapped and saved in a local file for training the first stage pre-training model.

[0090] Furthermore, the multi-task neural network model based on the meta-learner in step S2 includes three modules connected in sequence, such as Figure 2 As shown in the figure, specifically: a multi-layer graph convolution module based on multi-attention fusion of edge and node information, a multi-layer perceptron module based on task relevance, and a meta-learner module for adaptively adjusting task weights.

[0091] Among them, the preprocessed drug molecule experimental data is input into the multi-layer graph convolution module to obtain a vector representation of the molecular graph data, and the vector representation is input into T parallel multi-layer perceptron modules corresponding to T task types, and task-related prediction values ​​and task-related features are output. The task-related features are input into the meta-learner module to obtain the weight coefficient of the task-related layer; the weight coefficient is multiplied by the difference between the predicted value and the true value as the loss function of the neural network model, and the back-propagation algorithm is used for training.

[0092] The formula of the loss function is as follows:

[0093]

[0094]

[0095] Where f(x) represents the predicted value of the neural network model, y represents the label corresponding to the input data, m represents the number of samples, L1 represents the loss function of the regression task, and L2 represents the loss function of the classification task.

[0096] Furthermore, the multi-layer graph convolution module based on multiple attention fusion edge and node information is composed of multiple single-layer graph convolution modules based on the attention mechanism connected in sequence, and a single single-layer graph convolution module based on the attention mechanism specifically includes: a message passing module, an information aggregation module, and an update module.

[0097] The message passing module uses the neighboring nodes u∈N of the central node v to communicate with each other according to the adjacency relationship of the nodes in the molecular graph data. v And its side information e are spliced ​​to obtain the triple fusion information C v, the attention mechanism is used to transform the triple fusion information, and the output includes the attention scores of the neighbor nodes and the neighbor information of the connected edges for the central node, and the attention scores are normalized.

[0098] Among them, Figure 5 As shown in the figure, the mathematical expression of the single-layer graph convolution module based on the attention mechanism is:

[0099] w ij =u T [W h h i ||W e e ij ||W h h j ]

[0100]

[0101]

[0102]

[0103]

[0104] Among them, N i For all first-order neighbor nodes of graph node i, for any set of neighbor nodes j and central node i and its connected edges e ij , through the learnable parameter W h ,W e For node feature h i and h j And the edge feature e ij Perform linear transformation to increase the diversity of features, and then output the attention scores of the three parts of information through learnable linear transformation after splicing. Then according to the node feature h i and h j And the edge feature e ij Perform weighted summation to obtain the attention score δ of neighbor node j relative to the center node i ij Similarly, for all neighbor nodes (j∈N i ) Perform the above operation to obtain the attention score δ of all neighbor nodes j relative to the central node i ij (∈N i The information aggregation module performs weighted summation of all neighbor nodes according to the attention weights and outputs the message features to be updated. The update module updates the input feature h of the central node i And the message characteristics to be updated Perform the concatenation operation and then use the linear transformation W 2And the activation function LeakyReLU increases the diversity of the concatenated features and outputs the new features of the central node i As the input of the single-layer graph convolutional network module based on the attention mechanism, the next round of update iteration is carried out.

[0105] The information aggregation module performs weighted summation of the features of all neighbor nodes of the central node according to the normalized attention scores to obtain the message feature vector to be updated.

[0106] Among them, Figure 6 As shown, the update module updates the message feature vector to be updated And the feature vector v of the central node is concatenated, and through the linear transformation operation with the activation function, the graph data that integrates the features of the first-order neighbor nodes is output, and then the input graph data and the output graph data that integrates the features of the first-order neighbor nodes are added, and input into the layer normalization module to obtain the updated graph data.

[0107] In a specific embodiment, the multi-layer graph convolution module based on multi-attention fusion of edge and node information contains two single-layer attention convolution modules. For any central node of the graph data of the input network, it aggregates the features of its second-order neighbor nodes and updates its own features, thereby capturing the structural information on the graph data.

[0108] Among them, multiple single-layer graph convolution modules based on the attention mechanism are connected in sequence to form a multi-layer graph convolution module based on multiple attention fusion edge and node information. The molecular graph data is output through the multi-layer graph convolution module to form a vector representation including the representation of the entire molecular graph.

[0109] Further, such as Figure 6 As shown, the multi-layer graph convolution module based on multiple attention fusion edge and node information is specifically: a first-layer single-layer attention convolution module, a first-layer normalization layer, a second-layer single-layer attention convolution module, a second-layer normalization layer, repeating the above layers and connecting them in sequence, for extracting structural features of the input molecular graph data to output a feature map for the input of the next layer of convolution module.

[0110] In a specific embodiment, the convolution operation process of the multi-layer graph convolution module based on multiple attention fusion edge and node information is to repeatedly perform convolution operation-layer normalization operation, so that the single-layer attention graph convolution module can first perform normalization processing before receiving the output graph data of the previous layer. While extracting multi-order neighbor information in the feature graph, it ensures that the feature data distribution is close to the standard normal distribution, and the input data falls at a position where the nonlinear activation function is relatively sensitive to the input, and then the convolution feature extraction operation is performed, so it has better performance.

[0111] Furthermore, the input end of the task-related multilayer perceptron module is connected to the output end of the multilayer graph convolution module, including multilayer perceptron modules of T task types, and the parameters of each task layer are different. The multilayer perceptron has three layers, and each layer includes a fully connected layer and an activation function.

[0112] Among them, Figure 7 As shown, the specific structure of the multilayer perceptron is as follows: the vector representation is input into the multilayer perceptron module, and the prediction value of the corresponding task type is output after passing through the first fully connected layer, the activation function, the second fully connected layer, the activation function, the third fully connected layer, and the activation function in sequence; wherein the second connection layer also outputs an intermediate layer corresponding to the task to output task-related features for the meta-learner to calculate the task weight.

[0113] Among them, in a specific embodiment, the task type T is four task types, and the input end of the task-related multilayer perceptron module is connected to the output end of the multilayer graph convolution module based on multiple attention fusion edge and node information, specifically the first task T1 multilayer perceptron module, the second task T2 multilayer perceptron module, the second task T3 multilayer perceptron module and the fourth task T4 multilayer perceptron module; the four task modules correspond one by one to the tasks sorted out in step S1, and the task layer parameters are different from each other, the number of layers of the multilayer perceptron is uniformly set to three layers, and the output of the middle layer is used for subsequent meta-learner weight learning; it is used to predict specific task types for the graph data features output after processing by the multilayer graph convolution module based on multiple attention fusion edge and node information.

[0114] Furthermore, the input end of the meta-learner module for adaptively adjusting task weights is connected to the output end of the multi-layer perceptron module, and includes three groups of parallel fully connected layers and activation functions.

[0115] Among them, Figure 8 As shown, the input end of the meta-learner module receives T task layers T1, T2, ..., T T The output features of the second connection layer are respectively transformed through the first linear transformation Q and the activation function to obtain the transformed task Query feature T1 q ,T2 q ,…,T T q The output features are respectively transformed through the second linear transformation K and the activation function to obtain the transformed task Key feature T1 k ,T2 k ,…,T T kThe output features are respectively transformed through the third linear transformation V and the activation function to obtain the transformed task Value feature T1 v ,T2 v ,…,T T v ; Perform a dot product operation on the Query feature and the Key feature vector to obtain the attention weight score and normalize it. Use the attention weight score to perform weighted summation on the task Value feature, and input the obtained feature vector into a layer of linear transformation to obtain a four-dimensional weight vector; The weight vector is used to evaluate the correlation between the current input graph data and T tasks. The higher the correlation, the greater the weight of the corresponding task position, otherwise the smaller the weight.

[0116] In a specific embodiment, the task type is 4, and the structure of the meta-learner module is as follows: Figure 8 As shown in Figure 2, the meta-learner module that adaptively adjusts the task weights receives the intermediate layer output features of the four task layers, which are denoted as T′1, T′2, T′3, and T′4 respectively. Its matrix form is Its mathematical expression is:

[0117] T q =W q T

[0118] T k =W k T

[0119] T v =W v T

[0120] w=T v softmax(T q (T k ) t )

[0121] a=Uw

[0122] Among them, W q ,W k ,W v ,U represents a learnable weight parameter, which is used to increase the diversity of T of task features; t represents matrix transpose; by using T q Features and T k The feature vector dot product operation is performed to obtain the attention weight score and normalize it through the softmax function. The attention weight score is used to evaluate the task T. vThe features are weighted and summed, and the obtained feature vector w is input into a layer of linear transformation to obtain a four-dimensional weight vector a=[a1, a2, a3, a4]. This vector is used to measure the relevance of the current input graph data to the four tasks. The higher the relevance, the greater the weight of the corresponding task position, otherwise the smaller the weight.

[0123] Furthermore, the process of pre-training the neural network model described in step S3 is as follows: for each batch of graph data input during training, the neural network model is trained by a back-propagation algorithm under the guidance of a loss function; the objective function of the graph data is based on the task weights output by a meta-learner module that adaptively adjusts the task weights, and the losses of T tasks are weighted summed to obtain a dynamic task loss sum; the generalization performance of the neural network model is optimized by minimizing the dynamic task loss sum, thereby obtaining a drug virtual screening model with domain knowledge.

[0124] The mathematical expression of the objective function is as follows:

[0125]

[0126] Among them, a1, a2, a3, and a4 are task weights adaptively calculated by the meta-learner, and a1+a2+a3+a4=1. Minimizing the above objective function is used to enable the model to fully learn the chemical domain knowledge that is common to a variety of drug property tasks or strongly related to downstream tasks, thereby improving the accuracy of drug virtual screening.

[0127] Furthermore, step S4 is specifically as follows: for the specific downstream drug screening task, a small amount of target task data is selected and input into the pre-trained drug virtual screening model with domain knowledge, and the weights of T tasks are adjusted according to the meta-learner so that the model adaptively adjusts the weights of the tasks to obtain a drug virtual screening model with better generalization performance; a prediction layer related to the target task is added, and the prediction layer uses the target task data to fine-tune the drug virtual screening model with better generalization performance to obtain a drug virtual screening model that is strongly related to the target task.

[0128] Among them, Fig. 9 As shown, the prediction layer related to the target task receives the molecular full-image representation output by the pre-trained drug virtual screening model with domain knowledge, performs nonlinear transformation on the full-image features to obtain high-level abstract molecular features, and retains the low-level general molecular features through the residual module. The two are fused to form multi-level molecular features.

[0129] In a specific embodiment, for the input molecular graph data, the molecular full graph representation is obtained after a multi-layer graph convolution module based on multiple attention fusion of edge and node information, and a linear transformation of a two-layer perceptron and an activation function is combined and a residual module is fused to obtain an updated multi-level full-graph representation, which integrates low-level general and high-level abstract molecular structure information.

[0130] Furthermore, the prediction layer module related to the target task includes a residual module, and the forward propagation calculation mathematical expression of the residual module obtained through the recursive relationship is:

[0131]

[0132] where x l and x L are the inputs of the lth and Lth layers respectively, F(x i ,ω i ) is the residual function calculation of the residual branch, x i is the input of the i-th layer, ω i is the convolution operation on the residual branch of the i-th layer. The back propagation formula is obtained by derivation of the loss function loss, and its mathematical expression is:

[0133]

[0134] That is, the loss function loss is applied to the shallow layer x l The gradient calculation of is determined by two terms: the former is the loss function for the deep layer x L The latter is a value that is not easily offset. Therefore, while integrating low-level general and high-level abstract molecular structure information, the model can effectively avoid the problem of gradient vanishing when the weight is very small, and accelerate the convergence of the model.

[0135] Furthermore, the step S5 is specifically as follows: converting the target task molecular data into graph data, initializing the features of the nodes and edges, inputting the above data into a drug virtual screening model that is strongly related to the target task, and outputting the screening results of active drug molecules associated with downstream tasks.

[0136] Among them, the process of initializing the features of nodes and edges is as follows: the node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons, which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

[0137] Furthermore, the drug virtual screening model strongly related to the target task obtained in step S4 maintains the model weight and structure unchanged. Then, the molecule corresponding to the target task is initialized according to the above steps, and the corresponding feature vector is input into the model, and the model outputs the corresponding molecular activity data prediction value. The prediction values ​​of all molecules are sorted from large to small, and the top several molecules are taken as the final drug virtual screening results.

[0138] In a specific embodiment, the predicted values ​​of all molecules are sorted from large to small, and the top 1000 molecules are taken as the final drug virtual screening results.

[0139] Example 2

[0140] Based on the above embodiment 1, combined with Figure 3-Figure 4 ,This embodiment describes in detail the process of converting molecules into molecular graph data and initializing their features.

[0141] In a specific embodiment, the selected molecule is a butyric acid molecule, which is represented by a SMIELS string (CCCC(=O)O) in the ChEMBL database and converted into a molecular structure format by the Python open source chemical computing toolkit RdKit. First, the atomic numbers corresponding to all nodes in the molecule are obtained by RdKit as nodes and corresponding chemical properties and stored in a hash table. Similarly, all bonds in the molecule and their corresponding chemical properties are taken as edges and stored in a hash table, and then the connection relationship between nodes is recorded.

[0142] like Figure 3 As shown in the figure, each atom of the butyric acid molecule corresponds to a numbered node, and each chemical bond corresponds to a numbered edge. In order to enhance the information fusion of the self-node, an edge pointing to the self-node is added when constructing the graph data, which is called a self-loop edge. The connection relationship of the nodes in the final molecular graph data is represented by R = {0,1} 6×6 The adjacency matrix of is represented by , when the value is 0, it means that there is no edge connection between the nodes, and when the value is 1, it means that there is an edge connection.

[0143] Among them, the graph data corresponding to the butyric acid molecule, the features used by its nodes and edges are as follows Figure 4 As shown, the node features of the graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity. The edge features include: edge direction, edge type, and whether it is in a ring. These features characterize the properties of drug molecules at the atomic or edge level. Except for the charge number and the number of free radical electrons, which are encoded as integers, the remaining node features and edge features are represented in a one-hot encoding manner.

[0144] The above operations are performed on all compound molecules screened from the ChEMBL data, and the set consisting of the converted molecular graph data and its labels is hash mapped and saved in a local file for subsequent reading and training of the first-stage pre-trained model.

[0145] In a specific embodiment, Figure 5 As shown in the figure, when the butyric acid molecular graph data passes through the single-layer graph convolution module based on the attention mechanism, the specific process is as follows:

[0146] Take the node 3, h3 of the butyric acid molecule in the figure as the central node, and analyze the central node 3, h3 and its neighboring nodes 2, h2 and the edge information e 23 Perform feature splicing to obtain triple fusion information The information is linearly transformed and normalized, and the attention scores of the three parts of information are output. Then, for node 2, h2 and node 3, h3 and edge information e 23 Perform weighted summation to obtain the attention weight score δ of neighbor node 2, h2 to central node 3, h3 23 For the remaining neighbor nodes 4 and 5, the operation steps remain the same. Finally, the information aggregation module calculates the attention weight δ 23 ,δ 43 ,δ 53 Perform weighted summation on all neighbor nodes N3∈{2,4,5} and output the message features to be updated The update module uses the input feature h3 of the central node 3 and the feature of the message to be updated Perform a splicing operation, then increase the diversity of the spliced ​​features through linear transformation and activation function, and output the new features of the central node 3

[0147] In a specific embodiment, taking butyric acid molecule as an example, the mathematical formal definition of a single-layer graph convolution module based on the attention mechanism is as follows:

[0148] w 23 =u T [W h h2||W e e 23 ||W h h3]

[0149]

[0150]

[0151]

[0152]

[0153] Among them, N3 is all the first-order neighbor nodes of node 3 corresponding to the butyric acid molecule in the graph, and we take a pair of neighbor nodes 2, 3 and their corresponding edge e 23 For example, for neighbor node 2, i.e. h2, and central node 3, i.e. h3, and their connected edges e 23 , through the learnable parameter W h , W e For node features h2 and h3 and edge feature e 23 Perform linear transformation to increase the diversity of features, and then output the attention scores of the three parts of information through learnable linear transformation after splicing. Then, according to the node features h2 and h3 and the edge feature e 23 Perform weighted summation to obtain the attention score δ of neighbor node 3 relative to central node 2 23 Similarly, for all neighbor nodes j∈N3 of the central node 3, that is, corresponding to Figure 5 The nodes with butyric acid molecules numbered 2, 4, and 5 perform the above operation to obtain the attention scores δ of all neighboring nodes j∈{2,4,5} relative to the central node 3. 23 ,δ 43 ,δ 53 The information aggregation module performs weighted summation of all neighbor nodes according to the attention weights and outputs the message features to be updated. The update module uses the input feature h3 of the central node and the feature of the message to be updated Perform the concatenation operation and then use the linear transformation W 2 And the activation function LeakyReLU increases the diversity of the spliced ​​features and outputs the new features of the butyric acid molecule center node 3 As the input of the single-layer graph convolutional network module based on the attention mechanism, the next round of update iteration is carried out.

[0154] For the butyric acid molecule, the feature update steps of the remaining nodes are consistent with the above process.

[0155] Example 3

[0156] like Fig.10 As shown, the present invention also provides a drug virtual screening system based on adaptive meta-learning, comprising a memory and a processor, wherein the memory comprises a drug virtual screening program based on adaptive meta-learning, and when the drug virtual screening program based on adaptive meta-learning is executed by the processor, the following steps are implemented:

[0157] S1. Set the number of task types T, pre-process the drug molecule experimental data in the public database to obtain molecular graph data, and then sort out T mutually exclusive data sets and T tasks related to the training task;

[0158] S2. Build a multi-task neural network model based on meta-learner;

[0159] S3, using the above data set to pre-train the neural network model to obtain a drug virtual screening model with domain knowledge;

[0160] S4, inputting a set number of task target data into the above-mentioned drug virtual screening model, adjusting the weights of T tasks according to the meta-learner, adding a prediction layer related to the target task, and obtaining a drug virtual screening model that is strongly related to the target task;

[0161] S5. Use a drug virtual screening model that is strongly related to the task objectives to conduct large-scale drug virtual screening.

[0162] Furthermore, the process of preprocessing the drug molecule experimental data in step S1 is specifically as follows:

[0163] S11. Collect drug molecules and corresponding compounds that can act on several known protein targets in the human body from public databases.

[0164] S12. Classify the experimental types of drug molecules and compounds, including water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient and molecular 3D coordinate distance.

[0165] S13. The sorted and classified drug molecules and compounds are sequentially converted from SMILES strings to molecular structures through the Python tool library Rdkit, and finally the graph data is output as task-related data.

[0166] S14. Use task-related data to pre-train the neural network model.

[0167] The public database is ChEMBL. The drug molecule experimental data of the public database ChEMBL are preprocessed and classified according to the type of experiment, which mainly includes water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient, molecular 3D coordinate distance, etc.

[0168] Furthermore, the drug molecules and compounds in step S13 are converted into graph data output, and the mathematical expression thereof is as follows:

[0169] G=(U,H,E)

[0170]

[0171]

[0172] Among them, U is the global attribute of the graph data; H represents the node set; h iis the attribute vector of the node; E is the set of edges; e k is the attribute vector of the edge; r k is the index of the receiving node; k is the index of the emission node; N represents the number of nodes in the molecular graph, and its connection relationship is the same as the chemical bond connection relationship of the molecule. A value of 0 indicates that there is no edge connection between the nodes, and a value of 1 indicates that there is an edge connection;

[0173] Among them, the node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

[0174] Furthermore, the specific process of obtaining T mutually exclusive data sets related to the training task in step S1 is: dividing the experimental types of drug molecules and compounds into T task types, respectively represented as T1, T2, T3, T4...T T , the pre-processed drug molecule data are divided into T mutually exclusive sets, and the set consisting of the graph data after molecular conversion and its labels is hash mapped and saved in a local file for training the first stage pre-training model.

[0175] Furthermore, the multi-task neural network model based on the meta-learner in step S2 includes three modules connected in sequence, specifically: a multi-layer graph convolution module based on multiple attention fusion edge and node information, a task-related multi-layer perceptron module, and a meta-learner module for adaptively adjusting task weights.

[0176] Among them, the preprocessed drug molecule experimental data is input into the multi-layer graph convolution module to obtain a vector representation of the molecular graph data, and the embedded vector representation is input into T parallel multi-layer perceptron modules corresponding to T task types, and task-related prediction values ​​and task-related features are output. The task-related features are input into the meta-learner module to obtain the weight coefficient of the task-related layer; the weight coefficient is multiplied by the difference between the predicted value and the true value as the loss function of the neural network model, and the back propagation algorithm is used for training.

[0177] The formula of the loss function is as follows:

[0178]

[0179]

[0180] Where f(x) represents the predicted value of the neural network model, y represents the label corresponding to the input data, m represents the number of samples, L1 represents the loss function of the regression task, and L2 represents the loss function of the classification task.

[0181] Furthermore, the multi-layer graph convolution module based on multiple attention fusion edge and node information is composed of multiple single-layer graph convolution modules based on the attention mechanism connected in sequence, and a single single-layer graph convolution module based on the attention mechanism specifically includes: a message passing module, an information aggregation module, and an update module.

[0182] The message passing module uses the neighboring nodes u∈N of the central node v to communicate with each other according to the adjacency relationship of the nodes in the molecular graph data. v And its side information e are spliced ​​to obtain the triple fusion information C v , the attention mechanism is used to transform the triple fusion information, and the output includes the attention scores of the neighbor nodes and the neighbor information of the connected edges for the central node, and the attention scores are normalized.

[0183] The information aggregation module performs weighted summation of the features of all neighbor nodes of the central node according to the normalized attention scores to obtain the message feature vector to be updated.

[0184] The update module updates the message feature vector to be updated. And the feature vector v of the central node is concatenated, and through the linear transformation operation with the activation function, the graph data that integrates the features of the first-order neighbor nodes is output, and then the input graph data and the output graph data that integrates the features of the first-order neighbor nodes are added, and input into the layer normalization module to obtain the updated graph data.

[0185] Among them, multiple single-layer graph convolution modules based on the attention mechanism are connected in sequence to form a multi-layer graph convolution module based on multiple attention fusion edge and node information. The molecular graph data is output through the multi-layer graph convolution module to form a vector representation including the representation of the entire molecular graph.

[0186] Furthermore, the input end of the task-related multilayer perceptron module is connected to the output end of the multilayer graph convolution module, including multilayer perceptron modules of T task types, and the parameters of each task layer are different. The multilayer perceptron has three layers, and each layer includes a fully connected layer and an activation function.

[0187] Among them, the specific structure of the multilayer perceptron is as follows: the vector representation is input into the multilayer perceptron module, and the prediction value of the corresponding task type is output after passing through the first fully connected layer, activation function, second fully connected layer, activation function, third fully connected layer, and activation function in sequence; the second connection layer will also output an intermediate layer corresponding to the task to output task-related features for the meta-learner to calculate the task weight.

[0188] Furthermore, the input end of the meta-learner module for adaptively adjusting task weights is connected to the output end of the multi-layer perceptron module, and includes three groups of parallel fully connected layers and activation functions.

[0189] The input end of the meta-learner module receives T task layers T1, T2, ..., T T The output features of the second connection layer are respectively transformed through the first linear transformation Q and the activation function to obtain the transformed task Query feature T1 q ,T2 q ,…,T T q The output features are respectively transformed through the second linear transformation K and the activation function to obtain the transformed task Key feature T1 k ,T2 k ,…,T T k The output features are respectively transformed through the third linear transformation V and the activation function to obtain the transformed task Value feature T1 v ,T2 v ,…,T T v ; Perform a dot product operation on the Query feature and the Key feature vector to obtain the attention weight score and normalize it. Use the attention weight score to perform weighted summation on the task Value feature, and input the obtained feature vector into a layer of linear transformation to obtain a four-dimensional weight vector; The weight vector is used to evaluate the correlation between the current input graph data and T tasks. The higher the correlation, the greater the weight of the corresponding task position, otherwise the smaller the weight.

[0190] Furthermore, the process of pre-training the neural network model described in step S3 is as follows: for each batch of graph data input during training, the neural network model is trained by a back-propagation algorithm under the guidance of a loss function; the objective function of the graph data is based on the task weights output by a meta-learner module that adaptively adjusts the task weights, and the losses of T tasks are weighted summed to obtain a dynamic task loss sum; the generalization performance of the neural network model is optimized by minimizing the dynamic task loss sum, thereby obtaining a drug virtual screening model with domain knowledge.

[0191] The mathematical expression of the objective function is as follows:

[0192]

[0193] Among them, a1, a2, a3, and a4 are the task weights adaptively calculated by the meta-learner, and a1+a2+a3+a4=1. Minimizing the above objective function is used to enable the model to fully learn the chemical domain knowledge that is common to a variety of drug property tasks or strongly related to downstream tasks, thereby improving the accuracy of drug virtual screening.

[0194] Furthermore, step S4 is specifically as follows: for the specific downstream drug screening task, a small amount of target task data is selected and input into the pre-trained drug virtual screening model with domain knowledge, and the weights of T tasks are adjusted according to the meta-learner so that the model adaptively adjusts the weights of the tasks to obtain a drug virtual screening model with better generalization performance; a prediction layer related to the target task is added, and the prediction layer uses the target task data to fine-tune the drug virtual screening model with better generalization performance to obtain a drug virtual screening model that is strongly related to the target task.

[0195] Furthermore, the step S5 is specifically as follows: converting the target task molecular data into graph data, initializing the features of the nodes and edges, inputting the above data into a drug virtual screening model that is strongly related to the target task, and outputting the screening results of active drug molecules associated with downstream tasks.

[0196] Among them, the process of initializing the features of nodes and edges is as follows: the node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons, which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

[0197] Furthermore, the drug virtual screening model strongly related to the target task obtained in step S4 maintains the model weight and structure unchanged. Then, the molecule corresponding to the target task is initialized according to the above steps, and the corresponding feature vector is input into the model, and the model outputs the corresponding molecular activity data prediction value. The prediction values ​​of all molecules are sorted from large to small, and the top several molecules are taken as the final drug virtual screening results.

[0198] The icons describing the structural positional relationships in the accompanying drawings are for illustrative purposes only and should not be construed as limitations on this patent.

[0199] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A drug virtual screening method based on adaptive meta-learning, characterized in that: The following steps are involved: S1. Set the number of task types T, pre-process the drug molecule experimental data in the public database to obtain molecular graph data, and then sort out T mutually exclusive data sets and T tasks related to the training task; S2. Construct a multi-task neural network model based on a meta-learner; it includes three modules connected in sequence, specifically: a multi-layer graph convolution module based on multi-attention fusion edge and node information, a multi-layer perceptron module based on task correlation, and a meta-learner module for adaptively adjusting task weights; The preprocessed drug molecule experimental data is input into the multi-layer graph convolution module to obtain a vector representation of the molecular graph data, the vector representation is input into T multi-layer perceptron modules corresponding to T types of tasks in parallel, task-related prediction values ​​and task-related features are output, the task-related features are input into the meta-learner module to obtain the weight coefficient of the task-related layer; the weight coefficient is multiplied by the difference between the predicted value and the true value as the loss function of the neural network model, and the back propagation algorithm is used for training; The formula of the loss function is as follows: Where f(x) represents the predicted value of the neural network model, y represents the label corresponding to the input data, m represents the number of samples, L1 represents the loss function of the regression task, and L2 represents the loss function of the classification task; S3, using the above data set to pre-train the neural network model to obtain a drug virtual screening model with domain knowledge; S4, inputting the target data of a set number of tasks into the above-mentioned drug virtual screening model, adjusting the weights of T tasks according to the meta-learner, adding a prediction layer related to the target task, and obtaining a drug virtual screening model that is strongly related to the target task; S5. Use a drug virtual screening model that is strongly related to the task objectives to conduct large-scale drug virtual screening.

2. A drug virtual screening method based on adaptive meta-learning according to claim 1, characterized in that: The process of preprocessing the drug molecule experimental data in step S1 is specifically as follows: S11. Collect drug molecules and corresponding compounds that can interact with several known protein targets in the human body from public databases; S12. Classify the experimental types of drug molecules and compounds, including water solubility coefficient, lipid solubility coefficient, drug target affinity coefficient and molecular 3D coordinate distance; S13, using the tool library of the scripting language to convert the sorted and classified drug molecules and compounds into SMILES strings and molecular structures, and finally outputting the graph data as task-related data; S14. Use task-related data to pre-train the neural network model.

3. A drug virtual screening method based on adaptive meta-learning according to claim 2, characterized in that: In step S13, the drug molecules and compounds are converted into graph data for output, and the mathematical expression thereof is as follows: G=(U,H,E) Among them, U is the global attribute of the graph data; H represents the node set; h i is the attribute vector of the node; E is the set of edges; e k is the attribute vector of the edge; r k is the index of the receiving node; k is the index of the emission node; N represents the number of nodes in the molecular graph, and its connection relationship is the same as the chemical bond connection relationship of the molecule. A value of 0 indicates that there is no edge connection between the nodes, and a value of 1 indicates that there is an edge connection; The node features of the molecular graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding.

4. A drug virtual screening method based on adaptive meta-learning according to claim 2, characterized in that: The specific process of obtaining T mutually exclusive data sets related to the training task in step S1 is as follows: the experimental types of drug molecules and compounds are divided into T task types, which are represented as T1, T2, T3, T4...T respectively. T , the pre-processed drug molecule data are divided into T mutually exclusive sets, and the set consisting of the graph data after molecular conversion and its labels is hash mapped and saved in a local file for training the first stage pre-training model.

5. The method for drug virtual screening based on adaptive meta-learning according to claim 1, characterized in that: The multi-layer graph convolution module based on multiple attention fusion edge and node information is composed of multiple single-layer graph convolution modules based on attention mechanism connected in sequence. A single single-layer graph convolution module based on attention mechanism specifically includes: a message passing module, an information aggregation module, and an update module; The message passing module uses the neighboring nodes u∈N of the central node v according to the adjacency relationship of the nodes in the molecular graph data. v And its side information e are spliced ​​to obtain the triple fusion information C v , use the attention mechanism to transform the triple fusion information, output the attention score of the neighbor information including neighbor nodes and connected edges for the central node, and normalize the attention score: The information aggregation module performs weighted summation of the features of all neighbor nodes of the central node according to the normalized attention scores to obtain the message feature vector to be updated. The updating module updates the message feature vector to be updated. And the feature vector v of the central node is concatenated, and the graph data of the fused first-order neighbor node features is output through a linear transformation operation with an activation function. Then, the input graph data and the output graph data of the fused first-order neighbor node features are added, and input into the layer normalization module to obtain the updated graph data; Multiple single-layer graph convolution modules based on the attention mechanism are connected in sequence to form a multi-layer graph convolution module based on multi-attention fusion of edge and node information. The molecular graph data is output through the multi-layer graph convolution module to form a vector representation including the representation of the entire molecular graph. The input end of the task-related multilayer perceptron module is connected to the output end of the multilayer graph convolution module, including T task-type multilayer perceptron modules, and the parameters of each task layer are different from each other. The multilayer perceptron has three layers, each of which includes a fully connected layer and an activation function. The specific structure of the multilayer perceptron is as follows: The vector representation is input into a multi-layer perceptron module, and the prediction value of the corresponding task type is output after passing through the first fully connected layer, the activation function, the second fully connected layer, the activation function, the third fully connected layer, and the activation function in sequence; wherein the second fully connected layer also outputs a corresponding task intermediate layer output task-related features for the meta-learner to calculate the task weight; The input end of the meta-learner module for adaptively adjusting task weights is connected to the output end of the multi-layer perceptron module, and includes three groups of parallel fully connected layers and activation functions; The input end of the meta-learner module receives T task layers T1, T2, ..., T T The output features of the second connection layer are respectively transformed through the first linear transformation Q and the activation function to obtain the transformed task Query feature T1 q ,T2 q ,…,T T q The output features are respectively transformed through the second linear transformation K and the activation function to obtain the transformed task Key feature T1 k ,T2 k ,…,T T k The output features are respectively transformed through the third linear transformation V and the activation function to obtain the transformed task Value feature T1 v ,T2 v ,…,T T v ; Perform a dot product operation on the Query feature and the Key feature vector to obtain the attention weight score and normalize it. Use the attention weight score to perform weighted summation on the task Value feature, and input the obtained feature vector into a layer of linear transformation to obtain a four-dimensional weight vector; The weight vector is used to evaluate the correlation between the current input graph data and T tasks. The higher the correlation, the greater the weight of the corresponding task position, otherwise the smaller the weight.

6. The drug virtual screening method based on adaptive meta-learning according to claim 1, characterized in that: The process of pre-training the neural network model described in step S3 is as follows: For each batch of graph data input during training, the neural network model is trained by the back propagation algorithm under the guidance of the loss function; the objective function of the graph data is to perform weighted summation of the losses of T tasks based on the task weights output by the meta-learner module that adaptively adjusts the task weights, and obtain the dynamic task loss sum; the generalization performance of the neural network model is optimized by minimizing the dynamic task loss sum, and a drug virtual screening model with domain knowledge is obtained.

7. The drug virtual screening method based on adaptive meta-learning according to claim 1, characterized in that: The step S4 is specifically as follows: For specific downstream drug screening tasks, a small amount of target task data is selected and input into the pre-trained drug virtual screening model with domain knowledge. The weights of T tasks are adjusted according to the meta-learner, so that the model can adaptively adjust the weights of the tasks, and obtain a drug virtual screening model with better generalization performance. A prediction layer related to the target task is added, and the prediction layer uses the target task data to fine-tune the drug virtual screening model with better generalization performance, so as to obtain a drug virtual screening model that is strongly related to the target task.

8. The drug virtual screening method based on adaptive meta-learning according to claim 1, characterized in that: The step S5 is specifically as follows: Convert the target task molecular data into graph data, initialize the features of nodes and edges, input the graph data into the drug virtual screening model that is strongly related to the target task, and output the screening results of active drug molecules associated with downstream tasks; The process of initializing the features of nodes and edges is as follows: the node features of the graph data include: atom type, charge number, number of free radical electrons, chirality type, hybrid orbital type, number of connected hydrogens, degree, and aromaticity; the edge features of the molecular graph data include: edge direction, edge type, and whether it is in a ring; except for the charge number and the number of free radical electrons, which are encoded as integers, the remaining node features and edge features are all represented by one-hot encoding; The drug virtual screening model strongly related to the target task obtained in step S4 maintains the model weight and structure unchanged; then the molecules corresponding to the target task are initialized with features, and the corresponding feature vectors are input into the model, which outputs the corresponding molecular activity data prediction values; the prediction values ​​of all molecules are sorted from large to small, and the top several molecules are taken as the final drug virtual screening results.

9. A drug virtual screening system based on adaptive meta-learning, comprising a memory and a processor, wherein the memory comprises a drug virtual screening program based on adaptive meta-learning, and when the drug virtual screening program based on adaptive meta-learning is executed by the processor, the following steps are implemented: S1. Set the number of task types T, pre-process the drug molecule experimental data in the public database to obtain molecular graph data, and then sort out T mutually exclusive data sets and T tasks related to the training task; S2. Construct a multi-task neural network model based on a meta-learner; it includes three modules connected in sequence, specifically: a multi-layer graph convolution module based on multi-attention fusion edge and node information, a multi-layer perceptron module based on task correlation, and a meta-learner module for adaptively adjusting task weights; The preprocessed drug molecule experimental data is input into the multi-layer graph convolution module to obtain a vector representation of the molecular graph data, the vector representation is input into T multi-layer perceptron modules corresponding to T types of tasks in parallel, task-related prediction values ​​and task-related features are output, the task-related features are input into the meta-learner module to obtain the weight coefficient of the task-related layer; the weight coefficient is multiplied by the difference between the predicted value and the true value as the loss function of the neural network model, and the back propagation algorithm is used for training; The formula of the loss function is as follows: Where f(x) represents the predicted value of the neural network model, y represents the label corresponding to the input data, m represents the number of samples, L1 represents the loss function of the regression task, and L2 represents the loss function of the classification task; S3, using the above data set to pre-train the neural network model to obtain a drug virtual screening model with domain knowledge; S4, inputting data of a set number of task targets into the above-mentioned drug virtual screening model, adjusting the weights of T tasks according to the meta-learner, adding a prediction layer related to the target task, and obtaining a drug virtual screening model that is strongly related to the target task; S5. Use a drug virtual screening model that is strongly related to the task objectives to conduct large-scale drug virtual screening.

Citation Information

Patent Citations

  • Small molecule drug virtual screening method based on deep migration learning and application thereof

    CN110459274A

  • Self-supervised graph neural network pre-training method based on comparative learning

    CN114038517A

  • Compound activity prediction method, network training method, device, medium and equipment

    CN114334029A

  • High-Throughput Virtual Drug Screening System Based on Molecular Fingerprints and Deep Learning

    US20210217487A1