Disease diagnosis and treatment causal knowledge graph construction method and device
By constructing a disease diagnosis and treatment causal knowledge graph, we solve the problem of false correlations in existing medical knowledge graphs, deeply explore causal relationships, and improve the accuracy of diagnosis and treatment decisions and the generalization ability of the model.
Patent Information
- Application Number
- CN202410647051.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-08-27
AI Technical Summary
Existing medical knowledge graphs often describe semantic relationships related to diagnosis and treatment, causing the model to learn false associations in the data set, reducing the prediction ability in out-of-distribution scenarios, and cannot be widely used in real scenarios.
The disease diagnosis and treatment causality knowledge graph construction method is adopted. By loading the patient-centered disease diagnosis and treatment knowledge graph, the disease diagnosis and treatment causality chain and the treatment decision-making causality chain are extracted and mined. The causal subgraph mining method is used to construct the disease diagnosis and treatment causality knowledge graph. reflect true cause-and-effect relationships.
It deeply explores the causal relationship chain, assists doctors in making diagnosis and treatment decisions, and improves the model's out-of-distribution generalization ability and diagnostic effect.
Smart Images

Figure CN118553433A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a method for constructing a disease diagnosis and treatment causal knowledge graph. Background Art
[0002] In recent years, thanks to the continuous growth of medical text data and the improvement of the performance of natural language processing basic task models, the technology of building medical knowledge graphs has made rapid progress, and a large number of intelligent diagnosis and treatment works based on medical knowledge graphs have emerged. Although this type of work has indeed improved the accuracy of diagnosis and treatment on the data set, it has not yet been widely used in the real world.
[0003] One of the reasons for the above phenomenon is that the knowledge graphs in the medical field often describe semantic relationships related to diagnosis and treatment, such as patient numbers, imaging examinations, and CT examinations. Model training on such knowledge graphs can easily learn false associations between patient information in the dataset, reducing the model's predictive ability in out-of-distribution scenarios, making the model unable to be widely used in real scenarios.
[0004] To solve the above problems, the present invention proposes a method for a disease diagnosis and treatment causal knowledge graph. The method utilizes structured and semi-structured knowledge in medical databases, and based on existing causal structure learning methods, learns the causal chain related to patient diagnosis and treatment decisions, reflecting the real causal relationship in patient diagnosis and treatment decisions, so that the model built on the disease diagnosis and treatment causal knowledge graph can learn more causal relationships, and at the same time assist doctors in making diagnosis and treatment decisions. Summary of the invention
[0005] In order to solve the problems in the prior art, the present invention provides a method, device and computer-readable storage medium for constructing a disease diagnosis and treatment causal knowledge graph.
[0006] The present invention is specifically implemented through the following technical solutions:
[0007] A method for constructing a disease diagnosis and treatment causal knowledge graph comprises the following steps:
[0008] Loading a patient-centered disease diagnosis and treatment knowledge graph, wherein the disease diagnosis and treatment knowledge graph includes: a disease layer, a patient attribute layer, and a symptom, examination, and treatment layer;
[0009] Extract disease diagnosis causal chain candidate datasets from the disease diagnosis and treatment knowledge graph;
[0010] Extract candidate datasets of causal chain of treatment decision from disease diagnosis and treatment knowledge graph;
[0011] Mining disease diagnosis causal relationship chains from disease diagnosis causal relationship chain candidate datasets;
[0012] mining treatment decision causal chains from treatment decision causal chain candidate datasets;
[0013] Merge the disease diagnosis causal chain and the treatment decision causal chain, build and output the disease diagnosis and treatment causal knowledge graph centered on the patient attribute subset;
[0014] The method of mining the disease diagnosis causal relationship chain and the treatment decision causal relationship chain adopts a causal subgraph mining method.
[0015] As a further improvement of the present invention, the patient-centered disease diagnosis and treatment knowledge graph includes:
[0016] Disease layer: This layer describes the diseases and syndromes suffered by the patient, and is the main reason and basis for the patient to show specific symptoms and the doctor to take specific treatment methods;
[0017] Patient attribute layer: This layer describes the patient's personalized attributes, including gender, age, physical signs, and medications. It is an important factor that affects the patient's current symptoms and the treatment methods formulated by doctors.
[0018] Symptom, examination and treatment layer: This layer describes the symptoms of the patient due to the disease and syndrome, the results and conclusions of the patient's laboratory tests, imaging tests, pathological tests, and other tests, and the treatment methods developed for the corresponding diseases, syndromes and patient attributes;
[0019] Entity relationships: include the relationships between patients and diseases and syndromes, the relationships between patients and attributes, the relationships between patients and symptoms, the relationships between patients and examinations, and the relationships between patients and treatments.
[0020] As a further improvement of the present invention, the method of extracting a candidate data set of a disease diagnosis causal relationship chain includes the following steps:
[0021] Extract symptom entity subsets and patient data subsets: Find symptom entity subsets with high co-occurrence frequency from the symptom and treatment layers of the disease diagnosis and treatment knowledge graph. The co-occurrence frequency refers to the number of patients containing the entity subset. At the same time, store the patient data containing the symptom entity subset into the patient data subset;
[0022] Extract disease entity subsets and expand patient data subsets: Find a subset of disease and syndrome entities with high co-occurrence frequency from the disease layer of the patient data corresponding to the symptom entity subset to form a disease entity subset. At the same time, find patient data containing disease and syndrome entity subsets in the disease diagnosis and treatment knowledge graph and store them in the patient data subset, so that the expanded patient data set satisfies the Markov blanket property.
[0023] Determine the interference factor subset: From the patient data containing the symptom entity subset and the corresponding disease entity subset, find the attribute entity subset with high co-occurrence frequency to form the interference factor subset;
[0024] Construct a candidate dataset for the disease diagnosis causal relationship chain: store multiple symptom entity subsets, multiple disease entity subsets, multiple interference factor subsets, and multiple patient data subsets into a separate dataset to form a candidate dataset for the disease diagnosis causal relationship chain.
[0025] As a further improvement of the present invention, extracting a candidate data set of a treatment decision causal relationship chain includes the following steps:
[0026] Extract treatment entity subsets and patient data subsets: Find treatment entity subsets with high co-occurrence frequency from the symptoms and treatment layers of the disease diagnosis and treatment knowledge graph. The co-occurrence frequency refers to the number of patients containing the entity subset. At the same time, store the patient data containing the treatment entity subset in the patient data subset;
[0027] Extract disease entity subsets, symptom entity subsets, and expand patient data subsets: Find a subset of disease and syndrome entities with high co-occurrence frequency from the disease layer of the patient data corresponding to the treatment entity subset to form a disease entity subset; find a subset of symptom entities with high co-occurrence frequency from the same patient data to form a symptom entity subset; find patient data containing disease and syndrome entity subsets in the disease diagnosis and treatment knowledge graph, and store them in the patient data subset, so that the expanded patient data set satisfies the Markov blanket property;
[0028] Determine the interference factor subset: From the patient data containing the treatment entity subset and the corresponding disease entity subset, find the attribute entity subset with high co-occurrence frequency to form the interference factor subset;
[0029] Constructing a candidate dataset for the causal chain of treatment decisions: storing multiple treatment entity subsets, multiple disease entity subsets, multiple symptom entity subsets, multiple interference factor subsets, and multiple patient data subsets into separate datasets to form a candidate dataset for the causal chain of treatment decisions.
[0030] As a further improvement of the present invention, mining causal relationship chains from a causal relationship chain candidate data set includes the following steps:
[0031] Data quantification and initial causal diagram setup;
[0032] First cut of the causal graph;
[0033] Secondary cropping of causal graphs.
[0034] As a further improvement of the present invention, mining a disease diagnosis causal relationship chain from a disease diagnosis causal relationship chain candidate data set includes the following steps:
[0035] Data quantification and initial causal graph setting: Using the element representation algorithm, the observation data in the candidate data of the disease diagnosis causal chain are converted into values or categories, and the causal relationship corresponding to the data is set as all diseases leading to all symptoms, and all patient attributes leading to diseases and symptoms, forming an initial causal graph;
[0036] First trimming of the causal graph: Based on the quantified disease diagnosis causal chain candidate data and the initial causal graph, the causal effects between the patient attributes and the disease and symptom nodes, and the causal effects between the disease and the examination nodes are calculated, and the edges with weak causal effects between the attributes and the disease, the attributes and the symptoms, and the diseases and the examinations are removed to obtain the first trimmed causal graph;
[0037] Secondary trimming of the causal graph: Based on the quantified disease diagnosis causal chain candidate data and the first trimmed causal graph, the causal effect between the disease and symptom nodes under the interference of multiple attributes of the patient is calculated, the edges with weak causal effects between the disease and symptoms are removed, and finally the independent nodes without causal relationship are removed to form a diagnostic causal subgraph.
[0038] As a further improvement of the present invention, mining a treatment decision causal relationship chain from a treatment decision causal relationship chain candidate data set includes the following steps:
[0039] Data quantification and initial causal graph setting: Using the element representation algorithm, the observation data in the candidate data of the treatment decision causal chain are converted into values or categories, and the causal relationship corresponding to the data is set as all diseases leading to all symptoms and treatments, and all patient attributes leading to diseases, symptoms, and treatments, forming an initial causal graph;
[0040] First trimming of the causal graph: Based on the quantified candidate data of the treatment decision causal chain and the initial causal graph, the causal effects between a single attribute node and the disease, symptom, and treatment nodes, and the causal effects between the disease and examination nodes are calculated, and the edges with weak causal effects between the attribute and the disease, the attribute and the symptom, the attribute and the treatment, and the disease and the examination are removed to obtain the first trimming of the causal graph;
[0041] Secondary trimming of the causal graph: Based on the quantified candidate data of the treatment decision causal chain and the first trimmed causal graph, the causal effects between the disease and treatment nodes, and between the symptoms and treatment nodes under the interference of multiple attributes of the patient are calculated, and the edges with weak causal effects between the disease and treatment, and between the symptoms and treatment are removed. Finally, independent nodes without causal relationships are removed to form a treatment causal subgraph.
[0042] As a further improvement of the present invention, based on the disease diagnosis causal chain and the treatment decision causal chain, a disease diagnosis and treatment causal knowledge graph is constructed and outputted with a patient attribute subset as the center, including the following steps:
[0043] Merge nodes in the same causal chain: merge the same diseases, symptoms, and treatment entities in the disease diagnosis causal chain, retain the causal relationship and causal effect value between entities; merge the same diseases, symptoms, and treatment entities in the treatment decision causal chain, retain the causal relationship and causal effect value between entities;
[0044] Merge nodes in different causal chains: For the same disease, same symptoms, and same treatment entities in the disease diagnosis causal chain and the treatment decision causal chain, retain the causal relationship and causal effect value between entities, and output the disease diagnosis and treatment causal knowledge graph.
[0045] As a further improvement of the present invention, a disease diagnosis and treatment causal knowledge graph centered on a subset of patient attributes is composed of the following five-tuple set {D, A, C, R, W}:
[0046] Disease (D): This component describes the disease and syndrome that the patient suffers from, which is the reason why the patient exhibits specific symptoms and the doctor takes specific treatment methods;
[0047] Patient attribute subset (A): This component describes a patient's personalized single attribute or attribute subset, including gender, age, physical signs, and medications. It is an important factor that affects the current patient's symptoms and the treatment methods formulated by doctors.
[0048] Symptoms, examinations and treatments (C): This component describes the symptoms of the patient due to the disease and syndrome, the results and conclusions of the patient's laboratory tests, imaging tests, pathological examinations, and other examinations, and the treatment methods developed for the corresponding diseases, syndromes and patient attributes;
[0049] Entity relations (R): Contains the causal relationships between patient attribute subsets, diseases, symptoms, examinations, and treatment nodes;
[0050] Causal effect value (W): The causal effect value calculated between the disease (D) and symptoms, examinations and treatments (C) under the interference of the patient attribute subset (A).
[0051] The present invention also provides a device for executing the above-mentioned disease diagnosis and treatment causal knowledge graph construction method, characterized in that the device includes a processor, a memory and an input / output interface, wherein the memory stores program instructions for executing the above-mentioned method, and when the program instructions are executed by the processor, the device executes the above-mentioned method.
[0052] The present invention also provides a computer-readable storage medium storing program instructions. When the program instructions are read and executed by a computer system, the computer system executes the above-mentioned disease diagnosis and treatment causal knowledge graph construction method.
[0053] The beneficial effects of the present invention are as follows: the disease diagnosis and treatment causal knowledge graph construction method of the present invention can make full use of the structured and semi-structured data in the existing medical database to construct the disease diagnosis and treatment causal knowledge graph. The constructed disease diagnosis and treatment causal knowledge graph deeply mines two types of causal relationship chains: disease diagnosis causal relationship chain and disease treatment decision causal relationship chain. The technical solution of the present invention can assist manual diagnosis, reduce time loss, and improve the distribution generalization ability of the auxiliary diagnosis model, thereby improving the auxiliary diagnosis effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flow chart of the method of the present invention;
[0055] Figure 2 is a flow chart of constructing a disease diagnosis causal relationship chain candidate data set in the present invention;
[0056] Figure 3 is a flow chart of constructing a candidate data set for a causal relationship chain of treatment decisions in the present invention;
[0057] Figure 4 is a flow chart of mining the causal relationship chain of disease diagnosis in the present invention;
[0058] Figure 5 is a flow chart for mining the causal chain of treatment decision in the present invention;
[0059] Figure 6 It is a flow chart of constructing and outputting a disease diagnosis and treatment causal knowledge graph in the present invention. DETAILED DESCRIPTION
[0060] Traditional medical knowledge graphs often describe semantic information related to diagnosis and treatment, such as (patient number-imaging examination-CT examination). Models built on this type of medical knowledge graph are very likely to learn false correlations between data, resulting in high accuracy on data sets and low accuracy on data outside the distribution. In response to the above problems, the present invention uses causal structure learning theory to propose a method for constructing a disease diagnosis and treatment causal knowledge graph. The method can automatically learn the disease diagnosis causal chain and the treatment decision causal chain, so that the model built on the disease diagnosis and treatment causal knowledge graph can learn more causal relationships rather than correlation relationships, and assist doctors in making diagnosis and treatment decisions.
[0061] The technical solution of the present invention is further described below in conjunction with specific implementation.
[0062] like Figure 1 As shown, the disease diagnosis and treatment causal knowledge graph construction method of the present invention includes the following steps:
[0063] Step 100: Load the patient-centered disease diagnosis and treatment knowledge graph, where the disease diagnosis and treatment knowledge graph includes: 1) disease layer, 2) patient attribute layer, and 3) symptom, examination, and treatment layer.
[0064] Step 200: Extract the candidate dataset of disease diagnosis causal relationship chains from the disease diagnosis and treatment knowledge graph.
[0065] As Figure 2 shown, the steps to extract the candidate dataset of disease diagnosis causal relationship chains are as follows:
[0066] Step 210: Extract the symptom entity subset and patient data subset:
[0067] Based on the full disease diagnosis and treatment knowledge graph, traverse the patient data, where the patient data is saved in the form of patient number - patient specific data key-value pairs, and the patient specific data contains three layers of data: disease layer, patient attribute layer, and symptom, examination, and treatment layer. During the traversal, deposit the symptom entities of each patient into the full symptom entity list, denoted as S = {s1,... s l}, and at the same time set the filtering threshold sminfreq for the minimum occurrence times of the symptom entity subset.
[0068] Based on the symptom entity list, count the frequency of each symptom occurrence, and then add the top k symptoms with the highest frequency to the symptom entity subset, denoted as S subset , and denote the remaining symptom entity set as S comset = S - S subset, and count the co-occurrence frequency freq of S subset .
[0069] Randomly replace one element in S subset with an element in S comset , count the co-occurrence frequency freqn of the new S subset , if freq < freqn, then set freq = freqn, and continue the operation of replacing elements; if freq > sminfreq, then output the symptom entity subset S subset, and save the patient data subset Patient subset containing S subset .
[0070] Step 220: Extract the disease entity subset and extended patient data subset:
[0071] Traverse the patient data subset Patient subset , find the disease entity list in the disease layer of the patient data subset, denoted as D = {d1,... d m}, and count the frequency of each entity occurrence, and set the filtering threshold dminfreq for the minimum occurrence times of the disease entity subset.
[0072] Add the top n diseases with the highest frequencies to the disease entity subset, denoted as D subset , and denote the remaining disease entity set as D comset = D - D subset , and count the co-occurrence frequency freq of D subset in Patient subset .
[0073] Randomly replace one element in D subset with an element in D comset , count the co-occurrence frequency freqn of the new D subset . If freq < freqn, then set freq = freqn and continue the operation of replacing elements; if freq > dminfreq, then output the disease entity subset D subset .
[0074] Find the patient data containing the elements in D subset from the disease diagnosis and treatment knowledge graph, store it in the patient data subset Patient subset , and output Patient subset .
[0075] Step 230: Determine the interference factor subset:
[0076] Based on the patient data subset Patient subset , count the frequencies of the entities in the interference factor list A = {a1,... a n} from the patient attribute layer, and set the filtering threshold aminfreq for the minimum number of occurrences of the interference factor subset
[0077] Select the top m interference factors with the highest frequencies in the interference factor list as the interference factor subset A subset , and denote the remaining interference factor combination as A comset = A - A subset , and count the co-occurrence frequency freq of A subseb .
[0078] Randomly replace one element in A subset with an element in A comset , count the co-occurrence frequency freqn of the new A subset . If freq < freqn, then set freq = freqn and continue the operation of replacing elements; if freq > aminfreq, then output the interference factor subset A subset .
[0079] Step 240: Construct the candidate data set of the disease diagnosis causal relationship chain:
[0080] Loop through steps 2100, 2200, and 2300 to find multiple subsets of symptom entities S subset , multiple subsets of disease entities D subset , multiple subsets of interfering factors A subset and multiple subsets of patient data Patient subset . Store the above subsets into the candidate dataset Dataset of the disease diagnosis causal relationship chain according to the corresponding relationship disease .
[0081] Step 300: Extract the candidate dataset of the treatment decision causal relationship chain from the disease diagnosis and treatment knowledge graph
[0082] As Figure 3 shown, in the step of extracting the candidate dataset of the treatment decision causal relationship chain, the following steps are included
[0083] Step 310: Extract subsets of treatment entities and subsets of patient data
[0084] Based on the full disease diagnosis and treatment knowledge graph, traverse the patient data and store the treatment entities of each patient into the full treatment entity list, denoted as T = {t1,...t g}, and at the same time set the filtering threshold tminfreq for the minimum occurrence times of the treatment entity subset
[0085] Based on the treatment entity list, count the frequency of each treatment entity, and then add the top k entities with the highest frequency to the treatment entity subset, denoted as T subset , and denote the remaining treatment entity set as T comset = T - T subset, and count the co-occurrence frequency freq of T subset .
[0086] Randomly replace one element in T subset with an element in T comset , count the co-occurrence frequency freqn of the new T subset . If freq < freqn, then set freq = freqn and continue the operation of replacing elements; if freq > tminfreq, then output the treatment entity subset T subset , and save the patient data subset Patient containing T subset . subset .
[0087] Step 320: Extract subsets of disease entities, subsets of symptom entities, and extended subsets of patient data
[0088] Traverse the patient data subset Patient subset , find the disease entity list in the disease layer of the patient data subset, denoted as D = {d1,...dm}, and count the frequency of each entity occurrence, and set the filtering threshold dminfreq for the minimum number of occurrences of the disease entity subset.
[0089] Add the top n diseases with the highest frequency to the disease entity subset, denoted as D subset , and denote the remaining disease entity set as D comset = D - D subset , and count D subset in Patient subset for the co-occurrence frequency freq.
[0090] Randomly replace one element in D subset with an element in D comset , and count the co-occurrence frequency freqn of the new D subset . If freq < freqn, then set freq = freqn and continue the operation of replacing elements; if freq > dminfreq, then output the disease entity subset D subset .
[0091] Traverse the patient data subset Patient subset , find the symptom entity list in the symptom, examination, and treatment layers of the patient data subset, denoted as S = {s1,... s l}, and count the frequency of each entity occurrence, and set the filtering threshold sminfreq for the minimum number of occurrences of the symptom entity subset.
[0092] Add the top p symptoms with the highest frequency to the symptom entity subset, denoted as S subset , and denote the remaining symptom entity set as S comset = S - S subset , and count S subset in Patient subset for the co-occurrence frequency freq.
[0093] Randomly replace one element in S subset with an element in S comset , and count the co-occurrence frequency freqn of the new S subset . If freq < freqn, then set freq = freqn and continue the operation of replacing elements; if freq > sminfreq, then output the symptom entity subset S subset .
[0094] Find the patient data containing the elements in D subset from the disease diagnosis and treatment knowledge graph, store it in the patient data subset Patient subset , and output Patient subset .
[0095] Step 330: Determine the subset of interfering factors:
[0096] Based on the patient data subset Patient subset , count the occurrence frequencies of entities in the interfering factor list A = {a1,...a n} from the patient attribute layer, and set the filtering threshold aminfreq for the minimum occurrence times of the interfering factor subset.
[0097] Select the top m interfering factors with the highest occurrence frequencies in the interfering factor list as the interfering factor subset A subset , and denote the combination of the remaining interfering factors as A comset = A - A subset , and count the co-occurrence frequency freq of A subset .
[0098] Randomly replace one element in A subset with an element in A comset , count the co-occurrence frequency freqn of the new A subset . If freq < freqn, then set freq = freqn and continue the operation of replacing elements; if freq > aminfreq, then output the interfering factor subset A subset .
[0099] Step 340: Construct a candidate dataset for the causal relationship chain of treatment decisions:
[0100] Loop through steps 310, 320, and 330 to find multiple subsets of treatment entities T subset , multiple subsets of symptom entities S subset , multiple subsets of disease entities D subset , multiple subsets of interfering factors A subset , and multiple subsets of patient data Patient subset . Store the above subsets into the candidate dataset Datasett for the causal relationship chain of disease diagnosis according to the corresponding relationships herapy .
[0101] Step 400: Use the causal subgraph mining method to mine the causal relationship chain of disease diagnosis from the candidate dataset for the causal relationship chain of disease diagnosis.
[0102] As Figure 4 shown, the steps of mining the causal relationship chain of disease diagnosis include the following sub-steps:
[0103] Step 410: Data quantization and initial causal graph setting:
[0104] Using the feature representation algorithm, for the interfering factor subset A disease in the candidate dataset Dataset for the causal relationship chain of disease diagnosis subsetAnd the patient data subset Patient subset The entities in are converted into values or categories to form a QDataset disease , where the element represents the algorithm as a regularized method, such as A subset The index value of the inspection substance F is 727nmol / L. Judge whether the value is normal based on the standard index value, use 0 to represent abnormal and 1 to represent normal, and modify the value of the inspection substance F to 0 or 1.
[0105] Setting A subset Each subset A in subset All interference factor nodes in S subset The corresponding subset S in subset All symptom nodes in D subset The corresponding subset D in subset All disease nodes in ; set D subset Each subset D in subset All disease nodes in S subset The corresponding subset S in subset All symptom nodes in form an initial causal graph.
[0106] Step 420: First trimming of the causal graph: based on the quantified disease diagnosis causal chain candidate dataset QDataset disease and the initial causal graph, calculate A subset Each subset A subset All interference factor nodes {a1,...,a n} and the corresponding disease subset D subset ={d1, ...d m}, symptom subset S subset ={s1, ..., s l The calculation formula is as follows:
[0107]
[0108]
[0109] in, and are the quantified values of the current disease node and symptom node in the patient data, respectively. i is a certain interference factor node, When the value of a certain interference factor node i is 1, the expected value of the corresponding disease node j in the patient data is, When the value of a certain interference node i is 1, the expected value of the corresponding symptom node j in the patient data; according to the preset causal effect filtering value ω, if Then delete the causal relationship between the interference node i and the disease node j in the initial causal graph. The causal relationship between the interference node i and the symptom node j in the initial causal graph is deleted to form the first pruned causal graph.
[0110] Step 430: Secondary pruning of the causal graph:
[0111] Based on the quantified disease diagnosis causal chain candidate dataset QDataset disease and the first cut causal graph, calculated in A subset Each subset A subset All interference factor nodes {a1,...,a n The corresponding disease subset D under the interference of subset ={d1, ...d m} and symptom subset S subset ={s1, ..., s l The causal effect between} is calculated as follows:
[0112]
[0113] in, is the quantified value of the symptom node in the patient data, ak is a certain interference factor node, is the expected value of the corresponding symptom node j in the patient data when the disease node i takes the value of 1 under the interference of a certain interference factor node k; according to the preset causal effect filtering value ω, if The causal relationship between disease node i and symptom node j in the initial causal graph is deleted to form a secondary pruned causal graph.
[0114] Delete the independent nodes without causal relationship in the secondary pruned causal graph to form a disease diagnosis causal chain.
[0115] Step 500: Using a causal subgraph mining method, mining a treatment decision causal relationship chain from a treatment decision causal relationship chain candidate data set.
[0116] like Figure 5 As shown, the above steps of mining the causal chain of treatment decisions include the following sub-steps:
[0117] Step 510: Data quantification and initial causal graph setup:
[0118] Using the factor representation algorithm, the candidate data set of the causal chain of treatment decision therapy A subset of interference factors in subset And the patient data subset Patient subset The entities in are converted into values or categories to form a QDatasetthera .
[0119] Setting A subset Each subset A in subset All interference factor nodes in S subset The corresponding subset S in subset All symptom nodes in D subset The corresponding subset D in subset All disease nodes in T subset The corresponding subset T in subset All treatment nodes in ; set D subset Each subset D in subset All disease nodes in S subset The corresponding subset S in subset All symptom nodes in T subset The corresponding subset T in subset All treatment nodes in ; Set S subset The subset S in subset All symptom nodes in T subset The corresponding subset T in subset All treatment nodes in form an initial causal graph.
[0120] Step 520: First trimming of the causal graph:
[0121] Based on the quantified treatment decision causal chain candidate dataset thera and the initial causal graph, calculate A subset Each subset A subset All interference factor nodes {a1,...,a n} and the corresponding disease subset D subset ={d1, ...d m}, symptom subset S subset ={s1, ..., s l}、Treatment subset T subset ={t1, ...t q The calculation formula is as follows:
[0122]
[0123]
[0124]
[0125] in, as well as are the quantified values of the current disease node, symptom node, and treatment node in the patient data, respectively. iis a certain interference factor node, When the value of a certain interference factor node i is 1, the expected value of the corresponding disease node j in the patient data is, When the value of a certain interference node i is 1, the expected value of the corresponding symptom node j in the patient data is, When a certain interference node i takes the value of 1, the expected value of the corresponding treatment node j in the patient data; according to the preset causal effect filtering value ω, if Then delete the causal relationship between the interference node i and the disease node j in the initial causal graph. Then delete the causal relationship between the interference node i and the symptom node j in the initial causal graph. The causal relationship between the interference node i and the treatment node j in the initial causal graph is deleted to form the first pruned causal graph.
[0126] Step 530: Secondary pruning of the causal graph:
[0127] Based on the quantified treatment decision causal chain candidate dataset therapy and the first cut causal graph, calculated in A subset Each subset A subset All interference factor nodes {a1,...,a n The corresponding disease subset D under the interference of subset ={d1, ...d m} and treatment subset T subset ={t1, ...t q}, and the corresponding symptom subset S under the interference of the interference factor node subset ={s1, ..., s l} and treatment subset T subset ={t1, ...t g The causal effect between} is calculated as follows:
[0128]
[0129]
[0130] in, is the quantized value of the treatment node in the patient data, a k is a certain interference factor node, is the expected value of the corresponding treatment node j in the patient data when the disease node i takes the value of 1 under the interference of a certain interference factor node k; according to the preset causal effect filtering value ω, if Then delete the causal relationship between disease node i and treatment node j in the initial causal graph. The causal relationship between symptom node i and treatment node j in the initial causal graph is deleted to form a secondary pruned causal graph.
[0131] Independent nodes without causal relationships in the secondary pruned causal graph are deleted to form a causal chain for treatment decisions.
[0132] Step 600: Merge the disease diagnosis causal chain and the treatment decision causal chain, construct and output a disease diagnosis and treatment causal knowledge graph centered on the patient attribute subset.
[0133] like Figure 6 As shown in the figure, the steps of constructing and outputting a disease diagnosis and treatment causal knowledge graph centered on a subset of patient attributes include the following steps:
[0134] Step 610: Merge nodes in the same causal relationship chain:
[0135] The same diseases, symptoms, and treatment entities in the disease diagnosis causal chain are merged, and the causal relationship and causal effect value between entities are retained. The same diseases, symptoms, and treatment entities in the treatment decision causal chain are merged, and the causal relationship and causal effect value between entities are retained;
[0136] Step 620: Merge nodes in different causal relationship chains:
[0137] For the same disease, the same symptom, and the same treatment entity in the disease diagnosis causal chain and the treatment decision causal chain, the causal relationship and causal effect value between entities are retained, and the disease diagnosis and treatment causal knowledge graph quintuple {D, A, C, R, W} is output, where D is D subset In the entity, A is A subset Entity subset in S subset or T subset In the middle node, R is the causal relationship, and W is the causal effect between D and C under the interference of attribute subset A.
[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes of the aforementioned method embodiments and will not be repeated here.
[0139] An embodiment of the present invention also discloses a device for executing the method for constructing a causal knowledge graph for disease diagnosis and treatment, characterized in that the device includes a processor, a memory and an input / output interface, wherein the memory stores program instructions for executing the above-mentioned evaluation method, and when the program instructions are executed by the processor, the device executes the method of the present invention.
[0140] The embodiment of the present invention further discloses a computer program product, including computer program instructions, which are used to implement the method of the present invention when the instructions are executed by a processor.
[0141] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the method of the present invention is implemented.
[0142] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the methods, devices and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart and block diagram can represent a module, a program segment or a portion of a code, containing one or more computer executable instructions for implementing logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. It should also be noted that each box or combination of boxes in the block diagram and flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0144] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for constructing a disease diagnosis and treatment causal knowledge graph, characterized in that: The method comprises: Loading a patient-centered disease diagnosis and treatment knowledge graph, wherein the disease diagnosis and treatment knowledge graph includes: a disease layer, a patient attribute layer, and a symptom, examination, and treatment layer; Extract disease diagnosis causal chain candidate datasets from the disease diagnosis and treatment knowledge graph; Extract candidate datasets of causal chain of treatment decision from disease diagnosis and treatment knowledge graph; Mining disease diagnosis causal relationship chains from disease diagnosis causal relationship chain candidate datasets; mining treatment decision causal chains from treatment decision causal chain candidate datasets; Merge the disease diagnosis causal chain and the treatment decision causal chain, build and output the disease diagnosis and treatment causal knowledge graph centered on the patient attribute subset; The method of mining the disease diagnosis causal relationship chain and the treatment decision causal relationship chain adopts a causal subgraph mining method.
2. The method according to claim 1, characterized in that: The patient-centered disease diagnosis and treatment knowledge graph includes: Disease layer: This layer describes the diseases and syndromes suffered by the patient, and is the main reason and basis for the patient to show specific symptoms and the doctor to take specific treatment methods; Patient attribute layer: This layer describes the patient's personalized attributes, including gender, age, physical signs, and medications. It is an important factor that affects the patient's current symptoms and the treatment methods formulated by doctors. Symptom, examination and treatment layer: This layer describes the symptoms of the patient due to the disease and syndrome, the results and conclusions of the patient's laboratory tests, imaging tests, pathological tests, and other tests, and the treatment methods developed for the corresponding diseases, syndromes and patient attributes; Entity relationships: include the relationships between patients and diseases and syndromes, the relationships between patients and attributes, the relationships between patients and symptoms, the relationships between patients and examinations, and the relationships between patients and treatments.
3. The method according to claim 1, characterized in that The step of extracting a candidate data set of a disease diagnosis causal relationship chain comprises the following steps: Extract symptom entity subsets and patient data subsets: Find symptom entity subsets with high co-occurrence frequency from the symptom and treatment layers of the disease diagnosis and treatment knowledge graph. The co-occurrence frequency refers to the number of patients containing the entity subset. At the same time, store the patient data containing the symptom entity subset into the patient data subset; Extract disease entity subsets and expand patient data subsets: Find a subset of disease and syndrome entities with high co-occurrence frequency from the disease layer of the patient data corresponding to the symptom entity subset to form a disease entity subset. At the same time, find patient data containing disease and syndrome entity subsets in the disease diagnosis and treatment knowledge graph and store them in the patient data subset, so that the expanded patient data set satisfies the Markov blanket property. Determine the interference factor subset: From the patient data containing the symptom entity subset and the corresponding disease entity subset, find the attribute entity subset with high co-occurrence frequency to form the interference factor subset; Construct a candidate dataset for the disease diagnosis causal relationship chain: store multiple symptom entity subsets, multiple disease entity subsets, multiple interference factor subsets, and multiple patient data subsets into a separate dataset to form a candidate dataset for the disease diagnosis causal relationship chain.
4. The method according to claim 1, characterized in that: Extracting candidate datasets for the causal chain of treatment decisions includes the following steps: Extract treatment entity subsets and patient data subsets: Find treatment entity subsets with high co-occurrence frequency from the symptoms and treatment layers of the disease diagnosis and treatment knowledge graph. The co-occurrence frequency refers to the number of patients containing the entity subset. At the same time, store the patient data containing the treatment entity subset in the patient data subset; Extract disease entity subsets, symptom entity subsets, and expand patient data subsets: Find a subset of disease and syndrome entities with high co-occurrence frequency from the disease layer of the patient data corresponding to the treatment entity subset to form a disease entity subset; find a subset of symptom entities with high co-occurrence frequency from the same patient data to form a symptom entity subset; find patient data containing disease and syndrome entity subsets in the disease diagnosis and treatment knowledge graph, and store them in the patient data subset, so that the expanded patient data set satisfies the Markov blanket property; Determine the interference factor subset: From the patient data containing the treatment entity subset and the corresponding disease entity subset, find the attribute entity subset with high co-occurrence frequency to form the interference factor subset; Constructing a candidate dataset for the causal chain of treatment decisions: storing multiple treatment entity subsets, multiple disease entity subsets, multiple symptom entity subsets, multiple interference factor subsets, and multiple patient data subsets into separate datasets to form a candidate dataset for the causal chain of treatment decisions.
5. The method according to claim 1, characterized in that Mining causal chains from causal chain candidate datasets includes the following steps: Data quantification and initial causal diagram setup; First cut of the causal graph; Secondary cropping of causal graphs.
6. The method according to claim 5, characterized in that Mining disease diagnosis causal relationship chains from disease diagnosis causal relationship chain candidate data sets includes the following steps: Data quantification and initial causal graph setting: Using the element representation algorithm, the observation data in the candidate data of the disease diagnosis causal chain are converted into values or categories, and the causal relationship corresponding to the data is set as all diseases leading to all symptoms, and all patient attributes leading to diseases and symptoms, forming an initial causal graph; First trimming of the causal graph: Based on the quantified disease diagnosis causal chain candidate data and the initial causal graph, the causal effects between the patient attributes and the disease and symptom nodes, and the causal effects between the disease and the examination nodes are calculated, and the edges with weak causal effects between the attributes and the disease, the attributes and the symptoms, and the diseases and the examinations are removed to obtain the first trimmed causal graph; Secondary trimming of the causal graph: Based on the quantified disease diagnosis causal chain candidate data and the first trimmed causal graph, the causal effect between the disease and symptom nodes under the interference of multiple attributes of the patient is calculated, the edges with weak causal effects between the disease and symptoms are removed, and finally the independent nodes without causal relationship are removed to form a diagnostic causal subgraph.
7. The method according to claim 5, characterized in that Mining a treatment decision causal relationship chain from a treatment decision causal relationship chain candidate data set includes the following steps: Data quantification and initial causal graph setting: Using the element representation algorithm, the observation data in the candidate data of the treatment decision causal chain are converted into values or categories, and the causal relationship corresponding to the data is set as all diseases leading to all symptoms and treatments, and all patient attributes leading to diseases, symptoms, and treatments, forming an initial causal graph; First trimming of the causal graph: Based on the quantified candidate data of the treatment decision causal chain and the initial causal graph, the causal effects between a single attribute node and the disease, symptom, and treatment nodes, and the causal effects between the disease and examination nodes are calculated, and the edges with weak causal effects between the attribute and the disease, the attribute and the symptom, the attribute and the treatment, and the disease and the examination are removed to obtain the first trimming of the causal graph; Secondary trimming of the causal graph: Based on the quantified candidate data of the treatment decision causal chain and the first trimmed causal graph, the causal effects between the disease and treatment nodes, and between the symptoms and treatment nodes under the interference of multiple attributes of the patient are calculated, and the edges with weak causal effects between the disease and treatment, and between the symptoms and treatment are removed. Finally, independent nodes without causal relationships are removed to form a treatment causal subgraph.
8. The method according to claim 1, characterized in that Based on the disease diagnosis causal chain and the treatment decision causal chain, a disease diagnosis and treatment causal knowledge graph is constructed and output with the patient attribute subset as the center, including the following steps: Merge nodes in the same causal chain: merge the same diseases, symptoms, and treatment entities in the disease diagnosis causal chain, retain the causal relationship and causal effect value between entities; merge the same diseases, symptoms, and treatment entities in the treatment decision causal chain, retain the causal relationship and causal effect value between entities; Merge nodes in different causal chains: For the same disease, same symptoms, and same treatment entities in the disease diagnosis causal chain and the treatment decision causal chain, retain the causal relationship and causal effect value between entities, and output the disease diagnosis and treatment causal knowledge graph.
9. The method according to claim 1, characterized in that: The disease diagnosis and treatment causal knowledge graph centered on a subset of patient attributes consists of the following five-tuple set {D, A, C, R, W}: Disease (D): This component describes the disease and syndrome that the patient suffers from, which is the reason why the patient exhibits specific symptoms and the doctor takes specific treatment methods; Patient attribute subset (A): This component describes a patient's personalized single attribute or attribute subset, including gender, age, physical signs, and medications. It is an important factor that affects the current patient's symptoms and the treatment methods formulated by doctors. Symptoms, examinations and treatments (C): This component describes the symptoms of the patient due to the disease and syndrome, the results and conclusions of the patient's laboratory tests, imaging tests, pathological examinations, and other examinations, and the treatment methods developed for the corresponding diseases, syndromes and patient attributes; Entity relations (R): Contains the causal relationships between patient attribute subsets, diseases, symptoms, examinations, and treatment nodes; Causal effect value (W): The causal effect value calculated between the disease (D) and symptoms, examinations and treatments (C) under the interference of the patient attribute subset (A).
10. A device for executing the method for constructing a disease diagnosis and treatment causal knowledge graph according to any one of claims 1 to 9, characterized in that: The device comprises a processor, a memory and an input / output interface, wherein the memory stores program instructions for executing the above method, and when the program instructions are executed by the processor, the device executes the above method.
Citation Information
Cited By
Rule extraction method, device and equipment suitable for medical knowledge graph
CN119047565A
Knowledge graph construction method based on BNCT, terminal and medium
CN120236716A
Construction method, device and equipment of disease treatment process knowledge base
CN120496877A
Traditional Chinese medicine reproductive endocrine disease diagnosis auxiliary system based on clinical knowledge map
CN120600283A
Health risk assessment method and system based on medical data
CN120809281A
