A knowledge graph-driven drug recommendation method for neurodegenerative diseases
Through technologies such as BERT+CRF and TF-IDF, combined with DistMult+GNN, the knowledge graph is reconstructed to solve the problem of poor drug recommendation for neurodegenerative diseases in traditional methods, achieve more accurate drug recommendation and information integration, and enhance Information entropy and mutual information measures of knowledge graphs.
Patent Information
- Application Number
- CN202411066784.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-06
AI Technical Summary
The existing drug recommendation methods for neurodegenerative diseases based on traditional deep learning methods are not effective, and the knowledge graph in the biomedical field treats pathways as entity concepts, which cannot effectively obtain the connections between different targets and ignore potential drugs.
BERT+CRF is used for named entity recognition and relationship extraction, TF-IDF is used for concept normalization and entity disambiguation, the knowledge graph is reconstructed through DistMult+GNN, the graph is defined with pathways as the core, and the quality and potential of the graph are evaluated using information theory methods. amount of information.
Reconstructing disease pathways in a chain manner, integrating rich information, improving the information entropy and mutual information measurement of the knowledge graph, discovering potential drugs, and enhancing the accuracy and effectiveness of drug recommendations.
Smart Images

Figure CN118588233B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the fields of medicine and computer technology, and in particular relates to a knowledge graph-driven method for recommending drugs for neurodegenerative diseases. Background Art
[0002] Recently, it has been discovered that combining drug and protein data to define diseases in a more detailed manner can better understand individual disease phenotypes and reveal candidate markers for prognosis or treatment. Network and graph methods have become natural tools for representing connected data and are being incorporated into biology. Knowledge graphs (KGs) are often used in drug discovery due to their advantage of containing distinct entity relationships. Neurodegenerative diseases, a group of chronic, progressive central nervous system diseases with unknown causes that sometimes involve the peripheral nervous system, do not yet have a targeted knowledge graph, and some attempts to recommend drugs based on traditional deep learning methods have been ineffective.
[0003] Drug recommendation based on knowledge graphs requires enhancing the knowledge graph with information about drug targets and pathways. A pathway is essentially a summary and abstraction of the sequential actions of a series of targets that lead to a disease. Therefore, it can be expanded upon the concept of pathways in the graph. Exploration of knowledge graph enhancement began with embedding-based and pathway-based approaches. Specifically, some studies have incorporated transformation-based knowledge graph embedding methods (such as TransR) into graph embedding to enrich user and item modeling. Other approaches focus on extracting semantically meaningful meta-paths from knowledge graphs and performing complex user and item modeling along these meta-paths. To unify embedding-based and path-based approaches in a mutually beneficial way, recent results have employed powerful graph neural networks (GNNs) to capture multi-hop high-level information through propagation and aggregation across knowledge graphs. However, these biomedical knowledge graphs treat pathways as single entity concepts, which differs significantly from the real world. This makes it difficult to capture connections between different targets within the same disease for drug recommendation tasks, thereby overlooking many potential drugs. Summary of the Invention
[0004] The present invention proposes a knowledge graph-driven neurodegenerative disease drug recommendation method to solve the above problems.
[0005] The technical solution of the present invention is achieved as follows:
[0006] A knowledge graph-driven neurodegenerative disease drug recommendation method includes the following steps:
[0007] S1. Data preparation: The data sources used are divided into two categories, namely unstructured scientific publications and structured medical knowledge databases;
[0008] S2, using BERT+CRF for named entity recognition;
[0009] S3. Use BERT+Biaffine for relation extraction;
[0010] S4, use TF-IDF for concept normalization and entity disambiguation;
[0011] S5. Graph definition with pathway as the core:
[0012] S6. Use DistMult+GNN to reconstruct knowledge structure:
[0013] S7, use MRR and HITS@k to evaluate the accuracy of the graph;
[0014] S8. Use Shannon entropy, joint entropy, and mutual information to evaluate potential information content.
[0015] Optionally, the specific steps for using BERT+CRF for named entity recognition in step S2 are as follows:
[0016] S21. Fine-tune the model on two common datasets of BioNER, NCBI-Disease and BC2GM, as well as a manually annotated dataset from PubMed; the NCBI disease corpus is fully annotated at the mention and concept levels, and is a research resource for the biomedical natural language processing community. BC2GM comes from the gene mention tagging task, which is part of the BioCreative II challenge, which involves named entity extraction from gene and gene product mentions in text. 1,000 sentences containing brain diseases and 500 documents containing natural products from PubMed were manually labeled; when unstructured text, such as "Alzheimer's disease is characterized...", is fed into BERT for fine-tuning, each word is fed into the embedding layer as a separate token unit. , after initial embedding, enters the bidirectional Transformer module , and finally form the latent vector ;
[0017] S22. For CRF, given an input sentence , label sequence The probability can be expressed as:
[0018] ;
[0019] in, Represents input All possible label sequences of express right The emission weight, Represents the transfer matrix weight of two adjacent labels;
[0020] S23. The negative log-likelihood function is used as the loss function as follows:
[0021] .
[0022] Optionally, in step S3,
[0023] ;
[0024] Feed the head and tail entities into two separate FFNN layers and After that, a bi-affine layer is used to infer the category of the relationship between the two vectors:
[0025] ;
[0026] Among them, the dimension of U is m*C*m, the dimension of W is C*2m, m is the dimension of the output vector defined by the FFNN layer, and C is the number of relationship categories.
[0027] Optionally, in step S4,
[0028] TF-IDF statistics are used for entity disambiguation:
[0029] ;
[0030] ;
[0031] ;
[0032] in, Representing words The word frequency, It's a word In the literature The number of times it appears in the denominator yes The total number of times all words appear in , Indicates that it contains words The inverse text frequency index of the document, is the total number of documents in the corpus, Indicates that it contains words The number of documents.
[0033] Through the above technical solution,
[0034] Optionally, in step S5, ;
[0035] in, , n represents the path length.
[0036] Optionally, in step S6, the specific steps are as follows:
[0037] S61. Use DistMult to learn triple vectors from the constructed NDKG. The differences are described by bilinear transformations between entities. Entities are represented by vectors and relations are represented by matrices:
[0038] ;
[0039] ;
[0040] ;
[0041] in, A vector representing the head entity, A vector representing the tail entity, is a linear layer, is the parameter matrix, is the matrix representation of the rth relation, is a bilinear scoring function, That is, the rating vector of the head and tail entities regarding the rth relationship;
[0042] S62, DistMult will be Restricting to diagonal matrices to reduce the number of parameters, the final scoring function is:
[0043] ;
[0044] in, Indicates the triples, Taken from The vector representing the rth relationship that depends on the head and tail entities;
[0045] S63. Implement the basic weight function as follows:
[0046] ;
[0047] in, 、 is the trainable weight of attention, d is the hidden vector dimension size, for each relationship, represents its embedding vector;
[0048] S64. Use the softmax function to normalize the scores by the number of neighbors:
[0049] ;
[0050] in, Represents the header entity and one of the neighbors and their relationship , Represents the header entity and another neighbor and their relationship , Header entity The first-order neighbor subgraph centered on represents softmax activation;
[0051] S65. A heterogeneous graph neural network is convolved on the pathway-target-drug synergy knowledge graph to obtain head entity and tail entity representations. The relationship vector is also encoded by element-wise multiplication, and the importance of the knowledge structure is modeled by normalization:
[0052] ;
[0053] in, Indicates the number of layers of the aggregator, Header entity The first-order neighbor subgraph centered on The vector representing the rth relationship between the head and tail entities The tail entity vector output by the previous layer aggregator Perform matrix multiplication;
[0054] S66. Generate an enhanced knowledge graph by selecting the highest 𝑘-highest rationality score in the KG:
[0055] ;
[0056] in, Indicates score calculation, take the first The result of the name, Indicates all However, in order to preserve the reconstructed path target link information, the All triples of the relation, i.e. ;
[0057] S67, using the sigmoid activation function to minimize the dot product logarithmic loss of the label triples:
[0058] ;
[0059] in, Represents sigmoid activation calculation, represents all triples in the enhanced graph, represents the transpose of the head entity vector, Indicates the matrix multiplication of the tail entity vector and the relationship vector corresponding to the head entity;
[0060] The loss of the DIstMult model is:
[0061] ;
[0062] in, Represents the positive sample set, that is, to ensure the correct triple , Indicates that the positive sample combination is being destroyed The negative sample set obtained later does not ensure the correct triples , represents the scoring function;
[0063] The total training loss is the sum of the two .
[0064] Optionally, in step S7,
[0065] ;
[0066] ;
[0067] in, Indicates the highest number of searches. Indicates the The correct triple is retrieved in 1, 3, and 10 times.
[0068] Optionally, in step S8,
[0069] ;
[0070] ;
[0071] in, represents the average Shannon entropy of the source data, represents the average Shannon entropy of NDKG, and denote the probabilities of triples inferred after fixing the head entity and relation on the source data and NDKG, respectively. represents the number of source data triplets, express Figure 3 the number of tuples, and Represents the number of all tail entities of the inferred triple. Similarly, the head entity inference can be derived and Shannon entropy;
[0072] ;
[0073] ;
[0074] ;
[0075] in, Indicates three situations, Indicates that the number of head and tail entities of the inferred triple is the correct number of triples, or Either the head or the tail has the correct number of triplets or The head and tail are both incorrect numbers of triplets, and similarly we can conclude , and Represents the Shannon entropy of the source data and the tail entity reasoning of NDKG respectively and Reasoning with head entities Shannon entropy and Joint Entropy;
[0076] Mutual information can be calculated by joint entropy and Shannon entropy:
[0077] ;
[0078] .
[0079] After adopting the above technical solution, the beneficial effects of the present invention are:
[0080] This paper reconstructs the expression of disease pathways in a chain-like manner and uses common filtering signals to integrate richer information into heterogeneous graphs, maximizing the integration of large-scale biomedical knowledge into small-scale graphs. Furthermore, information theory methods are used to assess the quality and potential informativeness of the graphs, which may help identify potential drugs for treating neurodegenerative diseases.
[0081] This paper constructs a heterogeneous neurodegenerative disease knowledge graph (NDKG) based on biomedical databases and literature. This graph database contains hundreds of thousands of nodes and relationships between brain diseases and neurodegenerative disease natural products. The method described in this paper reconstructs the graph around real-world pathway concepts and increases its potential information content through rational "pruning" of the graph. In terms of information theory, the structure of the knowledge graph is redefined, and information entropy and mutual information metrics are designed for evaluating the knowledge graph. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0083] Figure 1 This is a schematic diagram of knowledge extraction, where (a) is the named entity recognition combined with BioBERT and CRF, and (b) is the relationship extraction process combined with biaffine;
[0084] Figure 2 It is a schematic diagram of redefining the pathway through the target chain;
[0085] Figure 3 This is a schematic diagram of enhancing the graph structure through DistMult;
[0086] Figure 4 It is a comparative diagram of the MRR results before and after NDKG enhancement;
[0087] Figure 5 This is a comparative diagram of HIT@1 results before and after NDKG enhancement;
[0088] Figure 6 This is a comparative diagram of HIT@3 results before and after NDKG enhancement;
[0089] Figure 7 It is a comparative diagram of HIT@10 results before and after NDKG enhancement. DETAILED DESCRIPTION
[0090] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0091] The embodiments of the present application disclose a knowledge graph-driven method for recommending drugs for neurodegenerative diseases.
[0092] Example: According to Figure 1-Figure 7 , a knowledge graph-driven neurodegenerative disease drug recommendation method, specifically comprising the following steps:
[0093] S1. Data Preparation: We categorize the data sources we use into two types: unstructured scientific publications and structured medical knowledge databases. We construct a small knowledge graph (NDKG) for neurodegenerative diseases using medical knowledge from unstructured scientific publications such as natural products and PubMed, as shown in Table 1.
[0094] Table 1 Data sources of NDKG, including structured medical knowledge databases and unstructured scientific publications
[0095]
[0096] S2. Named Entity Recognition Using BERT+CRF: We chose a BERT-based approach, modified it during fine-tuning, and used Conditional Random Fields (CRF) for named entity label prediction. The specific steps are as follows:
[0097] S21. Fine-tune the model on two common datasets of BioNER, NCBI-Disease and BC2GM, as well as a manually annotated dataset from PubMed. NCBI-Disease contains 793 PubMed abstracts, 6892 disease mentions, and 790 unique disease concepts, and BC2GM contains 20,703 labeled entities, which are used for experiments. The NCBI disease corpus is fully annotated at the mention and concept levels and serves as a research resource for the biomedical natural language processing community. BC2GM comes from the gene mention tagging task as part of the BioCreative II challenge, which involves named entity extraction from gene and gene product mentions in text. 1000 sentences containing brain diseases and 500 files containing PubMed natural products were manually labeled. When unstructured text, such as "Alzheimer's disease is characterized...", is fed into BERT fine-tuning, each word is fed into the embedding layer as a separate token unit. , after initial embedding, enters the bidirectional Transformer module , and finally form the latent vector .
[0098] S21. For CRF, given an input sentence , label sequence The probability can be expressed as:
[0099] ;
[0100] in, Represents input All possible label sequences of express right The emission weight, Represents the transfer matrix weights between two adjacent labels.
[0101] S23. The negative log-likelihood function is used as the loss function as follows:
[0102] ;
[0103] S3. Relation Extraction Using BERT+Biaffine: Also due to its good performance, BioBERT is selected as the relation extractor, and the embedding vectors obtained in NER are used to extract text relations. Since the RE task uses BERT after fine-tuning in the NER task, and the entities have been extracted, the initial embedding of the entities in RE is simplified here:
[0104] ;
[0105] Feed the head and tail entities into two separate FFNN layers and After that, a bi-affine layer is used to infer the category of the relationship between the two vectors:
[0106] ;
[0107] The dimension of U is m*C*m, the dimension of W is C*2m, m is the dimension of the output vector defined by the FFNN layer, and C is the number of relationship categories. Figure 1 In the figure, (a) represents the named entity recognition process combining BioBERT and CRF; (b) represents the relation extraction process combining BioBERT and biaffine.
[0108] S4. Concept normalization and entity disambiguation using TF-IDF: The disease pathway structure of the atlas was normalized based on the most comprehensive KEGG summary to date. Multiple disease pathways were hierarchically represented. The International Classification of Diseases, 10th Revision (ICD-10) was used as the standard for disease terminology, and a controlled lexicon was used to map original diagnostic terms to ICD-10 terms. Drug ingredient names based on DrugBank were used as drug entity names, and natural product names were standardized with reference to the Super Natural II database. Therefore, drugs or natural products with the same primary ingredient are considered the same entity despite different forms.
[0109] TF-IDF statistics are used for entity disambiguation:
[0110] ;
[0111] ;
[0112] ;
[0113] Among them, TF-IDF (term frequency–inverse document frequency) is a commonly used weighting technology for information retrieval and data mining, which is divided into TF term frequency and IDF inverse document frequency index. Representing words The word frequency, It's a word In the literature The number of times it appears in the denominator yes The total number of times all words appear in , Indicates that it contains words The inverse text frequency index of the document, is the total number of documents in the corpus, Indicates that it contains words The number of documents.
[0114] S5. Graph definition with pathway as the core: In order to verify the quality of knowledge contained in the graph, it is necessary to compare its potential informativeness with the source data. First, a binary graph is defined for the collated source data. , to represent the collaboration signal between the entity and the target, which is 1 if the head interacts with the target and vice versa. In addition, a triple is defined for this graph: In particular, when the triple ,in , ,When the target pathway is actually an abstract of the action order of each target in the human body that causes the disease, the action order of the targets is actually more important than the semantic information of the pathway entity. Therefore, the pathway is considered as a labeled entity, only the first and the last target are directly associated with the pathway entity, and the relationship between them is defined as ,when When referring to a pathway, it links sequential targets in the pathway, e.g. Figure 2 shown.
[0115] ;
[0116] in , n represents the path length.
[0117] in, Represents the head entity in the path relationship, Indicates the tail entity in the pathway relationship. Both the head and tail entities can refer to the pathway entity itself and the target entity on the pathway. The relationship between the head and tail entities is represented by express, Indicates the relationship between targets, special Represents a path entity Relationship to the first target on the pathway, Represents a path entity Relationship to the last target in the pathway.
[0118] S6. Use DistMult+GNN to reconstruct the knowledge structure: The specific steps are as follows:
[0119] S61. Use DistMult to learn triple vectors from the constructed NDKG. The difference can be described by the bilinear transformation between entities. The entity is represented by a vector and the relationship is represented by a matrix:
[0120] ;
[0121] ;
[0122] ;
[0123] in, A vector representing the head entity, A vector representing the tail entity, is a linear layer, is the parameter matrix, is the matrix representation of the rth relation, is a bilinear scoring function, That is, the rating vector of the head and tail entities regarding the rth relationship.
[0124] S62, DistMult will be Restricting to diagonal matrices to reduce the number of parameters, the final scoring function is:
[0125] ;in, Indicates the triples, Taken from represents the vector of the rth relation that depends on the head and tail entities, A vector representing the head entity, A vector representing the tail entity.
[0126] S63. Implement the basic weight function as follows:
[0127] ;in, 、 is the trainable weight of attention, d is the hidden vector dimension size, for each relationship, represents its embedding vector.
[0128] S64. To ensure the comparability of base scores between neighbors of the same head entity, the scores are normalized by the number of neighbors using the softmax function:
[0129] ;in, Represents the header entity and one of the neighbors and their relationship , Represents the header entity and another neighbor and their relationship , Header entity The first-order neighbor subgraph centered on represents softmax activation.
[0130] S65. A heterogeneous graph neural network is convolved on the pathway-target-drug synergy knowledge graph (CKG) to obtain head entity and tail entity representations, where the relationship vectors are also encoded by element-wise multiplication, and the importance of the knowledge structure is modeled by normalization:
[0131] ;in, Indicates the number of layers of the aggregator, Header entity The first-order neighbor subgraph centered on The vector representing the rth relationship between the head and tail entities The tail entity vector output by the previous layer aggregator Perform matrix multiplication.
[0132] S66. Generate an enhanced knowledge graph by selecting the highest 𝑘-highest rationality score in the KG:
[0133] ;in, Indicates score calculation, take the first The result of the name, Indicates all However, in order to preserve the reconstructed path target link information, the All triples of the relation, i.e. .
[0134] Process such as Figure 3 shown.
[0135] S67. Due to the rich relational heterogeneity in the knowledge graph, it is necessary to reconstruct important rational connections (i.e., key connections) in the relational context. To this end, the sigmoid activation function is used to minimize the dot product logarithmic loss of the label triples:
[0136] ;in, Represents sigmoid activation calculation, represents all triples in the enhanced graph, represents the transpose of the head entity vector, Indicates the matrix multiplication of the tail entity vector and the relationship vector corresponding to the head entity.
[0137] The loss of the DIstMult model is:
[0138] ;in, Represents the positive sample set, that is, to ensure the correct triple , Indicates that the positive sample combination is being destroyed The negative sample set obtained later does not ensure the correct triples , represents the scoring function.
[0139] The total training loss is the sum of the two .
[0140] S7. Graph Accuracy Evaluation Using MRR and HITS@k: The quality of NDKG was verified by comparing the performance of TransE and DistMult on WordNet (WN), Freebase (FB15k), a subset of FB15k (FB15k-401), and NBKG under the same experimental setting. WN contains 151,442 triples, 40,943 entities, and 18 relations; FB15k contains 592,213 triples, 14,951 entities, and 1,345 relations. FB15k-401 only includes frequent relations (relations with at least 100 training examples), resulting in 560,209 triples, with a data size of 14,541 entities and 401 relations. The results are shown in Table 1.
[0141] We use a variety of metrics to evaluate model performance, including MRR and HITS@n. MRR stands for Mean Reciprocal Ranking. It is calculated by taking the average of the reciprocals of the highest ranking documents that were correctly retrieved for each query, and then averaging these averages across all queries. The calculation is as follows:
[0142] ;in, Indicates the highest number of searches. Indicates the The correct triple is retrieved in one go.
[0143] The HITS@n metric refers to the average proportion of triples ranked lower than n in link prediction. The specific calculation method is as follows:
[0144] ;in, Indicates the highest number of searches. Indicates the The correct triple is retrieved in one go.
[0145] Usually n is 1, 3, or 10. The comparison results are shown in Table 2:
[0146] Table 2. Verification results of graph embedding quality of NDKG
[0147]
[0148] To test the effectiveness of this graph, we conducted experiments using 12 methods and compared them with two currently high-quality graphs (Table 2). NDKG demonstrated superior entity matching performance on reasoning tasks compared to WN or FB15k, achieving an average improvement of 0.018 on the MRR metric, 0.136 on the HIT@1 metric, and 0.009 on the HIT@3 metric. On the HIT@10 metric, FB15K achieved an average performance improvement of 0.115 on average over WN and 0.012 on average over FB15K. This indicates that the average number of potentially correct entities per relation in NDKG is greater than that produced by WN, and that NDKG contains more comprehensive and balanced knowledge than FB15K, resulting in a more robust structure.
[0149] S8. Use Shannon entropy, joint entropy, and mutual information to evaluate potential information: Consider the entire graph as a communication system, entities as sources, and relationships as channels. The potential information can be expressed as the clarity of the communication relationship between sources, that is, a graph with rich potential information should show lower uncertainty.
[0150] In order to evaluate its knowledge uncertainty, the source data triples should first be compared with Figure 3 The tuples are compared to measure the Shannon entropy of the representation model used for inference from the predicted probabilities of the target (source data) or tail entity (atlas):
[0151] ;
[0152] ;
[0153] in, represents the average Shannon entropy of the source data, represents the average Shannon entropy of NDKG, and denote the probabilities of triples inferred after fixing the head entity and relation on the source data and NDKG, respectively. represents the number of source data triplets, express Figure 3 the number of tuples, and Represents the number of all tail entities of the inferred triple. Similarly, the head entity inference can be derived and The Shannon entropy of .
[0154] Similarly, the Shannon entropy for head entity reasoning can be derived as and . Mutual information is used to measure the amount of information shared between entities to evaluate the possible information content of the graph. In order to obtain mutual information, it is also necessary to know the joint entropy of the head and tail entities. The joint entropy can represent the uncertainty remaining in the entire system after communication between the sender and the receiver. There are three correct cases for the head and tail entities of the inference triple, that is, both the head and the tail are correct, or both the head and the tail are wrong. The joint entropy is obtained by counting the number of these three cases:
[0155] ;
[0156] in, Indicates three situations, Indicates that the number of head and tail entities of the inferred triple is the correct number of triples, or Either the head or the tail has the correct number of triplets or The head and tail are both incorrect numbers of triplets, and similarly we can conclude .
[0157] ;
[0158] ;
[0159] in, and Represents the Shannon entropy of the source data and the tail entity reasoning of NDKG respectively and Reasoning with head entities Shannon entropy and Joint entropy.
[0160] Finally, the mutual information can be calculated by joint entropy and Shannon entropy:
[0161] ;
[0162] ;
[0163] The results are compared in Table 3.
[0164] Table 3: Comparison of information entropy and mutual information results
[0165]
[0166] As can be seen from Table 3, compared with the source data, the enhanced graph increases the head entity information entropy by 0.474, the tail entity information entropy by 0.461, the entity joint entropy by 0.139, and the mutual information contained in the entity by 1.074. Compared with the pre-enhanced graph, the head entity information entropy is increased by 0.164, the tail entity information entropy is increased by 0.116, the entity joint entropy is increased by 0.204, and the mutual information contained in the entity is increased by 0.484. This shows that the enhanced graph obtains more information from the communication between entities with the same amount of data, confirming the increase of the potential information of the graph.
[0167] S9. Comparison of reconstruction effects: A reasoning verification comparison was performed between the original graph NDKG and the enhanced graph NDKG-aug to verify the quality of path redefinition and graph reconstruction. The results are shown in the figure. Figure 5 As shown in Figure 2. MRR focuses on the average ranking of the correct answer among all candidate answers. If the MRR is low, it means that the model tends to rank the correct answer low, that is, it is difficult to find the correct answer.
[0168] The results are as follows Figure 4 As shown:
[0169] exist Figure 4 NDKG-aug outperforms NDKG in all prediction ranking models with an average increase of 0.009, indicating that its inference of the average ranking position of correct triples is higher than that of the test, which proves that the reconstruction and enhancement by reconstruction and enhancement indeed make the knowledge structure of NDKG more compact and effective.
[0170] At the same time, the enhancement effects are compared based on the HTIS@K index, such as Figure 5-Figure 7 As shown: Figure 5-Figure 7 As shown in the figure, NDKG-aug also outperforms NDKG on the HITS metrics, with an average improvement of 0.011 on HITS@1, 0.010 on HITS@3, and 0.018 on HITS@10, indicating that NDKG-aug can better capture the correct answer among the first few candidate answers, confirming that the reconstructed and enhanced NDKG has richer potential information.
[0171] S10. Experimental verification: To verify the effectiveness of the graph, we verified the results of graph reasoning and selected the top 5 results for Alzheimer’s disease for literature verification, as shown in Table 4:
[0172] Table 4 Example verification of inference results
[0173]
[0174] The validation of potential triples involves structured databases (such as KEGG) and text databases (such as PubMed), showing that graphs can integrate heterogeneous knowledge in a more unified way.
[0175] Neurodegenerative diseases are a group of chronic, progressive central nervous system disorders with unknown etiologies. Due to the diverse ways biomedical knowledge is stored in the real world, it is difficult to organize and identify potential drugs for these diseases. Therefore, effectively organizing biomedical knowledge from multiple sources has become a critical issue. Networks and graphs are natural representations because they intuitively represent relationships. However, KGs in the biomedical field treat pathways as entity concepts, which is significantly different from the real world. For biomedical research, it is necessary to consider the relationships between pathways and drugs, diseases, and targets. From a pharmacological perspective, medical entities such as drugs, diseases, targets, and pathways are inseparable. A pathway is essentially a sequence of continuous targets that lead to a disease. A pathway is essentially a summary and abstraction of the continuous effects of a series of disease-causing targets. Therefore, the most natural way to characterize pathways in the form of target links is to describe them in this paper.
[0176] This paper integrates KEGG, SIDER, ICD9 / 10, DrugBank, and text data (such as PubMED) to construct a knowledge graph. It uses a fine-tuned BERT to perform named entity recognition and relation extraction tasks. It uses TF-IDF to perform concept normalization and entity disambiguation. It reconfigures the graph around real-world concepts of pathways and uses the inference models DistMult and rational to "prune" the graph to increase its potential information content. To test the effectiveness of this graph, the paper experiments with 12 methods and compares it with two currently high-quality graphs. Compared with WN or FB15k, NDKG demonstrates superior entity matching performance on inference tasks, achieving an average improvement of 0.018 on the MRR metric, 0.136 on the HIT@1 metric, and 0.009 on the HIT@3 metric. On HIT@10, the average value of FB15K is 0.115 lower than that of WN and 0.012 lower than that of FB15K. The metric shows that the average number of potential correct entities corresponding to each relationship in NDKG is greater than the number produced by WN, and NDKG contains more comprehensive and extensive nodes than FB15K. The knowledge of NDKG is balanced and its structure is robust. In order to verify whether the graph can really discover potential drug treatment options, the present invention uses DistMult to reason on the graph of Alzheimer's disease and extracts the top five triples for example verification. It is found that they can all be found in existing knowledge bases or existing examples in the literature.
[0177] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A knowledge graph-driven drug recommendation method for neurodegenerative diseases. It is characterized in that The following steps are involved: S1. Data preparation: The data sources used are divided into two categories, namely, unstructured scientific publications and structured medical knowledge databases; S2, using BERT+CRF for named entity recognition; The specific steps of using BERT+CRF for named entity recognition in step S2 are as follows: S21. Fine-tune the model on two common datasets for BioNER, NCBI-Disease and BC2GM, as well as manually annotated datasets from PubMed; the NCBI disease corpus is fully annotated at the mention and concept level as a research resource for the biomedical natural language processing community, and BC2GM comes from the gene mention tagging task as part of the BioCreative II challenge, which involves named entity extraction from gene and gene product mentions in text. 1,000 sentences containing brain diseases and 500 documents containing natural products from PubMed were manually labeled; S22. For CRF, given an input sentence , label sequence The probability is expressed as: ; in, Represents input All possible label sequences, fx i Indicates the use of BERT To express semantics, express right The emission weight, Represents the transfer matrix weights of two adjacent labels; S23. The negative log-likelihood function is used as the loss function as follows: ; S3. Use BERT+Biaffine for relation extraction; In step S3, Feed the head and tail entities into two separate FFNN layers and After that, a bi-affine layer is used to infer the category of the relationship between the two vectors: Among them, FFNN head (·) and FFNN tail (·) represents the fully connected layer networks trained separately for the head entity and the tail entity, respectively. The parameters of the two networks are independent of each other. The dimension of U is m*C*m, and the dimension of W is C*2m. m is the dimension of the output vector defined by the FFNN layer, C is the number of relation categories, and b is the bias term of the neural network initialized with random values. S4, use TF-IDF for concept normalization and entity disambiguation; In step S4, TF-IDF statistics are used for entity disambiguation: ; ; ; in, Representing words The word frequency, It's a word In the literature The number of times it appears in the denominator yes The total number of times all words appear in , Indicates that it contains words The inverse text frequency index of the document, is the total number of documents in the corpus, Indicates that it contains words The number of documents; S5. Graph definition with path as the core: In step S5, ; in, , n represents the path length; S6. Use DistMult+GNN to reconstruct knowledge structure: In step S6, the specific steps are as follows: S61. Use DistMult to learn triple vectors from the constructed NDKG. The differences are described by bilinear transformations between entities. Entities are represented by vectors and relations are represented by matrices: ; ; ; Among them, one-hot (·) is a statistical coding algorithm. The length of the encoded vector is the number of all head entities, and the value is 1 only at the corresponding head entity position, and the other positions are 0. A vector representing the head entity, A vector representing the tail entity, is a linear layer, is the parameter matrix, is the matrix representation of the rth relation, is a bilinear scoring function, That is, the rating vector of the head and tail entities regarding the rth relationship; S62、DistMult is calculated by Restricting to diagonal matrices to reduce the number of parameters, the final scoring function is: ; in, Indicates triples, Taken from represents the vector of the rth relationship that depends on the head and tail entities, and diag(·) represents the relationship between the head and tail entities into a diagonal matrix; S63, implement the basic weight function as follows: ; in, , is the trainable weight of attention, d is the hidden vector dimension size, for each relationship, represents its embedding vector; S64. Use the softmax function to normalize the scores by the number of neighbors: ; in, Represents the header entity and one of the neighbors and their relationship , Represents the header entity and another neighbor and their relationship , Header entity The first-order neighbor subgraph centered on represents softmax activation, ω(h, r, t) represents the normalized triplet score; S7, use MRR and HITS@k to evaluate the accuracy of the graph; S8. Use Shannon entropy, joint entropy, and mutual information to evaluate potential information.
2. A knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, It is characterized in that Step S6 also includes the following steps: S65. Heterogeneous graph neural networks are convolved on the pathway-target-drug synergy knowledge graph to obtain head entity and tail entity representations, where the relationship vectors are also encoded by element-wise multiplication and the importance of the knowledge structure is modeled by normalization: ; in, Indicates the number of layers of the aggregator, Header entity The first-order neighbor subgraph centered on The vector representing the rth relationship between the head and tail entities The tail entity vector output by the previous aggregator Perform matrix multiplication; S66. Generate an enhanced knowledge graph by selecting the highest 𝑘-highest rationality score in the KG: ; in, Indicates score calculation, taking the first The result of the name, Indicates all However, in order to preserve the reconstructed path target link information, the All triples of the relation, i.e. ; S67, using the sigmoid activation function to minimize the dot product logarithmic loss of the label triples: ; in, Represents sigmoid activation calculation, represents all triples in the enhanced graph, represents the transpose of the head entity vector, Indicates the matrix multiplication of the tail entity vector and the relationship vector corresponding to the head entity; The loss of the DIstMult model is: ; in, Represents the positive sample set, that is, ensures the correct triple , Indicates that the positive sample combination is being destroyed The negative sample set obtained later does not ensure the correct triple , represents the scoring function; The total training loss is the sum of the two .
3. A knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, It is characterized in that In step S7, ; ; in, Indicates the highest number of searches. Indicates The correct triplet is retrieved in 1, 3, and 10 times.
4. A knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, It is characterized in that In step S8, ; ; in, represents the average Shannon entropy of the source data, represents the average Shannon entropy of NDKG, and denote the probabilities of the triples inferred after fixing the head entity and relation on the source data and NDKG, respectively. represents the number of source data triplets, represents the number of graph triplets, and Represents the number of all tail entities of the inferred triple, and similarly, the head entity inference is derived and Shannon entropy of; ; ; ; in, Indicates three situations, indicates that the number of head and tail entities of the inferred triple is the correct number of triples, or Either the head or the tail has the correct number of triplets or Both the head and the tail are incorrect numbers of triplets. Similarly, , and Represents the Shannon entropy of the source data and the tail entity reasoning of NDKG respectively and Reasoning with head entities Shannon entropy and Joint entropy; Mutual information is calculated by joint entropy and Shannon entropy: ; 。
