An integrated calculation method and system for similar medical records
By constructing an integrated learning model based on the index system and combining ontology and graph similarity calculation, the problem of failing to effectively consider domestic clinical conditions and technical limitations in the existing technology is solved, and the accuracy and interpretability of similar medical record calculations are improved. Enhanced support for medical assisted decision-making.
Patent Information
- Application Number
- CN202210237464.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-11
AI Technical Summary
The existing breast cancer decision support and information management system fails to consider the clinical conditions of domestic hospitals when calculating similar medical records, and does not utilize technologies such as ontology models, knowledge graphs, and graph neural networks, resulting in portability when applied to different types of diseases. Inadequacy affects the accuracy of medical assisted decision-making.
Adopt data collection and preprocessing methods based on the index system, combine ontology similarity calculation, distance similarity calculation and graph neural network to build an integrated learning model, adopt different processing methods for different categories of variables, and improve the performance of knowledge graph and graph similarity calculation. The accuracy of the medical similar medical record model is improved, and the case database is updated through iterative optimization to provide more accurate treatment plans and prognosis results.
It improves the accuracy and interpretability of similar medical record calculations, can group patients more effectively, helps doctors make better diagnosis and treatment decisions, design more targeted treatment plans for patients, and enhances the effectiveness of assisted medical decision-making. Strength of support.
Smart Images

Figure CN114944209B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of integrated application of clinical medicine and artificial intelligence technology, and specifically, relates to a method for calculating similar medical records. Background Art
[0002] In the medical field, the ultimate goal of clinical practice is to find the best clinical pathway to manage patients' personal health services. Clinicians not only use the rules in clinical practice guidelines, but also use their knowledge and experience to diagnose diseases and provide treatment. In medical scenarios, many patients may face diseases and conditions that have been treated by similar patients before and have received relatively authoritative and effective treatment. Therefore, before treatment, patients can refer to the successful treatment plans of similar patients to understand the possible development direction and prognosis of the disease in advance.
[0003] Patient similarity calculation is a key and fundamental task in the field of medical care, aiming to improve doctors' diagnosis and patient treatment. Patient similarity measurement can effectively group patients, which is not only conducive to analyzing the disease development trends of similar patients, but also helps doctors make better decisions to improve patients' health and design more targeted treatment plans for patients.
[0004] The existing breast cancer decision support and information management systems abroad only support breast cancer, and when calculating similar medical records, the relevant indicator system does not take into account the clinical conditions of domestic hospitals, and the difference between binary variables and multivariate variables is not considered when calculating the similarity of categorical variables. When calculating similar cases in China, technologies such as ontology models, knowledge graphs, and graph neural networks are not considered. The method of calculating patient similarity for a specific disease has limited portability when applied to other different types of diseases. Summary of the invention
[0005] In view of the above-mentioned problems existing in the prior art, the present invention provides a method for calculating similar medical records, which can improve the accuracy of the recommendation results of the medical auxiliary decision-making model.
[0006] In order to achieve the above object, the present invention provides a method for calculating similar medical records, comprising the following steps:
[0007] Determine the main indicators of patients based on relevant guideline documents, knowledge texts, case data, etc., and form different indicator systems for different disease types;
[0008] According to the sorted indicator system, a data collection system is constructed to extract and store data. The data collected includes patient hospitalization information, medical record information, examination information, test information, diagnosis information, surgery information, ward round information, medical record homepage, imaging information, etc.
[0009] Data preprocessing: Preprocess structured data (error values, missing values, etc.), use business experience methods, statistical learning, machine learning and other methods to perform preliminary feature selection, and find out the indicators that have a greater impact on the patient's disease;
[0010] Construction of similar case model and development of interface: After selecting the patient's disease type, input the index value of the patient to be checked, and use similar case calculation methods, including ontology similarity calculation, distance similarity calculation, and graph neural network similarity calculation to form an integrated learning model to find cases similar to this patient in the case library and find out their treatment plans and prognosis. When used in different scenarios, similar medical record information can be output through the interface according to the set threshold;
[0011] System development: Users input and query patient index information through the website, and similar patient information, treatment plans, and prognosis results in the database are returned for reference by doctors and patients.
[0012] Iterative optimization and update of the model: Through the system application, more application cases are collected and corresponding treatment plans and prognosis conditions are collected. When the case quality is reviewed by experts, the patient information can be added to the case library to obtain more high-quality cases.
[0013] Effective effects:
[0014] The present invention adopts different processing methods when calculating the similarity for different categories of variables, so that the recommendation results are more explanatory and the accuracy of the medical similarity model can be improved. In addition, when selecting the medical record similarity evaluation criteria, the number of occurrences of different categories of variables is also used as a judgment basis to avoid affecting the calculation of the similarity of two medical records due to too few variables of a certain type. The calculation of medical similarity is a key and basic task in the field of medical health care, which aims to improve doctors' diagnosis and patient treatment. Similarity measurement can effectively group patients, which is not only conducive to analyzing the disease development trends of similar patients, but also helps doctors make better decisions to improve patients' health and design more targeted treatment plans for patients. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for calculating similar medical records according to the present invention;
[0016] Figure 2 This is a schematic diagram of the structure of the variables of the ontology according to an embodiment of the present invention; DETAILED DESCRIPTION
[0017] Hereinafter, the present invention will be described in detail through exemplary embodiments.
[0018] The present invention proposes a method for calculating similar medical records, and develops a corresponding system based on this method. This method is based on the indicator data of patients during diagnosis and treatment and hospitalization, collects a large amount of case data, desensitizes the data, and applies feature engineering, graph neural network (GNN), ontology similarity calculation, knowledge graph calculation method, etc. to calculate similar cases. In addition, different category variables are processed in different ways when calculating similarity to find similar patients from the existing case library, and according to the sorting mechanism, the patient's relevant treatment decisions are recommended to doctors for auxiliary treatment decisions.
[0019] After selecting the patient's disease type, the medical similarity record query system enters the patient's corresponding indicator information into the system, then finds similar patients from the medical record database, and displays the treatment plans, prognosis, etc. of similar medical records, providing doctors with more and more direct diagnosis and treatment evidence.
[0020] The construction process of this method includes the following stages:
[0021] S1 Data Collection Section
[0022] The establishment of a similar case query system requires the collection of a large amount of patient case data, including a historical medical record database of basic patient information, test information, diagnosis information, treatment plans, prognosis, etc. Different types of diseases correspond to different diagnosis and treatment guidelines and expert experience, and medical experts need to refer to clinical experience to establish an indicator system for different diseases.
[0023] There are two ways to collect data in this method. One is to extract and process a large amount of historical medical records and store them in the historical medical record database. The other is to collect the treatment plan and prognosis of the data generated when using this system. After a certain amount of data is accumulated, the patient's medical records will be reviewed by experts. If they meet the quality standards of the medical record database, the patient information will be stored in the medical record database. With the continuous accumulation of data in the medical record database, more accurate case references can be provided for this system.
[0024] S2-Knowledge graph storage part of case data
[0025] In view of the characteristics of medical data such as high professionalism, complex structure, and cross-language, the knowledge graph is used based on the graph data structure to store real-world case data in an entity manner according to the knowledge graph data structure. The data structure of the knowledge graph is maintained and used for the calculation of the ontology structure and graph structure of similar cases.
[0026] S3 data preprocessing
[0027] Data preprocessing is an important step before building a similar medical record model. For structured data collected from the data collection system, no further processing is required because the defined indicator names are standardized.
[0028] The data collected from historical medical records needs to be preprocessed in a variety of ways, and key indicator information in the medical records needs to be extracted:
[0029] 1) Determine the scope of the data indicator set for clinical indicators through discussions with clinical experts
[0030] 2) Establish a standard indicator system and establish standard data indicators through the construction of an alias system
[0031] 3) Use statistics, machine learning and other preprocessing methods to handle missing values, error values, etc.
[0032] S4 model building part
[0033] Medical entities are described using the medical knowledge graph structure, and the similarity-based retrieval strategy is combined with the graph database, so that it is easier to realize personalized requests for querying patients with different diseases. The indicators involved in the indicator system are classified, and different methods are used to calculate the similarity of different categories of variables. The model includes similarity distance calculation, ontology similarity calculation, and graph similarity calculation. According to the specific data content representation, the data is divided into ontology variables, classification variables, numerical variables, etc.
[0034] S401 Classification Index Data Type
[0035] Indicators are generally divided into integer, floating point, Boolean, character and date types according to data types. Among them, integer and floating point types are also called numerical types. For example, the indicator "age" can directly participate in the distance formula calculation; Boolean and character data are also called categorical variables. When calculating the similarity of categorical variables, a variety of distance calculation methods are used to measure. Among them, categorical variables are divided into binary ordered variables, binary unordered categorical variables, multivariate unordered categorical variables, and multivariate ordered categorical variables. For example, the value of the indicator "gender" {male, female} is in no particular order and belongs to an unordered variable; the value of the indicator "pathological level" {primary, intermediate, advanced, severe}, the higher the level, the higher the malignancy of the tumor, and belongs to an ordered variable. Binary variables and multivariate variables refer to the dimensions of the final calculation vector. For example, if the number of indicators is equal to 2, it is called a binary variable; if the number of indicators is greater than 2, it is called a multivariate variable. The indicator classification variables involved in this application belong to a combination of multivariate ordered variables and multivariate unordered variables.
[0036] Since different disease types in clinical cases contain different types of variables and represent different meanings, if only numerical variables and categorical variables are used as the basis for calculating the similarity of medical records, the similarity relationship between actual clinical medical records cannot be accurately expressed. For this reason, in this application, a new data type is added: ontology type, and a targeted similarity calculation method is proposed for variables of this type. For example, the TNM staging in tumor staging is divided into cTNM staging, ypTNM staging, and pTNM staging. Each category includes T, N, and M staging. T staging includes TX, T0, Tis, and T1-4. N staging includes NX, N0, N1-3. M staging includes M0 and M1, etc., as shown in the attached Figure 2 shown.
[0037] S402 Multiple Similarity Distance Calculation
[0038] According to the several data types mentioned in S401, different similarity distance models are used respectively. The following steps are included:
[0039] (1) For numerical variables, the similarity value A1 is calculated using the Euclidean distance;
[0040] (2) Multivariate unordered variables are calculated using the mismatch rate method; that is, the multivariate unordered variable set in the current medical record case1 is X, and the multivariate unordered variable set in the other medical record case2 is Y. Get the intersection X∩Y of X and Y, and determine whether the total number of variables in the intersection X∩Y is greater than half of the total number of variables in X and Y. If so, count the number of variables in the X∩Y set with different state values in case1 and case2, diff, and the similarity value calculated by the mismatch rate method is B1 = 1-diff / total.
[0041] (3) For multivariate ordered variables, similarity is calculated using numerical space mapping; that is, map the values of multivariate ordered variables to the numerical space, for example, normalize them to [0,1], convert them into numerical data, and then calculate the similarity using the Euclidean distance or the absolute value of the difference. The set of multivariate ordered variables in the current medical record case 1 is X, and the set of multivariate ordered variables in the other medical record case 2 is Y. Get the intersection X∩Y of X and Y, and determine whether the total number of variables total in the intersection X∩Y is greater than half of the total number of variables in X and Y. If so, map the values of the variables in the intersection X∩Y to the data space [0,1]. For each multivariate ordered variable v in the set X∩Y i , calculate the variable v in case1 and case2 i The similarity sim(v i )=|value(v i ,case1)-value(v i, case1)|; Finally, the multivariate ordered variable similarity C1 of medical records case1 and case2 = (sim(v1)+sim(v2)+…sim(v n )) / n, where n is the total number of multivariate ordered variables in the intersection X∩Y.
[0042] (4) Ontological variables: When calculating similarity for ontological variables, ontological similarity calculation is used, and the indicators are hierarchicalized with reference to the medical guidelines corresponding to the disease. For example, the indicator "TNM stage" mentioned in S401 is assumed to have two tumor patients with tumor stages cT1N1M1 and ypT2, respectively. When the two patients are similar, in addition to using the fourth-level relationship, the node information corresponding to the third, second, and first layers in the hierarchical graph is also used, so that the similarity calculation process maintains the data characteristics of the ontological type data, which is conducive to improving the accuracy of the final model.
[0043] As attached Figure 2 The calculation formula of the ontology variable similarity is: D = sim (level1) + sim (level2) + sim (level3) + sim (level4), where sim (level i ) represents the similarity of the indicators of two patients in the i-th layer. In the calculation of the similarity of indicators in each layer, the calculation method of the similarity of the indicators in this layer can be determined according to the indicator variable type of the nodes in each layer, including but not limited to the calculation of the similarity of the mismatch rate, the calculation of the similarity of the numerical space mapping, the calculation of the Jaccard coefficient, etc. For example, for the fourth-layer nodes, {T1, T2, T3, T4} and {N1, N2, N3} belong to the multivariate ordered type, for the third-layer nodes, {T, N, M} belongs to the multivariate disordered type, and for the second-layer nodes, {cTNM, ypTNM, pTNM} belongs to the multivariate disordered type. Therefore, different similarity calculation methods can be used for the indicator type of each layer.
[0044] S403 Graph Similarity Calculation
[0045] In order to improve the impact of different types of indicators in medical records on the similarity of medical records, this application determines the similarity calculation method corresponding to different types through the above-mentioned type division method. However, in actual clinical cases, multiple types of data divided as above may not exist in the same case at the same time, which will cause the calculation of medical record similarity to be affected by the absence of a certain type of indicator. A graph is an abstract data structure used to represent the relationship between objects, which is described using vertices and edges: vertices represent objects, and edges represent the relationship between objects. Data that can be abstracted into a graph description is graph data. The biggest advantage of graph computing is that it does not consider the data type of the indicator. Therefore, in this application, on the basis of using different similarity calculation methods for different data types in the above steps, graph similarity is added to supplement it.
[0046] Graph computing uses graphs as data models. The main steps are as follows: (1) A knowledge graph based on clinical knowledge must be established in advance, combined with patient data based on the clinical real world, with patients and information as nodes and attributes, and patient-patient relationships as links; assuming that there are N patient medical records in total, forming G = (V, E), where V is a set of nodes representing patients and E is a set of patient-patient relationships. (2) The graph structure is represented by a graph. The numerical and categorical variables mentioned in S401 are displayed in the graph structure as patient attribute nodes, as C-dimensional features of patient nodes. (3) A link prediction model is constructed using graph convolutional networks (GCNs), graph attention networks (GATs) and integrated methods, and the results of link prediction are used as the similarity value between two patients.
[0047] S404 Integrated Model
[0048] The results of the above two methods are integrated using an ensemble learning algorithm to obtain the similarity value between the medical records. The specific implementation example is as follows:
[0049] For numerical type indicators, the Euclidean distance similarity calculation method is used to obtain the similarity A1;
[0050] For the multivariate disorder type index, the mismatch rate similarity calculation method is used to obtain the similarity B1;
[0051] For multivariate ordered type indicators, the numerical space mapping method is used to calculate the similarity C1;
[0052] For the ontology type index, the ontology similarity calculation method is used to calculate the similarity D;
[0053] For numerical type indicators, ordered type indicators and multivariate unordered type indicators, the graph similarity calculation method is used to calculate the similarity ABC2;
[0054] The similarity between the current medical record case1 and other medical records case2 is calculated by the following formula:
[0055] Sim(case1,case2)=aA1+bB1+cC1+dD+wABC2
[0056] Among them, a, b, c, d, and w are all weight indicators corresponding to different types of similarity calculation methods; and a+b+c=w. Since the numerical indicators and categorical indicators are extracted as the attribute information of the patient node when constructing the knowledge graph of medical record data, when calculating the graph similarity ABC2, it is equivalent to covering the numerical type indicators, ordered type indicators, and multivariate unordered type indicators. Therefore, the weight setting of the integrated similarity calculation is to set the sum of the weights of A1, B1, and C1 and the weight of ABC2 to be equal.
[0057] In addition, if for some medical records, the number of occurrences of numerical type indicators, multivariate disordered type indicators and multivariate ordered type indicators is small and it is impossible to directly calculate the similarity with the corresponding indicator types of other medical records, then the graph similarity ABC2 can be directly used as the numerical value representing the similarity of the above three types of indicators. The specific implementation example is as follows,
[0058] (1) Numerical variables. The set of numerical variables in the current medical record case 1 is X, and the set of numerical variables in the other medical record case 2 is Y. Get the intersection X∩Y of X and Y, and determine whether the total number of variables in the intersection X∩Y, total_1, is greater than half of the total number of variables in X and Y, half_1.
[0059] (2) Multivariate unordered variables are calculated using the mismatch rate method; that is, the set of multivariate unordered variables in the current medical record case1 is X, and the set of multivariate unordered variables in the other medical record case2 is Y. Obtain the intersection X∩Y of X and Y, and determine whether the total number of variables in the intersection X∩Y, total_2, is greater than half of the total number of variables in X and Y, half_2.
[0060] (3) For multivariate ordered variables, similarity is calculated using numerical space mapping; that is, the values of multivariate ordered variables are mapped to numerical space, for example, normalized to [0,1], and converted into numerical data, and similarity is calculated using Euclidean distance or absolute value of difference. The set of multivariate ordered variables in the current medical record case1 is X, and the set of multivariate ordered variables in other medical records case2 is Y. Obtain the intersection X∩Y of X and Y, and determine whether the total number of variables in the intersection X∩Y, total_3, is greater than half_3 of the total number of variables in X and Y.
[0061] (4) If total_1 < half_1, total_2 < half_2, and total_3 < half_3, the formula for calculating the medical record similarity is: Sim(case1, case2) = dD + wABC2
[0062] Among them, w = (total_1 + total2 + total_3) / (total_1 + total2 + total_3 + total_4), w + d = 1, where total_4 is the total number of variables in the intersection of the set of ontological variables in medical record case1 and other medical record case2
[0063] In actual clinical use, different similarity thresholds threshold can be set for different scenarios. When Sim(case1, case2) ≥ threshold, similar medical record information is output
[0064] S5 System Application Part
[0065] The main function development of the system application of this method includes functional modules such as user index information entry and display of similar patient information. Users input the index information of the query patient through the web site, and the similar patient information, diagnosis and treatment plan, and prognosis results in the database are returned for doctors and patients to refer to
[0066] In addition, this system also includes an information feedback module for application cases to optimize the algorithm model. Iterative optimization and update of the model: More application cases are collected through system application and the corresponding treatment plans and prognosis are collected. When the quality of the cases passes expert review, the patient information can be added to the case library to obtain more high-quality cases
Claims
1. An integrated medical record calculation method, It is characterized in that The steps include: S01. Construct a medical record indicator system for different disease types; S02. Collect clinical data, including patient hospitalization information, historical medical records, test information, and imaging information; S03, data preprocessing and key feature extraction, including error value and missing value processing of structured data; Extract key features from the processed data to find out the indicators that have a greater impact on the patient's disease; S04, construction of similar medical record model, which integrates distance similarity, ontology similarity and graph similarity, and uses three similarity calculation methods to find medical records similar to the current patient's medical record; S05. Model training and iterative optimization. Through system application, more application cases are collected and corresponding treatment plans and prognosis are collected. When the case quality meets the standard, the patient information can be added to the case database to obtain more high-quality cases. When the accumulated high-quality case increment reaches the preset threshold, the model optimization training and update release are initiated; The S03 further comprises: S031, classifying the indicators constructed in step S01; S032. For different types of indicators, establish an indicator type-similarity method mapping table; S033, obtaining medical record data, identifying different types of indicator variables in the medical record data, and determining similarity calculation methods corresponding to different indicator variables according to the mapping table established in S032, wherein the similarity calculation methods include at least two of distance similarity, ontology similarity, and graph similarity; Calculate the similarity between the current medical record and other medical records; The indicator type-similarity method mapping table in step S032 includes: The numerical type indicators use the Euclidean distance similarity calculation method; The multivariate disorder type index uses the mismatch rate similarity calculation method; The multivariate ordered type index adopts the numerical space mapping similarity calculation method; The ontology type index adopts the ontology similarity calculation method.
2. The method according to claim 1, Features: S01 includes: determining the main indicators of patients suffering from a certain disease based on relevant guideline documents, knowledge texts, and case data, and forming different indicator systems for different disease types.
3. The method according to claim 1, Features: Based on the constructed similar medical record model, by inputting the patient indicators currently suffering from a certain disease, the user can return medical record information, treatment plans, and prognosis results similar to the current patient.
4. The method according to claim 1, It is characterized in that Step S033 further includes: For numerical type indicators, the Euclidean distance similarity calculation method is used to obtain the similarity A 1 ; For the multivariate disorder type index, the mismatch rate similarity calculation method is used to obtain the similarity B 1 ; For multivariate ordered type indicators, the numerical space mapping method is used to calculate the similarity C 1 ; For the ontology type index, the ontology similarity calculation method is used to calculate the similarity D; For numerical type indicators, multivariate ordered type indicators and multivariate unordered type indicators, the graph similarity calculation method is used to calculate the similarity ABC 2 ; The current medical record case is calculated by the following formula 1 With other medical records 2 Similarity: Sim(case 1 ,case 2 )=aA 1 +bB 1 +cC 1 +dD+wABC 2 Among them, a, b, c, d, and w are all weight indicators corresponding to different types of similarity calculation methods; and a+b+c=w.
5. The method according to claim 4, It is characterized in that Step S033 further includes: Determine whether the number of numerical type indicators, multivariate disordered type indicators, and multivariate ordered type indicators in the medical record data meets the preset conditions. If the preset conditions are met, similarity calculation formula 1 is used to calculate the medical record similarity; if the preset conditions are not met, similarity calculation formula 2 is used to calculate the medical record similarity; The similarity calculation formula 1 is as follows: Sim(case 1 ,case 2 )=aA 1 +bB 1 +cC 1 +dD+wABC 2 ; Among them, a, b, c, d, and w are weight indicators corresponding to different types of similarity calculation methods; and a+b+c=w; The similarity calculation formula 2 is as follows: Sim(case 1 ,case 2 )=dD+wABC 2 ; Among them, d and w are weight indicators corresponding to the entity similarity and graph similarity, and d+w=1.
Citation Information
Patent Citations
Semantic similar case retrieval method and device based on medical knowledge graph
CN111414393A
Collation device
JP2008217688A
