Medical risk control rule generation method, device, equipment and storage medium
Through the combination of distributed sampling and approximate rule recognizer, Apriori and Eclat algorithms are used to generate medical risk control rules, which solves the problem of long calculation time of medical risk control models in the existing technology, achieves efficient rule generation, and is suitable for smart medical care. field.
Patent Information
- Application Number
- CN202010894626.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-08-31
AI Technical Summary
When generating rules, the existing medical risk control model takes too long to calculate due to the massive amount of medical data, fails to effectively utilize the big data AI algorithm, and the rule engine implemented on a single machine is inefficient.
The initial medical data is sampled through distributed deployed samplers, and candidate rules are generated using the approximate rule identifier and integrated rule identifier combined with the Apriori and Eclat algorithms, and the target medical risk control rules are obtained through integration and screening, reducing the calculation time.
In scenarios where massive medical data is input, the calculation time for generating medical risk control rules is significantly reduced, efficiency is improved, and it is suitable for the smart medical field to promote the construction of smart cities.
Smart Images

Figure CN111986036B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of platform security, and in particular to a medical risk control rule generation method, device, equipment and storage medium. Background Art
[0002] The increased control over funds by medical insurance management units at all levels has led to the emergence of a variety of risk control products, but most of these model products are stand-alone rule engines and do not effectively utilize big data AI algorithms.
[0003] The current risk control products all have anomaly recognition functions that can identify violations of rules, and the identification and definition of rules are completed in advance. Data mining can be used to automatically identify rules, and the process of identifying rules is usually run on a single machine.
[0004] Medical data is characterized by being diverse and large in volume. When massive amounts of medical data are input, the amount of computation required by existing risk control models increases exponentially, and the existing risk control models take too long to generate medical risk control rules. Summary of the invention
[0005] The present invention provides a medical risk control rule generation method, device, equipment and storage medium, which are used to reduce the calculation time for generating medical risk control rules in a scenario where massive medical data is input.
[0006] A first aspect of an embodiment of the present invention provides a method for generating medical risk control rules, comprising: obtaining initial medical data, wherein the initial medical data is used to indicate various types of medical data; sampling the initial medical data respectively through multiple samplers to obtain multiple sampled medical data, wherein the multiple samplers are deployed in a distributed manner; identifying the multiple sampled medical data through multiple approximate rule identifiers to obtain multiple candidate medical risk control rules for each approximate rule identifier, wherein the approximate rule identifier is used to identify the sampled medical data transmitted by the connected samplers; merging and screening the multiple candidate medical risk control rules of each approximate rule identifier through an integrated rule identifier to obtain multiple target medical risk control rules.
[0007] Optionally, in a first implementation method of the first aspect of an embodiment of the present invention, the multiple sampled medical data are identified by multiple approximate rule identifiers to obtain multiple candidate medical risk control rules for each approximate rule identifier, and the approximate rule identifier is used to identify the sampled medical data transmitted by the connected samplers, including: calling multiple approximate rule identifiers to perform rule identification on the sampled medical data transmitted by the connected samplers according to the Apriori algorithm to obtain multiple initial association rules for each approximate rule identifier; calling the multiple approximate rule identifiers to iteratively calculate the corresponding multiple initial association rules according to the Eclat algorithm to obtain multiple candidate medical risk control rules for each approximate rule identifier.
[0008] Optionally, in a second implementation method of the first aspect of the embodiment of the present invention, calling multiple approximate rule identifiers to perform rule recognition on the sampled medical data transmitted by the connected samplers according to the Apriori algorithm to obtain multiple initial association rules for each approximate rule identifier includes: inputting the multiple sampled medical data into the correspondingly connected multiple approximate rule identifiers respectively; calling each approximate rule identifier and a preset Apriori algorithm to recognize the received sampled medical data, and generating multiple initial association rules for each approximate rule identifier.
[0009] Optionally, in a third implementation method of the first aspect of the embodiment of the present invention, the calling of each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data to generate multiple initial association rules for each approximate rule identifier includes: calling a target approximate rule identifier to search for multiple data item sets in the received sampled medical data; obtaining a preset minimum support; screening the multiple data item sets according to the minimum support to obtain multiple frequent item sets; generating multiple target association rules identified by the target approximate rule identifier based on the multiple frequent item sets and the preset minimum confidence; obtaining multiple other association rules identified by other approximate rule identifiers, and generating multiple initial association rules for each approximate rule identifier based on the multiple target association rules and the multiple other association rules.
[0010] Optionally, in a fourth implementation manner of the first aspect of the embodiment of the present invention, calling the multiple approximate rule identifiers to perform iterative calculations on the corresponding multiple initial association rules according to the Eclat algorithm to obtain multiple candidate medical risk control rules for each approximate rule identifier, including: calling each approximate rule identifier to sort the corresponding multiple initial association rules according to the Eclat algorithm to obtain a sorted association rule set corresponding to each approximate rule identifier; performing pruning operations on the rules with the same prefix in the sorted association rule set corresponding to each approximate rule identifier to obtain a pruned association rule set corresponding to each approximate rule identifier, wherein the pruned association rule set includes multiple candidate rules; stopping rule identification of the candidate rules under a single pre-index in the pruned association rule set corresponding to each approximate rule identifier to generate multiple candidate medical risk control rules corresponding to each approximate rule identifier, wherein the pre-index is used to indicate the source of the candidate rules.
[0011] Optionally, in a fifth implementation manner of the first aspect of the embodiment of the present invention, the multiple candidate medical risk control rules of each approximate rule identifier are merged and screened through an integrated rule identifier to obtain multiple target medical risk control rules, including: calling the integrated rule identifier to collect multiple candidate medical risk control rules corresponding to each approximate rule identifier to obtain a candidate medical risk control rule set; performing a deduplication operation on the candidate medical risk control rule set to obtain a deduplicated candidate medical risk control rule set; performing a merging operation on the deduplicated candidate medical risk control rule set to obtain a merged candidate medical risk control rule set; and screening the merged candidate medical risk control rule set according to process parameters to obtain multiple target medical risk control rules, wherein the process parameters include the total number of items and the support of each approximate rule identifier.
[0012] Optionally, in a sixth implementation manner of the first aspect of the embodiment of the present invention, after the multiple candidate medical risk control rules of each approximate rule identifier are merged and screened by the integrated rule identifier to obtain multiple target medical risk control rules, the medical risk control rule generation method also includes: obtaining data to be identified, and calling the multiple target medical risk control rules to identify the data to be identified to obtain abnormal data, wherein the abnormal data is data that does not comply with the multiple target rules.
[0013] The second aspect of an embodiment of the present invention provides a medical risk control rule generation device, including: a data acquisition module, used to acquire initial medical data, the initial medical data is used to indicate various types of medical data; a data sampling module, used to sample the initial medical data through multiple samplers respectively, to obtain multiple sampled medical data, the multiple samplers are distributedly deployed; a rule identification module, used to identify the multiple sampled medical data through multiple approximate rule identifiers, to obtain multiple candidate medical risk control rules for each approximate rule identifier, the approximate rule identifier is used to identify the sampled medical data transmitted by the connected samplers; a rule screening module, used to merge and screen the multiple candidate medical risk control rules of each approximate rule identifier through an integrated rule identifier, to obtain multiple target medical risk control rules.
[0014] Optionally, in a first implementation method of the second aspect of the embodiment of the present invention, the rule identification module includes: a rule identification unit, used to call multiple approximate rule identifiers to perform rule identification on the sampled medical data transmitted by the connected sampler according to the Apriori algorithm, and obtain multiple initial association rules for each approximate rule identifier; an iterative calculation unit, used to call the multiple approximate rule identifiers to perform iterative calculations on the corresponding multiple initial association rules according to the Eclat algorithm, and obtain multiple candidate medical risk control rules for each approximate rule identifier.
[0015] Optionally, in a second implementation of the second aspect of the embodiment of the present invention, the rule identification unit includes: an input subunit, used to input multiple sampled medical data into multiple correspondingly connected approximate rule identifiers; a generation subunit, used to call each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data, and generate multiple initial association rules for each approximate rule identifier.
[0016] Optionally, in a third implementation manner of the second aspect of the embodiment of the present invention, the generation subunit is specifically used to: call the target approximate rule identifier to search for multiple data item sets in the received sampled medical data; obtain a preset minimum support; filter the multiple data item sets according to the minimum support to obtain multiple frequent item sets; generate multiple target association rules identified by the target approximate rule identifier based on the multiple frequent item sets and the preset minimum confidence; obtain multiple other association rules identified by other approximate rule identifiers, and generate multiple initial association rules for each approximate rule identifier based on the multiple target association rules and the multiple other association rules.
[0017] Optionally, in a fourth implementation manner of the second aspect of the embodiment of the present invention, the iterative calculation unit is specifically used to: call each approximate rule identifier to sort the corresponding multiple initial association rules according to the Eclat algorithm to obtain a sorted association rule set corresponding to each approximate rule identifier; perform pruning operations on the rules with the same prefix in the sorted association rule set corresponding to each approximate rule identifier to obtain a pruned association rule set corresponding to each approximate rule identifier, wherein the pruned association rule set includes multiple candidate rules; stop rule identification for the candidate rules under a single preceding index in the pruned association rule set corresponding to each approximate rule identifier, and generate multiple candidate medical risk control rules corresponding to each approximate rule identifier, wherein the preceding index is used to indicate the source of the candidate rules.
[0018] Optionally, in a fifth implementation manner of the second aspect of the embodiment of the present invention, the rule screening module is specifically used to: call the integrated rule identifier to collect multiple candidate medical risk control rules corresponding to each approximate rule identifier to obtain a candidate medical risk control rule set; perform a deduplication operation on the candidate medical risk control rule set to obtain a deduplicated candidate medical risk control rule set; perform a merge operation on the deduplicated candidate medical risk control rule set to obtain a merged candidate medical risk control rule set; screen the merged candidate medical risk control rule set according to process parameters to obtain multiple target medical risk control rules, and the process parameters include the total number of items and the support of each approximate rule identifier.
[0019] Optionally, in a sixth implementation manner of the second aspect of the embodiment of the present invention, the medical risk control rule generating device also includes: an abnormality identification module, used to obtain the data to be identified, and call the multiple target medical risk control rules to identify the data to be identified to obtain abnormal data, and the abnormal data is data that does not comply with the multiple target rules.
[0020] A third aspect of an embodiment of the present invention provides a medical risk control rule generation device, a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected through lines; the at least one processor calls the instructions in the memory so that the medical risk control rule generation device executes the above-mentioned medical risk control rule generation method.
[0021] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, which stores instructions. When the instructions are executed by a processor, the steps of the medical risk control rule generation method described in any of the above embodiments are implemented.
[0022] In the technical solution provided by the embodiment of the present invention, initial medical data is obtained, and the initial medical data is used to indicate various types of medical data; the initial medical data is sampled by multiple samplers to obtain multiple sampled medical data, and the multiple samplers are distributedly deployed; the multiple sampled medical data are identified by multiple approximate rule identifiers to obtain multiple candidate medical risk control rules for each approximate rule identifier, and the approximate rule identifier is used to identify the sampled medical data transmitted by the connected samplers; the multiple candidate medical risk control rules of each approximate rule identifier are merged and screened by the integrated rule identifier to obtain multiple target medical risk control rules. The embodiment of the present invention, through the combination of sampling and distributed computing, obtains highly approximate rules in a short time, and reduces the computing time for generating medical risk control rules in the scenario of inputting massive medical data. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of an embodiment of a method for generating medical risk control rules in an embodiment of the present invention;
[0024] Figure 2 This is another schematic diagram of an embodiment of the method for generating medical risk control rules in an embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram of an embodiment of a medical risk control rule generation device in an embodiment of the present invention;
[0026] Figure 4 This is a schematic diagram of another embodiment of the medical risk control rule generation device in an embodiment of the present invention;
[0027] Figure 5 Schematic diagram of an embodiment of a medical risk control rule generating device in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The present invention provides a medical risk control rule generation method, device, equipment and storage medium, which are used to reduce the calculation time for generating medical risk control rules in a scenario where massive medical data is input.
[0029] In order to enable those skilled in the art to better understand the solutions of the present invention, the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0030] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] See also Figure 1 , a flowchart of a method for generating medical risk control rules provided by an embodiment of the present invention specifically includes:
[0032] 101. Acquire initial medical data, where the initial medical data is used to indicate various types of medical data.
[0033] The server obtains initial medical data, where the initial medical data is used to indicate various types of medical data.
[0034] Among them, the initial medical data involves different types. For example, the initial medical data can be divided into two categories: medical-related data and non-medical-related data. Among them, medical-related data include standard medical data and special medical data. Standard medical data include: symptoms, disease sites, organ names, surgery names, drug names, treatment plans, precautions, etc. Special medical data include user name, user age, user's medical history and user's physical signs data, etc. Non-medical-related data include: user's medical insurance account number, user's medical insurance balance, user's medical insurance payment level and user's medical insurance payment years, etc., which are not limited here.
[0035] It is understandable that the execution subject of the present invention may be a medical risk control rule generating device or a server, which is not limited here. The embodiment of the present invention is described by taking the server as the execution subject as an example.
[0036] 102. The initial medical data is sampled respectively by multiple samplers to obtain multiple sampled medical data, and the multiple samplers are deployed in a distributed manner.
[0037] The server samples the initial medical data through multiple samplers respectively to obtain multiple sampled medical data, and the multiple samplers are deployed in a distributed manner.
[0038] The samplers are deployed on different computing nodes, and the medical data calculated on each computing node is different. It should be noted that the sampler adopts a random sampling algorithm without replacement.
[0039] 103. Identify multiple sampled medical data using multiple approximate rule identifiers to obtain multiple candidate medical risk control rules for each approximate rule identifier, where the approximate rule identifier is used to identify the sampled medical data transmitted by the connected samplers.
[0040] Specifically, the server calls multiple approximate rule identifiers to perform rule identification on the sampled medical data transmitted by the connected samplers according to the Apriori algorithm, and obtains multiple initial association rules for each approximate rule identifier; the server calls multiple approximate rule identifiers to perform iterative calculations on the corresponding multiple initial association rules according to the Eclat algorithm, and obtains multiple candidate medical risk control rules for each approximate rule identifier.
[0041] 104. Multiple candidate medical risk control rules of each approximate rule identifier are merged and screened by integrating the rule identifier to obtain multiple target medical risk control rules.
[0042] Specifically, the server calls the integrated rule identifier to collect multiple candidate medical risk control rules corresponding to each approximate rule identifier to obtain a candidate medical risk control rule set; the server deduplicates the candidate medical risk control rule set to obtain a deduplicated candidate medical risk control rule set; the server merges the deduplicated candidate medical risk control rule set to obtain a merged candidate medical risk control rule set; the server screens the merged candidate medical risk control rule set according to process parameters to obtain multiple target medical risk control rules, and the process parameters include the total number of items and the support of each approximate rule identifier.
[0043] The embodiment of the present invention combines sampling and distributed computing to obtain highly approximate rules in a short time, and reduces the computing time for generating medical risk control rules in the scenario of inputting massive medical data. In addition, this solution can be applied to the field of smart medical care, thereby promoting the construction of smart cities.
[0044] See also Figure 2 , another flow chart of the medical risk control rule generation method provided by an embodiment of the present invention specifically includes:
[0045] 201. Acquire initial medical data, where the initial medical data is used to indicate various types of medical data.
[0046] The server obtains initial medical data, which is used to indicate various types of medical data. The initial medical data involves different types. For example, the initial medical data can be divided into two categories: medical-related data and non-medical-related data. Medical-related data includes standard medical data and special medical data. Standard medical data includes symptoms, disease sites, organ names, surgery names, drug names, treatment plans, precautions, etc. Special medical data includes user name, user age, user medical history, and user physical sign data. Non-medical-related data includes user medical insurance account number, user medical insurance balance, user medical insurance payment level, and user medical insurance payment years, etc. The specific details are not limited here.
[0047] It is understandable that the execution subject of the present invention may be a medical risk control rule generating device or a server, which is not limited here. The embodiment of the present invention is described by taking the server as the execution subject as an example.
[0048] 202. The initial medical data is sampled respectively by multiple samplers to obtain multiple sampled medical data, and the multiple samplers are deployed in a distributed manner.
[0049] The server samples the initial medical data through multiple samplers respectively to obtain multiple sampled medical data, and the multiple samplers are deployed in a distributed manner.
[0050] The samplers are deployed on different computing nodes, and the medical data calculated on each computing node is different. It should be noted that the sampler adopts a random sampling algorithm without replacement.
[0051] 203. Call multiple approximate rule identifiers to perform rule identification on the sampled medical data transmitted by the connected samplers according to the Apriori algorithm, and obtain multiple initial association rules for each approximate rule identifier.
[0052] Specifically, the server inputs multiple sampled medical data into multiple correspondingly connected approximate rule identifiers respectively; the server calls each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data, and generates multiple initial association rules for each approximate rule identifier.
[0053] Optionally, the server calls each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data, and generates multiple initial association rules for each approximate rule identifier, specifically including:
[0054] (1) calling a target approximate rule identifier to search for multiple data item sets in the received sampled medical data;
[0055] (2) Obtaining the preset minimum support;
[0056] (3) Filter multiple data item sets according to the minimum support to obtain multiple frequent item sets;
[0057] (4) generating multiple target association rules identified by the target approximate rule identifier based on multiple frequent item sets and preset minimum confidence levels;
[0058] (5) Acquire multiple other association rules identified by other approximate rule identifiers, and generate multiple initial association rules for each approximate rule identifier based on the multiple target association rules and the multiple other association rules.
[0059] It should be noted that all data item sets with a support greater than or equal to a preset minimum support are determined as frequent item sets, and the initial association rule is a strong association rule.
[0060] For example, the sample medical data D includes:
[0061] TID Project Portfolio 1 Cirrhosis, hepatitis, hepatitis B, hepatitis A 2 Cirrhosis, hepatitis, hepatitis B 3 Hepatitis B, Hepatitis A 4 Cirrhosis, hepatitis, liver cancer
[0062] Assuming that the minimum support is 50% and the minimum confidence is 70%, the specific recognition process of the rule is as follows:
[0063] (1) Generate candidate frequent 1-item set C1 = {{liver cirrhosis}, {hepatitis}, {hepatitis B}, {liver cancer}, {hepatitis A}}. (2) Scan the sampled medical data D and calculate the support of each item set in C1 in D. From the sampled medical data D, it can be concluded that the support number of each item set is 3, 3, 3, 1, 2 respectively, and the total number of item sets in the sampled medical data D is 4. Therefore, it can be concluded that the support of each item set in C1 is 75%, 75%, 75%, 25%, 50% respectively. According to the minimum support of 50%, it can be concluded that the frequent 1-item set L1 = {{liver cirrhosis}, {hepatitis}, {hepatitis B}, {hepatitis A}}. (3) Generate candidate frequent 2-item set C2 = {{liver cirrhosis, hepatitis}, {liver cirrhosis, hepatitis B}, {liver cirrhosis, hepatitis A}, {hepatitis, hepatitis B}, {hepatitis, hepatitis A}, {hepatitis B, hepatitis A}} based on L1. (4) Scan the sampled medical data D and calculate the support of each item set in C2 in D. From the sampled medical data D, it can be concluded that the support of each item set is 3, 2, 1, 2, 1, 2, and the total number of item sets in the sampled medical data D is 4. Therefore, it can be concluded that the support of each item set in C2 is 75%, 50%, 25%, 50%, 25%, and 50%. According to the minimum support of 50%, it can be concluded that the frequent 2-item set L2 = {{liver cirrhosis, hepatitis}, {liver cirrhosis, hepatitis B}, {hepatitis, hepatitis B}, {hepatitis B, hepatitis A}}. (5) Generate candidate frequent 3-item set C3 = {{liver cirrhosis, hepatitis, hepatitis B}, {liver cirrhosis, hepatitis, hepatitis A}, {liver cirrhosis, hepatitis B, hepatitis A}, {hepatitis, hepatitis B, hepatitis A}} according to L2. Since a subset {hepatitis, hepatitis A} in the item set {liver cirrhosis, hepatitis, hepatitis A} in C3 does not exist in L2, it can be removed; similarly, the item sets {liver cirrhosis, hepatitis B, hepatitis A} and {hepatitis, hepatitis B, hepatitis A} can also be removed. Therefore, C3 = {liver cirrhosis, hepatitis, hepatitis B}. (6) Scan the sampled medical data D and calculate the support of each item set in C3 in D. From the sampled medical data D, it can be concluded that the support number of each item set is 2, and the total number of item sets in the sampled medical data D is 4. Therefore, it can be concluded that the support of each item set in C2 is 50%; according to the minimum support of 50%, it can be concluded that the frequent 3-item set L3 = {{liver cirrhosis, hepatitis, hepatitis B}}. (7) L = L1 ∪ L2 ∪ L3 = {{liver cirrhosis}, {hepatitis}, {hepatitis B}, {hepatitis A}, {liver cirrhosis, hepatitis}, {liver cirrhosis, hepatitis B}, {hepatitis, hepatitis B}, {hepatitis B, hepatitis A}, {liver cirrhosis, hepatitis, hepatitis B}}.(8) Consider only the item sets with item set length greater than 1, for example, {liver cirrhosis, hepatitis, hepatitis B}, and all its non-proper subsets {liver cirrhosis}, {hepatitis}, {hepatitis B}, {liver cirrhosis, hepatitis}, {liver cirrhosis, hepatitis B}, {hepatitis, hepatitis B}, and calculate the confidence of the association rules {liver cirrhosis} -> {hepatitis, hepatitis B}, {hepatitis} -> {liver cirrhosis, hepatitis B}, {hepatitis B} -> {liver cirrhosis, hepatitis}, {liver cirrhosis, hepatitis} -> {hepatitis B}, {liver cirrhosis, hepatitis B} -> {hepatitis}, {hepatitis, hepatitis B} -> {liver cirrhosis}, and the values are 67%, 67%, 67%, 67%, 100%, 100% respectively. Since the minimum confidence is 70%, it can be obtained that {liver cirrhosis, hepatitis B} -> {hepatitis}, {hepatitis, hepatitis B} -> {liver cirrhosis} are frequent association rules. That is to say, if cirrhosis and hepatitis B occur at the same time, hepatitis will definitely occur, and if hepatitis and hepatitis B occur at the same time, cirrhosis will also occur.
[0064] 204. Call multiple approximate rule identifiers to perform iterative calculations on the corresponding multiple initial association rules according to the Eclat algorithm, and obtain multiple candidate medical risk control rules for each approximate rule identifier.
[0065] Specifically, the server calls each approximate rule identifier to sort the corresponding multiple initial association rules according to the Eclat algorithm to obtain a sorted association rule set corresponding to each approximate rule identifier; the server performs pruning operations on the rules with the same prefix in the sorted association rule set corresponding to each approximate rule identifier to obtain a pruned association rule set corresponding to each approximate rule identifier, and the pruned association rule set includes multiple candidate rules; the server stops rule identification for the candidate rules under a single pre-index in the pruned association rule set corresponding to each approximate rule identifier, and generates multiple candidate medical risk control rules corresponding to each approximate rule identifier, and the pre-index is used to indicate the source of the candidate rules.
[0066] This embodiment reduces the number of generated rule candidate sets through pruning operations, thereby speeding up the output of the recognizer.
[0067] It should be noted that the source usually refers to the document number, serial number, etc., which represents the identified case number. For the identified rules under the same case, further expansion is restricted. For example, for rule expansion, if the expanded items are all under the same document, the expansion is stopped. By limiting the expansion direction, the amount of calculation is further reduced.
[0068] 205. Multiple candidate medical risk control rules of each approximate rule identifier are merged and screened by integrating the rule identifier to obtain multiple target medical risk control rules.
[0069] Specifically, the server calls the integrated rule identifier to collect multiple candidate medical risk control rules corresponding to each approximate rule identifier to obtain a candidate medical risk control rule set; the server deduplicates the candidate medical risk control rule set to obtain a deduplicated candidate medical risk control rule set; the server merges the deduplicated candidate medical risk control rule set to obtain a merged candidate medical risk control rule set; the server screens the merged candidate medical risk control rule set according to process parameters to obtain multiple target medical risk control rules, and the process parameters include the total number of items and the support of each approximate rule identifier.
[0070] 206. Obtain the data to be identified, and call multiple target medical risk control rules to identify the data to be identified, and obtain abnormal data, which is data that does not comply with multiple target rules.
[0071] The server obtains the data to be identified, and calls multiple target medical risk control rules to identify the data to be identified, and obtains abnormal data, which is data that does not conform to multiple target rules.
[0072] The embodiment of the present invention combines sampling and distributed computing to obtain highly approximate rules in a short time, and reduces the computing time for generating medical risk control rules in the scenario of inputting massive medical data. In addition, this solution can be applied to the field of smart medical care, thereby promoting the construction of smart cities.
[0073] The above describes the medical risk control rule generation method in the embodiment of the present invention. The following describes the medical risk control rule generation device in the embodiment of the present invention. Figure 3 , an embodiment of the medical risk control rule generation device in the embodiment of the present invention includes:
[0074] A data acquisition module 301 is used to acquire initial medical data, where the initial medical data is used to indicate various types of medical data;
[0075] A data sampling module 302 is used to sample the initial medical data through a plurality of samplers to obtain a plurality of sampled medical data, wherein the plurality of samplers are deployed in a distributed manner;
[0076] A rule identification module 303 is used to identify the plurality of sampled medical data through a plurality of approximate rule identifiers to obtain a plurality of candidate medical risk control rules for each approximate rule identifier, wherein the approximate rule identifier is used to identify the sampled medical data transmitted by the connected sampler;
[0077] The rule screening module 304 is used to merge and screen the multiple candidate medical risk control rules of each approximate rule identifier through an integrated rule identifier to obtain multiple target medical risk control rules.
[0078] The embodiment of the present invention combines sampling and distributed computing to obtain highly approximate rules in a short time, and reduces the computing time for generating medical risk control rules in the scenario of inputting massive medical data. In addition, this solution can be applied to the field of smart medical care, thereby promoting the construction of smart cities.
[0079] See also Figure 4 Another embodiment of the medical risk control rule generation device in the embodiment of the present invention includes:
[0080] A data acquisition module 301 is used to acquire initial medical data, where the initial medical data is used to indicate various types of medical data;
[0081] A data sampling module 302 is used to sample the initial medical data through a plurality of samplers to obtain a plurality of sampled medical data, wherein the plurality of samplers are deployed in a distributed manner;
[0082] A rule identification module 303 is used to identify the plurality of sampled medical data through a plurality of approximate rule identifiers to obtain a plurality of candidate medical risk control rules for each approximate rule identifier, wherein the approximate rule identifier is used to identify the sampled medical data transmitted by the connected sampler;
[0083] The rule screening module 304 is used to merge and screen the multiple candidate medical risk control rules of each approximate rule identifier through an integrated rule identifier to obtain multiple target medical risk control rules.
[0084] Optionally, the rule identification module 303 includes:
[0085] A rule identification unit 3031 is used to call multiple approximate rule identifiers to perform rule identification on the sampled medical data transmitted by the connected samplers according to the Apriori algorithm, and obtain multiple initial association rules for each approximate rule identifier;
[0086] The iterative calculation unit 3032 is used to call the multiple approximate rule identifiers to perform iterative calculations on the corresponding multiple initial association rules according to the Eclat algorithm, so as to obtain multiple candidate medical risk control rules for each approximate rule identifier.
[0087] Optionally, the rule identification unit 3031 includes:
[0088] An input subunit 30311 is used to input a plurality of sampled medical data into a plurality of correspondingly connected approximate rule identifiers respectively;
[0089] The generating subunit 30312 is used to call each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data, and generate multiple initial association rules for each approximate rule identifier.
[0090] Optionally, the generating subunit 30312 is specifically used for:
[0091] Call a target approximate rule identifier to search for multiple data item sets in the received sampled medical data; obtain a preset minimum support; filter the multiple data item sets according to the minimum support to obtain multiple frequent item sets; generate multiple target association rules identified by the target approximate rule identifier based on the multiple frequent item sets and the preset minimum confidence; obtain multiple other association rules identified by other approximate rule identifiers, and generate multiple initial association rules for each approximate rule identifier based on the multiple target association rules and the multiple other association rules.
[0092] Optionally, the iterative calculation unit 3032 is specifically used for:
[0093] Call each approximate rule identifier to sort the corresponding multiple initial association rules according to the Eclat algorithm to obtain a sorted association rule set corresponding to each approximate rule identifier; perform pruning operations on the rules with the same prefix in the sorted association rule set corresponding to each approximate rule identifier to obtain a pruned association rule set corresponding to each approximate rule identifier, wherein the pruned association rule set includes multiple candidate rules; stop rule identification for the candidate rules under a single pre-index in the pruned association rule set corresponding to each approximate rule identifier to generate multiple candidate medical risk control rules corresponding to each approximate rule identifier, wherein the pre-index is used to indicate the source of the candidate rules.
[0094] Optionally, the rule screening module 304 is specifically used for:
[0095] An integrated rule identifier is called to collect multiple candidate medical risk control rules corresponding to each approximate rule identifier to obtain a candidate medical risk control rule set; a deduplication operation is performed on the candidate medical risk control rule set to obtain a deduplicated candidate medical risk control rule set; a merging operation is performed on the deduplicated candidate medical risk control rule set to obtain a merged candidate medical risk control rule set; the merged candidate medical risk control rule set is screened according to process parameters to obtain multiple target medical risk control rules, and the process parameters include the total number of items and the support of each approximate rule identifier.
[0096] Optionally, the medical risk control rule generating device further includes:
[0097] The abnormal identification module 305 is used to obtain the data to be identified, and call the multiple target medical risk control rules to identify the data to be identified to obtain abnormal data, which is data that does not comply with the multiple target rules.
[0098] The embodiment of the present invention combines sampling and distributed computing to obtain highly approximate rules in a short time, and reduces the computing time for generating medical risk control rules in the scenario of inputting massive medical data. In addition, this solution can be applied to the field of smart medical care, thereby promoting the construction of smart cities.
[0099] above Figure 3 to Figure 4 The medical risk control rule generating device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The medical risk control rule generating device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0100] Figure 5 : is a structural schematic diagram of a medical risk control rule generation device provided by an embodiment of the present invention. The medical risk control rule generation device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the medical risk control rule generation device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the medical risk control rule generation device 500.
[0101] The medical risk control rule generating device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 5 The structure of the medical risk control rule generating device shown does not constitute a limitation on the medical risk control rule generating device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0102] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the medical risk control rule generation method.
[0103] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0104] 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 technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0105] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those 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 thereof may be replaced by equivalents. However, these 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 invention.
Claims
1. A method for generating medical risk control rules, characterized in that: include: Acquiring initial medical data, where the initial medical data is used to indicate various types of medical data; The initial medical data is sampled by a plurality of samplers respectively to obtain a plurality of sampled medical data, wherein the plurality of samplers are deployed in a distributed manner; Inputting a plurality of sampled medical data into a plurality of correspondingly connected approximate rule identifiers respectively; Calling each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data, and generating a plurality of initial association rules for each approximate rule identifier; Calling each approximate rule identifier to sort the corresponding multiple initial association rules according to the Eclat algorithm to obtain a sorted association rule set corresponding to each approximate rule identifier; Performing a pruning operation on the rules with the same prefix in the sorted association rule set corresponding to each approximate rule identifier to obtain a pruned association rule set corresponding to each approximate rule identifier, wherein the pruned association rule set includes a plurality of candidate rules; Stop rule identification of candidate rules under a single pre-index in the pruned association rule set corresponding to each approximate rule identifier, and generate multiple candidate medical risk control rules corresponding to each approximate rule identifier, wherein the pre-index is used to indicate the source of the candidate rules; The multiple candidate medical risk control rules of each approximate rule identifier are merged and screened through an integrated rule identifier to obtain multiple target medical risk control rules.
2. The medical risk control rule generation method according to claim 1, characterized in that: The calling of each approximate rule identifier and the preset Apriori algorithm to identify the received sampled medical data and generate multiple initial association rules for each approximate rule identifier includes: calling a target approximate rule identifier to search for multiple data item sets in the received sampled medical data; Get the preset minimum support; Screening the multiple data item sets according to the minimum support to obtain multiple frequent item sets; Generate a plurality of target association rules identified by a target approximate rule identifier according to the plurality of frequent item sets and a preset minimum confidence level; A plurality of other association rules identified by other approximate rule identifiers are obtained, and a plurality of initial association rules for each approximate rule identifier are generated according to the plurality of target association rules and the plurality of other association rules.
3. The method for generating medical risk control rules according to claim 1, characterized in that: The integrated rule identifier is used to merge and screen the multiple candidate medical risk control rules of each approximate rule identifier to obtain multiple target medical risk control rules, including: Calling the integrated rule identifier to collect multiple candidate medical risk control rules corresponding to each approximate rule identifier to obtain a candidate medical risk control rule set; Performing a deduplication operation on the candidate medical risk control rule set to obtain a deduplicated candidate medical risk control rule set; Performing a merging operation on the candidate medical risk control rule sets after deduplication to obtain a merged candidate medical risk control rule set; The merged candidate medical risk control rule set is screened according to process parameters to obtain multiple target medical risk control rules, wherein the process parameters include the total number of items and the support of each approximate rule identifier.
4. The method for generating medical risk control rules according to any one of claims 1 to 3, characterized in that: After the integrated rule identifier is used to merge and screen the multiple candidate medical risk control rules of each approximate rule identifier to obtain multiple target medical risk control rules, the medical risk control rule generation method further includes: The data to be identified is obtained, and the multiple target medical risk control rules are called to identify the data to be identified to obtain abnormal data, where the abnormal data is data that does not conform to the multiple target rules.
5. A medical risk control rule generation device, characterized in that: include: A data acquisition module, used for acquiring initial medical data, wherein the initial medical data is used for indicating various types of medical data; A data sampling module, used for sampling the initial medical data through a plurality of samplers to obtain a plurality of sampled medical data, wherein the plurality of samplers are deployed in a distributed manner; A rule identification module is used to input multiple sampled medical data into multiple correspondingly connected approximate rule identifiers respectively; call each approximate rule identifier and a preset Apriori algorithm to identify the received sampled medical data, and generate multiple initial association rules for each approximate rule identifier; call each approximate rule identifier to sort the corresponding multiple initial association rules according to the Eclat algorithm, and obtain a sorted association rule set corresponding to each approximate rule identifier; perform pruning operations on the rules with the same prefix in the sorted association rule set corresponding to each approximate rule identifier, and obtain a pruned association rule set corresponding to each approximate rule identifier, and the pruned association rule set includes multiple candidate rules; stop rule identification of the candidate rules under a single pre-index in the pruned association rule set corresponding to each approximate rule identifier, and generate multiple candidate medical risk control rules corresponding to each approximate rule identifier, and the pre-index is used to indicate the source of the candidate rules; The rule screening module is used to merge and screen multiple candidate medical risk control rules of each approximate rule identifier through an integrated rule identifier to obtain multiple target medical risk control rules.
6. A medical risk control rule generation device, characterized in that: The medical risk control rule generation device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory so that the medical risk control rule generation device executes the medical risk control rule generation method as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed by a processor, implement the medical risk control rule generation method as described in any one of claims 1 to 4.
