Knowledge graph-driven medical big model diagnosis method

Through the medical large model diagnosis method driven by the knowledge graph, graph neural network and natural language processing technology are used to construct the medical knowledge graph, and combined with machine learning and reinforcement learning algorithms, it solves the accuracy and personalization problems of medical diagnosis in the existing technology, and achieves Efficient analysis of large-scale medical data and generation of personalized treatment recommendations.

CN118280562BActive Publication Date: 2024-08-23XIANGJIANG LAB

Patent Information

Application Number
CN202410654603.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-23
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

Existing medical diagnosis methods rely on doctor experience, are difficult to effectively handle complex patterns and associations in large-scale medical data, and lack continuous learning and self-optimization mechanisms, resulting in limited diagnostic accuracy and personalized level of treatment plans.

Method used

It adopts a medical large model diagnosis method driven by knowledge graph, constructs a medical knowledge graph through graph neural network and natural language processing technology, combines machine learning and reinforcement learning algorithms to construct a multi-dimensional patient portrait, and continuously optimizes it through patient feedback and doctor opinions.

Benefits of technology

It improves the accuracy of medical diagnosis and the level of personalization of treatment plans, enables dynamic response to the latest medical practices and patient needs, and significantly improves the timeliness and effectiveness of diagnosis and treatment plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118280562B
    Figure CN118280562B
Patent Text Reader

Abstract

The present invention relates to the field of medical information technology, and specifically to a knowledge graph-driven medical big model diagnosis method, comprising the following steps: S1: constructing a medical knowledge graph; S2: extracting information related to the condition, and mapping the information to entities and relationships corresponding to the medical knowledge graph in S1; S3: constructing a multi-dimensional patient portrait; S4: combining the medical knowledge graph of S1 and the multi-dimensional patient portrait constructed by S3, training and optimizing the medical big model; S5: generating personalized diagnosis and treatment suggestions for the specific conditions of the patient; S6: continuously optimizing the medical knowledge graph of S1 and the medical big model of S4. The present invention, by combining the medical knowledge graph and advanced machine learning technology, achieves the accuracy of medical diagnosis and the personalization of treatment suggestions, while introducing a continuous learning mechanism to dynamically optimize the diagnosis and treatment plan, thereby significantly improving the quality and efficiency of medical services and promoting the progress of medical research and practice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical information technology, and in particular to a knowledge graph-driven medical large model diagnosis method. Background Art

[0002] In the field of medical information technology, especially in the application of artificial intelligence (AI) for medical diagnosis and treatment recommendations, there are a series of technical challenges. With the explosive growth of medical data, including electronic health records, medical literature, clinical trial reports and real-time health monitoring data, how to efficiently and accurately process and analyze these complex and diverse data sets has become a major problem. In addition, existing medical diagnosis methods often rely on the experience and intuition of professional doctors and lack sufficient data support, resulting in subjectivity in the diagnosis process and difficulty in processing the complex patterns and associations revealed by large-scale data analysis, thereby limiting the accuracy of diagnosis and the level of personalization of treatment plans.

[0003] Faced with these challenges, the limitations of existing technologies are obvious. Although some studies have attempted to apply machine learning and deep learning technologies to medical diagnosis and treatment recommendation generation, these methods generally fail to fully utilize the rich structured knowledge contained in medical knowledge graphs, resulting in the generated diagnosis and treatment recommendations lacking the necessary medical basis and explainability. In addition, existing solutions are insufficient in continuous learning and self-optimization, making it difficult to timely reflect the latest medical practices and research results, and lack a mechanism for dynamic adjustment based on patient feedback and professional opinions.

[0004] Therefore, there is an urgent need for a new technical solution that can not only comprehensively utilize large-scale medical data and medical knowledge graphs to improve the accuracy and efficiency of diagnosis, but also achieve continuous optimization of medical decision support systems and generation of personalized treatment recommendations through intelligent learning and feedback mechanisms to meet the growing demand for personalized medical care. Summary of the Invention

[0005] Based on the above objectives, the present invention provides a knowledge graph-driven medical large model diagnosis method.

[0006] The knowledge graph-driven medical large model diagnosis method includes the following steps:

[0007] S1: Extract information from medical literature, clinical research reports, and real-time health data, and use pre-defined graph neural network technology to build a medical knowledge graph;

[0008] S2: Uses pre-defined natural language processing technology to perform deep semantic analysis on patient self-reports, medical records, and doctor notes to extract information related to the condition and map this information to the entities and relationships corresponding to the medical knowledge graph in S1;

[0009] S3: Based on the patient's medical data, lifestyle habits and genetic information, using preset machine learning technology to build a multi-dimensional patient portrait;

[0010] S4: Uses a preset reinforcement learning algorithm, combined with the medical knowledge graph of S1 and the multi-dimensional patient portraits constructed in S3, to train and optimize the medical model;

[0011] S5: Generate personalized diagnosis and treatment recommendations tailored to the patient's specific situation based on the diagnostic results output by the optimized medical model in S4 and the medical knowledge graph in S1;

[0012] S6: Through patient feedback on treatment effects and doctors’ professional opinions, continue to optimize the medical knowledge graph of S1 and the medical big model of S4.

[0013] Furthermore, the S1 specifically includes:

[0014] S11: Use natural language processing technology, specifically named entity recognition and relationship extraction technology, to automatically identify entities and relationships between entities in medical literature and clinical research reports. Entities include diseases, symptoms, and drugs. The specific formula for named entity recognition is:

[0015] ,in, Represents a given text Under the condition of probability; Representative text the medical entities identified in; Represents a paragraph or sentence of text from medical literature, clinical research reports, or real-time health data; Represents the set of all medical entities; Represents a collection of entities An element in Represents a scoring function used to calculate text Medium Entity The probability of occurrence of ; Relation extraction uses a similar method, whose goal is to identify the relationship between two entities. The specific formula is expressed as:

[0016] ,in, Represents a given text and entities and Under the condition of probability; represent and The medical relationship between represents two medical entities identified in the text; Represents the set of all medical relationship types; Represents the scoring function used to evaluate the entity and There is a relationship between probability; This is the set of all relationships An element in

[0017] S12: Standardize the information extracted in step S11 and encode entities and relationships using a unified medical terminology system to ensure seamless integration of data from different sources;

[0018] S13: Graph Neural Network Construction of Knowledge Graph: Using the preset graph neural network technology, specifically graph convolutional network technology, the entities and relationships standardized in step S12 are mapped into a graph structure, where nodes represent entities and edges represent relationships between entities. By training the graph convolutional network, the node representation is optimized, thereby capturing the relationships between entities and constructing a medical knowledge graph.

[0019] S14: Establish a dynamic update mechanism based on feedback. When new medical literature, clinical research reports are released, or real-time health data is collected, steps S11 to S13 are automatically triggered to update the information in the medical knowledge graph.

[0020] Furthermore, the S14 specifically includes:

[0021] S141: Real-time monitoring of medical literature databases, clinical research report libraries, and health data platforms. Specifically, a predefined data recognition model is used to identify newly released literature, reports, or collected real-time health data. The data recognition model is based on timestamp and word tag technology to automatically mark data update events and trigger subsequent steps. The data recognition model function formula is expressed as: DataFlag Timestamp,Keywords , where DataFlag is the data update flag, which is true when new data is detected; It is a data recognition function that identifies and labels new data based on its timestamp and keywords. Timestamp is the timestamp of data release or collection. Keywords are word tags in the data, which are used to assist in recognition.

[0022] S142: When the model in S141 is marked as updated with new data, the data processing flow from S11 to S13 is automatically started, and the process of automated text extraction and processing, data standardization and integration, and the construction of a knowledge graph using a graph neural network is re-executed;

[0023] S143: Based on step S13, an incremental learning strategy is applied to update the medical knowledge graph instead of rebuilding the entire graph;

[0024] S144: After the update is completed, a verification mechanism is used to check the accuracy and completeness of the knowledge graph to ensure that the update meets the expected results.

[0025] Furthermore, the S2 specifically includes:

[0026] S21: Standardize and preprocess the text in patient self-reports, medical records, and physician notes, including removing irrelevant characters, word standardization, word segmentation, and part-of-speech tagging to prepare the data for deeper analysis;

[0027] S22: Using a preset natural language processing model, specifically a Transformer-based model, to perform deep semantic analysis on the preprocessed text in step S21 to identify entities in the text and the relationships between entities;

[0028] S23: Map the entities and relationships identified in S22 to the medical knowledge graph constructed in S1, and use graph matching and information integration algorithms to update the knowledge graph to ensure that the medical knowledge graph can reflect the latest medical information and patient conditions.

[0029] Furthermore, the S3 specifically includes:

[0030] S31: Collect patients’ medical data, lifestyle habits, and genetic information;

[0031] S32: Preprocess the patient information collected in S31, including data cleaning to remove noise and incomplete records, standardization to align the formats of different data sources, and feature engineering to extract features for building patient profiles;

[0032] S33: Combining the patient's medical data, lifestyle habits, and genetic information, we integrate data from different dimensions through feature fusion technology, merging multi-source data into a unified feature set to provide a data view for cluster analysis;

[0033] S34: Apply a clustering algorithm to group patients based on the feature set integrated in S33. Each cluster represents a patient subgroup. Multiple clusters form a multi-dimensional patient portrait, reflecting the similarities and differences within the patient group.

[0034] S35: Update patient profiles regularly or dynamically based on newly collected medical data, patient feedback, and changes in lifestyle habits or genetic information.

[0035] Furthermore, the S34 specifically includes:

[0036] S341: Based on the feature fusion results in step S33, a feature vector is prepared for each patient. The feature vector is used to comprehensively reflect the patient's medical data, living habits, and genetic information. Each feature vector serves as a basic unit of input for the hierarchical clustering algorithm.

[0037] S342: Calculate the pairwise similarity of all patient feature vectors to determine the distance between patients. The similarity calculation uses the Euclidean distance or Manhattan distance method.

[0038] S343: Using a hierarchical clustering algorithm, based on the similarity calculated in step S342, the patients are gradually merged into small groups. At the beginning of the hierarchical clustering, each patient is regarded as an independent group, and then the algorithm gradually merges the most similar groups until the preset number of groups or similarity threshold is reached;

[0039] S344: By analyzing the characteristics of the cluster tree, combined with actual medical needs and group interpretability, the optimal number of clusters is determined. Specifically, the height of the cluster tree is cut to form the final patient group. To improve the practicality of this method, the silhouette coefficient evaluation indicator will be introduced to improve efficiency and ensure the consistency and accuracy of the clustering results.

[0040] S345: Based on the determined number of clusters, a multi-dimensional patient portrait is generated for each group. The portrait is used to comprehensively reflect the common characteristics and health status of patients in the group.

[0041] Furthermore, the S4 specifically includes:

[0042] S41: Define a simulation environment that represents the context of medical decision-making, including patient status, available medical resources, and treatment pathways. The environment status is represented by integrating the medical knowledge graph constructed in step S1 and the multi-dimensional patient profile constructed in step S3, where each status corresponds to the patient's health status and medical background information.

[0043] S42: Define the action space and reward mechanism. The action space defines all actions that the agent can take in the simulated environment, including selected diagnostic tests, drug treatments, or surgeries. The reward mechanism is designed based on the medical outcomes of the actions, where effective treatment decisions receive positive rewards, while poor decisions or actions that worsen the patient's condition receive negative rewards. The reward value is used to reflect the degree of treatment success and the positive impact on the patient's health.

[0044] S43: Select Deep Q Network DQN as the reinforcement learning algorithm. DQN uses a deep neural network to approximate the Q function, which is the expected reward for taking an action in a given state. The configuration of DQN includes the learning rate , discount factor And the exploration strategy, the exploration strategy is specifically the greedy strategy , used to balance between exploring new actions and utilizing known actions, the DQN update formula is:

[0045] ,

[0046] in, For the updated Value, representing the time , given the state and actions The total reward expected to be obtained under For in time Before, given the state and actions Next value; The learning rate controls the amplitude of Q value update, ranging from 0 to 1; For immediate rewards, representing Execution Action and transfer to the state Rewards received when is a discount factor that measures the current value of future rewards and also ranges from 0 to 1; is the value that represents the maximum expected reward among all actions, that is, the agent is in the next state The maximum expected reward that can be obtained;

[0047] S44: Learn optimal medical decision-making strategies by performing actions and observing the outcomes in a simulated environment. The specific process is as follows:

[0048] First, based on the current strategy, DQN is used to predict the value, and according to the greedy strategy Choose an action;

[0049] The agent then performs the selected action, and the environment returns an immediate reward based on the effect of the action and updates the patient's state;

[0050] Finally, use the DQN update formula to update the Q value based on the results of the action and optimize the future decision-making strategy;

[0051] S45: After model training is completed, the model is validated through an independent test set to evaluate its performance on unseen data.

[0052] Furthermore, the S45 specifically includes:

[0053] S451: Collect data from different data sources than the training set to construct an independent test set, ensuring that the test set covers a wide range of patient situations and medical conditions;

[0054] S452: Perform the same preprocessing steps on the data in the test set as the training data, including data cleaning, standardization, and feature extraction, to ensure that the data format is consistent with the training stage;

[0055] S453: Use the trained medical model to predict the test set, collect the model's prediction results, and compare them with the actual results. The indicators for evaluating model performance include accuracy, recall rate, and F1 score;

[0056] S454: Based on the evaluation results of S453, analyze the performance of the model under different types of patient situations and medical conditions, and identify the model's weaknesses and room for improvement;

[0057] S455: Repeat S451 to S454, using the adjusted version of the model for further testing and evaluation until the performance of the model reaches a predetermined level.

[0058] Furthermore, the S5 specifically includes:

[0059] S51: Analyze the diagnostic results of medical big models based on patient data, including disease diagnosis, disease severity assessment, and prediction of patient response to treatment options;

[0060] S52: Based on the diagnosis result in step S51, query and diagnose information on treatment plans, drug selection, side effects, and treatment success rates in the medical knowledge graph;

[0061] S53: Based on the patient's specific situation, including age, gender, medical history, genetic information, lifestyle habits, and the information retrieved in S52, construct personalized diagnosis and treatment recommendations, including drug selection, dosage recommendations, treatment plans, and lifestyle adjustment recommendations.

[0062] Furthermore, the S6 specifically includes:

[0063] S61: Collect patient feedback on treatment effectiveness and physicians' professional opinions on the effectiveness and appropriateness of treatment plans through electronic health record systems, questionnaires, or direct physician-patient communication;

[0064] S62: Conduct quantitative analysis of the collected feedback and opinions to extract information, including treatment success rate, side effect incidence, patient satisfaction indicators, and specific improvement suggestions;

[0065] S63: Based on the information analyzed in step S62, the content in the medical knowledge graph is updated, specifically including adding new treatment methods, adjusting the recommendation level of existing treatment plans, or updating drug side effect data. The update is performed using a preset knowledge graph update algorithm, and the specific formula is:

[0066] ,in, and Represent the medical knowledge graph before and after the update, respectively, and Indicates new knowledge or adjustments based on feedback and professional opinions;

[0067] S64: Use collected feedback and opinions to adjust the parameters or structure of large medical models to improve prediction accuracy and the quality of personalized treatment recommendations, using model retraining, fine-tuning, or incremental learning strategies during the adjustment process.

[0068] Beneficial effects of the present invention:

[0069] The present invention, through the comprehensive use of medical knowledge graphs and deep learning technology, can provide more accurate medical diagnosis and personalized treatment recommendations. Compared with traditional diagnostic methods that rely on doctors' experience, the present invention can automatically analyze and process large amounts of complex medical data, revealing disease patterns and potential treatment options, thereby significantly improving the accuracy of medical diagnosis and the personalization level of treatment options.

[0070] This invention, by introducing a reinforcement learning algorithm and a continuous feedback loop mechanism, achieves dynamic optimization and self-learning of large medical models and medical knowledge graphs. This mechanism enables the invention to continuously absorb and integrate the latest medical practices, patient treatment feedback, and doctors' professional opinions, ensuring that the diagnosis and treatment recommendations provided to doctors and patients are always based on the latest medical knowledge and data, greatly improving the timeliness and effectiveness of diagnosis and treatment plans.

[0071] This invention not only optimizes the medical diagnosis and treatment process, improves the quality and efficiency of medical services, but also provides a technical basis for achieving highly personalized medical services. In addition, through intelligent data analysis and processing, it helps medical researchers discover new disease patterns and treatment methods, and promotes the progress of medical research and medical practice. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0073] Figure 1 This is a flow chart of a large medical model diagnosis method according to an embodiment of the present invention;

[0074] Figure 2 The figure is a schematic diagram of the model verification process according to an embodiment of the present invention. DETAILED DESCRIPTION

[0075] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to specific embodiments.

[0076] It should be noted that, unless otherwise defined, technical or scientific terms used in this invention should have the same general meaning as those generally understood by persons of ordinary skill in the art to which this invention belongs. The terms "first," "second," and similar expressions used in this invention do not denote any order, quantity, or importance, but are simply used to distinguish different components. The terms "include" or "comprising" and similar expressions mean that the element or object preceding the word includes the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0077] like Figure 1-Figure 2 As shown in the figure, the knowledge graph-driven medical large model diagnosis method includes the following steps:

[0078] S1: Extract information from medical literature, clinical research reports, and real-time health data, and use pre-set graph neural network technology to build a medical knowledge graph to ensure the accuracy and timeliness of knowledge;

[0079] S2: Uses pre-defined natural language processing technology (e.g., a pre-defined BERT model) to perform deep semantic analysis on patient self-reports, medical records, and physician notes to extract information related to the condition and map this information to the entities and relationships corresponding to the medical knowledge graph in S1.

[0080] S3: Based on the patient's medical data, lifestyle habits and genetic information, using preset machine learning technology, a multi-dimensional patient portrait is constructed to provide comprehensive background support for subsequent diagnosis;

[0081] S4: Using a pre-set reinforcement learning algorithm, combined with the medical knowledge graph from S1 and the multi-dimensional patient portraits built in S3, it trains and optimizes the medical big model to improve the accuracy and adaptability of the diagnostic strategy.

[0082] S5: Generate personalized diagnosis and treatment recommendations tailored to the patient's specific situation based on the diagnostic results output by the optimized medical model in S4 and the medical knowledge graph in S1;

[0083] S6: Through patient feedback on treatment effects and doctors' professional opinions, continuously optimize the medical knowledge graph of S1 and the medical big model of S4 to ensure continuous improvement and accuracy of diagnostic methods.

[0084] S1 specifically includes:

[0085] S11: Natural language processing (NLP) technology, including named entity recognition (NER) and relation extraction (RE) technologies, is used to automatically identify entities and relationships between entities in medical literature and clinical research reports. Entities include diseases, symptoms, and drugs. The specific formula for named entity recognition is:

[0086] ,in, Represents a given text Under the condition of probability; Representative text Medical entities identified in the , such as disease, symptom, or drug name; Represents a paragraph or sentence of text from medical literature, clinical research reports, or real-time health data; Represents the set of all medical entities; Represents a collection of entities An element of Contains all candidates that may be identified as entities. In the denominator of the formula, we have all possible (include itself) to traverse and score to ensure The calculation takes into account the text The relative scores of all potential entities in ; Represents a scoring function used to calculate text Medium Entity The probability of occurrence is based on a deep learning model, such as the pre-trained BERT model. Relation extraction uses a similar method, whose goal is to identify the relationship between two entities. The specific formula is expressed as:

[0087] ,in, Represents a given text and entities and Under the condition of probability; represent and The medical relationship between the two, such as "cause", "treat" or "manifest"; represents two medical entities identified in the text; Represents the set of all medical relationship types; Represents the scoring function used to evaluate the entity and There is a relationship between probability; This is the set of all relationships An element in the denominator of the formula, for all possible (include itself) to traverse and score, the purpose is to ensure The calculation of takes into account the relative scores of all potential relationships given a given entity pair;

[0088] S12: Standardize the information extracted in step S11 and encode entities and relationships using a unified medical terminology system (such as ICD-10 and SNOMED CT) to ensure seamless integration of data from different sources;

[0089] S13: Graph Neural Network Construction of Knowledge Graph: Using the preset graph neural network technology, specifically the graph convolutional network (GCN) technology, the standardized entities and relationships in step S12 are mapped into a graph structure, where nodes represent entities and edges represent relationships between entities. By training the graph convolutional network, the node representation is optimized to capture the relationship between entities and construct a medical knowledge graph. A key feature of the graph convolutional network is the ability to effectively learn features on graph-structured data. The feature update of the node is described by the following formula: ,in, Representative The node feature matrix of the layer, where each node represents a medical entity and the feature represents the attribute of the entity or the relationship with other entities; Representative The node feature matrix of the layer represents the update of node features after a graph convolution operation; Adjacency matrix representing the graph Add the identity matrix (indicates self-join), which is used to represent the direct relationship between entities in the medical knowledge graph; for The diagonal matrix of the degree matrix is ​​used for normalization to ensure the stability of the training process; Representative The weight matrix of the layer is learned through the training process and is used to update the node features; Representation activation functions, such as ReLU, are used to introduce nonlinearity and enhance the expressiveness of the model. This process captures the complex relationships between nodes and generates high-quality node representations, providing strong support for building medical knowledge graphs.

[0090] S14: Establish a dynamic update mechanism based on feedback. When new medical literature, clinical research reports are released, or real-time health data is collected, steps S11 to S13 are automatically triggered to update the information in the medical knowledge graph to ensure the timeliness and accuracy of the medical knowledge graph and adapt to the rapid development of knowledge in the medical field.

[0091] S14 specifically includes:

[0092] S141: Real-time monitoring of medical literature databases, clinical research report libraries, and health data platforms. Specifically, a predefined data recognition model is used to identify newly released literature, reports, or collected real-time health data. The data recognition model is based on timestamp and word tag technology to automatically mark data update events and trigger subsequent steps. The data recognition model function formula is expressed as: DataFlag Timestamp,Keywords , where DataFlag is the data update flag, which is true when new data is detected; It is a data recognition function that identifies and labels new data based on its timestamp and keywords. Timestamp is the timestamp of data release or collection. Keywords are word tags in the data, which are used to assist in recognition.

[0093] S142: When the model in S141 is marked as updated with new data, the data processing flow from S11 to S13 is automatically started, and the process of automated text extraction and processing, data standardization and integration, and the construction of a knowledge graph using a graph neural network is re-executed;

[0094] S143: Based on step S13, an incremental learning strategy is applied to update the medical knowledge graph. Instead of rebuilding the entire graph, the new data is compared with the existing knowledge graph and only the changed parts are updated.

[0095] S144: After the update is completed, a verification mechanism is used to check the accuracy and completeness of the knowledge graph to ensure that the update meets the expected results;

[0096] Through the above steps, the present invention not only realizes the dynamic update of the medical knowledge graph, but also ensures the efficiency and accuracy of the update process. These steps demonstrate an automated and intelligent update mechanism, fully utilize existing technical resources, and provide solid technical support for the sustainable development of the medical knowledge graph.

[0097] S2 specifically includes:

[0098] S21: Standardize and preprocess the text in patient self-reports, medical records, and physician notes, including removing irrelevant characters, word standardization, word segmentation, and part-of-speech tagging to prepare the data for deeper analysis;

[0099] S22: Use a pre-set natural language processing model, specifically a Transformer-based model (BERT, GPT, etc.), to perform deep semantic analysis on the pre-processed text in step S21 to identify entities (diseases, symptoms, treatments, etc.) in the text and the relationships between entities;

[0100] S23: Map the entities and relationships identified in S22 to the medical knowledge graph constructed in S1, and use graph matching and information integration algorithms to update the knowledge graph to ensure that the medical knowledge graph can reflect the latest medical information and patient conditions;

[0101] Through the above steps, a precise and efficient method is provided to use advanced natural language processing technology to conduct in-depth analysis of medical texts and effectively apply these analysis results to the update and improvement of medical knowledge graphs. This process not only enhances the accuracy and richness of medical knowledge graphs, but also improves the efficiency and effectiveness of medical diagnosis and treatment decisions.

[0102] S3 specifically includes:

[0103] S31: Collect the patient's medical data (including but not limited to diagnostic records, treatment history, and drug response), lifestyle habits (such as dietary habits, exercise frequency, tobacco and alcohol use), and genetic information (such as family medical history and personal genetic markers). This step ensures that information is collected from multiple sources such as electronic health records, patient self-report questionnaires, and genetic test reports;

[0104] S32: Preprocess the patient information collected in S31, including data cleaning to remove noise and incomplete records, standardization to align the formats of different data sources, and feature engineering to extract features for building patient profiles;

[0105] S33: Combining the patient's medical data, lifestyle habits, and genetic information, we integrate data from different dimensions through feature fusion technology, merging multi-source data into a unified feature set to provide a data view for cluster analysis;

[0106] S34: Apply clustering algorithms, such as K-means or hierarchical clustering algorithms, to group patients based on the feature set integrated in S33. Each cluster represents a patient subgroup. Multiple clusters form a multidimensional patient portrait, reflecting the similarities and differences within the patient group, supporting personalized medical decision-making and treatment plan design;

[0107] S35: Update patient profiles regularly or dynamically based on newly collected medical data, patient feedback, and changes in lifestyle habits or genetic information. Specifically, use clustering algorithms to adjust existing patient clusters to ensure that patient profiles reflect patients' current health status and needs in real time.

[0108] By adopting clustering algorithms, it is possible to efficiently integrate and analyze patient information from multiple data sources to construct a comprehensive and accurate multi-dimensional patient portrait. This approach not only improves the personalization of medical services, but also provides medical professionals with in-depth insights into patient groups, allowing them to better design and implement targeted treatment plans.

[0109] S34 specifically includes:

[0110] S341: Based on the feature fusion results in step S33, a feature vector is prepared for each patient. The feature vector is used to comprehensively reflect the patient's medical data, living habits, and genetic information. Each feature vector serves as a basic unit of input for the hierarchical clustering algorithm.

[0111] S342: Calculate the pairwise similarity of all patient feature vectors to determine the distance between patients. The similarity calculation uses the Euclidean distance or Manhattan distance method. This step is the key to grouping in the hierarchical clustering algorithm.

[0112] S343: Using a hierarchical clustering algorithm, patients are gradually merged into small groups based on the similarity calculated in step S342. At the beginning of hierarchical clustering, each patient is considered an independent group. The algorithm then gradually merges the most similar groups until the preset number of groups or similarity threshold is reached. This process is visualized as a dendrogram (clustering tree), providing an intuitive understanding of the internal structure of the patient group.

[0113] S344: By analyzing the characteristics of the clustering tree, combined with actual medical needs and group interpretability, the optimal number of clusters is determined. Specifically, the height of the clustering tree is cut to form the final patient group. To improve the practicality of this method, the silhouette coefficient evaluation indicator will be introduced to improve efficiency and ensure the consistency and accuracy of the clustering results. The calculation formula of the silhouette coefficient is: ,in, It is a sample Silhouette coefficient; It is a sample The average distance to other samples in the same cluster, indicating the density within the cluster; It is a sample The minimum value of the average distance to all samples in the nearest cluster represents the separation between clusters; the range of the silhouette coefficient is , values ​​close to 1 indicate that the sample is far away from other clusters, values ​​close to 0 indicate that the sample is at the cluster boundary, and negative values ​​indicate that the sample is assigned to the wrong cluster;

[0114] To determine the optimal number of clusters, the silhouette coefficients for different numbers of clusters are calculated, and the number of clusters with the highest average silhouette coefficient is selected as the optimal number. This process can be described by the following steps:

[0115] 1. For a series of cluster numbers , clustering was performed separately using the hierarchical clustering algorithm;

[0116] 2. For each The clustering results of the values ​​are used to calculate the average silhouette coefficient of all samples;

[0117] 3. Choose the one that maximizes the average silhouette coefficient value, determined as the optimal number of clusters.

[0118] S345: Based on the determined number of clusters, a multi-dimensional patient profile is generated for each group. This profile comprehensively reflects the common characteristics and health status of patients within the group. These profiles will directly support personalized medical decision-making, treatment plan design, and health management recommendations, thereby improving the quality and efficiency of medical services.

[0119] By adopting a hierarchical clustering algorithm, the present invention can effectively process and analyze complex patient data and construct meaningful patient groups and multi-dimensional portraits. This method not only improves the accuracy and practicality of patient portraits, but also enhances the depth and breadth of medical data analysis through innovative clustering grouping and optimal quantity determination steps, meeting the patent law's requirements for innovation and specificity.

[0120] S4 specifically includes:

[0121] S41: Define a simulation environment that represents the context of medical decision-making, including patient status, available medical resources, and treatment pathways. The environment status is represented by integrating the medical knowledge graph constructed in step S1 and the multi-dimensional patient profile constructed in step S3, where each status corresponds to the patient's health status and medical background information.

[0122] S42: Define the action space and reward mechanism. The action space defines all actions that the agent can take in the simulated environment, including selected diagnostic tests, drug treatments, or surgeries. The reward mechanism is designed based on the medical outcomes of the actions, where effective treatment decisions receive positive rewards, while poor decisions or actions that worsen the patient's condition receive negative rewards. The reward value is used to reflect the degree of treatment success and the positive impact on the patient's health.

[0123] S43: Select Deep Q Network DQN as the reinforcement learning algorithm. DQN uses a deep neural network to approximate the Q function, which is the expected reward for taking an action in a given state. The configuration of DQN includes the learning rate , discount factor And the exploration strategy, the exploration strategy is specifically the greedy strategy , used to balance between exploring new actions and utilizing known actions, the DQN update formula is:

[0124] ,

[0125] in, For the updated Value, representing the time , given the state and actions The total reward expected to be obtained under For the time Before, given the state and actions Next value; The learning rate controls the amplitude of the Q value update, ranging from 0 to 1. A higher value means faster learning but may cause the final strategy to be unstable; a lower value means slower learning but helps stability. Immediate Reward, which means Execution Action and transfer to the state Rewards received when Discount Factor is used to measure the current value of future rewards. It also ranges from 0 to 1. The closer the value is to 1, the more important the future rewards are in the current valuation. is the value that represents the maximum expected reward among all actions, that is, the agent is in the next state The maximum expected reward that can be obtained;

[0126] Specific instructions for application in the medical field:

[0127] state In the medical decision-making process, the status can include the patient's current health status, medical history information, physiological parameters, etc. This information can be obtained by integrating medical knowledge graphs and patient portraits;

[0128] action Actions may include different diagnostic measures, treatment options, or drug choices, each aimed at improving the patient's health status;

[0129] Instant Rewards In medical scenarios, immediate rewards can be determined based on the results of therapeutic actions, such as the degree of improvement in the condition, reduction in side effects, etc.

[0130] S44: Learn optimal medical decision-making strategies by performing actions and observing the outcomes in a simulated environment. The specific process is as follows:

[0131] First, based on the current strategy, DQN is used to predict the value, and according to the greedy strategy Choose an action;

[0132] The agent then performs the selected action, and the environment returns an immediate reward based on the effect of the action and updates the patient's state;

[0133] Finally, use the DQN update formula to update the Q value based on the result of the action (reward) to optimize the future decision-making strategy;

[0134] S45: After model training is complete, validate the model using an independent test set to evaluate its performance on unseen data.

[0135] Through the above steps, not only the rich information contained in the medical knowledge graph and patient portraits is effectively utilized, but also the intelligent training and optimization of the medical large model is realized through the preset reinforcement learning algorithm. This process significantly improves the accuracy and personalization of medical decision-making, providing patients with more accurate and efficient diagnosis and treatment plans.

[0136] S45 specifically includes:

[0137] S451: Collect data from different data sources than the training set to construct an independent test set, ensuring that the test set covers a wide range of patient situations and medical conditions to fully evaluate the generalization ability of the model;

[0138] S452: Perform the same preprocessing steps on the data in the test set as the training data, including data cleaning, standardization, and feature extraction, to ensure that the data format is consistent with the training stage;

[0139] S453: Use the trained medical model to predict the test set, collect the model's prediction results, and compare them with the actual results. The indicators for evaluating model performance include accuracy, recall rate, and F1 score;

[0140] Accuracy: Accuracy ,

[0141] Recall: ,

[0142] F1 Score: , where TP (True Positives), TN (True Negatives), FP (False Positives), and FN (False Negatives) represent the number of positive examples correctly predicted by the model, the number of negative examples correctly predicted, the number of negative examples incorrectly predicted as positive examples, and the number of positive examples incorrectly predicted as negative examples, respectively;

[0143] S454: Based on the evaluation results of S453, analyze the model's performance under different types of patient situations and medical conditions, identify model weaknesses and room for improvement, and, if necessary, adjust model parameters or optimize training strategies to improve model accuracy and generalization capabilities.

[0144] S455: Repeat S451 to S454, using the adjusted version of the model for further testing and evaluation until the performance of the model reaches a predetermined level;

[0145] Through the above steps, the present invention provides a systematic method to verify and optimize the performance of large medical models. Through careful evaluation on independent test sets, it can not only ensure that the model has good predictive accuracy and generalization ability for unseen data, but also enable targeted adjustment and optimization of the model.

[0146] S5 specifically includes:

[0147] S51: Analyze the diagnostic results of medical big models based on patient data, including disease diagnosis, disease severity assessment, and prediction of patient response to treatment options;

[0148] S52: Based on the diagnosis results in step S51, the medical knowledge graph is searched for information on treatment options, drug selection, side effects, and treatment success rates. This step utilizes the rich medical information stored in the knowledge graph to support the generation of diagnosis and treatment recommendations.

[0149] S53: Based on the patient's specific situation, including age, gender, medical history, genetic information, lifestyle habits, and the information retrieved in S52, construct personalized diagnosis and treatment recommendations, including drug selection, dosage recommendations, treatment plans, and lifestyle adjustment recommendations.

[0150] S6 specifically includes:

[0151] S61: Collect patient feedback on treatment effectiveness and physicians' professional opinions on the effectiveness and appropriateness of treatment plans through electronic health record systems, questionnaires, or direct physician-patient communication;

[0152] S62: Conduct quantitative analysis of the collected feedback and opinions to extract information, including treatment success rate, side effect incidence, patient satisfaction indicators, and specific improvement suggestions;

[0153] S63: Based on the information analyzed in step S62, the content in the medical knowledge graph is updated, specifically including adding new treatment methods, adjusting the recommendation level of existing treatment plans, or updating drug side effect data. The update is performed using a preset knowledge graph update algorithm, and the specific formula is:

[0154] ,in, and Represent the medical knowledge graph before and after the update, respectively, and Indicates new knowledge or adjustments based on feedback and professional opinions;

[0155] S64: Use the collected feedback and opinions to adjust the parameters or structure of large medical models to improve prediction accuracy and the quality of personalized treatment recommendations. The adjustment process adopts model retraining, fine-tuning or incremental learning strategies, such as using gradient descent to optimize model weights: ,in, and are the values ​​before and after the update of the model weights, is the learning rate, is the loss function, is the training set containing feedback data, is the gradient of the loss function with respect to the weights;

[0156] Through the above steps, the present invention provides a systematic method to continuously optimize medical knowledge graphs and medical big models to ensure that they can timely reflect the latest medical practices, patient experiences and professional knowledge, thereby improving the quality and efficiency of medical services. The implementation of this process not only deepens the understanding of medical data and patient needs, but also improves the dynamic adaptability and personalization level of medical decision support systems.

[0157] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. Knowledge graph-driven medical big model diagnosis method, It is characterized in that The following steps are involved: S1: Extract information from medical literature, clinical research reports and real-time health data, and use the preset graph neural network technology to build a medical knowledge graph; S2: Use the preset natural language processing technology to perform deep semantic analysis on the patient's self-report, medical record report and doctor's notes to extract information related to the condition, and map the information to the entities and relationships corresponding to the medical knowledge graph in S1; S3: Based on the patient's medical data, lifestyle and genetic information, we use preset machine learning techniques to build a multi-dimensional patient portrait, including: S31: Collect patients’ medical data, lifestyle habits, and genetic information; S32: Preprocess the patient information collected in S31, including cleaning the data to remove noise and incomplete records, standardization to align the formats of different data sources, and feature engineering to extract features for building patient portraits; S33: Combining the patient's medical data, living habits and genetic information, integrating data of different dimensions through feature fusion technology, merging multi-source data into a unified feature set, and providing data views for cluster analysis; S34: Apply clustering algorithm to group patients according to the feature set integrated in S33. Each cluster represents a subgroup of patients. Multiple clusters form multi-dimensional patient portraits, reflecting the similarities and differences within the patient group. S35: Update patient portraits regularly or dynamically based on newly collected medical data, patient feedback, and changes in lifestyle habits or genetic information; S4: Use the preset reinforcement learning algorithm, combined with the medical knowledge graph of S1 and the multi-dimensional patient portrait built by S3, to train and optimize the medical big model, including: S41: define a simulation environment, which represents the context of medical decision-making, including patient status, available medical resources and treatment pathways. The environment status is represented by integrating the medical knowledge graph constructed in step S1 and the multi-dimensional patient portrait constructed in step S3, where each status corresponds to the patient's health status and medical background information; S42: Define the action space and reward mechanism. The action space defines all the actions that the agent can take in the simulation environment, including the selected diagnostic tests, drug treatments or surgeries. The reward mechanism is designed based on the medical results of the actions, where effective treatment decisions receive positive rewards, while bad decisions or actions that lead to worsening of the patient's condition receive negative rewards. The reward value is used to reflect the degree of treatment success and the positive impact on the patient's health. S43: Select the deep Q network DQN as the reinforcement learning algorithm. DQN uses a deep neural network to approximate the Q function, which is the expected reward for taking an action in a given state. The configuration of DQN includes the learning rate , Discount Factor And the exploration strategy, the exploration strategy is specifically the greedy strategy , used to balance between exploring new actions and exploiting known actions; S44: Learn the optimal medical decision-making strategy by performing actions and observing the results in a simulated environment. The specific process is as follows: First, based on the current strategy, DQN is used to predict the value, and according to the greedy strategy Choose an action; The agent then performs the selected action, and the environment returns an immediate reward based on the effect of the action and updates the patient's state; Finally, use the DQN update formula to update the Q value based on the results of the action and optimize the future decision-making strategy; S45: After the model training is completed, the model is validated through an independent test set to evaluate its performance on unseen data; S5: Based on the diagnosis results output by the optimized medical big model in S4 and the medical knowledge graph in S1, generate personalized diagnosis and treatment recommendations for the patient's specific situation, including: S51: Analyze the diagnostic results of the medical big model based on patient data, including disease diagnosis, disease severity assessment, and patient response prediction to treatment options; S52: According to the diagnosis result in step S51, query and diagnose the information of treatment plan, drug selection, side effects and treatment success rate in the medical knowledge graph; S53: Based on the patient's specific situation, including age, gender, medical history, genetic information, lifestyle habits, and the information retrieved in S52, construct personalized diagnosis and treatment recommendations, including drug selection, dosage recommendations, treatment plans, and lifestyle adjustment recommendations; S6: Through patient feedback on treatment effects and doctors’ professional opinions, continue to optimize the medical knowledge graph of S1 and the medical big model of S4.

2. The knowledge graph-driven medical big model diagnosis method according to claim 1, It is characterized in that The S1 specifically includes: S11: Natural language processing technology, including named entity recognition and relationship extraction technology, is used to automatically identify entities and relationships between entities in medical literature and clinical research reports. Entities include diseases, symptoms and drugs. The specific formula for named entity recognition is: ,in, Represents a given text Under the condition of probability; Representative text Medical entities identified in; Represents a paragraph or sentence of text from medical literature, clinical research reports, or real-time health data; Represents the set of all medical entities; Represents a collection of entities An element in Represents a scoring function used to calculate text Medium Entity The probability of occurrence of; Relation extraction uses a similar method, whose goal is to identify the relationship between two entities. The specific formula is expressed as: ,in, Represents a given text and entities and Under the condition of probability; represent and Medical relationship between represents two medical entities identified in the text; Represents the set of all medical relationship types; Represents the scoring function used to evaluate the entity and There is a relationship between probability; This is the set of all relations An element in S12: Standardize the information extracted in step S11 and encode entities and relationships using a unified medical terminology system to ensure seamless integration of data from different sources; S13: Graph neural network constructs knowledge graph: Using the preset graph neural network technology, specifically graph convolutional network technology, the entities and relationships standardized in step S12 are mapped into a graph structure, where nodes represent entities and edges represent relationships between entities. By training the graph convolutional network, the node representation is optimized, thereby capturing the relationships between entities and constructing a medical knowledge graph; S14: Establish a dynamic update mechanism based on feedback. When new medical literature, clinical research reports are released, or real-time health data is collected, steps S11 to S13 are automatically triggered to update the information in the medical knowledge graph.

3. The knowledge graph-driven medical big model diagnosis method according to claim 2, It is characterized in that The S14 specifically includes: S141: Real-time monitoring of medical literature databases, clinical research report libraries, and health data platforms. Specifically, a predefined data recognition model is used to identify newly released literature, reports, or collected real-time health data. The data recognition model is based on timestamp and word tag technology to automatically mark data update events and trigger subsequent steps. The data recognition model function formula is expressed as: DataFlag Timestamp,Keywords , where DataFlag is the data update flag, which is true when new data is detected; It is a data recognition function that recognizes and tags new data based on its timestamp and words. Timestamp is the timestamp of data release or collection. Keywords are word labels in the data, which are used to assist in recognition. S142: When the model in S141 is marked as a new data update, the data processing flow from S11 to S13 is automatically started, and the process of automated text extraction and processing, data standardization and integration, and graph neural network construction of knowledge graphs is re-executed; S143: Based on step S13, an incremental learning strategy is applied to update the medical knowledge graph instead of rebuilding the entire graph; S144: After the update is completed, a verification mechanism is used to check the accuracy and completeness of the knowledge graph to ensure that the update meets the expected results.

4. The knowledge graph-driven medical big model diagnosis method according to claim 3, It is characterized in that The S2 specifically includes: S21: Standardized preprocessing of text from patient self-reports, medical records, and physician notes, including removal of irrelevant characters, word standardization, word segmentation, and part-of-speech tagging, to prepare the data for deeper analysis; S22: Use a preset natural language processing model, specifically a Transformer-based model, to perform deep semantic analysis on the preprocessed text in step S21 to identify entities in the text and relationships between entities; S23: Map the entities and relationships identified in S22 to the medical knowledge graph constructed in S1, and use graph matching and information integration algorithms to update the knowledge graph to ensure that the medical knowledge graph can reflect the latest medical information and patient conditions.

5. The knowledge graph-driven medical big model diagnosis method according to claim 1, It is characterized in that The S34 specifically includes: S341: Based on the feature fusion result in step S33, a feature vector is prepared for each patient, which is used to comprehensively reflect the patient's medical data, living habits and genetic information. Each feature vector is used as a basic unit of the hierarchical clustering algorithm input; S342: perform pairwise similarity calculation on all patient feature vectors to determine the distance between patients. The similarity calculation adopts Euclidean distance or Manhattan distance method; S343: using a hierarchical clustering algorithm, according to the similarity calculated in step S342, the patients are gradually merged into small groups. At the beginning of the hierarchical clustering, each patient is regarded as an independent group, and then the algorithm gradually merges the most similar groups until a preset number of groups or a similarity threshold is reached; S344: By analyzing the characteristics of the clustering tree, combined with actual medical needs and group interpretability, the optimal number of clusters is determined. Specifically, the height of the clustering tree is cut to form the final patient group. To improve the practicality of this method, the silhouette coefficient evaluation index will be introduced to improve efficiency and ensure the consistency and accuracy of the clustering results. S345: Based on the determined number of clusters, a multi-dimensional patient portrait is generated for each group, which is used to comprehensively reflect the common characteristics and health conditions of the patients in the group.

6. The knowledge graph-driven medical big model diagnosis method according to claim 5, It is characterized in that The update formula of the DQN is: ; in, For the updated Value, representing the time , given the state and Action The total reward expected to be obtained under For in time Before, given the state and Action Next value; is the learning rate, which controls the amplitude of Q value update and ranges from 0 to 1; For instant rewards, representing Execution Action and transfer to the state Rewards received when is a discount factor used to measure the current value of future rewards, also ranging from 0 to 1; represents the maximum expected reward among all actions, that is, the agent is in the next state The maximum expected reward that can be obtained.

7. The knowledge graph-driven medical big model diagnosis method according to claim 6, It is characterized in that The S45 specifically includes: S451: Collect data from different data sources than the training set to construct an independent test set, ensuring that the test set covers a wide range of patient situations and medical conditions; S452: Perform the same preprocessing steps on the data in the test set as the training data, including data cleaning, standardization, and feature extraction, to ensure that the data format is consistent with the training stage; S453: Use the trained medical big model to predict the test set, collect the model's prediction results, and compare them with the actual results. The indicators for evaluating the model performance include accuracy, recall rate, and F1 score; S454: Based on the evaluation results of S453, analyze the performance of the model under different types of patient situations and medical conditions, and identify the model's weaknesses and room for improvement; S455: Repeat S451 to S454, using the adjusted version of the model for further testing and evaluation until the performance of the model reaches a predetermined level.

8. The knowledge graph-driven medical big model diagnosis method according to claim 1, It is characterized in that The S6 specifically includes: S61: Collect patient feedback on treatment effectiveness and physician professional opinions on the effectiveness and appropriateness of treatment options through electronic health record systems, questionnaires, or direct physician-patient communication; S62: Quantitatively analyze the collected feedback and opinions to extract information, including treatment success rate, side effect incidence, patient satisfaction indicators, and specific suggestions for improvement; S63: Based on the information analyzed in step S62, the content in the medical knowledge graph is updated, including adding new treatment methods, adjusting the recommendation level of existing treatment plans, or updating drug side effect data. The update is performed using a preset knowledge graph update algorithm, and the specific formula is: ,in, and Represent the medical knowledge graph before and after the update, respectively, and Indicate new knowledge or adjustments based on feedback and professional opinions; S64: Use collected feedback and opinions to adjust the parameters or structure of large medical models to improve prediction accuracy and the quality of personalized treatment recommendations, using model retraining, fine-tuning, or incremental learning strategies during the adjustment process.

Citation Information

Patent Citations

  • Semi-supervised learning method for constructing medical knowledge graph from Chinese electronic medical records

    CN112542223A

  • Outpatient service electronic medical record generation method based on Chinese medical big model

    CN117253576A

  • Clinical diagnosis and treatment decision support system based on individualized medical health knowledge graph

    CN117612705A

  • Interrogation method and system based on knowledge graph and generative large model

    CN117854748A

  • Method and device for constructing medical knowledge graph and assistant diagnosis method

    US20180322954A1

Cited By

  • Systems, apparatuses, and methods for disease prediction

    WO2026155960A1