Knowledge graph-driven neurodegenerative disease drug recommendation method
Using technologies such as BERT+CRF and TF-IDF to perform named entity recognition and relationship extraction, combined with DistMult+GNN to reconstruct the knowledge graph, it solves the problem of poor drug recommendation for neurodegenerative diseases in the existing technology and achieves a more effective Knowledge graph reconstruction and potential drug discovery.
Patent Information
- Application Number
- CN202411066784.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-09-03
- 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.
Use BERT+CRF for named entity recognition and relationship extraction, use TF-IDF for concept normalization and entity disambiguation, use DistMult+GNN to reconstruct the knowledge graph, define the graph structure with pathways as the core, and use MRR and HITS@k The accuracy of the map was evaluated using other indicators, and the amount of potential information was evaluated using information theory methods.
Reconstructing disease pathways in a chain-like manner and integrating rich information into heterogeneous graphs improves the quality and potential information of knowledge graphs and helps discover potential drugs for the treatment of neurodegenerative diseases.
Smart Images

Figure CN118588233A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medicine and computer technology, and in particular relates to a knowledge graph-driven neurodegenerative disease drug recommendation method. Background Art
[0002] Recently, it has been found that combining drug and protein data to define diseases in a more detailed way 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 incorporated into biology, among which knowledge graphs (KGs) are often used for drug discovery because of their obvious entity relationship advantages. Neurodegenerative diseases, as a group of chronic progressive central nervous system diseases with unknown causes that sometimes involve the peripheral nervous system, do not have targeted knowledge graphs, and some attempts to recommend drugs based on traditional deep learning methods have not been effective.
[0003] Drug recommendation based on knowledge graphs requires enhancing the knowledge graphs with drug target and pathway information. Pathways are actually summaries and abstractions of sequential actions of a series of targets that cause diseases, so they can be expanded around the concept of pathways in the graph. The exploration of knowledge graph enhancement began with embedding-based and pathway-based methods. Specifically, some studies incorporate transformation-based knowledge graph embedding methods (such as TransR) into graph embedding to enrich user and item modeling. Some other methods focus on extracting semantically meaningful meta-paths from knowledge graphs and perform complex modeling of users and items along these meta-paths. In order to unify embedding-based and path-based methods in a mutually beneficial way, some recent results have adopted powerful graph neural networks (GNNs) to capture multi-hop high-order information by propagating and aggregating on knowledge graphs. However, these knowledge graphs for the biomedical field treat pathways as an entity concept, which is very different from the real world, making it impossible to obtain the connections between different targets of the same disease for drug recommendation tasks, thereby ignoring 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 in this way: A knowledge graph-driven neurodegenerative disease drug recommendation method comprises the following steps: 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; S3. Use BERT+Biaffine for relation extraction; S4, use TF-IDF for concept normalization and entity disambiguation; S5. Graph definition with path as the core: S6. Use DistMult+GNN to reconstruct knowledge structure: 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.
[0006] Optionally, the specific steps of using BERT+CRF to perform named entity recognition in step S2 are as follows: S21. Fine-tune the model on two common datasets of 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 levels, 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 of genes and gene products mentioned in text. 1,000 sentences containing brain diseases and 500 files containing natural products from PubMed were manually labeled; when unstructured text, such as "Alzheimer's disease is characterized...", is input into BERT fine-tuning, each word is input into the embedding layer as a separate token unit , after initial embedding, enters the bidirectional Transformer module , and finally form the hidden vector ; S22. For CRF, given an input sentence , label sequence The probability can be expressed as: ; in, Represents input All possible label sequences of 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: .
[0007] Optionally, 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, 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.
[0008] Optionally, 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.
[0009] Through the above technical solution, Optionally, in step S5, ; in, , n represents the path length.
[0010] Optionally, 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: ; ; ; 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; 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 A vector representing the rth relationship that depends on the head and tail entities; 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; 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 .
[0011] Optionally, in step S7, ; ; in, Indicates the highest number of searches. Indicates The correct triplet is retrieved in 1, 3, and 10 times.
[0012] Optionally, 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, 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 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 can be calculated by joint entropy and Shannon entropy: ; .
[0013] After adopting the above technical solution, the beneficial effects of the present invention are: The present invention reconstructs the expression of disease pathways in a chain-like manner and uses common filtering signals to integrate richer information into heterogeneous graphs to maximize the integration of large-scale biomedical knowledge into small-scale graphs. In addition, the quality and potential informativeness of the graph are evaluated by information theory methods, which helps to find potential drugs for the treatment of neurodegenerative diseases.
[0014] The present invention constructs a heterogeneous neurodegenerative disease knowledge graph, namely NDKG, based on biomedical databases and literature texts, which constitutes a graph database containing hundreds of thousands of nodes and relationships between brain diseases and natural products of neurodegenerative diseases. The method in the present invention is used to reconstruct the graph around the real-world pathway concept and increase the potential information content by reasonably "pruning" the graph. In terms of information theory, the structure of the knowledge graph is redefined, and the information entropy and mutual information metrics for evaluating the knowledge graph are designed. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative labor.
[0016] Figure 1 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; Figure 2 is a schematic diagram of the redefinition of pathways through target chains; Figure 3 This is a schematic diagram of enhancing the graph structure through DistMult; Figure 4 It is a comparative schematic diagram of the MRR results before and after NDKG enhancement; Figure 5 It is a comparative schematic diagram of HIT@1 results before and after NDKG enhancement; Figure 6 It is a comparative diagram of HIT@3 results before and after NDKG enhancement; Figure 7 It is a comparative diagram of HIT@10 results before and after NDKG enhancement. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 creative work are within the scope of protection of the present invention.
[0018] The present application embodiment discloses a knowledge graph-driven neurodegenerative disease drug recommendation method.
[0019] Example: According to Figure 1-Figure 7 , a knowledge graph-driven neurodegenerative disease drug recommendation method, specifically comprising the following steps: S1. Data preparation: The data sources used are divided into two categories, namely unstructured scientific publications and structured medical knowledge databases. A small knowledge graph NDKG for neurodegenerative diseases is constructed through the medical knowledge of unstructured scientific publications such as natural products and PubMed, as shown in Table 1.
[0020] Table 1 Data sources of NDKG, including structured medical knowledge databases and unstructured scientific publications
[0021] S2. Named Entity Recognition Using BERT+CRF: A BERT-based method was selected, modified during fine-tuning, and conditional random fields (CRF) were used for named entity tag prediction. The specific steps are as follows: S21. Fine-tune the model on two common datasets of BioNER, NCBI-Disease and BC2GM, as well as manually annotated datasets 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 level as a research resource for the biomedical natural language processing community. BC2GM comes from the gene mention labeling 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 natural products from PubMed 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 hidden vector .
[0022] S21. For CRF, given an input sentence , label sequence The probability can be expressed as: ; in, Represents input All possible label sequences of express right The emission weight, Represents the transfer matrix weights between two adjacent labels.
[0023] S23. The negative log-likelihood function is used as the loss function as follows: ; 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 textual 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: ; 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: ; 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 relation categories. Figure 1 In the figure, (a) represents the named entity recognition process combining BioBERT and CRF; (b) represents the relationship extraction process combining BioBERT and biaffine.
[0024] S4. Use TF-IDF for concept normalization and entity disambiguation: The disease pathway structure of the atlas is normalized based on the most comprehensive KEGG currently summarized. Multiple disease pathways are hierarchically characterized. The International Classification of Diseases, 10th Revision (ICD-10) is used as the standard for disease terms, and controlled dictionaries are used to map original diagnostic terms to ICD-10 terms. Drug ingredient names based on DrugBank are used as the names of drug entities, and the names of natural products are standardized with reference to the Super NaturalII database, so that drugs or natural products with the same main ingredients are considered to be the same entity despite different forms.
[0025] TF-IDF statistics are used for entity disambiguation: ; ; ; 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.
[0026] S5. Pathway-centric graph definition: 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 cooperation 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, so the pathway is regarded 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.
[0027] ; in , n represents the path length.
[0028] in, Represents the head entity in the path relationship, Represents 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.
[0029] S6. Use DistMult+GNN to reconstruct the knowledge structure: The specific steps are as follows: S61. Use DistMult to learn triple vectors from the constructed NDKG. The difference can be described by the bilinear transformation between entities. Entities are represented by vectors and relations are represented by matrices: ; ; ; 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.
[0030] 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, A vector representing the head entity, A vector representing the tail entity.
[0031] 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.
[0032] 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 a softmax function: ;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.
[0033] S65. Heterogeneous graph neural networks are 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: ;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.
[0034] 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. .
[0035] Process such as Figure 3 shown.
[0036] 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: ;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.
[0037] 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.
[0038] The total training loss is the sum of the two .
[0039] S7. Graph Accuracy Evaluation Using MRR and HITS@k: The quality of NDKG is verified by comparing the performance of TransE and DistMult on WordNet (WN), Freebase (FB15k), FB15k subset (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 contains frequent relations (relations with at least 100 training examples), forming 560,209 triples, with a data size of 14,541 entities and 401 relations. The results are shown in Table 1.
[0040] We use a variety of metrics to evaluate model performance, including MRR and HITS@n. MRR refers to mean reciprocal ranking. It is calculated by taking the average of the reciprocals of the highest ranking of correctly retrieved documents for each query, and then taking the average of the averages for all queries. The specific calculation method is as follows: ;in, Indicates the highest number of searches. Indicates The correct triple is retrieved.
[0041] 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: ;in, Indicates the highest number of searches. Indicates The correct triple is retrieved.
[0042] Usually n is 1, 3, or 10. The comparison results are shown in Table 2: Table 2. Verification results of graph embedding quality of NDKG
[0043] To test the effectiveness of the graph, we conducted experiments using 12 methods and compared them with two currently available graphs (Table 2). Compared with WN or FB15k, NDKG shows better entity matching performance on reasoning tasks, with an average improvement of 0.018 over WN in the MRR metric, 0.136 over FB15K in the HIT@1 metric, and 0.009 over WN in the HIT@3 metric. The average value of FB15K is 0.115 higher than that of WN and 0.012 higher than that of FB15K on HIT@10. The average number of potential correct entities corresponding to each relationship in NDKG is greater than that produced by WN, and NDKG contains more comprehensive and balanced knowledge than FB15K, and its structure is more robust.
[0044] 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.
[0045] In order to evaluate its knowledge uncertainty, the source data triples should first be compared with Figure 3 Tuples are compared to measure the Shannon entropy, a representation model used for inference from the predicted probabilities of the target (source data) or tail entity (atlas): ; ; 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, 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 .
[0046] 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 calculating the number of these three cases: ; 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, .
[0047] ; ; 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.
[0048] Finally, the mutual information can be calculated by joint entropy and Shannon entropy: ; ; The results are compared in Table 3. Table 3: Comparison of information entropy and mutual information results
[0049] It can be seen from Table 3 that compared with the source data, the enhanced graph improves 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, which indicates 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.
[0050] 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 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.
[0051] The results are as follows Figure 4 As shown: 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 the correct triples is higher than the test, which proves that the reconstruction and enhancement by reconstruction and enhancement indeed make the knowledge structure of NDKG more compact and effective.
[0052] At the same time, the enhancement effects are compared 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.
[0053] S10. Experimental verification: In order to verify the effectiveness of the graph, the results of graph reasoning were verified, and the top 5 results of Alzheimer's disease were selected for literature verification, as shown in Table 4: Table 4 Example verification of inference results
[0054] The validation of potential triples involves structured databases (such as KEGG) and text databases (such as PubMed), indicating that graphs can integrate heterogeneous knowledge in a more unified way.
[0055] Neurodegenerative diseases are a group of chronic progressive central nervous system diseases with unknown etiology. Due to the different ways of storing biomedical related knowledge in the real world, it is difficult to organize it, and it is difficult to find potential drugs for such diseases with unknown etiology. Therefore, effectively organizing biomedical knowledge from multiple sources has become a key issue. Networks and graphs can intuitively represent relationships as representation methods, so they are naturally taken into consideration. However, for KG in the biomedical field, pathways are regarded as an entity concept, which is very different from the real world. For biomedical related research work, it is necessary to consider the relationship between pathways and drugs, diseases and targets. From a pharmacological point of view, medical entities such as drugs, diseases, targets and pathways are inseparable. Pathways are actually a sequence of a series of continuous targets that cause diseases. Pathways are actually a summary and abstraction of the continuous effects of a series of targets that cause diseases. Therefore, it is most natural for the present invention to characterize pathways in the form of target links.
[0056] The present invention integrates KEGG, SIDER, ICD9 / 10, DrugBank and some text data (such as PubMED) to build a knowledge graph, uses fine-tuned BERT to perform named entity recognition and relationship extraction tasks, completes concept normalization and entity disambiguation with the help of TF-IDF, and reconfigures the graph around the real concept of the pathway, and uses the reasoning models DistMult and rational to "prune" the graph to increase the potential information content. In order to test the effectiveness of the graph, the present invention experiments with 12 methods and compares them with 2 currently high-quality graphs. Compared with WN or FB15k, NDKG shows better entity matching performance on reasoning tasks, with an average improvement of 0.018 over WN in the MRR indicator, 0.136 over FB15K in the HIT@1 indicator, and 0.009 over WN in the HIT@3 indicator. Metrics On HIT@10, the average value of FB15K is 0.115 lower than that of WN and 0.012 lower than that of FB15K. Metrics indicates that the average number of potentially correct entities corresponding to each relationship in NDKG is greater than that produced by WN, and that 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 first five triples for example verification, and finds that they can all be found in existing knowledge bases or existing examples in the literature.
[0057] 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 protection scope of the present invention.
Claims
1. A knowledge graph-driven neurodegenerative disease drug recommendation method, 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; S3. Use BERT+Biaffine for relation extraction; S4, use TF-IDF for concept normalization and entity disambiguation; S5. Graph definition with path as the core: S6. Use DistMult+GNN to reconstruct knowledge structure: 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, characterized in that: 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 of 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 of gene and gene product mentions in text. 1000 sentences containing brain diseases and 500 documents containing natural products from PubMed were manually labeled; S21. For CRF, given an input sentence , label sequence The probability can be expressed as: ; in, Represents input All possible label sequences of 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: 。 3. According to claim 1, a knowledge graph-driven neurodegenerative disease drug recommendation method is characterized in that: 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, 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.
4. The method for recommending drugs for neurodegenerative diseases driven by a knowledge graph according to claim 1, characterized in that: 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.
5. The knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, characterized in that: In step S5, ; in, , n represents the path length.
6. The knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, characterized in that: 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: ; ; ; 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; 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 A vector representing the rth relationship that depends on the head and tail entities; 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; 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 .
7. The knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, 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.
8. The knowledge graph-driven neurodegenerative disease drug recommendation method according to claim 1, 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. Similarly, the head entity inference can be 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 can be calculated by joint entropy and Shannon entropy: ; 。
Citation Information
Patent Citations
Drug relocation prediction method based on biomedical literature and domain knowledge data
CN111554360A
Medical inquiry recommendation method based on knowledge graph and social media
CN111897967A
BERT-BiGRU-IDCNN-CRF named entity identification method based on attention mechanism
CN112733541A
Reasonable drug use system and method based on natural language processing and drug knowledge graph
CN115293161A
Integration of contextual tags with named entity recognition models
CN116724305A
Cited By
Heterogeneous node sequence representation-based drug-disease association prediction method and system
CN119274691A
Knowledge graph-based transportation tool matching recommendation method and system
CN119646315A
Knowledge graph-based terpene compound and disease correlation prediction method and system
CN119785920A
