A compound toxicity evaluation method integrating data balance and molecular fragmentation
By integrating data balancing and molecular fragmentation methods, the challenge of complex descriptor selection and combination in QSPR modeling is solved, the accuracy and versatility of compound toxicity prediction are achieved, and the identification ability and prediction performance of the model are improved.
Patent Information
- Application Number
- CN202410360282.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-03-27
AI Technical Summary
Existing QSPR modeling suffers from complex descriptor selection and combination challenges, feature redundancy issues, and lack of interpretability in compound toxicity prediction, resulting in reduced prediction performance and difficulty in exploring the mechanism of action.
Using a method that fuses data balance and molecular fragmentation, the modeling method is selected by calculating the balance degree, using a global or sequential modeling method, combining molecular fingerprints and molecular fragment sequences for supervised learning, obtaining a meta-model, and passing consensus scores and toxicity Cliff testing ensures the accuracy of forecast results.
It achieves accurate predictions on different toxicity endpoints, improves the identification ability and versatility of the model, avoids the introduction of noise, and enhances the ability to accurately predict compound toxicity.
Smart Images

Figure CN118280471B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of structure-activity relationship modeling of toxicity properties of industrial compounds, and in particular to a compound toxicity evaluation method integrating data balance and molecular fragmentation. Background Art
[0002] Toxicity is one of the most common hazardous properties of chemicals, and a series of standards have been developed to quantify the toxicity of compounds in order to develop reasonable strategies to deal with potential safety risks. The median lethal dose (LD50) is a toxicity parameter that measures the lethal dose of a given compound and is one of the most commonly used key indicators for describing acute toxicity. Many classic experiments, such as in vitro and in vivo experiments, are designed to obtain molecular toxicological indicators such as LD50. However, this method has obvious limitations such as high cost, long time consumption, and harsh experimental conditions. In addition, the ethical issues of animal care in these classic toxicology experiments limit the availability of toxicological data. In addition, laws are also pushing regulators and public health agencies to accept alternative methods. For example, the UK has begun to ban oral LD50 testing. Traditional industrial chemical toxicological evaluation experiments urgently need alternative methods such as quantitative structure-activity relationship (QSPR).
[0003] With the development of artificial intelligence (AI), major breakthroughs have been made in the field of QSPR modeling. Molecules are converted into various data structures, such as tree data structures, graph data structures, etc., and QSPR models are established through various deep learning algorithms. However, compared with the reported QSPR models for physical properties (such as thermodynamic properties), there are still some research gaps in QSPR studies on compound properties. Unlike physical properties (such as flash point and boiling point) that are mainly affected by their structural characteristics, some properties such as toxicity of industrial compounds are also related to their mechanism of action. Therefore, it is difficult to accurately predict properties such as toxicity of compounds through a single model.
[0004] Nowadays, more and more researchers are committed to developing high-quality QSPR models by using appropriate characterization or algorithms to achieve higher performance. In addition, integrated modeling methods have been proposed, including integrating multiple descriptors or multiple machine learning algorithms to enhance the performance of the model. The features formed by the combination can enrich the molecular information, and the aggregation of different machine learning algorithms increases the fitting ability of the integrated model. However, in the face of complex descriptors and algorithms, these descriptors and algorithms are difficult to be correctly selected and integrated. It not only requires a lot of computing resources to adjust the integration strategy and optimize parameters, but also has the risk of introducing noise information, the so-called feature redundancy, which leads to performance degradation. In addition, due to the lack of clear correlation between different descriptors, this integrated algorithm is difficult to further explore the mechanism of action of the compound.
[0005] In summary, the current QSPR modeling studies on chemical properties such as toxicity have the following defects:
[0006] (1) QSPR studies of hazardous properties of chemicals, such as toxicity, mainly emphasize the application of complex descriptors. The selection and combination of relevant descriptors are challenging and resource-intensive. In addition, there is a risk of feature redundancy when combining descriptors.
[0007] (2) The lack of correlation between complex descriptors poses challenges to the interpretability of the mechanism of action of compound properties.
[0008] (3) Due to the specificity of the descriptors used, current QSPR modeling methods lack sufficient flexibility in accurately predicting various chemical properties of compounds, such as toxicity. Summary of the invention
[0009] In view of the above problems existing in the prior art, the technical problem to be solved by the present invention is: how to provide a method for quickly and accurately evaluating and judging the toxicity of a compound.
[0010] In order to solve the above technical problems, the present invention adopts the following technical solution: a compound toxicity evaluation method integrating data balance and molecular fragmentation, comprising the following steps:
[0011] S101: Select a toxicity endpoint, and select an appropriate modeling method according to the balance degree B of the available training data set corresponding to the toxicity endpoint: if the balance degree B of the training data set is ≤10, the training data set is a balanced data set, select a global modeling method, and execute S102; if the balance degree B of the training data set is >10, the training data set is an unbalanced data set, select a sequential modeling method, and execute S103.
[0012] S102: For a given training data set, calculate Q different molecular fingerprints f of the molecules in the training data set in turn using existing methods, use the molecular fingerprints as the input of the first meta-model block, use the labels in the training data set for supervised learning, and use the stochastic gradient descent method to update the weights of the first meta-model block, and finally obtain Q global modeling meta-models, and execute S104.
[0013] S103: For a given training data set, the atomic numbers in the compound molecules in the training data set are marked by existing methods, the atomic connection information is extracted, and the compound molecules are selectively decomposed by existing methods to fragment and sequence them to obtain two sets of forward and reverse molecular fragment sequences; Q different molecular fingerprints f of the molecules in the training data set are calculated by existing methods.
[0014] Sequentially use Q different molecular fingerprints f to characterize molecular fragments to obtain two sets of fingerprint sequences S ([f1, f2, ..., fi ]) and RS([f i ,f i-1 ,...,f1]) as the input of the second meta-model block, use the labels in the training data set for supervised learning, and use the stochastic gradient descent method to update the weights of the second meta-model block, and finally obtain Q sequential modeling meta-models, and execute S104.
[0015] S104: For the compound molecules to be predicted, first select the toxicity endpoints and a corresponding set of meta-models, totaling Q meta-models, and use the similarity between the molecular fingerprint and the training data set to determine whether the compound molecules to be predicted are within the application domain of the global modeling meta-model and the sequential modeling meta-model. If so, execute S105, otherwise execute S112.
[0016] S105: Determine the modeling method of the selected meta-model, if it is a sequential modeling method, execute S106, if it is a global modeling method, otherwise execute S107.
[0017] S106: For the compound molecules within the application domain, Q sequential modeling meta-models obtain Q groups of prediction results, each group of prediction results consists of L1 and L2, and it is determined whether L1=L2 is established. If so, the final prediction result is L=L1=L2, and the final prediction results {L1, L2, ..., L t}, where t is the number of retained prediction results, t≤Q, and execute S108.
[0018] S107: For the compound molecules within the application domain, Q global modeling meta-models obtain Q final prediction results L{L1, L2, ..., L i}, i=7, execute S108.
[0019] S108: Determine whether it is a binary classification problem based on the label category of the training data set corresponding to the endpoint, that is, vT or nT endpoint. If so, execute S110, otherwise execute S109.
[0020] S109: Perform a toxicity cliff test on each final prediction result: the average similarity distance between the predicted compound molecule and the training data set is greater than or equal to the cliff value, and the absolute value of the label difference between the predicted label result and the most similar molecule in the training data set is greater than or equal to the set value; retain the final prediction results {L1, L2, ..., L j}, where j is the number of final prediction results retained, and execute S110.
[0021] S110: Calculate the consensus score CS. If CS is greater than a given consensus score threshold, retain the final output result L and execute S111, otherwise execute S112.
[0022] S111: Output the final prediction result.
[0023] S112: Output: "The model cannot accurately predict the toxicity of this compound."
[0024] Preferably, the balance degree B in S101 is calculated by the following method:
[0025] Where N max Indicates the maximum number of labels in the training data set, N min Indicates the minimum number of labels in the training dataset.
[0026] Preferably, the method of using the similarity between the molecular fingerprint and the training data set in S104 to determine whether the compound molecule to be predicted is within the application domain of the global modeling metamodel and the sequential modeling metamodel is:
[0027] Calculate the similarity distance between the compound to be predicted and each molecule in the training data set. The similarity distance is defined as the sum of the similarities between a compound to be predicted and the top k most similar molecules among all the molecules in the training data set, and is calculated using existing methods.
[0028] Use formulas (1)-(3) to determine the distance threshold of the global modeling metamodel or the sequential modeling metamodel:
[0029]
[0030]
[0031] z∈(0.50,0.75,1.00)(4)
[0032] In formula (3), S T is the similarity distance threshold, σ S is the standard deviation of the similarity distance, z is a hyperparameter that determines the size of the applicable range, S i is the similarity distance of each molecule in the test set, is the mean of the similarity distances of the molecules in the test set, n is the number of molecules in the training data set, and the molecules with similarity distances not less than S in the training data set are retained. T The prediction results of the compound molecules to be predicted,
[0033] That is, the compound molecules to be predicted are within the applicable scope.
[0034] Preferably, the consensus score CS in S110 is calculated by finding the frequency of the most common label in the output minus the sum of the frequencies of the remaining labels.
[0035] Preferably, the first metamodel block is an FNN network, and the second metamodel block is a Bi-LSTM network and an FNN network.
[0036] Compared with the prior art, the present invention has at least the following advantages:
[0037] 1. For molecular toxicity prediction, this method uses the balance of available data sets to perform adaptive modeling, collects reasonable molecular information to achieve accurate predictions on different toxicological endpoints of the molecule, and specifically implements the balance calculation, adaptive modeling, and prediction output integration. The balance of data is the basis of adaptive modeling. Balanced data uses macroscopic global information for modeling to avoid the introduction of noise, while unbalanced data focuses on capturing more detailed local molecular information for modeling, which improves the model's ability to identify specific molecules.
[0038] 2. This method not only has good accuracy in predicting specific molecular properties, but also has universality for a class of property endpoints. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The modeling framework diagram of the method of the present invention is shown in FIG.
[0040] Figure 2 The Matthews correlation coefficient (MCC) and application domain percentage (AD%) of the model constructed for the existing technology and the present technology at each endpoint are compared, where (a), (b), (c) and (d) are effect comparison diagrams of nT, vT, EPA and GHS endpoints, respectively. DETAILED DESCRIPTION
[0041] The present invention is described in further detail below.
[0042] See also Figure 1 , a compound toxicity evaluation method integrating data balance and molecular fragmentation, comprising the following steps:
[0043] S101: Select a toxicity endpoint, and select an appropriate modeling method according to the balance degree B of the available training data set corresponding to the endpoint: if the balance degree B of the training data set is ≤10, the training data set is a balanced data set, select a global modeling method, and execute S102; if the balance degree B of the training data set is >10, the training data set is an unbalanced data set, select a sequential modeling method, and execute S103.
[0044] S102: For a given training data set, calculate Q different molecular fingerprints f (vector format data, as shown in Table 1, Q=7) of the molecules in the training data set in turn through existing methods (such as open source computational chemistry software RDKit), use the molecular fingerprints as the input of the first meta-model block ["the first model block can be an FNN network", use the labels in the training data set for supervised learning, and use the stochastic gradient descent method to update the weights of the first meta-model block, and finally obtain Q global modeling meta-models (the Q global modeling meta-models are the trained Q DNN networks), and execute S104.
[0045] S103: For a given training data set, the atomic numbers in the compound molecules in the training data set are marked by existing methods (such as open source computational chemistry software RDKit), the atomic connection information is extracted, and the compound molecules are selectively decomposed to fragment and sequence them using existing methods (such as the BRICS tool in RDKit) to obtain two sets of forward and reverse molecular fragment sequences; Q different molecular fingerprints f (vector format data, such as Table 1, Q = 7) of the molecules in the training data set are calculated by existing methods (such as open source computational chemistry software RDKit).
[0046] Table 1 Names and descriptions of molecular fingerprints
[0047]
[0048] All fingerprints were calculated using the python package RDKit, and the molecular fingerprint similarity was calculated based on the Tanimoto coefficient (it is worth noting that the similarity calculation of ESTATE is based on the Euclidean distance).
[0049] Sequentially use Q different molecular fingerprints f to characterize molecular fragments to obtain two sets of fingerprint sequences S ([f1, f2, ..., f i ]) and RS([f i ,f i-1 ,...,f1]) as the input of the second meta-model block [the second meta-model block can be a Bi-LSTM network and a FNN network], use the labels in the training data set for supervised learning, and use the stochastic gradient descent method to update the weights of the second meta-model block, and finally obtain Q sequential modeling meta-models (Q sequential modeling meta-models are Q trained Bi-LSTM networks), and execute S104.
[0050] S104: For the compound molecules to be predicted, first select the toxicity endpoints and a corresponding set of meta-models, totaling Q meta-models, and use the similarity between the molecular fingerprint and the training data set to determine whether the compound molecules to be predicted are within the application domain of the global modeling meta-model and the sequential modeling meta-model. If so, execute S105, otherwise execute S112.
[0051] S105: Determine the modeling method of the selected meta-model, if it is a sequential modeling method, execute S106, if it is a global modeling method, otherwise execute S107.
[0052] S106: For the compound molecules within the application domain, Q sequential modeling metamodels obtain Q groups of prediction results, each group of prediction results consists of L1 and L2, and it is determined whether L1=L2 (consistency check is performed). If so, the final prediction result L=L1=L2, and the final prediction results {L1, L2, ..., L t}, where t is the number of retained prediction results, t≤Q, and execute S108.
[0053] S107: For the compound molecules within the application domain, Q global modeling meta-models obtain Q final prediction results L{L1, L2, ..., L i}, i=7, execute S108.
[0054] S108: Determine whether it is a binary classification problem based on the label category of the training data set corresponding to the endpoint, that is, vT or nT endpoint. If so, execute S110, otherwise execute S109.
[0055] S109: Perform a toxicity cliff test on each final prediction result: (The toxicity cliff test is only for multi-category endpoints, i.e., EPA and GHS) The average similarity distance between the predicted compound molecule and the training data set is greater than or equal to the cliff value (the cliff value is set to 0.9, and the average similarity distance is ), and the absolute value of the difference between the predicted label result and the label of the most similar molecule in the training data set is greater than or equal to the set value (the set value is 1.0).
[0056] Keep the final prediction results {L1,L2,…,L j}, where j is the number of final prediction results retained, and execute S110.
[0057] S110: Calculate the consensus score CS. If CS is greater than a given consensus score threshold, retain the final output result L and execute S111, otherwise execute S112.
[0058] S111: Output the final prediction result.
[0059] S112: Output: "The model cannot accurately predict the toxicity of this compound."
[0060] Specifically, the balance degree B in S101 is calculated using the following method:
[0061] Where N maxIndicates the maximum number of labels in the training data set, N min Indicates the minimum number of labels in the training dataset.
[0062] Specifically, the method of using the similarity between the molecular fingerprint and the training data set in S104 to determine whether the compound molecule to be predicted is within the application domain of the global modeling metamodel and the sequential modeling metamodel is:
[0063] Calculate the similarity distance between the compound to be predicted and each molecule in the training data set. The similarity distance is defined as the sum of the similarities between a compound to be predicted and the top k most similar molecules among all the molecules in the training data set, and is calculated using existing methods (such as the method provided in RDKit).
[0064] Use formulas (1)-(3) to determine the distance threshold of the global modeling metamodel or the sequential modeling metamodel:
[0065]
[0066] z∈(0.50,0.75,1.00)(4)
[0067] In formula (3), S T is the similarity distance threshold, σ S is the standard deviation of the similarity distance, z is a hyperparameter that determines the size of the applicable range, S i is the similarity distance of each molecule in the test set, is the mean of the similarity distances of the molecules in the test set, n is the number of molecules in the training data set, and the molecules with similarity distances not less than S in the training data set are retained. T The prediction result of the compound to be predicted, that is, the compound to be predicted is within the applicable range. The average similarity distance is for a molecule. is the mean similarity distance of the molecules in the test set.
[0068] k∈(4,7)(5)
[0069]
[0070]
[0071] The Euclidean distance E between fingerprint vectors is used to quantify the similarity between molecules. i is the ESTATE fingerprint of the most similar first k molecules in the training data set, f j is the ESTATE fingerprint of the molecule to be tested, and the length of the fingerprint is 79. The value of the Euclidean distance is negatively correlated with the similarity between molecules. is the average value of the Euclidean distance, E irepresents the Euclidean distance of each molecule in the test set. E is the standard deviation of the Euclidean distance. T Defined as the distance threshold of the ESTATE metamodel. It is worth noting that the Euclidean distance E of molecules in the applicable range should not be higher than the threshold E T .
[0072] Specifically, the consensus score CS in S110 is calculated by finding the frequency of the most common label in the output minus the sum of the frequencies of the remaining labels. For example, a molecule is output as [1,2,3,3,2,2,2] through the integrated model. Among these labels, label "2" has the highest frequency, which is 4, and the sum of the frequencies of the remaining labels is 3, then CS = 4-3 = 1. The CS threshold is defined as shown in formula (10).
[0073] CS threshold ∈(1,2,3,4,5,6,7)(10)
[0074]
[0075] The Matthews correlation coefficient (MCC) is calculated using the sklearn tool in Python. Formula (11) is the calculation formula for the model application domain percentage (AD%), which is an indicator for measuring the generalization ability of the model. Pre represents the number of compounds in the evaluation dataset that return prediction results, while N represents the number of all compounds in the evaluation dataset.
[0076] (1) Molecular characterization using multi-molecular fingerprints addresses the challenge of selecting and combining complex descriptors while also ensuring the inclusion of multiple features.
[0077] (2) The balance of the dataset significantly affects the performance of the model. According to the balance of the dataset, the framework can intelligently and flexibly select appropriate building blocks to achieve accurate prediction of the toxicity properties of compounds on different targets.
[0078] from Figure 2 It can be seen that the comprehensive model established by this method is comparable to the reported model in terms of vT, nT and EPA endpoints. In terms of GHS endpoints, the comprehensive model established by this method is superior to the reported model.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A method for evaluating compound toxicity by integrating data balance and molecular fragmentation, characterized in that: The steps include: S101: Select a toxicity endpoint, and select an appropriate modeling method according to the balance degree B of the available training data set corresponding to the toxicity endpoint: if the balance degree B of the training data set is ≤10, the training data set is a balanced data set, select a global modeling method, and execute S102; if the balance degree B of the training data set is >10, the training data set is an unbalanced data set, select a sequential modeling method, and execute S103; S102: For a given training data set, Q different molecular fingerprints f of the molecules in the training data set are calculated in sequence, the molecular fingerprints are used as the input of the first meta-model block, supervised learning is performed using the labels in the training data set, and the weight of the first meta-model block is updated using the stochastic gradient descent method, and finally Q global modeling meta-models are obtained, and S104 is executed; S103: for a given training data set, marking the atomic numbers in the compound molecules in the training data set, extracting the atomic connection information, and selectively decomposing the compound molecules to fragment and sequence them, to obtain two sets of forward and reverse molecular fragment sequences; calculating Q different molecular fingerprints f of the molecules in the training data set; Sequentially use Q different molecular fingerprints f to characterize molecular fragments to obtain two sets of fingerprint sequences S ([f1, f2, ..., f i ]) and RS([f i ,f i-1 ,...,f1]) as the input of the second meta-model block, use the labels in the training data set for supervised learning, and use the stochastic gradient descent method to update the weight of the second meta-model block, and finally obtain Q sequential modeling meta-models, and execute S104; S104: For the compound molecule to be predicted, first select the toxicity endpoint and a corresponding set of meta-models, a total of Q meta-models, and use the similarity between the molecular fingerprint and the training data set to determine whether the compound molecule to be predicted is within the application domain of the global modeling meta-model and the sequential modeling meta-model. If yes, execute S105, otherwise execute S112; S105: Determine the modeling method of the selected metamodel, if it is a sequential modeling method, execute S106, if it is a global modeling method, otherwise execute S107; S106: For the compound molecules within the application domain, Q sequential modeling meta-models obtain Q groups of prediction results, each group of prediction results consists of L1 and L2, and it is determined whether L1=L2 is established. If so, the final prediction result is L=L1=L2, and the final prediction results {L1, L2, ..., L t }, where t is the number of retained prediction results, t≤Q, and execute S108; S107: For the compound molecules within the application domain, Q global modeling meta-models obtain Q final prediction results L{L1, L2, ..., L i }, i=7, execute S108; S108: Determine whether it is a binary classification problem according to the label category of the training data set corresponding to the endpoint, that is, vT or nT endpoint. If yes, execute S110, otherwise execute S109; S109: Perform a toxicity cliff test on each final prediction result: the average similarity distance between the predicted compound molecule and the training data set is greater than or equal to the cliff value, and the absolute value of the label difference between the predicted label result and the most similar molecule in the training data set is greater than or equal to the set value; Keep the final prediction results {L1,L2,…,L j }, where j is the number of final prediction results retained, and S110 is executed; S110: Calculate the consensus score CS. If CS is greater than a given consensus score threshold, retain the final output result L and execute S111, otherwise execute S112; S111: Output the final prediction result; S112: Output "The model cannot accurately predict the toxicity of this compound." 2. The method for evaluating compound toxicity by integrating data balance and molecular fragmentation as claimed in claim 1 is characterized by: The balance degree B in S101 is calculated by the following method: Where N max Indicates the maximum number of labels in the training data set, N min Indicates the minimum number of labels in the training dataset.
3. A compound toxicity evaluation method integrating data balance and molecular fragmentation as claimed in claim 2, characterized in that: The method for determining whether the compound molecule to be predicted is within the application domain of the global modeling metamodel and the sequential modeling metamodel by using the similarity between the molecular fingerprint and the training data set in S104 is: Calculate the similarity distance between the compound to be predicted and each molecule in the training data set. The similarity distance is defined as the sum of the similarities between a compound to be predicted and the top k most similar molecules among all the molecules in the training data set. Use formulas (1)-(3) to determine the distance threshold of the global modeling metamodel or the sequential modeling metamodel: z∈(0.50,0.75,1.00)(4) In formula (3), S T is the similarity distance threshold, σ S is the standard deviation of the similarity distance, z is a hyperparameter that determines the size of the applicable range, S i is the similarity distance of each molecule in the test set, is the mean of the similarity distances of the molecules in the test set, n is the number of molecules in the training data set, and the molecules with similarity distances not less than S in the training data set are retained. T The prediction result of the compound molecule to be predicted is that the compound molecule to be predicted is within the applicable scope.
4. A compound toxicity evaluation method integrating data balance and molecular fragmentation as claimed in claim 3, characterized in that: The consensus score CS in S110 is calculated by finding the frequency of the label with the highest frequency in the output minus the sum of the frequencies of the remaining labels.
5. A method for evaluating compound toxicity by integrating data balance and molecular fragmentation according to any one of claims 1 to 4, characterized in that: The first meta-model block is an FNN network, and the second meta-model block is a Bi-LSTM network and an FNN network.
Citation Information
Patent Citations
Compound-protein interaction prediction method fusing multi-view information
CN116230113A
Toxicity prediction method and system based on deep integrated machine learning model
CN116541785A
Method and device for processing medicine data and electronic equipment
CN116994674A
Molecular property prediction method based on molecule Image and SMILES character string pre-training
CN117238394A
Toxicity predicting method and utilization thereof
JP2019020791A
