A method for predicting the inhibitory activity of chemicals on DNA gyrase A subunit
By using the graph neural network model and the chemical SMILES code to construct molecular graph and molecular fragment graph features, the accuracy and applicability problems of chemical inhibitory activity prediction in the existing technology were solved, and high-precision prediction of DNA gyrase A subunit was achieved, supporting rapid screening of high-risk pollutants.
Patent Information
- Application Number
- CN202510047498.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2045-01-13
AI Technical Summary
Existing methods for predicting the inhibitory activity of chemicals on DNA gyrase A subunit have problems of low accuracy and narrow scope of applicability, making it difficult to quickly screen high-risk pollutants with the ability to induce bacterial quinolone resistance.
A graph neural network model is used, with the chemical SMILES code as input to construct molecular graph and molecular fragment graph features. The graph convolution attention layer is used to capture the intrinsic connections, and the multi-layer perceptron is combined to generate the predicted value of the chemical's inhibitory activity data on DNA gyrase A subunit.
High-precision prediction of the inhibitory activity of chemicals on DNA gyrase A subunit is achieved, which reduces the demand for computing resources, improves predictive capabilities, and supports the rapid discovery of new environmental pollutants that induce bacterial resistance.
Smart Images

Figure CN119851809B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical-induced bacterial resistance assessment, and in particular to a method for predicting the inhibitory activity of chemicals on DNA gyrase A subunit. Background Art
[0002] Molecular initiation events (MIEs) often involve the binding of pollutants to target proteins, which then trigger a molecular cascade response that leads to changes in normal physiological functions and produces irreversible harmful effects. Similarly, bacterial resistance mutations originate from the molecular recognition and interaction between environmental pollutants and many resistance-related targets, which in turn interfere with the relevant pathways that maintain normal cell function and cause a cascade effect, inducing the generation of resistant bacteria. Since DNA gyrase A subunit is a key target for inducing quinolone resistance, the interaction between pollutants and DNA gyrase A subunit will also determine their ability to induce quinolone resistance. Pollutants with specific structures can inhibit DNA gyrase A subunit, thereby inhibiting DNA replication and inducing DNA damage, followed by a series of SOS and DNA replication and repair system responses, ultimately leading to target mutations, thereby producing quinolone resistance. Therefore, rapid screening of environmental pollutants with DNA gyrase A subunit inhibitory activity is the key to identifying high-risk pollutants with the ability to induce bacterial quinolone resistance.
[0003] Due to the large-scale addition of chemicals to industrial products and everyday items, relying on traditional experimental methods is clearly unfeasible. Therefore, computational approaches are needed to accelerate the screening of high-risk contaminants with the potential to induce bacterial quinolone resistance. Traditional methods for predicting the inhibitory activity of chemicals against proteins fall into two main categories: ligand-based and receptor-based. Ligand-based methods assess the potential effect of a chemical by comparing its structure with that of known active ligands. While ligand-based methods are simple and effective when ligands have high similarity, their applicability and accuracy are limited by the space of known ligand structures. Receptor-based methods primarily utilize molecular docking, calculating parameters such as the three-dimensional structure and interaction energy of the ligand-receptor complex to determine the interaction mode between the ligand and the target protein. While receptor-based methods fully consider the three-dimensional structural characteristics of the target protein, they still face several technical challenges that have yet to be fully addressed. For example, the conformational flexibility of the protein, the accuracy of the scoring function, and the solvent effect of water molecules can all affect the accuracy of docking results.
[0004] Traditional methods for predicting the inhibitory activity of chemicals against proteins suffer from low accuracy and limited applicability. Therefore, there is an urgent need to develop new methods for assessing the inhibitory activity of chemicals against DNA gyrase A subunit to rapidly screen for high-risk contaminants with the potential to induce bacterial quinolone resistance. Indeed, with the rise of deep learning methods, feature-based methods for predicting chemical properties have gradually developed. This is because feature-based methods can apply deep learning algorithms to learn the characteristics of chemicals with known DNA gyrase A subunit inhibitory activity and infer the DNA gyrase A subunit inhibitory activity of unknown chemicals. Furthermore, relevant studies have shown that deep learning models outperform molecular docking and other machine learning models.
[0005] In summary, a deep learning model is needed that can fully learn the characteristics of chemicals, achieve direct mapping of chemical structure to properties, reduce the requirements for preliminary data preparation in model use, and improve the predictive ability of the model. Summary of the Invention
[0006] The purpose of the present invention is to address the deficiencies of the prior art and provide a method for predicting the inhibitory activity of chemicals on DNA gyrase A subunit.
[0007] The object of the present invention is achieved through the following technical solution: a method for predicting the inhibitory activity of a chemical on DNA gyrase A subunit, comprising the following steps:
[0008] S1. Obtain chemical structures and inhibitory activity data of the chemicals on DNA gyrase A subunit, perform a structure cleaning operation on the chemical structures, and perform a scaling operation on the inhibitory activity data to construct a data set, and randomly divide the data set into a training set and a test set according to the proportion;
[0009] S2. Build a graph neural network model with the chemical SMILES code as input, whose output is the predicted value of the scaled value of the chemical's inhibitory activity data on DNA gyrase A subunit;
[0010] S3. Use cross-validation to determine the optimal hyperparameters of the graph neural network model, and train it using the training set to obtain the trained optimal graph neural network model, which is used as the inhibitory activity prediction model to predict the inhibitory activity data scaling value of chemicals on DNA gyrase A subunit;
[0011] S4. Input the SMILES code of the chemical to be tested in the test set or the SMILES code of the chemical to be evaluated into the inhibitory activity prediction model to obtain the predicted value of the inhibitory activity data scaling value of the chemical on DNA gyrase A subunit.
[0012] Furthermore, the step S1 includes the following sub-steps:
[0013] S1.1. Obtain chemical structures and inhibitory activity data on the chemical against DNA gyrase A subunit from public databases or literature; the chemical structures are represented by the chemical SMILES code, and the inhibitory activity data are used to indicate the inhibitory activity of the chemical against DNA gyrase A subunit;
[0014] S1.2. Perform structure cleaning operations on chemical structures, specifically including: standardizing, removing solvents, charge correction, and deionizing chemical molecular structure cleaning operations on chemical SMILES codes to standardize and unify the form of chemical SMILES codes; wherein, these structure cleaning operations can perform molecular structure inspection to ensure that the structure of the molecule is chemically reasonable; correct drawing errors and standardize functional groups; hide hydrogen atoms; recalculate stereochemistry; remove covalently bonded impurities; ensure that the strongest acid group is ionized first; generate neutral molecules; standardize tautomers; and remove salts and covalently bound metals contained in the compound;
[0015] S1.3. performing a scaling operation on the numerical range of the inhibitory activity data of the chemical on the DNA gyrase A subunit by taking the negative logarithm of the original numerical value of the inhibitory activity data of the chemical on the DNA gyrase A subunit;
[0016] S1.4, constructing a data set based on the chemical SMILES code after the structure cleaning operation in step S1.2 and the inhibitory activity data after the scaling operation in step S1.3;
[0017] S1.5. Randomly divide the dataset into training and test sets in proportion.
[0018] Furthermore, the graph neural network model includes a molecular graph embedding layer, a molecular fragment graph embedding layer, multiple molecular graph neural network encoders, multiple molecular fragment graph neural network encoders, a dual-path combiner and a predictor, wherein the molecular graph neural network encoder and the molecular fragment graph neural network encoder are both composed of a neighborhood attention module, an information aggregation module, a gating mechanism to update node feature module and a feature attention module, and the feature attention module includes a maximum pooling layer, a sum pooling layer, a multi-layer perceptron global pooling layer and an activation function; the dual-path combiner selects a graph convolutional attention layer, and the graph convolutional attention layer includes multiple attention heads and a ReLU activation function; the predictor includes n l Layer fully connected layer.
[0019] Furthermore, the molecular graph embedding layer calculates the molecular graph of the chemical according to the chemical SMILES code using RDKit to extract molecular graph features from the molecular graph; wherein the molecular graph features include a×d atThe atomic feature matrix, the adjacency matrix of length b and the b×d bt The chemical bond characteristic matrix is , where a is the number of atoms in the chemical, b is twice the number of chemical bonds in the chemical, and d is at is the number of atomic features, d bt is the number of chemical bond features, and the adjacency matrix is used to represent the atomic numbers of the bonding atom pairs in the molecular graph;
[0020] The molecular fragmentation graph embedding layer calculates the molecular graph of the chemical according to the chemical SMILES code using RDKit, and extracts the molecular fragmentation features from the molecular graph based on the BRICS principle; wherein the molecular fragmentation features include a×d at The atomic feature matrix of length b f The molecular fragment adjacency matrix, b f ×d bt The chemical bond feature matrix of the molecular fragments and the molecular fragment index list of length a, where b f It is twice the number of chemical bonds remaining after the molecule is broken into molecular fragments. The molecular fragment index list is used to indicate the index of the molecular fragment where each atom in the chemical is located;
[0021] The various molecular graph features and molecular fragment features extracted from the molecular graph embedding layer and the molecular fragment graph embedding layer are first transformed into features of length d h Then, each type of feature vector is input into the molecular graph neural network encoder and the molecular fragment graph neural network encoder respectively to obtain the molecular graph feature sequence and the molecular fragment feature sequence respectively, where d h The length of is the same as the size of the hidden layer; wherein, in the molecular graph neural network encoder and the molecular fragment graph neural network encoder, the molecular graph neural network encoder and the molecular fragment graph neural network encoder update the node features of the molecular graph and the molecular fragment graph through their respective neighborhood attention modules and information aggregation modules, and then update the node feature module through a gating mechanism to balance between retaining the original information and using new information. In the feature attention module, the global features of the molecular graph are extracted through the maximum pooling layer and the sum pooling layer, and the attention weights are generated by the multi-layer perceptron to perform weighted adjustment on the node features. Finally, the features of all nodes are aggregated into a global feature vector through the global pooling layer and the activation function, thereby obtaining the molecular graph feature sequence and the molecular fragment feature sequence.
[0022] The molecular graph feature sequence and the molecular fragment feature sequence are input into the dual-pathway combiner. The dual-pathway combiner uses the graph convolution attention layer to learn the relationship between the molecular graph feature sequence and the molecular fragment feature sequence. Specifically, it adopts n hEach attention head independently calculates the attention weights of different molecular fragments, and performs nonlinear transformation through the ReLU activation function to obtain the molecule-molecular fragment interaction feature sequence;
[0023] Then, the molecule-molecule fragment interaction feature sequence and the molecular graph feature sequence output by the molecular graph neural network encoder are spliced and input into the predictor. l After the fully connected layer, the predicted value of the scaled value of the inhibitory activity data of the chemical on DNA gyrase A subunit is output.
[0024] Furthermore, step S3 includes the following sub-steps:
[0025] S3.1. Preset multiple sets of different model hyperparameters as {lr, weight-decay, batchsize, dropout, depth, feature-dimension, n-slices, r}, where lr is the learning rate, weight-decay is the weight decay parameter, batchsize is the number of samples selected for one training, dropout is the random dropout regularization parameter, depth is the number of encoder layers, feature-dimension is the size of the hidden layer, n-slices is the number of slices, r is the decay rate, lr is used to control the progress of convergence to the local minimum, weight-decay and dropout are used to prevent model overfitting, depth, feature-dimension, n-slices and r are used to adjust model complexity, and the size of batchsize affects the degree and speed of model optimization;
[0026] S3.2. For each set of model hyperparameters, use the data in the training set to train the graph neural network model, through n f The graph neural network model corresponding to the set of model hyperparameters was evaluated by fold cross-validation based on statistical parameters to determine the optimal model hyperparameters, and the trained graph neural network model corresponding to the optimal model hyperparameters was obtained. It was used as the inhibitory activity prediction model to predict the inhibitory activity data scaling value of chemicals on DNA gyrase A subunit.
[0027] Furthermore, the statistical parameter is one of the coefficient of determination, root mean square error, mean square error, and mean absolute error.
[0028] Furthermore, for each set of model hyperparameters, the graph neural network model is trained using the data in the training set, and the n f The fold cross-validation evaluates the graph neural network model corresponding to the set of model hyperparameters based on statistical parameters to determine the optimal model hyperparameters, including:
[0029] S3.2.1. Train the graph neural network model based on a set of preset model hyperparameters, using n f The data in the training set are randomly divided into n f subsets, each time one of the subsets is used as the validation set, and the remaining n f -1 subsets to train the graph neural network model. During the training process, the statistical parameters are calculated based on the predicted values of the inhibitory activity scaling values of the chemicals on the DNA gyrase A subunit output by the graph neural network model and the corresponding true values in the training set. With the optimal statistical parameters as the optimization goal, the parameters of the graph neural network model are adjusted, and then the graph neural network model is verified using the data in the validation set to calculate the corresponding statistical parameters. The above process is repeated for training n f times, and finally get n f Statistical parameters and calculate n f The average value of the statistical parameters;
[0030] S3.2.2. Repeat step S3.2.1 to obtain the average statistical parameters corresponding to all groups of model hyperparameters, and select a group of model hyperparameters corresponding to the optimal statistical parameter average as the optimal model hyperparameters.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] (1) The present invention can fully utilize existing high-throughput experimental big data and use chemical SMILES codes as input for the inhibitory activity prediction model. It does not require manually defined quantifiable structural parameters as molecular descriptors, thus saving time and computing resources for molecular descriptor calculation and descriptor selection, and its application requires less computational chemistry foundation.
[0033] (2) Compared with existing methods, the method of the present invention has high-precision prediction performance, which is helpful for the rapid discovery of new environmental pollutants that induce bacterial resistance and has broad application prospects in the fields of chemical risk assessment and environmental safety assessment;
[0034] (3) The structure of the inhibitory activity prediction model in the present invention is flexible, which greatly improves the predictive ability of the inhibitory activity prediction model and realizes high-precision prediction of the inhibitory activity of chemical DNA gyrase A subunit, which is conducive to the rapid discovery of new environmental pollutants that induce bacterial resistance and can also be extended to the study of different key molecular initiation events. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flow chart of a method for predicting the inhibitory activity of a chemical substance of the present invention on DNA gyrase A subunit;
[0036] Figure 2This is a structural diagram of the graph neural network model network in Example 1 of the present invention. DETAILED DESCRIPTION
[0037] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention, as detailed in the appended claims.
[0038] The terms used in this invention are for the purpose of describing specific embodiments only and are not intended to limit the invention. The singular forms "a," "the," and "the" used in this invention and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0039] It should be understood that although the terms "first," "second," "third," etc. may be used in the present invention to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to determining."
[0040] The present invention will be described in detail below with reference to the accompanying drawings. Unless there is any conflict, the features of the following embodiments and implementations may be combined with each other.
[0041] The method for predicting the inhibitory activity of chemicals on DNA gyrase A subunit is based on the chemical SMILES (Simplified Molecular Input Line Entry System) code, avoiding the limitations of traditional methods such as low accuracy and small application range. Compared with other similar methods, the method of the present invention has the most superior prediction ability in current research.
[0042] It should be understood that SMILES is a specification that uses ASCII strings to clearly describe molecular structures, and SMILES codes can be used to describe the three-dimensional chemical structure of a compound.
[0043] The basic principle of the present invention is as follows: the input of the model is chemical SMILES; first, the atomic feature matrix, adjacency matrix and chemical bond feature matrix are obtained through the molecular graph embedding layer, and the molecular fragment features are obtained through the molecular fragment graph embedding layer, specifically including the atomic feature matrix, the molecular fragment adjacency matrix, the chemical bond feature matrix of the molecular fragments and the molecular fragment index list; then, various feature vectors extracted from the molecular graph embedding layer and the molecular fragment graph embedding layer are respectively input into the molecular graph neural network encoder and the molecular fragment graph neural network encoder to obtain the corresponding molecular graph feature sequence and molecular fragment feature sequence, and the intrinsic connection between the molecules and the molecular fragments is captured by the dual-path combiner, and finally the predictor outputs the inhibitory activity data of the chemical on the DNA gyrase A subunit (IC 50 ) scaled values.
[0044] See also Figure 1 The method for predicting the inhibitory activity of a chemical substance on DNA gyrase A subunit of the present invention specifically comprises the following steps:
[0045] S1. Obtain chemical structures and inhibitory activity data on DNA gyrase A subunit (IC 50 ), and performed structural cleaning operations on the chemical structures and scaling operations on the inhibitory activity data to construct a dataset, which was randomly divided into training and test sets in proportion.
[0046] S1.1. Obtain the chemical structure and inhibitory activity data of the chemical on DNA gyrase A subunit from public databases or literature; the chemical structure is the chemical SMILES code, and the inhibitory activity data is used to indicate the inhibitory activity of the chemical on DNA gyrase A subunit.
[0047] S1.2. Perform structure cleaning operations on chemical structures, including standardization, solvent removal, charge correction, deionization, and other chemical molecular structure cleaning operations to standardize and unify the form of chemical SMILES codes, effectively avoiding interference in subsequent calculations. These structure cleaning operations can perform molecular structure inspection to ensure that the structure of the molecule is chemically reasonable; correct common drawing errors and standardize functional groups; hide hydrogen atoms; recalculate stereochemistry; remove covalently bonded impurities; ensure that the strongest acid group is ionized first; generate neutral molecules whenever possible; standardize tautomers; and remove salts and covalently bound metals contained in the compound.
[0048] S1.3. By taking the negative logarithm of the original numerical value of the inhibitory activity data of the chemical on the DNA gyrase A subunit, the numerical range of the inhibitory activity data of the chemical on the DNA gyrase A subunit is scaled, thereby reducing the numerical range of the inhibitory activity data.
[0049] S1.4. Construct a data set based on the chemical SMILES code after the structure cleaning operation in step S1.2 and the inhibitory activity data after the scaling operation in step S1.3.
[0050] S1.5. Randomly divide the dataset into training and test sets according to a certain ratio. t% of the data is used as the training set for training and optimizing the graph neural network model, and w% of the data is used as the test set for evaluating the performance of the final model.
[0051] S2. Construct a graph neural network model with chemical SMILES codes as input, whose output is the predicted value of the scaled value of the inhibitory activity data of the chemical on DNA gyrase A subunit.
[0052] In this embodiment, the graph neural network model includes a molecular graph embedding layer, a molecular fragment graph embedding layer, multiple molecular graph neural network encoders, multiple molecular fragment graph neural network encoders, a dual-path combiner and a predictor, wherein the molecular graph neural network encoder and the molecular fragment graph neural network encoder are both composed of a neighborhood attention module, an information aggregation module, a gating mechanism to update node feature module and a feature attention module, but their parameters are different, such as Figure 2 As shown in the figure, the feature attention module includes a maximum pooling layer, a sum pooling layer, a multi-layer perceptron global pooling layer and an activation function; the dual-path combiner uses a graph convolution attention layer, which includes multiple attention heads and a ReLU activation function; the predictor includes n l Layer fully connected layer.
[0053] Specifically, the molecular graph embedding layer calculates the molecular graph of the chemical according to the chemical SMILES code using RDKit to extract molecular graph features from the molecular graph; wherein the molecular graph features include a×d at The atomic feature matrix, the adjacency matrix of length b and the b×d bt The chemical bond characteristic matrix is , where a is the number of atoms in the chemical, b is twice the number of chemical bonds in the chemical, and d is at is the number of atomic features, d bt is the number of chemical bond features, and the adjacency matrix is used to represent the atomic numbers of the bonding atom pairs in the molecular graph.
[0054] The molecular fragmentation graph embedding layer calculates the molecular graph of the chemical based on the chemical SMILES code using RDKit, and extracts the molecular fragment features from the molecular graph based on the BRICS principle (Bonds Representing Interaction Clusters); wherein the molecular fragment features include a×d at The atomic feature matrix of length b f The molecular fragment adjacency matrix, bf ×d bt The chemical bond feature matrix of the molecular fragments and the molecular fragment index list of length a, where b f It is twice the number of chemical bonds remaining after the molecule is broken into molecular fragments. The molecular fragment index list is used to indicate the index of the molecular fragment where each atom in the chemical is located.
[0055] The various molecular graph features and molecular fragment features extracted from the molecular graph embedding layer and the molecular fragment graph embedding layer are first transformed into features of length d h Then, each type of feature vector is input into the molecular graph neural network encoder and the molecular fragment graph neural network encoder respectively to obtain the molecular graph feature sequence and the molecular fragment feature sequence respectively, where d h The length of is the same as the size of the hidden layer. In the molecular graph neural network encoder and molecular fragment graph neural network encoder, the molecular graph neural network encoder and molecular fragment graph neural network encoder update the node features of the molecular graph and molecular fragment graph through their respective neighborhood attention modules and information aggregation modules. Then, the node feature module is updated through a gating mechanism to balance between retaining the original information and using new information. In the feature attention module, the global features of the molecular graph are extracted through the maximum pooling layer and the sum pooling layer. The multi-layer perceptron is used to generate attention weights and weighted adjustment of the node features. Finally, the features of all nodes are aggregated into a global feature vector through the global pooling layer and activation function, thereby obtaining the molecular graph feature sequence and the molecular fragment feature sequence.
[0056] It should be understood that feature transformation refers to the compression or amplification of feature dimensions, as well as the calculation of activation functions, to convert various molecular graph features and molecular fragment features into corresponding feature vectors. Furthermore, in deep learning models, all network layers other than the input and output layers are referred to as hidden layers.
[0057] The molecular graph feature sequence and the molecular fragment feature sequence are input into the dual-pathway combiner. The dual-pathway combiner first adopts the interactive attention strategy to capture the intrinsic connection between molecules and molecular fragments, and uses the graph convolutional attention layer to learn the relationship between the molecular graph feature sequence and the molecular fragment feature sequence. Specifically, it adopts n h Each attention head independently calculates the attention weights of different molecular fragments, which can better capture the characteristics of molecular fragments and obtain the molecular-molecular fragment interaction feature sequence through nonlinear transformation through ReLU activation function. Then, the molecular-molecular fragment interaction feature sequence and the molecular graph feature sequence output by the molecular graph neural network encoder are spliced and input into the predictor. l After the full connection layer, the inhibitory activity data of the chemical on DNA gyrase A subunit (IC 50) scaled values.
[0058] S3. Use cross-validation to determine the optimal hyperparameters of the graph neural network model, and train it using the training set to obtain the trained optimal graph neural network model, which is used as the inhibitory activity prediction model to predict the inhibitory activity data scaling value of chemicals on DNA gyrase A subunit.
[0059] S3.1. Based on experience, we preset multiple sets of different model hyperparameters as {lr, weight-decay, batchsize, dropout, depth, feature-dimension, n-slices, r}, where lr is the learning rate, weight-decay is the weight decay parameter, batchsize is the number of samples selected for one training, dropout is the random loss regularization parameter, depth is the number of encoder layers, feature-dimension is the size of the hidden layer, n-slices is the number of slices, r is the decay rate, lr is used to control the progress of convergence to the local minimum, weight-decay and dropout are used to prevent model overfitting, depth, feature-dimension, n-slices and r are used to adjust the model complexity, and the size of batchsize affects the degree and speed of model optimization.
[0060] S3.2. For each set of model hyperparameters, use the data in the training set to train the graph neural network model, through n f The graph neural network model corresponding to the set of model hyperparameters was evaluated by fold cross-validation based on statistical parameters to determine the optimal model hyperparameters, and the trained graph neural network model corresponding to the optimal model hyperparameters was obtained. It was used as the inhibitory activity prediction model to predict the inhibitory activity data scaling value of chemicals on DNA gyrase A subunit.
[0061] Furthermore, the statistical parameter is the coefficient of determination (R 2 ), root mean square error (RMSE), mean square error (MSE), mean absolute error (MAE), and their calculation formulas are:
[0062]
[0063] Among them, n represents the number of samples, y i represents the true value of the scaling value of the inhibitory activity data of the chemical corresponding to the i-th sample on DNA gyrase A subunit, represents the predicted value of the scaling value of the inhibitory activity data of the chemical corresponding to the i-th sample on DNA gyrase A subunit, Represents the average of all true values.
[0064] Furthermore, for each set of model hyperparameters, the graph neural network model is trained using the data in the training set, and the n f The fold cross-validation evaluates the graph neural network model corresponding to the set of model hyperparameters based on statistical parameters to determine the optimal model hyperparameters, including:
[0065] S3.2.1. Train the graph neural network model based on a set of preset model hyperparameters, using n f The data in the training set are randomly divided into n f subsets, each time one of the subsets is used as the validation set, and the remaining n f -1 subsets to train the graph neural network model. During the training process, the statistical parameters are calculated based on the predicted values of the inhibitory activity scaling values of the chemicals on the DNA gyrase A subunit output by the graph neural network model and the corresponding true values in the training set. With the optimal statistical parameters as the optimization goal, the parameters of the graph neural network model are adjusted, and then the graph neural network model is verified using the data in the validation set to calculate the corresponding statistical parameters. The above process is repeated for training n f times, and finally get n f Statistical parameters, take n f The average value of the statistical parameters is used to evaluate the predictive ability of the graph neural network model when different model hyperparameters are selected.
[0066] S3.2.2. Repeat step S3.2.1 to obtain the average statistical parameters corresponding to all groups of model hyperparameters, and select a group of model hyperparameters corresponding to the optimal statistical parameter average as the optimal model hyperparameters.
[0067] It should be understood that when different statistical parameters are selected, the requirements for the optimal statistical parameters are also different. For example, when the statistical parameter is RMSE, the smaller the RMSE, the better the statistical parameter; when the statistical parameter is R 2 When R 2 The larger the value, the better the statistical parameter.
[0068] S4. Input the SMILES code of the chemical to be tested or evaluated in the test set into the inhibitory activity prediction model to obtain a predicted value for the scaled value of the chemical's inhibitory activity against DNA gyrase subunit A. A larger predicted value indicates a stronger inhibitory activity of the chemical against DNA gyrase subunit A, and vice versa.
[0069] In summary, the present invention utilizes chemical SMILES codes to avoid the application limitations of traditional prediction models and greatly improves the predictive ability of the model, achieving high-precision prediction of the inhibitory activity of chemicals on DNA gyrase A subunit; in addition, the present invention does not rely on molecular descriptors, but directly establishes a connection between chemical SMILES codes and inhibitory activity to achieve rapid screening of key molecular initiation events of pollutant-induced bacterial resistance, clarifying the structural basis of pollutant-induced bacterial resistance, and has broad application prospects in the field of chemical health risk assessment.
[0070] The technical solution of the present invention is further described below by means of specific embodiments in combination with the accompanying drawings. It should be noted that the following specific embodiments are only for illustration and the protection scope of the present invention is not limited thereto.
[0071] Example 1
[0072] See also Figure 1-Figure 2 This embodiment implements a method for predicting the inhibitory activity of chemicals on DNA gyrase A subunit based on a graph neural network model, specifically comprising the following steps:
[0073] (1) Acquisition and preprocessing of chemical structures and data on their inhibitory activity against DNA gyrase A subunit.
[0074] First, the Uniprot IDs of bacterial DNA gyrase A subunits were obtained from the BindingDB database. Based on these Uniprot IDs, the inhibitory activity data of chemical DNA gyrase A subunits were found in the BindingDB database and the ChEMBL database, which contained chemical SMILES codes and inhibitory activity data (IC 50 ) numerical value. The inhibitory activity data indicates the strength of the compound's inhibitory activity on the enzyme.
[0075] Subsequently, the chemical SMILES codes in the DNA gyrase A subunit inhibitory activity data were standardized; desolvation; charge correction; deionization and other chemical molecular structure cleaning operations were performed to avoid interference in subsequent calculations. These SMILES code cleaning operations can perform molecular structure inspection to ensure that the structure of the molecule is chemically reasonable; correct common drawing errors and standardize functional groups; hide hydrogen atoms; recalculate stereochemistry; remove covalently bonded impurities; ensure that the strongest acid group is ionized first; generate neutral molecules as much as possible; standardize tautomers; and remove salts and covalently bound metals contained in the compound. By using the half-maximal inhibitory concentration (IC50) of each chemical 50 ) to scale the inhibitory activity range.
[0076] Finally, the preprocessed chemical SMILES codes and the inhibitory activity data of the chemicals on DNA gyrase A subunit were randomly divided into training set and test set in an 8:2 ratio.
[0077] (2) Construction, training and hyperparameter search of graph neural network models.
[0078] The constructed graph neural network model includes a molecular graph embedding layer, a molecular fragment graph embedding layer, three molecular graph neural network encoders, three molecular fragment graph neural network encoders, a dual-pathway combiner and a predictor, such as Figure 2 shown.
[0079] The chemical SMILES codes in the training set are used as input to the graph neural network model.
[0080] RDKit is used in the molecular graph embedding layer to extract an a×46 atomic feature matrix, a b-length adjacency matrix (used to represent the atomic numbers of the bonding atom pairs in the molecule), and a b×10 chemical bond feature matrix from the molecular graph, where a is the number of atoms in the chemical, b is twice the number of chemical bonds in the chemical, 46 is the number of atomic features, and 10 is the number of chemical bond features.
[0081] RDKit is used in the molecular fragment embedding layer to extract molecular fragment features from the molecular graph. The extracted molecular fragment features include: a×46 atomic feature matrix with a length of b f The molecular fragment adjacency matrix, b f ×10 chemical bond feature matrix of molecular fragments and a molecular fragment index list of length a (indices of the molecular fragments where each atom in the chemical is located), where b f It is twice the number of chemical bonds remaining after the molecule is broken into molecular fragments.
[0082] The above-mentioned types of molecular features and molecular fragment features are respectively input into the molecular graph neural network encoder and the molecular fragment graph neural network encoder. The node features of the molecular graph and the molecular fragment graph are updated through neighborhood attention and information aggregation. Then, the node feature module is updated through a gating mechanism to strike a balance between retaining the original information and using new information. In the feature attention module, the global features of the graph are extracted through the maximum pooling layer and the sum pooling layer. The multi-layer perceptron is used to generate attention weights and weighted adjustment of the node features. Finally, the features of all nodes are aggregated into a global feature vector through the global pooling layer and the activation function, thereby obtaining the molecular graph feature sequence and the molecular fragment feature sequence.
[0083] The dual-pathway combiner first employs an interactive attention strategy to capture the intrinsic connections between molecules and molecular fragments. Using a graph attention convolutional layer, the network learns the relationship between the molecular graph feature sequence and the molecular fragment feature sequence, calculates the attention weights for different molecular fragments, and then performs a nonlinear transformation using a ReLU activation function to obtain a molecule-fragment interaction feature sequence. The graph attention convolutional layer uses four independent attention heads for computation, enabling better capture of molecular fragment features. The molecular graph feature sequence and the molecule-fragment interaction feature sequence are then concatenated and fed into the predictor.
[0084] The predictor consists of one fully connected layer, and the output is the predicted value s of the IC50 scaled value of the chemical on DNA gyrase A subunit out .
[0085] During training, the adaptive momentum optimizer Adam is used to update the network parameters based on the gradient, and the learning rate lr is 0.0013. In addition, in order to control the progress of convergence to the local minimum, batchsize is added to the model, and the parameter sets the batch size to 64. In order to improve the generalization ability of the model and prevent the model from overfitting, the weight decay parameter weight-decay and the random loss regularization parameter dropout are set. The weight decay parameter weight-decay is set to 0.00001, and the random loss regularization parameter dropout is set to 0.1. In addition, the number of encoder layers depth, the size of the hidden layer feature-dimension, the number of slices n-slices, and the decay rate r are used to adjust the complexity of the model. The depth, feature-dimension, n-slices and r are 4, 256, 4 and 4 respectively. 10-fold cross validation is used, and the training is repeated 10 times. Each time, the validation set and training set are randomly sampled according to a certain ratio for training. Each training is performed for a maximum of 500 iterations. When the validation set R of the current iteration is 2 Less than the optimal validation set R 2 And the current number of iterations is greater than the optimal validation set R 2 The training is terminated when the number of iterations is greater than 50. The prediction ability of the model with different hyperparameters is evaluated based on the average value of the statistical parameters of the model on the validation set during the 10 training cycles. Finally, the model is retrained on the entire training set based on the optimal hyperparameter combination, and the test set R is calculated. 2 , RMSE, MSE, and MAE statistical parameters are used to characterize the model's predictive ability.
[0086] In order to further avoid overfitting of the model and improve the generalization ability of the model, the hyperparameters used are searched and optimized within a certain range and at a certain step size:
[0087] Select the learning rate parameter lr and get R corresponding to different learning rates2 , lr is selected as 0.0013;
[0088] Select the weight decay parameter weight-decay and get the R corresponding to different weight decay parameters 2 , select λ as 0.00001;
[0089] Select the batch size of data and get the R corresponding to the different batch sizes. 2 , select batchsize as 64;
[0090] Select the random loss regularization parameter dropout and get the R corresponding to different random loss regularization parameters 2 , select dropout as 0.1;
[0091] Select the number of encoder layers depth, and get the R corresponding to the number of encoder layers 2 , select depth as 4;
[0092] Select the size feature-dimension of the hidden layer and get the R corresponding to the size of different hidden layers 2 , select feature-dimension as 256;
[0093] Select the number of slices n-slices and get the R corresponding to different numbers of slices 2 , select n-slices as 4;
[0094] Select the attenuation rate r and get the R corresponding to different attenuation rates 2 , select r as 4.
[0095] (3) Prediction of DNA gyrase A subunit inhibitory activity of the chemical to be evaluated.
[0096] US8889671,32 was selected from the test set as the chemical to be evaluated to predict its inhibitory activity on DNA gyrase A subunit. The chemical structure of US8889671,32 is shown below:
[0097]
[0098] US8889671,32 is a fluorinated organic compound widely found in the environment. As the test chemical in this embodiment, the SMILES code for US8889671,32 was queried through the PubChem molecular database, specifically "C[C@@H]1O[C@H](C)CN2c3c(cc4c(N5C[C@@H](CF)OC5=O)noc4c3Cl)CC3(C(=O)NC(=O)NC3=O)[C@@H]12." Standardization, solvent removal, charge correction, and deionization were performed, among other chemical molecular structure cleaning operations, to avoid interference during subsequent calculations. These SMILES code cleaning operations include molecular structure inspection to ensure the chemical structure of the molecule is chemically sound, correcting common drawing errors and standardizing functional groups, hiding hydrogen atoms, recalculating stereochemistry, removing covalently bonded impurities, ensuring that the strongest acid group is ionized first, generating neutral molecules whenever possible, standardizing tautomers, and removing salts and covalently bound metals contained in the compound. The processed SMILES code is used as the input information of the model to calculate its p(IC 50 ) has a predicted value of 6.38.
[0099] The p(IC 50 ) is 6.20, and the predicted result is consistent with the facts.
[0100] In summary, the present invention establishes a graph neural network model, which can predict the inhibitory activity of chemicals on DNA gyrase A subunit based only on the SMILES code of the chemicals.
[0101] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for predicting the inhibitory activity of a chemical on DNA gyrase A subunit, characterized in that: The following steps are involved: S1. Obtain chemical structures and inhibitory activity data of the chemicals on DNA gyrase A subunit, perform a structure cleaning operation on the chemical structures, and perform a scaling operation on the inhibitory activity data to construct a data set, and randomly divide the data set into a training set and a test set according to the proportion; S2. Construct a graph neural network model with chemical SMILES code as input, whose output is the predicted value of the inhibitory activity data scaling value of the chemical on DNA gyrase A subunit; the graph neural network model includes a molecular graph embedding layer, a molecular fragment graph embedding layer, multiple molecular graph neural network encoders, multiple molecular fragment graph neural network encoders, a dual-path combiner and a predictor, wherein the molecular graph neural network encoder and the molecular fragment graph neural network encoder are both composed of a neighborhood attention module, an information aggregation module, a gating mechanism update node feature module and a feature attention module, and the feature attention module includes a maximum pooling layer, a sum pooling layer, a multi-layer perceptron global pooling layer and an activation function; the dual-path combiner selects a graph convolution attention layer, and the graph convolution attention layer includes multiple attention heads and a ReLU activation function; the predictor includes Layer fully connected layer; The molecular graph embedding layer calculates the molecular graph of the chemical according to the chemical SMILES code by using RDKit to extract molecular graph features from the molecular graph; wherein the molecular graph features include The atomic feature matrix, the adjacency matrix of length b and The chemical bond characteristic matrix of is the number of atoms in the chemical, b is twice the number of chemical bonds in the chemical, is the number of atomic features, is the number of chemical bond features, and the adjacency matrix is used to represent the atomic numbers of the bonding atom pairs in the molecular graph; The molecular fragmentation graph embedding layer calculates the molecular graph of the chemical according to the chemical SMILES code using RDKit, and extracts molecular fragmentation features from the molecular graph based on the BRICS principle; wherein the molecular fragmentation features include The atomic feature matrix of length is The molecular fragment adjacency matrix, The chemical bond characteristic matrix and length of the molecular fragments are A list of molecular fragment indices, where It is twice the number of chemical bonds remaining after the molecule is broken into molecular fragments. The molecular fragment index list is used to indicate the index of the molecular fragment where each atom in the chemical is located; The various molecular graph features and molecular fragment features extracted from the molecular graph embedding layer and the molecular fragment graph embedding layer are first transformed into Then, each type of feature vector is input into the molecular graph neural network encoder and the molecular fragment graph neural network encoder respectively to obtain the molecular graph feature sequence and the molecular fragment feature sequence respectively, where The length of is the same as the size of the hidden layer; wherein, in the molecular graph neural network encoder and the molecular fragment graph neural network encoder, the molecular graph neural network encoder and the molecular fragment graph neural network encoder update the node features of the molecular graph and the molecular fragment graph through their respective neighborhood attention modules and information aggregation modules, and then update the node feature module through a gating mechanism to balance between retaining the original information and using new information. In the feature attention module, the global features of the molecular graph are extracted through the maximum pooling layer and the sum pooling layer, and the attention weights are generated by the multi-layer perceptron to perform weighted adjustment on the node features. Finally, the features of all nodes are aggregated into a global feature vector through the global pooling layer and the activation function, thereby obtaining the molecular graph feature sequence and the molecular fragment feature sequence. The molecular graph feature sequence and the molecular fragment feature sequence are input into the dual-path combiner, which uses the graph convolution attention layer to learn the relationship between the molecular graph feature sequence and the molecular fragment feature sequence. Each attention head independently calculates the attention weights of different molecular fragments, and performs nonlinear transformation through the ReLU activation function to obtain the molecule-molecular fragment interaction feature sequence; Then, the molecule-molecule fragment interaction feature sequence and the molecular graph feature sequence output by the molecular graph neural network encoder are spliced and input into the predictor. After the fully connected layer, the predicted value of the scaled value of the inhibitory activity data of the chemical on DNA gyrase A subunit is output; S3. Use cross-validation to determine the optimal hyperparameters of the graph neural network model, and train it using the training set to obtain the trained optimal graph neural network model, which is used as the inhibitory activity prediction model to predict the inhibitory activity data scaling value of chemicals on DNA gyrase A subunit; S4. Input the SMILES code of the chemical to be tested in the test set or the SMILES code of the chemical to be evaluated into the inhibitory activity prediction model to obtain the predicted value of the inhibitory activity data scaling value of the chemical on DNA gyrase A subunit.
2. The method for predicting the inhibitory activity of a chemical on DNA gyrase A subunit according to claim 1, wherein: The step S1 includes the following sub-steps: S1.
1. Obtain chemical structures and inhibitory activity data on the chemical against DNA gyrase A subunit from public databases or literature; the chemical structures are represented by the chemical SMILES code, and the inhibitory activity data are used to indicate the inhibitory activity of the chemical against DNA gyrase A subunit; S1.
2. Perform structure cleaning operations on chemical structures, specifically including: standardizing, removing solvents, charge correction, and deionizing chemical molecular structure cleaning operations on chemical SMILES codes to standardize and unify the form of chemical SMILES codes; wherein, these structure cleaning operations can perform molecular structure inspection to ensure that the structure of the molecule is chemically reasonable; correct drawing errors and standardize functional groups; hide hydrogen atoms; recalculate stereochemistry; remove covalently bonded impurities; ensure that the strongest acid group is ionized first; generate neutral molecules; standardize tautomers; and remove salts and covalently bound metals contained in the compound; S1.
3. performing a scaling operation on the numerical range of the inhibitory activity data of the chemical on the DNA gyrase A subunit by taking the negative logarithm of the original numerical value of the inhibitory activity data of the chemical on the DNA gyrase A subunit; S1.4, constructing a data set based on the chemical SMILES code after the structure cleaning operation in step S1.2 and the inhibitory activity data after the scaling operation in step S1.3; S1.
5. Randomly divide the dataset into training and test sets in proportion.
3. The method for predicting the inhibitory activity of a chemical on DNA gyrase A subunit according to claim 1, wherein: The step S3 includes the following sub-steps: S3.1、Preset multiple sets of different model hyperparameters as { lr , weight-decay , batchsize , dropout , depth , feature-dimension , n-slices , r },in lr is the learning rate, weight-decay is the weight decay parameter, batchsize is the number of samples selected for one training session, dropout is the random dropout regularization parameter, depth is the number of encoder layers, feature-dimension is the size of the hidden layer, n-slices is the number of slices, r is the attenuation rate, lr Used to control the progress of convergence to the local minimum, weight-decay and dropout To prevent the model from overfitting, depth 、 feature-dimension 、 n-slices and r Used to adjust the model complexity, batchsize The size of affects the degree and speed of model optimization; S3.
2. For each set of model hyperparameters, the graph neural network model is trained using the data in the training set. The graph neural network model corresponding to the set of model hyperparameters is evaluated according to statistical parameters through N-fold cross-validation to determine the optimal model hyperparameters. The trained graph neural network model corresponding to the optimal model hyperparameters is obtained and used as the inhibitory activity prediction model to predict the inhibitory activity data scaling value of chemicals on DNA gyrase A subunit.
4. The method for predicting the inhibitory activity of a chemical on DNA gyrase A subunit according to claim 3, wherein: The statistical parameter is one of the coefficient of determination, root mean square error, mean square error, and mean absolute error.
5. The method for predicting the inhibitory activity of a chemical on DNA gyrase A subunit according to claim 3, wherein: For each set of model hyperparameters, the graph neural network model is trained using the data in the training set. The graph neural network model corresponding to the set of model hyperparameters is evaluated based on statistical parameters through N-fold cross-validation to determine the optimal model hyperparameters, specifically including: S3.2.
1. The graph neural network model is trained based on a set of preset model hyperparameters using N-fold cross validation. The data in the training set is randomly divided into N subsets, and one of the subsets is used as the validation set each time. The graph neural network model is trained using the data from the validation set. During the training process, the statistical parameters are calculated based on the predicted values of the scaled values of the inhibitory activity data of the chemicals on the DNA gyrase A subunit output by the graph neural network model and the corresponding true values in the training set. The parameters of the graph neural network model are adjusted with the optimal statistical parameters as the optimization goal. The graph neural network model is then validated using the data from the validation set to calculate the corresponding statistical parameters. The above process is repeated N times to finally obtain N statistical parameters, and the average value of the N statistical parameters is calculated. S3.2.
2. Repeat step S3.2.1 to obtain the average statistical parameters corresponding to all groups of model hyperparameters, and select a group of model hyperparameters corresponding to the optimal statistical parameter average as the optimal model hyperparameters.
Citation Information
Patent Citations
Compounds and methods for treating bacterial infections
US8889671B2
QSAR method for rapidly predicting xanthine derivative inhibitory activity based on multiple linear regression
CN112151111A
Method for improving drug-target activity prediction precision by combining machine learning and conformation calculation
CN114708931A