Data risk detection method and device and computer equipment

By obtaining and counting the amount of data from the target database, and using risk thresholds for multi-dimensional detection, the problem of unsatisfactory data risk detection efficiency and quality in big data is solved, and efficient and accurate data risk detection is achieved.

CN118673014APending Publication Date: 2024-09-20SUZHOU LANGDONG NET TEC CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411018757.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the process of using big data, the amount of data is huge and diverse, which requires testers to have an in-depth understanding of the business in various dimensions, which increases business capability requirements and makes it difficult to meet the efficiency and quality requirements of data detection.

Method used

By obtaining target data from the target database, counting data volumes in different dimensions, and comparing with preset risk thresholds, risk signals are generated to achieve multi-dimensional data risk detection and reduce the business capability requirements of testers.

Benefits of technology

It improves the accuracy and efficiency of data risk detection, reduces the need for testers to understand data strategies in various dimensions, and simplifies the data risk detection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673014A
    Figure CN118673014A
Patent Text Reader

Abstract

The invention relates to a data risk detection method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of obtaining target data from a target database; wherein the target data comprises business data and a corresponding time stamp; counting the data volume of data of different dimensions in the target data; wherein the dimension comprises at least one of the following: the data volume of newly added data in unit time, the data volume of repeated data in the newly added data, the data volume of valid data in the newly added data, the invalid data volume in the newly added data, the total data volume of the valid data and the data volume of error data in a database; the valid data comprises data conforming to a preset service strategy; and comparing the data volume of the data of each dimension by using a preset risk threshold of each dimension to obtain a risk result of the data of each dimension in the target data. By adopting the method, the data risk detection efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a data risk detection method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the continuous development of big data, data faces many problems in the process of use, such as too much duplicate data and garbled data being stored. Therefore, these problematic data must be effectively detected. However, due to the huge amount of data and the wide variety of data, the data business in each dimension is significantly different, which requires testers to have an in-depth understanding of the business in each dimension when performing data problem detection. This puts extremely high demands on the business capabilities of testers, resulting in the efficiency and quality of the test often being difficult to meet the needs of data detection. Summary of the invention

[0003] Based on this, it is necessary to provide a data risk detection method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.

[0004] In a first aspect, the present application provides a data risk detection method. The method comprises:

[0005] Acquire target data from a target database; wherein the target data includes business data and corresponding time stamps;

[0006] Counting the data volume of different dimensional data in the target data; wherein the dimension includes at least one of the following: the data volume of newly added data per unit time, the data volume of duplicate data in the newly added data, the data volume of valid data in the newly added data, the data volume of invalid data in the newly added data, the total data volume of valid data and the data volume of erroneous data in the database; the valid data includes data that complies with preset business policies; the erroneous data includes data that does not comply with data policies;

[0007] By using the preset risk thresholds of different dimensions, the data volumes of the data of different dimensions are compared respectively to obtain the risk results of the data of different dimensions in the target data.

[0008] In one embodiment, before acquiring the target data from the target database, the method further includes:

[0009] Obtaining initial business data and corresponding time stamps from the target data source;

[0010] Using a preset data constraint strategy, the initial business data is matched to obtain target business data;

[0011] The target business data and the corresponding time stamp are stored in the target database.

[0012] In one embodiment, counting the data volume of data of different dimensions in the target data includes:

[0013] Using the time stamp, searching and obtaining the amount of new data within the unit time;

[0014] Matching the newly added data to obtain the amount of duplicate data in the newly added data;

[0015] Using a preset business strategy, the newly added data is matched to obtain the amount of valid data and the amount of invalid data in the newly added data;

[0016] Using a preset data strategy, the newly added data is matched to obtain the amount of erroneous data in the newly added data;

[0017] The total data volume of the valid data is obtained according to the data volume of the valid data in the newly added data and the data volume of the historical valid data.

[0018] In one embodiment, matching the newly added data to obtain the amount of duplicate data in the newly added data includes:

[0019] Repeat matching is performed on the newly added data to obtain a first data amount of repeated data in the newly added data;

[0020] Using the historical target data, matching the newly added data to obtain a second amount of repeated data in the newly added data;

[0021] The amount of duplicate data in the newly added data is determined according to the first data amount and the second data amount.

[0022] In one embodiment, the method further comprises:

[0023] When it is detected that the data of different dimensions have risks, a first risk signal of the corresponding dimensional data is generated;

[0024] When the same dimension data has risks within a preset number of consecutive unit times, a second risk signal corresponding to the dimension data is generated.

[0025] In one embodiment, after generating a risk signal, the method includes:

[0026] The dimensional data corresponding to the risk signal is searched using a preset search strategy to obtain the risk data in the dimensional data.

[0027] In a second aspect, the present application also provides a data risk detection device. The device comprises:

[0028] A data acquisition module, used to acquire target data from a target database; wherein the target data includes business data and corresponding time stamps;

[0029] A data statistics module is used to count the data volume of different dimensional data in the target data; wherein the dimension includes at least one of the following: the data volume of newly added data per unit time, the data volume of duplicate data in the newly added data, the data volume of valid data in the newly added data, the data volume of invalid data in the newly added data, the total data volume of valid data and the data volume of error data in the database; the valid data includes data that complies with the preset business policy; the error data includes data that does not comply with the data policy;

[0030] The risk detection module is used to compare the data volumes of the data of different dimensions by using the preset risk thresholds of different dimensions to obtain the risk results of the data of different dimensions in the target data.

[0031] In one embodiment, the data acquisition module includes:

[0032] The data acquisition submodule is used to obtain the initial business data and the corresponding time stamp from the target data source;

[0033] A data cleaning submodule is used to match the initial business data using a preset data constraint strategy to obtain target business data;

[0034] The data storage submodule is used to store the target business data and the corresponding time stamp in the target database.

[0035] In one embodiment, the data statistics module is further used for:

[0036] Using the time stamp, searching and obtaining the amount of new data within the unit time;

[0037] Matching the newly added data to obtain the amount of duplicate data in the newly added data;

[0038] Using a preset business strategy, the newly added data is matched to obtain the amount of valid data and the amount of invalid data in the newly added data;

[0039] Using a preset data strategy, the newly added data is matched to obtain the amount of erroneous data in the newly added data;

[0040] The total data volume of the valid data is obtained according to the data volume of the valid data in the newly added data and the data volume of the historical valid data.

[0041] In one embodiment, the data statistics module includes:

[0042] A first repetition submodule, used for performing repetition matching on the newly added data to obtain a first data amount of repeated data in the newly added data;

[0043] A second repetition submodule is used to match the newly added data using the historical target data to obtain a second data amount of repeated data in the newly added data;

[0044] The target duplication submodule determines the amount of duplicate data in the newly added data according to the first data amount and the second data amount.

[0045] In one embodiment, the device further comprises:

[0046] A risk signal generating module, configured to generate a first risk signal corresponding to the dimensional data when a risk is detected in the data of different dimensions;

[0047] The risk signal generating module is further configured to generate a second risk signal for the corresponding dimensional data when the same dimensional data has a risk in a unit time for a preset number of consecutive times.

[0048] In one embodiment, the risk signal generating module includes:

[0049] The risk data search submodule is used to use a preset search strategy to search the dimensional data corresponding to the risk signal to obtain the risk data in the dimensional data.

[0050] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the data risk detection method as described in any one of the embodiments of the present disclosure is implemented.

[0051] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the data risk detection method as described in any one of the embodiments of the present disclosure is implemented.

[0052] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the data risk detection method as described in any one of the embodiments of the present disclosure is implemented.

[0053] The above-mentioned data risk detection method, device, computer equipment, storage medium and computer program product obtain the risk results of each dimension of data by counting the data volume of different dimensional data in the target data and comparing the data volume of the corresponding dimensional data with the risk threshold of different dimensions. By dividing the target data into data of different dimensions and counting the data volume, the data is subjected to risk detection in multiple dimensions, thereby improving the accuracy of data risk detection; at the same time, through the preset risk threshold of each dimension, the data of each dimension is automatically detected, thereby improving the efficiency of data risk detection. At the same time, through the risk results of each dimensional data, the tester only needs to understand the risk rules of a single dimension, which greatly reduces the requirements for the business capabilities of the tester and further improves the accuracy of data risk detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] FIG1 is a schematic diagram of a flow chart of a data risk detection method in one embodiment;

[0055] FIG2 is a schematic diagram of a process of acquiring target data in one embodiment;

[0056] FIG3 is a schematic diagram of a process for obtaining data amounts in each dimension in one embodiment;

[0057] FIG4 is a schematic diagram of a process for obtaining the amount of duplicate data in one embodiment;

[0058] FIG5 is a schematic diagram of a process of generating a risk signal in one embodiment;

[0059] FIG6 is a structural block diagram of a data risk detection device in one embodiment;

[0060] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.

[0062] In one embodiment, as shown in FIG1 , a data risk detection method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0063] Step S100, obtaining target data from a target database; wherein the target data includes business data and a corresponding time stamp.

[0064] In an exemplary embodiment, the target database may include obtaining data and corresponding time stamps from multiple data sources, cleaning the obtained data and time stamps, and storing the cleaned data and corresponding time stamps in the target database. The time stamp may include the time when the data source generates the data, and the value of the time stamp may be controlled according to the statistical unit time, for example, if the unit time is every day, the time stamp may only record the stamp of a certain day, etc.

[0065] In an exemplary embodiment, the target data may include data corresponding to a time selected according to a time stamp, etc.

[0066] Step S200, counting the data volume of data of different dimensions in the target data; wherein the dimensions include at least one of the following: the data volume of new data per unit time, the data volume of duplicate data in the new data, the data volume of valid data in the new data, the data volume of invalid data in the new data, the total data volume of valid data and the data volume of erroneous data in the database; the valid data includes data that complies with preset business policies; the erroneous data includes data that does not comply with data policies.

[0067] In an exemplary embodiment, the data volume of different dimensional data in the target data can be screened and counted by preset strategies of different dimensions. Among them, the data and data volume of the newly added data in a unit time can be obtained by screening and counting through time tags; the repeated data in the newly added data and the corresponding data volume can be further obtained by performing repeatability detection on the newly added data; whether the newly added data is valid data can be determined by preset business policies; specifically, valid data can include data that conforms to the data preset type; for example, data character type, other data rules (such as the sum of data is not greater than a preset threshold, the proportion of data is not greater than 100%, etc.); it can be understood that the invalid data and the data volume of the invalid data can be obtained by excluding duplicate data and valid data from the newly added data; the total data volume of the valid data can be obtained through historical valid data and newly added valid data; wherein, the error data can include data that does not conform to the format preset by the database, for example, garbled data, etc.

[0068] In an exemplary embodiment, the business policy may include constraints on business data, for example, the proportion shall not exceed 100%, the transfer shall not be greater than the amount of resources owned by the business data, and the like.

[0069] Step S300, using the preset risk thresholds of each dimension, respectively compare the data volumes of the data of each dimension to obtain the risk results of the data of each dimension in the target data.

[0070] In an exemplary embodiment, a risk threshold range may be set for the data volume of each dimension. When the data volume of a different dimension is outside the threshold range, it is considered that the data of that dimension has quality problems.

[0071] In an exemplary embodiment, when the amount of data in different dimensions is not within the risk threshold, it is considered that there are quality problems with the data in this dimension, and the tester of the corresponding dimension is reminded to perform risk checks, etc. It is understandable that when the amount of data in different dimensions is not counted, the tester needs to test the data in each dimension, that is, the tester needs to be familiar with the data strategies of all dimensions, and by counting the amount of data in different dimensions and classifying the data, the tester can only understand the data rules of a single dimension, and then complete the detection of the data in a single dimension, etc.

[0072] In the above data risk detection method, the data volume of different dimensional data in the target data is counted, and the risk threshold of different dimensions is used to compare with the data volume of the corresponding dimensional data to obtain the risk results of each dimensional data. By dividing the target data into data of different dimensions and counting the data volume, the data is risk-detected in multiple dimensions, thereby improving the accuracy of data risk detection; at the same time, through the preset risk threshold of each dimension, the data of each dimension is automatically detected, thereby improving the efficiency of data risk detection. At the same time, through the risk results of each dimensional data, the tester only needs to understand the risk rules of a single dimension, which greatly reduces the requirements for the business capabilities of the tester and further improves the accuracy of data risk detection.

[0073] In one embodiment, as shown in FIG2 , before acquiring the target data from the target database, the method further includes:

[0074] Step S101, obtaining initial business data and corresponding time stamps from a target data source.

[0075] In an exemplary embodiment, the target data source may include data sources corresponding to multiple businesses, for example, there are multiple products, each data source corresponds to the real-time status of each product, etc. The time tag may be used to characterize the time when the data source obtains the corresponding data.

[0076] Step S102: using a preset data constraint strategy, matching the initial business data to obtain target business data.

[0077] In an exemplary embodiment, the constraint strategy may include cleaning the initial business data of abnormal data (for example, data type error, garbled data, data not complying with database preset rules, etc.) to obtain target business data, etc.

[0078] Step S103: storing the target service data and the corresponding time stamp in the target database.

[0079] In an exemplary embodiment, the cleaned target business data and the corresponding time stamp may be stored in a target database awaiting data risk detection, etc.

[0080] In this embodiment, by obtaining business data from the target database and using the data constraint strategy, the business data is cleaned and the cleaned data is stored in the target database. Through the data constraint strategy, the target data can be effectively screened out, and the data that does not meet the standards can be eliminated, thereby improving the data quality. At the same time, through the data constraint strategy, the consistency and integrity of the business data can be ensured, and the analysis errors caused by inconsistent data can be avoided. In addition, automated data matching and storage reduce manual intervention and improve the efficiency of data storage.

[0081] In one embodiment, as shown in FIG3 , the counting of the data volume of each dimension of the target data includes:

[0082] Step S201, using the time tag, searching and obtaining the amount of new data within the unit time.

[0083] In an exemplary embodiment, time stamps can be used to obtain the amount of new data in a unit time; for example, the amount of new data added on the day can be obtained through time stamps; it can be understood that the unit time can be set as an interval time, that is, the amount of new data added per unit time is obtained every unit time.

[0084] Step S202: matching the newly added data to obtain the amount of duplicate data in the newly added data.

[0085] In an exemplary embodiment, the repeated data may include two sets of data repeated in the newly added data, or the newly added data repeated in the historical newly added data, etc.

[0086] Step S203: Match the newly added data using a preset business policy to obtain the amount of valid data and the amount of invalid data in the newly added data.

[0087] In an exemplary embodiment, the business policy may include data constraints corresponding to the business data, such as the transfer amount cannot be greater than the owned amount, etc. If the data constraints are met, the data is valid, and if the data constraints are not met, the data is invalid, i.e., discarded data.

[0088] Step S204: using a preset data strategy, matching the newly added data to obtain the amount of erroneous data in the newly added data.

[0089] In an exemplary embodiment, the data policy may include data constraints corresponding to the database, for example, data type constraints, etc. Through the data policy, data that does not conform to the database, such as garbled data, etc., is screened out.

[0090] Step S205, obtaining the total data volume of the valid data according to the data volume of the valid data in the newly added data and the data volume of the historical valid data.

[0091] In an exemplary embodiment, the total data volume of valid data may include the total volume of historical and current valid data, that is, the total volume of valid data obtained by adding the valid data volume of newly added data to the historical valid data volume.

[0092] In this embodiment, different dimensions of data are obtained in different ways. The ability to obtain data of different dimensions through multiple ways can more comprehensively reflect the changes in data. At the same time, the data of different dimensions can be screened in an automated way, which also facilitates the subsequent risk detection of data and improves the efficiency of obtaining data of different dimensions and risk detection.

[0093] In one embodiment, as shown in FIG4 , matching the newly added data to obtain the amount of duplicate data in the newly added data includes:

[0094] Step S211: perform duplicate matching on the newly added data to obtain a first data volume of duplicate data in the newly added data.

[0095] In an exemplary embodiment, the duplicate matching of the newly added data may include searching for duplicate data from the newly added data, that is, there are multiple identical data in the newly added data.

[0096] Step S212: Use the historical target data to match the newly added data to obtain a second data volume of repeated data in the newly added data.

[0097] In an exemplary embodiment, by matching the newly added data with the historical target data, repeated data in the newly added data and the historical target data can be obtained.

[0098] Step S213: Determine the amount of duplicate data in the newly added data according to the first data amount and the second data amount.

[0099] In an exemplary embodiment, the first data volume may include duplicate data of the newly added data itself, and the second data volume may include duplicate data of the newly added data and historical target data. By merging the first data volume and the second data volume, the volume of duplicate data can be obtained.

[0100] In this embodiment, the amount of repeated data in the newly added data is obtained based on the repeated data of the newly added data itself and the newly added data and the historical target data, so as to ensure the accuracy of repeated data in the newly added data through the first data amount and the second data amount, and further improve the accuracy of data risk detection.

[0101] In one embodiment, as shown in FIG5 , the method further includes:

[0102] Step S401: when it is detected that each dimension data has a risk, a first risk signal corresponding to the dimension data is generated.

[0103] In an exemplary embodiment, the existence of risk in each dimension data may include that each dimension data is not within a preset risk threshold, and the data is determined to be at risk. The first risk signal library may include prompting the tester to perform problem detection on the dimension data.

[0104] Step S402 : when the same dimension data has risks within a preset number of consecutive unit times, a second risk signal corresponding to the dimension data is generated.

[0105] In an exemplary embodiment, the existence of risk in the same dimensional data within a unit time for a consecutive preset number of times may include the existence of risk in the same dimensional data multiple times. For example, if the unit time is every day, the existence of risk in the dimensional data multiple times may include the existence of problems in the dimensional data for N consecutive days. The second risk signal may include risk detection of the dimensional data, or detection of the data source corresponding to the risk data, etc.

[0106] In this embodiment, by judging the risk results, a first risk signal and a second risk signal are generated, which can achieve hierarchical management of risks through the hierarchical setting of the first and second risk signals, thereby facilitating the effective allocation of resources and the formulation of response strategies.

[0107] In one embodiment, after generating the second risk signal, the method includes:

[0108] The dimensional data corresponding to the risk signal is searched using a preset search strategy to obtain the risk data in the dimensional data.

[0109] In an exemplary embodiment, the search strategy may include a tester searching for dimensional data, etc. In another exemplary embodiment, the tester may only detect data of a single dimension, etc.

[0110] In this embodiment, a preset search strategy is used to perform in-depth detection on dimensional data with risks. Through more in-depth detection, the accuracy of data risk detection is improved. At the same time, only the dimensional data with risks is detected, which reduces the pressure on testers and improves the accuracy of data risk detection.

[0111] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0112] Based on the same inventive concept, the embodiment of the present application also provides a data risk detection device for implementing the data risk detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the one or more data risk detection devices provided below can refer to the limitations of the data risk detection method above, and will not be repeated here.

[0113] In one embodiment, as shown in FIG6 , a data risk detection device 100 is provided, comprising: a data acquisition module 101, a data statistics module 102 and a risk detection module 103, wherein:

[0114] A data acquisition module, used to acquire target data from a target database; wherein the target data includes business data and corresponding time stamps;

[0115] A data statistics module is used to count the data volume of different dimensional data in the target data; wherein the dimension includes at least one of the following: the data volume of newly added data per unit time, the data volume of duplicate data in the newly added data, the data volume of valid data in the newly added data, the data volume of invalid data in the newly added data, the total data volume of valid data and the data volume of error data in the database; the valid data includes data that complies with the preset business policy; the error data includes data that does not comply with the data policy;

[0116] The risk detection module is used to compare the data volumes of the data of different dimensions by using the preset risk thresholds of different dimensions to obtain the risk results of the data of different dimensions in the target data.

[0117] In one embodiment, the data acquisition module includes:

[0118] The data acquisition submodule is used to obtain the initial business data and the corresponding time stamp from the target data source;

[0119] A data cleaning submodule is used to match the initial business data using a preset data constraint strategy to obtain target business data;

[0120] The data storage submodule is used to store the target business data and the corresponding time stamp in the target database.

[0121] In one embodiment, the data statistics module is further used for:

[0122] Using the time stamp, searching and obtaining the amount of new data within the unit time;

[0123] Matching the newly added data to obtain the amount of duplicate data in the newly added data;

[0124] Using a preset business strategy, the newly added data is matched to obtain the amount of valid data and the amount of invalid data in the newly added data;

[0125] Using a preset data strategy, the newly added data is matched to obtain the amount of erroneous data in the newly added data;

[0126] The total data volume of the valid data is obtained according to the data volume of the valid data in the newly added data and the data volume of the historical valid data.

[0127] In one embodiment, the data statistics module includes:

[0128] A first repetition submodule, used for performing repetition matching on the newly added data to obtain a first data amount of repeated data in the newly added data;

[0129] A second repetition submodule is used to match the newly added data using the historical target data to obtain a second data amount of repeated data in the newly added data;

[0130] The target duplication submodule determines the amount of duplicate data in the newly added data according to the first data amount and the second data amount.

[0131] In one embodiment, the device further comprises:

[0132] A risk signal generating module, configured to generate a first risk signal corresponding to the dimensional data when a risk is detected in the data of different dimensions;

[0133] The risk signal generating module is further configured to generate a second risk signal for the corresponding dimensional data when the same dimensional data has a risk in a unit time for a preset number of consecutive times.

[0134] In one embodiment, the risk signal generating module includes:

[0135] The risk data search submodule is used to use a preset search strategy to search the dimensional data corresponding to the risk signal to obtain the risk data in the dimensional data.

[0136] Each module in the risk detection device for the above data can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0137] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store target data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a data risk detection method is implemented.

[0138] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0139] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0140] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0141] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0142] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data risk detection method, characterized in that: The method comprises: Acquire target data from a target database; wherein the target data includes business data and corresponding time stamps; Counting the data volume of different dimensional data in the target data; wherein the dimension includes at least one of the following: the data volume of newly added data per unit time, the data volume of duplicate data in the newly added data, the data volume of valid data in the newly added data, the data volume of invalid data in the newly added data, the total data volume of valid data and the data volume of erroneous data in the database; the valid data includes data that complies with preset business policies; the erroneous data includes data that does not comply with data policies; By using the preset risk thresholds of different dimensions, the data volumes of the data of different dimensions are compared respectively to obtain the risk results of the data of different dimensions in the target data.

2. The method according to claim 1, characterized in that Before acquiring the target data from the target database, the method further includes: Obtaining initial business data and corresponding time stamps from the target data source; Using a preset data constraint strategy, the initial business data is matched to obtain target business data; The target business data and the corresponding time stamp are stored in the target database.

3. The method according to claim 1, characterized in that: The counting of the data volume of different dimensional data in the target data includes: Using the time stamp, searching and obtaining the amount of new data within the unit time; Matching the newly added data to obtain the amount of duplicate data in the newly added data; Using a preset business strategy, the newly added data is matched to obtain the amount of valid data and the amount of invalid data in the newly added data; Using a preset data strategy, the newly added data is matched to obtain the amount of erroneous data in the newly added data; The total data volume of the valid data is obtained according to the data volume of the valid data in the newly added data and the data volume of the historical valid data.

4. The method according to claim 3, characterized in that The matching the newly added data to obtain the amount of repeated data in the newly added data includes: Repeat matching is performed on the newly added data to obtain a first data amount of repeated data in the newly added data; Using the historical target data, matching the newly added data to obtain a second amount of repeated data in the newly added data; The amount of duplicate data in the newly added data is determined according to the first data amount and the second data amount.

5. The method according to claim 1, characterized in that: The method further comprises: When it is detected that the data of different dimensions have risks, a first risk signal of the corresponding dimensional data is generated; When the same dimension data has risks within a preset number of consecutive unit times, a second risk signal corresponding to the dimension data is generated.

6. The method according to claim 5, characterized in that After generating a risk signal, including: The dimensional data corresponding to the risk signal is searched using a preset search strategy to obtain the risk data in the dimensional data.

7. A data risk detection device, characterized in that: The device comprises: A data acquisition module, used to acquire target data from a target database; wherein the target data includes business data and a corresponding time stamp; A data statistics module is used to count the data volume of different dimensional data in the target data; wherein the dimension includes at least one of the following: the data volume of newly added data per unit time, the data volume of duplicate data in the newly added data, the data volume of valid data in the newly added data, the data volume of invalid data in the newly added data, the total data volume of valid data and the data volume of error data in the database; the valid data includes data that complies with the preset business policy; the error data includes data that does not comply with the data policy; The risk detection module is used to compare the data volumes of the data of different dimensions by using the preset risk thresholds of different dimensions to obtain the risk results of the data of different dimensions in the target data.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Risk control method and risk control apparatus

    CN105844475A

  • Data processing method and data processing platform

    CN107103025A

  • Data operation and maintenance fault analysis system and method

    CN117056109A

  • Early warning threshold generation method and device, computer equipment and storage medium

    CN118396369A

  • System And Method For Detecting Anomalies In Market Data

    US20080103855A1