Knowledge graph construction method and system for biological medicine detection
Through multiple data source acquisition, strict cleaning and standardization processing, combined with ontology mapping and graph database storage, the data coverage and quality problems of traditional knowledge graphs in biomedical testing are solved, efficient entity recognition and relationship extraction are achieved, and semantics are improved Richness and user experience to support decision support in biomedical testing.
Patent Information
- Application Number
- CN202410764060.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional knowledge graphs have problems in biomedical testing such as limited data coverage, low data quality, low precision in entity recognition and relationship extraction, and insufficient semantic richness and accuracy, making it difficult to meet the high requirements of the biomedical field.
Obtain biomedical data from multiple data sources, perform strict cleaning and standardization processing, entity recognition and relationship extraction, ontology mapping and semantic enhancement, build and dynamically update knowledge graphs, and combine with graph database storage to provide advanced retrieval and visual display to ensure data breadth, quality and semantic richness.
It achieves the breadth and comprehensiveness of the knowledge graph, ensures data quality and semantic richness, provides powerful data analysis and user interaction functions, supports decision support for biomedical testing, and keeps the latest status of the graph through dynamic updates.
Smart Images

Figure CN118626658A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of knowledge graph technology, and specifically to a knowledge graph construction method and system for biomedical testing. Background Art
[0002] A knowledge graph is a graphical structure used to represent knowledge, usually consisting of entities and their relationships. These relationships can be directed, undirected, weighted, etc., to better represent the semantic associations between entities. The knowledge graph aims to simulate the human knowledge system so that computers can understand, reason and use the knowledge therein.
[0003] The most common application scenarios of knowledge graphs are search engines, intelligent question-answering systems, recommendation systems, and semantic search. For example, Google's knowledge graph is used to improve the accuracy and relevance of search results, while Facebook's knowledge graph is used for semantic understanding of personal data and social network analysis. In the field of biomedical testing, although knowledge graphs have a wide range of applications, there are indeed some challenges that have prevented the emergence of suitable knowledge graphs.
[0004] Generally, traditional knowledge graph construction technology relies on a single or limited data source, which limits the coverage of the knowledge graph, and the lack of comprehensiveness and breadth of data. It is difficult to fully reflect the diversity and complexity of the biomedical field. Data cleaning may not be strict enough, and there are problems with noisy data and duplicate data. At the same time, traditional natural language processing methods have low accuracy in identifying and extracting entities and their relationships, which affects the quality of knowledge graph construction. They are insufficient in ontology mapping and semantic enhancement, resulting in low semantic richness and accuracy of knowledge graphs, making it difficult to meet the high requirements of the biomedical field.
[0005] In summary, it is necessary to propose a knowledge graph construction method and system for biomedical testing to solve the above problems. Summary of the invention
[0006] The purpose of the present invention is to provide a method and system for constructing a knowledge graph for biomedical testing to solve the problems raised in the above-mentioned background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A knowledge graph construction method for biomedical testing, the method is implemented based on a knowledge graph construction system for biomedical testing, and includes the following steps:
[0009] S1. Data collection: obtaining relevant biomedical data from multiple data sources to ensure the breadth and comprehensiveness of the data;
[0010] S2. Data cleaning: clean the collected data, remove noise and duplicate data, and ensure data quality;
[0011] S3. Data standardization: standardize the cleaned data, unify the data format and unit, and ensure data consistency;
[0012] S4. Entity recognition, using natural language processing technology to identify biomedical related entities from text data, including genes, diseases, and drugs;
[0013] S5. Relationship extraction: extract the relationship between entities from the data, establish the association between entities, and form a preliminary knowledge graph structure;
[0014] S6. Ontology mapping, mapping the identified entities and relationships to existing biomedical ontologies to enhance the semantic richness and accuracy of the graph;
[0015] S7. Knowledge graph construction: Organize entities and relationships in the form of nodes and edges to build a preliminary knowledge graph;
[0016] S8. Knowledge graph storage: Store the constructed knowledge graph in the graph database to ensure its scalability and query efficiency;
[0017] S9. Update the knowledge graph regularly or dynamically based on new data and research results to keep it up to date;
[0018] S10. Semantic enhancement: semantically annotate the knowledge graph, add semantic tags, and improve the interpretability and data interoperability of the graph;
[0019] S11. Graph verification: verify the constructed knowledge graph to ensure its accuracy and completeness;
[0020] S12. Data analysis: perform data analysis on the knowledge graph to explore potential rules and patterns and provide decision support for biomedical testing;
[0021] S13. User interaction, providing natural language query and advanced search functions, supporting users to easily access and utilize knowledge graphs;
[0022] S14. Visual display: Display the knowledge graph and analysis results in a graphical way to facilitate user understanding and operation.
[0023] Based on the above method, the present invention also proposes a knowledge graph construction system for biomedical detection, including a data acquisition module, a data analysis module, a knowledge graph construction module, a knowledge graph management module, a query and retrieval module, a visualization module, a semantic enhancement module, a privacy and security module, and a cross-domain data integration module;
[0024] The data acquisition module is used to provide a data source interface and perform data preprocessing;
[0025] The data analysis module is used for statistical analysis and advanced analysis;
[0026] The knowledge graph construction module is used for entity recognition and relationship extraction;
[0027] The knowledge graph management module is used for graph update and version control;
[0028] The query and retrieval module is used for natural language query and advanced retrieval;
[0029] The visualization module is used for graph visualization and data analysis visualization;
[0030] The semantic enhancement module is used for semantic annotation and ontology mapping;
[0031] The privacy and security module is used to manage user permissions and ensure that data is encrypted during storage and transmission to prevent unauthorized access;
[0032] The cross-domain data integration module is used for heterogeneous data integration and data standardization.
[0033] Preferably, the data acquisition module further includes a data source interface unit, a data preprocessing unit, a relational database unit and a graph database unit;
[0034] The data source interface unit is used to collect raw data from a database, a file system, or an API;
[0035] The data preprocessing unit is used to perform preprocessing tasks such as data cleaning, denoising, format conversion, etc. to ensure data quality;
[0036] The relational database unit is used to store structured data, including patient information and test records;
[0037] The graph database unit is used to store and manage knowledge graph data and supports complex relationships and queries.
[0038] Preferably, the data analysis module further includes a statistical analysis unit and an advanced analysis unit;
[0039] The statistical analysis unit is used to perform basic statistical analysis, including frequency distribution and correlation analysis;
[0040] The advanced analytics unit includes machine learning models and algorithms for predictive analytics and pattern recognition.
[0041] Preferably, the knowledge graph construction module further includes an entity recognition unit and a relationship extraction unit;
[0042] The entity recognition unit is used to extract genes, diseases or drugs from text data;
[0043] The relationship extraction unit is used to identify the relationship between entities and add it to the graph.
[0044] Preferably, the knowledge graph management module further includes a graph updating unit and a version control unit;
[0045] The graph updating unit is used to dynamically update the knowledge graph according to new data and research results;
[0046] The version control unit is used to manage the version of the knowledge graph and supports rollback and history query.
[0047] Preferably, the query and retrieval module further includes a natural language query unit and an advanced retrieval unit;
[0048] The natural language query unit is used to support users to query in natural language and return relevant graph data;
[0049] The advanced search unit is used to provide complex query functions, including multi-condition screening and path analysis.
[0050] Preferably, the visualization module further includes a graph visualization unit and a data analysis visualization unit;
[0051] The graph visualization unit is used to graphically display entities and their relationships in the knowledge graph;
[0052] The data analysis visualization unit is used to display the analysis results, including statistical charts and outputs of the prediction model.
[0053] Preferably, the semantic enhancement module further includes a semantic annotation unit and an ontology mapping unit;
[0054] The semantic annotation unit is used to add semantic labels to entities and relationships in the graph to improve data understanding and interoperability;
[0055] The ontology mapping unit is used to map entities in the atlas to existing biomedical ontologies to enhance the semantic richness of the data.
[0056] Preferably, the cross-domain data integration module further includes a heterogeneous data integration unit and a data standardization unit;
[0057] The heterogeneous data integration unit is used to integrate clinical data, genomic data and drug data to form a unified data view;
[0058] The data standardization unit is used to standardize heterogeneous data to facilitate unified query and analysis in the knowledge graph.
[0059] Compared with the prior art, the beneficial effects of the present invention are: the construction data of the knowledge graph of the present invention is extensive and comprehensive, and the data quality is guaranteed. It not only has powerful data analysis and user interaction functions, but also realizes efficient entity recognition and relationship extraction, ensures semantic richness and accuracy, and also has a dynamic update mechanism. Through incremental data processing and graph synchronization tools, it realizes dynamic update of the knowledge graph, keeps the graph up to date, ensures its continued practicality and value, and also has efficient storage and query functions. It uses a graph database to store knowledge graphs to ensure its scalability and efficient query, supports the management and access of large-scale data, and provides rich data analysis capabilities and convenient user interaction experience through data mining and graph analysis, including advanced retrieval and natural language query functions, supports decision support for biomedical testing, and realizes interactive visual display to help users intuitively understand and operate knowledge graphs, thereby improving user experience and acceptance. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 Constructing a system topology diagram for the knowledge graph for biomedical testing of the present invention;
[0061] Figure 2 This is a flow chart of the method for constructing a knowledge graph for biomedical testing according to the present invention. DETAILED DESCRIPTION
[0062] 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.
[0063] Example 1
[0064] See also Figure 1 , a knowledge graph construction system for biomedical testing, including data acquisition module, data analysis module, knowledge graph construction module, knowledge graph management module, query and retrieval module, visualization module, semantic enhancement module, privacy and security module, and cross-domain data integration module;
[0065] Among them, the data acquisition module is used to provide the data source interface and perform data preprocessing; the data analysis module is used for statistical analysis and advanced analysis; the knowledge graph construction module is used for entity recognition and relationship extraction; the knowledge graph management module is used for graph update and version control; the query and retrieval module is used for natural language query and advanced retrieval; the visualization module is used for graph visualization and data analysis visualization; the semantic enhancement module is used for semantic annotation and ontology mapping; the privacy and security module is used to manage user permissions to ensure that data is encrypted during storage and transmission to prevent unauthorized access; the cross-domain data integration module is used for heterogeneous data integration and data standardization.
[0066] Among them, in this embodiment, it is also necessary to explain that the data acquisition module of this system also includes a data source interface unit, a data preprocessing unit, a relational database unit and a graph database unit; the data source interface unit is used to collect raw data from the database, file system, and API; the data preprocessing unit is used to perform preprocessing work such as data cleaning, denoising, and format conversion to ensure data quality; the relational database unit is used to store structured data, including patient information and test records; the graph database unit is used to store and manage knowledge graph data, and supports complex relationships and queries.
[0067] Among them, in this embodiment, it is also necessary to explain that the data analysis module of this system also includes a statistical analysis unit and an advanced analysis unit; the statistical analysis unit is used to perform basic statistical analysis, including frequency distribution and correlation analysis; the advanced analysis unit includes machine learning models and algorithms for predictive analysis and pattern recognition.
[0068] Among them, in this embodiment, it is also necessary to explain that the knowledge graph construction module of this system also includes an entity recognition unit and a relationship extraction unit; the entity recognition unit is used to extract genes, diseases or drugs from text data; the relationship extraction unit is used to identify the relationship between entities and add it to the graph.
[0069] Among them, in this embodiment, it is also necessary to explain that the knowledge graph management module of this system also includes a graph update unit and a version control unit; the graph update unit is used to dynamically update the knowledge graph according to new data and research results; the version control unit is used to manage the version of the knowledge graph and support rollback and historical record query.
[0070] Among them, in this embodiment, it is also necessary to explain that the query and retrieval module of this system also includes a natural language query unit and an advanced retrieval unit; the natural language query unit is used to support users to query in natural language and return relevant graph data; the advanced retrieval unit is used to provide complex query functions, including multi-condition screening and path analysis.
[0071] Among them, in this embodiment, it is also necessary to explain that the visualization module of this system also includes a graph visualization unit and a data analysis visualization unit; the graph visualization unit is used to graphically display the entities and their relationships in the knowledge graph; the data analysis visualization unit is used to display the analysis results, including statistical charts and the output of the prediction model.
[0072] Among them, in this embodiment, it is also necessary to explain that the semantic enhancement module of this system also includes a semantic annotation unit and an ontology mapping unit; the semantic annotation unit is used to add semantic labels to entities and relationships in the graph to improve data understanding and interoperability; the ontology mapping unit is used to map entities in the graph to existing biomedical ontologies to enhance the semantic richness of the data.
[0073] Among them, in this embodiment, it is also necessary to explain that the cross-domain data integration module of this system also includes a heterogeneous data integration unit and a data standardization unit; the heterogeneous data integration unit is used to integrate clinical data, genomic data and drug data to form a unified data view; the data standardization unit is used to standardize heterogeneous data to facilitate unified query and analysis in the knowledge graph.
[0074] Example 2
[0075] See also Figure 2 In practical applications, based on the above system, a knowledge graph construction method for biomedical testing specifically includes the following steps:
[0076] S1. Data collection:
[0077] S1.1. Data source selection: PubMed, Cli nic cal Trials gov and Adverse Drug Reaction Database;
[0078] S1.2. Data acquisition tools, use API and Web Scraping tools to obtain data;
[0079] S1.3. Data formatting: converting the acquired data into JSON or CSV standard format for subsequent processing;
[0080] S2. Data cleaning:
[0081] S2.1. Noise data filtering, use Random Forest to filter noise data and keep valid data;
[0082] S2.2. De-duplicate data, use DI ST I NCT in SQL to delete duplicate data;
[0083] S2.3. Check data consistency by using the .dropna() method of Pandas DataFrame to ensure data consistency;
[0084] S3. Data standardization:
[0085] S3.1. Unify the format and use Pandas and NumPy libraries to unify the data into the same format;
[0086] S3.2. Unit conversion: use the Pint unit conversion library to convert data in different units into a unified unit;
[0087] S3.3. Data normalization: Z-score standardization is used to ensure that data are compared on the same scale.
[0088] S4. Entity Recognition:
[0089] S4.1. Text preprocessing: use the NLTK library for word segmentation, part-of-speech tagging, and stop word removal;
[0090] S4.2. Entity recognition model training: Entity recognition training is performed based on the BERT or BioBERT model;
[0091] S4.3. Entity extraction: extract gene, disease and drug entities from text using the trained model and perform entity verification;
[0092] S5. Relationship extraction:
[0093] S5.1. Corpus annotation: Use BRAT annotation tool to annotate sample data.
[0094] S5.2. Relation extraction model training: Relation extraction model training based on Transformer deep learning model;
[0095] S5.3. Relationship verification: Use logical rules and expert review to verify and correct the extracted relationships;
[0096] S6. Ontology Mapping:
[0097] S6.1. Ontology selection, select an appropriate biomedical ontology;
[0098] S6.2. Entity alignment: Use OntoMapper ontology matching tool to align the identified entities with the ontology;
[0099] S6.3. Relation alignment: Map the extracted relations to the ontology relations through the Word2Vec semantic similarity calculation tool;
[0100] S7. Knowledge graph construction:
[0101] S7.1. Node creation, using Neo4j graph database to create entity nodes;
[0102] S7.2. Edge creation, establishing relationship edges between entities in the graph database;
[0103] S7.3. Graph structure optimization: optimize the structure and query efficiency of the knowledge graph through the PageRank graph algorithm;
[0104] S8. Knowledge graph storage:
[0105] S8.1. Graph database selection: Select Neo4j as the graph database.
[0106] S8.2. Data import: use Neo4j's neo4j-admin import to import the knowledge graph data into the database;
[0107] S8.3. Storage optimization, configure database index and cache strategy to improve query performance;
[0108] S9. Map update:
[0109] S9.1. Incremental data acquisition: Use API to obtain new data regularly;
[0110] S9.2. Incremental data processing: cleaning and standardizing the newly added data;
[0111] S9.3. Graph synchronization: Use batch processing tools to synchronize the processed incremental data to the knowledge graph;
[0112] S10. Semantic Enhancement:
[0113] S10.1. Semantic label generation, using Stanford NLP to generate semantic labels;
[0114] S10.2. Label application: applying the generated semantic labels to the nodes and edges of the knowledge graph;
[0115] S10.3. Semantic consistency check: check the consistency of semantic tags through OWL2 Reasoner;
[0116] S11. Spectrum verification:
[0117] S11.1. Structural verification: Use the verification function of the graph database to verify the graph structure;
[0118] S11.2. Data verification: compare the actual data with the data in the knowledge graph to verify the accuracy;
[0119] S11.3. Expert review: Invite domain experts to review the knowledge graph to ensure its accuracy and completeness;
[0120] S12. Data Analysis:
[0121] S12.1. Graph analysis algorithm selection, select an appropriate graph analysis algorithm;
[0122] S12.2. Data mining, using Gephi data mining tools for pattern mining and regularity discovery;
[0123] S12.3. Result interpretation: interpret and visualize the mining results to facilitate decision support for biomedical testing;
[0124] S13. User Interaction:
[0125] S13.1. Natural language query implementation, based on natural language processing technology to achieve natural language query function;
[0126] S13.2. Advanced search function, develop advanced search interface, support complex query and multi-condition combination search;
[0127] S13.3. User feedback mechanism: Establish a user feedback mechanism to collect user feedback to improve the system;
[0128] S14. Visual display:
[0129] S14.1. Graphical tool selection: D3.js or Cytoscape for knowledge graph display;
[0130] S14.2. Data visualization design: Design data visualization solutions, including the display methods of nodes, edges and relationships;
[0131] S14.3. Interactive visualization implementation, implements interactive visualization function, supports user click, drag and zoom operations, and improves user experience.
[0132] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A knowledge graph construction method for biomedical testing, which is based on a knowledge graph construction system for biomedical testing and is characterized in that: The following steps are involved: S1. Data collection: obtaining relevant biomedical data from multiple data sources to ensure the breadth and comprehensiveness of the data; S2. Data cleaning: clean the collected data, remove noise and duplicate data, and ensure data quality; S3. Data standardization: standardize the cleaned data, unify the data format and unit, and ensure data consistency; S4. Entity recognition, using natural language processing technology to identify biomedical related entities from text data, including genes, diseases, and drugs; S5. Relationship extraction: extract the relationship between entities from the data, establish the association between entities, and form a preliminary knowledge graph structure; S6. Ontology mapping, mapping the identified entities and relationships to existing biomedical ontologies to enhance the semantic richness and accuracy of the graph; S7. Knowledge graph construction: Organize entities and relationships in the form of nodes and edges to build a preliminary knowledge graph; S8. Knowledge graph storage: Store the constructed knowledge graph in the graph database to ensure its scalability and query efficiency; S9. Update the knowledge graph regularly or dynamically based on new data and research results to keep it up to date; S10. Semantic enhancement: semantically annotate the knowledge graph, add semantic tags, and improve the interpretability and data interoperability of the graph; S11. Graph verification: verify the constructed knowledge graph to ensure its accuracy and completeness; S12. Data analysis: perform data analysis on the knowledge graph to explore potential rules and patterns and provide decision support for biomedical testing; S13. User interaction, providing natural language query and advanced search functions, supporting users to easily access and utilize knowledge graphs; S14. Visual display: Display the knowledge graph and analysis results in a graphical way to facilitate user understanding and operation.
2. The knowledge graph construction system for biomedical detection according to claim 1, characterized in that: It includes data collection module, data analysis module, knowledge graph construction module, knowledge graph management module, query and retrieval module, visualization module, semantic enhancement module, privacy and security module, and cross-domain data integration module; The data acquisition module is used to provide a data source interface and perform data preprocessing; The data analysis module is used for statistical analysis and advanced analysis; The knowledge graph construction module is used for entity recognition and relationship extraction; The knowledge graph management module is used for graph update and version control; The query and retrieval module is used for natural language query and advanced retrieval; The visualization module is used for graph visualization and data analysis visualization; The semantic enhancement module is used for semantic annotation and ontology mapping; The privacy and security module is used to manage user permissions and ensure that data is encrypted during storage and transmission to prevent unauthorized access; The cross-domain data integration module is used for heterogeneous data integration and data standardization.
3. The knowledge graph construction system for biomedical testing according to claim 2, characterized in that: The data acquisition module also includes a data source interface unit, a data preprocessing unit, a relational database unit and a graph database unit; The data source interface unit is used to collect raw data from a database, a file system, or an API; The data preprocessing unit is used to perform preprocessing tasks such as data cleaning, denoising, format conversion, etc. to ensure data quality; The relational database unit is used to store structured data, including patient information and test records; The graph database unit is used to store and manage knowledge graph data and supports complex relationships and queries.
4. The knowledge graph construction system for biomedical testing according to claim 3, characterized in that: The data analysis module also includes a statistical analysis unit and an advanced analysis unit; The statistical analysis unit is used to perform basic statistical analysis, including frequency distribution and correlation analysis; The advanced analytics unit includes machine learning models and algorithms for predictive analytics and pattern recognition.
5. The knowledge graph construction system for biomedical testing according to claim 4, characterized in that: The knowledge graph construction module also includes an entity recognition unit and a relationship extraction unit; The entity recognition unit is used to extract genes, diseases or drugs from text data; The relationship extraction unit is used to identify the relationship between entities and add it to the graph.
6. The knowledge graph construction system for biomedical testing according to claim 5, characterized in that: The knowledge graph management module also includes a graph update unit and a version control unit; The graph updating unit is used to dynamically update the knowledge graph according to new data and research results; The version control unit is used to manage the version of the knowledge graph and supports rollback and history query.
7. The knowledge graph construction system for biomedical testing according to claim 6, characterized in that: The query and retrieval module also includes a natural language query unit and an advanced retrieval unit; The natural language query unit is used to support users to query in natural language and return relevant graph data; The advanced search unit is used to provide complex query functions, including multi-condition screening and path analysis.
8. The knowledge graph construction system for biomedical testing according to claim 7, characterized in that: The visualization module also includes a graph visualization unit and a data analysis visualization unit; The graph visualization unit is used to graphically display entities and their relationships in the knowledge graph; The data analysis visualization unit is used to display the analysis results, including statistical charts and outputs of the prediction model.
9. The knowledge graph construction system for biomedical testing according to claim 8, characterized in that: The semantic enhancement module also includes a semantic annotation unit and an ontology mapping unit; The semantic annotation unit is used to add semantic labels to entities and relationships in the graph to improve data understanding and interoperability; The ontology mapping unit is used to map entities in the atlas to existing biomedical ontologies to enhance the semantic richness of the data.
10. The knowledge graph construction system for biomedical testing according to claim 9, characterized in that: The cross-domain data integration module also includes a heterogeneous data integration unit and a data standardization unit; The heterogeneous data integration unit is used to integrate clinical data, genomic data and drug data to form a unified data view; The data standardization unit is used to standardize heterogeneous data to facilitate unified query and analysis in the knowledge graph.
Citation Information
Cited By
Water conservancy knowledge base construction method and system based on large model
CN119807446A
Multi-modal knowledge organization, governance and retrieval method and system
CN122735689A
Multi-modal knowledge organization and governance method and system
CN122903635A
