Multi-source knowledge graph construction method and system for chronic disease diagnosis and treatment

Through the knowledge reasoning method that combines deep learning and logical rules, it solves the problem of extracting and reasoning from multi-source unstructured data in intelligent medical care, builds a knowledge graph for chronic diseases, and improves the intelligence and interpretability of diagnosis and treatment.

CN118820486APending Publication Date: 2024-10-22SHANDONG NORMAL UNIV

Patent Information

Application Number
CN202410860912.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Electronic medical data in the field of intelligent medical care are mostly unstructured, with varying degrees of standardization and quality. Existing knowledge reasoning models are difficult to handle complex medical data and lack interpretability and transparency, which affects the application effect of knowledge graphs in disease diagnosis and treatment.

Method used

Methods based on pre-training models and deep learning are used to extract and integrate knowledge from multi-source medical data, combine logical rules and neural networks for knowledge reasoning, build a knowledge graph for chronic diseases, and use graph neural networks for knowledge enhancement.

Benefits of technology

It improves the predictive ability of the knowledge graph and the interpretability of the reasoning model, which can provide doctors with reliable decision-making basis and realize online and offline intelligent medical models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820486A_ABST
    Figure CN118820486A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of knowledge graph construction, and provides a chronic disease diagnosis and treatment-oriented multi-source knowledge graph construction method and system.The method comprises the steps that firstly, knowledge extraction is conducted on multi-source unstructured data to construct a knowledge graph, and entity relationship representation is enhanced based on external English data; a knowledge inference method combining symbol logical inference and a graph neural network is used to obtain a completed knowledge graph, so that the ability of a prediction model to process complex structured graph data is improved, the interpretability of an inference model can be improved, doctors are assisted to make decisions, and an online and offline intelligent medical mode can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field related to knowledge graph construction, and specifically, to a method and system for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment. Background Art

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.

[0003] Knowledge graphs can process complex data and support the integrated representation of data from different sources. They have unique advantages in decision support and personalized services.

[0004] The inventors found in their research that in the field of intelligent medicine, the quality of knowledge graph construction is affected by the fact that most electronic medical data is unstructured, the degree of data standardization and data quality vary, and the medical ontology is incomplete and lacks consistency. At the same time, existing knowledge reasoning models and algorithms are difficult to handle complex medical data and clinical scenarios, and the reasoning process lacks explanation and transparency, making it difficult to provide doctors with reliable and understandable decision-making basis. These problems seriously affect the effectiveness of the application of knowledge graphs in disease diagnosis and treatment. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a multi-source knowledge graph construction method and system for chronic disease diagnosis and treatment. By processing clinical electronic health records (EHR) and doctor-patient dialogue data, a deep learning method is used to extract medical feature entities and relationships, and knowledge fusion is performed to construct a knowledge graph for the chronic disease field. The knowledge graph is used to predict the risk of chronic diseases, thereby providing scientific guidance for the diagnosis and treatment of chronic diseases and realizing smart medical treatment for chronic diseases.

[0006] In order to achieve the above objectives, the present disclosure adopts the following technical solutions:

[0007] One or more embodiments provide a method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment, including the following steps:

[0008] Obtain multi-source medical data to be processed, and convert it into text sequence representation after preprocessing;

[0009] A method based on pre-training models and deep learning is used to extract knowledge from unstructured text data and convert it into structured triple representations;

[0010] Integrate the structured triple representations obtained by knowledge extraction, introduce English chronic disease electronic health record data, supplement entities and relationships, filter out erroneous triples, and build a knowledge graph based on the expanded and filtered triples;

[0011] The knowledge reasoning is performed by combining logical rules and neural network reasoning methods, and the knowledge is enhanced by knowledge graph embedding and graph neural network to obtain the completed knowledge graph.

[0012] One or more embodiments provide a multi-source knowledge graph construction system for chronic disease diagnosis and treatment, including:

[0013] Data input parsing module: configured to obtain multi-source medical data to be processed and convert it into text sequence representation after preprocessing;

[0014] Knowledge extraction module: It is configured to extract knowledge from unstructured text data and convert it into structured triple representation using a method based on pre-trained models and deep learning;

[0015] Knowledge fusion module: It is configured to integrate the structured triple representation obtained by knowledge extraction, introduce English chronic disease electronic health record data, supplement entities and relationships, filter erroneous triples, and build a knowledge graph based on the expanded and filtered triples;

[0016] Knowledge reasoning module: It is configured to use the joint reasoning method of logical rules and neural networks for knowledge reasoning, and use knowledge graph embedding and graph neural network to enhance knowledge and obtain the completed knowledge graph.

[0017] An electronic device includes a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps in the above-mentioned method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment are completed.

[0018] A computer-readable storage medium for storing computer instructions, which, when executed by a processor, complete the steps in the above-mentioned method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] The present invention first extracts knowledge from multi-source unstructured data to construct a knowledge graph, then enhances the entity relationship representation based on external English data, and uses a knowledge reasoning method that combines symbolic logic reasoning and graph neural network to obtain a completed knowledge graph, thereby improving the ability of the prediction model to process complex structured graph data and improving the interpretability of the reasoning model, thereby assisting doctors in making decisions and realizing an online and offline intelligent medical model.

[0021] The advantages of the present disclosure and the advantages of additional aspects will be described in detail in the following specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings constituting a part of the present disclosure are used to provide a further understanding of the present disclosure. The exemplary embodiments of the present disclosure and the description thereof are used to explain the present disclosure but do not constitute a limitation of the present disclosure.

[0023] Figure 1 This is a flow chart of the multi-source knowledge graph construction method of Embodiment 1 of the present disclosure;

[0024] Figure 2 This is a schematic diagram of preprocessing text and voice data in Embodiment 1 of the present disclosure;

[0025] Figure 3 is a flow chart of the knowledge extraction model of Embodiment 1 of the present disclosure;

[0026] Figure 4 is a schematic diagram of global optimization of entity tags in Embodiment 1 of the present disclosure;

[0027] Figure 5 This is a schematic diagram of the effect of fusing multi-source data to construct a knowledge graph in Embodiment 1 of the present disclosure;

[0028] Figure 6 is a system block diagram of Embodiment 2 of the present disclosure; DETAILED DESCRIPTION

[0029] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.

[0030] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.

[0031] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof. It should be noted that, in the absence of conflict, the various embodiments in the present disclosure and the features in the embodiments can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.

[0032] Example 1

[0033] In the technical solutions disclosed in one or more embodiments, Figures 1 to 5 As shown in the figure, a multi-source knowledge graph construction method for chronic disease diagnosis and treatment includes the following steps:

[0034] Step 1: Obtain the multi-source medical data to be processed and convert it into text sequence representation after preprocessing;

[0035] Among them, multi-source medical data may include voice data, video data, text data, etc.;

[0036] Step 2: Use a method based on pre-training models and deep learning to extract knowledge from unstructured text data and convert it into a structured triple representation;

[0037] Step 3: Integrate the knowledge extraction results, introduce English chronic disease electronic health record data, supplement entities and relationships, filter out erroneous triples, and build a knowledge graph based on the expanded and filtered triples;

[0038] Step 4: Use logical rules and neural network joint reasoning methods to perform knowledge reasoning, use knowledge graph embedding and graph neural network to enhance knowledge, and obtain a completed knowledge graph; this is used to predict the risk of chronic diseases.

[0039] In this embodiment, knowledge is first extracted from multi-source unstructured data to construct a knowledge graph, and then the entity relationship representation is enhanced based on external English data. A knowledge reasoning method that combines symbolic logic reasoning and graph neural network is used to obtain a completed knowledge graph. This improves the ability of the prediction model to process complex structured graph data and can improve the interpretability of the reasoning model, thereby assisting doctors in making decisions and realizing an online and offline intelligent medical model.

[0040] In step 1, data is collected and preprocessed.

[0041] In some embodiments, taking the medical field as an example, the data to be analyzed is clinical data related to chronic diseases, including multi-source data such as electronic health records, diagnostic conversations, and examination results; the raw data is preprocessed to extract the main information and uniformly converted into a text sequence representation;

[0042] Specifically, the test results include blood pressure levels, blood sugar levels, blood tests, and other tests commonly used in the diagnosis and treatment of chronic diseases;

[0043] It is feasible to screen electronic health records related to chronic cardiovascular diseases, chronic respiratory diseases, diabetes, etc. from various public medical electronic health record systems, including patients' diagnosed diseases, treatment plans, drugs used, test results, etc., and collect doctor-patient conversation voice data from the medical question-and-answer open data set.

[0044] Optionally, the electronic health records (EHR) data of different databases have different storage formats, and the electronic health records (EHR) data related to chronic diseases are collected and stored in Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format;

[0045] Optionally, unstructured diagnostic conversation data may be stored in WAV (Waveform Audio File Format) or text format.

[0046] In some embodiments, the raw data is preprocessed to achieve data parsing, including processing the electronic health record text, extracting the patient's diagnosis results, surgical treatment, medications used, medical history and other key information to form a text sequence, and using speech-to-text technology for doctor-patient conversation data to convert the conversation into a text sequence representation containing the main information.

[0047] In some embodiments, the preprocessing of the doctor-patient conversation data uses speech-to-text technology to convert the conversation into a text sequence representation containing the main information;

[0048] Specifically, a gated recurrent unit (GRU) is used as a feature extractor to extract features and convert speech data into semi-structured text representation; wherein, the loss function in the training process of the gated recurrent unit adopts a connection time series classification function;

[0049] The conversations between doctors and patients are often long time series. The gated recurrent unit can effectively capture the long-term dependencies and improve the accuracy of speech-to-text conversion. In addition, Connectionist Temporal Classification (CTC) is a loss function used to train sequence-to-sequence tasks. It is trained directly in the end-to-end model, thereby converting the voice conversations between doctors and patients into semi-structured text representations.

[0050] For semi-structured electronic health record data stored in formats such as XML, a text processor is built using Python to filter out irrelevant information such as patient names and contact information, and only extract information related to the construction of chronic disease knowledge graphs, such as: diseases, symptoms, test results, medications used, treatment recommendations, etc., and finally construct a text sequence for the next step of knowledge extraction.

[0051] Step 2 is the step of extracting knowledge from the data.

[0052] In some embodiments, knowledge extraction is performed on unstructured text sequence data, including named entity recognition and relationship extraction, and the specific method is as follows:

[0053] Step 21: extract vocabulary from the target text sequence based on the trained MacBERT word segmentation model, and generate word vectors containing context information;

[0054] Step 211: for the text sequence based on the main information of the chronic disease patients, construct a vocabulary in the field of chronic diseases by using a dictionary-based method, replace the general vocabulary of the pre-trained model MacBERT, and retrain the MacBERT word segmentation model based on the replaced vocabulary;

[0055] Specifically, we build a vocabulary in the field of chronic diseases based on the dictionary method, use the Python natural language toolkit NLTK to extract professional vocabulary, and build a vocabulary in the field of chronic diseases in Chinese, including proper nouns such as disease names, symptoms, and drugs;

[0056] MacBERT is a Chinese natural language pre-training model, which is an improvement on the BERT pre-training model. Specifically, BERT uses the Masked Language Model (MLM) to randomly mask sentences. MacBERT improves MLM and adopts a whole-word masking strategy to retain the integrity of Chinese words and enhance the model's understanding of word semantics, thereby improving the performance of Chinese speech processing. In addition, masked words are not replaced with the [MASK] symbol, but with subwords similar to the original words, namely the adversarial masking strategy, which enables the model to learn stronger context representations and avoids the inconsistency problem between the test phase and the training phase.

[0057] Step 212: Using the retrained MacBERT word segmentation model, extracting vocabulary from the word segmentation model target text sequence, and generating a word vector containing context information;

[0058] The process of generating word vectors based on the MacBERT word segmentation model is as follows:

[0059] 1) The target text sequence is the text sequence to be processed. After word segmentation based on the custom vocabulary, it is input into the embedding layer to obtain the embedded vector representation;

[0060] Specifically, the processing process of the embedding layer of the MacBERT word segmentation model is:

[0061] The Token embedding layer converts words into fixed-dimensional word vector representations t;

[0062] The Segment embedding layer classifies paired input texts by semantic similarity and generates text vectors s containing different indexes. The index is used to distinguish the sentences to which the word vectors in the input belong.

[0063] The Position embedding layer represents the position sequence of the word vector as a position vector p, and sums and connects the vectors to get the final embedding vector representation. The formula is as follows:

[0064] e i =t i +s i +p i (1)

[0065] E=(e1,e2,...,e n ) (2)

[0066] 2) The obtained embedding vector representation is input into the encoding layer of MacBERT for encoding. Based on the self-attention mechanism, the weight coefficient matrix is ​​adjusted by calculating the degree of association between words in the sentence to obtain the word representation, and then the context-related word embedding vector is generated;

[0067] Specifically, the embedding result E is input into the encoding layer of MacBERT. The encoding layer adopts a two-layer Transformer structure and embeds the word vector e based on the scaled dot product self-attention mechanism. i Projected into different vector spaces, modeled as query vectors q i , key vector k i , value vector v i , and then calculate the attention weight;

[0068]

[0069] in, It represents the attention weight of the i-th input vector to each other vector. The weight coefficient matrix is ​​adjusted by calculating the correlation between words in the sentence to obtain the word representation, and then the context-related word embedding vectors T1, T2, ..., T n :

[0070] Step 22: Use a bidirectional long short-term memory network (BiLSTM) to capture the contextual semantic information of the word vector to enhance the semantic representation of each word vector; use a conditional random field (CRF) to perform global optimization of the entity label sequence to obtain the entity recognition result;

[0071] Specifically, the context-related word vectors are input into the Bidirectional Long Short-Term Memory (BiLSTM) network to capture the contextual semantic information of the word vector to enhance the semantic representation of each word vector. The Conditional Random Field (CRF) is used to perform global optimization of the label sequence and model the dependency between label sequences to ensure that the entity prediction results are accurate and reasonable.

[0072] LSTM implements unit state update based on the gating mechanism. For each input word vector T i , respectively, using forward and backward LSTM to calculate the hidden state, as shown below:

[0073] f i =sigmoid(W1·[h i-1 ,T i ]+b1) (4)

[0074] i i =sigmoid(W2·[h i-1 ,T i ]+b2) (5)

[0075] o i =sigmoid(W3·[h i-1 ,T i ]+b3) (6)

[0076]

[0077] Among them, f i For the forget gate, i i is the input gate, o i is the output gate, h i-1 represents the hidden state of the previous vector, is the updated unit state, W1, W2, W3, W4 are parameter matrices, b1, b2, b3, b4 are bias values;

[0078]

[0079] Among them, C i-1 represents the cell state of the previous vector, C i Represents the unit state of the current input word vector;

[0080] h i =o i *tanh(C i ) (9)

[0081] Among them, h iis the forward hidden state, and the backward LSTM obtains the backward hidden state h′ in the reverse order i , concatenate the two hidden states to obtain the final word vector that enhances the contextual semantic information.

[0082] like Figure 4 As shown, assuming there are m entity type labels, a path is randomly selected using conditional random fields for global optimization and the path score is calculated:

[0083]

[0084] Among them, P correct is the score of the correct path, P1, P2, ..., P m*n is the score of all paths, n represents the sequence length of the input vector, e is the natural logarithm, and the training goal is to make S as large as possible, that is, the path passes through the correct label as much as possible;

[0085] Step 23: The word vector output by BiLSTM is used to calculate the attention score of each word based on the attention mechanism, and the weighted and mapped words are used to obtain the relationship classification. The identified relationship is converted into a triple form to realize the joint extraction of entities and relationships.

[0086] Specifically, the entity and its context information encoding information generated by BiLSTM are input into the attention layer, the attention score of each word is calculated, and the weighted context representation is generated. Then, it is mapped through the fully connected layer to obtain the result of relationship classification, so as to realize the joint extraction of entities and relationships.

[0087] In the above solution, electronic health record text and doctor-patient voice conversation data were integrated, various types of diagnosis and treatment data involved in real clinical diagnosis scenarios were taken into consideration, knowledge was extracted from multi-source unstructured data, and a knowledge graph in the field of chronic diseases was constructed, thereby improving the effects of medical data management and data mining.

[0088] In the knowledge extraction stage, the entity and relationship joint extraction method is adopted, which can effectively improve the problem of knowledge conflict. However, there may be inaccurate entities or relationships in the original text sequence, which will propagate and produce a cumulative effect in the entire knowledge extraction process, resulting in erroneous triples.

[0089] Since there is less electronic data on chronic diseases in Chinese, and there are many types of entities and relationships involved in the medical field, some relationships are difficult to extract from the knowledge graph built based on Chinese electronic medical records, and the edges of the graph are relatively sparse, which will limit the reasoning ability of the knowledge graph. Therefore, we consider fusing the English chronic disease data with richer relationships and higher standardization to filter out incorrect triples, which can enhance the edge relationships of the knowledge graph.

[0090] In this embodiment, in step 3, external data is introduced to update knowledge: English chronic disease electronic medical record data is integrated, triple representation is expanded, entities and relationships in the field of chronic diseases are supplemented, and erroneous triples are filtered; a knowledge graph is constructed based on triples and stored in a graph database;

[0091] In some embodiments, the knowledge extraction results are integrated, external chronic disease English electronic health record (EHR) data is integrated, referred to as English EHR data, and the generated chronic disease structured data is standardized and expanded. The specific method is:

[0092] Step 31, preprocessing and extracting the English chronic disease data to obtain a structured triple representation of the English electronic health record data;

[0093] Specifically, the English chronic disease data is preprocessed, and the biomedical pre-trained model BioBERT is used to generate word vectors, which are input into the BiLSTM to encode the word vectors containing contextual semantic information, and the conditional random field and fully connected layer are used to classify entities and relationships. The processing method is the same as that of steps 1 to 2, so it will not be repeated here;

[0094] Step 32, perform standard mapping, establish local encoding of Chinese entities to ICD international standard mapping, and translate the structured triples of English EHR data into Chinese representation;

[0095] Specifically, local standard mapping is used to ensure that the Chinese and English chronic disease data are consistent in structure and content. Specifically, the local coding of Chinese entities is mapped to the ICD international standard, and the English EHR data entities and relationships are translated into Chinese representations with the help of machine translation technology.

[0096] In this embodiment, the structured triple data processed in step 2 is structured triple data based on Chinese data, external data is introduced for knowledge update, and English EHR data is introduced to supplement the structured data processed in step 2;

[0097] The structured triple data based on English data and the structured triple data based on Chinese data are fused, that is, the Chinese and English structured data are fused, including the following steps:

[0098] Step 33: Standardize and map Chinese entities and English entities, remove redundancy, and align Chinese and English relationship types;

[0099] Specifically, with the help of the Unified Medical Language System (UMLS), the data is standardized and mapped, redundancy is removed, and the relationship types are aligned. The standardized terminology system provided by UMLS is used to normalize entities through unique concept identifiers (CUI) to ensure that the fused data are compatible in structure and semantics; for example, "high blood pressure" and "hypertension" will be mapped to the same concept identifier (CUI);

[0100] Step 34: The standardized Chinese and English entities and aligned relationships are merged, and the English entity relationships are introduced to supplement the missing relationships of the Chinese entities. Finally, they are represented as a unified knowledge graph and stored in the Neo4j graph database; the credibility of the conflicting triples is evaluated, and the triples with low credibility are filtered, so as to effectively remove the erroneous entities and relationships in the original data;

[0101] In this embodiment, the method of integrating external cross-language medical data to enhance entity relationship representation takes into account the problem of sparse relationships when building a knowledge graph using a single data source, which limits the knowledge reasoning ability. Therefore, by introducing English chronic disease data, enriching entity and relationship representations, and filtering incorrect relationship representations, the quality of building a knowledge graph is improved.

[0102] Step 4 is the knowledge reasoning step; define the knowledge graph reasoning rules, perform knowledge reasoning on the constructed knowledge graph, generate new triples, and use knowledge graph embedding and graph neural network to perform knowledge enhancement to obtain the completed knowledge graph;

[0103] The combined reasoning method of logical rules and neural networks is used to realize disease diagnosis and treatment and risk prediction based on the constructed chronic disease knowledge graph. The logical rule-based reasoning method is first used for preliminary reasoning, and then the neural network method is used for deep reasoning, including the following steps:

[0104] Step 41: Take the entities and relationships used to construct the knowledge graph as facts and define the knowledge graph logical reasoning rules:

[0105] Step 42: Apply the defined logical reasoning rules to perform preliminary reasoning, and obtain the reasoning logic and path as the logical reasoning result, which is used to provide an interpretability basis;

[0106] Specifically, a forward reasoning strategy is adopted to traverse and check whether there are satisfied premise conditions in the rule set, derive new facts based on the logical reasoning rules, repeat the above steps, and record the reasoning path until the reasoning cannot be continued or the target node is reached;

[0107] Step 43: Use the knowledge graph embedding model TransE to generate an embedding vector, which is input into the graph convolutional network (GCN) to capture the structural information of the knowledge graph and the relationship between nodes, and then obtain a feature vector and input it into the fully connected layer to integrate the features extracted by the convolutional layer of the graph convolutional neural network, output a more advanced feature representation, and obtain the entity relationship classification result as the output result of the neural network;

[0108] Specifically, TransE is a knowledge graph embedding model that embeds nodes and edges by projecting the head and tail entities onto the hyperplane corresponding to the relationship, thereby generating a low-dimensional embedding vector;

[0109] Step 44: Weighted fusion of the logical reasoning results and the neural network output results is performed to obtain the final knowledge reasoning results and an explainable reasoning path, and the knowledge reasoning results are used to perform link prediction and then complete the knowledge graph; based on the completed knowledge graph, the target data to be analyzed is obtained, and the disease risk of the patient can be predicted.

[0110] This embodiment uses a knowledge reasoning method that combines symbolic logic reasoning and graph neural network to improve the ability of the prediction model to process complex structured graph data and can improve the interpretability of the reasoning model.

[0111] Furthermore, it also includes the output of result analysis, output of risk prediction results for diseases that patients may suffer from, and interpretation of the prediction results in combination with the reasoning path in the knowledge graph, visualizing the results and analysis, and providing scientific guidance for doctors' diagnosis and treatment of chronic diseases.

[0112] Example 2

[0113] Based on Example 1, this embodiment provides a multi-source knowledge graph construction system for chronic disease diagnosis and treatment, such as Figure 6 As shown, including:

[0114] Data input parsing module: configured to obtain multi-source medical data to be processed and convert it into text sequence representation after preprocessing;

[0115] Knowledge extraction module: It is configured to extract knowledge from unstructured text data using a method based on a pre-trained model and deep learning, and convert it into a structured triple representation;

[0116] Knowledge update module: It is configured to integrate the structured triple representation obtained by knowledge extraction, introduce English chronic disease electronic health record data, supplement entities and relationships, filter erroneous triples, and build a knowledge graph based on the expanded and filtered triples;

[0117] Knowledge reasoning module: It is configured to use the joint reasoning method of logical rules and neural networks for knowledge reasoning, and use knowledge graph embedding and graph neural network to enhance knowledge and obtain the completed knowledge graph.

[0118] In some feasible embodiments, the data is input into a parsing module, which pre-processes the speech data in the multi-source medical data, uses a gated recurrent unit as a feature extractor to perform feature extraction, and converts the speech data into a semi-structured text representation.

[0119] In some embodiments, the knowledge extraction module is configured to perform knowledge extraction on unstructured text sequence data, including named entity recognition and relationship extraction, including:

[0120] Word vector generation module: configured to extract vocabulary from the target text sequence based on the trained MacBERT word segmentation model and generate word vectors containing context information;

[0121] Entity recognition module: It is configured to use a bidirectional long short-term memory network to capture the contextual semantic information of word vectors to enhance the semantic representation of each word vector; it uses conditional random fields to perform global optimization of entity label sequences to obtain entity recognition results;

[0122] Relation classification module: It is configured to obtain word vectors, calculate the attention score of each word based on the attention mechanism, perform weighting and mapping to obtain relationship classification, convert the identified relationship into the form of triples, and realize the joint extraction of entities and relationships.

[0123] The word vector generation module includes the following steps:

[0124] The first model training module is configured to construct a vocabulary in the field of chronic diseases based on a text sequence composed of main information of chronic disease patients by a dictionary-based method, replace the general vocabulary of the pre-trained model MacBERT, and retrain the MacBERT word segmentation model based on the replaced vocabulary;

[0125] The word vector extraction module is configured to use the retrained MacBERT word segmentation model to extract vocabulary from the target text sequence of the word segmentation model and generate a word vector containing context information.

[0126] In some embodiments, the knowledge update module is configured to integrate the knowledge extraction results, fuse the external chronic disease English electronic health record data, standardize and expand the generated structured triple data based on English data, including:

[0127] English data structuring module: configured to perform data preprocessing and data extraction on English chronic disease data to obtain a structured triple representation of English electronic health record data;

[0128] Chinese-English mapping module: It is configured to perform standard mapping, establish local encoding of Chinese entities to ICD international standard mapping, and translate the structured triples of English electronic health record data into Chinese representation.

[0129] Alignment module: It is configured to perform standardized mapping of Chinese entities and English entities, remove redundancy, and align Chinese and English relationship types;

[0130] Update fusion module: It is configured to fuse the standardized Chinese and English entities and aligned relations. For the missing relations of Chinese entities, English entity relations are introduced to supplement them, and they are represented as a unified knowledge graph. The credibility of conflicting triples is evaluated, and triples with low credibility are filtered out to remove erroneous entities and relations.

[0131] In some embodiments, the knowledge reasoning module is configured to adopt a combined reasoning method of logic rules and neural networks, including:

[0132] Inference rule definition module: It is configured to define the logical inference rules of the knowledge graph by taking the entities and relationships used to build the knowledge graph as facts:

[0133] Logical reasoning module: configured to apply defined logical reasoning rules to perform preliminary reasoning, obtain reasoning logic and path as logical reasoning results, and provide interpretability basis;

[0134] Neural network reasoning module: It is configured to capture the structural information of the knowledge graph and the relationship between nodes based on the graph convolutional neural network, obtain the feature vector and input it into the fully connected layer, integrate the features extracted by the convolutional layer of the graph convolutional neural network, output a more advanced feature representation, and obtain the entity relationship classification result as the output result of the neural network;

[0135] Reasoning result weighted fusion module: It is configured to weightedly fuse the logical reasoning results and the neural network output results to obtain the final knowledge reasoning results and explainable reasoning paths, and use the knowledge reasoning results to perform link prediction and complete the knowledge graph.

[0136] Furthermore, it also includes a result analysis output module, which is configured to output risk prediction results for diseases that patients may suffer from, and interpret the prediction results in combination with the reasoning path in the knowledge graph, visualize the results and analysis, and provide scientific guidance for doctors' diagnosis and treatment of chronic diseases.

[0137] It should be noted here that the various modules in this embodiment correspond one-to-one to the various steps in Example 1, and the specific implementation process is the same, which will not be repeated here.

[0138] Example 3

[0139] Based on Example 1, this embodiment provides an electronic device, including a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are executed by the processor, the steps in the method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment described in Example 1 are completed.

[0140] Example 4

[0141] Based on Example 1, this example provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps in the method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment described in Example 1 are completed.

[0142] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

[0143] Although the above describes the specific implementation methods of the present disclosure in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present disclosure. Technical personnel in the relevant field should understand that on the basis of the technical solution of the present disclosure, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present disclosure.

Claims

1. A method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment, characterized in that: The steps include: Obtain multi-source medical data to be processed, and convert it into text sequence representation after preprocessing; A method based on pre-training models and deep learning is used to extract knowledge from unstructured text data and convert it into structured triple representations; Integrate the structured triple representations obtained by knowledge extraction, introduce English chronic disease electronic health record data, supplement entities and relationships, filter out erroneous triples, and build a knowledge graph based on the expanded and filtered triples; The knowledge reasoning is performed by combining logical rules and neural network reasoning methods, and the knowledge is enhanced by knowledge graph embedding and graph neural network to obtain the completed knowledge graph.

2. A method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as claimed in claim 1, characterized in that: In the preprocessing of speech data in multi-source medical data, a gated recurrent unit is used as a feature extractor to extract features and convert speech data into semi-structured text representation.

3. The method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as claimed in claim 1, characterized in that: Knowledge extraction from unstructured text sequence data, including named entity recognition and relationship extraction, the specific method is as follows: Extract words from the target text sequence based on the trained MacBERT word segmentation model and generate word vectors containing context information; Use a bidirectional long short-term memory network to capture the contextual semantic information of word vectors to enhance the semantic representation of each word vector; use conditional random fields to perform global optimization of entity label sequences to obtain entity recognition results; The obtained word vectors are used to calculate the attention score of each word based on the attention mechanism, and the relationship classification is obtained by weighting and mapping. The identified relationship is converted into a triple form to achieve joint extraction of entities and relationships.

4. A method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as claimed in claim 3, characterized in that: The method for generating word vectors includes the following steps: For text sequences based on the main information of chronic disease patients, a vocabulary in the field of chronic diseases is constructed through a dictionary-based method, the general vocabulary of the pre-trained model MacBERT is replaced, and the MacBERT word segmentation model is retrained based on the replaced vocabulary; The retrained MacBERT word segmentation model is used to extract vocabulary from the target text sequence of the word segmentation model and generate word vectors containing context information.

5. The method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as claimed in claim 1, characterized in that: The knowledge extraction results are integrated, external chronic disease English electronic health record data are integrated, and the generated structured triple data based on English data are standardized and expanded. The specific methods are as follows: The English chronic disease data were preprocessed and extracted to obtain the structured triple representation of the English electronic health record data; Perform standard mapping, establish local encoding of Chinese entities to ICD international standard mapping, and translate structured triples of English electronic health record data into Chinese representation.

6. A method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as claimed in claim 5, characterized in that: The fusion of structured triple data based on English data and structured triple data based on Chinese data includes the following steps: Standardize and map Chinese and English entities, remove redundancy, and align Chinese and English relationship types; The standardized Chinese and English entities and aligned relationships are merged, and the English entity relationships are introduced to supplement the missing relationships of the Chinese entities. The two are represented as a unified knowledge graph, and the credibility of the conflicting triples is evaluated. The erroneous entities and relationships are removed based on the credibility judgment.

7. The method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment according to claim 1, characterized in that: The combined reasoning method of logical rules and neural networks includes the following steps: Take the entities and relationships used to construct the knowledge graph as facts and define the knowledge graph logical reasoning rules: Apply the defined logical reasoning rules to perform preliminary reasoning, and obtain the reasoning logic and path as the logical reasoning result, which is used to provide an interpretability basis; Based on the graph convolutional neural network, the structural information of the knowledge graph and the relationship between nodes are captured, the feature vector is obtained and input into the fully connected layer, the features extracted by the convolutional layer of the graph convolutional neural network are integrated together, a more advanced feature representation is output, and the entity relationship classification result is obtained as the output result of the neural network; The logical reasoning results and the neural network output results are weighted and fused to obtain the final knowledge reasoning results and explainable reasoning paths. The knowledge reasoning results are used to perform link prediction and complete the knowledge graph.

8. A multi-source knowledge graph construction system for chronic disease diagnosis and treatment, characterized by: include: Data input parsing module: configured to obtain multi-source medical data to be processed and convert it into text sequence representation after preprocessing; Knowledge extraction module: It is configured to extract knowledge from unstructured text data using a method based on a pre-trained model and deep learning, and convert it into a structured triple representation; Knowledge fusion module: It is configured to integrate the structured triple representation obtained by knowledge extraction, introduce English chronic disease electronic health record data, supplement entities and relationships, filter erroneous triples, and build a knowledge graph based on the expanded and filtered triples; Knowledge reasoning module: It is configured to use the joint reasoning method of logical rules and neural networks for knowledge reasoning, and use knowledge graph embedding and graph neural network to enhance knowledge and obtain the completed knowledge graph.

9. An electronic device, characterized in that: It includes a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps in the method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as described in any one of claims 1 to 7 are completed.

10. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the steps of a method for constructing a multi-source knowledge graph for chronic disease diagnosis and treatment as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Chronic non-infectious disease risk prediction system based on knowledge graph

    CN110277167A

  • Traditional Chinese medicine diagnosis and treatment knowledge graph construction method oriented to public health emergencies

    CN115408538A

  • Chronic disease clinical decision support system and construction method

    CN117423470A

Cited By

  • Multi-modal intelligent medical scene dynamic reasoning method and device based on medical knowledge

    CN119294534A

  • Multimodal intelligent medical scene dynamic reasoning method and device based on medical knowledge

    CN119294534B

  • Knowledge reasoning method, system and device for multivariate relation scene and medium

    CN119358689A

  • Clinical medical insurance chronic disease medical data processing system based on artificial intelligence NLP

    CN119763855A

  • ICD coding method and device

    CN119782955A