Abnormal sample library management method and device, electronic equipment and storage medium
By obtaining the hit rate of the abnormal sample library's risk control rules for circuit breaker management, the problem of dirty data in the abnormal sample library affecting the accuracy of analysis is solved, and the stability of the abnormal sample library and the risk control accuracy of business requests are improved.
Patent Information
- Application Number
- CN202410560585.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-10-18
AI Technical Summary
When dirty data is mixed into the abnormal sample library in the existing abnormal sample library management method, it affects the accuracy of similar analysis of abnormal samples in business requests, making management more difficult.
By obtaining the hit rate of each risk control rule in the abnormal sample library within a time period, the abnormal sample library can be managed through circuit breakers to improve the accuracy of analysis.
By combining the hit rate of each risk control rule to determine the circuit breaker management strategy, the stability of the abnormal sample library and the accuracy of business request analysis are improved, misjudgments are avoided, and risk control accuracy is improved.
Smart Images

Figure CN118796797A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an abnormal sample library management method, device, electronic device and storage medium. Background Art
[0002] At present, the number of abnormal sample libraries and the number of abnormal samples in the abnormal sample libraries are increasing day by day. Therefore, the management of abnormal samples becomes more difficult. In the existing management method of abnormal sample libraries, when dirty data is mixed into the abnormal sample library, it will affect the accuracy of abnormal sample similarity analysis for business requests. Therefore, a management method for abnormal sample libraries is needed to improve the accuracy of abnormal sample analysis for business requests. Summary of the invention
[0003] The embodiments of the present application provide an abnormal sample library management method, device, electronic device and storage medium. By obtaining the hit rate of each risk control rule in the abnormal sample library, the abnormal sample library is managed by fuse, thereby improving the accuracy of abnormal sample analysis of business requests.
[0004] In a first aspect, an embodiment of the present application provides a method for managing an abnormal sample library, the method comprising:
[0005] Obtaining a hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within the first time period;
[0006] Based on the hit rate of each first risk control rule, fuse management is performed on the first abnormal sample library.
[0007] In a second aspect, an embodiment of the present application provides an abnormal sample library management device, the device comprising: a transceiver unit and a processing unit;
[0008] The transceiver unit is used to obtain the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within the first time period;
[0009] The processing unit is used to perform fuse management on the first abnormal sample library based on the hit rate of each first risk control rule.
[0010] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device executes the method of the first aspect.
[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.
[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to cause the computer to execute the method of the first aspect.
[0013] Implementing the embodiments of the present application has the following beneficial effects:
[0014] It can be seen that in the embodiment of the present application, the hit rate of each first risk control rule in the first time period among the m first risk control rules corresponding to the first abnormal sample library is obtained; based on the hit rate of each first risk control rule, the first abnormal sample library is subjected to fuse management. The hit rate of the first risk control rule in the first time period represents the proportion of the business requests corresponding to the first risk control rule in the first time period that meet the first risk control rule. Based on the hit rate of each first risk control rule, the first abnormal sample library is subjected to fuse management. The hit rate of each first risk control rule can be comprehensively considered to jointly determine the strategy for fuse management of the first abnormal sample library, which can make the fuse management strategy for the first abnormal sample library more comprehensive and accurate, improve the stability of the first abnormal sample library, thereby improving the accuracy of abnormal sample analysis of business requests, avoiding misjudgment of business requests, and thus improving the accuracy of risk control of business requests. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0016] Figure 1 An architecture diagram of an abnormal sample library management device provided in an embodiment of the present application;
[0017] Figure 2 Another abnormal sample library management device architecture diagram provided in an embodiment of the present application;
[0018] Figure 3 A diagram showing the architecture of another abnormal sample library management device provided in an embodiment of the present application;
[0019] Figure 4 A schematic diagram of a storage process of offline abnormal sample data provided by an embodiment of the present application;
[0020] Figure 5 A display interface diagram for creating a sample library provided in an embodiment of the present application;
[0021] Figure 6A sample library search interface diagram provided in an embodiment of the present application;
[0022] Figure 7 A diagram showing the architecture of another abnormal sample library management device provided in an embodiment of the present application;
[0023] Figure 8 A flowchart of an abnormal sample library management method provided by an embodiment of the present application;
[0024] Fig. 9 A flowchart of an abnormal sample library management method provided in an embodiment of the present application;
[0025] Fig.10 A block diagram of the functional units of an abnormal sample library management device provided in an embodiment of the present application;
[0026] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] 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 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.
[0028] The terms "first", "second", "third" and "fourth" etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiments" herein means that a particular feature, result, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] In order to facilitate understanding of the technical solution of the present application, the relevant technical terms involved in the present application are first explained.
[0032] Abnormal sample library: It is a database built based on blockchain technology, which stores abnormal samples.
[0033] TopK query is a common statistical algorithm. In this application, it refers to counting the abnormal samples corresponding to the top K largest similarities with the business request in the queried abnormal sample library.
[0034] Kafka is a distributed messaging system. Its core is a distributed cluster consisting of multiple nodes. In Kafka, data is divided into multiple data blocks and transmitted between nodes through algorithms. These data blocks are called KafkaTopic, or topic.
[0035] The embedding model refers to the process of mapping high-dimensional data (such as text, pictures, or videos) to low-dimensional space, that is, the process of converting high-dimensional data into vectors.
[0036] It should be noted that in the present application, circuit breaker management includes circuit breaker management of risk control rules corresponding to the abnormal sample library, i.e., first-level circuit breaker, and also includes circuit breaker management of the abnormal sample library, i.e., second-level circuit breaker.
[0037] In the present application, the fuse management of the risk control rules corresponding to the abnormal sample library can be understood as, in at least one risk control rule corresponding to the abnormal sample library, the risk control rules that meet the preset conditions are fused with the abnormal sample library, that is, the risk control rules that meet the preset conditions are separated from the abnormal sample library corresponding to them, so that the risk control rules that meet the preset conditions do not affect the normal operation of the abnormal sample library; for the risk control rules that do not meet the preset conditions, risk control management of the business requests continues, wherein the preset condition may be that the hit rate of the risk control rule is greater than the first threshold.
[0038] In the present application, the abnormal sample library is managed by fuse, which can be understood as if the fuse rate of at least one risk control rule corresponding to the abnormal sample library meets the preset condition, the abnormal sample library is fused and the abnormal sample library is fused to an offline state, and the abnormal sample library is no longer used to provide services for business requests; if the fuse rate of at least one risk control rule corresponding to the abnormal sample library does not meet the preset condition, the abnormal sample library continues to be used to provide services for business requests, wherein the preset condition may be that the fuse rate of at least one risk control rule is greater than a second threshold.
[0039] See also Figure 1 , Figure 1 This is a diagram of the architecture of an abnormal sample library management device provided in an embodiment of the present application.
[0040] The abnormal sample library management device includes a risk control engine module, an abnormal sample library management module and a penalty module. The abnormal sample library management module includes a TopK query component, a point check component, an abnormal sample library management component, an abnormal sample outbound component, an abnormal sample inbound component, a risk management component, a permission management component, a database and a vector index library. Among them, the TopK query component is used to query and return the TopK information requested by the risk control engine module. In this application, TopK information can also be called similarity information. TopK information and similarity information are different expressions of the same meaning in this application; the point check group is used for the device administrator to query the abnormal samples in the abnormal sample library; the abnormal sample library management component is used to add, delete and other management of abnormal samples; the abnormal sample outbound component is used to process the data of online or offline abnormal samples and delete the abnormal samples from the database and the vector index library; the abnormal sample inbound component is used to process the data of online or offline abnormal samples and add the abnormal samples to the database and the vector index library.
[0041] The risk control engine module is used to receive online business requests, identify business request information, recall similar abnormal samples of business requests in the corresponding abnormal sample library, and receive the returned TopK information. The risk control engine module determines whether the risk control rules are hit based on the returned TopK information. The penalty module is used to store or retrieve business requests. It should be noted that in this application, offline abnormal samples can be stored through the abnormal sample storage component.
[0042] See also Figure 2 , Figure 2 This is another architecture diagram of an abnormal sample library management device provided in an embodiment of the present application.
[0043] See also Figure 2 , Figure 2 Another abnormal sample library management device includes a risk control engine module, an abnormal sample library management module and an abnormal sample vectorization module. Figure 2 The risk control engine module and Figure 1 The risk control engine module in corresponds to: Figure 2 The abnormal sample library management module and Figure 1 Corresponding to the abnormal sample library management module in.
[0044] The risk control engine module includes a data source and four first risk control rules. The risk control engine module can receive business requests and call the abnormal sample library to query TopK information. Among them, the data source can be a remote procedure call (RPC) interface, and the first risk control rule can also be regarded as an action code. Different risk control scenario types correspond to different first risk control rules, that is, different risk control scenario types correspond to different action codes.
[0045] The abnormal sample vectorization module includes vector conversion of text, pictures, videos or other types of unstructured data (i.e., abnormal samples). Specifically, the data is input into the embedding model for conversion, and the abnormal samples are converted into corresponding vectors.
[0046] When an online business request is stored in the database, the abnormal sample database management module converts the content of the online business request into a vector by calling the abnormal sample vectorization module.
[0047] When offline abnormal samples are stored in the database, the offline abnormal samples are directly converted into vectors through the abnormal sample vectorization module, and the vectors of the offline abnormal samples are stored in the vector index library through the abnormal sample storage component, and the sample data of the offline abnormal samples are stored in the database, where the sample data of the abnormal samples include: business type, data type, risk control scenario type, recall type and model version.
[0048] based on Figure 2 A similar recall process of any zth service request among n service requests is described.
[0049] First, when the risk control engine module receives the zth business request, it binds the zth business request to different first risk control rules through the data source. Figure 2 Only the four first risk control rules are used as examples for explanation. Figure 2 The four first risk control rules in are the first risk control rules corresponding to the risk control scenario type of the zth business request. The factor (factor) in the zth business request, that is, the specific content in the business request is "A", and the type (type) is "B". The hit result of the zth business request is judged based on each first risk control rule respectively. Specifically, the factor (factor) "A" and type (type) "B" in the zth business request are similarly recalled with the abnormal sample library bound to the first risk control rule. Specifically, the abnormal sample library management module converts the content of the zth business request into a vector by calling the abnormal sample vectorization module, and then queries the TopK information of the zth business request through the TopK query component in the abnormal sample library management module. The abnormal sample library management module returns the TopK information of the zth business request to the risk control engine module, wherein the returned TopK information includes: the abnormal sample ID, maximum similarity, type and number of abnormal samples greater than a specific similarity Q in the abnormal sample library that are most similar to the zth business request. For example, the returned TopK information can be Figure 2 maxid: "C", maxRate: "D", type: "B", and QCnt: "E".
[0050] See also Figure 3 , Figure 3 This is a diagram of the architecture of another abnormal sample library management device provided in an embodiment of the present application.
[0051] like Figure 3 As shown, in Figure 3 It includes an abnormal sample storage module, an abnormal sample out-of-stock module, a query module, a management module and a fuse module. In this application, the abnormal sample storage module, the abnormal sample out-of-stock module, the query module, the management module and the fuse module are referred to as Gaia.
[0052] The abnormal sample storage module includes an access verification component, a database storage component, and a vector index storage component. The abnormal sample storage module subscribes to data with the topic "ori" and can be stored automatically or manually. Among them, the access verification component is used to verify the abnormal samples entering the library, the database storage component is used to add the data of the abnormal samples entering the library to the database for storage, the vector index storage component publishes data with the topic "vector index", and the vector index library subscribes to data with the topic "vector index". The vectors of abnormal samples are stored in the vector index library, which can be stored directly or through the data lake.
[0053] The access verification component of the abnormal sample storage module includes verifying whether the written data meets the predefined standard format. The standard format means: defining what the sample data looks like, specifically, the number of fields, field names, and field types of the message body. The business transmits data according to the specifications. After receiving the abnormal sample storage module, it will verify the validity of each field, and only valid ones will be allowed to enter the storage. Furthermore, users do not have to strictly pass data according to the predefined standard format, and more flexible sample data writing is supported. The user passes a data structure similar to Map, which only has field names and field values. The specific number of fields, field names, and field types are not required. After obtaining the data, the data is passed through the algorithm model to return a standard data format and an access score to help automatically identify whether the data can be stored and which library it can be written to. Furthermore, in order to prevent accidental injuries, it supports directly entering samples into the normal database instead of the abnormal sample library according to the data source or configuring a whitelist.
[0054] Abnormal sample storage includes offline storage and real-time storage. Offline abnormal samples are read out through airfollow task scheduling, and vectors are calculated for each abnormal sample. Then the vector data is sent to the abnormal sample storage module through the message queue, where the message queue can be kafka. The abnormal sample storage module subscribes to the data with the topic "ori". The abnormal sample storage module monitors the abnormal samples stored in the offline storage. Those that meet the access rules are stored according to the sample library configuration, and those that do not meet the access rules are discarded and issued through monitoring alarms. Real-time storage refers to the storage of business requests that are punished by the decision of the business request. It is similar to offline storage, with two differences: offline storage is written through the message queue, and real-time storage is automatically or manually written through the RPC interface. Offline storage is to calculate the vector and send it to the abnormal sample storage module through the message queue at one time. The real-time business request only has the specific content of the abnormal sample, and the interface of the query module needs to calculate the vector before storage. For example, Figure 3 As shown, the query module includes a query vector component, a query vector index library component, a query database component, and a TopK information return component. The risk control engine module receives real-time business requests and calls the query module through an interface, wherein the interface may be a hulk interface. The query vector component calculates the vector of the real-time business request. The query vector index library component is used to access the vector index library based on the vector for similar recall to obtain TopK information. The query database component is used to query the data corresponding to the vector index in the TopK information in the database based on the TopK information. The TopK information and the queried database information are returned to the risk control engine module based on the interface of the query module. The risk control engine module determines whether the risk control rules are hit based on the TopK information, and then executes the penalty component to perform outbound delivery of the real-time business request through the abnormal sample outbound module or inbound delivery through the abnormal sample inbound module.
[0055] It can be seen that in the embodiment of the present application, batches of offline abnormal samples are automatically added and deleted through offline warehousing, and warehousing through an interface improves warehousing efficiency and makes the warehousing method more flexible.
[0056] It should be noted that before storing offline abnormal sample data or real-time business requests, these data will be organized into three dimensions. The first dimension is: obtaining all the original data of offline abnormal sample data and real-time business requests, including various attribute information, including: sample name, business type, data type, risk control scenario type, recall type, primary risk type, secondary risk type, model version, status, object ID, vector value, index type and black library ID. Business types include community risk control and e-commerce risk control, etc.; risk control scenario types include notes, comments and private messages, etc.; data types include text, pictures, videos and audio, etc.; risk types include primary risk types and secondary risk types. Primary risk types include fraud, ghostwriting and posting, diversion, etc. Secondary risk types refer to the subdivision under the primary risk type, such as transaction fraud and activity fraud under the primary risk type fraud; recall types include abnormal samples, gray samples and white samples; model version refers to the model version used to generate vectors.
[0057] The second dimension: abnormal sample data of a black library. After receiving the offline abnormal sample data, the risk control engine organizes it into sample data of the abnormal sample library dimension, where the business type, data type, risk control scenario type, recall type, and model version are used as the five-tuple that uniquely identifies an abnormal sample library. The risk control engine will save the sample data of these abnormal sample library dimensions, but not the vector data. The third dimension: abnormal sample vector data of an index. The risk control engine will store the vector value of the abnormal sample data of each abnormal sample library in a certain index of the vector index library according to the data type, where the vector index library can be an lve index library.
[0058] It can be seen that in the embodiment of the present application, the vectors are stored in the vector index library with professional team and equipment operation and maintenance, which reduces the management cost of the abnormal sample library.
[0059] like Figure 4 As shown, after receiving multiple offline abnormal sample data, the risk control engine uniquely determines an abnormal sample library ID according to the five-tuple of each abnormal sample data, and then stores the multiple offline abnormal sample data in the abnormal sample library that fails. Figure 4 In the example, three offline abnormal sample data (offline abnormal sample data 1, offline abnormal sample data 2, and offline abnormal sample data 3) are stored in the private message picture ghostwriting and posting abnormal sample library, the comment text diversion abnormal sample library, and the note text fraud abnormal sample library. Further, the risk control engine will store the vector value of the abnormal sample data of each abnormal sample library in the corresponding index of the vector index library according to the data type of each offline abnormal sample, for example Figure 4 The image vector index library and text vector index library in .
[0060] like Figure 3 The abnormal sample outbound module shown includes a database outbound component and a vector index library outbound component. The abnormal sample outbound module can perform scheduled outbound tasks, or perform outbound tasks automatically or manually. The scheduled task is executed every 30 minutes, and the entire table is scanned. Abnormal samples that have expired are deleted. The database is deleted directly, and the vector index library is deleted through the message queue. Among them, the database outbound component is used to delete the outbound abnormal samples from the database, the vector index outbound component publishes data with the theme of "vector index", and the vector index library subscribes to data with the theme of "vector index". The outbound abnormal samples are deleted from the vector index library, which can be deleted directly or through the data lake.
[0061] The management module includes abnormal sample management components, abnormal sample library management components, configuration management components and monitoring alarm components. Among them, the abnormal sample management component is used to add abnormal samples, including manual single addition and batch file addition; to delete abnormal samples, including manual single deletion and batch file deletion; to retrieve abnormal samples, including Topk retrieval and quantile retrieval; to export abnormal samples, including specifying query conditions and exporting abnormal sample data of a certain abnormal sample library.
[0062] The abnormal sample library management component is used to create a new abnormal sample library. An abnormal sample library is determined by the business type, data type, risk control scenario type, recall type and model version, including defining the abnormal sample specifications stored in the abnormal sample library, that is, which fields are stored; used to edit the abnormal sample library, including modifying the attribute information of the abnormal sample; used to view the details of the abnormal sample, including the basic information of a certain abnormal sample, risk control rules, factors, and references to penalty decisions; used to view the abnormal sample library list, including viewing all abnormal sample library information.
[0063] like Figure 5 As shown, Figure 5 A display interface diagram for creating a sample library provided in an embodiment of the present application includes creating a sample library ID, sample library description, sample type, business type, risk control scenario type, data type, sample validity period, and risk type. When creating a sample library, you can select the Cancel or Create button. The sample type can be an abnormal sample, a white sample, or a gray sample, which is not limited in the present application.
[0064] like Figure 6 As shown, Figure 6A sample library search interface diagram provided in an embodiment of the present application can query which sample libraries are available according to various conditions and display the information of the sample libraries for managing the sample libraries. For example, you can search according to the sample library ID, sample library description, sample type, business line, business type, data type, risk control scenario type, creator, updater, creation time, and update time, and you can also reset these conditions. Figure 6 As shown in the figure, when you enter "wyz" in the sample library ID column and click the "Search" control, you will get the search results for the sample library ID "wyz". In addition to the sample library ID, the search results also include the sample library description, sample type, risk control scenario type, data type, risk type, creator / creation time, and updater / update time. These conditions can also be reset. Figure 6 The search results shown are for a sample library with a sample library ID of "wyz", a sample library description of "xxx", a sample type of abnormal sample, a risk control scenario type of note, a data type of image, a risk type of fraud-comprehensive, a creator / creation time of "xxx / 2023.09.23", and an updater / update time of "xxx / 2023.12.09". After the search results are searched, you can also click the "View Sample Library" control to view the retrieved sample library, and click the "View Members" control to view the members who created the sample library. It should be noted that this search method is also applicable to abnormal sample libraries, and other types of sample library searches can also be applied to the above search method.
[0065] Furthermore, the abnormal sample library management component is also used to manage the status of the abnormal sample library, which is divided into offline status, test status and online status. Offline status: unavailable status, prohibiting writing, prohibiting reading, prohibiting the use of rule engines and penalties in production environments. Test status: test status, supporting writing, supporting reading, prohibiting the use of rule engines and penalties in production environments, mainly used to test the quality of abnormal samples entering the library. If the quality of abnormal samples entering the library is qualified, it can be directly changed to the online status. Online status: supporting writing, supporting reading, supporting rule engines and penalties for production environments.
[0066] The configuration management component is used for reading library configuration, including automatically creating risk control rules bound to the abnormal sample library, creating new risk control rules, and binding a certain abnormal sample library. After binding, the traffic passing through the rule will query the black library to determine whether it is hit. If it is hit, the corresponding penalty will be executed; it is used for warehousing configuration, including automatically creating penalty decisions bound to the abnormal sample library, binding the penalty decision to a certain abnormal sample library, and executing the corresponding penalty after binding, that is, writing the abnormal sample library in real time in the abnormal sample library or the abnormal sample is shipped out of the library; it is used for shipping configuration, including automatically creating penalty decisions bound to the abnormal sample library.
[0067] The monitoring and alarm component is used to monitor abnormal samples that are stored offline. Samples that meet the admission rules are stored according to the sample library configuration, and those that do not meet the admission rules are discarded and reported through monitoring and alarm. Secondly, when the hit rate of the risk control rule bound to the abnormal sample library exceeds the first threshold, the risk control rule is first blown, and then the abnormal sample library is manually checked through the monitoring and alarm component high-priority alarm. Similarly, when the risk control rule fuse rate on the abnormal sample library is greater than the second threshold, the abnormal sample library is manually checked through the monitoring and alarm component high-priority alarm. The monitoring and alarm component is also used to report the amount of data stored in each abnormal sample library through buried data.
[0068] The fuse module includes a risk control rule fuse component and an abnormal sample library fuse component. The fuse module is used to obtain the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library in the first time period; based on the hit rate of each first risk control rule, the first abnormal sample library is managed by fuse. The risk control rule fuse component is used to perform the first-level fuse in step 902, and the abnormal sample library fuse component is used to perform the second-level fuse in step 902. A detailed description is not given here, and a detailed description is given in step 902.
[0069] See also Figure 7 , Figure 7 This is a diagram of the architecture of another abnormal sample library management device provided in an embodiment of the present application.
[0070] Among them, another abnormal sample library management device architecture diagram includes a risk control engine module, an abnormal sample library and a penalty module, wherein the risk control engine module and Figure 1 and Figure 2 The risk control engine module in the . The risk control engine module includes risk control scenario components, risk control rule components, execution rule components, and hit rule components. The penalty decision is configured for each risk control rule in advance, and the abnormal sample library is configured for each risk control rule. The penalty module includes a penalty decision component and an execution penalty component. Figure 1 Corresponding to the penalty module in , the abnormal sample library consists of a database and a vector index library. Figure 1 , Figure 2 as well as Figure 3 The vector index library in the database corresponds to Figure 1 and Figure 2 The database in corresponds.
[0071] See also Figure 7, to illustrate the similar recall of the jth business request, the jth business request is any one of the n business requests, the risk control scenario component identifies the risk control rule corresponding to the jth business request, wherein the risk control rule corresponding to the jth business request may be x second risk control rules, the risk control rule component includes x second risk control rules, each second risk control rule sends the jth business request to the execution rule component, the execution rule component performs a TopK query in the abnormal sample library, and receives the returned TopK information from the abnormal sample library. Among them, the returned TopK information may include the information of the k abnormal samples most similar to the jth business request, and the information of the k abnormal samples includes the ID, similarity, first-level risk type and second-level risk type of the abnormal samples. In addition, the returned TopK information may also include the number of abnormal samples with a similarity greater than a specific value, which may be specifically divided according to the risk type. For example, the TopK information that can be returned may include the number of first-level risk types of "fraud" and the similarity greater than the fourth threshold, and further count the number of abnormal samples of the second-level risk type corresponding to "fraud". After the execution rule component receives the TopK information of the j-th business request, it sends the TopK information to the hit rule component to determine whether the TopK information hits the second risk control component in the risk control rule component. If it hits, the j-th business request is punished by executing the penalty component based on the corresponding penalty decision of the hit second risk control rule, including warehousing or outsourcing the j-th business request.
[0072] The specific method for storing or removing the jth business request is already described in Figure 3 The abnormal sample storage module and the abnormal sample storage module are explained in detail in this application and will not be repeated here.
[0073] It should be noted that the premise for destocking the jth business request is that the jth business request is data in the abnormal sample library, and some rules determine that the jth business request is not an abnormal sample. At this time, the jth business request can be destocked.
[0074] See also Figure 8 , Figure 8 A flowchart of an abnormal sample library management method provided in an embodiment of the present application, the method includes but is not limited to steps 801-805:
[0075] 801: For n business requests within a first time period, based on the risk control scenario types of the n business requests, determine x second risk control rules corresponding to each business request.
[0076] For n business requests in the first time period, based on the risk control scenario types of the n business requests, x second risk control rules corresponding to each business request are determined, wherein each business request carries the risk control scenario type corresponding to the business request. In the embodiment of the present application, the risk control scenario types include notes, comments, and private messages. Each risk control scenario type corresponds to at least one second risk control rule. Therefore, by determining the risk control scenario types of n business requests, the x second risk control rules corresponding to each business request can be determined. Specifically, based on Figure 7 The risk control scenario component in determines x second risk control rules corresponding to each business request among n business requests.
[0077] 802: Obtain a second abnormal sample library corresponding to each second risk control rule of each business request.
[0078] Obtain the second abnormal sample library corresponding to each second risk control rule of each business request, specifically, in advance through Figure 7 The risk control rule component configures a corresponding second abnormal sample library for each second risk control rule. Based on each second risk control rule of each business request and based on the correspondence between each second risk control rule and the second abnormal sample library, the second abnormal sample library corresponding to each second risk control rule of each business request can be determined.
[0079] 803: Based on the second abnormal sample library corresponding to each second risk control rule of each business request, determine k second abnormal sample libraries corresponding to n business requests and f second risk control rules corresponding to each second abnormal sample library.
[0080] Based on the second abnormal sample library corresponding to each second risk control rule of each business request, k second abnormal sample libraries corresponding to n business requests and f second risk control rules corresponding to each second abnormal sample library are determined, wherein the first abnormal sample library is any one of the k second abnormal sample libraries, and the f second risk control rules corresponding to the first abnormal sample library are m first risk control rules. It should be noted that different business requests may correspond to different second abnormal sample libraries or to the same second abnormal sample library, which is not limited in this application.
[0081] 804: Based on each first risk control rule, determine a hit result of the business request corresponding to each first risk control rule under each first risk control rule.
[0082] Based on each first risk control rule, determine the hit result of the business request corresponding to each first risk control rule under each first risk control rule. It should be noted that, taking the m first risk control rules corresponding to the first abnormal sample library as an example, the hit result of determining the business request corresponding to each first risk control rule under each first risk control rule is explained.
[0083] Exemplarily, the similarity information between the business request corresponding to each first risk control rule and the abnormal sample in the first abnormal sample library is obtained. The similarity information between the business request corresponding to each first risk control rule and the abnormal sample in the first abnormal sample library can be obtained by Figure 7 The similarity information may include the maximum similarity between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the number of business requests corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library whose similarity is greater than a third threshold, and the similarity of the top k similarities between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library. Specifically, it can be obtained by Figure 2 The abnormal sample vectorization module converts the business request corresponding to each first risk control rule into a vector, and then based on the vector index library, performs similarity recall on the vectors corresponding to the business request corresponding to each first risk control rule, and returns the similarity information of the business request corresponding to each first risk control rule through the abnormal sample library management component.
[0084] Based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the hit result of the business request corresponding to each first risk control rule under each first risk control rule is determined. Figure 2 In the example of performing similarity recall on any zth business request among n business requests, based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the hit result of the business request corresponding to each first risk control rule under each first risk control rule is determined.
[0085] For the hth first risk control rule, the hth first risk control rule includes g evaluation items, and the hth first risk control rule is any one of the m first risk control rules. Figure 2 Any first risk control rule shown in the figure is used as the hth first risk control rule, and the business request corresponding to the hth first risk control rule is Figure 2 The similarity information between the zth business request in the hth first risk control rule and the abnormal sample in the first abnormal sample library can be Figure 2maxid: "C", maxRate: "D", type: "B" and QCnt: "E". Take the h-th first risk control rule with two evaluation items as an example. For example, the h-th first risk control rule includes two evaluation items, the first evaluation item is "D> the fifth threshold", and the second evaluation item is "E> the sixth threshold, where D can represent the similarity between the business request corresponding to the h-th first risk control rule (i.e., the z-th business request) and the abnormal samples in the first abnormal sample library, and E can represent that the similarity between the z-th business request and the abnormal samples in the first abnormal sample library is greater than the number of Q.
[0086] If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library satisfies each of the g evaluation items, then the business request corresponding to the hth first risk control rule hits the hth first risk control rule. It should be noted that the judgment on whether the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library satisfies each of the g evaluation items can be made by Figure 7 . Continuing with the example that the hth first risk control rule includes two evaluation items, the first evaluation item is "D> fifth threshold", and the second evaluation item is "E> sixth threshold", the business request corresponding to the hth first risk control rule hits the hth first risk control rule. If the similarity between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library is the first similarity, that is, D is the first similarity, and the number of similarities between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library is greater than Q, that is, E is the first number, if the first similarity is greater than the fifth threshold, and the first number is greater than the sixth threshold, it means that the similarity information between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library meets each of the two evaluation items in the hth first risk control rule, and it is determined that the business request corresponding to the hth first risk control rule hits the hth first risk control rule.
[0087] If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library does not satisfy at least one of the g evaluation items, then the business request corresponding to the hth first risk control rule does not hit the hth first risk control rule. Continuing with the example that the hth first risk control rule includes two evaluation items, the first evaluation item is "D> fifth threshold value", and the second evaluation item is "E> sixth threshold value", the business request corresponding to the hth first risk control rule does not hit the hth first risk control rule is explained. If the similarity between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library is the second similarity, that is, D is the second similarity, and the similarity between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library is greater than Q, which is the second number, that is, E is the second number. If the second similarity is less than the fifth threshold and the second number is greater than the sixth threshold, it means that the similarity information between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library does not meet the second of the two evaluation items in the hth first risk control rule, and it is determined that the business request corresponding to the hth first risk control rule does not hit the hth first risk control rule.
[0088] It can be seen that in the embodiment of the present application, the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library is obtained; based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the hit result of the business request corresponding to each first risk control rule under each first risk control rule is determined. For the hth first risk control rule, where the hth first risk control rule includes g evaluation items, the hth first risk control rule is any one of the m first risk control rules; if the similarity information between the business request corresponding to the hth first risk control rule and the abnormal samples in the first abnormal sample library satisfies each of the g evaluation items, then the business request corresponding to the hth first risk control rule hits the hth first risk control rule.
[0089] 805: Determine a hit rate of each first risk control rule within the first time period based on a hit result of the business request corresponding to each first risk control rule under each first risk control rule.
[0090] Based on the hit results of the business requests corresponding to each first risk control rule under each first risk control rule, determine the hit rate of each first risk control rule in the first time period. For example, in the first time period, there are 100 business requests corresponding to the hth first risk control rule, that is, in the first time period, the hth first risk control rule determines the hit results of 100 business requests. If 10 business requests hit the hth first risk control rule among the 100 business requests, then the hit rate of the hth first risk control rule in the first time period is 10%. Based on the method for determining the hit rate of the hth first risk control rule, determine the hit rate of each first risk control rule in the first time period.
[0091] It can be seen that in the embodiment of the present application, based on the hit results of the business requests corresponding to each first risk control rule under each first risk control rule, the hit rate of each first risk control rule within the first time period is determined, and the situation of the business request hitting each first risk control rule can be determined, so as to facilitate timely feedback on the risk control management of the business request by each first risk control rule, thereby improving the efficiency and accuracy of the risk control management of the business request by the risk control rule.
[0092] See also Fig. 9 , Fig. 9 A flowchart of an abnormal sample library management method provided in an embodiment of the present application, the method includes but is not limited to steps 901-902:
[0093] 901: Obtain the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within a first time period.
[0094] Obtain the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library in the first time period. It should be noted that one first risk control rule corresponds to one first abnormal sample library, and one first abnormal sample library may correspond to m first risk control rules. Obtain the hit rate of each first risk control rule determined in step 805 in the first time period.
[0095] 902: Based on the hit rate of each first risk control rule, perform fuse management on the first abnormal sample library.
[0096] For example, it can be based on Figure 3 The fusing module in performs fusing management on the first abnormal sample library.
[0097] Based on the hit rate of each first risk control rule, the first abnormal sample library is managed by fuse, including the following three methods.
[0098] The first method is to perform circuit breaker management on each first risk control rule corresponding to the first abnormal sample library based on the hit rate of each first risk control rule. If the hit rate of the i-th first risk control rule is greater than the first threshold, the i-th first risk control rule is circuit breaker, where the i-th first risk control rule is any one of the m first risk control rules; if the hit rate of the i-th first risk control rule is less than or equal to the first threshold, risk control management is performed based on the i-th first risk control rule. For example, through Figure 3 The monitoring and alarm component of the management module uses Prometheus monitoring to count the hits of the ith first risk control rule in the first preset time period, and then obtain the hit rate. When the penalty decision of the ith first risk control rule is interception, the hit rate of the ith first risk control rule can also be called the interception rate of the ith first risk control rule. Specifically, the hit rate of the ith first risk control rule is the ratio of the total number of business requests corresponding to the ith first risk control rule to the number of business requests that hit the ith first risk control rule in the first time period. The user can configure a fuse threshold, that is, the first threshold, for the ith first risk control rule based on the management situation of the ith first risk control rule. For example, if the average interception rate of the ith first risk control rule is determined to be 10%, then if the interception rate suddenly fluctuates to 50% in the first time period, it means that the ith first risk control rule may have errors during execution. Therefore, it is necessary to Figure 3 The risk control rule circuit breaker component in the circuit breaks the i-th first risk control rule.
[0099] Further, within the second preset time period, if the hit rate of the i-th first risk control rule is less than or equal to the first threshold, risk control management is performed based on the i-th first risk control rule. After the i-th first risk control rule is blown, it can be automatically restored or manually restored. For example, if the blow condition is not met within the continuous first time interval, it is automatically restored, that is, the automatically set rule takes effect; manual recovery: manual intervention, canceling the blow, that is, the manually set rule takes effect.
[0100] The second method is to determine the first number of m first risk control rules whose hit rates are greater than the first threshold based on the hit rate of each first risk control rule; and determine the fuse rates corresponding to the m first risk control rules based on m and the first number. If the fuse rates corresponding to the m first risk control rules are greater than the second threshold, the first abnormal sample library is fuse-broken; if the fuse rates corresponding to the m first risk control rules are less than or equal to the second threshold, risk control management is performed based on the first abnormal sample library.
[0101] Further, within the second preset time period, if the fuse rate corresponding to the m first risk control rules is less than or equal to the second threshold, the first abnormal sample library is risk-controlled by the abnormal sample library fuse component. After the first abnormal sample library is blown, it can be automatically restored or manually restored. Automatic recovery, for example, if the fuse condition is not met within a continuous second time interval, it is automatically restored, that is, the automatic setting rule takes effect. Manual recovery: manual intervention, canceling the fuse, that is, manually setting the rule takes effect.
[0102] The third method is to first perform fuse management on each first risk control rule corresponding to the first abnormal sample library based on the hit rate of each first risk control rule; further, determine the fuse rates corresponding to m first risk control rules based on the hit rate of each first risk control rule; and perform fuse management on the first abnormal sample library based on the fuse rates corresponding to m first risk control rules. The fuse management is divided into primary fuse and secondary fuse. The primary fuse refers to fusing the risk control rules, and the secondary fuse refers to fusing the abnormal sample library, that is, the abnormal sample library is put into an offline state. For example, 10 risk control rules are bound to the first abnormal sample library, that is, 10 risk control rules are reading this library (querying similar abnormal samples). After running for a period of time, 3 risk control rules are all fused. At this time, the rule fused rate of the library is 30%. We can set that when the risk control rule fused rate of the first abnormal sample library is greater than 80%, the library is automatically fused through the abnormal sample library fused component. Monitor the hit rate of the risk control rules bound to the first abnormal sample library, which fluctuates greatly. First, the risk control rules are fused through the risk control rule fused component, and then the first abnormal sample library is manually checked through the monitoring alarm component high priority alarm; if the fused ratio of the risk control rules bound to the first abnormal sample library reaches 80%, the first abnormal sample library is automatically fused, and the first abnormal sample library is set to offline. Because when the rule fused rate of the first abnormal sample library is greater than 90%, it means that 9 risk control rules in the first abnormal sample library are fused, that is, the hit rate of 9 risk control rules exceeds the first threshold, and the fluctuation is large. Therefore, it can be inferred that dirty data may be mixed into the first abnormal sample library, that is, white samples or gray samples may be mixed, so the first abnormal sample library needs to be fused, and the abnormal sample library mixed with dirty data cannot continue to provide services for business requests, otherwise it will cause accidental damage to business requests. For example, a business request may be a white sample, but because white samples are also mixed in the first abnormal sample library, when a similarity recall is performed on the business request, the returned similarity information can meet the hit requirements of the risk control rules, so the business request may be intercepted and punished. However, the business request is actually a white sample and is legal content that can be published, which leads to an erroneous punishment of the business request.
[0103] It can be seen that in the embodiment of the present application, by obtaining the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within the first time period, each first risk control rule corresponding to the first abnormal sample library is firstly managed based on the hit rate of each first risk control rule, that is, first-level fuse; further, based on the hit rate of each first risk control rule, the fuse rate corresponding to the m first risk control rules is determined; based on the fuse rate corresponding to the m first risk control rules, the first abnormal sample library is managed, that is, second-level fuse. Level 1 circuit breaker refers to the circuit breaker of the risk control rule, and level 2 circuit breaker refers to the circuit breaker of the abnormal sample library, that is, to put the abnormal sample library into an offline state. The circuit breaker management is divided into level 1 circuit breaker and level 2 circuit breaker. Level 1 circuit breaker can isolate the risk control rule from the corresponding abnormal sample library, and will not affect the normal operation of the abnormal sample library due to the circuit breaker of one risk control rule, thereby maintaining the stability of the abnormal sample library; further, when the circuit breaker rate of the risk control rule corresponding to the abnormal sample library is greater than the second threshold, the abnormal sample library is circuit breaker, because when the circuit breaker rate of the risk control rule corresponding to the abnormal sample library is greater than the second threshold, it indicates that dirty data is mixed in the abnormal sample library, and the abnormal sample library needs to be circuit breaker and put into an offline state to prevent the business request from being erroneously punished, and improve the accuracy of similar recall of abnormal samples for business requests, thereby improving the accuracy of risk control for business requests.
[0104] In one embodiment of the present application, a method for punishing a service request is also provided.
[0105] For example, the method can be applied to Figure 7, take an example to explain the continuation of using the j-th business request. If the j-th business request hits k second risk control rules among the x second risk control rules corresponding to the j-th business request, obtain the penalty decision of each second risk control rule among the k second risk control rules, where k is an integer less than x, and the j-th business request is any one of the n business requests; punish the j-th business request based on the penalty decision of each second risk control rule among the k second risk control rules. Specifically, if k is greater than or equal to 2, obtain the priority of the penalty decision of each second risk control rule among the k second risk control rules, where the priority of the penalty decision of each second risk control rule is configured in advance; take the penalty decision with the highest priority among the penalty decisions of the k second risk control rules as the target penalty decision; and punish the j-th business request based on the target penalty decision. If k is equal to 1, directly take the penalty decision corresponding to a second risk control rule as the target penalty decision for the j-th business request. If the target penalty decision is an entry penalty, the jth business request is added to the first abnormal sample library by executing the penalty component; if the target penalty decision is an exit penalty, the jth business request is deleted from the first abnormal sample library by executing the penalty component. It should be noted that the penalty decision may also include interception, account suspension, etc., which are not limited in this application. The specific exit method and abnormal sample entry method have been described in Figure 3 The abnormal sample outbound module and the abnormal sample inbound module are described in detail in this application and will not be repeated here.
[0106] It can be seen that in an embodiment of the present application, by prioritizing the penalty decision of each of the k second risk control rules configured in advance, when a business request hits multiple second risk control rules, the business request can be directly punished based on the penalty decision with the highest priority, which can improve the efficiency of punishing business requests and thus improve the efficiency of risk control of business requests.
[0107] By executing the above steps 801-805 and the method of steps 901-902, in terms of similarity recall, compared with the existing method of similarity recall for business requests, the accuracy of similarity recall is improved, and the number of abnormal samples of business requests stored in the database is increased; in terms of business benefits, by executing the above method, all risk scenarios can be covered, including but not limited to notes, comments, private messages, and group chats, and in each scenario, risky business requests can be accurately identified. Furthermore, the above similarity recall method can reduce the amount of notes to be reviewed, reduce labor costs, and reduce the number of user reports on diversion, thereby improving user experience.
[0108] See also Fig.10 , Fig.10This is a block diagram of the functional units of an abnormal sample library management device provided in an embodiment of the present application. The abnormal sample library management device 1000 includes: a transceiver unit 1001 and a processing unit 1002;
[0109] The transceiver unit 1001 is used to obtain the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library in the first time period;
[0110] The processing unit 1002 is used to perform fuse management on the first abnormal sample library based on the hit rate of each first risk control rule.
[0111] In one embodiment of the present application, in terms of performing fuse management on the first abnormal sample library based on the hit rate of each first risk control rule, the processing unit 1002 is specifically configured to:
[0112] Based on the hit rate of each first risk control rule, performing fuse management on each first risk control rule corresponding to the first abnormal sample library;
[0113] and / or,
[0114] Determine the fuse rates corresponding to the m first risk control rules based on the hit rate of each first risk control rule;
[0115] Based on the fuse rates corresponding to the m first risk control rules, fuse management is performed on the first abnormal sample library.
[0116] In one embodiment of the present application, in terms of performing fuse management on each first risk control rule corresponding to the first abnormal sample library based on the hit rate of each first risk control rule, the processing unit 1002 is specifically configured to:
[0117] If the hit rate of the i-th first risk control rule is greater than the first threshold, the i-th first risk control rule is fused, wherein the i-th first risk control rule is any one of the m first risk control rules;
[0118] If the hit rate of the i-th first risk control rule is less than or equal to the first threshold, risk control management is performed based on the i-th first risk control rule.
[0119] In one embodiment of the present application, in terms of determining the fuse rates corresponding to the m first risk control rules based on the hit rate of each first risk control rule, the processing unit 1002 is specifically configured to:
[0120] Based on the hit rate of each first risk control rule, determine a first number of the m first risk control rules whose hit rates are greater than a first threshold;
[0121] Based on m and the first number, determine the fuse rates corresponding to the m first risk control rules.
[0122] In one embodiment of the present application, in the aspect of performing fuse management on the first abnormal sample library based on the fuse rates corresponding to the m first risk control rules, the processing unit 1002 is specifically configured to:
[0123] If the fuse rates corresponding to the m first risk control rules are greater than the second threshold, the first abnormal sample library is fuse-broken;
[0124] If the fuse rates corresponding to the m first risk control rules are less than or equal to the second threshold, risk control management is performed based on the first abnormal sample library.
[0125] In one embodiment of the present application, the processing unit 1002 is further specifically configured to:
[0126] For the n business requests within the first time period, based on the risk control scenario types of the n business requests, determine x second risk control rules corresponding to each business request;
[0127] Acquire a second abnormal sample library corresponding to each second risk control rule of each business request;
[0128] Based on the second abnormal sample library corresponding to each second risk control rule of each business request, determine k second abnormal sample libraries corresponding to the n business requests, and f second risk control rules corresponding to each second abnormal sample library, wherein the first abnormal sample library is any one of the k second abnormal sample libraries, and the f second risk control rules corresponding to the first abnormal sample library are the m first risk control rules;
[0129] Based on each first risk control rule, determine a hit result of the business request corresponding to each first risk control rule under each first risk control rule;
[0130] Based on the hit results of the business requests corresponding to each first risk control rule under each first risk control rule, the hit rate of each first risk control rule in the first time period is determined.
[0131] In one embodiment of the present application, in determining, based on each first risk control rule, a hit result of a business request corresponding to each first risk control rule under each first risk control rule, the processing unit 1002 is specifically configured to:
[0132] Obtaining similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library;
[0133] Based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the hit result of the business request corresponding to each first risk control rule under each first risk control rule is determined.
[0134] In one embodiment of the present application, in terms of determining the hit result of the business request corresponding to each first risk control rule under each first risk control rule based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the processing unit 1002 is specifically used to:
[0135] For the hth first risk control rule, wherein the hth first risk control rule includes g evaluation items, and the hth first risk control rule is any one of the m first risk control rules;
[0136] If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library satisfies each of the g evaluation items, then the business request corresponding to the hth first risk control rule hits the hth first risk control rule;
[0137] If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library does not meet at least one of the g evaluation items, the business request corresponding to the hth first risk control rule does not hit the hth first risk control rule.
[0138] In one embodiment of the present application, the processing unit 1002 is further specifically configured to:
[0139] For the j-th business request, if the j-th business request hits k second risk control rules among the x second risk control rules corresponding to the j-th business request, obtain the penalty decision of each second risk control rule among the k second risk control rules, where k is an integer less than x;
[0140] The j-th business request is punished based on the penalty decision of each second risk control rule in the k second risk control rules.
[0141] In one embodiment of the present application, in terms of punishing the j-th business request based on the penalty decision of each second risk control rule in the k second risk control rules, the processing unit 1002 is specifically configured to:
[0142] If k is greater than or equal to 2, obtaining the priority of the penalty decision of each of the k second risk control rules;
[0143] The penalty decision with the highest priority among the penalty decisions of the k second risk control rules is taken as the target penalty decision;
[0144] The j-th service request is penalized based on the target penalty decision.
[0145] In one implementation of the present application, in terms of punishing the j-th service request based on the target penalty decision, the processing unit 1002 is specifically configured to:
[0146] If the target penalty decision is a storage penalty, then adding the j-th business request to the first abnormal sample library;
[0147] If the target penalty decision is a stock-out penalty, the j-th business request is deleted from the first abnormal sample library.
[0148] See also Fig.11 , Fig.11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.11 As shown, the electronic device 1100 includes a transceiver 1101, a processor 1102 and a memory 1103. They are connected via a bus 1104. The memory 1103 is used to store computer programs and data, and can transmit the data stored in the memory 1103 to the processor 1102.
[0149] The processor 1102 is used to read the computer program in the memory 1103 and perform the following operations:
[0150] Obtaining a hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within the first time period;
[0151] Based on the hit rate of each first risk control rule, fuse management is performed on the first abnormal sample library.
[0152] In one implementation of the present application, in terms of performing fuse management on the first abnormal sample library based on the hit rate of each first risk control rule, the processor 1102 is specifically configured to:
[0153] Based on the hit rate of each first risk control rule, performing fuse management on each first risk control rule corresponding to the first abnormal sample library;
[0154] and / or,
[0155] Determine the fuse rates corresponding to the m first risk control rules based on the hit rate of each first risk control rule;
[0156] Based on the fuse rates corresponding to the m first risk control rules, fuse management is performed on the first abnormal sample library.
[0157] In one implementation of the present application, in terms of performing fuse management on each first risk control rule corresponding to the first abnormal sample library based on the hit rate of each first risk control rule, the processor 1102 is specifically configured to:
[0158] If the hit rate of the i-th first risk control rule is greater than the first threshold, the i-th first risk control rule is fused, wherein the i-th first risk control rule is any one of the m first risk control rules;
[0159] If the hit rate of the i-th first risk control rule is less than or equal to the first threshold, risk control management is performed based on the i-th first risk control rule.
[0160] In one embodiment of the present application, in terms of determining the fuse rates corresponding to the m first risk control rules based on the hit rate of each first risk control rule, the processor 1102 is specifically configured to:
[0161] Based on the hit rate of each first risk control rule, determine a first number of the m first risk control rules whose hit rates are greater than a first threshold;
[0162] Based on m and the first number, determine the fuse rates corresponding to the m first risk control rules.
[0163] In one implementation of the present application, in the aspect of performing fuse management on the first abnormal sample library based on the fuse rates corresponding to the m first risk control rules, the processor 1102 is specifically configured to:
[0164] If the fuse rates corresponding to the m first risk control rules are greater than the second threshold, the first abnormal sample library is fuse-broken;
[0165] If the fuse rates corresponding to the m first risk control rules are less than or equal to the second threshold, risk control management is performed based on the first abnormal sample library.
[0166] In one embodiment of the present application, the processor 1102 is further specifically configured to:
[0167] For the n business requests within the first time period, based on the risk control scenario types of the n business requests, determine x second risk control rules corresponding to each business request;
[0168] Acquire a second abnormal sample library corresponding to each second risk control rule of each business request;
[0169] Based on the second abnormal sample library corresponding to each second risk control rule of each business request, determine k second abnormal sample libraries corresponding to the n business requests, and f second risk control rules corresponding to each second abnormal sample library, wherein the first abnormal sample library is any one of the k second abnormal sample libraries, and the f second risk control rules corresponding to the first abnormal sample library are the m first risk control rules;
[0170] Based on each first risk control rule, determine a hit result of the business request corresponding to each first risk control rule under each first risk control rule;
[0171] Based on the hit results of the business requests corresponding to each first risk control rule under each first risk control rule, the hit rate of each first risk control rule in the first time period is determined.
[0172] In one embodiment of the present application, in determining, based on each first risk control rule, a hit result of a business request corresponding to each first risk control rule under each first risk control rule, the processor 1102 is specifically configured to:
[0173] Obtaining similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library;
[0174] Based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the hit result of the business request corresponding to each first risk control rule under each first risk control rule is determined.
[0175] In one embodiment of the present application, in terms of determining a hit result of a business request corresponding to each first risk control rule under each first risk control rule based on similarity information between the business request corresponding to each first risk control rule and the abnormal sample in the first abnormal sample library, the processor 1102 is specifically configured to:
[0176] For the hth first risk control rule, wherein the hth first risk control rule includes g evaluation items, and the hth first risk control rule is any one of the m first risk control rules;
[0177] If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library satisfies each of the g evaluation items, then the business request corresponding to the hth first risk control rule hits the hth first risk control rule;
[0178] If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library does not meet at least one of the g evaluation items, the business request corresponding to the hth first risk control rule does not hit the hth first risk control rule.
[0179] In one embodiment of the present application, the processor 1102 is further specifically configured to:
[0180] For the j-th business request, if the j-th business request hits k second risk control rules among the x second risk control rules corresponding to the j-th business request, obtain the penalty decision of each second risk control rule among the k second risk control rules, where k is an integer less than x;
[0181] The j-th business request is punished based on the penalty decision of each second risk control rule in the k second risk control rules.
[0182] In one implementation of the present application, in terms of punishing the j-th business request based on the penalty decision of each of the k second risk control rules, the processor 1102 is specifically configured to:
[0183] If k is greater than or equal to 2, obtaining the priority of the penalty decision of each of the k second risk control rules;
[0184] The penalty decision with the highest priority among the penalty decisions of the k second risk control rules is taken as the target penalty decision;
[0185] The j-th service request is penalized based on the target penalty decision.
[0186] In one implementation of the present application, in terms of punishing the j-th service request based on the target penalty decision, the processor 1102 is specifically configured to:
[0187] If the target penalty decision is a storage penalty, then adding the j-th business request to the first abnormal sample library;
[0188] If the target penalty decision is a stock-out penalty, the j-th business request is deleted from the first abnormal sample library.
[0189] Specifically, the transceiver 1101 may be Fig.10 In the transceiver unit 1001 of the abnormal sample library management device 1000 of the embodiment, the processor 1102 may be Fig.10 The processing unit 1002 of the abnormal sample library management device 1000 of the embodiment.
[0190] It should be understood that the electronic devices in this application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, mobile Internet devices MID (Mobile Internet Devices, referred to as: MID) or wearable devices, etc. The above electronic devices are only examples, not exhaustive, and include but are not limited to the above electronic devices. In practical applications, the above electronic devices may also include: smart vehicle terminals, computer equipment, etc.
[0191] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any abnormal sample library management method recorded in the above method embodiments.
[0192] The embodiment of the present application further provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any abnormal sample library management method recorded in the above method embodiments.
[0193] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0194] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0195] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0196] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0197] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0198] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0199] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0200] The embodiments of the present application are 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 those skilled in the art, 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 method for managing an abnormal sample library, characterized in that: The method comprises: Obtaining a hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within the first time period; Based on the hit rate of each first risk control rule, fuse management is performed on the first abnormal sample library.
2. The method according to claim 1, characterized in that: The performing fuse management on the first abnormal sample library based on the hit rate of each first risk control rule includes: Based on the hit rate of each first risk control rule, performing fuse management on each first risk control rule corresponding to the first abnormal sample library; and / or, Determine the fuse rates corresponding to the m first risk control rules based on the hit rate of each first risk control rule; Based on the fuse rates corresponding to the m first risk control rules, fuse management is performed on the first abnormal sample library.
3. The method according to claim 2, characterized in that The performing fuse management on each first risk control rule corresponding to the first abnormal sample library based on the hit rate of each first risk control rule includes: If the hit rate of the i-th first risk control rule is greater than the first threshold, the i-th first risk control rule is fused, wherein the i-th first risk control rule is any one of the m first risk control rules; If the hit rate of the i-th first risk control rule is less than or equal to the first threshold, risk control management is performed based on the i-th first risk control rule.
4. The method according to claim 2 or 3, characterized in that: The determining, based on the hit rate of each first risk control rule, the fuse rates corresponding to the m first risk control rules includes: Based on the hit rate of each first risk control rule, determine a first number of the m first risk control rules whose hit rates are greater than a first threshold; Based on m and the first number, determine the fuse rates corresponding to the m first risk control rules.
5. The method according to any one of claims 2 to 4, characterized in that: The performing fuse management on the first abnormal sample library based on the fuse rates corresponding to the m first risk control rules includes: If the fuse rates corresponding to the m first risk control rules are greater than the second threshold, the first abnormal sample library is fuse-broken; If the fuse rates corresponding to the m first risk control rules are less than or equal to the second threshold, risk control management is performed based on the first abnormal sample library.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: For the n business requests within the first time period, based on the risk control scenario types of the n business requests, determine x second risk control rules corresponding to each business request; Acquire a second abnormal sample library corresponding to each second risk control rule of each business request; Based on the second abnormal sample library corresponding to each second risk control rule of each business request, determine k second abnormal sample libraries corresponding to the n business requests, and f second risk control rules corresponding to each second abnormal sample library, wherein the first abnormal sample library is any one of the k second abnormal sample libraries, and the f second risk control rules corresponding to the first abnormal sample library are the m first risk control rules; Based on each first risk control rule, determine a hit result of the business request corresponding to each first risk control rule under each first risk control rule; Based on the hit results of the business requests corresponding to each first risk control rule under each first risk control rule, the hit rate of each first risk control rule in the first time period is determined.
7. The method according to claim 6, characterized in that The determining, based on each first risk control rule, a hit result of the business request corresponding to each first risk control rule under each first risk control rule includes: Obtaining similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library; Based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, the hit result of the business request corresponding to each first risk control rule under each first risk control rule is determined.
8. The method according to claim 7, characterized in that The determining, based on the similarity information between the business request corresponding to each first risk control rule and the abnormal samples in the first abnormal sample library, a hit result of the business request corresponding to each first risk control rule under each first risk control rule includes: For the hth first risk control rule, wherein the hth first risk control rule includes g evaluation items, and the hth first risk control rule is any one of the m first risk control rules; If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library satisfies each of the g evaluation items, then the business request corresponding to the hth first risk control rule hits the hth first risk control rule; If the similarity information between the business request corresponding to the hth first risk control rule and the abnormal sample in the first abnormal sample library does not meet at least one of the g evaluation items, the business request corresponding to the hth first risk control rule does not hit the hth first risk control rule.
9. The method according to claim 8, characterized in that The method further comprises: For the j-th business request, if the j-th business request hits k second risk control rules among the x second risk control rules corresponding to the j-th business request, obtain the penalty decision of each second risk control rule among the k second risk control rules, where k is an integer less than x; The j-th business request is punished based on the penalty decision of each second risk control rule in the k second risk control rules.
10. The method according to claim 9, characterized in that The penalty decision based on each of the k second risk control rules punishing the j-th business request includes: If k is greater than or equal to 2, obtaining the priority of the penalty decision of each of the k second risk control rules; The penalty decision with the highest priority among the penalty decisions of the k second risk control rules is taken as the target penalty decision; The j-th service request is penalized based on the target penalty decision.
11. The method according to claim 10, characterized in that The punishing the j-th service request based on the target penalty decision includes: If the target penalty decision is a storage penalty, then adding the j-th business request to the first abnormal sample library; If the target penalty decision is a stock-out penalty, the j-th business request is deleted from the first abnormal sample library.
12. An abnormal sample library management device, characterized in that: The device comprises: a transceiver unit and a processing unit; The transceiver unit is used to obtain the hit rate of each of the m first risk control rules corresponding to the first abnormal sample library within the first time period; The processing unit is used to perform fuse management on the first abnormal sample library based on the hit rate of each first risk control rule.
13. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device executes the method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 11.
