Abnormal data detection method and device, and electronic equipment

By calculating the trustworthy weights and co-occurrence frequencies of data columns in the data table, we build a relationship network and automatically detect abnormal data, which solves the problem of low abnormal data detection efficiency in the existing technology and achieves fast and accurate identification and correction of abnormal data. , improving the efficiency of data quality management.

CN113704237BActive Publication Date: 2024-09-13HANGZHOU DT DREAM TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202110931867.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-09-13
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

The existing technology has low efficiency in detecting abnormal data and relies on manual calculation and analysis, making it difficult to quickly and accurately locate and process dirty data.

Method used

By calculating the credible weights of data columns in the data table and the co-occurrence frequency of value pairs, a relationship network is constructed, and the node weights are used to calculate abnormal scores, determine abnormal data columns, and achieve automated detection and correction.

Benefits of technology

It improves the efficiency and accuracy of abnormal data detection, quickly identifies and corrects abnormal data, reduces manual intervention, and improves the efficiency of data quality management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704237B
    Figure CN113704237B
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for detecting abnormal data, and an electronic device. The method includes: calculating the credible weight of a data column in a data table to be detected, and the co-occurrence frequency of each value pair in the data column; determining the value pair whose co-occurrence frequency is lower than a preset threshold as an abnormal value pair; constructing a relationship network with the data column as a node, the abnormal value pair as a connection relationship, and the credible weight as a node weight; calculating the abnormal score of each node in the relationship network based on the node weight; determining the data column corresponding to the node whose abnormal score is greater than the threshold as an abnormal data column; wherein the data in the abnormal data column is abnormal data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an abnormal data detection method and device, and an electronic device. Background Art

[0002] Data quality management is an important means of data governance system. There are various forms of dirty data in the original data. Dirty data refers to data with no actual business significance, illegal data format, irregular coding, unclear business logic and other abnormal conditions. If dirty data is not processed, it may have a great impact on subsequent data applications and even cause wrong decisions. Dirty data can also be called abnormal data.

[0003] The first step in solving the dirty data problem is to locate the dirty data, that is, to detect the abnormal data in the data; further, based on the analysis of the dirty data, suggestions for repairing the dirty data can be made.

[0004] In related technologies, it is usually necessary to rely on manual calculation and analysis to detect dirty data, which has the problem of low detection effect.

[0005] Therefore, there is a need to provide an efficient solution for locating abnormal data. Summary of the invention

[0006] In order to solve the problem of low efficiency in detecting abnormal data, the embodiments of this specification provide an abnormal data detection method and device, and an electronic device.

[0007] According to a first aspect of an embodiment of this specification, a method for detecting abnormal data is provided, the method comprising:

[0008] Calculate the credibility weight of the data column in the data table to be detected, and the co-occurrence frequency of each value pair in the data column; wherein the credibility weight represents the credibility of the data in the data column, and the value pair includes a combination of two values ​​of different data columns in the same data row;

[0009] Determine the value pairs whose co-occurrence frequency is lower than a preset threshold as abnormal value pairs;

[0010] A relationship network is constructed with data columns as nodes, abnormal value pairs as connection relationships, and trustworthy weights as node weights;

[0011] Based on the node weights, calculating the anomaly score of each node in the relationship network;

[0012] The data column corresponding to the node whose abnormal score is greater than the threshold is determined as an abnormal data column; wherein the data in the abnormal data column is abnormal data.

[0013] According to a second aspect of an embodiment of this specification, there is provided an abnormal data detection device, the device comprising:

[0014] A first calculation module is used to calculate the trustworthiness weight of the data column in the data table to be detected, and the co-occurrence frequency of each value pair in the data column; wherein the trustworthiness weight represents the trustworthiness of the data in the data column, and the value pair includes a combination of two values ​​of different data columns in the same data row;

[0015] A first determination module, configured to determine the value pairs whose co-occurrence frequency is lower than a preset threshold as abnormal value pairs;

[0016] A network construction module is used to construct a relationship network with data columns as nodes, abnormal value pairs as connection relationships, and trusted weights as node weights;

[0017] A second calculation module, used for calculating the abnormality score of each node in the relationship network based on the node weight;

[0018] The second determination module is used to determine the data column corresponding to the node whose abnormal score is greater than the threshold as an abnormal data column; wherein the data in the abnormal data column is abnormal data.

[0019] According to a third aspect of the embodiments of this specification, there is provided an electronic device, including:

[0020] processor;

[0021] a memory for storing processor-executable instructions;

[0022] Wherein, the processor is configured as any of the above-mentioned abnormal data detection methods.

[0023] The embodiments of this specification provide an abnormal data detection scheme, which can improve the detection efficiency of abnormal data and quickly and accurately detect abnormal data from raw data. Specifically, the low co-occurrence frequency of abnormal data in a data table is used; a relationship network is constructed with data columns as nodes and value pairs with low co-occurrence frequency as connection relationships, and then the trusted weights of the data columns are used to locate abnormal nodes in the relationship network, so as to determine that the data column corresponding to the abnormal node is an abnormal data column, and the data in the abnormal data column is abnormal data. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a flow chart of an abnormal data detection method provided by an embodiment of this specification;

[0025] Figure 2 is a schematic diagram of a relationship network provided in an embodiment of this specification;

[0026] Figure 3 It is a schematic diagram of the entire process provided by an embodiment of this specification;

[0027] Figure 4 is a hardware structure diagram of an abnormal data detection device provided in an embodiment of this specification;

[0028] Figure 5 It is a module diagram of an abnormal data detection device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0030] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0031] It should be understood that although the terms first, second, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0032] The present application aims to provide an abnormal data detection solution to solve the problem of low efficiency in detecting dirty data in the process of data quality management. The low co-occurrence frequency of abnormal data in the data table is utilized; a relationship network is constructed with data columns as nodes and value pairs with low co-occurrence frequency as connection relationships, and then the trusted weights of the data columns are used to locate abnormal nodes in the relationship network, thereby determining that the data column corresponding to the abnormal node is the abnormal data column, and the data in the abnormal data column is abnormal data. In this way, the detection efficiency of abnormal data can be improved, and abnormal data can be detected quickly and accurately from the original data.

[0033] The following can be referenced Figure 1 An abnormal data detection method is shown as an example for description, and the method may include the following steps:

[0034] Step 110: Calculate the credibility weight of the data column in the data table to be detected, and the co-occurrence frequency of each value pair in the data column; wherein the credibility weight represents the credibility of the data in the data column, and the value pair includes a combination of two values ​​of different data columns in the same data row.

[0035] This embodiment can be applied to a processing end for abnormal data detection, which can include a server, a server cluster, or a cloud platform constructed by a server cluster.

[0036] This embodiment can be used to detect abnormal data in a data table. By using the fact that the co-occurrence frequency of abnormal value pairs and normal value pairs in the data table is low, it is necessary to calculate the co-occurrence frequency of each value pair in the data column.

[0037] In an illustrated embodiment, calculating the co-occurrence frequency of each value pair in the data column may include:

[0038] Obtaining the value combinations of two different data columns in the same data row in the data table to obtain each value pair in the data column;

[0039] Calculate the number of occurrences of each value pair among all value pairs;

[0040] Divide the number of occurrences of each value pair by the total number of all value pairs to obtain the co-occurrence frequency of each value pair.

[0041] In an illustrated embodiment, calculating the trustworthiness weight of a data column in a data table to be detected may include:

[0042] Calculate the data distribution of the data columns in the data table to be detected;

[0043] When the data distribution conforms to a preset distribution rule, the credible weight corresponding to the preset distribution rule is determined as the credible weight of the data column.

[0044] In practical applications, the credibility of data can be determined based on whether the data distribution conforms to business experience. For example, assuming that the data from historical business conforms to the normal distribution, the data in the current data column should also conform to the normal distribution. Therefore, if the data distribution of the data column in the data table to be tested conforms to the normal distribution, it can be considered to be credible, and a higher credibility weight can be set for it.

[0045] In this example, the trustworthy weight of the data column can be obtained by calculating the data distribution of the current data column and combining it with the preset distribution law determined by business experience.

[0046] In an illustrated embodiment, calculating the trustworthiness weight of a data column in a data table to be detected may include:

[0047] Calculate the value type of the data column in the data table to be detected;

[0048] The trustworthy weight corresponding to the value type is determined as the trustworthy weight of the data column.

[0049] In practical applications, for data columns that store data with business significance, the value type of the data column is generally set to an enumeration type; therefore, for enumeration type data columns, a higher or lower trust weight can be set based on certain business experience.

[0050] For data columns that have no business significance (such as serial numbers), the value type of the data column will be set to integer; therefore, a lower trust weight can be set for the integer data column.

[0051] In this example, different value types may correspond to different trust weights. The trust weight is determined based on the value type of the data column.

[0052] In some examples, the trust weight of the data column can also be determined according to the source of the data in the data column. Generally, the data in the data table comes from different data sources, and the trust weight of the corresponding data column can be determined according to the trustworthiness of different data sources.

[0053] For example, when the credibility of the data source is high, a higher credibility weight may be set for the corresponding data column; when the credibility of the data source is low, a lower credibility weight may be set for the corresponding data column.

[0054] It should be noted that the above-mentioned methods for calculating the trust weights can be configured and used separately or in combination.

[0055] In an exemplary implementation, calculating the co-occurrence frequency of each value pair in the data column includes:

[0056] For a data column with enumerated values, calculate the co-occurrence frequency of each value pair in the data column.

[0057] Since this embodiment uses the characteristic that abnormal data has a low co-occurrence frequency in a data table, among various data types, only data columns with general enumeration values ​​have value pairs with a high co-occurrence frequency; in addition, numeric fields with a small number of values ​​may also have value pairs with a high co-occurrence frequency. However, data in non-enumeration data columns usually do not have value pairs with a high co-occurrence frequency, and the implementation methods of this specification are usually not applicable.

[0058] Step 120: Determine the value pairs whose co-occurrence frequency is lower than a preset threshold as abnormal value pairs.

[0059] After calculating the co-occurrence frequency of each value pair in the data column, a preset threshold can be determined by using the low co-occurrence frequency of abnormal value pairs and normal value pairs in the data table. The preset threshold can be an empirical value defined manually.

[0060] When the co-occurrence frequency of the value pair is lower than the preset threshold, the value pair can be determined to be an abnormal value pair;

[0061] When the co-occurrence frequency of the value pair is higher than the preset threshold, it can be determined that the value pair is a normal value pair.

[0062] Step 130: construct a relationship network with data columns as nodes, abnormal value pairs as connection relationships, and credible weights as node weights.

[0063] Please refer to Figure 2 The schematic diagram of the relationship network shown is that column 1 is data column 1 in the data table, column 2 is data column 2 in the data table, column 3 is data column 3 in the data table, and column 4 is data column 4 in the data table; the trust weight of data column 1 is 1, the trust weight of data column 2 is 3, the trust weight of data column 3 is 1, and the trust weight of data column 4 is 2; there are abnormal value pairs between data column 1 and data column 2, there are abnormal value pairs between data column 2 and data column 3, and there are abnormal value pairs between data column 2 and data column 4.

[0064] Step 140: Calculate the abnormality score of each node in the relationship network based on the node weight.

[0065] Since the lines in the relationship network reflect the abnormal value pairs between data columns, the abnormal score of each node can be calculated through the node weights between the associated adjacent nodes.

[0066] In an exemplary embodiment, step 140 may include:

[0067] For each node, calculate the sum of the node weights of the adjacent nodes connected to it;

[0068] The sum of the node weights is determined as the abnormality score of the node.

[0069] Continue to refer Figure 2 In the relationship network shown, for column 1, since column 1 is only connected to column 2, the anomaly score of column 1 is the node weight of column 2, and the anomaly score of column 1 is 3.

[0070] For column 2, since column 2 is connected to columns 1, 3, and 4, it is necessary to calculate the sum of the node weights of columns 1, 3, and 4 (1+1+2=4), and the anomaly score of column 2 is 4.

[0071] For column 3, since column 3 is only connected to column 2, the anomaly score of column 3 is the node weight of column 2, and the anomaly score of column 1 is 3.

[0072] For column 4, since column 4 is only connected to column 2, the anomaly score of column 4 is the node weight of column 2, and the anomaly score of column 1 is 3.

[0073] Step 150: Determine the data column corresponding to the node whose abnormal score is greater than the threshold as an abnormal data column; wherein the data in the abnormal data column is abnormal data.

[0074] During implementation, a node with an abnormality score greater than a threshold may be regarded as an abnormal node, so that a data column corresponding to the abnormal node is determined as an abnormal data column.

[0075] Generally, nodes with anomaly scores greater than a threshold can be sorted by anomaly score. Since a larger anomaly score indicates more anomaly data or a greater possibility of anomaly data, the anomaly scores can be sorted from large to small, and the sorting results can be pushed to the anomaly handler for processing.

[0076] In one embodiment, the data column corresponding to the node with the largest anomaly score may be determined as the abnormal data column.

[0077] Continue to refer Figure 2 As mentioned above, since column 2 has the highest anomaly score, data column 2 corresponding to the column 2 node can be determined as an abnormal data column.

[0078] The embodiments of this specification provide an abnormal data detection scheme, which can improve the detection efficiency of abnormal data and quickly and accurately detect abnormal data from raw data. Specifically, the low co-occurrence frequency of abnormal data in a data table is used; a relationship network is constructed with data columns as nodes and value pairs with low co-occurrence frequency as connection relationships, and then the trusted weights of the data columns are used to locate abnormal nodes in the relationship network, so as to determine that the data column corresponding to the abnormal node is an abnormal data column, and the data in the abnormal data column is abnormal data.

[0079] In addition to providing a solution for abnormal data detection, this specification also provides a solution for abnormal data correction. Similarly, by utilizing the low co-occurrence frequency of abnormal data in the data table, value pairs with high co-occurrence frequency are stored as reference value pairs in the reference dictionary, providing a reference basis for the correction of abnormal value pairs.

[0080] The following is a reference dictionary. Figure 1 Based on the embodiment, after the above step 110, the following steps may also be included:

[0081] The value pairs whose co-occurrence frequency is higher than a preset threshold and whose credibility weight is greater than the credibility threshold are stored in the reference dictionary as reference value pairs.

[0082] Furthermore, after step 150, the following steps may also be included:

[0083] Step 160: modify the data in the abnormal data column based on the reference dictionary.

[0084] In this example, for value pairs that appear frequently, when they are greater than a credible threshold, a reference dictionary can be formed for reference correction of abnormal value pairs.

[0085] In an exemplary embodiment:

[0086] Determine an adjacent node of a node in the relationship network corresponding to the abnormal data column;

[0087] Querying the reference dictionary for value pairs of the data columns corresponding to the adjacent nodes;

[0088] The value pairs of the data columns corresponding to the adjacent nodes in the reference dictionary are used as correction data to cover the data in the abnormal data column.

[0089] Still reference Figure 2 As shown in the relationship network, as mentioned above, it can be determined that column 2 is an abnormal data column, while columns 1, 3, and 4 are all normal data columns; therefore, the value pairs of columns 1, 3, and 4 in the reference dictionary can be used as reference data to correct the abnormal data in column 2.

[0090] Among them, since there are multiple reference data, the correction can be made based on preset rules. For example, a reference data is randomly selected to cover the abnormal data in the abnormal data column. For another example, multiple reference data are combined to first obtain a comprehensive reference data, and then the comprehensive reference data covers the abnormal data.

[0091] For abnormal data that failed to be corrected, the abnormal data that failed to be corrected can be recorded and abnormal suggestions can be given, such as the reason for the correction failure, such as the lack of reference data for correction;

[0092] For the abnormal data that has been corrected successfully, the corrected abnormal data is removed and the next abnormal data is corrected until there is no abnormal data column that can be corrected. Specifically, it includes:

[0093] After the data in the abnormal data column is corrected, steps 110 to 160 are re-executed until there is no abnormal data column.

[0094] In summary, the embodiments of this specification utilize the low co-occurrence frequency of abnormal data in the data table to design a new abnormal data detection scheme, which quickly and accurately detects abnormal data from the data table. In addition, a reference dictionary formed by value pairs with high co-occurrence frequency is combined to provide a reference basis for the correction of abnormal value pairs. The entire process can be automatically executed, which improves the efficiency of abnormal detection and abnormal correction.

[0095] Please refer to the following Figure 3 The schematic diagram of the whole process shown is used as an example to illustrate. The processing end first needs to calculate the credible weight of the data column in the data table to be detected, and calculate the co-occurrence frequency of each value pair in the data column. Then, on the one hand, the value pairs whose co-occurrence frequency is higher than the preset threshold and whose credible weight is greater than the credible threshold can be stored in the reference dictionary as reference value pairs; on the other hand, the value pairs whose co-occurrence frequency is lower than the preset threshold can be determined as abnormal value pairs. Next, a relationship network is constructed with the data column as the node, the abnormal value pair as the connection relationship, and the credible weight as the node weight; based on the node weight, the abnormal score of each node in the relationship network is calculated; the data column corresponding to the node whose abnormal score is greater than the threshold is determined as an abnormal data column. The abnormal data column can then be corrected using the reference dictionary.

[0096] After correcting the abnormal data column, you can refresh the abnormal value pairs and update the relationship network (i.e., re-execute the above steps); determine whether there are correctable abnormal value pairs (i.e., they can be corrected using the reference dictionary), and if so, continue to correct them using the reference dictionary; if there are no correctable abnormal value pairs, exit the abnormal data detection.

[0097] Corresponding to the above-mentioned abnormal data detection method embodiment, this specification also provides an abnormal data detection device embodiment. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device in which it is located reading the corresponding computer business program instructions in the non-volatile memory into the memory for execution. From the hardware level, such as Figure 4 The figure is a hardware structure diagram of the device where the abnormal data detection device of this manual is located, except Figure 4 In addition to the processor, network interface, memory and non-volatile memory shown, the device in the embodiment where the apparatus is located generally detects actual functions based on abnormal data and may also include other hardware, which will not be described in detail.

[0098] See also Figure 5 , is a module diagram of an abnormal data detection device provided in an embodiment of this specification, and the device corresponds to Figure 1 In the embodiment shown, the device comprises:

[0099] The first calculation module 310 is used to calculate the trustworthiness weight of the data column in the data table to be detected, and the co-occurrence frequency of each value pair in the data column; wherein the trustworthiness weight represents the trustworthiness of the data in the data column, and the value pair includes a combination of two values ​​of different data columns in the same data row;

[0100] A first determination module 320, configured to determine the value pairs whose co-occurrence frequency is lower than a preset threshold as abnormal value pairs;

[0101] A network construction module 330, for constructing a relationship network with data columns as nodes, abnormal value pairs as connection relationships, and credible weights as node weights;

[0102] A second calculation module 340, configured to calculate an abnormality score of each node in the relationship network based on the node weight;

[0103] The second determination module 350 is used to determine the data column corresponding to the node with the highest anomaly score as an abnormal data column; wherein the data in the abnormal data column is abnormal data.

[0104] Optionally, the first calculation module 310 includes:

[0105] The third calculation module is used to calculate the data distribution of the data column in the data table to be detected;

[0106] The third determination module is used to determine the trustworthy weight corresponding to the preset distribution rule as the trustworthy weight of the data column when the data distribution conforms to the preset distribution rule.

[0107] Optionally, the first calculation module 310 includes:

[0108] The third calculation module is used to calculate the value type of the data column in the data table to be detected;

[0109] The third determination module is used to determine the trustworthy weight corresponding to the value type as the trustworthy weight of the data column.

[0110] Optionally, the second calculation module 340 includes:

[0111] A third calculation module is used to calculate, for each node, the sum of the node weights of the adjacent nodes connected to the node;

[0112] The third determination module is used to determine the sum of the node weights as the abnormality score of the node.

[0113] Optionally, the device further comprises:

[0114] The storage module is used to store the value pairs whose co-occurrence frequency is higher than a preset threshold and whose credible weight is greater than the credible threshold as reference value pairs in a reference dictionary.

[0115] Optionally, the device further comprises:

[0116] A correction module is used to correct the data in the abnormal data column based on the reference dictionary.

[0117] Optionally, the device further comprises:

[0118] The iterative control module is used to re-execute the first calculation module 310 to the correction module after the correction module until there is no abnormal data column.

[0119] Optionally, the correction module includes:

[0120] A fourth determination module, used to determine an adjacent node of a node in the relationship network corresponding to the abnormal data column;

[0121] A query module, used for querying the reference dictionary for value pairs of the data columns corresponding to the adjacent nodes;

[0122] The covering module is used to use the value pairs of the data columns corresponding to the adjacent nodes in the reference dictionary as correction data to cover the data in the abnormal data column.

[0123] Optionally, the first calculation module 310 is further configured to calculate the co-occurrence frequency of each value pair in a data column of enumerated values.

[0124] Optionally, the second determining module 350 is further configured to determine the data column corresponding to the node with the largest anomaly score as the abnormal data column.

[0125] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0126] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0127] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0128] above Figure 5 The internal functional modules and structural schematic diagram of the abnormal data detection device are described. Its actual execution subject can be an electronic device, including:

[0129] processor;

[0130] a memory for storing processor-executable instructions;

[0131] The processor is configured to execute the abnormal data detection method described in any of the aforementioned embodiments.

[0132] In the above-mentioned embodiment of the electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc., and the aforementioned memory can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk or a solid-state drive. The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0133] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0134] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention disclosed herein. The specification is intended to cover any variations, uses, or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not disclosed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0135] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims

1. A method for detecting abnormal data, characterized in that: The method comprises: Step 110, calculating the trust weight of the data column in the data table to be detected, and the co-occurrence frequency of each value pair in the data column; wherein the trust weight represents the trustworthiness of the data in the data column, and the value pair includes a combination of two values ​​of different data columns in the same data row; Step 120, determining the value pairs whose co-occurrence frequency is lower than a preset threshold as abnormal value pairs; Step 130, constructing a relationship network with data columns as nodes, abnormal value pairs as connection relationships, and credible weights as node weights; Step 140, calculating the abnormality score of each node in the relationship network based on the node weight; Step 150: determine the data column corresponding to the node whose abnormal score is greater than the threshold as an abnormal data column; wherein the data in the abnormal data column is abnormal data.

2. The method according to claim 1, characterized in that: The calculating of the trustworthy weight of the data column in the data table to be detected includes: Calculate the data distribution of the data columns in the data table to be detected; When the data distribution conforms to a preset distribution rule, the credible weight corresponding to the preset distribution rule is determined as the credible weight of the data column.

3. The method according to claim 1, characterized in that The calculating of the trustworthy weight of the data column in the data table to be detected includes: Calculate the value type of the data column in the data table to be detected; The trustworthy weight corresponding to the value type is determined as the trustworthy weight of the data column.

4. The method according to claim 1, characterized in that: The calculating, based on the node weight, an abnormality score of each node in the relationship network includes: For each node, calculate the sum of the node weights of the adjacent nodes connected to it; The sum of the node weights is determined as the abnormality score of the node.

5. The method according to claim 1, characterized in that The method further comprises: The value pairs whose co-occurrence frequency is higher than a preset threshold and whose credibility weight is greater than the credibility threshold are stored in the reference dictionary as reference value pairs.

6. The method according to claim 5, characterized in that The method further comprises: Step 160: modify the data in the abnormal data column based on the reference dictionary.

7. The method according to claim 6, characterized in that The method further comprises: After the data in the abnormal data column is corrected, steps 110 to 160 are re-executed until there is no abnormal data column.

8. The method according to claim 6, characterized in that The step of correcting the data in the abnormal data column based on the reference dictionary includes: Determine an adjacent node of a node in the relationship network corresponding to the abnormal data column; Querying the reference dictionary for value pairs of the data columns corresponding to the adjacent nodes; The value pairs of the data columns corresponding to the adjacent nodes in the reference dictionary are used as correction data to cover the data in the abnormal data column.

9. The method according to claim 1, characterized in that: The calculating the co-occurrence frequency of each value pair in the data column includes: For a data column with enumerated values, calculate the co-occurrence frequency of each value pair in the data column.

10. The method according to claim 1, characterized in that The step of determining the data column corresponding to the node whose abnormal score is greater than the threshold as the abnormal data column includes: The data column corresponding to the node with the largest anomaly score is determined as the abnormal data column.

11. An abnormal data detection device, characterized in that: The device comprises: A first calculation module is used to calculate the trustworthiness weight of a data column in a data table to be detected and the co-occurrence frequency of each value pair in the data column; wherein the trustworthiness weight represents the trustworthiness of the data in the data column, and the value pair includes a combination of two values ​​of different data columns in the same data row; A first determination module, configured to determine the value pairs whose co-occurrence frequency is lower than a preset threshold as abnormal value pairs; A network construction module is used to construct a relationship network with data columns as nodes, abnormal value pairs as connection relationships, and trusted weights as node weights; A second calculation module, used for calculating the abnormality score of each node in the relationship network based on the node weight; The second determination module is used to determine the data column corresponding to the node whose abnormal score is greater than the threshold as an abnormal data column; wherein the data in the abnormal data column is abnormal data.

12. The device according to claim 11, characterized in that The first calculation module includes: The third calculation module is used to calculate the data distribution of the data column in the data table to be detected; The third determination module is used to determine the trustworthy weight corresponding to the preset distribution rule as the trustworthy weight of the data column when the data distribution conforms to the preset distribution rule.

13. The device according to claim 11, characterized in that The first calculation module includes: The third calculation module is used to calculate the value type of the data column in the data table to be detected; the third determination module is used to determine the trustworthy weight corresponding to the value type as the trustworthy weight of the data column.

14. The device according to claim 11, characterized in that The second calculation module includes: A third calculation module is used to calculate, for each node, the sum of the node weights of the adjacent nodes connected to the node; The third determination module is used to determine the sum of the node weights as the abnormality score of the node.

15. The device according to claim 11, characterized in that The device also includes: The storage module is used to store the value pairs whose co-occurrence frequency is higher than a preset threshold and whose credible weight is greater than the credible threshold as reference value pairs in a reference dictionary.

16. The device according to claim 15, characterized in that The device also includes: The correction module is used to correct the data in the abnormal data column based on the reference dictionary.

17. The device according to claim 16, characterized in that The device also includes: An iterative control module is used to re-execute the first calculation module to the correction module after the correction module until there is no abnormal data column.

18. The device according to claim 16, characterized in that The correction module comprises: A fourth determination module, used to determine an adjacent node of a node in the relationship network corresponding to the abnormal data column; A query module, used for querying the reference dictionary for value pairs of the data columns corresponding to the adjacent nodes; The covering module is used to use the value pairs of the data columns corresponding to the adjacent nodes in the reference dictionary as correction data to cover the data in the abnormal data column.

19. The device according to claim 11, characterized in that The first calculation module is also used for: For a data column with enumerated values, calculate the co-occurrence frequency of each value pair in the data column.

20. The device according to claim 11, characterized in that The second determination module is further configured to determine the data column corresponding to the node with the largest anomaly score as the abnormal data column.

21. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1-10.

Citation Information

Cited By

  • Combat action associated data quality detection method based on co-occurrence matrix

    CN122758307A