Compound toxicity multi-task learning method based on graph isomorphic network
Through the multi-task learning method of compound toxicity based on graph isomorphic network, combined with molecular graph and molecular fingerprint representation, the shortcomings of existing models in accuracy and versatility are solved, and more efficient compound toxicity prediction is achieved.
Patent Information
- Application Number
- CN202410887837.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-20
AI Technical Summary
Existing toxicity prediction models still have improvements in accuracy and versatility, and multi-task models mainly adopt graph-based or fingerprint-based designs, which fail to fully utilize the multi-modal information of compounds.
A multi-task learning method for compound toxicity based on graph isomorphic networks is adopted. By combining the molecular graph and molecular fingerprint representation of the compound, a dual-channel structure and a multi-layer perceptron are used to learn multi-modal representations, and a feed-forward neural network is used for multi-task learning. , including compound toxicity classification and classification of multiple compound toxicity categories.
It achieved higher accuracy and versatility, verified the effectiveness of the multi-modal characterization module and multi-task module through ablation experiments, and improved the performance of compound toxicity prediction.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of artificial intelligence and biology, and in particular to a compound toxicity multi-task learning method based on graph isomorphic networks. Background Art
[0002] Toxicity is crucial to understand the properties of compounds, especially in the early stages of drug design. Toxic effects vary from person to person and even vary with changes in the environment. At the same time, the factors that cause toxic effects depend on different individual gene expressions, environments, etc. Computational toxicology uses computational methods to establish the relationship between toxic factors and toxic effects, and has a potential key role in promoting a comprehensive understanding of compound toxicity. It not only helps to speed up the drug development process, but also greatly saves experimental resources. Due to the diversity and complexity of toxic effects, the task of calculating compound toxicity has become a challenge. There are many tasks in computational toxicology, among which toxicity prediction and molecular property prediction are the most studied. In recent years, the existing toxicity prediction models are based on machine learning and deep learning. Although some progress has been made, the data set is single, and the accuracy and versatility of the model still need to be improved. In addition, most multi-task models adopt graph-based or fingerprint-based designs. However, these two compound representation methods have their own advantages in representing compound information. We make full use of these two modalities of compounds. A multi-task learning method for compound toxicity based on graph isomorphic networks is proposed. Based on fingerprint maps and compound molecular maps, a multimodal representation learning model is combined to obtain a comprehensive representation of compounds. A dual-channel structure is used to independently learn fingerprint representation and molecular graph representation. Subsequently, two feed-forward neural networks use the learned multimodal representations to perform multi-task learning, including compound toxicity classification and classification of multiple compound toxicity categories. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-task learning method for compound toxicity based on graph isomorphic networks. The results show that the model is always better than other representative models, and ablation experiments verify the effectiveness of the multimodal representation module and the multi-task module.
[0004] The present invention provides a compound toxicity multi-task learning method based on a graph isomorphic network, the steps of which are as follows:
[0005] Step S1: Dataset preparation A compound toxicity multi-task learning dataset was constructed, and the dataset was divided into a training set and a test set, which were input into the model for training and testing.
[0006] Step S2: Molecular graph processing SMILES is converted into a molecular graph, and atomic features are extracted using RDKit. The atomic features are used as node attributes, and the molecular graph of the compound is used for graph representation learning. The graph isomorphism network is used to learn node representation from the attribute molecular graph.
[0007] Step S3: Molecular fingerprint processing The compound SMILES is converted into three different complementary molecular fingerprint descriptors, including MACCS fingerprint, Pharmacophore ErG fingerprint and PubChem fingerprint. The three fingerprints are concatenated and the final compound sequence representation vector is learned using a multi-layer perceptron.
[0008] Step S4: Define the model Define a compound toxicity multi-task learning model and set training parameters.
[0009] Step S5: Model prediction The training set is input into the above model for training to obtain a prediction model; the test set is input into the prediction model to obtain the prediction results, and the results are analyzed. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a flow chart of the present invention.
[0011] Figure 2 This is a comparison chart of the AUC of the present invention and other algorithms in multi-classification tasks.
[0012] Figure 3 This is a comparison chart of ACC between the present invention and other algorithms in multi-classification tasks.
[0013] Figure 4 This is a comparison chart of ACC between the present invention and other algorithms in binary classification tasks.
[0014] Figure 5 This is a comparison chart of the F1 results of the present invention and other algorithms in multi-classification tasks.
[0015] Figure 6 This is a comparison chart of the F1 of the present invention and other algorithms in the binary classification task.
[0016] Figure 7 This is a comparison chart of the Precision of the present invention and other algorithms in multi-classification tasks.
[0017] Figure 8 This is a comparison chart of the precision of the present invention and other algorithms in the binary classification task. DETAILED DESCRIPTION
[0018] The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention. The present invention is further described in detail by means of the accompanying drawings and examples.
[0019] Figure 1 A schematic flow chart of a multi-task learning method for compound toxicity based on a graph isomorphic network is provided for an embodiment of the present invention.
[0020] like Figure 1 As shown, this embodiment mainly includes the following steps:
[0021] Step S1: Dataset preparation A compound toxicity multi-task learning dataset was constructed, and the dataset was divided into a training set and a test set, which were input into the model for training and testing.
[0022] Step S2: Molecular graph processing The compound SMILES is converted into a molecular graph, and the atomic features are extracted using RDKit. The atomic features are used as node attributes, the compound molecular graph is used for graph representation learning, and the node representation is learned from the attribute molecular graph using an isomorphic graph network.
[0023] Step S3: Molecular fingerprint processing The compound SMILES is converted into three different complementary molecular fingerprint descriptors, including MACCS fingerprint, Pharmacophore ErG fingerprint and PubChem fingerprint. The three fingerprints are concatenated and the final compound sequence representation vector is learned using a multi-layer perceptron.
[0024] Step S4: Define the model Define a compound toxicity multi-task learning model and set training parameters.
[0025] Step S5: Model prediction The training set is input into the above model for training to obtain a prediction model; the test set is input into the prediction model to obtain the prediction results, and the results are analyzed.
[0026] In step S1, the above data set is divided into a training set and a test set in a ratio of 8:2.
[0027] In step S2, SMILES is preprocessed into a molecular graph using the RDKit library, where atoms are represented as nodes and bonds between atoms are represented as edges. Therefore, SMILES can be represented as a molecular graph G = (V, E), where V = v1, v2, v3...vn is the node set of atoms, E is the edge set representing chemical bonds, each node vi has a 78-dimensional feature vector Ti, and the adjacency matrix indicates whether two atoms in the molecular graph have edges. The graph isomorphism network is used to learn node representation from the attribute molecular graph. The model consists of three graph isomorphism convolutional layers. After each convolutional layer, a rectified linear unit activation function and a batch normalization layer are used, and then a global maximum pooling layer is added to summarize the final node features to generate the feature representation of the entire graph. Each graph isomorphism convolutional layer aggregates the information of the node itself and its neighbors. After three layers of graph isomorphism convolution, a node representation with three-hop network neighborhood structure information is obtained.
[0028] In step S3, the compound SMILES is converted into three different forms of molecular fingerprints and the three fingerprints are concatenated to obtain a 1489-dimensional compound representation vector. A multilayer perceptron consisting of two linear layers and two activation functions is used to learn this compound representation vector. The number of neurons in the input layer, hidden layer, and output layer of the multilayer perceptron is 1489, 128, and 256, respectively.
[0029] In step S4, the graph representation learning vector learned in step S2 is concatenated with the sequence fingerprint representation vector learned in step S3 to obtain a multimodal representation learning vector. A compound toxicity multi-task model consisting of two feedforward neural networks is used to perform compound toxicity classification and multiple compound category classification, respectively.
[0030] The above embodiments are only used to illustrate the present invention rather than to predict the present invention. Ordinary technicians in the relevant fields may make various changes and modifications without departing from the scope of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the present invention. The scope of patent protection of the present invention should be defined by the claims.
[0031] In order to better illustrate the effect of the method of the present invention, the following examples are described: Example 1 The present invention is tested using a dataset of compound toxicity multi-task learning This data set is a data set consisting of 10496 compounds with 20 toxic endpoints in 5 toxicity categories, and is a data set for compound toxicity multi-task. The present invention is applied to this data set for testing and verification, and 6 evaluation indicators are used to evaluate its performance, namely Accuracy (ACC), Area under the precision-recall-curve (AUPR), Area under the ROC curve (AUC), Precision, F1-score, Recall, and compared with 6 existing methods, namely GCN, GAT, GAT-GCN, LR (Logistic Regression), RF (RandomForest), KNN (K-Nearest Neighbor). The existing 6 methods all run under their own optimal parameters. The relevant parameters of the method of the present invention are set as follows: the number of epochs is 100, the learning rate is 0.01, the batchsize is 128, and the dropout is 0.2.
[0032] Table 1 Experimental results of toxicity classification task for various compounds: Methods ACC AUPR AUC F1 Precision Recall MMGIN 0.7471 0.7924 0.9310 0.7332 0.7535 0.7174 GCN 0.7120 0.7576 0.9163 0.7015 0.7078 0.6991 GAT 0.7052 0.7663 0.9176 0.6921 0.6920 0.6924 GAT-GCN 0.6957 0.7579 0.9162 0.6894 0.6999 0.6807 LR 0.5577 0.5235 0.8063 0.3084 0.3483 0.3139 RF 0.5577 0.5317 0.7954 0.2815 0.2928 0.3035 KNN 0.5385 0.4919 0.7321 0.2424 0.2164 0.2851 Table 2 Experimental results of binary compound toxicity classification task: Methods ACC F1 Precision Recall MMGIN 0.7900 0.7893 0.7915 0.7890 GCN 0.7714 0.7710 0.7717 0.7709 GAT 0.7552 0.7536 0.7586 0.7537 GAT-GCN 0.7633 0.7632 0.7632 0.7633 LR 0.6731 0.6340 0.6514 0.6313 RF 0.6923 0.6389 0.6833 0.6375 KNN 0.6346 0.5634 0.6020 0.5719 Table 1, Table 2, Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 and Figure 8 The indicators of the present invention compared with the other six algorithms on the data set show that our MMGIN model has achieved the best evaluation indicators. We also verified the effectiveness of the multimodal representation module and the multi-task module through ablation experiments. Obviously, our model can more effectively learn the representation of compounds and predict whether the compounds are toxic and their toxicity categories.
Claims
1. A multi-task learning method for compound toxicity based on graph isomorphic networks, which is characterized by comprising the following steps: Step S1, data set preparation: construct a compound toxicity multi-task learning data set, divide the data set into a training set and a test set, and input them into the model for training and testing; Step S2, molecular graph processing: convert the compound SMILES into a molecular graph and extract atomic features using RDKit. The atomic features are used as node attributes, the molecular graph of the compound is used for graph representation learning, and the graph isomorphism network is used to learn node representation from the attribute molecular graph; Step S3, molecular fingerprint processing: convert the compound SMILES into three different complementary molecular fingerprint descriptors, including MACCS fingerprint, Pharmacophore ErG fingerprint and PubChem fingerprint. The three fingerprints are concatenated and the final compound sequence representation vector is learned using a multi-layer perceptron; Step S4, define the model: define the compound toxicity multi-task learning model and set the training parameters; Step S5, model prediction: input the training set into the above model for training to obtain a prediction model; input the test set into the prediction model to obtain the prediction results, and analyze the results.
2. The multi-task learning method for compound toxicity based on graph isomorphic network according to claim 1, characterized in that: In step S2, SMILES is preprocessed into a molecular graph, where atoms are represented as nodes, bonds between atoms are represented as edges, and atomic features are used as node attributes. The adjacency matrix indicates whether two atoms in the molecular graph have edges. The graph isomorphism network is used to learn node representation from the attribute molecular graph. The model consists of three graph isomorphism convolutional layers. After each convolutional layer, a rectified linear unit activation function and a batch normalization layer are used, and then a global maximum pooling layer is added to summarize the final node features to generate a feature representation of the entire graph. Each graph isomorphism convolutional layer aggregates the information of the node itself and its neighbors. After three layers of graph isomorphism convolution, a node representation with three-hop network neighborhood structure information is obtained.
3. The multi-task learning method for compound toxicity based on graph isomorphic network according to claim 1, characterized in that: In step S3, the compound SMILES is converted into three different forms of molecular fingerprints and the three fingerprints are concatenated to obtain a 1489-dimensional compound representation vector. A multilayer perceptron consisting of two linear layers and two activation functions is used to learn the compound representation vector. The number of neurons in the input layer, hidden layer, and output layer of the multilayer perceptron is 1489, 128, and 256, respectively.
4. The multi-task learning method for compound toxicity based on graph isomorphic network according to claim 1, characterized in that: In step S4, the molecular graph feature vector learned in step S2 is concatenated with the fingerprint vector learned in step S3 to obtain a multimodal representation learning vector, and the compounds are classified by toxicity and compound category respectively using a compound toxicity multi-task model composed of two feedforward neural networks.
Citation Information
Cited By
Graph neural network knowledge editing method based on drug toxicity classification
CN119378659A
A graph neural network knowledge editing method based on drug toxicity classification
CN119378659B
