Data anomaly detection method, device, electronic device and storage medium
The weighted value range is determined through interval estimation and random sampling methods, which solves the problem of abnormal identification in medical data, improves the accuracy of medical insurance data determination, and prevents medical insurance fraud and unreasonable behavior.
Patent Information
- Application Number
- CN202010591658.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-06-24
AI Technical Summary
There is a large amount of data that does not meet the requirements in medical data, leading to medical insurance fraud and irrational medical behaviors. An effective anomaly identification method is needed to prevent resource waste and medical risks.
The interval estimation method and random sampling method are used to determine the value range of medical features, and the estimated value range is obtained through weighting, which is used to determine the abnormality of medical insurance data.
It improves the accuracy and identification effect of abnormal determination of medical data and ensures the rationality and security of medical insurance data.
Smart Images

Figure CN111739648B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a data anomaly detection method, device, electronic device and storage medium. Background Art
[0002] With the increasing socioeconomic level, people are paying more and more attention to health and are participating in medical insurance, which has resulted in more and more medical insurance data. However, due to the ever-changing types of medical insurance fraud and unreasonable medical practices, it is inevitable that some data that do not meet the requirements will appear in these large amounts of medical insurance data. For example, some people breathe oxygen for more than 24 hours a day, and some people's drug dosages seriously exceed the actual dosage that can be used, which seriously wastes medical resources and also poses certain medical risks.
[0003] Therefore, how to identify anomalies in medical data is a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of the above, it is necessary to provide a data anomaly detection method, device, electronic device and storage medium that can identify anomalies in medical data.
[0005] A first aspect of the present invention provides a data anomaly detection method, characterized in that the data anomaly detection method comprises:
[0006] Receiving an input medical data sample;
[0007] Extracting medical numerical features from the medical data sample;
[0008] Using an interval estimation method, determining the interval of the medical numerical feature, and determining two endpoints of the interval as a first value range;
[0009] Using a random sampling method, determine a sampling value range obtained by sampling the medical numerical feature each time, and determine a second value range based on the sampling value range each time;
[0010] Weighting the first value range and the second value range to determine a learned estimated value range;
[0011] When receiving medical insurance data that needs to be detected for anomalies, extracting numerical features to be detected from the medical insurance data;
[0012] Determine whether the numerical feature to be detected exceeds the estimated value range;
[0013] If the numerical feature to be detected exceeds the estimated value range, it is determined that the medical insurance data is abnormal.
[0014] In a possible implementation, extracting the medical numerical features from the medical data sample includes:
[0015] extracting original medical numerical features included in the medical data sample from the medical data sample; or
[0016] Derived data samples are determined from the medical data samples, and derived medical numerical features are extracted from the derived data samples.
[0017] In a possible implementation, the adopting of an interval estimation method to determine the interval of the medical numerical feature includes:
[0018] Using an interval estimation method to calculate the mean of the medical numerical feature;
[0019] Calculating the sampling error of the medical numerical feature;
[0020] An interval estimation method is adopted to determine the interval of the medical numerical feature according to the mean and the sampling error.
[0021] In a possible implementation, the random sampling method is used to determine the sampling value range obtained by sampling the medical numerical feature each time, including:
[0022] Determining the total length of the medical numerical feature, and numbering the medical numerical feature according to the total length to obtain a plurality of consecutive numbers;
[0023] Using a random sampling method with replacement, repeatedly sampling the multiple consecutive numbers to obtain multiple groups of number sampling values, wherein the multiple groups of number sampling values include the multiple consecutive numbers;
[0024] For each group of the numbered sampling values, determine the sampling value domain of the medical numerical feature corresponding to the numbered sampling value.
[0025] In a possible implementation, the adopting a random sampling method with replacement to repeatedly sample the multiple consecutive numbers to obtain multiple groups of number sampling values includes:
[0026] Using a random sampling method with replacement, sampling the multiple consecutive numbers to obtain a first number sampling value;
[0027] Determine whether the first numbered sampling value includes all of the multiple consecutive numbers;
[0028] If the first numbered sampling value does not include all of the multiple consecutive numbers, repeatedly sampling the multiple consecutive numbers to obtain a second numbered sampling value;
[0029] Determine whether the first numbered sampling value and the second numbered sampling value include all of the multiple consecutive numbers;
[0030] If the first numbered sampling value and the second numbered sampling value include all of the plurality of consecutive numbers, it is determined that the first numbered sampling value and the second numbered sampling value are a plurality of groups of numbered sampling values.
[0031] In a possible implementation manner, weighting the first value range and the second value range to determine a learned estimated value range includes:
[0032] Obtaining a first error distribution corresponding to the first value range and obtaining a second error distribution corresponding to the second value range;
[0033] Determine a first weight parameter within the first value range and a second weight parameter within the second value range according to the first error distribution and the second error distribution;
[0034] The first value range and the second value range are weighted according to the first weight parameter and the second weight parameter to obtain a learned estimated value range.
[0035] In a possible implementation, the data anomaly detection method further includes:
[0036] The medical insurance data that shows abnormalities will be uploaded to the blockchain.
[0037] A second aspect of the present invention provides a data anomaly detection device, characterized in that the data anomaly detection device comprises:
[0038] A receiving module, used for receiving input medical data samples;
[0039] An extraction module, used for extracting medical numerical features from the medical data sample;
[0040] A first determination module, configured to determine the interval of the medical numerical feature by using an interval estimation method, and determine two endpoints of the interval as a first value range;
[0041] A second determination module is used to determine a sampling value range obtained by sampling the medical numerical feature each time by using a random sampling method, and determine a second value range according to the sampling value range each time;
[0042] A third determination module, used for weighting the first value range and the second value range to determine a learned estimated value range;
[0043] The extraction module is further used to extract the numerical features to be detected from the medical insurance data when receiving the medical insurance data that need to be detected for abnormality;
[0044] A judging module, used to judge whether the numerical feature to be detected exceeds the estimated value domain range;
[0045] The fourth determination module is used to determine that the medical insurance data is abnormal if the numerical feature to be detected exceeds the estimated value range.
[0046] A third aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the processor is configured to implement the data anomaly detection method when executing a computer program stored in the memory.
[0047] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the data anomaly detection method when executed by a processor.
[0048] In the above technical solution, two value ranges of medical features are determined by interval estimation method and random sampling method, and these two value ranges are weighted according to weight parameters to obtain an estimated value range, which can be used to determine the abnormality of medical data. When a medical consultation document that needs to be detected for abnormality is subsequently received, the estimated value range can be used for determination. In the present invention, the estimated value range is more accurate in determining the abnormality of medical data and has a better abnormality recognition effect than any other value range. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a preferred embodiment of a data anomaly detection method disclosed in the present invention.
[0050] Figure 2 It is a functional module diagram of a preferred embodiment of a data anomaly detection device disclosed in the present invention.
[0051] Figure 3 It is a schematic diagram of the structure of an electronic device of a preferred embodiment of the data anomaly detection method of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] The terms "first" and "second" in the specification and claims of the present application 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 interchangeable 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" and "having" and any of their variations 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.
[0054] It should be noted that the descriptions of "first", "second", "third", "fourth", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", "third", and "fourth" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0055] Wherein, the electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc. The electronic device may also include network devices and / or user devices. Wherein, the network device includes but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing. The user device includes but is not limited to any electronic product that can interact with the user through a keyboard, mouse, remote control, touchpad or voice control device, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant PDA, etc.
[0056] See also Figure 1 , Figure 1 The flowchart of a preferred embodiment of a data anomaly detection method disclosed in the present invention is shown in FIG.
[0057] S11. Receive input medical data samples.
[0058] S12. Extracting medical numerical features from the medical data samples.
[0059] The medical numerical feature is medical data of numerical type.
[0060] Specifically, extracting medical numerical features from the medical data sample includes:
[0061] extracting original medical numerical features included in the medical data sample from the medical data sample; or
[0062] Derived data samples are determined from the medical data samples, and derived medical numerical features are extracted from the derived data samples.
[0063] Optionally, it can be determined whether the medical data sample contains numbers. If the medical data sample contains numbers, the medical numerical features containing numbers are extracted. For example, if the duration of continuous drug treatment is 3 hours, the original 3 hours can be extracted as the medical numerical features.
[0064] Optionally, if the medical data sample does not contain numbers, relevant derivative data samples are searched from the medical data sample, and medical numerical features including numbers are extracted from the derived data samples. For example, if a treatment plan in a medical diagnosis book uses a certain drug, but the drug uses a default dose, a derivative data sample of the default dose of the drug can be found based on the medical diagnosis book, and the value of the default dose can be extracted as a derived medical numerical feature.
[0065] S13. Using an interval estimation method, determine the interval of the medical numerical feature, and determine the two endpoints of the interval as a first value range.
[0066] Specifically, the interval estimation method is used to determine the interval of the medical numerical feature, including:
[0067] Using an interval estimation method to calculate the mean of the medical numerical feature;
[0068] Calculating the sampling error of the medical numerical feature;
[0069] An interval estimation method is adopted to determine the interval of the medical numerical feature according to the mean and the sampling error.
[0070] Among them, interval estimation gives an interval range of population parameter estimation based on point estimation. The interval is usually obtained by adding or subtracting the estimation error from the sample statistic.
[0071] The interval can be expressed as (μ-Zα / 2σ, μ+Zα / 2σ), where μ is the mean, ±Zα / 2σ is the sampling error, α is the coverage area of the non-confidence level in the normal distribution, Zα / 2 is the corresponding standard score, and σ is the standard deviation. α is usually determined by the business and can be set to any number, such as 0.1, 0.5.
[0072] Among them, through the statistics of historical data, it can be determined that the sampling error of 100 samples (for example, the injection amount of a certain medicine for a certain disease) is ±10%; the sampling error of 500 samples (for example, the injection amount of a certain medicine for a certain disease) is ±5%; the sampling error of 1200 samples and above (for example, the injection amount of a certain medicine for a certain disease) is ±3%.
[0073] S14. Using a random sampling method, determine the sampling value range obtained by sampling the medical numerical feature each time, and determine the second value range based on the sampling value range each time.
[0074] Specifically, the random sampling method is used to determine the sampling range obtained by sampling the medical numerical feature each time, including:
[0075] Determining the total length of the medical numerical feature, and numbering the medical numerical feature according to the total length to obtain a plurality of consecutive numbers;
[0076] Using a random sampling method with replacement, repeatedly sampling the multiple consecutive numbers to obtain multiple groups of number sampling values, wherein the multiple groups of number sampling values include the multiple consecutive numbers;
[0077] For each group of the numbered sampling values, determine the sampling value domain of the medical numerical feature corresponding to the numbered sampling value.
[0078] Among them, the total length of the medical numerical features can be calculated (for example, there are a total of 500 injection volume features of a certain drug), and they can be numbered using consecutive integers, such as using 1-500 consecutive integers to number the 500 injection volume features. Among them, the random sampling method with replacement can ensure that the number of samples sampled each time is the number of original samples, ensuring the randomness of the sampling. Each time sampling is performed, a set of sampling number values can be obtained. A column can be designed to record the number values of each sampling, and the sampling can be repeated until all numbers are sampled, that is, the multiple groups of numbered sampling values finally obtained include all consecutive numbers. Each time sampling is performed, a set of sampled medical numerical features can be determined, and the maximum and minimum values can be determined in this set of medical numerical features, that is, the maximum and minimum values can be determined as the sampling value range of the group.
[0079] Specifically, the adopting a random sampling method with replacement to repeatedly sample the multiple consecutive numbers to obtain multiple groups of number sampling values includes:
[0080] Using a random sampling method with replacement, sampling the multiple consecutive numbers to obtain a first number sampling value;
[0081] Determine whether the first numbered sampling value includes all of the multiple consecutive numbers;
[0082] If the first numbered sampling value does not include all of the multiple consecutive numbers, repeatedly sampling the multiple consecutive numbers to obtain a second numbered sampling value;
[0083] Determine whether the first numbered sampling value and the second numbered sampling value include all of the multiple consecutive numbers;
[0084] If the first numbered sampling value and the second numbered sampling value include all of the plurality of consecutive numbers, it is determined that the first numbered sampling value and the second numbered sampling value are a plurality of groups of numbered sampling values.
[0085] After each sampling obtains a set of numbered sampling values, it is necessary to determine whether the sampled numbers include all the numbers. If not, the sampling needs to be repeated until all the numbers are sampled. "First" and "second" are just examples, representing repeated sampling, and are not limited to two samplings. It can be three samplings, four samplings, or even more samplings, which is not limited in the embodiments of the present invention.
[0086] S15. Weight the first value range and the second value range to determine a learned estimated value range.
[0087] Specifically, weighting the first value range and the second value range to determine the learned estimated value range includes:
[0088] Obtaining a first error distribution corresponding to the first value range and obtaining a second error distribution corresponding to the second value range;
[0089] Determine a first weight parameter within the first value range and a second weight parameter within the second value range according to the first error distribution and the second error distribution;
[0090] The first value range and the second value range are weighted according to the first weight parameter and the second weight parameter to obtain a learned estimated value range.
[0091] Among them, the weight parameters with different value ranges can be set according to the error distribution. Generally, the higher the error distribution, the smaller the corresponding weight parameter, and the lower the error distribution, the larger the corresponding weight parameter.
[0092] The present invention determines two value ranges through an interval estimation method and a random sampling method, and weights the two value ranges according to a weight parameter to obtain an estimated value range. Compared with any value range, the estimated value range is more accurate and has a better effect in determining abnormalities in medical data.
[0093] S16. When medical insurance data that needs to be detected for anomalies is received, numerical features to be detected are extracted from the medical insurance data.
[0094] Among them, the numerical feature to be detected, that is, the numerical feature, can be various medical features containing numbers, such as the oxygen inhalation time is 5 hours and the drug dosage is 10 ml.
[0095] S17: Determine whether the numerical feature to be detected exceeds the estimated value range.
[0096] S18. If the numerical feature to be detected exceeds the estimated value range, it is determined that the medical insurance data is abnormal.
[0097] Among them, features within the estimated value range are normal features, while features outside the estimated value range are abnormal features. When it is determined that the numerical feature to be detected exceeds the estimated value range, it can be determined that the medical insurance data is abnormal, such as: oxygen inhalation exceeds 24 hours, and the dosage of a certain drug exceeds the normal estimated value range. When it is determined that the numerical feature to be detected is within the estimated value range, it can be determined that the medical insurance data is normal.
[0098] Optionally, the data anomaly detection method further includes:
[0099] The medical insurance data that shows abnormalities will be uploaded to the blockchain.
[0100] In order to ensure the privacy and security of the data, the medical insurance data with abnormalities can be uploaded to the blockchain for storage.
[0101] exist Figure 1In the described method flow, two value ranges of the medical feature are determined by an interval estimation method and a random sampling method, and the two value ranges are weighted according to a weight parameter to obtain an estimated value range, which can be used to determine the abnormality of the medical data. When a medical consultation document that requires abnormality detection is subsequently received, the estimated value range can be used for determination. In the present invention, the estimated value range is more accurate in determining the abnormality of medical data than any other value range, and has a better abnormality identification effect.
[0102] The above is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. For ordinary technicians in this field, improvements can be made without departing from the creative concept of the present invention, but these all belong to the protection scope of the present invention.
[0103] See also Figure 2 , Figure 2 It is a functional module diagram of a preferred embodiment of a data anomaly detection device disclosed in the present invention.
[0104] In some embodiments, the data anomaly detection device is run in an electronic device. The data anomaly detection device may include a plurality of functional modules composed of program code segments. The program code of each program segment in the data anomaly detection device may be stored in a memory and executed by at least one processor to perform Figure 1 Some or all of the steps in the described data anomaly detection method.
[0105] In this embodiment, the data anomaly detection device can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a receiving module 201, an extraction module 202, a first determination module 203, a second determination module 204, a third determination module 205, a judgment module 206 and a fourth determination module 207. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In some embodiments, the functions of each module will be described in detail in this embodiment.
[0106] The receiving module 201 is used to receive input medical data samples.
[0107] The extraction module 202 is used to extract medical numerical features from the medical data samples.
[0108] The medical numerical feature is medical data of numerical type.
[0109] Specifically, extracting medical numerical features from the medical data sample includes:
[0110] extracting original medical numerical features included in the medical data sample from the medical data sample; or
[0111] Derived data samples are determined from the medical data samples, and derived medical numerical features are extracted from the derived data samples.
[0112] Optionally, it can be determined whether the medical data sample contains numbers. If the medical data sample contains numbers, the medical numerical features containing numbers are extracted. For example, if the duration of continuous drug treatment is 3 hours, the original 3 hours can be extracted as the medical numerical features.
[0113] Optionally, if the medical data sample does not contain numbers, relevant derivative data samples are searched from the medical data sample, and medical numerical features including numbers are extracted from the derived data samples. For example, if a treatment plan in a medical diagnosis book uses a certain drug, but the drug uses a default dose, a derivative data sample of the default dose of the drug can be found based on the medical diagnosis book, and the value of the default dose can be extracted as a derived medical numerical feature.
[0114] The first determination module 203 is used to determine the interval of the medical numerical feature by using an interval estimation method, and determine the two endpoints of the interval as a first value range.
[0115] Specifically, the interval estimation method is used to determine the interval of the medical numerical feature, including:
[0116] Using an interval estimation method to calculate the mean of the medical numerical feature;
[0117] Calculating the sampling error of the medical numerical feature;
[0118] An interval estimation method is adopted to determine the interval of the medical numerical feature according to the mean and the sampling error.
[0119] Among them, interval estimation gives an interval range of population parameter estimation based on point estimation. The interval is usually obtained by adding or subtracting the estimation error from the sample statistic.
[0120] The interval can be expressed as (μ-Zα / 2σ, μ+Zα / 2σ), where μ is the mean, ±Zα / 2σ is the sampling error, α is the coverage area of the non-confidence level in the normal distribution, Zα / 2 is the corresponding standard score, and σ is the standard deviation. α is usually determined by the business and can be set to any number, such as 0.1, 0.5.
[0121] Among them, through the statistics of historical data, it can be determined that the sampling error of 100 samples (for example, the injection amount of a certain medicine for a certain disease) is ±10%; the sampling error of 500 samples (for example, the injection amount of a certain medicine for a certain disease) is ±5%; the sampling error of 1200 samples and above (for example, the injection amount of a certain medicine for a certain disease) is ±3%.
[0122] The second determination module 204 is used to determine the sampling value range obtained by sampling the medical numerical feature each time by adopting a random sampling method, and determine the second value range according to the sampling value range each time.
[0123] Specifically, the random sampling method is used to determine the sampling range obtained by sampling the medical numerical feature each time, including:
[0124] Determining the total length of the medical numerical feature, and numbering the medical numerical feature according to the total length to obtain a plurality of consecutive numbers;
[0125] Using a random sampling method with replacement, repeatedly sampling the multiple consecutive numbers to obtain multiple groups of number sampling values, wherein the multiple groups of number sampling values include the multiple consecutive numbers;
[0126] For each group of the numbered sampling values, determine the sampling value domain of the medical numerical feature corresponding to the numbered sampling value.
[0127] Among them, the total length of the medical numerical features can be calculated (for example, there are a total of 500 injection volume features of a certain drug), and they can be numbered using consecutive integers, such as using 1-500 consecutive integers to number the 500 injection volume features. Among them, the random sampling method with replacement can ensure that the number of samples sampled each time is the number of original samples, ensuring the randomness of the sampling. Each time sampling is performed, a set of sampling number values can be obtained. A column can be designed to record the number values of each sampling, and the sampling can be repeated until all numbers are sampled, that is, the multiple groups of numbered sampling values finally obtained include all consecutive numbers. Each time sampling is performed, a set of sampled medical numerical features can be determined, and the maximum and minimum values can be determined in this set of medical numerical features, that is, the maximum and minimum values can be determined as the sampling value range of the group.
[0128] Specifically, the adopting a random sampling method with replacement to repeatedly sample the multiple consecutive numbers to obtain multiple groups of number sampling values includes:
[0129] Using a random sampling method with replacement, sampling the multiple consecutive numbers to obtain a first number sampling value;
[0130] Determine whether the first numbered sampling value includes all of the multiple consecutive numbers;
[0131] If the first numbered sampling value does not include all of the multiple consecutive numbers, repeatedly sampling the multiple consecutive numbers to obtain a second numbered sampling value;
[0132] Determine whether the first numbered sampling value and the second numbered sampling value include all of the multiple consecutive numbers;
[0133] If the first numbered sampling value and the second numbered sampling value include all of the plurality of consecutive numbers, it is determined that the first numbered sampling value and the second numbered sampling value are a plurality of groups of numbered sampling values.
[0134] After each sampling obtains a set of numbered sampling values, it is necessary to determine whether the sampled numbers include all the numbers. If not, the sampling needs to be repeated until all the numbers are sampled. "First" and "second" are just examples, representing repeated sampling, and are not limited to two samplings. It can be three samplings, four samplings, or even more samplings, which is not limited in the embodiments of the present invention.
[0135] The third determination module 205 is used to weight the first value range and the second value range to determine a learned estimated value range.
[0136] Specifically, weighting the first value range and the second value range to determine the learned estimated value range includes:
[0137] Obtaining a first error distribution corresponding to the first value range and obtaining a second error distribution corresponding to the second value range;
[0138] Determine a first weight parameter within the first value range and a second weight parameter within the second value range according to the first error distribution and the second error distribution;
[0139] The first value range and the second value range are weighted according to the first weight parameter and the second weight parameter to obtain a learned estimated value range.
[0140] Among them, the weight parameters with different value ranges can be set according to the error distribution. Generally, the higher the error distribution, the smaller the corresponding weight parameter, and the lower the error distribution, the larger the corresponding weight parameter.
[0141] The present invention determines two value ranges through an interval estimation method and a random sampling method, and weights the two value ranges according to a weight parameter to obtain an estimated value range. Compared with any value range, the estimated value range is more accurate and has a better effect in determining abnormalities in medical data.
[0142] The extraction module 202 is also used to extract the numerical features to be detected from the medical insurance data when receiving the medical insurance data that need to be detected for abnormality.
[0143] Among them, the numerical feature to be detected, that is, the numerical feature, can be various medical features containing numbers, such as the oxygen inhalation time is 5 hours and the drug dosage is 10 ml.
[0144] The judgment module 206 is used to judge whether the numerical feature to be detected exceeds the estimated value domain range.
[0145] The fourth determination module 207 is used to determine that the medical insurance data is abnormal if the numerical feature to be detected exceeds the estimated value range.
[0146] Among them, features within the estimated value range are normal features, while features outside the estimated value range are abnormal features. When it is determined that the numerical feature to be detected exceeds the estimated value range, it can be determined that the medical insurance data is abnormal, such as: oxygen inhalation exceeds 24 hours, and the dosage of a certain drug exceeds the normal estimated value range. When it is determined that the numerical feature to be detected is within the estimated value range, it can be determined that the medical insurance data is normal.
[0147] Optionally, the data anomaly detection device further includes:
[0148] The sending module is used to upload the abnormal medical insurance data to the blockchain.
[0149] In order to ensure the privacy and security of the data, the medical insurance data with abnormalities can be uploaded to the blockchain for storage.
[0150] exist Figure 2 In the described data anomaly detection device, two value ranges of medical features are determined by an interval estimation method and a random sampling method, and the two value ranges are weighted according to a weight parameter to obtain an estimated value range, which can be used to determine the anomaly of medical data. When a medical consultation document that requires anomaly detection is subsequently received, the estimated value range can be used for determination. In the present invention, the estimated value range is more accurate in determining the anomaly of medical data than any other value range, and has a better anomaly recognition effect.
[0151] like Figure 3 As shown, Figure 3 The electronic device 3 includes a memory 31, at least one processor 32, a computer program 33 stored in the memory 31 and executable on the at least one processor 32, and at least one communication bus 34.
[0152] Those skilled in the art will understand that Figure 3 The schematic diagram shown is merely an example of the electronic device 3 and does not constitute a limitation on the electronic device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 3 may also include input and output devices, network access devices, etc.
[0153] The at least one processor 32 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. The processor 32 may be a microprocessor or any conventional processor, etc. The processor 32 is the control center of the electronic device 3, and uses various interfaces and lines to connect various parts of the entire electronic device 3.
[0154] The memory 31 can be used to store the computer program 33 and / or modules / units. The processor 32 implements various functions of the electronic device 3 by running or executing the computer program and / or modules / units stored in the memory 31 and calling the data stored in the memory 31. The memory 31 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data (such as audio data) created according to the use of the electronic device 3, etc. In addition, the memory 31 can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0155] Combination Figure 1 , the memory 31 in the electronic device 3 stores a plurality of instructions to implement a data anomaly detection method, and the processor 32 can execute the plurality of instructions to implement:
[0156] Receiving an input medical data sample;
[0157] Extracting medical numerical features from the medical data sample;
[0158] Using an interval estimation method, determining the interval of the medical numerical feature, and determining two endpoints of the interval as a first value range;
[0159] Using a random sampling method, determine a sampling value range obtained by sampling the medical numerical feature each time, and determine a second value range based on the sampling value range each time;
[0160] Weighting the first value range and the second value range to determine a learned estimated value range;
[0161] When receiving medical insurance data that needs to be detected for anomalies, extracting numerical features to be detected from the medical insurance data;
[0162] Determine whether the numerical feature to be detected exceeds the estimated value range;
[0163] If the numerical feature to be detected exceeds the estimated value range, it is determined that the medical insurance data is abnormal.
[0164] In an optional implementation, the extracting medical numerical features from the medical data sample includes:
[0165] extracting original medical numerical features included in the medical data sample from the medical data sample; or
[0166] Derived data samples are determined from the medical data samples, and derived medical numerical features are extracted from the derived data samples.
[0167] In an optional implementation, the adopting of an interval estimation method to determine the interval of the medical numerical feature includes:
[0168] Using an interval estimation method to calculate the mean of the medical numerical feature;
[0169] Calculating the sampling error of the medical numerical feature;
[0170] An interval estimation method is adopted to determine the interval of the medical numerical feature according to the mean and the sampling error.
[0171] In an optional implementation, the random sampling method is used to determine the sampling value range obtained by sampling the medical numerical feature each time, including:
[0172] Determining the total length of the medical numerical feature, and numbering the medical numerical feature according to the total length to obtain a plurality of consecutive numbers;
[0173] Using a random sampling method with replacement, repeatedly sampling the multiple consecutive numbers to obtain multiple groups of number sampling values, wherein the multiple groups of number sampling values include the multiple consecutive numbers;
[0174] For each group of the numbered sampling values, determine the sampling value domain of the medical numerical feature corresponding to the numbered sampling value.
[0175] In an optional implementation, the adopting a random sampling method with replacement to repeatedly sample the multiple consecutive numbers to obtain multiple groups of numbered sampling values includes:
[0176] Using a random sampling method with replacement, sampling the multiple consecutive numbers to obtain a first number sampling value;
[0177] Determine whether the first numbered sampling value includes all of the multiple consecutive numbers;
[0178] If the first numbered sampling value does not include all of the multiple consecutive numbers, repeatedly sampling the multiple consecutive numbers to obtain a second numbered sampling value;
[0179] Determine whether the first numbered sampling value and the second numbered sampling value include all of the multiple consecutive numbers;
[0180] If the first numbered sampling value and the second numbered sampling value include all of the plurality of consecutive numbers, it is determined that the first numbered sampling value and the second numbered sampling value are a plurality of groups of numbered sampling values.
[0181] In an optional implementation, weighting the first value range and the second value range to determine the learned estimated value range includes:
[0182] Obtaining a first error distribution corresponding to the first value range and obtaining a second error distribution corresponding to the second value range;
[0183] Determine a first weight parameter within the first value range and a second weight parameter within the second value range according to the first error distribution and the second error distribution;
[0184] The first value range and the second value range are weighted according to the first weight parameter and the second weight parameter to obtain a learned estimated value range.
[0185] In an optional implementation, the processor 32 may execute the multiple instructions to achieve:
[0186] The medical insurance data that shows abnormalities will be uploaded to the blockchain.
[0187] Specifically, the specific implementation method of the processor 32 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0188] exist Figure 3 In the described electronic device 3, two value ranges of the medical feature are determined by an interval estimation method and a random sampling method, and the two value ranges are weighted according to a weight parameter to obtain an estimated value range, which can be used to determine the abnormality of the medical data. When a medical consultation document that requires abnormality detection is subsequently received, the estimated value range can be used for determination. In the present invention, the estimated value range is more accurate in determining the abnormality of medical data than any other value range, and has a better abnormality recognition effect.
[0189] If the module / unit integrated in the electronic device 3 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 invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. 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 include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory and read-only memory (ROM, Read-Only Memory).
[0190] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0191] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0192] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0193] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved. The multiple units or devices stated in the system claims can also be implemented by software or hardware.
[0194] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data anomaly detection method, characterized in that: The data anomaly detection method comprises: Receiving an input medical data sample; Extracting medical numerical features from the medical data sample; Adopting an interval estimation method to determine the interval of the medical numerical feature, and determining the two endpoints of the interval as a first value range; wherein, adopting the interval estimation method to determine the interval of the medical numerical feature comprises: adopting the interval estimation method to calculate the mean of the medical numerical feature; calculating the sampling error of the medical numerical feature; adopting the interval estimation method to determine the interval of the medical numerical feature according to the mean and the sampling error; A random sampling method is used to determine a sampling value range obtained by sampling the medical numerical feature each time, and a second value range is determined according to the sampling value range each time; wherein the random sampling method is used to determine the sampling value range obtained by sampling the medical numerical feature each time, including: Determining the total length of the medical numerical feature, and numbering the medical numerical feature according to the total length to obtain a plurality of consecutive numbers; Adopting a random sampling method with replacement to repeatedly sample the multiple consecutive numbers to obtain multiple groups of number sampling values, wherein the multiple groups of number sampling values include the multiple consecutive numbers; adopting a random sampling method with replacement to repeatedly sample the multiple consecutive numbers to obtain multiple groups of number sampling values includes: adopting a random sampling method with replacement to sample the multiple consecutive numbers to obtain a first number sampling value; judging whether the first number sampling value includes all of the multiple consecutive numbers; if the first number sampling value does not include all of the multiple consecutive numbers, repeatedly sampling the multiple consecutive numbers to obtain a second number sampling value; judging whether the first number sampling value and the second number sampling value include all of the multiple consecutive numbers; if the first number sampling value and the second number sampling value include all of the multiple consecutive numbers, determining that the first number sampling value and the second number sampling value are multiple groups of number sampling values; For each group of the numbered sampling values, determining a sampling value domain of the medical numerical feature corresponding to the numbered sampling value; Weighting the first value range and the second value range to determine a learned estimated value range; When medical insurance data that needs to be detected for anomalies is received, a numerical feature to be detected is extracted from the medical insurance data; Determine whether the numerical feature to be detected exceeds the estimated value range; If the numerical feature to be detected exceeds the estimated value range, it is determined that the medical insurance data is abnormal.
2. The data anomaly detection method according to claim 1, characterized in that: The extracting of medical numerical features from the medical data sample comprises: extracting original medical numerical features included in the medical data sample from the medical data sample; or Derived data samples are determined from the medical data samples, and derived medical numerical features are extracted from the derived data samples.
3. The data anomaly detection method according to claim 1, characterized in that: The weighting the first value range and the second value range to determine the learned estimated value range includes: Obtaining a first error distribution corresponding to the first value range and obtaining a second error distribution corresponding to the second value range; Determine a first weight parameter within the first value range and a second weight parameter within the second value range according to the first error distribution and the second error distribution; The first value range and the second value range are weighted according to the first weight parameter and the second weight parameter to obtain a learned estimated value range.
4. The data anomaly detection method according to claim 1, characterized in that: The data anomaly detection method further includes: The medical insurance data that shows abnormalities will be uploaded to the blockchain.
5. A data anomaly detection device for implementing the data anomaly detection method according to claim 1, characterized in that: The data anomaly detection device comprises: A receiving module, used for receiving input medical data samples; An extraction module, used for extracting medical numerical features from the medical data sample; A first determination module, configured to determine the interval of the medical numerical feature by using an interval estimation method, and determine two endpoints of the interval as a first value range; A second determination module is used to determine a sampling value range obtained by sampling the medical numerical feature each time by using a random sampling method, and determine a second value range according to the sampling value range each time; A third determination module, used for weighting the first value range and the second value range to determine a learned estimated value range; The extraction module is further used to extract the numerical features to be detected from the medical insurance data when receiving the medical insurance data that need to be detected for abnormality; A judging module, used to judge whether the numerical feature to be detected exceeds the estimated value domain range; The fourth determination module is used to determine that the medical insurance data is abnormal if the numerical feature to be detected exceeds the estimated value range.
6. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to execute a computer program stored in the memory to implement the data anomaly detection method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the data anomaly detection method according to any one of claims 1 to 4 is implemented.
