Method, system, device and storage medium for auxiliary labeling of multi-disease diagnosis and treatment pathways
Through the TF-IDF algorithm and community discovery algorithm, combined with the MinhashLSH and Louvain algorithms, the problem of insufficient quantification of the importance and accuracy of multi-disease diagnosis and treatment paths in the existing technology has been solved, and more accurate diagnosis and treatment path construction and disease groups have been achieved. Subgroup division.
Patent Information
- Application Number
- CN202411111855.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-14
AI Technical Summary
When constructing multi-disease diagnosis and treatment paths using existing technologies, bag-of-words methods and frequent sequence mining methods have problems such as insufficient importance quantification, insufficient accuracy, and excessive dimensionality, resulting in incomplete diagnosis and treatment path content and performance bottlenecks.
Using the TF-IDF algorithm combined with the MinhashLSH and Louvain algorithms, by calculating the importance scores and subgroup divisions of diagnosis and treatment items, a network of diagnosis and treatment items is formed to assist professionals in determining diagnosis and treatment paths for multiple diseases.
It improves the accuracy and reliability of diagnosis and treatment pathways for multiple diseases, quantifies the importance of diagnosis and treatment items within different DIP/DRG groups, and enhances the accuracy of disease group subgroup division.
Smart Images

Figure CN118629667B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data mining technology, and in particular to a method, system, device and storage medium for auxiliary labeling of diagnosis and treatment pathways for multiple diseases. Background Art
[0002] Standardization of medical behaviors is an important reference for medical insurance regulators. It can reduce the risk of violations and operating costs for hospitals. It can also help patients understand their conditions and treatment methods more clearly and transparently, which helps them actively participate in treatment. One of the main manifestations of current medical standardization is the diagnosis and treatment pathway, which stipulates the time flow of hospitalization under certain DIP / DRG groupings, and stipulates the items, sequence and time limit for examination and treatment in combination with the effects of the treatment process. However, the diagnosis and treatment pathway cannot fully cover the actual medical diagnosis and treatment behaviors, resulting in certain limitations in actual use. The formation of commonly used and common medical behavior groupings based on actual treatment methods can serve as an effective supplement to the diagnosis and treatment pathway.
[0003] Medical behaviors can be characterized by the medicines, examinations, tests, surgeries, consumables and other medical treatment items actually used in the patient's medical records. After collecting a large number of records of medical treatment items used clinically by patients and their corresponding DIP / DRG groups, the mainstream medical treatment item groups under different DIP / DRG groups are generated from the records, which can be considered as the commonly used and common medical behaviors under the group. These behaviors have certain rationality and guiding significance based on the number of patients actually used.
[0004] Patent CN117637177A uses the bag-of-words method to classify tuberculosis disease data to construct a diagnosis and treatment path for tuberculosis. Due to the limitations of the bag-of-words method itself, it is impossible to quantify the importance of each item in the classification and form a key item. In addition, the classification based on the bag-of-words method cannot guarantee sufficient accuracy and the versatility of the method. Therefore, this patent is only for tuberculosis. Patent CN112382398A matrices the items and amounts used by users and clusters the matrices to find medical treatment paths, and mines frequent sequences from the clustered medical treatment paths as the main diagnosis and treatment paths. Since the items and days used must be converted into matrices first, when facing a large amount of different grouped data, the problem of too high dimensions will occur, which will have an adverse effect on the clustering results. In addition, the frequent sequence mining method is used to determine the content of the diagnosis and treatment path. There is an uncontrollable problem of frequent sequence length (the vast majority of frequent sequence lengths are low), and there will be performance bottlenecks when facing scenarios with many frequent items. Patent CN112992370A classifies and clusters patient medical order data and establishes a medical treatment process model based on the medical treatment effect. It locates abnormal medical treatment by comparing the actual medical treatment sequence with the medical treatment process model and calculating the deviation. Similarly, the use of clustering algorithms on medical order data may result in the problem of too high a dimension affecting the clustering effect, and no sequence of medical treatment path items is generated after clustering. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method, system, device and storage medium for auxiliary labeling of diagnosis and treatment pathways for multiple diseases.
[0006] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0007] In a first aspect, the present invention proposes a method for assisting annotation of diagnosis and treatment pathways for multiple diseases, comprising the following steps:
[0008] Obtain consultation number information, disease grouping information, and diagnosis and treatment item information;
[0009] The diagnosis and treatment item information is merged to form a diagnosis and treatment item sequence data set; the diagnosis and treatment item sequence data set is then merged according to the disease grouping information to form a diagnosis and treatment item detail sequence data set;
[0010] De-duplicate the diagnosis and treatment project information by project type, and generate a mapping relationship data set between diagnosis and treatment projects and project categories;
[0011] Calculate the TF-IDF value of each medical treatment item corresponding to each medical treatment according to the medical treatment item sequence data set and the medical treatment number information;
[0012] According to the detailed sequence data set of diagnosis and treatment items, calculate the proportion of the number of occurrences of each diagnosis and treatment item in each group in the diagnosis and treatment item sequence;
[0013] Calculate the adjusted TF-IDF value of each diagnosis and treatment item in each group based on the TF-IDF value of each diagnosis and treatment item corresponding to each visit and the proportion of the number of times each diagnosis and treatment item appears in the diagnosis and treatment item sequence;
[0014] The mean of the adjusted TF-IDF values of each diagnosis and treatment item in each group was calculated and normalized to obtain the importance score of each diagnosis and treatment item in each group;
[0015] The MinhashLSH algorithm is used to screen the diagnosis and treatment item sequence data set to generate a sequence of medical visits;
[0016] According to the visit pair sequence, the visit relationship diagram within the group was constructed, and the Louvain algorithm was used to identify the groups in the visit relationship diagram within the group to form subgroups of each group;
[0017] The diagnosis and treatment item sequences corresponding to the subgroups of each group are merged to form a group diagnosis and treatment item sequence data set;
[0018] Calculate the TF-IDF value of each diagnosis and treatment item in each subgroup based on the group diagnosis and treatment item sequence data set;
[0019] The adjusted TF-IDF value of each diagnosis and treatment item in each subgroup is calculated based on the TF-IDF value of each diagnosis and treatment item in each subgroup and the importance score of each diagnosis and treatment item in each group;
[0020] The adjusted TF-IDF values of each diagnosis and treatment item in each subgroup were normalized at the subgroup and subgroup-item type levels to obtain the importance scores of the corresponding diagnosis and treatment items in the subgroup;
[0021] The importance scores of the corresponding diagnosis and treatment items within the subgroup are sorted according to the number of visits within the subgroup, and the diagnosis and treatment pathways of each subgroup within each group are determined.
[0022] Preferably, the calculation formula for calculating the TF-IDF value of each medical treatment item corresponding to each medical treatment according to the medical treatment item sequence data set and the medical treatment number information is:
[0023]
[0024] in, represents the TF-IDF score of treatment item t in visit j of group i, represents the number of times treatment item t appears in visit j of group i, represents the number of all medical treatment items that appear in the visit j of group i, Indicates the total number of visits in the diagnosis and treatment project information. Indicates the number of visits for medical item t that appears in the medical item information.
[0025] Preferably, the calculation formula for calculating the proportion of the number of occurrences of each diagnosis and treatment item in each group in the diagnosis and treatment item sequence according to the diagnosis and treatment item detailed sequence data set is:
[0026]
[0027] in, represents the proportion of diagnosis and treatment item t in group i, represents the number of times diagnosis and treatment item t appears in group i, Represents the number of all diagnosis and treatment items that appear in group i.
[0028] Preferably, the calculation formula for calculating the adjusted TF-IDF value of each diagnosis and treatment item in each group according to the TF-IDF value of each diagnosis and treatment item corresponding to each visit and the proportion of the number of occurrences of each diagnosis and treatment item in the diagnosis and treatment item sequence is:
[0029]
[0030] in, represents the adjusted TF-IDF score of treatment item t in visit j of group i, represents the TF-IDF score of treatment item t in visit j of group i, It represents the proportion of diagnosis and treatment item t in group i.
[0031] Preferably, the calculation formula for the importance score of each diagnosis and treatment item in each group is:
[0032]
[0033]
[0034] in, represents the normalized importance score of diagnosis and treatment item t in group i, represents the importance score of diagnosis and treatment item t in group i, represents the adjusted TF-IDF score of treatment item t in visit j of group i, Indicates the medical consultation collection. represents the number of times diagnosis and treatment item t appears in group i, represents the maximum importance score within group i, Represents the minimum importance score within group i.
[0035] Preferably, the calculation formula for calculating the TF-IDF value of each diagnosis and treatment item in each subgroup according to the group diagnosis and treatment item sequence data set is:
[0036]
[0037] in, represents the TF-IDF score of diagnosis and treatment item t in subgroup m of group i, represents the number of times treatment item t appears in subgroup m of group i, represents the number of all the diagnosis and treatment items that appear in subgroup m of group i, Indicates the total number of subgroups in the diagnosis and treatment project information. Represents the number of subgroups in group i that have diagnosis and treatment item t.
[0038] Preferably, the calculation formula for calculating the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup according to the TF-IDF value of each diagnosis and treatment item in each subgroup and the importance score of each diagnosis and treatment item in each group is:
[0039]
[0040] in, represents the adjusted TF-IDF score of diagnosis and treatment item t in subgroup m of group i, represents the TF-IDF score of diagnosis and treatment item t in subgroup m of group i, Represents the importance score of diagnosis and treatment item t in group i.
[0041] In the second aspect, the present invention proposes a multi-disease diagnosis and treatment pathway auxiliary annotation system, comprising:
[0042] A data acquisition unit, used to acquire the consultation number information, disease grouping information and diagnosis and treatment item information;
[0043] The data processing unit is used to merge the diagnosis and treatment item information to form a diagnosis and treatment item sequence data set; then merge the diagnosis and treatment item sequence data set according to the disease grouping information to form a diagnosis and treatment item detail sequence data set; remove the diagnosis and treatment item information according to the item type, and generate a mapping relationship data set between the diagnosis and treatment items and the item categories;
[0044] The project scoring unit is used to calculate the TF-IDF value of each medical project corresponding to each visit according to the medical project sequence data set and the medical consultation number information; calculate the proportion of the number of times each medical project in each group appears in the medical project sequence according to the medical project detail sequence data set; calculate the adjusted TF-IDF value of each medical project in each group according to the TF-IDF value of each medical project corresponding to each visit and the proportion of the number of times each medical project appears in the medical project sequence; calculate the mean of the adjusted TF-IDF value of each medical project in each group and normalize it to obtain the importance score of each medical project in each group;
[0045] The subgroup division unit is used to screen the diagnosis and treatment item sequence data set using the MinhashLSH algorithm to generate a visit pair sequence; construct a visit relationship diagram within the group based on the visit pair sequence, and use the Louvain algorithm to perform group identification on the visit relationship diagram within the group to form subgroups of each group;
[0046] The result processing unit is used to merge the sequences of diagnosis and treatment items corresponding to the subgroups of each group to form a group diagnosis and treatment item sequence data set; calculate the TF-IDF value of each diagnosis and treatment item in each subgroup according to the group diagnosis and treatment item sequence data set; calculate the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup according to the TF-IDF value of each diagnosis and treatment item in each subgroup and the importance score of each diagnosis and treatment item in each group; normalize the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup according to the two levels of subgroup and subgroup-item type, and obtain the corresponding importance score of the diagnosis and treatment item in the subgroup; sort the corresponding importance score of the diagnosis and treatment item in the subgroup according to the number of visits in the subgroup, and determine the diagnosis and treatment path of each subgroup in each group.
[0047] In a third aspect, the present invention proposes a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above method.
[0048] In a fourth aspect, the present invention proposes a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.
[0049] The present invention has the following beneficial effects:
[0050] The present invention mines the usage of diagnosis and treatment items in actual clinical operations, and effectively supplements the standard diagnosis and treatment pathways; quantifies the importance of each diagnosis and treatment item in different DIP / DRG groups through the improved TF-IDF algorithm; forms a diagnosis and treatment item relationship network through the similarity between the actual diagnosis and treatment item records in different DIP / DRG groups, thereby applying the community discovery algorithm to the disease group subgroup division; finally, combines the item score with the subgroup division to assist professionals in determining different disease group subgroups and the diagnosis and treatment items of the subgroups to form diagnosis and treatment pathways under different subgroups, thereby improving the accuracy of auxiliary labeling of diagnosis and treatment pathways for multiple diseases. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a flowchart of the auxiliary labeling method for diagnosis and treatment pathways of multiple diseases. DETAILED DESCRIPTION
[0052] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0053] Example 1
[0054] like Figure 1 As shown, the present invention provides a method for assisting labeling of diagnosis and treatment pathways for multiple diseases, comprising the following steps S1 to S14:
[0055] S1. Obtain the consultation number information, disease grouping information and diagnosis and treatment item information;
[0056] In an optional embodiment of the present invention, this embodiment obtains three types of information through step S1, including consultation number information, disease grouping information and diagnosis and treatment project information. The consultation number information is used to distinguish different consultations, the disease grouping information needs to indicate the DIP / DRG grouping to which each consultation belongs, and the diagnosis and treatment project information is the specific diagnosis and treatment project used in this consultation, including but not limited to: Western medicine, surgery, laboratory tests, anesthesia, examination, consumables and other project types. The diagnosis and treatment project information needs to be sorted according to different project types, and the same project is separated in the same column by a specific separator (such as a comma). The diagnosis and treatment project information can use a specific project name / project ID, or the name or ID of the different levels of classification of the project (such as: antiarrhythmic drugs-Class I antiarrhythmic drugs-quinidine, the three-level names can all be used as project names), and the specific form of recording project information is based on the principle of meeting the needs of professionals.
[0057] Taking hypertensive emergencies treated by internal medicine and hypertensive heart disease treated by coronary angiography as examples, the data is stored in the form shown in Table 1:
[0058] Table 1. Data storage table for hypertensive emergencies and hypertensive heart disease
[0059] Patient ID Group Name Western medicine examine assay Operation 111 Hypertensive emergencies - medical treatment α- and β-blockers, class I antiarrhythmics X-ray computed tomography (CT) scan Coagulation tests 112 Hypertensive emergencies - medical treatment β-blockers, calcium channel blockers X-ray computed tomography (CT) scan, general ultrasound examination Immune function tests, coagulation tests 113 Hypertensive Heart Disease - Coronary Angiography β-blockers, class I antiarrhythmic drugs X-ray computed tomography (CT) scan Coagulation test, general urine test Coronary angiography
[0060] The data stored in this embodiment should cover different groups as widely as possible, and the number of medical records in different groups should be guaranteed to be at least two digits.
[0061] S2. Merge the diagnosis and treatment item information to form a diagnosis and treatment item sequence data set; then merge the diagnosis and treatment item sequence data set according to the disease grouping information to form a diagnosis and treatment item detail sequence data set;
[0062] In an optional embodiment of the present invention, this embodiment first merges the medical item records of different medical records separately through step S2, and merges the medical items such as western medicine, examination, and test in different columns into a sequence. If a certain type of medical item column is empty before the merger, the column is directly ignored. During the merging process, the medical item types not used in this visit are ignored, forming a data set X containing the sequence of disease grouping-visit ID-medical item used in the visit, as shown in Table 2.
[0063] Table 2. Data storage table of diagnosis and treatment project sequence data set
[0064] Patient ID Group Name Western medicine examine assay Operation Post-merger diagnosis and treatment project sequence 111 Hypertensive emergencies - medical treatment α- and β-blockers, class I antiarrhythmics X-ray computed tomography (CT) scan Coagulation tests α- and β-blockers, class I antiarrhythmic drugs, computed tomography (CT) scans, coagulation tests 112 Hypertensive emergencies - medical treatment β-blockers, calcium channel blockers X-ray computed tomography (CT) scan, general ultrasound examination Immune function tests, coagulation tests β-blockers, calcium channel blockers, computed tomography (CT) scans, general ultrasonography, immune function tests, coagulation tests 113 Hypertensive Heart Disease - Coronary Angiography β-blockers, class I antiarrhythmic drugs X-ray computed tomography (CT) scan Coagulation test, general urine test Coronary angiography β-blockers, class I antiarrhythmic drugs, computed tomography (CT) scan, coagulation test, urine general examination, coronary angiography
[0065] This embodiment then merges the diagnosis and treatment item sequence dataset X again by disease group to form a disease group-diagnosis and treatment item detail sequence, that is, the diagnosis and treatment item sequences of all visits under this group are merged, and finally it becomes a form in which one group corresponds to one diagnosis and treatment item sequence. This data is recorded as the diagnosis and treatment item detail sequence dataset Xg, as shown in Table 3.
[0066] Table 3. Data storage table of diagnosis and treatment item detail sequence data set
[0067] Group Name Post-merger diagnosis and treatment project sequence Hypertensive emergencies - medical treatment α- and β-blockers, Class I antiarrhythmic drugs, X-ray computed tomography (CT) scan, coagulation tests, β-blockers, calcium channel blockers, X-ray computed tomography (CT) scan, general ultrasonography, immune function tests, coagulation tests Hypertensive Heart Disease - Coronary Angiography β-blockers, class I antiarrhythmic drugs, computed tomography (CT) scan, coagulation test, urine general examination, coronary angiography
[0068] This embodiment does not perform deduplication operations on specific diagnosis and treatment items in each grouping sequence.
[0069] S3, de-duplication of diagnosis and treatment project information according to project type, and generate a mapping relationship data set between diagnosis and treatment projects and project categories;
[0070] In an optional embodiment of the present invention, this embodiment removes duplication of diagnosis and treatment item information by item type through step S3, and generates a mapping relationship data set M between diagnosis and treatment items and item categories, as shown in Table 4.
[0071] Table 4. Data storage table of the mapping relationship between diagnosis and treatment items and item categories dataset
[0072] Project Name Project Type Alpha- and beta-blockers Western medicine Beta-blockers Western medicine X-ray computed tomography (CT) scan examine … …
[0073] S4. Calculate the TF-IDF value of each medical treatment item corresponding to each medical treatment according to the medical treatment item sequence data set and the medical treatment number information;
[0074] In an optional embodiment of the present invention, in step S4, the present embodiment calculates the TF-IDF value of each diagnosis and treatment item for each visit according to the diagnosis and treatment item sequence data set X, and the calculation formula is:
[0075]
[0076] in, represents the TF-IDF score of treatment item t in visit j of group i, represents the number of times treatment item t appears in visit j of group i, represents the number of all medical treatment items that appear in the visit j of group i, Indicates the total number of visits in the diagnosis and treatment project information. Indicates the number of visits for medical item t that appears in the medical item information.
[0077] The calculation results of step S4 are shown in Table 5.
[0078] Table 5. Data storage table of TF-IDF values of each diagnosis and treatment item corresponding to each visit
[0079] Patient ID Group Name Project Name TF-IDF value 111 Hypertensive emergencies - medical treatment General Ultrasound Examination 0.000259 111 Hypertensive emergencies - medical treatment Calcium channel blockers 0.000950 111 Hypertensive emergencies - medical treatment Cardiac ultrasound 0.000453 … … …
[0080] S5. Calculate the proportion of the number of occurrences of each diagnosis and treatment item in each group in the diagnosis and treatment item sequence according to the diagnosis and treatment item detailed sequence data set;
[0081] In an optional embodiment of the present invention, in step S5, according to the diagnosis and treatment item detail sequence data set Xg, for each group, the proportion of the number of occurrences of each actually used item in the group to the total number of occurrences of the items in the group is calculated, and the calculation formula is:
[0082]
[0083] in, represents the proportion of diagnosis and treatment item t in group i, represents the number of times diagnosis and treatment item t appears in group i, Represents the number of all diagnosis and treatment items that appear in group i.
[0084] For example, there are 22,979 items in total in the total item sequence of hypertensive emergency-internal medicine treatment (without deduplication), among which cardiac ultrasound examination appears 711 times. Therefore, the proportion of cardiac ultrasound examination in hypertensive emergency-internal medicine treatment is 711 / 22,979=0.30941.
[0085] S6. Calculate the adjusted TF-IDF value of each diagnosis and treatment item in each group according to the TF-IDF value of each diagnosis and treatment item corresponding to each visit and the proportion of the number of occurrences of each diagnosis and treatment item in the diagnosis and treatment item sequence;
[0086] In an optional embodiment of the present invention, in step S6, the TF-IDF value of different medical treatment items under different medical treatments is multiplied by the frequency ratio of each medical treatment item under the corresponding group of the medical treatment to obtain an adjusted TF-TDF value, and the calculation formula is:
[0087]
[0088] in, represents the adjusted TF-IDF score of treatment item t in visit j of group i, represents the TF-IDF score of treatment item t in visit j of group i, It represents the proportion of diagnosis and treatment item t in group i.
[0089] S7. Calculate the mean of the adjusted TF-IDF values of each diagnosis and treatment item in each group and normalize them to obtain the importance score of each diagnosis and treatment item in each group;
[0090] In an optional embodiment of the present invention, in step S7, the mean of the adjusted TF-IDF values of each diagnosis and treatment item is calculated according to different groups to obtain the adjusted TF-IDF means of each diagnosis and treatment item under different groups; then the adjusted TF-IDF means of all diagnosis and treatment items in each group are normalized to form an importance score data set Xscore of different diagnosis and treatment items under different groups to the group, and the calculation formula is:
[0091]
[0092]
[0093] in, represents the normalized importance score of diagnosis and treatment item t in group i, represents the importance score of diagnosis and treatment item t in group i, represents the adjusted TF-IDF score of treatment item t in visit j of group i, Indicates the medical consultation collection. represents the number of times diagnosis and treatment item t appears in group i, represents the maximum importance score within group i, Represents the minimum importance score within group i.
[0094] Taking Min-Max scaling for normalization as an example, the importance score data set Xscore obtained is shown in Table 6.
[0095] Table 6. Data storage table of importance score dataset
[0096] Group Name Project Name Project Type Item importance scores under grouping Hypertensive emergencies - medical treatment General Ultrasound Examination examine 0.3791 Hypertensive emergencies - medical treatment Calcium channel blockers Western medicine 1.0000 Hypertensive emergencies - medical treatment Cardiac ultrasound examine 0.7617 … …
[0097] The importance score ranges from 0 to 1, and due to the Min-Max scaling feature, there will definitely be items with scores of 0 and 1.
[0098] S8. Use the MinhashLSH algorithm to screen the diagnosis and treatment item sequence data set to generate a diagnosis pair sequence;
[0099] In an optional embodiment of the present invention, this embodiment performs subgroup division calculation on the diagnosis and treatment item sequence data set X through step S8, specifically: setting a detailed sequence similarity threshold (value range 0~1), and using the MinhashLSH algorithm to screen the paired visits whose similarity is greater than the detailed sequence similarity threshold for the diagnosis and treatment item detailed sequences formed by merging different visits under each disease group in the diagnosis and treatment item sequence data set X, to form a high-similarity visit pair sequence, as shown in Table 7.
[0100] Table 7. Data storage table for visit sequence
[0101] Group Name S T Hypertensive emergencies - medical treatment Medical consultation 111 Medical consultation 112 Hypertensive emergencies - medical treatment Medical consultation 113 Medical consultation 222 Hypertensive emergencies - medical treatment Visit 311 Medical consultation 215 … … …
[0102] S9, constructing a visit relationship diagram within the group according to the visit pair sequence, and using the Louvain algorithm to perform group identification on the visit relationship diagram within the group to form subgroups of each group;
[0103] In an optional embodiment of the present invention, this embodiment constructs a medical consultation relationship graph within the group according to the medical consultation sequence through step S9, in which the S column represents the source node, the T column represents the target node, an edge is formed between the source node and the target node, and the nodes connected by the edge are called adjacent nodes. The medical consultation relationship graph within the group is used to identify groups using a community discovery algorithm to form several groups with high similarity in the use of medical treatment items.
[0104] The process of community discovery algorithm is as follows:
[0105] 1) In the initial stage, each node acts as a separate community, and the number of communities is the same as the number of nodes.
[0106] 2) Merge each node with its adjacent nodes in turn, and calculate whether their maximum module gain is greater than 0. If it is greater than 0, the node is assigned to the community where the adjacent node with the largest module increment is located.
[0107] 3) Repeat 1) and 2) until the communities to which all nodes belong no longer change.
[0108] 4) All nodes in each community are regarded as a single node. The edge weights of all nodes in the community are converted into the edge weights of the new node pointing to itself, and the edge weights between communities are only converted into the edge weights between new nodes.
[0109] 5) Repeat steps 1) to 4) until the community no longer changes or the specified maximum number of iterations is reached or the maximum module gain is less than the specified value.
[0110] Here, the edge weight between nodes is always 1.
[0111] The final similarity group Y is shown in Table 8.
[0112] Table 8. Data storage table of similarity groups
[0113] Group Name High similarity group number of medical items High similarity group of diagnosis and treatment items Hypertensive emergencies - medical treatment 0 Go to 111, go to 112, go to 222… Hypertensive emergencies - medical treatment 1 312 visits, 116 visits, 235 visits… … … …
[0114] Each disease grouping will form several groups with high similarity in diagnosis and treatment items, which are subgroups of each grouping.
[0115] S10, merging the diagnosis and treatment item sequences corresponding to the subgroups of each group to form a group diagnosis and treatment item sequence data set;
[0116] In an optional embodiment of the present invention, this embodiment merges the diagnosis and treatment item sequences corresponding to the visits to each subgroup in each group through step S10, and each subgroup forms a detailed sequence of diagnosis and treatment items, forming a data set Xsub containing the disease grouping-disease subgroup-diagnosis and treatment item detailed sequence, as shown in Table 9.
[0117] Table 9. Data storage table of group diagnosis and treatment project sequence data set
[0118] Group Name High similarity group number of medical items Group diagnosis and treatment project details Hypertensive emergencies - medical treatment 0 Alpha- and beta-blockers, computed tomography (CT) scan, coagulation tests, calcium channel blockers, general ultrasonography, coagulation tests Hypertensive emergencies - medical treatment 1 β-blockers, calcium channel blockers, class I antiarrhythmic drugs, computed tomography (CT) scan, computed tomography (CT) scan, immune function tests, coagulation tests … … …
[0119] S11. Calculate the TF-IDF value of each diagnosis and treatment item in each subgroup based on the group diagnosis and treatment item sequence data set;
[0120] In an optional embodiment of the present invention, this embodiment calculates the TF-IDF value of each detail item in each subgroup according to the detail sequence of each subgroup according to the group diagnosis and treatment item sequence data set Xsub through step S11 to obtain the importance of each detail item to the subgroup. The calculation formula is:
[0121]
[0122] in, represents the TF-IDF score of diagnosis and treatment item t in subgroup m of group i, represents the number of times treatment item t appears in subgroup m of group i, represents the number of all the diagnosis and treatment items that appear in subgroup m of group i, Indicates the total number of subgroups in the diagnosis and treatment project information. Represents the number of subgroups in group i that have diagnosis and treatment item t.
[0123] S12. Calculate the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup based on the TF-IDF value of each diagnosis and treatment item in each subgroup and the importance score of each diagnosis and treatment item in each group;
[0124] In an optional embodiment of the present invention, the same item in different subgroups within the same group may have different TF-IDF values, but the value is greatly affected by the subgroup, which may lose the main group information to a certain extent. In order to reduce this influence, in step S12, the present embodiment multiplies the TF-IDF score of each item in each subgroup by the score of the corresponding item in the corresponding group in the importance score data set Xscore to obtain an adjusted TF-IDF value. The calculation formula is:
[0125]
[0126] in, represents the adjusted TF-IDF score of diagnosis and treatment item t in subgroup m of group i, represents the TF-IDF score of diagnosis and treatment item t in subgroup m of group i, Represents the importance score of diagnosis and treatment item t in group i.
[0127] S13. Normalize the adjusted TF-IDF values of each diagnosis and treatment item in each subgroup according to the subgroup and subgroup-item type levels to obtain the importance score of the corresponding diagnosis and treatment item in the subgroup;
[0128] In an optional embodiment of the present invention, this embodiment performs step S13 on the adjusted TD-IDF value according to 1). Normalizing the adjusted TF-IDF mean of all items in each group to form importance scores of different items in different groups to the group; 2). Normalizing the adjusted TF-IDF of items of the same type in each group according to the mapping relationship data set M to obtain importance scores of different items in different groups and different item types to the group, and forming a result data set Xresult.
[0129] S14. Sort the importance scores of the corresponding diagnosis and treatment items within the subgroup according to the number of visits within the subgroup, and determine the diagnosis and treatment pathways for each subgroup within each group.
[0130] In an optional embodiment of the present invention, this embodiment calculates the number of visits in each subgroup through step S14, sorts the result data set Xresult from high to low according to the number of visits in the subgroup, and takes Min-Max scaling for normalization as an example. The final result is shown in Table 10.
[0131] Table 10. Data storage table of the final result dataset
[0132] Group Name Subgroup number Project Name Project Type Importance score of items within the group Item importance scores under grouping Number of visits within subgroup Hypertensive emergencies - medical treatment 0 General Ultrasound Examination examine 0.3045 0.3791 100 Hypertensive emergencies - medical treatment 0 Calcium channel blockers Western medicine 1.0000 1.0000 100 Hypertensive emergencies - medical treatment 0 Cardiac ultrasound examine 0.5091 0.7617 100 … … … … … … …
[0133] According to the final result data set, the specific diagnosis and treatment pathways of several subgroups under the group can be determined according to the items with higher scores in the subgroup with more visits. If the grouping result is not ideal, the similarity threshold in the subgroup division unit can be modified and the subgroup division can be re-performed until the final result meets the requirements.
[0134] The present invention mines the usage of diagnosis and treatment items in actual clinical operations, and effectively supplements the standard diagnosis and treatment pathways; quantifies the importance of each diagnosis and treatment item in different DIP / DRG groups through the improved TF-IDF algorithm; forms a diagnosis and treatment item relationship network through the similarity between actual diagnosis and treatment item records in different DIP / DRG groups, thereby applying the community discovery algorithm to the disease group subgroup division; finally, combines the item score with the subgroup division to assist professionals in determining different disease group subgroups and the diagnosis and treatment items of the subgroups to form diagnosis and treatment pathways under different subgroups, and the specific items used to form the diagnosis and treatment pathways can be freely screened by the importance scores of the items in the subgroups.
[0135] Example 2
[0136] The multi-disease diagnosis and treatment pathway auxiliary labeling method provided by the present invention further provides a multi-disease diagnosis and treatment pathway auxiliary labeling system, including:
[0137] A data acquisition unit, used to acquire the consultation number information, disease grouping information and diagnosis and treatment item information;
[0138] The data processing unit is used to merge the diagnosis and treatment item information to form a diagnosis and treatment item sequence data set; then merge the diagnosis and treatment item sequence data set according to the disease grouping information to form a diagnosis and treatment item detail sequence data set; remove the diagnosis and treatment item information according to the item type, and generate a mapping relationship data set between the diagnosis and treatment items and the item categories;
[0139] The project scoring unit is used to calculate the TF-IDF value of each medical project corresponding to each visit according to the medical project sequence data set and the medical consultation number information; calculate the proportion of the number of times each medical project in each group appears in the medical project sequence according to the medical project detail sequence data set; calculate the adjusted TF-IDF value of each medical project in each group according to the TF-IDF value of each medical project corresponding to each visit and the proportion of the number of times each medical project appears in the medical project sequence; calculate the mean of the adjusted TF-IDF value of each medical project in each group and normalize it to obtain the importance score of each medical project in each group;
[0140] The subgroup division unit is used to screen the diagnosis and treatment item sequence data set using the MinhashLSH algorithm to generate a visit pair sequence; construct a visit relationship diagram within the group based on the visit pair sequence, and use the Louvain algorithm to perform group identification on the visit relationship diagram within the group to form subgroups of each group;
[0141] The result processing unit is used to merge the sequences of diagnosis and treatment items corresponding to the subgroups of each group to form a group diagnosis and treatment item sequence data set; calculate the TF-IDF value of each diagnosis and treatment item in each subgroup according to the group diagnosis and treatment item sequence data set; calculate the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup according to the TF-IDF value of each diagnosis and treatment item in each subgroup and the importance score of each diagnosis and treatment item in each group; normalize the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup according to the two levels of subgroup and subgroup-item type, and obtain the corresponding importance score of the diagnosis and treatment item in the subgroup; sort the corresponding importance score of the diagnosis and treatment item in the subgroup according to the number of visits in the subgroup, and determine the diagnosis and treatment path of each subgroup in each group.
[0142] Example 3
[0143] Based on the method for assisting labeling of diagnosis and treatment pathways for multiple diseases provided in Example 1, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method for assisting labeling of diagnosis and treatment pathways for multiple diseases provided in Example 1.
[0144] Example 4
[0145] Based on the method for assisting labeling of diagnosis and treatment pathways for multiple diseases provided in Example 1, the embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for assisting labeling of diagnosis and treatment pathways for multiple diseases provided in Example 1 are implemented.
[0146] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0150] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. A multi-disease diagnosis and treatment pathway auxiliary labeling method, characterized in that: The following steps are involved: Obtain consultation number information, disease grouping information, and diagnosis and treatment item information; Merge the diagnosis and treatment item information to form a diagnosis and treatment item sequence data set; Then, the diagnosis and treatment item sequence data sets are merged according to the disease grouping information to form a diagnosis and treatment item detailed sequence data set; De-duplicate the diagnosis and treatment project information by project type, and generate a mapping relationship data set between diagnosis and treatment projects and project categories; The TF-IDF value of each diagnosis and treatment item corresponding to each visit is calculated based on the diagnosis and treatment item sequence data set and the visit number information; the calculation formula for calculating the TF-IDF value of each diagnosis and treatment item corresponding to each visit based on the diagnosis and treatment item sequence data set and the visit number information is: Among them, TF-IDF tij represents the TF-IDF score of treatment item t in visit j of group i, count tij represents the number of times treatment item t appears in visit j of group i, count ij represents the number of all medical treatment items that appear in the medical treatment j of group i, lengthD represents the total number of medical treatment items in the medical treatment item information, count tD Indicates the number of visits for medical item t that appears in the medical item information; The proportion of the number of times each diagnosis and treatment item in each group appears in the diagnosis and treatment item sequence is calculated based on the diagnosis and treatment item detailed sequence data set; the calculation formula for calculating the proportion of the number of times each diagnosis and treatment item in each group appears in the diagnosis and treatment item sequence based on the diagnosis and treatment item detailed sequence data set is: Among them, R ti Indicates the proportion of diagnosis and treatment item t in group i, count ti Indicates the number of times the diagnosis and treatment item t appears in group i, count i Represents the number of all diagnosis and treatment items that appear in group i; Calculate the adjusted TF-IDF value of each diagnosis and treatment item in each group based on the TF-IDF value of each diagnosis and treatment item corresponding to each visit and the proportion of the number of times each diagnosis and treatment item appears in the diagnosis and treatment item sequence; The mean of the adjusted TF-IDF values of each diagnosis and treatment item in each group was calculated and normalized to obtain the importance score of each diagnosis and treatment item in each group; The MinhashLSH algorithm is used to screen the diagnosis and treatment item sequence data set to generate a sequence of medical visits; According to the visit pair sequence, the visit relationship diagram within the group was constructed, and the Louvain algorithm was used to identify the groups in the visit relationship diagram within the group to form subgroups of each group; The diagnosis and treatment item sequences corresponding to the subgroups of each group are merged to form a group diagnosis and treatment item sequence data set; Calculate the TF-IDF value of each diagnosis and treatment item in each subgroup based on the group diagnosis and treatment item sequence data set; The adjusted TF-IDF value of each treatment item in each subgroup is calculated based on the TF-IDF value of each treatment item in each subgroup and the importance score of each treatment item in each group; the adjusted TF-IDF value of each treatment item in each group is calculated based on the TF-IDF value of each treatment item corresponding to each visit and the proportion of the number of times each treatment item appears in the treatment item sequence. The calculation formula is: sTF-IDF tij =(TF-IDF tij )*R ti Among them, sTF-IDF tij represents the adjusted TF-IDF score of treatment item t in visit j of group i, TF-IDF tij represents the TF-IDF score of treatment item t in visit j of group i, R ti It represents the proportion of diagnosis and treatment item t in group i; The adjusted TF-IDF values of each diagnosis and treatment item in each subgroup were normalized at the subgroup and subgroup-item type levels to obtain the importance scores of the corresponding diagnosis and treatment items in the subgroup; The importance scores of the corresponding diagnosis and treatment items in the subgroups are sorted according to the number of visits in the subgroups, and the diagnosis and treatment pathways of each subgroup in each group are determined; Among them, the calculation formula for the importance score of each diagnosis and treatment item in each group is: Among them, simpit represents the normalized importance score of diagnosis and treatment item t in group i, impi t Indicates the importance score of diagnosis and treatment item t in group i, sTF-IDF tij represents the adjusted TF-IDF score of treatment item t in visit j of group i, where J represents the visit set, and count ti represents the number of times the diagnosis and treatment item t appears in group i, max(imp i ) represents the maximum importance score in group i, min(imp i ) represents the minimum importance score within group i.
2. The multi-disease diagnosis and treatment pathway auxiliary labeling method according to claim 1 is characterized in that: The calculation formula for calculating the TF-IDF value of each diagnosis and treatment item in each subgroup based on the group diagnosis and treatment item sequence data set is: Among them, TF-IDF tim represents the TF-IDF score of diagnosis and treatment item t in subgroup m of group i, count tim Indicates the number of times treatment item t appears in subgroup m of group i, count im represents the number of all the diagnosis and treatment items in subgroup m of group i, lengthi represents the total number of subgroups in the diagnosis and treatment item information, count ti Represents the number of subgroups in group i that have diagnosis and treatment item t.
3. The multi-disease diagnosis and treatment pathway auxiliary labeling method according to claim 1 is characterized in that: The calculation formula for calculating the adjusted TF-IDF value of each diagnosis and treatment item in each subgroup is as follows: gTF-IDF tim =(TF-IDF tim )*(simp it )in, gTF-IDF tim represents the adjusted TF-IDF score of treatment item t in subgroup m of group i. tim represents the TF-IDF score of diagnosis and treatment item t in subgroup m of group i, simple it Represents the importance score of diagnosis and treatment item t in group i.
4. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of any one of claims 1 to 3.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Multi-scale clinical path mining method and device, computer equipment and storage medium
CN112382398A
Unsupervised electronic medical record-based medical behavior compliance assessment method
CN112992370A
Clinical path construction method and device, electronic equipment and storage medium
CN117637177A
Medical data analysis method and device, equipment and storage medium
CN116959733A
Automatic text dialogue method and device for clinical test, equipment and medium
CN117390145A
