Interactive clinical decision support system and method based on large model knowledge enhancement

The interactive clinical decision support system enhanced by large model knowledge, combined with the medical knowledge graph and electronic medical record system, dynamically updates the interactive graph and optimizes the diagnosis process, solving the problem of insufficient accuracy at the knowledge level and illusion in the reasoning process in the existing technology. , achieving more efficient and reliable clinical decision support.

CN118335360BActive Publication Date: 2024-09-20ZHEJIANG UNIV
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202410777261.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-20
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing interactive consultation systems have insufficient knowledge-level accuracy and reliability in disease diagnosis, and large language models are prone to hallucinations and useless answers during clinical reasoning, making it difficult to gain trust in clinical practice.

Method used

An interactive clinical decision support system based on large model knowledge enhancement is adopted. Through the large model-patient multi-round interaction module, interactive map building module, reinforcement learning inference module and important diagnosis path generation module, combined with the medical knowledge map and electronic medical record system, dynamic Update the interaction graph, optimize the diagnostic process using greedy strategies and reinforcement learning, and generate important reasoning paths through counterfactual states.

Benefits of technology

It improves the accuracy and reliability of knowledge in multi-round consultation tasks, optimizes the accuracy and efficiency of diagnosis, generates higher quality reasoning paths, can better reflect clinical practice, and enhances the role of large models in clinical decision-making. credibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118335360B
    Figure CN118335360B
Patent Text Reader

Abstract

The present invention discloses an interactive clinical decision support system and method based on large model knowledge enhancement. At the end of each round of interaction with the large model, the present invention updates the interaction graph based on the interaction content. The embedded representation of the interaction graph is used as the state, and the medical consultation, physical examination or auxiliary examination is used as the executable action. The diagnosis process is optimized by the reinforcement learning method to improve the accuracy and efficiency of the diagnosis. By analyzing the changes in the interaction graph of multiple rounds of medical consultations to generate reasoning paths, the counterfactual state of the interaction graph is generated based on the reasoning paths, the importance of each reasoning path is calculated based on the counterfactual state, and the important reasoning paths are input into the large model to generate a natural language description. This can improve the quality of knowledge retrieval from the medical knowledge graph in multiple rounds of medical consultations, provide a more credible knowledge representation for the large model input, and improve the quality and credibility of the content generated by the large model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of medical health information technology, and in particular relates to an interactive clinical decision support system and method based on large model knowledge enhancement. Background Art

[0002] The interactive consultation system completes the process of obtaining medical evidence and making a diagnosis by simulating a conversation between a doctor and a patient. Early work usually used machine learning methods such as reinforcement learning algorithms, Bayesian networks, and supervised sequence generation to model the consultation process based on the differences in symptoms of different diseases. Such methods focus on clarifying the symptoms related to the disease round by round, and determining the consultation strategy based on the changes in the probability distribution of the disease after each round of consultation. With the development of large language models (LLMs), the consultation dialogue corpus is also used to fine-tune parameters, combined with human feedback reinforcement learning technology, and LLMs are used as the doctor side for doctor-patient conversations. Some work integrates feature-based machine learning methods with LLMs to improve the large model's ability to predict diseases.

[0003] Knowledge Graph (KG) is a structured representation of knowledge, whose basic components are "entity-relationship-entity" triples and entities and their related attribute-value pairs. Compared with knowledge bases composed of documents, knowledge graphs can more efficiently store knowledge that is far apart in text. In the field of machine learning, path reasoning methods based on knowledge graphs are used in recommendation systems and reasoning question and answer. In the field of medical informatics, there is work using knowledge graphs and graph neural networks as vectorized representations of clinical knowledge to enhance the interpretability of disease classification models. In the pre-training, fine-tuning and evaluation stages of LLMs, knowledge graphs can also be used as knowledge bases to generate training and test corpora containing knowledge.

[0004] The interactive capabilities of machine learning methods based on disease characteristics are weak. The consultation process is expressed as a series of simple questions that can be answered with "yes" or "no". This is quite different from clinical practice and has limited practical application capabilities.

[0005] LLMs are generally considered to have strong reasoning capabilities based on natural language. Enhancing LLMs' reasoning capabilities for clinical problems usually requires increasing the number of model parameters and corresponding training corpora, which requires high training and deployment costs. It is also difficult to build a high-quality corpus that can reflect clinical processes. At the same time, due to the limited context window and the probabilistic output characteristics of LLMs themselves, LLMs are prone to hallucinations during the generation process, and are prone to giving questions that are contrary to clinical practice during the automatic consultation process, generating broad and useless answers without considering timeliness information. In addition, the knowledge encoded internally in LLMs and the generation process are black-box, and tools based solely on LLMs are difficult to gain trust in clinical practice.

[0006] Methods based on cue word design, such as Chain of thought (CoT), can enhance the reasoning ability of LLMs, but are still limited by the knowledge encoded in LLMs during pre-training and fine-tuning. Document retrieval enhancement methods can introduce additional knowledge to LLMs, but document retrieval methods based on vector similarity are limited by document length and document quality, and are prone to introduce additional noise that is irrelevant to the task. The method of using triples in the knowledge graph as the retrieval target ignores the meaningful graph structure in the graph and does not fully utilize the knowledge representation in the graph. Summary of the invention

[0007] The purpose of the present invention is to address the deficiencies of the prior art and to propose an interactive clinical decision support system and method based on large model knowledge enhancement.

[0008] The objective of the present invention is achieved through the following technical solutions:

[0009] According to a first aspect of the present specification, there is provided an interactive clinical decision support system based on large model knowledge enhancement, the system comprising:

[0010] The big model-patient multi-round interaction module includes the doctor's big model's inquiry content and the patient's answer. At the end of each round of interaction, the interaction graph is updated based on the interaction content.

[0011] An interactive graph construction module is used to construct a positive node set and a negative node set according to the answer content of the patient end and perform entity alignment based on the medical knowledge graph, search the medical knowledge graph to obtain an intermediate node set excluding negative nodes, and generate an interactive graph based on the intermediate node set and the positive node set;

[0012] A reinforcement learning reasoning module is used to generate a disease feature map according to the medical knowledge map, calculate the disease probability distribution based on the disease prediction model according to the embedded representation of the interaction map and the disease feature map, select the recommended action of the next round of reinforcement learning agent using the greedy strategy and the reinforcement learning model, calculate the reward according to the change of the disease probability distribution after the action, and jointly train the disease prediction model and the reinforcement learning model to obtain a reinforcement learning model based on the semantic information of the interaction map;

[0013] The important diagnostic path generation module is used to generate an inference path based on the relationship path, generate a counterfactual state of the interaction graph based on the inference path, calculate the importance of each inference path based on the counterfactual state, input the important inference path into the big model to generate a natural language description of the important inference path as a prompt word for the big model end facing the doctor.

[0014] Furthermore, the construction of positive node sets and negative node sets in the interaction graph construction module is specifically as follows:

[0015] The positive medical consultation results, physical examination results, auxiliary examination results and suspected disease concepts in the medical consultation content extracted from the patient's answer are input into the positive node set;

[0016] The negative medical interview results, physical examination results, and auxiliary examination results extracted from the patient's answers are input into the negative node set.

[0017] Furthermore, the process of obtaining the intermediate node set is specifically as follows:

[0018] In each search process, a node is selected from the positive node set. , except for the positive nodes The other nodes outside the set ; Search in the medical knowledge graph of The set of adjacent nodes of order ,exclude arrive Negative nodes in the path, get of The intermediate node set of the first order, traverses all nodes in the positive node set and each node The set of adjacent nodes of order 1 is used to obtain the set of intermediate nodes for this search.

[0019] Furthermore, in the training stage of the reinforcement learning model, after the intelligent agent recommends an action, the recommended action is matched with the data of the electronic medical record system, new positive node sets and negative node sets are formed for the results of the medical consultation, physical examination or auxiliary examination, the interaction graph is updated, and a new embedding representation is calculated; if the data corresponding to the recommended action is not found in the electronic medical record system, the interaction graph remains unchanged.

[0020] Further, the reward includes a diagnostic accuracy reward , for the information gain reward of the diagnostic task , and penalties for unnecessary actions ,in The value of is determined by whether the disease prediction model correctly predicts the disease. The value of is the change in information entropy. Take 0 and The larger value of It is used to measure the change in the probability of disease prediction by the disease prediction model. is the preset threshold of the change amount.

[0021] Furthermore, in the reinforcement learning reasoning module, training data is collected based on the simulated interaction process between the medical records in the electronic medical record system and the recommended actions of the intelligent agent, specifically:

[0022] Take a complaint from a medical record to construct the initial interaction map in the simulated interaction In the jth round of simulated interaction, the agent follows the interaction graph The embedding representation of Generate recommended actions ,according to Update the interaction graph to And calculate the new embedding representation With rewards , Constitute an experience sample for reinforcement learning model training;

[0023] When all the consultation, physical examination or auxiliary examination items of this medical record in the electronic medical record system are recommended by the intelligent agent, or the number of rounds recommended by the intelligent agent reaches the preset maximum number of rounds, the collection of training data based on this medical record is stopped.

[0024] Furthermore, generating the reasoning path according to the relationship path is specifically as follows:

[0025] Select the recommended action of the agent The corresponding nodes of all possible consultation, physical examination, and auxiliary examination results constitute a node set , and then combine the positive node set and the negative node set to generate a new interaction graph ; The original interaction map The set of disease nodes in is denoted as ; The relationships in the relationship path come from the medical knowledge graph, according to , and a relationship path , by traversing Get the reasoning path , the reasoning paths corresponding to all relationship paths are combined to form the recommended action The set of reasoning paths .

[0026] Furthermore, the importance of each reasoning path is calculated as follows:

[0027] For each reasoning path , first remove Medium Then remove all the edges that make up All the intermediate nodes of Counterfactual interaction graph , using disease prediction models according to and Two disease probability distributions are calculated, and the importance of the inference path is measured by the difference between the two disease probability distributions.

[0028] Furthermore, the important reasoning path and the prompt word template for generating the path description are spliced ​​and input into the big model to generate a natural language description of the important reasoning path; the natural language description of the important reasoning path is spliced ​​with the prompt word template of the big model end facing doctors as the prompt words of the big model end facing doctors.

[0029] According to a second aspect of the present specification, there is provided an interactive clinical decision support method based on large model knowledge enhancement, the method comprising:

[0030] Multiple rounds of interaction are performed between the doctor-oriented big model and the patient, each round of interaction including the consultation content of the big model and the answer of the patient;

[0031] Constructing an interaction graph, specifically, constructing a positive node set and a negative node set according to the answer content of the patient end and performing entity alignment based on the medical knowledge graph, searching in the medical knowledge graph to obtain an intermediate node set excluding negative nodes, and generating an interaction graph based on the intermediate node set and the positive node set;

[0032] At the end of each round of interaction, the interaction graph is updated based on the interaction content;

[0033] Generate a disease feature map according to the medical knowledge map, calculate the disease probability distribution based on the disease prediction model according to the embedded representation of the interaction map and the disease feature map, select the recommended action of the next round of reinforcement learning agent using the greedy strategy and the reinforcement learning model, calculate the reward according to the change of the disease probability distribution after the action, and jointly train the disease prediction model and the reinforcement learning model to obtain a reinforcement learning model based on the semantic information of the interaction map;

[0034] Generate an inference path according to the relationship path, generate a counterfactual state of the interaction graph based on the inference path, calculate the importance of each inference path based on the counterfactual state, input the important inference path into the big model to generate a natural language description of the important inference path as a prompt word for the big model end facing doctors.

[0035] The beneficial effects of the present invention are: the present invention combines knowledge graphs to improve the accuracy and reliability of the knowledge level of the large model in multi-round consultation tasks, which is reflected in the following aspects:

[0036] 1. Update of interaction graphs in multi-round interactive clinical decision support processes. At the end of each round of interaction with the big model, the interaction graph is updated based on the interaction content; this involves extracting information from the interaction process as positive and negative inputs for constructing the interaction graph, and dynamically updating the interaction graph based on the extracted information to support the knowledge retrieval and reasoning process of the next round of interaction.

[0037] 2. Reinforcement learning reasoning based on semantic information of interaction graphs. Multiple rounds of consultations are considered as a Markov decision process, with the low-dimensional embedding representation of the interaction graph as the state, and the consultation, physical examination or auxiliary examination as executable actions; the diagnosis process is optimized through reinforcement learning methods to improve the accuracy and efficiency of diagnosis; the implementation process includes extracting features from the interaction graph and the disease feature graph, calculating the probability distribution of each disease, and adjusting the reinforcement learning reward mechanism according to the diagnostic accuracy, information gain, and the penalty of unnecessary actions, so as to obtain an accurate and efficient decision-making strategy close to clinical practice.

[0038] 3. Representation of important reasoning paths based on counterfactual states. By analyzing the changes in the interaction graph of multiple rounds of consultations, reasoning paths are generated, counterfactual states of the interaction graph are generated based on the reasoning paths, the importance of each reasoning path is calculated based on the counterfactual states, and the important reasoning paths are input into the big model to generate a natural language description of the important reasoning paths. This can improve the quality of knowledge retrieval from the medical knowledge graph in multiple rounds of consultations, provide a more credible knowledge representation for the big model input, and improve the quality and credibility of the content generated by the big model. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A structural diagram of an interactive clinical decision support system based on large model knowledge enhancement provided by an embodiment of the present invention;

[0041] Figure 2 A flowchart for implementing an interactive graph construction module provided in an embodiment of the present invention;

[0042] Figure 3 A flowchart of collecting training data based on the interaction process between medical records and agent recommended actions in an electronic medical record system provided by an embodiment of the present invention;

[0043] Figure 4 A flowchart for implementing a counterfactual state-based important diagnostic path generation module provided in an embodiment of the present invention;

[0044] Figure 5 A schematic diagram of an interaction graph after the first round of interaction provided by an embodiment of the present invention;

[0045] Figure 6 A schematic diagram of an interaction graph after the second round of interaction provided by an embodiment of the present invention;

[0046] Figure 7 A schematic diagram of an interactive graph for evaluating the importance of paths provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0048] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0049] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0050] The present invention provides an interactive clinical decision support system based on large model knowledge enhancement, such as Figure 1 As shown, the system includes a large model-patient multi-round interaction module, an interaction graph construction module, a reinforcement learning reasoning module based on interaction graph semantic information, and an important diagnostic path generation module based on counterfactual states. In the following embodiments, the implementation process of each module is described in detail.

[0051] 1. Large model - patient multi-round interaction module, which completes the following steps:

[0052] The first step is to initialize the large model-patient multi-round interaction module, and set the interaction rounds to , each round of interaction Including consultation content for doctors on the big model side And the patient's answer , Patient responses in natural language, such as "I feel a stomachache," or data extracted from electronic medical records Related test results, such as "blood leukocyte increase or urine routine test no obvious abnormality", then there is Collect the patient's basic information and preliminary description of the condition as the initial answer from the patient, recorded as .

[0053] The second step is to update the interaction map based on the questions raised by the big model and the answers from the patient at the end of each round of interaction. , This is an interactive round. Usually, the consultation content includes questions related to the disease and symptoms proposed by the large model, as well as recommended physical examination items and auxiliary examination items.

[0054] The third step is to use the interaction graph and reinforcement learning models to calculate the next best action The action can be a new interview, physical examination item or auxiliary examination item related to the disease and symptoms.

[0055] The fourth step is to select important reasoning paths through the path importance evaluation method based on counterfactual states, and input the important reasoning paths into the large model to generate natural language descriptions that are helpful for diagnosis.

[0056] The fifth step is to optimize the recommendation strategy of the reinforcement learning model based on the rewards obtained for each decision in the interaction and the final diagnostic accuracy when the diagnosis conclusion is reached or the interaction ends.

[0057] 2. Interaction graph construction modules, such as Figure 2 As shown, this module completes the following steps:

[0058] The first step is to construct positive node sets and negative node sets based on the patient's answers, and perform entity alignment based on the medical knowledge graph, specifically:

[0059] Answer from the patient The positive interview results, physical examination results, auxiliary examination results and interview contents extracted from Suspected disease concept input positive node set .

[0060] Answer from the patient The negative consultation results, physical examination results, and auxiliary examination results extracted from the negative node set are entered , .

[0061] For example, if the content of a medical consultation is "Pneumonia, pulmonary embolism, heart failure and other diseases may cause dyspnea. Do you have leg swelling, pain or long-term sitting or lying experience?", then the corresponding suspected disease concepts in the consultation content include the following potential diseases: pneumonia, pulmonary embolism, heart failure, and these disease concepts are regarded as positive nodes. Correspondingly, if the patient answers "denies leg symptoms, but mentions nocturnal paroxysmal dyspnea.", then the denial of "leg symptoms" is regarded as a negative consultation result, the statement of "paroxysmal nocturnal dyspnea" is regarded as a positive consultation result, and the "pain or long-term sitting or lying" that is not mentioned is not regarded as an interactive graph node.

[0062] Positive node set and negative node sets All nodes in the existing medical knowledge graph , using the medical entity alignment method to align entities. For example, align the patient's statement "having paroxysmal dyspnea at night" to the medical concept "unable to lie flat at night" that meets the requirements.

[0063] The second step is to build a medical knowledge graph Search to get the set of intermediate nodes excluding negative nodes , including the following sub-steps:

[0064] Ⅰ. Initialize the intermediate node set of the i-th search in the j-th round of interaction Empty Set , , Represents a positive node set The number of nodes in, any node , Medium The node set outside is denoted as . Assume that the maximum search depth of the interaction graph is ,node In the medical knowledge graph In The set of adjacent nodes of order .when hour, .

[0065] Ⅱ. When ,like ,but of Intermediate node set For and Any node in is used as the head and tail node, and does not contain The length of the midpoint is All nodes in the path.

[0066] III. Traverse sequentially All nodes in and each node The final set of intermediate nodes is obtained by connecting the adjacent nodes of the order .

[0067] The third step is based on the intermediate node set and positive node sets Generate interaction graph .initialization for , assuming The set of all nodes , any node and nodes ,if and There is a relationship between the diagnostic task make ,but , traverse All nodes in the final interaction graph of this round are generated . To pre-collect medical knowledge from the medical knowledge graph based on expert experience The set of relations selected in that are relevant to the diagnostic task.

[0068] 3. Reinforcement learning reasoning module based on interaction graph semantic information. This module completes the following steps:

[0069] The first step is to calculate the low-dimensional embedding representation of the interaction graph and the disease feature graph. Based on the previous The embedded representation of the interaction graph obtained during the round-by-round interaction process, , is the dimension of the embedding representation. The embedding representation can be represented by the interaction graph It is obtained through graph representation methods such as Graph Convolutional Network (GCN). . Medical Knowledge Graph China-Israel Disease The disease feature map generated with the node as the center is recorded as , get the embedded representation of the disease feature map = .

[0070] The second step is to calculate the probability distribution of each disease. Based on the embedded representation of the interaction graph and the disease feature graph, the probability of each disease suffered by the patient after this round of interaction is calculated. Suppose the medical knowledge graph The set of all diseases is , The total number of diseases in is recorded as U, then the disease prediction model predicts the disease The probability is calculated as:

[0071]

[0072] in, is the activation function, is a multi-layer perceptron, and are the learnable weight matrices for disease feature graph embedding representation and interaction graph embedding representation, respectively. is the bias term, The patient is suffering from a disease when the jth round of interaction is completed. Calculate the loss function of the disease prediction model , using cross entropy loss, the formula is as follows:

[0073]

[0074] in, For disease The label is 1 for positive and 0 for negative; It is the round when the diagnosis conclusion is reached or the interaction ends.

[0075] The third step is to select the recommended action for the next round of reinforcement learning agents. Actions can be interviews, physical examinations, or auxiliary examinations that can be performed, or the final diagnosis conclusion can be given. The actions to be taken are determined using a greedy strategy and a reinforcement learning model. A deep Q network can be used as a reinforcement learning model.

[0076] In one embodiment, the structure of the deep Q network includes an input layer that concatenates the interaction graph embedding representation and the vectorized action representation as input, one or more encoders (such as Transformer encoders) that help the deep Q network learn the relationship between state and action, an aggregation layer consisting of an average pooling layer or a maximum pooling layer, and a final action value prediction layer consisting of multiple fully connected layers, which outputs the expected reward of each action.

[0077]

[0078] in, , is the set of all actions, are the learnable parameters of the deep Q-network, For Action under the conditions The action value function of is estimated. Uniformly extract an action from A with probability Choose the action that yields the largest action-value function. is the hyperparameter of the greedy strategy selected based on experience. In this embodiment, .

[0079] The fourth step is to simulate the interaction process using the patient's consultation, physical examination or auxiliary examination data in the electronic medical record system EHR during the training phase of the deep Q network. That is, after the agent recommends an action, the interaction graph is updated according to the patient's consultation, physical examination or auxiliary examination results in the EHR and the embedded representation of the new interaction graph is calculated. Specifically, the recommended action is first matched with the corresponding data in the EHR, and a new positive node set is formed for the consultation, physical examination or auxiliary examination results that have been conducted. With negative node set Then, based on the new positive node set and negative node set, a new interaction graph after the action is constructed. , new interaction graph embedding representation If no data corresponding to the recommended action is found in the EHR, the interaction graph remains unchanged. During the testing phase of the deep Q network, the interaction graph is updated directly based on the interaction between the doctor-oriented large model and the patient side.

[0080] Step 5: Calculate the reward function and reward Includes diagnostic accuracy rewards , for the information gain reward of the diagnostic task , and penalties for unnecessary actions , that is:

[0081]

[0082] in, To balance the constant coefficient of reward and punishment; in this embodiment, set , , .

[0083] : If the disease prediction model correctly predicts the disease, it is +1, otherwise it is -1.

[0084] : A reward that measures information gain, whose value is the change in information entropy; information entropy Calculated by the following formula:

[0085]

[0086]

[0087] : Used to measure whether an action is necessary, the formula is:

[0088]

[0089] in, It is used to measure the change in the probability of disease prediction by the disease prediction model. is a preset threshold of the change amount. If the predicted probability change of an action is lower than the preset threshold, it is considered an unnecessary action. .

[0090] The sixth step is to collect training data based on the simulated interaction process between the medical records in the EHR and the recommended actions of the intelligent agent, such as Figure 3 As shown. A medical record in EHR is all the results of a patient's consultation, physical examination or auxiliary examination during a medical visit. First, take the main complaint in a medical record to construct the interaction map in the simulated interaction. , the agent is based on Computational Recommended Action , update the interaction graph according to the recommended action: And calculate With rewards . This constitutes an experience sample for training the reinforcement learning model. When all the consultation, physical examination or auxiliary examination items in the EHR medical record are recommended by the agent, or the agent's recommendation rounds have reached the set maximum rounds When , the training data collection based on the medical record is stopped, and the training data collection based on the next medical record is carried out.

[0091] Step 7: Calculate the loss function for training the deep Q network parameters .

[0092]

[0093] in, It is updated once Medium Parameters The total number of experience samples required, An estimate of the action-value function for updating parameters during training, are the parameters updated in the action-value function estimation, is the target action value function, is the target deep Q network with fixed parameters, is the parameter of the target deep Q network; by traversing all actions in set A, the action that maximizes the action value function is selected and recorded as . Parameters in Initially with Parameters in Same, Update hour, First, keep it unchanged. When the number of updates reaches a preset number, for example 1000, the update and same, is the reward in the experience sample, is the discount rate. In this embodiment, .

[0094] Step 8: Construct the overall loss function and the loss function of the disease prediction model And the loss function of the deep Q network Weighted sum, overall loss function for:

[0095]

[0096] in, and are hyperparameters that adjust the importance of different losses, In this embodiment, set , .

[0097] In the ninth step, optimizers such as Adam are used to simultaneously optimize the parameters of the reinforcement learning model and the disease prediction model to obtain a reinforcement learning model based on the semantic information of the interaction graph.

[0098] 4. Important diagnostic path generation module based on counterfactual states

[0099] After the reinforcement learning model based on the semantic information of the interaction graph is trained, the explanation of the recommended actions of the reinforcement learning model is generated through the important diagnostic path generation module based on the counterfactual state, such as Figure 4 As shown, the specific steps include:

[0100] The first step is to generate a reasoning path based on the relationship path. First, select the agent to recommend an action The corresponding nodes of all possible consultation, physical examination, and auxiliary examination results constitute a node set .based on and Generate a new interactive graph with result nodes . The original interaction map The set of disease nodes included in is recorded as A relationship path is a sequence of relationships. , is the total length of the path, Medical Knowledge Graph The set of all relations in the relation path is designed based on experience. An example of a relation path with a length of 2 is {leading to, examination result}. This relation path can indicate that the examination result of a certain auxiliary examination item can be used to diagnose a certain disease. Several relation paths constitute a relation path set , is the total number of relationship paths. , and a relationship path , by traversing Get the reasoning path In this embodiment, the traversal method is depth-first search. The starting point and end point of a reasoning path are taken from the set and , the starting point and the end point of the reasoning path are connected to several intermediate nodes through the relationship path, for example, , then ,in ,or A relationship path The corresponding set of all reasoning paths The union of the reasoning paths corresponding to all relationship paths constitutes the action recommended by this reinforcement learning model. The set of reasoning paths .

[0101] The second step is to calculate the importance of each reasoning path based on the counterfactual state. , , first remove Medium All edges of , then remove the components All intermediate nodes ,get Counterfactual interaction graph , using disease prediction models based on The calculated probability distribution of the disease is , using disease prediction models based on The calculated probability distribution of the disease is ,path Importance It is measured by the difference between two probability distributions, namely:

[0102]

[0103] in, As a function reflecting the difference in probability distribution, KL divergence is used in this embodiment.

[0104] The third step is to input the important reasoning paths into the big model to generate a natural language description of the important reasoning paths as prompt words for the big model end facing doctors.

[0105] According to the calculated importance of each reasoning path, the reasoning path with importance higher than the set threshold is selected to form a reasoning path subset , as the reasoning path set for text generation. In this embodiment, the threshold is set to 0.75*maximum reasoning path importance. An example of a reasoning path subset is:

[0106] {{ : Heart failure → causes → decreased left ventricular ejection fraction, echocardiogram → examination results → decreased left ventricular ejection fraction; :Pulmonary embolism → leads to → increased right ventricular load, echocardiogram → examination results → increased right ventricular load}.

[0107] Will The reasoning paths in the above are spliced ​​with the prompt word templates for generating path descriptions and input into the general large model to generate natural language descriptions of these paths. According to the empirical prompt word template, an example of this template is: "Through the analysis of the medical knowledge graph, the following reasoning paths are identified as important reasoning paths for diagnosis based on key relationships and nodes. Reasoning path description: {each path in the reasoning path subset}. Please describe the medical knowledge reflected by the above reasoning paths." An example of the natural language description of the reasoning path generated by the general large model is: "These reasoning paths reflect the key diagnostic features of two diseases, heart failure and pulmonary embolism. Heart failure leads to a decrease in left ventricular ejection fraction, while pulmonary embolism leads to an increase in right ventricular load. Echocardiogram results can show these features, which can help doctors determine the type of disease." Finally, the natural language description of the path is spliced ​​with the prompt word template of the doctor-oriented large model as the prompt word input for the next generation of the doctor-oriented large model. An example of a prompt word template for the big model side for doctors is: "Through the analysis of the medical knowledge graph, the following knowledge is identified as medical knowledge that is more important for diagnosis: {natural language description of the reasoning path}, please provide new comprehensive diagnostic suggestions for the patient's condition based on this information."

[0108] The following is an example of a patient with a chief complaint of dyspnea having multiple rounds of interactive dialogue with the system, which resulted in the exclusion of the risk of pulmonary embolism and a preliminary diagnosis of heart failure.

[0109] (1) Initialization interaction

[0110] During the initial interaction, the patient reported dyspnea, and the electronic medical record system provided basic information about the patient, such as age, gender, and medical history. ={"Dyspnea, male, 75 years old, previously healthy"}.

[0111] (2) First round of interaction

[0112] The large model generates a medical question: "Pneumonia, pulmonary embolism, heart failure and other diseases may cause dyspnea. Do you have leg swelling, pain, or long-term sitting or lying experience?" The corresponding positive nodes in the medical question include potential diseases such as pneumonia, pulmonary embolism, and heart failure. The large model asks the patient whether the patient has leg swelling, pain, or long-term sitting or lying experience. The patient denied leg symptoms and other related risk factors, but mentioned that he had nocturnal paroxysmal dyspnea. Based on the large model's medical question content and the patient's answer, the interaction map is updated to ,like Figure 5 As shown, because the interaction map does not contain direct risk factors for pulmonary embolism, the disease prediction model predicts that the patient is more likely to have heart failure and less likely to have pulmonary embolism.

[0113] (3) Second round of interaction

[0114] The second round of questions in the large model is "Do you have any heart-related diseases before?" The patient denies having a history of heart disease, but confirms having a history of hypertension. The interactive map is updated to ,like Figure 6 As shown, based on , the disease prediction model predicts that the patient's likelihood of developing heart failure further increases. Based on the semantic information of the interaction graph in the training data, the reinforcement learning model believes that the best action for the next step is to request a cardiac ultrasound examination.

[0115] Recommend nodes corresponding to echocardiographic examination results based on reinforcement learning model, and generate interactive graphs for evaluating path importance ,like Figure 7 As shown, The reasoning paths with higher importance include: Ⅰ heart failure->cause->decreased left ventricular ejection fraction, echocardiogram->examination results->decreased left ventricular ejection fraction, Ⅱ pulmonary embolism->cause->increased right ventricular load, echocardiogram->examination results->increased right ventricular load.

[0116] (4) The third round of interaction

[0117] Based on important recommendation paths, a natural language description containing knowledge is generated, such as "Use cardiac ultrasound to evaluate the patient's left and right ventricular function to distinguish pulmonary embolism from heart failure", so that the large model facing doctors tends to recommend cardiac ultrasound examination in this round of interaction. The cardiac ultrasound examination indicates that the patient's left ventricular function is reduced, as the patient's response in this round of interaction. Combining the results of the cardiac ultrasound examination with the aforementioned interactive content, the system recommends the diagnosis conclusion of heart failure. Finally, based on the accuracy and decision-making efficiency of this multi-round interactive diagnosis, the model strategy is optimized.

[0118] The embodiment of the present invention also provides an interactive clinical decision support method based on large model knowledge enhancement, the method comprising the following steps:

[0119] Multiple rounds of interaction are performed between the doctor-oriented big model and the patient, each round of interaction including the consultation content of the big model and the answer of the patient;

[0120] Constructing an interaction graph, specifically, constructing a positive node set and a negative node set according to the answer content of the patient end and performing entity alignment based on the medical knowledge graph, searching in the medical knowledge graph to obtain an intermediate node set excluding negative nodes, and generating an interaction graph based on the intermediate node set and the positive node set;

[0121] At the end of each round of interaction, the interaction graph is updated based on the interaction content;

[0122] Generate a disease feature map according to the medical knowledge map, calculate the disease probability distribution based on the disease prediction model according to the embedded representation of the interaction map and the disease feature map, select the recommended action of the next round of reinforcement learning agent using the greedy strategy and the reinforcement learning model, calculate the reward according to the change of the disease probability distribution after the action, and jointly train the disease prediction model and the reinforcement learning model to obtain a reinforcement learning model based on the semantic information of the interaction map;

[0123] Generate an inference path according to the relationship path, generate a counterfactual state of the interaction graph based on the inference path, calculate the importance of each inference path based on the counterfactual state, input the important inference path into the big model to generate a natural language description of the important inference path as a prompt word for the big model end facing doctors.

[0124] The specific implementation process can refer to the various modules in the aforementioned interactive clinical decision support system based on large model knowledge enhancement.

[0125] The above is only a preferred embodiment of the present invention. Although the present invention has been disclosed as a preferred embodiment, it is not intended to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the above disclosed methods and technical contents without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. An interactive clinical decision support system based on large model knowledge enhancement, It is characterized in that The system includes the following modules: The big model-patient multi-round interaction module includes the doctor's big model's inquiry content and the patient's answer. At the end of each round of interaction, the interaction graph is updated based on the interaction content. An interactive graph construction module is used to construct a positive node set and a negative node set according to the answer content of the patient end and perform entity alignment based on the medical knowledge graph, search the medical knowledge graph to obtain an intermediate node set excluding negative nodes, and generate an interactive graph based on the intermediate node set and the positive node set; A reinforcement learning reasoning module is used to generate a disease feature map according to the medical knowledge map, calculate the disease probability distribution based on the disease prediction model according to the embedded representation of the interaction map and the disease feature map, select the recommended action of the next round of reinforcement learning agent using the greedy strategy and the reinforcement learning model, calculate the reward according to the change of the disease probability distribution after the action, and jointly train the disease prediction model and the reinforcement learning model to obtain a reinforcement learning model based on the semantic information of the interaction map; In the training phase of the reinforcement learning model, after the agent recommends an action, the recommended action is matched with the data of the electronic medical record system, and new positive node sets and negative node sets are formed for the results of the medical consultation, physical examination or auxiliary examination, and the interaction graph is updated, and a new embedding representation is calculated; If no data corresponding to the recommended action is found in the electronic medical record system, the interaction graph remains unchanged; the reward includes a diagnostic accuracy reward R acc , for the information gain reward R of the diagnosis task info , and a penalty R for unnecessary actions unnec , where R acc The value of R is determined by whether the disease prediction model correctly predicts the disease. info The value of is the change in information entropy, R unnec Take the larger value between 0 and θ-ΔI, ΔI is used to measure the change in the probability of the disease predicted by the disease prediction model, and θ is the preset threshold of the change; In the reinforcement learning reasoning module, training data is collected based on the simulated interaction process between the medical records in the electronic medical record system and the recommended actions of the intelligent agent, specifically: Take a complaint from a medical record to construct the initial interaction graph G in the simulated interaction 1 In the jth round of simulated interaction, the agent follows the interaction graph G j The embedding representation s j Generate recommended actions j , according to a j Update the interaction graph to G j+1 And calculate the new embedding representation s j+1 With reward j ,(s j ,a j ,s j+1 ,r j ) constitutes an experience sample for reinforcement learning model training; When all the consultation, physical examination or auxiliary examination items of the medical record in the electronic medical record system are recommended by the intelligent agent, or the number of rounds of recommendation by the intelligent agent reaches the preset maximum round, the collection of training data based on the medical record is stopped; The important diagnostic path generation module is used to generate an inference path based on the relationship path, generate a counterfactual state of the interaction graph based on the inference path, calculate the importance of each inference path based on the counterfactual state, input the important inference path into the big model to generate a natural language description of the important inference path as a prompt word for the big model end facing the doctor.

2. The interactive clinical decision support system based on large model knowledge enhancement according to claim 1, It is characterized in that In the interaction graph construction module, constructing positive node sets and negative node sets is specifically as follows: The positive medical consultation results, physical examination results, auxiliary examination results and suspected disease concepts in the medical consultation content extracted from the patient's answer are input into the positive node set; The negative medical interview results, physical examination results, and auxiliary examination results extracted from the patient's answers are input into the negative node set.

3. The interactive clinical decision support system based on large model knowledge enhancement according to claim 1, It is characterized in that The specific process of obtaining the intermediate node set is as follows: In each search process, select any node n from the positive node set. x , except for n in the positive node set x The other nodes outside constitute the set n x′ ; Search in the medical knowledge graph x The set of adjacent nodes of order a is denoted as n xa , excluding n x to n xa ∩n x′ Negative nodes in the path, get n x The a-order intermediate node set of the search is obtained by traversing all nodes in the positive node set and the a-order adjacent node set of each node in turn to obtain the intermediate node set of this search.

4. The interactive clinical decision support system based on large model knowledge enhancement according to claim 1, It is characterized in that The specific method of generating the reasoning path according to the relationship path is as follows: Select the agent to recommend action a j The corresponding nodes of all possible consultation, physical examination, and auxiliary examination results constitute the node set Δp-nodes j , and then combine the positive node set and the negative node set to generate a new interaction graph G j ′; transform the original interaction graph G j The set of disease nodes in is denoted as D j ; The relationships in the relationship path come from the medical knowledge graph, according to Δp-nodes j , D j and a relationship path z i , by traversing G′ j Get the reasoning path The reasoning paths corresponding to all relationship paths are combined to form the recommended action a j The reasoning path set W j .

5. The interactive clinical decision support system based on large model knowledge enhancement according to claim 4, It is characterized in that The importance of each reasoning path is calculated as follows: For each reasoning path w i , first remove G′ j Composition i Then remove all the edges that make up w i All intermediate nodes of G′ j The counterfactual interaction graph G′ j,-i , using the disease prediction model according to G′ j,-i and G′ j Two disease probability distributions are calculated, and the importance of the inference path is measured by the difference between the two disease probability distributions.

6. The interactive clinical decision support system based on large model knowledge enhancement according to claim 1, It is characterized in that The important reasoning path and the prompt word template of the generated path description are spliced ​​and input into the big model to generate a natural language description of the important reasoning path; the natural language description of the important reasoning path is spliced ​​with the prompt word template of the big model end facing doctors as the prompt words of the big model end facing doctors.

7. An interactive clinical decision support method based on large model knowledge enhancement, It is characterized in that The method includes: Multiple rounds of interaction are performed between the doctor-oriented big model and the patient, each round of interaction including the inquiry content of the big model and the answer of the patient; Constructing an interaction graph, specifically, constructing a positive node set and a negative node set according to the answer content of the patient end and performing entity alignment based on the medical knowledge graph, searching in the medical knowledge graph to obtain an intermediate node set excluding negative nodes, and generating an interaction graph based on the intermediate node set and the positive node set; At the end of each round of interaction, the interaction graph is updated based on the interaction content; Generate a disease feature map according to the medical knowledge map, calculate the disease probability distribution based on the disease prediction model according to the embedded representation of the interaction map and the disease feature map, use the greedy strategy and the reinforcement learning model to select the recommended action of the next round of reinforcement learning agent, calculate the reward according to the change of the disease probability distribution after the action, and jointly train the disease prediction model and the reinforcement learning model to obtain a reinforcement learning model based on the semantic information of the interaction map; in the training stage of the reinforcement learning model, after the agent recommends an action, match the recommended action with the data of the electronic medical record system, form a new positive node set and a negative node set for the results of the interview, physical examination or auxiliary examination, update the interaction map, and calculate a new embedded representation; if the data corresponding to the recommended action is not found in the electronic medical record system, keep the interaction map unchanged; the reward includes a diagnostic accuracy reward R acc , for the information gain reward R of the diagnosis task info , and a penalty R for unnecessary actions unnec , where R acc The value of R is determined by whether the disease prediction model correctly predicts the disease. info The value of is the change in information entropy, R unnec Take the larger value between 0 and θ-ΔI, ΔI is used to measure the change in the probability of the disease predicted by the disease prediction model, and θ is the preset threshold of the change; The training data is collected based on the simulated interaction process between the medical records in the electronic medical record system and the recommended actions of the agent, specifically: Take a complaint from a medical record to construct the initial interaction graph G in the simulated interaction 1 In the jth round of simulated interaction, the agent follows the interaction graph G j The embedding representation s j Generate recommended actions j , according to a j Update the interaction graph to G j+1 And calculate the new embedding representation s j+1 With reward j ,(s j ,a j ,s j+1 ,r j ) constitutes an experience sample for reinforcement learning model training; When all the consultation, physical examination or auxiliary examination items of the medical record in the electronic medical record system are recommended by the intelligent agent, or the number of rounds of recommendation by the intelligent agent reaches the preset maximum round, the collection of training data based on the medical record is stopped; Generate an inference path according to the relationship path, generate a counterfactual state of the interaction graph based on the inference path, calculate the importance of each inference path based on the counterfactual state, input the important inference path into the big model to generate a natural language description of the important inference path as a prompt word for the big model end facing doctors.

Citation Information

Patent Citations

  • Node relation graph display method and device, computer equipment and storage medium

    CN112905858A

  • Auxiliary disease differential diagnosis system based on causality-containing medical knowledge graph

    CN113871003A

  • Data analysis system based on knowledge graph

    CN115620916A

  • Doctor-patient interaction method and system based on patient individual knowledge graph

    CN115762813A

  • Intelligent interaction method based on Transform and knowledge graph

    CN116151273A