Risk control index data inspection method, device and equipment and storage medium

By reading the operation process and result record data of risk control indicators, judging calculation abnormalities and alerting, the problem of difficult to detect incorrect calculation of risk control indicators is solved, and the accuracy of risk control decisions is improved.

CN119624130APending Publication Date: 2025-03-14LIANLIAN HANGZHOU INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411802298.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

During the calculation of risk control indicators, problems such as message loss, repeated message sending and data streaming abnormalities are prone to occur, which leads to errors in the calculation of indicators and is difficult to detect, affecting the accuracy of risk control decisions.

Method used

By obtaining inspection tasks for target risk control indicators, reading record data from the preset operation process database and operation result database based on inspection rules, determining whether the indicator calculation is abnormal, and alarming is issued when abnormal.

Benefits of technology

It realizes timely alarms when indicator calculation abnormalities are not calculated, reminds technicians to deal with and correct indicators in a timely manner, and improves the accuracy and reliability of risk control decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119624130A_ABST
    Figure CN119624130A_ABST
Patent Text Reader

Abstract

The invention discloses a risk control index data inspection method, device and equipment and a storage medium, and relates to the technical field of risk control data processing, and the method comprises the steps: obtaining an index inspection task corresponding to a target risk control index, reading operation process record data and operation result record data from a preset index operation process database and a preset index operation result database based on an index inspection rule in the index inspection task; and based on the operation process record data and the operation result record data, determining whether the target risk control index has an index calculation anomaly, and when the target risk control index has the index calculation anomaly, giving an alarm based on an alarm mode in the index inspection task. Therefore, the risk control index with the problem can be found in time, so that the problem can be corrected in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of risk control data processing technology, and in particular to a risk control indicator data inspection method, device, equipment and storage medium. Background Art

[0002] Risk control indicator data is very important in the risk control process. When there are problems with the accuracy and timeliness of risk control indicators, it will directly affect the risk assessment and decision-making of the risk control decision engine on merchants, transactions, credit, etc., thus causing production problems. Currently, risk control relies on the calculation of stream-processed messages in memory and saves them in the redis (remote dictionary server) database. During the calculation process, if there are message loss, repeated message sending, data stream processing anomalies, etc., it will cause indicator calculation errors, and some of these errors are difficult to find, because they are based on memory calculation and cannot be automatically corrected after the indicator calculation is completed. Therefore, how to find indicator calculation errors needs to be solved. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a risk control indicator data inspection method, device, equipment and storage medium, which can promptly issue an alarm when there is an abnormality in the indicator calculation, and can remind technical personnel to promptly process and correct the indicator. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses a risk control indicator data inspection method, comprising:

[0005] Obtain an indicator inspection task corresponding to the target risk control indicator, and read the operation process record data and the operation result record data from a preset indicator operation process database and a preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task;

[0006] Based on the operation process record data and the operation result record data, it is determined whether there is any abnormality in the target risk control indicator calculation, and when there is any abnormality in the target risk control indicator calculation, an alarm is issued based on the alarm method in the indicator inspection task.

[0007] Optionally, the step of reading the operation process record data and the operation result record data from a preset indicator operation process database and a preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task includes:

[0008] Based on the indicator inspection rules in the indicator inspection task, the operation process record data is read from the MYSQL database, and based on the indicator inspection rules in the indicator inspection task, the operation result record data is read from the redis database.

[0009] Optionally, the step of reading the operation process record data from the MYSQL database based on the indicator inspection rule in the indicator inspection task includes:

[0010] Based on the SQL query logic in the standard inspection task, the operation process record data is read from the MYSQL database.

[0011] Optionally, the step of reading operation result record data from a redis database based on the indicator inspection rule in the indicator inspection task includes:

[0012] Based on the time slice value logic in the indicator inspection task, the operation result record data is read from the redis database.

[0013] Optionally, judging whether there is an indicator calculation anomaly in the target risk control indicator based on the operation process record data and the operation result record data includes:

[0014] Reading operation process record data, and generating operation result comparison data based on the operation process record data;

[0015] Determine whether the operation result comparison data and the operation result record data are consistent to determine whether there is an indicator calculation anomaly in the target risk control indicator.

[0016] Optionally, the indicator inspection rule is compiled based on a groovy script.

[0017] In a second aspect, the present application discloses a risk control indicator data inspection device, comprising:

[0018] An operation data reading module is used to obtain an indicator inspection task corresponding to a target risk control indicator, and read operation process record data and operation result record data from a preset indicator operation process database and a preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task;

[0019] The operation data comparison module is used to determine whether there is any abnormality in the calculation of the target risk control indicator based on the operation process record data and the operation result record data, and when there is any abnormality in the calculation of the target risk control indicator, an alarm is issued based on the alarm method in the indicator inspection task.

[0020] Optionally, the operation data reading module includes:

[0021] The data reading submodule is used to read the operation process record data from the MYSQL database based on the indicator inspection rules in the indicator inspection task, and to read the operation result record data from the redis database based on the indicator inspection rules in the indicator inspection task.

[0022] In a third aspect, the present application discloses an electronic device, comprising:

[0023] Memory, used to store computer programs;

[0024] A processor is used to execute the computer program to implement the aforementioned risk control indicator data inspection method.

[0025] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, which implements the aforementioned risk control indicator data inspection method when executed by a processor.

[0026] It can be seen that in this application, an indicator inspection task corresponding to the target risk control indicator is obtained, and based on the indicator inspection rules in the indicator inspection task, the operation process record data and the operation result record data are read from the preset indicator operation process database and the preset indicator operation result database respectively; based on the operation process record data and the operation result record data, it is judged whether there is an indicator calculation anomaly in the target risk control indicator, and when there is an indicator calculation anomaly in the target risk control indicator, an alarm is issued based on the alarm method in the indicator inspection task. In this way, the operation process record data and the operation result record data are read through inspection, and the operation process record data and the operation result record data are used to judge whether there is an indicator calculation anomaly in the target risk control indicator, and an alarm is issued in time when there is an abnormality in the indicator calculation, which can remind the technical personnel to handle and correct the indicator in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0028] Figure 1 This is a flow chart of a risk control indicator data inspection method disclosed in this application;

[0029] Figure 2 A flow chart of a specific risk control indicator data inspection method disclosed in this application;

[0030] Figure 3 This is a schematic diagram of the structure of a risk control indicator data inspection device disclosed in this application;

[0031] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0033] Risk control indicator data is very important data in the risk control process. When there are problems with the accuracy and timeliness of risk control indicators, it will directly affect the risk assessment and decision-making of the risk control decision engine for merchants, transactions, credit, etc., thereby causing production problems. During the calculation process, if there is message loss, repeated message sending, data streaming processing anomalies, etc., it will cause indicator calculation errors, and some of these errors are difficult to find, because they are based on memory calculations and cannot be automatically corrected after the indicator calculation is completed. Therefore, this application will specifically introduce a risk control indicator data inspection method that can solve the above problems.

[0034] See also Figure 1 As shown, the embodiment of the present application discloses a risk control indicator data inspection method, including:

[0035] Step S11: Obtain an indicator inspection task corresponding to the target risk control indicator, and read operation process record data and operation result record data from a preset indicator operation process database and a preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task.

[0036] In this embodiment, it should be noted in advance that the data after the risk control indicator calculation is completed will be saved in redis, and each message of the indicator calculation will be saved in the MYSQL (My Structured Query Language, i.e., relational database management system) database. Therefore, after each new indicator is added, a comparison rule corresponding to the indicator is configured, that is, a groovy script, the script contains the logic of the time slice value in redis of the query indicator and the logic of the indicator generation corresponding to the sql (structured query language), that is, the indicator inspection rule is determined based on the groovy script compilation, and after the indicator inspection rule is determined, an indicator inspection task can be set according to the actual situation of the risk control data. For example: set the corresponding inspection time, or start the inspection to inspect the target risk control indicator when the number of operations of the target risk control indicator reaches the preset number threshold.

[0037] Among them, the reading of operation process record data and operation result record data from the preset indicator operation process database and the preset indicator operation result database respectively based on the indicator inspection rules in the indicator inspection task includes: reading the operation process record data from the MYSQL database based on the indicator inspection rules in the indicator inspection task, and reading the operation result record data from the redis database based on the indicator inspection rules in the indicator inspection task. Specifically, the reading of operation process record data from the MYSQL database based on the indicator inspection rules in the indicator inspection task includes: reading the operation process record data from the MYSQL database based on the sql query logic in the indicator inspection task. That is, the operation process record data for the target risk control indicator is read from the MYSQL database through the sql query logic in the indicator inspection task. For example, for the target risk control indicator, the first operation is to increase the number of N; the second operation is to reduce the number of M, then the operation process data of these two times can be read from the MYSQL database: +N, -M. Specifically, the reading of the operation result record data from the redis database based on the indicator inspection rule in the indicator inspection task includes: reading the operation result record data from the redis database based on the time slicing value logic in the indicator inspection task. That is, the operation result record data can be read from the redis database by calling the preset indicator query interface. For example, if two operations are performed on the target risk control indicator, then the preset indicator query interface can be directly called to read the data result Q after the two operations from the redis database.

[0038] Step S12: judging whether there is any abnormality in the target risk control indicator calculation based on the operation process record data and the operation result record data, and when there is any abnormality in the target risk control indicator calculation, giving an alarm based on the alarm method in the indicator inspection task.

[0039] In this embodiment, judging whether there is an indicator calculation anomaly in the target risk control index based on the operation process record data and the operation result record data includes: reading the operation process record data, and generating the operation result comparison data based on the operation process record data; judging whether the operation result comparison data and the operation result record data are consistent to determine whether there is an indicator calculation anomaly in the target risk control index. Specifically, according to reading the operation process data from the MYSQL database, calculation is performed to determine the preset result data corresponding to these operations, that is, the operation result comparison data, and judge whether the preset result data is consistent with the operation result record data. For example, for the initial number of the target risk control index is P, the first operation is to increase the number of N; the second operation is to reduce the number of M; then the preset result data corresponding to the target risk control data can be obtained by calculation. It should be P+MN, and then the data result Q after two operations is read from the redis database. At this time, it is necessary to judge whether P+MN=Q is established. If not, it means that there is an indicator calculation error. At this time, the data that triggers the inspection task rule needs to be saved and an alarm notification is sent by email, mobile phone, etc., so that the staff can find the problem technically and handle it. The problem of data verification difficulty caused by the long indicator calculation link can be solved by directly querying the original data of the indicator calculation and comparing it with the data in redis. In addition, it should be noted that this application supports querying the calculation of risk control indicators at any stage. For example, for the target risk control indicator, the fourth operation is to increase the number N; the fifth operation is to reduce the number M; then read the data result Q after the fourth and fifth operations from the redis database. At this time, the target risk control data can be read as P when the third operation result is obtained. Then the preset result data corresponding to the target risk control data can be calculated to be P+MN. It is necessary to judge whether P+MN=Q is established. If not, it means that there is a problem of indicator calculation error. In this way, the calculation performance of real-time indicators will not be affected. In addition, the indicators are verified one by one by configuring indicator inspection tasks. One indicator is for one inspection task. The task configuration is flexible and clear, and there is no need to release the application.

[0040] It can be seen that in this embodiment, an indicator inspection task corresponding to the target risk control indicator is obtained, and the operation process record data and the operation result record data are read from the preset indicator operation process database and the preset indicator operation result database respectively based on the indicator inspection rules in the indicator inspection task; based on the operation process record data and the operation result record data, it is judged whether there is an indicator calculation anomaly in the target risk control indicator, and when there is an indicator calculation anomaly in the target risk control indicator, an alarm is issued based on the alarm method in the indicator inspection task. In this way, the operation process record data and the operation result record data are read through inspection, and the operation process record data and the operation result record data are used to judge whether there is an indicator calculation anomaly in the target risk control indicator, and an alarm is issued in time when there is an abnormality in the indicator calculation, which can remind the technical personnel to handle and correct the indicator in time.

[0041] See also Figure 2 As shown, the embodiment of the present application discloses a specific risk control indicator data inspection method. After each new indicator is added, a comparison rule corresponding to the indicator is configured, that is, a groovy script. The script contains the logic of querying the time slicing value in redis of the indicator and the logic of generating the corresponding sql of the indicator. Redis and MYSQL are queried respectively. The results after the query are compared again. If they are inconsistent, the rule is triggered. After the indicator configuration is completed, it is necessary to configure another inspection task to perform regular inspections on the indicators. The inspection task is to run the previous groovy script. The task will notify the corresponding indicator person in charge of the data that triggers the rule. The operation process record data and the operation result record data are read through the inspection, and the operation process record data and the operation result record data are used to determine whether there is an indicator calculation anomaly in the target risk control indicator, and an alarm is issued in time when there is an abnormality in the indicator calculation, which can remind the technical personnel to process and correct the indicator in time.

[0042] refer to Figure 3 The embodiment of the present application also discloses a risk control indicator data inspection device, including:

[0043] The operation data reading module 11 is used to obtain the indicator inspection task corresponding to the target risk control indicator, and read the operation process record data and the operation result record data from the preset indicator operation process database and the preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task;

[0044] The operation data comparison module 12 is used to determine whether there is an indicator calculation anomaly in the target risk control indicator based on the operation process record data and the operation result record data, and when there is an indicator calculation anomaly in the target risk control indicator, an alarm is issued based on the alarm method in the indicator inspection task.

[0045] It can be seen that in this embodiment, the operation data reading module is used to obtain the indicator inspection task corresponding to the target risk control indicator, and read the operation process record data and the operation result record data from the preset indicator operation process database and the preset indicator operation result database respectively based on the indicator inspection rules in the indicator inspection task; the operation data comparison module is used to determine whether there is an indicator calculation anomaly in the target risk control indicator based on the operation process record data and the operation result record data, and when there is an indicator calculation anomaly in the target risk control indicator, an alarm is issued based on the alarm method in the indicator inspection task. In this way, the operation process record data and the operation result record data are read through inspection, and the operation process record data and the operation result record data are used to determine whether there is an indicator calculation anomaly in the target risk control indicator, and an alarm is issued in time when there is an abnormality in the indicator calculation, which can remind the technical personnel to process and correct the indicator in time.

[0046] In some specific embodiments, the operation data reading module 11 may specifically include:

[0047] The data reading submodule is used to read the operation process record data from the MYSQL database based on the indicator inspection rules in the indicator inspection task, and to read the operation result record data from the redis database based on the indicator inspection rules in the indicator inspection task.

[0048] In some specific embodiments, the data reading submodule may specifically include:

[0049] The operation data reading unit is used to read the operation process record data from the MYSQL database based on the SQL query logic in the standard inspection task.

[0050] In some specific embodiments, the data reading submodule may specifically include:

[0051] The result data reading unit is used to read the operation result record data from the redis database based on the time slice value logic in the indicator inspection task.

[0052] In some specific embodiments, the operation data comparison module 12 may specifically include:

[0053] A data comparison unit, used for reading the operation process record data, and generating operation result comparison data based on the operation process record data;

[0054] The data anomaly judgment unit is used to judge whether the operation result comparison data and the operation result record data are consistent to determine whether there is an indicator calculation anomaly in the target risk control indicator.

[0055] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0056] Figure 4 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the risk control indicator data inspection method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0057] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0058] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0059] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the risk control indicator data inspection method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0060] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed risk control indicator data inspection method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0061] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0062] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0063] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0064] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0065] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A risk control indicator data inspection method, characterized in that: include: Obtain an indicator inspection task corresponding to the target risk control indicator, and read the operation process record data and the operation result record data from a preset indicator operation process database and a preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task; Based on the operation process record data and the operation result record data, it is determined whether there is any abnormality in the target risk control indicator calculation, and when there is any abnormality in the target risk control indicator calculation, an alarm is issued based on the alarm method in the indicator inspection task.

2. The risk control indicator data inspection method according to claim 1 is characterized in that: The step of reading the operation process record data and the operation result record data from a preset indicator operation process database and a preset indicator operation result database based on the indicator inspection rule in the indicator inspection task includes: Based on the indicator inspection rules in the indicator inspection task, the operation process record data is read from the MYSQL database, and based on the indicator inspection rules in the indicator inspection task, the operation result record data is read from the redis database.

3. The risk control indicator data inspection method according to claim 2 is characterized in that: The step of reading the operation process record data from the MYSQL database based on the indicator inspection rules in the indicator inspection task includes: Based on the SQL query logic in the standard inspection task, the operation process record data is read from the MYSQL database.

4. The risk control indicator data inspection method according to claim 2 is characterized in that: The step of reading operation result record data from the redis database based on the indicator inspection rule in the indicator inspection task includes: Based on the time slice value logic in the indicator inspection task, the operation result record data is read from the redis database.

5. The risk control indicator data inspection method according to claim 1 is characterized in that: The determining whether there is an indicator calculation anomaly in the target risk control indicator based on the operation process record data and the operation result record data includes: Reading operation process record data, and generating operation result comparison data based on the operation process record data; Determine whether the operation result comparison data and the operation result record data are consistent to determine whether there is an indicator calculation anomaly in the target risk control indicator.

6. The risk control indicator data inspection method according to claim 1, characterized in that: The indicator inspection rules are compiled based on the groovy script.

7. A risk control indicator data inspection device, characterized in that: include: An operation data reading module is used to obtain an indicator inspection task corresponding to a target risk control indicator, and read operation process record data and operation result record data from a preset indicator operation process database and a preset indicator operation result database respectively based on the indicator inspection rule in the indicator inspection task; The operation data comparison module is used to determine whether there is any abnormality in the calculation of the target risk control indicator based on the operation process record data and the operation result record data, and when there is any abnormality in the calculation of the target risk control indicator, an alarm is issued based on the alarm method in the indicator inspection task.

8. The risk control indicator data inspection device according to claim 7, characterized in that: The operation data reading module comprises: The data reading submodule is used to read the operation process record data from the MYSQL database based on the indicator inspection rules in the indicator inspection task, and to read the operation result record data from the redis database based on the indicator inspection rules in the indicator inspection task.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the risk control indicator data inspection method as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the risk control indicator data inspection method as described in any one of claims 1 to 6.