Medical treatment behavior identification method, device, terminal equipment and storage medium
By mining and clustering frequent item sets and patterns in time-series medical data, simplifying the data and then mining time-series association rules, it solves the problem of excessive calculation in the existing technology and achieves rapid and accurate identification of abnormal medical behavior. .
Patent Information
- Application Number
- CN202210072616.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-01-21
AI Technical Summary
The existing temporal association rule algorithm has too many candidate items in medical insurance fee control, resulting in excessive calculations and inability to complete operations, making it difficult to effectively identify abnormal medical treatment behaviors.
Through frequent item set mining, clustering and mapping of patients' time-series medical treatment data, the cost categories in each time-series medical treatment data are simplified, and further frequent pattern mining and clustering of diagnosis results under each medical treatment time are performed to form a target time series. Medical treatment data is then mined for time series association rules to identify abnormal medical treatment behaviors.
It reduces the complexity of medical-seeking behavior patterns, improves mining efficiency, shortens the mining time of sequential association rules, and achieves fast and accurate identification of abnormal medical-seeking behavior.
Smart Images

Figure CN114418008B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, apparatus, terminal device and storage medium for identifying medical behavior. Background Art
[0002] With the aging of the population and the increase in the number of patients with chronic diseases, more and more patients will have periodic medical behaviors. Understanding the behavioral patterns of patients' multiple medical visits is of vital importance for discovering abnormal medical behaviors and controlling medical insurance costs. The discovery of abnormal medical behaviors is often based on rule-based methods, which require mining normal behavior patterns from medical data. If the behavior patterns are violated, it can be determined as abnormal medical behavior. For example, if the rule "Down syndrome screening in week t is performed, then a delivery operation will be performed before week t+28" is discovered, if the patient violates this rule, there is a suspicious risk. Such time series association rules can be mined through mature algorithms such as sequence pattern mining (prefixspan), but in medical insurance cost control, there are too many candidate items, and such time series association rules often involve multiple medical behaviors. If all the cost items of each medical visit are directly input into the existing time series association rule algorithm, the amount of calculation is too large (for example, there are 1,000 cost items and two medical visits, then there are a total of 2 candidate items). 1001 ), the operation cannot be completed at all. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a method, apparatus, terminal device and storage medium for identifying medical treatment behavior to solve the problem that the existing method of directly inputting all expense items of each medical treatment into the time series association rule algorithm for mining will result in excessive calculation and inability to complete the operation.
[0004] A first aspect of an embodiment of the present application provides a method for identifying medical treatment behavior, comprising:
[0005] Obtaining time-series medical treatment data of at least one patient, each time-series medical treatment data includes a patient's diagnosis result, cost category, and cost item at all medical treatment times;
[0006] Frequent item set mining, clustering and mapping are performed on the expense items of the same type of diagnosis results and the same type of expense category in all time-series medical treatment data, so as to simplify the expense items of each expense category in each time-series medical treatment data into a frequent item set;
[0007] Frequent pattern mining, clustering and mapping are performed on all cost categories of the same type of diagnosis results at the same medical treatment time in each time series medical treatment data, so as to simplify all cost categories of the same type of diagnosis results at each medical treatment time in each time series medical treatment data into a frequent pattern;
[0008] The frequent pattern of each type of diagnosis results at all medical treatment times in each time series medical treatment data is taken as a target time series medical treatment data;
[0009] Mining time series association rules for each target time series medical treatment data to obtain the time series association rules between the frequent patterns of all types of diagnosis results in each target time series medical treatment data;
[0010] According to each time series association rule, identify whether the medical behavior of the corresponding patient is abnormal.
[0011] A second aspect of an embodiment of the present application provides a device for identifying medical treatment behavior, including:
[0012] A data acquisition unit, used to acquire time-series medical treatment data of at least one patient, each time-series medical treatment data including a patient's diagnosis result, expense category and expense item at all medical treatment times;
[0013] A frequent item set mining unit is used to perform frequent item set mining, clustering and mapping on the expense items of the same type of diagnosis results and the same type of expense category in all time-series medical treatment data, so as to simplify the expense items of each expense category in each time-series medical treatment data into a frequent item set;
[0014] A frequent pattern mining unit is used to perform frequent pattern mining, clustering and mapping on all cost categories of the same type of diagnosis results at the same medical treatment time in each time series medical treatment data, so as to simplify all cost categories of the same type of diagnosis results at each medical treatment time in each time series medical treatment data into a frequent pattern;
[0015] A data generating unit, used for taking the frequent pattern of each type of diagnosis result at all medical treatment times in each time series medical treatment data as a target time series medical treatment data;
[0016] A time series association rule mining unit is used to mine time series association rules for each target time series medical treatment data, and obtain the time series association rules between the frequent patterns of all types of diagnosis results in each target time series medical treatment data;
[0017] The medical treatment behavior identification unit is used to identify whether the medical treatment behavior of the corresponding patient is abnormal based on each time series association rule.
[0018] The third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the terminal device, wherein the processor implements the steps of the medical behavior identification method provided in the first aspect when executing the computer program.
[0019] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the medical treatment behavior identification method provided in the first aspect are implemented.
[0020] The first aspect of the embodiment of the present application provides a medical behavior identification method. First, frequent item set mining, clustering and mapping are performed on the expense items of the same type of diagnosis results and the same type of expense category in the time series medical data of at least one patient, and the expense items of each expense category in each time series medical data are simplified into a frequent item set; then, frequent pattern mining, clustering and mapping are performed on all types of expense categories of the same type of diagnosis results at the same medical time in each time series medical data, and all types of expense categories of the same type of diagnosis results at each medical time in each time series medical data are simplified into a frequent pattern, and the frequent pattern of each type of diagnosis result at all medical times in each time series medical data is used as a target time series medical data; then, time series association rule mining is performed on each target time series medical data to obtain all types of diagnosis results in each target time series medical data. The temporal association rules between the frequent patterns of the results; finally, according to each temporal association rule, whether the medical behavior of the corresponding patient is abnormal is identified; by mining the frequent patterns of the patient's temporal medical data hierarchically, the frequent patterns obtained by mining are used to represent the patient's single medical behavior, so as to simplify the patient's single medical behavior; at the same time, in order to reduce potential similar frequent patterns, the frequent patterns are clustered, and the representative patterns after clustering are used to represent the patient's single medical behavior, so as to further simplify the patient's single medical behavior and reduce the complexity of the patient's medical behavior pattern. Therefore, when mining the temporal association rules of the patient's multiple medical behaviors, the amount of calculation can be effectively reduced, the mining efficiency can be improved, and the time required to complete the mining of temporal association rules can be effectively shortened, so as to quickly and accurately identify whether the patient's medical behavior is abnormal based on the temporal association rules.
[0021] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 This is a first flow chart of the medical treatment behavior identification method provided in the embodiment of the present application;
[0024] Figure 2 is a schematic diagram of the time-series medical treatment data of a patient provided in an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of the time-series medical treatment data of three patients provided in an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of time-series medical treatment data of three patients after simplifying expense items provided by an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of time-series medical treatment data of three patients after simplifying the expense categories provided in an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of target time-series medical treatment data of three patients provided in an embodiment of the present application;
[0029] Figure 7 This is a second flow chart of the medical treatment behavior identification method provided in the embodiment of the present application;
[0030] Figure 8 This is a third flow chart of the medical treatment behavior identification method provided in the embodiment of the present application;
[0031] Fig. 9 This is a fourth flow chart of the medical treatment behavior identification method provided in the embodiment of the present application;
[0032] Fig.10 It is a structural schematic diagram of a medical treatment behavior identification device provided in an embodiment of the present application;
[0033] Fig.11 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0035] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0036] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0037] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0038] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0039] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0040] The embodiment of the present application provides a method for identifying medical treatment behavior, which can be executed by the processor of a terminal device when running a corresponding computer program. By mining the frequent patterns of the patient's temporal medical treatment data in a hierarchical manner, the mined frequent patterns are used to represent the patient's single medical treatment behavior, thereby simplifying the patient's single medical treatment behavior; at the same time, in order to reduce potential similar frequent patterns, the frequent patterns are clustered, and the representative patterns after clustering are used to represent the patient's single medical treatment behavior, so as to further simplify the patient's single medical treatment behavior and reduce the complexity of the patient's medical treatment behavior pattern. Therefore, when mining temporal association rules for the patient's multiple medical treatment behaviors, the amount of calculation can be effectively reduced, the mining efficiency can be improved, and the time required to complete the mining of temporal association rules can be effectively shortened, and then it can be quickly and accurately identified whether the patient's medical treatment behavior is abnormal based on the temporal association rules.
[0041] The medical treatment behavior identification method provided in the embodiment of the present application can be applied to smart medical treatment scenarios, thereby promoting the construction of smart cities.
[0042] In the application, the terminal device can be a (cloud) server, a personal computer, a laptop computer, or other computing device that can perform data processing functions. For example, a server of a medical institution is used to run a medical information management system (Hospital Information System). The medical behavior recognition method is one of the functions that can be realized by the medical information management system.
[0043] In one embodiment, the medical treatment behavior identification method provided in the embodiment of the present application includes the following steps S101 to S106:
[0044] S101. Obtain time-series medical treatment data of at least one patient, each time-series medical treatment data including a patient's diagnosis results, expense categories, and expense items at all medical treatment times.
[0045] In the application, the time series medical treatment data of any number of patients can be obtained according to actual needs, for example, the time series medical treatment data of all or part of the patients who received medical treatment in the same medical institution or different medical institutions, and the time series medical treatment data of all or part of the patients who received medical treatment in at least one department of the same medical institution. Each time series medical treatment data includes the diagnosis results, cost categories and cost items of a patient at all medical treatment times.
[0046] In the application, the user can input an instruction for obtaining the time-series medical data of any number of patients through the human-computer interaction device of the terminal device, so that the terminal device obtains the time-series medical data of the corresponding number of patients when responding to the instruction. For example, the user can input an instruction carrying the patient's unique identity document (ID) to obtain the time-series medical data of the corresponding patient; or, the user can also input an instruction for executing the medical behavior identification method through the human-computer interaction device of the terminal device. The terminal device is configured to automatically obtain the time-series medical data of a preset number of patients by default when responding to the instruction input by the user for executing the medical behavior identification method. The preset number is customized by the user in advance through the human-computer interaction device of the terminal device according to actual needs or adopts the factory default setting. For example, the preset number of patients can be all patients who seek medical treatment within a preset time period.
[0047] In the application, the human-computer interaction device may include but is not limited to at least one of a keyboard, a physical button, a touch sensor, a gesture recognition sensor, and a voice recognition unit, so that the user can control the terminal device through the corresponding touch mode, gesture control mode, or voice control mode. The touch mode of the physical button can be specifically pressing or toggling, and the touch mode of the touch sensor can be specifically pressing or touching, etc. The gesture used to control the terminal device can be customized by the user according to actual needs or adopt the factory default settings. The voice recognition unit may include a microphone and a voice recognition chip, and the voice used to control the terminal device can be customized by the user in advance through the human-computer interaction device of the terminal device or adopt the factory default settings. The human-computer interaction device can be integrated into the terminal device, for example, the touch sensor can be integrated with the display of the terminal device to be set as a touch display. The human-computer interaction device can also be used as an external device of the terminal device and communicated with the terminal device. For example, the keyboard and microphone can be communicated with the terminal device through the communication interface of the terminal device.
[0048] like Figure 2 As shown, a schematic diagram of a patient's time-series medical data is shown as an example; wherein the diagnosis results corresponding to the patient's three medical visits at three different times are disease 1, disease 1 and disease 2 respectively; the time interval between the first medical visit and the second medical visit is Δt 1 , the time interval between the second and third medical treatment behaviors is Δt 2 ; The cost categories of the first medical visit include western medicine, tests and others, and the cost items of the first medical visit include thyroid function tests, blood routine tests and tumor markers under the test category; the cost categories of the second medical visit include western medicine, tests, surgery and others, and the cost items of the second medical visit include total gastrectomy under the surgery category; the cost categories of the third medical visit include western medicine, tests and others, and the cost items of the third medical visit include metformin and reserpine under the western medicine category.
[0049] like Figure 3 As shown, a schematic diagram of the time-series medical data of three patients is shown as an example; wherein the first to fifth columns of the table are patient ID, medical treatment time, diagnosis result, cost category and cost item, respectively.
[0050] In the application, for any patient i, the time series medical data is represented in the form of a data set, which can be expressed as:
[0051]
[0052] Among them, <·> represents the set of multiple medical treatment data of patient i arranged in chronological order; {·} represents a medical treatment data, that is, the set of diagnosis results, cost categories and cost items of patient i's medical treatment behavior; represents the time of medical treatment for patient i’s jth medical treatment behavior, represents the diagnosis result of patient i’s jth medical treatment behavior, Represents the set of cost items of patient i’s j-th medical treatment behavior.
[0053] In the application, an association relationship can be established between various types of data (i.e., patient ID, medical treatment time, diagnosis results, cost categories, and cost items) in each patient's time-series medical data. The association relationship can be specifically a mapping relationship, which can exist in the form of an association relationship table. The association relationship table can specifically be a display lookup table (Look-Up-Table, LUT), or it can exist in the form of searching and outputting corresponding search results through other input data for query and call. By establishing an association relationship in advance, when it is necessary to query and call the time-series associated data of each patient, it is only necessary to query and call other types of data associated with it based on one type of data in the time-series medical data, thereby effectively saving the computing power resources and execution time of the terminal device.
[0054] S102, performing frequent item set mining, clustering and mapping on the expense items of the same type of diagnosis results and the same type of expense category in all time-series medical treatment data, so as to simplify the expense items of each expense category in each time-series medical treatment data into a frequent item set.
[0055] In the application, after obtaining the time series medical data of all patients, frequent item set mining, clustering and mapping are performed on the expense items of the same type of diagnosis results and the same type of expense category in the time series medical data of all patients, so as to simplify the expense items of each expense category in the time series medical data of each patient into a frequent item set.
[0056] like Figure 4 As shown, a schematic diagram of the time-series medical data of three patients after simplifying the cost items is shown as an example; wherein, the first to fifth columns of the table are patient ID, medical treatment time, diagnosis results, cost category and cost items, respectively. The cost items of patient 0 at three medical treatment times are simplified into frequent item sets 1, 2, and 1, respectively; the cost items of patient 1 at one medical treatment time are simplified into frequent item set 2, respectively; the cost items of patient 2 at one medical treatment time are simplified into frequent item set 1, respectively.
[0057] S103. Perform frequent pattern mining, clustering and mapping on all cost categories of the same type of diagnosis results at the same medical treatment time in each time series medical treatment data, so as to simplify all cost categories of the same type of diagnosis results at each medical treatment time in each time series medical treatment data into a frequent pattern.
[0058] In the application, after completing the simplification of the expense items of the same type of diagnosis results and the same type of expense category in the time series medical data of all patients, for each patient's medical behavior, the expense items of all expense categories of the medical behavior can be put together, and frequent pattern mining of frequent item set combinations can be performed, and then clustering and mapping can be performed to simplify each patient's medical behavior into a frequent pattern. The frequent pattern mining, clustering and mapping in step S103 are similar to the frequent item set mining, clustering and mapping in step S102, and will not be repeated here. The only difference is that the mining objects (i.e., original data) in the two steps are different. The mining object in step S102 is the expense items of the same type of diagnosis results and the same type of expense category in the time series medical data of each patient, and the mining object in step S103 is all types of expense categories of the same type of diagnosis results at the same medical time in the time series medical data of each patient.
[0059] like Figure 5 As shown, a schematic diagram of the time-series medical data of three patients after simplifying the spending categories is shown as an example; wherein, the first to fourth columns of the table are patient ID, medical time, diagnosis results and medical behavior patterns, respectively, the same spending category of patient 0 at two identical medical times is simplified to frequent pattern 1, and the spending category of patient 0 at another medical time is simplified to frequent pattern 1; the spending category of patient 1 at one medical time is simplified to frequent pattern 2; the spending category of patient 2 at one medical time is simplified to frequent pattern 1.
[0060] S104, taking the frequent pattern of each type of diagnosis result at all medical treatment times in each time series medical treatment data as a target time series medical treatment data.
[0061] In the application, after simplifying all types of cost categories of the same type of diagnosis results for each patient's medical treatment behavior into a frequent pattern, the frequent pattern of all types of diagnosis results of each patient's multiple medical treatment behaviors at different times can be represented as the target time series medical treatment data. The target time series medical treatment data is a data set composed of multiple frequent patterns corresponding to the patient's multiple medical treatment behaviors at different times arranged in chronological order.
[0062] like Figure 6As shown, a schematic diagram of the target time series medical data of three patients is shown as an example; wherein, the first to third columns of the table are patient ID, medical time and medical behavior, respectively, and the frequent pattern of each type of diagnosis result of patient 0 at two different medical times is expressed as medical behavior: gastric malignant tumor-frequent pattern 1, intraoperative radiotherapy for malignant tumor-frequent pattern 1; the frequent pattern of a type of diagnosis result of patient 1 at one medical time is expressed as medical behavior: gastric malignant tumor-frequent pattern 2; the frequent pattern of a type of diagnosis result of patient 2 at one medical time is expressed as medical behavior: gastric malignant tumor-frequent pattern 1.
[0063] S105. Perform time series association rule mining on each target time series medical treatment data to obtain the time series association rules between the frequent patterns of all types of diagnosis results in each target time series medical treatment data.
[0064] In the application, for each target time series medical treatment data, a sequence pattern mining algorithm such as prefixspan can be used to mine time series association rules to obtain the time series association rules between multiple frequent patterns of all types of diagnosis results in each target time series medical treatment data, that is, the time series association rules of the patient's multiple medical treatment behaviors. For example, the time series association rule between gastric malignant tumor-frequent pattern 1 and malignant tumor intraoperative radiotherapy-frequent pattern 1 is: the interval between the medical treatment times corresponding to gastric malignant tumor-frequent pattern 1 and malignant tumor intraoperative radiotherapy-frequent pattern 1 is 90 days.
[0065] In one embodiment, step S105 includes:
[0066] The prefixspan algorithm is used to mine time series association rules for the target time series medical treatment data of patients.
[0067] S106. According to each time series association rule, identify whether the medical treatment behavior of the corresponding patient is abnormal.
[0068] In the application, by comparing the association rules of each patient's multiple medical behaviors in time series with the association rules obtained based on normal medical behaviors, it is possible to identify whether each patient's medical behavior is abnormal. For example, assuming that the association rule between the normal gastric tumor pattern 1 and the malignant tumor intraoperative radiotherapy pattern 1 is: the interval between the medical treatment times corresponding to the gastric tumor pattern 1 and the malignant tumor intraoperative radiotherapy pattern 1 is 90 days; and if the difference between the interval between the medical treatment times corresponding to the patient's gastric tumor pattern 1 and the malignant tumor intraoperative radiotherapy pattern 1 and 90 days is not within the preset time range (for example, -5 days to +5 days), the patient's medical behavior can be considered abnormal.
[0069] like Figure 7As shown, in one embodiment, step S102 includes the following steps S201 to S204:
[0070] S201, performing frequent item set mining on expense items of the same type of diagnosis results and the same type of expense category in all time series medical treatment data to obtain all frequent item sets of the same type of diagnosis results and the same type of expense category.
[0071] In the application, for the same type of diagnosis results and expense items of the same type of expense category in the time series medical data of all patients, frequent item set mining can be performed using association rule mining algorithms such as Apriori to obtain all frequent item sets corresponding to the same type of diagnosis results and expense items of the same type of expense category in the time series medical data of all patients, for example, frequent item set 1 where the diagnosis result is gastric cancer, the expense category is western medicine, and the expense items include sodium chloride, oxaliplatin, and glucose; frequent item set 2 where the diagnosis result is gastric cancer, the expense category is western medicine, and the expense items include sodium chloride, glucose, and dexamethasone.
[0072] In one embodiment, step S201 includes:
[0073] According to the Apriori algorithm, frequent item sets are mined for the same type of diagnosis results and the same type of expense categories in all time series medical treatment data.
[0074] S202, clustering all the frequent item sets to obtain all cluster clusters corresponding to all the frequent item sets;
[0075] S203: Acquire the core frequent itemsets with the highest support in each cluster corresponding to all the frequent itemsets, and obtain all the core frequent itemsets of the same type of diagnosis results and the same type of cost categories.
[0076] In the application, after all frequent item sets are mined, they need to be clustered, because there are too many frequent item sets and some of them are highly similar. For example, in the frequent item set mining for the expense category of test fees, the expense items about blood phase analysis include the expense items for analyzing various blood cells, which causes the number of permutations and combinations of the mined frequent item sets to increase exponentially with the number of expense items. The differences between these frequent item sets do not bring more information. Therefore, the mined frequent item sets need to be clustered to replace multiple similar frequent item sets of each type with one of the core frequent item sets with the highest support. In this way, all core frequent item sets of the same type of diagnosis results and the same type of expense category in the time series medical data of all patients can be obtained.
[0077] S204: simplify the expense items of each expense category of the same type of diagnosis results and the same type of expense category into the core frequent item set with the highest matching degree therewith.
[0078] In the application, after clustering to obtain all core frequent item sets, each original data (that is, the cost items of each cost category of the same type of diagnosis results and the same type of cost category in the time series medical data of all patients) is compared with all core frequent item sets, and the core frequent item set closest to each original data is selected to represent the original data.
[0079] like Figure 8 As shown, in one embodiment, step S202 includes the following steps S301 to S303:
[0080] Step S301: Encode all the frequent item sets.
[0081] In the application, all frequent item sets can be one-hot encoded. Each frequent item set corresponds to a row of codes. Each code indicates whether a specific cost item exists. Each frequent item set corresponds to a row of codes. In each row of codes, "1" indicates that the frequent item set corresponding to the row of codes has this cost item, and "0" indicates that the frequent item set corresponding to the row of codes does not have this cost item.
[0082] In one embodiment, step S301 includes:
[0083] All the frequent item sets are one-hot encoded, where 1 indicates that there is a corresponding cost item in the corresponding frequent item set, and 0 indicates that there is no corresponding cost item in the corresponding frequent item set.
[0084] Step S302: Obtain the similarity between every two frequent item sets in all the frequent item sets according to all the encoded frequent item sets.
[0085] In applications, after one-hot encoding all frequent item sets, the Jaccard distance can be used to define the similarity between any two frequent item sets. The Jaccard coefficient is also called the Jaccard similarity coefficient, which is used to compare the similarities and differences between finite sample sets. The larger the Jaccard coefficient value, the higher the similarity of the samples. The Jaccard coefficient is defined as the ratio of the size of the intersection of A and B to the size of the union of A and B given two sets A and B. The formula is as follows:
[0086]
[0087] In one embodiment, step S302 includes:
[0088] According to all the frequent item sets after one-hot encoding, the Jaccard coefficient between every two frequent item sets in all the frequent item sets is obtained.
[0089] Step S303: clustering all the frequent item sets according to the similarity between every two frequent item sets in all the frequent item sets to obtain a plurality of clusters corresponding to all the frequent item sets.
[0090] In the application, after obtaining the similarity between every two frequent item sets in all frequent item sets, the Kmeans algorithm can be used to cluster all frequent item sets. Kmeans is an unsupervised clustering algorithm. For a given sample set, the sample set is divided into K clusters according to the distance between samples, so that the points in the cluster are closely connected, and the distance between clusters is large enough. Then, the frequent item set with the highest support is selected from each cluster as the cluster core of the cluster, that is, the core frequent item set. After clustering, all frequent item sets have a total of K cluster cores. All original data are compared with these K cluster cores, and the cluster core closest to the original data is selected to represent the original data.
[0091] like Fig. 9 As shown, in one embodiment, step S204 includes the following steps S401 to S404:
[0092] Step S401, sorting all core frequent item sets of the same type of diagnosis results and the same type of cost category according to the size of the support;
[0093] Step S402: sort and match the same type of diagnosis results and the expense items of each expense category of the same type of expense category with all sorted core frequent item sets in sequence;
[0094] Step S403: If the cost items of any cost category contain all elements in any core frequent item set, simplify the cost items of any cost category into any core frequent item set;
[0095] Step S404: If the cost items of any cost category do not include any core frequent itemsets, the cost items of any cost category are not simplified.
[0096] In the application, all core frequent item sets can be arranged in descending order from high to low or ascending order from low to high in terms of support, and compared with the original data in turn. If a certain original data contains all elements in a certain frequent item set, the original data is simplified to the frequent item set, otherwise it continues to be compared with the next core frequent item set; finally, for the original data that cannot match any core frequent item set, the original data is represented as the expense category to which it belongs, indicating that the patient has expense items of this expense category during this medical treatment. At this point, the simplification of the same type of diagnosis results and the same type of expense category in the time series medical treatment data of all patients has been completed.
[0097] In one embodiment, after step S105, the method further includes:
[0098] Upload all time-series medical data, all frequent itemsets, all target time-series medical data, and all time-series association rules to the blockchain.
[0099] In the application, after obtaining all the time-series medical data, all frequent item sets, all target time-series medical data, and any data in all time-series association rules, these data can be uploaded to the blockchain according to actual needs, which can ensure its security and fairness and transparency to users. The terminal device can download these data from the blockchain to verify whether the data has been tampered with. The blockchain referred to in this example is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0100] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0101] The embodiment of the present application also provides a medical treatment behavior identification device, which is used to perform the steps in the medical treatment behavior identification method. The device can be a virtual appliance in a terminal device, which is run by a processor of the terminal device, or it can be the terminal device itself.
[0102] like Fig.10 As shown, the medical treatment behavior recognition device 100 provided in the embodiment of the present application includes:
[0103] The data acquisition unit 101 is used to acquire time-series medical treatment data of at least one patient, each time-series medical treatment data includes a patient's diagnosis result, cost category and cost item at all medical treatment times;
[0104] A frequent item set mining unit 102 is used to perform frequent item set mining, clustering and mapping on the expense items of the same type of diagnosis results and the same type of expense category in all time series medical treatment data, so as to simplify the expense items of each expense category in each time series medical treatment data into a frequent item set;
[0105] A frequent pattern mining unit 103 is used to perform frequent pattern mining, clustering and mapping on all cost categories of the same type of diagnosis results at the same medical treatment time in each time series medical treatment data, so as to simplify all cost categories of the same type of diagnosis results at each medical treatment time in each time series medical treatment data into a frequent pattern;
[0106] The data generating unit 104 is used to take the frequent pattern of each type of diagnosis results at all medical treatment times in each time series medical treatment data as a target time series medical treatment data;
[0107] The time series association rule mining unit 105 is used to mine the time series association rules for each target time series medical treatment data, and obtain the time series association rules between the frequent patterns of all types of diagnosis results in each target time series medical treatment data;
[0108] The medical treatment behavior identification unit 106 is used to identify whether the medical treatment behavior of the corresponding patient is abnormal according to each time series association rule.
[0109] In one embodiment, the medical treatment behavior recognition device further includes:
[0110] The communication unit is used to upload all time-series medical treatment data, all frequent item sets, all target time-series medical treatment data and all time-series association rules to the blockchain.
[0111] In application, each unit in the medical behavior identification device can be a software program unit, or can be implemented by different logic circuits integrated in the processor or independent physical components connected to the processor, or can be implemented by multiple distributed processors.
[0112] like Fig.11 As shown, the embodiment of the present application further provides a terminal device 200, including: at least one processor 201 ( Fig.11 Only one processor is shown in the figure), a memory 202, and a computer program 203 stored in the memory 202 and executable on at least one processor 201. When the processor 201 executes the computer program 203, the steps in the above-mentioned embodiments of the medical treatment behavior identification method are implemented.
[0113] In the application, the terminal device may include, but is not limited to, a processor and a memory. Fig.11 It is only an example of a terminal device and does not constitute a limitation on the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc. The input and output devices may also include the above-mentioned human-computer interaction devices as well as communication modules, display screens, etc.
[0114] In applications, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0115] In applications, the memory may be an internal storage unit of a terminal device in some embodiments, such as a hard disk or memory of the terminal device. In other embodiments, the memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. The memory may also include both an internal storage unit and an external storage device of the terminal device. The memory is used to store operating systems, applications, boot loaders, data, and other programs, such as program codes of computer programs. The memory may also be used to temporarily store data that has been output or is to be output.
[0116] In applications, the display screen can be a thin film transistor liquid crystal display (TFT-LCD), a liquid crystal display (LCD), an organic electroluminesence display (OLED), a quantum dot light emitting diode (QLED) display screen, a seven-segment or eight-segment digital tube, etc.
[0117] In applications, the communication module can provide communication solutions for network devices including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The communication module may include an antenna, and the antenna may have only one element or an antenna array including multiple elements. The communication module can receive electromagnetic waves through the antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive the signal to be sent from the processor, frequency modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna.
[0118] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0119] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0120] The embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned embodiments of the medical treatment behavior identification method can be implemented.
[0121] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device can implement the steps in each of the above-mentioned medical treatment behavior identification method embodiments.
[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the data acquisition end or client, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for identifying medical treatment behavior, characterized in that: include: Obtaining time-series medical treatment data of at least one patient, each time-series medical treatment data includes a patient's diagnosis result, cost category, and cost item at all medical treatment times; Frequent item set mining, clustering and mapping are performed on the expense items of the same type of diagnosis results and the same type of expense category in all time-series medical treatment data, so as to simplify the expense items of each expense category in each time-series medical treatment data into a frequent item set; Perform frequent pattern mining, clustering and mapping on all cost categories of the same type of diagnosis results at the same medical treatment time in each time series medical treatment data, so as to simplify all cost categories of the same type of diagnosis results at each medical treatment time in each time series medical treatment data into a frequent pattern; The frequent pattern of each type of diagnosis results at all medical treatment times in each time series medical treatment data is taken as a target time series medical treatment data; Mining time series association rules for each target time series medical treatment data to obtain the time series association rules between the frequent patterns of all types of diagnosis results in each target time series medical treatment data; According to each time series association rule, identify whether the corresponding patient's medical behavior is abnormal; The frequent item set mining, clustering and mapping of the expense items of the same type of diagnosis results and the same type of expense category in all time series medical treatment data includes: According to the Apriori algorithm, frequent item sets are mined for the same type of diagnosis results and the same type of expense categories in all time series medical treatment data.
2. The medical treatment behavior identification method according to claim 1, characterized in that: The frequent item set mining, clustering and mapping of the expense items of the same type of diagnosis results and the same type of expense category in all time series medical treatment data includes: Perform frequent item set mining on the expense items of the same type of diagnosis results and the same type of expense category in all time series medical treatment data to obtain all frequent item sets of the same type of diagnosis results and the same type of expense category; Clustering all the frequent item sets to obtain all clustering clusters corresponding to all the frequent item sets; Obtaining the core frequent item set with the highest support in each cluster corresponding to all the frequent item sets, and obtaining all the core frequent item sets of the same type of diagnosis results and the same type of cost category; The expense items of each expense category of the same type of diagnosis results and the same type of expense category are simplified into the core frequent item set with the highest matching degree therewith.
3. The medical treatment behavior identification method according to claim 2, characterized in that: The step of clustering all the frequent item sets to obtain all corresponding clusters includes: Encode all the frequent item sets; According to all the encoded frequent item sets, obtaining the similarity between every two frequent item sets in all the frequent item sets; According to the similarity between every two frequent item sets in all the frequent item sets, all the frequent item sets are clustered to obtain a plurality of clusters corresponding to all the frequent item sets.
4. The medical treatment behavior identification method according to claim 3, characterized in that: The encoding of all the frequent item sets comprises: Perform one-hot encoding on all the frequent item sets, where 1 indicates that there is a corresponding cost item in the corresponding frequent item set, and 0 indicates that there is no corresponding cost item in the corresponding frequent item set; The obtaining the similarity between every two frequent item sets in all the frequent item sets according to the encoded frequent item sets comprises: According to all the frequent item sets after one-hot encoding, obtaining the Jaccard coefficient between every two frequent item sets in all the frequent item sets; The clustering of all the frequent item sets according to the similarity between every two frequent item sets in all the frequent item sets to obtain a plurality of cluster clusters corresponding to all the frequent item sets includes: According to the Jaccard coefficient between every two frequent item sets in all the frequent item sets, the Kmeans algorithm is used to cluster all the frequent item sets to obtain a plurality of clusters corresponding to all the frequent item sets.
5. The medical treatment behavior identification method according to claim 2, characterized in that: The process of simplifying the expense items of each expense category of the same type of diagnosis results and the same type of expense category into the core frequent item set with the highest matching degree therewith comprises: Sorting all core frequent item sets of the same type of diagnosis results and the same type of cost categories according to the size of the support; Matching the same type of diagnosis results and the expense items of each expense category of the same type of expense category with all sorted core frequent item sets in sequence; If the cost items of any cost category contain all elements in any core frequent item set, simplify the cost items of any cost category into any core frequent item set; If the cost items of any cost category do not include any core frequent itemsets, the cost items of any cost category are not simplified.
6. The medical treatment behavior identification method according to claim 1, characterized in that: The performing time series association rule mining on the target time series medical treatment data includes: The prefixspan algorithm is used to mine time series association rules for the target time series medical treatment data of patients.
7. The method for identifying medical treatment behavior according to any one of claims 1 to 6, characterized in that: After mining time series association rules for each target time series medical treatment data and obtaining time series association rules between frequent patterns of all types of diagnosis results in each target time series medical treatment data, the method includes: Upload all time-series medical data, all frequent itemsets, all target time-series medical data, and all time-series association rules to the blockchain.
8. A device for identifying medical treatment behavior, characterized in that: include: A data acquisition unit, used to acquire time-series medical treatment data of at least one patient, each time-series medical treatment data including a patient's diagnosis result, expense category and expense item at all medical treatment times; A frequent item set mining unit is used to perform frequent item set mining, clustering and mapping on the expense items of the same type of diagnosis results and the same type of expense category in all time-series medical treatment data, so as to simplify the expense items of each expense category in each time-series medical treatment data into a frequent item set; A frequent pattern mining unit is used to perform frequent pattern mining, clustering and mapping on all cost categories of the same type of diagnosis results at the same medical treatment time in each time series medical treatment data, so as to simplify all cost categories of the same type of diagnosis results at each medical treatment time in each time series medical treatment data into a frequent pattern; A data generating unit, used for taking the frequent pattern of each type of diagnosis result at all medical treatment times in each time series medical treatment data as a target time series medical treatment data; A time series association rule mining unit is used to mine time series association rules for each target time series medical treatment data, and obtain the time series association rules between the frequent patterns of all types of diagnosis results in each target time series medical treatment data; A medical treatment behavior identification unit is used to identify whether the medical treatment behavior of the corresponding patient is abnormal according to each time series association rule; The frequent item set mining unit is specifically used to perform frequent item set mining on the expense items of the same type of diagnosis results and the same type of expense category in all time series medical treatment data according to the Apriori algorithm.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the medical treatment behavior identification method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the medical treatment behavior identification method as described in any one of claims 1 to 7 are implemented.
