Microorganism-drug association prediction method based on graph representation and sample learning
Through methods based on graph representation and sample learning, reliable negative samples are screened and coding models are constructed, which solves the tilt and overfitting problems of the microbial-drug association prediction model, and improves the prediction ability and result accuracy.
Patent Information
- Application Number
- CN202410891927.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Existing microbial-drug association prediction models are skewed and negative sample screening methods may lead to overfitting and other problems. The lack of effective negative sample screening methods leads to a decline in model prediction capabilities.
Using methods based on graph representation and sample learning, we screen reliable negative samples by constructing microbial-drug association bipartite graphs, matrix decomposition and guided clustering algorithms, and use graph convolutional networks and graph attention networks to build coding models, combined with biased Random forest classification model to improve the prediction ability of the model.
It effectively solves the problem of false negatives and overfitting, accurately screens reliable negative samples, improves the prediction ability of the model, corrects the deviation in prediction results caused by the lack of verified negative samples, and produces prediction results that are closer to the true correlation probability.
Smart Images

Figure CN118747327A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of bioinformation prediction technology, and in particular to a microorganism-drug association prediction method based on graph representation and sample learning. Background Art
[0002] Microorganisms are widely present in the human body and play a vital role in human health. Drugs are one of the best ways to regulate the homeostasis of human microorganisms.
[0003] Therefore, in-depth research on the relationship between microorganisms and drugs has important value and significance for new drug development and clinical drug use. However, traditional biological wet experiments require a lot of time, manpower and material resources, so the use of more economical and efficient computational methods has become an effective supplement or alternative method for microbial-drug association research.
[0004] There is no negative sample data in the existing microbe-drug association data set. This is because traditional biological wet experiments are time-consuming and laborious, resulting in the fact that most biological researchers do not have the ability or interest to exhaustively test and prove that there is no association between microbes and drugs. Therefore, the existing technology is to assume that the actual positive samples in the unlabeled samples are low and randomly sample a part of the unlabeled samples as negative samples, but it is obvious that this approach cannot avoid the false negative problem caused by negative sampling, which in turn causes the model's prediction ability to be biased. Therefore, while making full use of the existing verified positive samples, screening reliable negative samples has become a crucial step in the prediction of microbe-drug associations.
[0005] The lack of negative samples verified by wet experiments has always been a common problem faced by association prediction tasks in the field of bioinformatics. Although the existing technologies have established different models to complete the tasks when screening reliable negative samples and predicting association probabilities, the feature information used by the methods they proposed is still the same when screening reliable negative samples and predicting association probabilities, which may lead to problems such as overfitting, thereby affecting the model prediction performance. Summary of the invention
[0006] In view of the shortcomings of the prior art, the present invention provides a method for predicting microorganism-drug association based on graph representation and sample learning. The present invention can solve the problems that the existing microorganism-drug association prediction model has bias and the method of screening negative samples may cause overfitting.
[0007] The technical solution of the present invention is: a microorganism-drug association prediction method based on graph representation and sample learning, comprising the following steps:
[0008] S1), using the existing microbe-drug association dataset to construct a microbe-drug association bipartite graph;
[0009] S2), construct a pre-classification model based on matrix decomposition and guided clustering algorithm, and use the pre-classification model to screen reliable negative samples from the microorganism-drug association bipartite graph;
[0010] S3), constructing a microbe-drug heterogeneity map;
[0011] S4), establish an encoding model based on graph convolutional network and graph attention network;
[0012] S5) Use the microorganism-drug heterogeneous graph and reliable negative samples to construct training sets and test sets, use the training sets to train the encoding model based on the graph convolutional network and the graph attention network, and use the test sets to verify the training effect. After the encoding model is trained, obtain the representation of the final graph nodes of the training set and the test set;
[0013] S6) Establish a biased random forest classification model, use the graph node representation of the training set to fit the biased random forest classification model, input the graph node representation of the test set into the random forest classification model, and obtain the prediction score.
[0014] Preferably, in step S1), the existing microorganism-drug association dataset is derived from clinical reports or experimental verifications.
[0015] Preferably, in step S1), the microorganism-drug association bipartite graph is composed of nodes formed by all microorganisms and drugs in the existing microorganism-drug association data set, and edges are composed of all associated microorganism-drug relationship pairs in the existing microorganism-drug association data set.
[0016] Preferably, in step S2), screening reliable negative samples specifically includes the following steps:
[0017] S21), using a matrix decomposition method to decompose the adjacency matrix of the microorganism-drug association bipartite graph into a microorganism latent factor matrix and a drug latent factor matrix;
[0018] S22) Using the microbial latent factor matrix, drug latent factor matrix and the existing microbial-drug association data set, reliable negative samples are screened out through a random forest-based guided clustering algorithm.
[0019] Preferably, step S21) specifically includes the following steps:
[0020] S211), constructing a corresponding bipartite graph adjacency matrix according to the microorganism-drug association bipartite graph Where N d The number of drugs in the bipartite graph representing the microbe-drug association, N mRepresents the number of microorganisms in the microorganism-drug association bipartite graph. When there is a known association between node i and node j in the microorganism-drug association bipartite graph, the bipartite graph adjacency matrix Elements in is set to 1, otherwise 0;
[0021] S212), using weighted matrix decomposition method to decompose the bipartite graph adjacency matrix Decomposition into microbial latent factor matrix and the drug latent factor matrix Among them, K is the dimension size of the latent factor of each microorganism and drug;
[0022] S213), in the iterative process of the matrix decomposition method, the microbial latent factor matrix U and the drug latent factor matrix V are alternately updated using the alternating least squares method; that is, the microbial latent factor matrix update formula and the drug latent factor matrix update formula are alternately used, and when the loss function L(U,V) converges or reaches the maximum number of runs, the matrix decomposition operation is stopped to obtain the final microbial latent factor matrix U and the drug latent factor matrix V; wherein the microbial latent factor matrix update formula and the drug latent factor matrix update formula are respectively:
[0023]
[0024] The loss function L(U,V) used is:
[0025]
[0026] Where W ij is the weight of the node pair of microorganism i and drug j; when When W is equal to 1, ij is 1, otherwise it is 0.1; U i represents the i-th row of the microbial latent factor matrix U, representing the latent factor of microorganism i; V j represents the jth row of the drug latent factor matrix V, representing the latent factor of drug j; T is the transpose operation of the matrix; ||·|| F is the Frobenius norm; λ is the regularization parameter, and I is the identity matrix.
[0027] Preferably, step S22) specifically includes the following steps:
[0028] S221), construct latent factor features for each microbe-drug pair based on the microbial latent factor matrix, the drug latent factor matrix and the existing microbe-drug association data set in, Hidden factor U i Factor V jFormed through Hadamard product;
[0029] S222), randomly selecting samples of the same number as the positive samples from the unlabeled samples as possible negative samples;
[0030] S223), using the latent factor features of the training set to fit a new random forest model, and then using the current random forest model to predict the probability of the existence of association for the remaining unlabeled samples and record the probability value;
[0031] S224), looping through step S222) and step S223) multiple times, and after the last loop, using the random forest model of the last loop to predict the probability of all positive samples; and taking the lowest value as the threshold, calculating the average probability of the unlabeled samples with non-empty probability values in the records, and taking the unlabeled samples with an average probability value less than the threshold as candidate reliable negative samples, and randomly selecting samples with the same number as the positive samples from the candidate reliable negative samples as reliable negative samples.
[0032] Preferably, in step S222), the unlabeled samples refer to microorganism-drug pairs for which no verified association is found in the microorganism-drug association dataset.
[0033] Preferably, in step S222), the positive samples refer to verified microorganism-drug pairs collected in the microorganism-drug association data set.
[0034] Preferably, in step S223), the remaining unlabeled samples refer to all samples among all unlabeled samples except possible negative samples in the current training set.
[0035] Preferably, in step S3), constructing a microorganism-drug heterogeneity graph comprises the following steps:
[0036] S31), establishing similarity characteristics and second attribute characteristics of microorganisms;
[0037] S32), establishing similarity characteristics and second attribute characteristics of drugs;
[0038] S33), establishing a microorganism-drug similarity feature network based on the similarity features of microorganisms and drugs;
[0039] S34), establishing a microorganism-drug second attribute characteristic network based on the second attribute characteristics of the microorganism and the drug;
[0040] S35), synthesizing the microorganism-drug similarity feature network and the microorganism-drug second attribute feature network to obtain the microorganism-drug heterogeneous graph X, that is:
[0041] X=[X simility ,X secondary ];
[0042] In the formula, X simility , X secondary They are the microorganism-drug similarity feature network and the microorganism-drug second attribute feature network respectively.
[0043] Preferably, in step S31), the similarity feature of the microorganisms is calculated by the Kamneva tool to calculate the functional similarity S between microorganism i and microorganism j. m (m i ,m j ), after calculating the functional similarity between all microorganisms in the data set, the similarity feature matrix of microorganisms is obtained Among them, m i 、m j represent microorganism i and microorganism j, respectively, N m The number of microorganisms representing the bipartite graph of microorganism-drug associations.
[0044] Preferably, in step S31), the second attribute feature of the microorganism is the attribute feature of the microorganism gene sequence. First, the original gene sequence of the microorganism is one-hot encoded, then filled with zeros so that all sequences have the same length, and finally the second attribute feature of the microorganism is obtained using the principal component analysis method.
[0045] Preferably, in step S32), the similarity characteristics of the drugs include drug molecular structure similarity and drug Gaussian kernel similarity;
[0046] The drug molecular structure similarity is calculated by the SIMCOMP2 tool: the molecular structure similarity DS of drug i and drug j struct (d i ,d j ), after calculating the molecular structure similarity between all drugs in the data set, the molecular structure similarity feature matrix of the drugs is obtained Among them, d i ,d j are drug i and drug j respectively;
[0047] The drug Gaussian kernel similarity is calculated by the following formula:
[0048] DS gauss (d i ,d j )=exp(-μ|DIP(d i )-DIP(d j )| 2 );
[0049] Among them, the matrix DIP represents the drug-drug interaction spectrum, DIP (di ) represents the interaction between drug i and other drugs, μ′ is the original bandwidth, which is set to 1; μ represents the standardized kernel bandwidth; its calculation formula is:
[0050]
[0051] After calculating the Gaussian kernel similarity between all drugs in the data set, the Gaussian kernel similarity feature matrix of the drugs is obtained.
[0052] Finally, the drug similarity feature matrix obtains the drug similarity feature Obtained by the following formula:
[0053]
[0054] Preferably, in step S32), the second attribute characteristic of the drug is the drug-drug network topology attribute, which is calculated by a random walk with restart method, and the second attribute characteristic of the drug is obtained after convergence.
[0055] The random walk method with restart is defined as:
[0056]
[0057] Among them, θ represents the restart probability, T is the transition probability matrix, is the initial probability vector of node i, is the probability that node i transfers to other nodes at time t.
[0058] Preferably, in step S35), the expression of the microorganism-drug similarity feature network is:
[0059]
[0060] The expression of the microorganism-drug second attribute characteristic network is:
[0061]
[0062] Preferably, in step S4), establishing a coding model based on a graph convolutional network and a graph attention network comprises the following steps:
[0063] S41) Use the existing microorganism-drug association data set to construct a microorganism-drug association network and establish a symmetric adjacency matrix of the microorganism-drug association network
[0064] S42), establish a microorganism-drug feature matrix based on the microorganism-drug heterogeneity map:
[0065]
[0066] In the formula, Represents the feature vector of node i;
[0067] S43), establish a linear transformation layer, the formula is:
[0068] H=f θ (X);
[0069] f θ (X) = W 0 X;
[0070] Where X is the microorganism-drug feature matrix; is the latent variable matrix; s is the dimension of node embedding, W 0 is the first learnable weight parameter matrix; f θ (·) represents a linear conversion operation;
[0071] S44), establish a graph attention layer, in which the latent variable matrix H is first converted into a higher-level feature H′ through a linear mapping operation; then the attention score of the node is calculated using self-attention, and then the softmax function is used to normalize the attention coefficient; then the node features are updated;
[0072] Among them, the latent variable matrix H is:
[0073] The higher-level feature H′ is:
[0074] The attention score of the node e ij for:
[0075] in, is a learnable shared parameter, || represents the concatenation of two vectors; W attn ∈R s×s is the weight parameter; LeakyReLU represents the LeakyReLU activation function;
[0076] The attention coefficient is:
[0077] in, is the first-order neighborhood of node i, e ij is the attention score of nodes i and j;
[0078] The formula for updating node features is:
[0079] in, is the first-order neighborhood of node i, W 1 is the second learnable weight parameter matrix;
[0080] S45) Establish an information propagation layer, obtain node embedding through Laplace propagation, and the encoding formula of the entire encoding model is:
[0081]
[0082] The encoding model uses the inner product decoding node embedding to reconstruct the graph:
[0083]
[0084] Where Z is the node embedding obtained by the encoding model, D is the degree matrix, LeakyReLU represents the LeakyReLU activation function, T is the probability matrix, and W 0 is the first learnable weight parameter matrix, W 1 is the second learnable weight parameter matrix; To reconstruct the adjacency matrix, is the sigmoid activation function, The calculation formula is:
[0085]
[0086] In the formula, I is the unit matrix, A is the symmetric adjacency matrix, and its calculation formula is:
[0087]
[0088] Preferably, in step S5), the binary cross entropy of the input image and the reconstructed image is used as the loss function
[0089]
[0090] Among them, y and is the value of the adjacency matrix of the same sample in the input graph and the reconstructed graph; N d Represents the number of drug nodes in the bipartite graph of microbe-drug association, N m The number of microbial nodes representing the bipartite graph of microbial-drug associations;
[0091] In the framework of k-fold cross-validation, both positive samples and reliable negative samples are randomly divided into k subsets of equal size. One subset is taken from each of the positive samples and reliable negative samples and merged into a test set. The remaining k-1 subsets of positive samples and reliable negative samples are merged into a training set.
[0092] Use the training set to train the encoding model. After each training, use the validation set to test the training effect. When the loss function converges, stop training. Input the training set and the test set together into the trained encoding model to obtain the final graph node representation.
[0093] Preferably, in step S6), 10% of the positive samples in the training set are divided out as a retention set, and the remaining samples in the training set are used as a new training set;
[0094] Fit the random forest classification model with the new training set, then use the fitted random forest classification model to predict the retained set, and calculate the average of the predicted probabilities of the retained set;
[0095] The fitted random forest classification model is used to predict the test set, and the predicted probability of the test set is divided by the average of the predicted probability of the retained set to obtain the existence association probability score of the test set.
[0096] The beneficial effects of the present invention are:
[0097] 1. The present invention can solve the problems of false negatives in the existing microorganism-drug association prediction model and the possibility of overfitting in the method of screening negative samples;
[0098] 2. The present invention can accurately screen reliable negative samples from unlabeled samples, avoiding the problem of using false negative unlabeled samples to cause deviation in the prediction model;
[0099] 3. The present invention can fully learn the characteristics of input samples and form node embeddings with richer information, thereby improving the prediction ability of the model;
[0100] 4. The present invention can correct the prediction result bias problem caused by the lack of verified negative samples, thereby generating a true probability that is closer to the existence of an association. BRIEF DESCRIPTION OF THE DRAWINGS
[0101] Figure 1 It is a schematic diagram of the process of the present invention;
[0102] Figure 2 A flowchart of screening reliable negative samples based on the pre-classification model of the present invention based on matrix decomposition and guided clustering algorithm;
[0103] Figure 3 A flowchart for constructing a microorganism-drug heterogeneity graph of the present invention;
[0104] Figure 4 This is a flowchart for constructing the encoding model based on graph convolutional network and graph attention network of the present invention. DETAILED DESCRIPTION
[0105] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings:
[0106] Example 1
[0107] like Figure 1 As shown, this embodiment provides a microorganism-drug association prediction method based on graph representation and sample learning, comprising the following steps:
[0108] S1), using the existing microbe-drug association dataset to construct a microbe-drug association bipartite graph;
[0109] In this embodiment, the existing microorganism-drug association data set is derived from clinical reports or experimental verification. The microorganism-drug association bipartite graph is composed of all microorganisms and drugs in the existing microorganism-drug association data set as nodes, and all associated microorganism-drug relationship pairs in the existing microorganism-drug association data set as edges.
[0110] S2), construct a pre-classification model based on matrix decomposition and guided clustering algorithm, and use the pre-classification model to screen reliable negative samples from the microorganism-drug association bipartite graph;
[0111] like Figure 2 As shown in Figure 1, screening reliable negative samples specifically includes the following steps:
[0112] S21), using a matrix decomposition method to decompose the adjacency matrix of the microorganism-drug association bipartite graph into a microorganism latent factor matrix and a drug latent factor matrix;
[0113] S22) Using the microbial latent factor matrix, drug latent factor matrix and the existing microbial-drug association data set, reliable negative samples are screened out through a random forest-based guided clustering algorithm.
[0114] As a preferred embodiment of this invention, step S21) specifically includes the following steps:
[0115] S211), constructing a corresponding bipartite graph adjacency matrix according to the microorganism-drug association bipartite graph Among them, N d Represents the number of drug nodes in the bipartite graph of microbe-drug association, N m Represents the number of microbial nodes in the microbial-drug association bipartite graph. When there is a known association between node i and node j in the microbial-drug association bipartite graph, the adjacency matrix of the bipartite graph Elements in is set to 1, otherwise 0; the bipartite graph adjacency matrix The expression is:
[0116] S212), using weighted matrix decomposition method to decompose the bipartite graph adjacency matrix Decomposition into microbial latent factor matrix and the drug latent factor matrix Among them, K is the dimension size of the latent factor of each microorganism and drug;
[0117] S213), in the iterative process of the matrix decomposition method, the microbial latent factor matrix U and the drug latent factor matrix V are alternately updated using the alternating least squares method; that is, the microbial latent factor matrix update formula and the drug latent factor matrix update formula are alternately used, and when the loss function L(U,V) converges or reaches the maximum number of runs, the matrix decomposition operation is stopped to obtain the final microbial latent factor matrix U and the drug latent factor matrix V; wherein the microbial latent factor matrix update formula and the drug latent factor matrix update formula are respectively:
[0118]
[0119]
[0120] The loss function L(U,V) used is:
[0121]
[0122] Where W ij is the weight of the node pair of microorganism i and drug j; when When W is equal to 1, ij is 1, otherwise it is 0.1; U i represents the i-th row of the microbial latent factor matrix U, representing the latent factor of microorganism i; V j represents the jth row of the drug latent factor matrix V, representing the latent factor of drug j; T is the transpose operation of the matrix; ||·|| F is the Frobenius norm; λ is the regularization parameter, and I is the identity matrix.
[0123] As a preferred embodiment of this invention, step S22) specifically includes the following steps:
[0124] S221), construct latent factor features for each microbe-drug pair based on the microbial latent factor matrix, the drug latent factor matrix and the existing microbe-drug association data set in, Hidden factor U i Factor V j Formed through Hadamard product;
[0125] S222), randomly selecting samples equal to the positive samples from the unlabeled samples as possible negative samples. The unlabeled samples refer to microorganism-drug pairs for which no verified association is found in the microorganism-drug association dataset. The positive samples refer to verified microorganism-drug pairs collected in the microorganism-drug association dataset.
[0126] S223), using the latent factor features of the training set to fit a new random forest model, and then using the current random forest model to predict the probability of the existence of the association of the remaining unlabeled samples and record the probability value. The remaining unlabeled samples refer to all samples in all unlabeled samples except the possible negative samples in the current training set.
[0127] S224), looping step S222) and step S223) 10 times, and after the last loop, using the random forest model of the last loop to predict the probability of all positive samples; and taking the lowest value as the threshold, calculating the average probability of the unlabeled samples with non-empty probability values in the records, and taking the unlabeled samples with average probability values less than the threshold as candidate reliable negative samples, and randomly selecting samples with the same number as the positive samples from the candidate reliable negative samples as reliable negative samples.
[0128] S3), constructing a microbe-drug heterogeneity map;
[0129] like Figure 3 As shown in Figure 1, constructing a microbial-drug heterogeneity graph includes the following steps:
[0130] S31), establishing a similarity feature and a second attribute feature of the microorganism; wherein the similarity feature of the microorganism is calculated by the Kamneva tool to calculate the functional similarity S between microorganism i and microorganism j m (m i ,m j ), after calculating the functional similarity between all microorganisms in the data set, the similarity feature matrix of microorganisms is obtained Among them, m i 、m j represent microorganism i and microorganism j, respectively, N m The number of microorganisms representing the bipartite graph of microorganism-drug associations.
[0131] The second attribute feature of the microorganism is the attribute feature of the microorganism gene sequence. First, the original gene sequence of the microorganism is one-hot encoded, then filled with zeros to make all sequences of equal length, and finally the principal component analysis method is used to obtain the second attribute feature of the microorganism.
[0132] S32), establishing similarity characteristics and second attribute characteristics of drugs;
[0133] Wherein, the similarity characteristics of the drugs include drug molecular structure similarity and drug Gaussian kernel similarity.
[0134] The drug molecular structure similarity is calculated by the SIMCOMP2 tool: the molecular structure similarity DS of drug i and drug j struct (d i ,d j ), after calculating the molecular structure similarity between all drugs in the data set, the molecular structure similarity feature matrix of the drugs is obtained Among them, d i ,d j are drug i and drug j respectively;
[0135] The drug Gaussian kernel similarity is calculated by the following formula:
[0136] DS gauss (d i ,d j )=exp(―μ|DIP(d i )―DIP(d j )| 2 );
[0137] Among them, the matrix DIP represents the drug-drug interaction spectrum, DIP (d i ) represents the interaction between drug i and other drugs, μ′ is the original bandwidth, which is set to 1; μ represents the standardized kernel bandwidth; its calculation formula is:
[0138]
[0139] After calculating the Gaussian kernel similarity between all drugs in the data set, the Gaussian kernel similarity feature matrix of the drugs is obtained.
[0140] Finally, the drug similarity feature matrix obtains the drug similarity feature Obtained by the following formula:
[0141]
[0142] The second attribute characteristic of the drug is the drug-drug network topological attribute, which is calculated by the random walk method with restart, and the second attribute characteristic of the drug is obtained after convergence
[0143] The random walk method with restart is defined as:
[0144]
[0145] Among them, θ represents the restart probability, T is the transition probability matrix, is the initial probability vector of node i, is the probability that node i transfers to other nodes at time t.
[0146] S33), establishing a microorganism-drug similarity feature network based on the similarity features of microorganisms and drugs,
[0147]
[0148] S34), establishing a microorganism-drug second attribute characteristic network based on the second attribute characteristics of the microorganism and the drug;
[0149]
[0150] S35), synthesizing the microorganism-drug similarity feature network and the microorganism-drug second attribute feature network to obtain a microorganism-drug heterogeneous graph X, that is:
[0151] X=[X simility ,X secondary ];
[0152] In the formula, X simility , X secondary They are the microorganism-drug similarity feature network and the microorganism-drug second attribute feature network respectively.
[0153] S4), establish an encoding model based on graph convolutional network and graph attention network; Figure 4 As shown, the specific steps include:
[0154] S41) Use the existing microorganism-drug association data set to construct a microorganism-drug association network and establish a symmetric adjacency matrix of the microorganism-drug association network
[0155] S42), establish a microorganism-drug feature matrix based on the microorganism-drug heterogeneity map:
[0156]
[0157] In the formula, Represents the feature vector of node i;
[0158] S43), establish a linear transformation layer, the formula is:
[0159] H=f θ (X);
[0160] f θ (X) = W 0 X;
[0161] Where X is the microorganism-drug feature matrix; is the latent variable matrix; s is the dimension of node embedding, W 0 is the first learnable weight parameter matrix; f θ (·) represents a linear conversion operation;
[0162] S44), establish a graph attention layer, in which the latent variable matrix H is first converted into a higher-level feature H′ through a linear mapping operation; then the attention score of the node is calculated using self-attention, and then the softmax function is used to normalize the attention coefficient; then the node features are updated;
[0163] Among them, the latent variable matrix H is:
[0164] The higher-level feature H′ is:
[0165] The attention score of the node e ij for:
[0166] in, is a learnable shared parameter, || represents the concatenation of two vectors; W attn ∈R s×s is the weight parameter; LeakyReLU represents the LeakyReLU activation function;
[0167] The attention coefficient is:
[0168] in, is the first-order neighborhood of node i, e ij is the attention score of nodes i and j;
[0169] The formula for updating node features is:
[0170] in, is the first-order neighborhood of node i, W 1 is the second learnable weight parameter matrix;
[0171] S45) Establish an information propagation layer, obtain node embedding through Laplace propagation, and the encoding formula of the entire encoding model is:
[0172]
[0173] The encoding model uses the inner product decoding node embedding to reconstruct the graph:
[0174]
[0175] Where Z is the node embedding obtained by the encoding model, LeakyReLU represents the LeakyReLU activation function, T is the probability matrix, and W 0 is the first learnable weight parameter matrix, W 1 is the second learnable weight parameter matrix; To reconstruct the adjacency matrix, is the sigmoid activation function, The calculation formula is:
[0176]
[0177] In the formula, I is the unit matrix, A is the symmetric adjacency matrix, and its calculation formula is:
[0178]
[0179] S5) Use the microorganism-drug heterogeneous graph and reliable negative samples to construct training sets and test sets, use the training sets to train the encoding model based on the graph convolutional network and the graph attention network, and use the test sets to verify the training effect. After the encoding model is trained, obtain the representation of the final graph nodes of the training set and the test set;
[0180] This example uses the binary cross entropy of the input image and the reconstructed image as the loss function
[0181]
[0182] Among them, y and is the value of the adjacency matrix of the same sample in the input graph and the reconstructed graph; N d Represents the number of drug nodes in the bipartite graph of microbe-drug association, N m The number of microbial nodes representing the bipartite graph of microbial-drug associations;
[0183] In the framework of k-fold cross-validation, both positive samples and reliable negative samples are randomly divided into k subsets of equal size. One subset is taken from each of the positive samples and reliable negative samples and merged into a test set. The remaining k-1 subsets of positive samples and reliable negative samples are merged into a training set.
[0184] Use the training set to train the encoding model. After each training, use the validation set to test the training effect. When the loss function converges, stop training. Input the training set and the test set together into the trained encoding model to obtain the final graph node representation.
[0185] S6) Establish a biased random forest classification model, use the graph node representation of the training set to fit the biased random forest classification model, input the graph node representation of the test set into the random forest classification model, and obtain the prediction score.
[0186] As a preferred embodiment of this embodiment, in step S6), 10% of the positive samples in the training set are divided out as a retention set, and the remaining samples in the training set are used as a new training set;
[0187] Fit the random forest classification model with the new training set, then use the fitted random forest classification model to predict the retained set, and calculate the average of the predicted probabilities of the retained set;
[0188] The fitted random forest classification model is used to predict the test set, and the predicted probability of the test set is divided by the average of the predicted probability of the retained set to obtain the existence association probability score of the test set.
[0189] Example 2
[0190] This example evaluates the method of Example 1. The data sets used in this example are three open source microorganism-drug association data sets, MDAD, aBiofilm, and DrugVirus. The data contained in the three microorganism-drug association data sets are shown in Table 1.
[0191] Table 1 Data of MDAD, aBiofilm and DrugVirus datasets
[0192] Dataset Number of microbial species Number of drug types Number of positive samples Number of unlabeled samples MDAD 173 1373 2470 235059 aBiofilm 140 1720 2884 240800 DrugVirus 95 175 933 15692
[0193] In this embodiment, microorganism-drug association prediction is performed on three microorganism-drug association data sets, namely MDAD, aBiofilm and DrugVirus, and the performance of the present invention is evaluated based on the prediction results. This embodiment uses five evaluation indicators, which are: area under the receiver operating characteristic curve (AUC), area under the accuracy-recall curve (AUPR), accuracy (ACC), Matthews correlation coefficient (MCC) and F1 score (F1),
[0194] The area under the receiver operating characteristic curve (AUC) was calculated as follows:
[0195]
[0196] Among them, TP is the true positive rate, which indicates the number of samples predicted as positive samples when they are actually negative samples; FN is the false negative rate, which indicates the number of samples predicted as negative samples when they are actually positive samples; FP is the false positive rate, which indicates the number of samples predicted as positive samples when they are actually negative samples; TN is the true negative rate, which indicates the number of samples predicted as negative samples when they are actually negative samples.
[0197] The area under the precision-recall curve (AUPR) is calculated as:
[0198]
[0199] The calculation formula of accuracy (ACC) is:
[0200]
[0201] The calculation formula of Matthews correlation coefficient (MCC) is:
[0202]
[0203] The calculation formula of F1 score (F1) is:
[0204]
[0205] This embodiment is also compared with five representative benchmark models, wherein the five benchmark models are GCNMDA, Graph2MDA, OGNNMDA, MKGCN and SCSMDA, and the results are shown in Tables 2, 3 and 4.
[0206] Table 2 Performance evaluation results of the method in Example 1 and five benchmark models on the MDAD dataset
[0207] GCNMDA Graph2MDA OGNNMDA MKGCN SCSMDA Example 1 AUC 0.943451044 0.719076736 0.95886754 0.9937633 0.96138 0.998961301 AUPR 0.810784447 0.56823266 0.961379897 0.966080717 0.95316 0.998854676 ACC 0.875789474 0.991527784 0.904048574 0.993108207 0.88826 0.983238866 F1 0.738680363 0.511646798 0.904747009 0.750120444 0.858 0.983232001 MCC 0.674458861 0.53243853 0.808712494 0.768561533 0.73502 0.966527032
[0208] Table 3 Performance evaluation results of Example 1 and five benchmark models on the aBiofilm dataset
[0209] GCNMDA Graph2MDA OGNNMDA MKGCN SCSMDA Example 1 AUC 0.953862815 0.785083946 0.965331535 0.995560935 0.9651 0.998955915 AUPR 0.837489605 0.498576587 0.965691664 0.983261963 0.95374 0.998779559 ACC 0.874810665 0.99336794 0.913499773 0.993783156 0.88694 0.983391404 F1-score 0.74618088 0.684780289 0.914004695 0.799919054 0.84816 0.983421382 MCC 0.688500416 0.698656743 0.828134489 0.813707757 0.7216 0.966839443
[0210] Table 4 Performance evaluation results of Example 1 and five benchmark models on the DrugVirus dataset
[0211] GCNMDA Graph2MDA OGNNMDA MKGCN SCSMDA Example 1 AUC 0.8948547 0.628243783 0.888179366 0.977085378 0.88086 0.917283247 AUPR 0.707961076 0.340692304 0.887274463 0.840487462 0.86726 0.908112018 ACC 0.822290205 0.917473684 0.821582186 0.926435015 0.79954 0.829680869 F1 0.652636492 0.302917817 0.828921795 0.591813166 0.80178 0.840401901 MCC 0.565103352 0.269893393 0.647018111 0.608779392 0.61622 0.666335596
[0212] As shown in Tables 2, 3 and 4, the microorganism-drug association prediction method based on graph representation learning and positive sample unlabeled sample learning proposed in Example 1 of the present invention reaches the maximum value of the five evaluation indicators on the MDAD and aBiofilm datasets. On the Drug Virus dataset, the microorganism-drug association prediction method based on graph representation learning and positive sample unlabeled sample learning proposed in Example 1 of the present invention reaches the maximum value of the three evaluation indicators of AUPR, F1 and MCC, which are 0.908112018, 0.840401901 and 0.666335596 respectively. MKGCN and Graph2MDA respectively achieve the maximum values of AUC and ACC evaluation indicators. This is because the prediction results of these two models on the Drug Virus dataset are biased, but on the whole, the overall performance of the present invention is the best.
[0213] Example 3
[0214] In this embodiment, the module for screening reliable negative samples in Embodiment 1 is transferred to other models for testing, and the model performance is compared between the reliable negative samples obtained by screening and the negative samples randomly selected from the unlabeled samples.
[0215] The pre-classification model based on matrix decomposition and guided clustering algorithm provided in Example 1 is migrated to three advanced models to replace the step of randomly selecting negative samples in the original model implementation. The advanced models include: MDASAE, MKGCN and OGNNMDA. In this embodiment, only the step of randomly selecting unlabeled samples as negative samples in the model implementation is changed to the pre-classification model based on matrix decomposition and guided clustering algorithm. The remaining model implementations and executions are executed according to the steps in the model for the open source code. It should be noted that: in this embodiment, the advanced model is changed before and after combining with the pre-classification model based on matrix decomposition and guided clustering algorithm provided by the present invention, and the model structure of the model realizing learning function and prediction function is changed. The only change is that the negative samples of the input model are changed from randomly selected unlabeled samples to reliable negative samples screened by the pre-classification model based on matrix decomposition and guided clustering algorithm provided by the present invention.
[0216] In this embodiment, the MDAD data set is used as an example to carry out experiments under the framework of 5-fold cross validation. The verification results are shown in Table 5. After using the pre-classification model based on matrix decomposition and guided clustering algorithm provided by the present invention, the five evaluation indicators of MDASAE and OGNNMDA models are improved. The MKGCN model has prompts in the four evaluation indicators of AUC, AUPR, F1 and MCC, with improvements of 0.0557%, 3.0963%, 31.3972% and 26.4699% respectively, and the ACC indicator has decreased by 0.733%. This is because the MKGCN model will produce false negative samples in the original model implementation, which leads to a tilt in the model prediction results. After using the pre-classification model based on matrix decomposition and guided clustering algorithm provided by the present invention, the input samples are corrected, so that the overall performance of the model is better.
[0217] Table 5 Performance evaluation results of three advanced models on the MDAD dataset using the module for screening reliable negative samples in Example 1 and using random negative sampling
[0218]
[0219] The above embodiments and descriptions are only for illustrating the principles and best embodiments of the present invention. Without departing from the spirit and scope of the present invention, the present invention may be subject to various changes and improvements, all of which fall within the scope of the present invention to be protected.
Claims
1. A microbial-drug association prediction method based on graph representation and sample learning, characterized in that: The steps include: Step 1: Construct a pre-classification model based on matrix decomposition and guided clustering algorithm, and use the pre-classification model to screen reliable negative samples from the microorganism-drug association bipartite graph; Step 2: Use the microbial-drug heterogeneous graph and reliable negative samples to construct training sets and test sets, use the training sets to train the encoding model based on the graph convolutional network and the graph attention network, and use the trained encoding model to obtain the representation of the final graph nodes of the training set and the test set; Step 3: Establish a biased random forest classification model, fit the biased random forest classification model with the graph node representation of the training set, input the graph node representation of the test set into the random forest classification model, and obtain the prediction score.
2. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 1, characterized in that: Screening reliable negative samples specifically includes the following steps: S21), using a matrix decomposition method to decompose the adjacency matrix of the microorganism-drug association bipartite graph into a microorganism latent factor matrix and a drug latent factor matrix; S22) Using the microbial latent factor matrix, drug latent factor matrix and the existing microbial-drug association data set, reliable negative samples are screened out through a random forest-based guided clustering algorithm.
3. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 2, characterized in that: Step S21) specifically includes the following steps: S211), constructing a corresponding bipartite graph adjacency matrix A according to the microorganism-drug association bipartite graph; S212), using a weighted matrix decomposition method to decompose the bipartite graph adjacency matrix A into a microorganism latent factor matrix and a drug latent factor matrix; S213), during the iteration process of the matrix decomposition method, the microbial latent factor matrix and the drug latent factor matrix are alternately updated using the alternating least squares method; when the loss function L(U, V) converges or reaches the maximum number of runs, the matrix decomposition operation is stopped to obtain the final microbial latent factor matrix and the drug latent factor matrix.
4. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 3, characterized in that: Step S22) specifically includes the following steps: S221), constructing latent factor features for each microorganism-drug pair based on the microbial latent factor matrix, the drug latent factor matrix and the existing microorganism-drug association data set; S222), randomly selecting samples of the same number as the positive samples from the unlabeled samples as possible negative samples; S223), using the latent factor features of the training set to fit a new random forest model, and then using the current random forest model to predict the probability of the existence of association for the remaining unlabeled samples and record the probability value; S224), looping through step S222) and step S223) multiple times, and after the last loop, using the random forest model of the last loop to predict the probability of all positive samples; and taking the lowest value as the threshold, calculating the average probability of the unlabeled samples with non-empty probability values in the records, and taking the unlabeled samples with an average probability value less than the threshold as candidate reliable negative samples, and randomly selecting samples with the same number as the positive samples from the candidate reliable negative samples as reliable negative samples.
5. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 3, characterized in that: The microorganism-drug association bipartite graph is composed of all microorganisms and drugs in the existing microorganism-drug association data set as nodes, and all associated microorganism-drug relationship pairs in the existing microorganism-drug association data set as edges.
6. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 1, characterized in that: The construction of the microorganism-drug heterogeneity graph comprises the following steps: S31), establishing similarity characteristics and second attribute characteristics of microorganisms; S32), establishing similarity characteristics and second attribute characteristics of drugs; S33), establishing a microorganism-drug similarity feature network based on the similarity features of microorganisms and drugs; S34), establishing a microorganism-drug second attribute characteristic network based on the second attribute characteristics of the microorganism and the drug; S35), synthesizing the microorganism-drug similarity feature network and the microorganism-drug second attribute feature network to obtain a microorganism-drug heterogeneous graph X, that is: X=[X simility ,X secondary ]; Where, X simility , X secondary They are the microorganism-drug similarity feature network and the microorganism-drug second attribute feature network respectively.
7. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 6, characterized in that: In step S31), the similarity characteristics of the microorganisms are calculated by the Kamneva tool to calculate the functional similarity S between microorganism i and microorganism j. m (m i , m j ), after calculating the functional similarity between all microorganisms in the data set, the similarity feature matrix of microorganisms is obtained Among them, m i 、m j represent microorganism i and microorganism j, respectively, N m The number of microorganisms representing the bipartite graph of microorganism-drug association; The second attribute feature of the microorganism is the attribute feature of the microorganism gene sequence. First, the original gene sequence of the microorganism is one-hot encoded, then filled with zeros to make all sequences of equal length, and finally the principal component analysis method is used to obtain the second attribute feature of the microorganism. In step S32), the similarity characteristics of the drugs include drug molecular structure similarity and drug Gaussian kernel similarity; The drug molecular structure similarity is calculated by the SIMCOMP2 tool: the molecular structure similarity DS of drug i and drug j struct (d i , d j ), after calculating the molecular structure similarity between all drugs in the data set, the molecular structure similarity feature matrix of the drugs is obtained Among them, d i ,d j are drug i and drug j respectively; The drug Gaussian kernel similarity is calculated by the following formula: DS gauss (d i ,d j )=exp(-μ|DIP(d i )-DIP(d j )| 2 ) Among them, the matrix DIP represents the drug-drug interaction spectrum, DIP (d i ) represents the interaction between drug i and other drugs, μ′ is the original bandwidth, which is set to 1; μ represents the standardized kernel bandwidth; its calculation formula is: After calculating the Gaussian kernel similarity between all drugs in the data set, the Gaussian kernel similarity feature matrix of the drugs is obtained. Finally, the drug similarity feature matrix obtains the drug similarity feature Obtained by the following formula: The second attribute characteristic of the drug is the drug-drug network topological attribute, which is calculated by the random walk method with restart, and the second attribute characteristic of the drug is obtained after convergence The random walk method with restart is defined as: Among them, θ represents the restart probability, T is the transition probability matrix, is the initial probability vector of node i, is the probability that node i transfers to other nodes at time t.
8. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 1, characterized in that: The establishment of the encoding model based on graph convolutional network and graph attention network includes the following steps: S41) Use the existing microorganism-drug association data set to construct a microorganism-drug association network and establish a symmetric adjacency matrix of the microorganism-drug association network S42), establish a microorganism-drug feature matrix based on the microorganism-drug heterogeneity map: In the formula, Represents the feature vector of node i; S43), establish a linear transformation layer, the formula is: H=f θ (X); f θ (X)=W 0 X; Where X is the microorganism-drug feature matrix; is the latent variable matrix; s is the dimension of node embedding, W 0 is the first learnable weight parameter matrix; f θ (·) represents a linear conversion operation; S44), establish a graph attention layer, in which the latent variable matrix H is first converted into a higher-level feature H′ through a linear mapping operation; then the attention score of the node is calculated using self-attention, and then the softtmax function is used to normalize the attention coefficient; then the node features are updated; S45) Establish an information propagation layer, obtain node embedding through Laplace propagation, and the encoding formula of the entire encoding model is: The encoding model uses the inner product decoding node embedding to reconstruct the graph: Where Z is the node embedding obtained by the encoding model, The calculation formula is I is the identity matrix, A is the symmetric adjacency matrix; LeakyReLU represents the LeakyReLU activation function, T is the probability matrix, W 0 is the first learnable weight parameter matrix, W 1 is the second learnable weight parameter matrix; To reconstruct the adjacency matrix, is the sigmoid activation function.
9. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 1, characterized in that: Use the binary cross entropy of the input image and the reconstructed image as the loss function Among them, y and is the value of the adjacency matrix of the same sample in the input graph and the reconstructed graph; N d The number of drugs in the bipartite graph representing the microbe-drug association, N m The number of microorganisms representing the bipartite graph of microorganism-drug association; In the framework of k-fold cross-validation, both positive samples and reliable negative samples are randomly divided into k subsets of equal size. One subset is taken from each of the positive samples and reliable negative samples and merged into a test set. The remaining k-1 subsets of positive samples and reliable negative samples are merged into a training set. Use the training set to train the encoding model. Use the validation set to test the training effect after each training. Stop training when the loss function converges. Input the training set and the test set into the trained encoding model to obtain the final graph node representation.
10. The method for predicting microbial-drug association based on graph representation and sample learning according to claim 1, characterized in that: In the biased random forest classification model, 10% of the positive samples in the training set are divided out as the retention set, and the remaining samples in the training set are used as the new training set; Fit the random forest classification model with the new training set, then use the fitted random forest classification model to predict the retained set, and calculate the average of the predicted probabilities of the retained set; The fitted random forest classification model is used to predict the test set, and the predicted probability of the test set is divided by the average of the predicted probability of the retained set to obtain the existence association probability score of the test set.
Citation Information
Patent Citations
Microorganism-drug association prediction method based on normalized graph neural network
CN115148303A
Microorganism and drug relation prediction method based on multiple association diagrams
CN115346688A
Microorganism-drug association prediction method based on regularized variational graph neural network
CN115472304A
Drug repurposing system and method based on heterogeneous association network deep learning
WO2023077854A1
Graph network data set processing method and apparatus, electronic device, program, and medium
WO2024045989A1
