Risk processing method and device, storage medium and electronic equipment
By conducting discrete data conversion on the test user transaction data and training the risk interpretability model, an interpretable risk decision rule table is generated, which solves the problem of the machine learning model's 'black box' decision-making process being difficult to explain in risk processing and improves the risk Transparency and precision in processing.
Patent Information
- Application Number
- CN202410926589.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-18
AI Technical Summary
Existing machine learning models are often 'black box' models in risk processing tasks, making it difficult to explain their decision-making processes. Especially in fields that require high reliability and understanding, such as medical, finance, and law, it is difficult to master risk control decisions. process and restore the transaction risk control process from the system execution log.
By obtaining the test user transaction data of the sample user set in the target transaction scenario, perform discrete data conversion, train and tune the initial risk explainability model based on the discrete user transaction data, and generate a risk including an explainable risk decision rule table The interpretability model is used to determine user risk prediction information and decision-making information for target users.
It enhances the transparency and explainability of risk processing, improves the accuracy and efficiency of risk processing, and provides a clear risk decision-making rule table to characterize the risk decision-making process of the assessment user.
Smart Images

Figure CN118797409A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a risk management method, device, storage medium and electronic device. Background Art
[0002] In transactions closely related to users, such as financial credit transactions, online shopping transactions, transportation transactions, insurance services, etc., machine learning models are often used in transactions to assist in handling risk management tasks related to user transactions. With the development of deep learning and other advanced machine learning technologies, the machine learning models used have become more and more complex, such as random forests, deep neural networks, and gradient boosting machines. These machine learning models have performed well in many risk management tasks. Summary of the invention
[0003] This specification provides a risk management method, device, storage medium and electronic device. The technical solution is as follows:
[0004] In a first aspect, this specification provides a risk management method, the method comprising:
[0005] Acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data;
[0006] Performing discrete data conversion on the test user transaction data to obtain discrete user transaction data;
[0007] Performing training and tuning processing on the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning processing, wherein the risk interpretability model includes an interpretable risk decision rule table;
[0008] Based on the risk explainability model and the explainability risk decision rule table, user risk prediction information and target user risk decision information for the target user are determined.
[0009] In a second aspect, this specification provides a risk management device, the device comprising:
[0010] A data acquisition module, used to acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data;
[0011] A data conversion module, used for performing discrete data conversion on the test user transaction data to obtain discrete user transaction data;
[0012] A model processing module, used for training and tuning the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning, wherein the risk interpretability model includes an interpretable risk decision rule table;
[0013] The model processing module is also used to determine user risk prediction information and target user risk decision information for the target user based on the risk interpretability model and the interpretable risk decision rule table.
[0014] In a third aspect, the present specification provides a computer storage medium, wherein the computer storage medium stores at least one instruction, wherein the instruction is suitable for being loaded by a processor and executing the method steps of one or more embodiments of the present specification.
[0015] In a fourth aspect, the present specification provides a computer program product, wherein the computer program product stores at least one instruction, wherein the instruction is suitable for being loaded by a processor and executing the method steps of one or more embodiments of the present specification.
[0016] In a fifth aspect, the present specification provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps of one or more embodiments of the present specification.
[0017] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:
[0018] In one or more embodiments of the present specification, the electronic device obtains discrete user transaction data by performing discrete data conversion on test user transaction data including continuous user transaction data, and obtains a risk interpretability model including an interpretable risk decision rule table by performing training and tuning processing based on the discrete user transaction data. In this way, the electronic device can determine user risk prediction information and target user risk decision information for a target user based on the risk interpretability model and the interpretable risk decision rule table in a target transaction scenario, and characterize and evaluate the risk decision process of a user by applying a clearly defined risk decision rule table based on the risk interpretability model, thereby enhancing not only the transparency and interpretability of risk processing, but also the accuracy and efficiency of risk processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in this specification or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 It is a scenario diagram of a risk management system provided in this manual;
[0021] Figure 2 It is a flow chart of a risk management method provided in this manual;
[0022] Figure 3 It is a schematic diagram of an interpretable risk decision rule table provided in this manual;
[0023] Figure 4 It is a flowchart of a discrete data conversion method provided in this specification;
[0024] Figure 5 It is a flow chart of a feature coding provided in this specification;
[0025] Figure 6 is another flowchart of the discrete data conversion method provided in this specification;
[0026] Figure 7 It is a flow chart of information determination provided in this manual;
[0027] Figure 8 It is a structural schematic diagram of a risk treatment device provided in this manual;
[0028] Fig. 9 It is a structural schematic diagram of an electronic device provided in this manual. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in this specification to clearly and completely describe the technical solutions in this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0030] In the description of this specification, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of this specification, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this specification can be understood in specific circumstances. In addition, in the description of this specification, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0031] In related technologies, the machine learning models commonly used in risk management tasks are "black box models", and the decision-making process of machine learning models is often opaque like a "black box", difficult to understand and explain. Especially in fields with high requirements for reliability and comprehensibility, such as medical, financial and legal fields, it is particularly necessary to clarify the decision-making process. It is difficult for the platform service side to grasp the risk control decision-making process, and it is difficult to restore the transaction risk control process from the system execution log.
[0032] Based on this, in one or more embodiments of the present specification, an explainable model comes into being. For the explainable model, it often only supports mapping discrete input data to decision rules. In the relevant risk handling tasks involving users, continuous input data is mainly used. For continuous input data, the decision results of the explainable model must also meet expectations.
[0033] The present specification is described in detail below with reference to specific embodiments.
[0034] See also Figure 1 , is a scenario diagram of a risk management system provided in this specification. Figure 1 As shown, the risk handling system may include at least a client cluster and a service platform 100 .
[0035] The client cluster may include at least one client, such as Figure 1 As shown, it specifically includes client 1 corresponding to user 1, client 2 corresponding to user 2, ..., client n corresponding to user n, where n is an integer greater than 0.
[0036] Each client in the client cluster may be an electronic device with communication function, including but not limited to: wearable device, handheld device, personal computer, tablet computer, vehicle-mounted device, smart phone, computing device or other processing device connected to a wireless modem, etc. Electronic devices may be called different names in different networks, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), electronic device in 5G network or future evolution network, etc.
[0037] The service platform 100 can be a separate server device, such as a rack-mounted, blade, tower, or cabinet-mounted server device, or a workstation, mainframe computer, or other hardware device with strong computing power; it can also be a server cluster composed of multiple servers, and the servers in the service cluster can be composed in a symmetrical manner, wherein each server has equivalent functions and status in the transaction link, and each server can provide services to the outside independently, and the independent service can be understood as not requiring the assistance of other servers.
[0038] In one or more embodiments of the present specification, the service platform 100 may establish a communication connection with at least one client in the client cluster, and complete data interaction during risk handling based on the communication connection, such as online transaction data interaction. For example, the service platform 100 may implement risk handling for users of the client based on a risk interpretability model obtained based on the risk handling method of the present specification. For another example, the service platform 100 may obtain test user transaction data of a sample user set from the client. For another example, the service platform 100 may obtain target user transaction data of a target user from the client.
[0039] It should be noted that the service platform 100 and at least one client in the client cluster establish a communication connection through a network for interactive communication, wherein the network can be a wireless network or a wired network, the wireless network includes but is not limited to a cellular network, a wireless local area network, an infrared network or a Bluetooth network, and the wired network includes but is not limited to Ethernet, a universal serial bus (USB) or a controller local area network. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data (such as a target compressed package) exchanged through a network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0040] The risk management system embodiment provided in this specification and the risk management method in one or more embodiments belong to the same concept. The execution subject corresponding to the risk management method involved in one or more embodiments of the specification can be an electronic device, and the electronic device can be the above-mentioned service platform 100; the electronic device can be a client, which is determined based on the actual application environment. The embodiment of the risk management system and its implementation process can be detailed in the following method embodiment, which will not be repeated here.
[0041] based on Figure 1 The scenario diagram is shown, and the risk management method provided by one or more embodiments of this specification is introduced in detail below.
[0042] See also Figure 2 , a flow chart of a risk processing method is provided for one or more embodiments of the present specification, the method can be implemented by a computer program and can be run on a risk processing device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The risk processing device can be an electronic device.
[0043] Specifically, the risk management method includes:
[0044] S102: Acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data;
[0045] The target transaction scenario is based on the actual application scenario, such as financial transaction scenario, e-commerce shopping behavior scenario, medical service interaction scenario, financial data transfer scenario, etc.
[0046] The sample user set includes one or more sample users, and a series of risk processing is subsequently performed using the test user transaction data of each sample user in the sample user set to obtain a risk explainability model.
[0047] Specifically, the electronic device can provide insurance services to the outside world, and one or more users can perform related transaction operations based on the target transaction provided by the electronic device. Taking the target transaction as an insurance transaction, such as selecting a certain type of insurance, initiating an insurance claim, etc., the electronic device can record the insurance transaction data related to the insurance affairs of one or more sample users as test user transaction data with the authorization of the sample user or full authorization of all parties, for example, historical claims records, insurance time, accident time, insurance period, user information and other transaction data.
[0048] Exemplarily, in the target transaction scenario, for any user, the user transaction data mainly includes continuous user transaction data, such as the amount, time, frequency, etc. commonly seen in the transaction scenario are all continuous user transaction data. In some cases, the user transaction data may also include discrete user transaction data.
[0049] For example, the acquisition process of the test user transaction data may be an automated script method: automatically extracting the test user transaction data of the sample user from a database or an application program interface (API). It may be a log file method: parsing the log file of the target transaction to extract the test user transaction data of the sample user.
[0050] Optionally, the test user transaction data of the sample user set can be divided into a training set and a test set. The test set should represent future transaction behaviors and be used to evaluate the effect of the model. The training set is used for model training.
[0051] S104: performing discrete data conversion on the test user transaction data to obtain discrete user transaction data;
[0052] Convert the test user transaction data into discrete data to adapt to the processing mode of the risk explainability model. This can usually be done by using data binning. Binning is to divide the continuous variables in the test user transaction data into several intervals. The values in each interval are regarded as one category, thereby realizing the conversion of continuous data into discrete data.
[0053] Specifically, the test user transaction data is binned to perform discrete data conversion to obtain discrete user transaction data;
[0054] Optionally, you can use equal-width binning: collect the test user transaction data into a wide table, divide the data range (minimum to maximum value) into several intervals of equal width in the wide table, and treat the values in each interval as one category, thereby realizing the conversion of continuous data to discrete data. Equal-width binning is simple and intuitive.
[0055] Optionally, you can use an equal-frequency binning method: collect the test user transaction data into a wide table, and perform equal-frequency binning in the wide table, with each bin containing approximately the same number of data points.
[0056] Optionally, a clustering-based binning method can be used: collect the test user transaction data into a wide table, and use a clustering algorithm (such as k-means) in the wide table to group the data points into several categories. Each category forms a box, and the values in each box interval are regarded as one category, thereby realizing the conversion of continuous data to discrete data.
[0057] Optionally, the chi-square binning method can be used to collect the test user transaction data into a wide table, and the division of boxes in the wide table can be optimized by merging adjacent intervals with similar frequencies based on the statistical principle of the chi-square test.
[0058] S106: Performing training and tuning processing on the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning processing, wherein the risk interpretability model includes an interpretable risk decision rule table;
[0059] The risk explainability model can be used as a tool in risk management and decision making. After subsequent application, it can provide clear and transparent decision logic, so that users or service maintenance personnel can understand how the model assesses risks based on input data;
[0060] In this specification, the risk interpretability model is configured to output an interpretable risk decision rule table that feeds back the risk decision logic within the model upon completion of model training;
[0061] The explainable risk decision rule table includes multiple explainable risk decision rules corresponding to the risk explainability model. The explainable risk decision rules are sorted by priority. Each rule in the table clearly points out the risk action to be taken or the risk prediction to be made when certain conditions are met.
[0062] In a feasible implementation, discrete user transaction data is used to train an initial risk interpretability model. The initial risk interpretability model can be created based on a machine learning model. After creating the initial risk interpretability model for the user transaction data feature variables and the risk prediction target variables, the initial risk interpretability model is trained using discrete user transaction data. During the model training process, the model parameters (such as network depth, minimum sample segmentation, etc.) are adjusted, and cross-validation and other techniques are used to optimize the model's performance and avoid overfitting. The goal of the training process is to maximize the prediction accuracy of the initial risk interpretability model while maintaining the interpretability of the rules. Model training requires multiple iterations of adjustment and verification to achieve a better balance until the initial risk interpretability model completes model training, and an interpretable risk decision rule table including at least one interpretable risk decision rule is extracted from the initial risk interpretability model to obtain a risk interpretability model including the interpretable risk decision rule table.
[0063] Exemplarily, the training and tuning of the initial risk interpretability model based on the discrete user transaction data to obtain the risk interpretability model after the training and tuning includes:
[0064] A2: Create an initial risk interpretability model for user transaction data feature variables and risk prediction target variables;
[0065] A4: The initial risk interpretability model is subjected to at least one round of model training using the discrete user transaction data, and an interpretable risk decision rule table including at least one interpretable risk decision rule is optimized based on the initial risk interpretability model during the model training process until the initial risk interpretability model completes model training, thereby obtaining a risk interpretability model including the interpretable risk decision rule table.
[0066] Exemplarily, an initial risk explainability model is created for user transaction data feature variables and risk prediction target variables based on a machine learning model;
[0067] The input of the initial risk explainability model in the model training phase is the discrete user transaction data of the sample user, and the discrete user transaction data is composed of one or more user transaction data feature variables. The user transaction data feature variables include, for example, discrete user behavior data variables converted from user behavior data, transaction history data variables converted from transaction history data, etc.
[0068] The model processing goal of the initial risk explainability model is to predict the risk prediction target variable based on the user transaction data feature variables. For example, the risk prediction target variable can be the prediction of the risk of user transactions, such as the user's risk level or specific risk events (such as default, fraud, etc.), etc.
[0069] The machine learning models involved in one or more embodiments of this specification include but are not limited to the fitting of one or more machine learning models such as Convolutional Neural Network (CNN) model, Deep Neural Network (DNN) model, Recurrent Neural Networks (RNN) model, embedding model, Gradient Boosting Decision Tree (GBDT) model, Logistic Regression (LR) model, etc.;
[0070] The initial risk interpretability model is configured to produce at least one interpretable risk decision rule after the model training is completed. These interpretable risk decision rules constitute an interpretable risk decision rule table. After the model training is completed, a risk interpretability model carrying the interpretable risk decision rule table is generated.
[0071] Furthermore, after creating the initial risk interpretability model (e.g., using discrete user transaction data to input the initial risk interpretability model), the initial risk interpretability model is hyperparameter tuned to find the recommended model configuration. Hyperparameter tuning involves adjusting various parameters of the model (e.g., learning rate, network depth, regularization strength, etc.) and table parameters of the "interpretable risk decision rule table" (e.g., list length, decision rule items, risk value) to improve the prediction accuracy and generalization ability of the model. Hyperparameter tuning can be achieved through grid search, random search, such as Bayesian optimization. In addition, hyperparameter tuning is performed during the model training process until the model training ends.
[0072] Exemplarily, according to the recommended model configuration, on the one hand, the model parameters of the initial risk interpretability model are optimized during the model training process, and on the other hand, the table parameters of the interpretable risk decision rule table are adjusted. The model is trained using discrete user transaction data for at least one round and multiple iterations. Each iteration calculates the model loss based on the model's predicted output results and pre-labeled output result labels. The model loss is used to adjust the recommended model configuration until the initial risk interpretability model meets the model training end conditions, thereby obtaining a risk interpretability model including the interpretable risk decision rule table.
[0073] Optionally, the model training end condition of the model may include, for example, the value of the loss function is less than or equal to a preset loss function threshold, the number of iterations reaches a preset number threshold, etc. The specific model training end condition can be determined based on actual conditions and is not specifically limited here.
[0074] S108: Based on the risk explainability model and the explainability risk decision rule table, determine user risk prediction information and target user risk decision information for the target user.
[0075] It can be understood that the interpretable risk decision rule table is used to intuitively characterize the risk decision process of the risk interpretability model. The output of the risk interpretability model is the user risk prediction information for the target user. Based on the use of the interpretable risk decision rule table through the risk interpretability model, one or more target user risk decision information can be output;
[0076] For example, the interpretability risk decision rule table can refer to Figure 3 As shown, Figure 3 is a schematic diagram of an interpretable risk decision rule table. Figure 3 It is shown in the figure that the user risk prediction information includes the user risk prediction probability and the user risk group division information. The target user risk decision information is a risk decision rule composed of one or more rows of table data in the explainable risk decision rule table. The target user risk decision information reflects the user risk decision rule.
[0077] The number of target users may be one or more, and the target user may be one of the sample user set or a new user to be assessed for risk other than the sample user set.
[0078] Specifically, the target user transaction data of the target user is obtained, the target discrete user transaction data corresponding to the target user transaction data is determined, the target discrete user transaction data is input into the risk interpretability model, the user risk prediction information for the target user (such as user risk prediction probability and user risk group division information) is determined, and the target user risk decision information for the user risk prediction information is determined through the interpretable risk decision rule table in the risk interpretability model.
[0079] Exemplarily, the initial risk interpretability model is trained and tuned based on the discrete user transaction data to obtain a risk interpretability model after training and tuning, and the risk interpretability model includes an interpretable risk decision rule table and further includes:
[0080] At least one risk decision rule is obtained from the explainable risk decision rule table, and the risk decision rule is saved in a risk rule library.
[0081] In one or more embodiments of the present specification, the electronic device obtains discrete user transaction data by performing discrete data conversion on test user transaction data including continuous user transaction data, and obtains a risk interpretability model including an interpretable risk decision rule table by performing training and tuning processing based on the discrete user transaction data. In this way, the electronic device can determine user risk prediction information and target user risk decision information for a target user based on the risk interpretability model and the interpretable risk decision rule table in a target transaction scenario, and characterize and evaluate the risk decision process of a user by applying a clearly defined risk decision rule table based on the risk interpretability model, thereby enhancing not only the transparency and interpretability of risk processing, but also the accuracy and efficiency of risk processing.
[0082] See also Figure 4 , Figure 4 This is a flowchart of a discrete data conversion method proposed in one or more embodiments of this specification. To perform discrete data conversion on the test user transaction data to obtain discrete user transaction data, the following method can be referred to:
[0083] S2002: importing the test user transaction data into an initial user transaction risk wide table, and binning the initial user transaction risk wide table to obtain a user transaction risk wide table including at least one data feature bin;
[0084] The user transaction risk wide table is a database table model with many fields that integrates the test user transaction data. It can also be understood as a wide table model, which is a database table that associates the user transaction data feature variables related to the user subject, the risk prediction target variables, etc.
[0085] Schematically, the user transaction risk wide table places related fields in a large wide table, and then performs data binning to convert continuous data into discrete data.
[0086] Exemplarily, the data binning of the initial user transaction risk wide table to obtain the user transaction risk wide table including at least one data feature bin may be performed in the following manner:
[0087] The initial user transaction risk wide table is subjected to chi-square binning processing by adopting a chi-square binning method to obtain a user transaction risk wide table including at least one data feature bin.
[0088] Exemplarily, for each user transaction data feature variable X in the test user transaction data, it is taken out and merged with the risk prediction target variable into a user transaction risk wide table, and the user transaction risk wide table is subjected to chi-square binning processing to obtain a user transaction risk wide table including at least one data feature box.
[0089] Risk prediction target variable Y, for example, the risk prediction target variable can be the prediction of the risk of user transactions, such as the risk prediction target variable can be the user's risk level or a specific risk event (such as default, fraud, etc.). All samples or part of the samples can also be annotated with the risk prediction target variable Y in advance;
[0090] Furthermore, chi-square binning is based on chi-square distribution and chi-square value to determine whether a factor X will affect the target variable Y. This judgment process uses the chi-square test.
[0091] The null hypothesis of the chi-square test: there is no difference between the observed frequency and the expected frequency, that is, the variable will not affect the target variable.
[0092] The chi-square value was calculated based on the original hypothesis. The specific calculation formula is: It represents the observed value f0 and the theoretical value f e The degree of deviation between them. Based on the chi-square distribution and the degree of freedom, we can calculate the probability p of obtaining the current chi-square value and a more extreme case when the original hypothesis is true. value When <0.5, the null hypothesis can be rejected, and it is believed that the deviation between the observed value and the theoretical value is relatively large. Otherwise, the null hypothesis cannot be rejected.
[0093] Chi-square binning uses a bottom-up merging method to complete the binning operation. In each merging process, the minimum chi-square value is used to find the best merging item. The core idea is that if the intervals of two data feature bins can be merged, then the bad samples of the intervals of these two data feature bins need to have the closest distribution, that is, the chi-square value of the intervals of these two data feature bins is the smallest.
[0094] For example, the steps of chi-square binning are as follows:
[0095] 1. Sort the numerical variable X into several groups, set as X1, X2, ...X n .
[0096] 2. Calculate the chi-square value after X1 and X2 are combined, and the chi-square value after X2 and X3 are combined, until X n-1 With X n The combined chi-square value.
[0097] 3. Find the one with the smallest chi-square value after all the mergers in the second step, assuming it is X i-1 With X i , merge them into a new X i-1 .
[0098] 4. Repeat 2 and 3 until the termination condition is met.
[0099] The termination conditions can be referred to as follows:
[0100] After the i-th merger, the minimum chi-square value p value Exceeds 0.9 (or a certain threshold), because the larger the chi-square value, the higher the p value The smaller it is, the stronger the correlation is and the better the explanation of Y is.
[0101] After the i-th merge, the total number of intervals of the unmerged data feature boxes reaches the pre-specified number of boxes.
[0102] S2004: Perform feature coding on each of the data feature boxes of the user transaction risk wide table to obtain discrete user transaction data.
[0103] The data after data binning is in the form of intervals corresponding to data feature bins. It is also necessary to refer to each data feature bin to perform feature encoding on sample users to obtain discrete user transaction data.
[0104] Optionally, the feature encoding method may be a serial number encoding method, an embedded encoding method, a one-hot encoding method, etc.;
[0105] Taking embedded coding as an example, the embedding network Embedding is used to learn a mapping from categories to dense vectors through training, and completes the process of feature encoding sample users with reference to each data feature box to obtain discrete user transaction data. Embedded coding can effectively process features with a large number of categories and can capture the potential relationship between categories, thereby realizing direct conversion of input features for the risk interpretability model. At this time, the number of discrete user transactions is in the form of embedded coding features, and the risk interpretability model can directly use discrete user transaction data without data feature processing.
[0106] In one or more embodiments of the present specification, by importing and processing the test user transaction data into a wide risk table, and further converting it into discrete data through data binning and feature coding, the data structure is effectively standardized and simplified, and the efficiency of data processing and the accuracy of model training are improved. This helps the subsequent risk interpretability model to accurately identify and evaluate risk factors in user transactions, thereby making the risk management process more efficient and systematic, while improving the manageability and interpretability of data.
[0107] See also Figure 5 , Figure 5 This is a flow chart of a feature coding process proposed in one or more embodiments of this specification. Based on the binary discrete coding method, the feature coding of each data feature box based on the user transaction risk wide table is performed to obtain discrete user transaction data. The following method can be referred to:
[0108] S302: Determine each of the data feature boxes corresponding to the test user transaction data feature variables based on the user transaction risk wide table, determine the transaction data variable category corresponding to the data feature box, and set the candidate binary discrete variable value under the transaction data variable category;
[0109] The test user transaction data in the user transaction risk wide table is composed of test user transaction data feature variables. Each test user transaction data feature variable forms multiple feature boxes after feature binning. The feature box realizes the division of continuous feature variables into discrete intervals (boxes). Each box represents a specific range of the variable. Next, determine the transaction data variable category corresponding to each box, and set candidate binary discrete variable values (such as 0, 1) for each category. For example, if an amount feature is divided into three boxes (low, medium, and high), each box will correspond to a candidate discrete value.
[0110] S304: determining a box position relationship between the table variable data of the test user transaction data characteristic variable and each of the data characteristic boxes, and setting a target discrete variable value under the transaction data variable category for the table variable data from the candidate binary discrete variable values based on the box position relationship;
[0111] First, we need to determine the relationship between the value of each feature variable in the test user's transaction data and the box position defined in the previous step. The box position relationship is such as whether the feature variable value of a sample user is within a certain box. Based on this position relationship, the corresponding target discrete variable value is set for the actual value of each feature variable from the candidate binary discrete variable values (such as 0,1). This process is to identify which box each data point belongs to and assign the corresponding discrete value accordingly. For example, if the user's transaction amount is 500, and this amount value falls within the range of the "medium" box, the amount feature will be assigned the corresponding discrete value of the "medium" box.
[0112] S306: Obtain discrete user transaction data based on the discrete variable values of all the test user transaction data characteristic variables.
[0113] Exemplarily, after all the test user transaction data feature variables are converted into discrete variable values according to the above method, these discrete variable values are merged to form completely discretized user transaction data. User transaction data can be directly applied to the risk interpretability model.
[0114] In one or more embodiments of the present specification, the above-mentioned method is based on the idea of binary discrete coding, and the continuous data is creatively converted into a format that can be more effectively processed by the model while retaining its distribution information. The converted discrete user transaction data not only helps to improve the accuracy of model training, but also enhances the model's ability to process data, especially in the risk assessment of classifying and predicting user behavior. Through this method, the processing of data becomes more structured, which helps to improve the interpretability and transparency of data analysis.
[0115] See also Figure 6 , Figure 6 This is another flowchart of a discrete data conversion method proposed in one or more embodiments of this specification. To perform the discrete data conversion on the test user transaction data to obtain discrete user transaction data, the following method can be referred to:
[0116] S3002: Importing the test user transaction data into the initial user transaction risk wide table;
[0117] For details, please refer to the method steps in other embodiments of this specification, which will not be repeated here.
[0118] S3004: Performing data quality detection processing on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain a data quality detection result, and clearing table data of the first test user transaction data characteristic variables based on the data quality detection result;
[0119] Exemplarily, the test user transaction data characteristic variables (as x) and the corresponding risk prediction target variables (as y) in the initial user transaction risk wide table are integrated into the large wide table, and the data is subjected to quality screening, that is, data quality detection processing. On the one hand, it is checked whether there is duplicate data, and on the other hand, outlier detection is performed (to ensure that no values that are inconsistent with common sense appear) to obtain data quality detection results. Based on the data quality detection results, table data is cleared for the first test user transaction data characteristic variables involved. If the data quality detection result indicates that a first test user transaction data characteristic variable is an abnormal value or a duplicate value, the table data is cleared for the first test user transaction data characteristic variable involved.
[0120] S3006: Perform data missing detection processing on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain the variable missing rate corresponding to the test user transaction data characteristic variables, and adjust the table data of the second test user transaction data characteristic variables based on the variable missing rate.
[0121] Optionally, the execution order of the steps of S3004 and the execution order of the steps of S3006 are not in particular order;
[0122] Further, adjusting the table data of the second test user transaction data characteristic variable based on the variable missing rate includes:
[0123] If a first variable missing rate in the variable missing rates is greater than or equal to a first missing rate threshold, determining a first table data variable corresponding to the first variable missing rate, and performing table data removal processing on the first table data variable;
[0124] If the second variable missing rate in the variable missing rate is less than or equal to the second missing rate threshold, determine the second table data variable corresponding to the second variable missing rate, determine the variable data distribution information corresponding to the second table data variable, and perform table data filling processing on the target missing variable value of the second table data variable based on the variable data distribution information.
[0125] Wherein, the first missing rate threshold may be greater than or equal to the second missing rate threshold;
[0126] The missing values are processed in the above manner. If the variable missing rate is greater than the first missing rate threshold, such as 50%, the first table data variable is deleted. For variables with lower missing rates, if the second variable missing rate in the variable missing rate is less than or equal to the second missing rate threshold, the missing values are filled according to the distribution of the variable data distribution information. For example, when the variable data distribution information indicates that the variable follows a symmetrical distribution, the average value is used for filling. When the variable data distribution information indicates that the variable distribution is left-skewed or right-skewed, the median is used for filling. When the variable data distribution information indicates that the variable presents a bimodal or multimodal distribution, the mode is used for filling.
[0127] S3008: binning the initial user transaction risk wide table to obtain a user transaction risk wide table including at least one data feature bin;
[0128] S3010: Perform feature encoding on each of the data feature boxes of the user transaction risk wide table to obtain discrete user transaction data.
[0129] For details, please refer to the method steps in other embodiments of this specification, which will not be repeated here.
[0130] In one or more embodiments of the present specification, the accuracy and reliability of the risk explainability model are enhanced through the above-mentioned method. By standardizing and cleaning the data, the preprocessing ensures a solid foundation for data risk analysis, making risk assessment more accurate.
[0131] See also Figure 7 , Figure 7This is a flowchart of information determination proposed in one or more embodiments of this specification. Based on the risk explainability model and the explainability risk decision rule table, the user risk prediction information and the target user risk decision information for the target user are determined. The following method can be referred to:
[0132] S402: Determine target user transaction data of a target user, and obtain a user transaction risk wide table, where the user transaction risk wide table is obtained based on the test user transaction data;
[0133] S404: Determine target discrete user transaction data corresponding to the target user transaction data based on the user transaction risk wide table;
[0134] According to some embodiments, the number of target users may be one or more, and the target user may be one of the sample user set or a new user to be assessed for risk other than the sample user set.
[0135] Specifically, the target user transaction data of the target user is obtained, a user transaction risk wide table in some embodiments is obtained, the target discrete user transaction data corresponding to the target user transaction data is determined in combination with the user transaction risk wide table, the box position relationship between the table variable data of the target discrete user transaction data variable and each data feature box of the (user transaction risk wide table) is determined, and based on the box position relationship, the target discrete variable value under the transaction data variable category is set for the table variable data from the candidate binary discrete variable values, and the target discrete user transaction data is obtained based on the discrete variable values of all target discrete user transaction data variables.
[0136] S406: Input the target discrete user transaction data into the risk interpretability model to determine user risk prediction information for the target user, and determine target user risk decision information for the user risk prediction information through the interpretable risk decision rule table in the risk interpretability model.
[0137] The target discrete user transaction data is input into the risk interpretability model to determine the user risk prediction information for the target user (such as user risk prediction probability and user risk group division information), and the target user risk decision information for the user risk prediction information is determined through the interpretable risk decision rule table in the risk interpretability model.
[0138] In one or more embodiments of the present specification, the electronic device obtains discrete user transaction data by performing discrete data conversion on test user transaction data including continuous user transaction data, and obtains a risk interpretability model including an interpretable risk decision rule table by performing training and tuning processing based on the discrete user transaction data. In this way, the electronic device can determine user risk prediction information and target user risk decision information for a target user based on the risk interpretability model and the interpretable risk decision rule table in a target transaction scenario, and characterize and evaluate the risk decision process of a user by applying a clearly defined risk decision rule table based on the risk interpretability model, thereby enhancing not only the transparency and interpretability of risk processing, but also the accuracy and efficiency of risk processing.
[0139] The following will be combined Figure 8 , the risk management device provided in this manual is introduced in detail. It should be noted that Figure 8 The risk handling device shown is used to implement this instruction Figure 1 to Figure 7 For the convenience of explanation, only the parts related to this specification are shown. For specific technical details not disclosed, please refer to this specification. Figure 1 to Figure 7 The embodiment shown.
[0140] See also Figure 8 , which shows a schematic diagram of the structure of the risk processing device of the present specification. The risk processing device 1 can be implemented as all or part of the device through software, hardware or a combination of both. According to some embodiments, the risk processing device 1 includes a data acquisition module 11, a data conversion module 12 and a model processing module 13, which are specifically used to:
[0141] A data acquisition module 11 is used to acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data;
[0142] A data conversion module 12, configured to perform discrete data conversion on the test user transaction data to obtain discrete user transaction data;
[0143] A model processing module 13 is used to perform training and tuning processing on the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning processing, wherein the risk interpretability model includes an interpretable risk decision rule table;
[0144] The model processing module 13 is also used to determine user risk prediction information and target user risk decision information for the target user based on the risk interpretability model and the interpretable risk decision rule table.
[0145] Optionally, the data conversion module 12 is used to:
[0146] Importing the test user transaction data into an initial user transaction risk wide table, and binning the initial user transaction risk wide table to obtain a user transaction risk wide table including at least one data feature bin;
[0147] Discrete user transaction data is obtained by performing feature coding on each of the data feature boxes of the user transaction risk wide table.
[0148] Optionally, the data conversion module 12 is used to:
[0149] The initial user transaction risk wide table is subjected to chi-square binning processing by adopting a chi-square binning method to obtain a user transaction risk wide table including at least one data feature bin.
[0150] Optionally, the data conversion module 12 is used to:
[0151] Performing data quality detection processing on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain a data quality detection result, and clearing table data on the first test user transaction data characteristic variables based on the data quality detection result; and / or,
[0152] Data missing detection processing is performed on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain the variable missing rate corresponding to the test user transaction data characteristic variables, and table data adjustment is performed on the second test user transaction data characteristic variables based on the variable missing rate.
[0153] Optionally, the data conversion module 12 is used to:
[0154] If a first variable missing rate in the variable missing rates is greater than or equal to a first missing rate threshold, determining a first table data variable corresponding to the first variable missing rate, and performing table data removal processing on the first table data variable;
[0155] If the second variable missing rate in the variable missing rate is less than or equal to the second missing rate threshold, determine the second table data variable corresponding to the second variable missing rate, determine the variable data distribution information corresponding to the second table data variable, and perform table data filling processing on the target missing variable value of the second table data variable based on the variable data distribution information.
[0156] Optionally, the data conversion module 12 is used to:
[0157] Determine each of the data feature boxes corresponding to the test user transaction data feature variables based on the user transaction risk wide table, determine the transaction data variable category corresponding to the data feature box, and set the candidate binary discrete variable value under the transaction data variable category;
[0158] Determine the box position relationship between the table variable data of the test user transaction data characteristic variable and each of the data characteristic boxes, and set a target discrete variable value under the transaction data variable category for the table variable data from the candidate binary discrete variable values based on the box position relationship;
[0159] Discrete user transaction data are obtained based on the discrete variable values of all the test user transaction data characteristic variables.
[0160] Optionally, the model processing module 13 is used to:
[0161] Create an initial risk explainability model for user transaction data feature variables and risk prediction target variables;
[0162] The initial risk interpretability model is subjected to at least one round of model training using the discrete user transaction data, and an interpretable risk decision rule table including at least one interpretable risk decision rule is optimized based on the initial risk interpretability model during the model training process until the initial risk interpretability model completes model training, thereby obtaining a risk interpretability model including the interpretable risk decision rule table.
[0163] Optionally, the model processing module 13 is used to:
[0164] Determine target user transaction data of a target user, and obtain a user transaction risk wide table, wherein the user transaction risk wide table is obtained based on the test user transaction data;
[0165] Determine the target discrete user transaction data corresponding to the target user transaction data based on the user transaction risk wide table;
[0166] The target discrete user transaction data is input into the risk interpretability model to determine user risk prediction information for the target user, and the target user risk decision information for the user risk prediction information is determined through the interpretable risk decision rule table in the risk interpretability model.
[0167] Optionally, the model processing module 13 is used to:
[0168] At least one risk decision rule is obtained from the explainable risk decision rule table, and the risk decision rule is saved in a risk rule library.
[0169] Optionally, the user risk prediction information includes user risk prediction probability and user risk group division information.
[0170] It should be noted that the risk handling device provided in the above embodiment only uses the division of the above functional modules as an example when executing the risk handling method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the risk handling device provided in the above embodiment belongs to the same concept as the risk handling method embodiment, and its implementation process is detailed in the method embodiment, which will not be repeated here.
[0171] The above serial numbers in this specification are for description only and do not represent the advantages or disadvantages of the embodiments.
[0172] In one or more embodiments of the present specification, the electronic device obtains discrete user transaction data by performing discrete data conversion on test user transaction data including continuous user transaction data, and obtains a risk interpretability model including an interpretable risk decision rule table by performing training and tuning processing based on the discrete user transaction data. In this way, the electronic device can determine user risk prediction information and target user risk decision information for a target user based on the risk interpretability model and the interpretable risk decision rule table in a target transaction scenario, and characterize and evaluate the risk decision process of a user by applying a clearly defined risk decision rule table based on the risk interpretability model, thereby enhancing not only the transparency and interpretability of risk processing, but also the accuracy and efficiency of risk processing.
[0173] The present specification also provides a computer storage medium, which can store multiple instructions, which are suitable for being loaded and executed by a processor as described above. Figure 1 to Figure 7 The risk handling method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0174] The present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figure 1 to Figure 7 The risk handling method of the embodiment shown in the figure can be specifically implemented by referring to Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.
[0175] Please refer to Fig. 9 , is a block diagram of a structure of an electronic device provided in an embodiment of this specification. The electronic device in this specification may include one or more of the following components: a processor 1010, a memory 1020, an input device 1030, an output device 1040, and a bus 1050. The processor 1010, the memory 1020, the input device 1030, and the output device 1040 may be connected via a bus 1050.
[0176] The processor 1010 may include one or more processing cores. The processor 1010 uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions and processes data of the terminal 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1020, and calling data stored in the memory 1020. Optionally, the processor 1010 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1010 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1010, but may be implemented separately through a communication chip.
[0177] The memory 1020 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1020 includes a non-transitory computer-readable storage medium. The memory 1020 may be used to store instructions, programs, codes, code sets, or instruction sets.
[0178] The input device 1030 is used to receive input instructions or data, and the input device 1030 includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 1040 is used to output instructions or data, and the output device 1040 includes but is not limited to a display device and a speaker. In the embodiment of this specification, the input device 1030 can be a temperature sensor for obtaining the operating temperature of the terminal. The output device 1040 can be a speaker for outputting audio signals.
[0179] In addition, those skilled in the art will appreciate that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal also includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WIFI) module, a power supply, a Bluetooth module, and other components, which will not be described in detail here.
[0180] In the embodiments of this specification, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is the operating system of the terminal. The operating system may be an Android system, an IOS system, or other operating systems, which is not limited in the embodiments of this specification.
[0181] exist Fig. 9 In the electronic device, the processor 1010 can be used to call the program stored in the memory 1020 and perform the following steps.
[0182] Acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data;
[0183] Performing discrete data conversion on the test user transaction data to obtain discrete user transaction data;
[0184] Performing training and tuning processing on the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning processing, wherein the risk interpretability model includes an interpretable risk decision rule table;
[0185] Based on the risk explainability model and the explainability risk decision rule table, user risk prediction information and target user risk decision information for the target user are determined.
[0186] In a feasible implementation manner, the processor 1010 performs the discrete data conversion on the test user transaction data to obtain discrete user transaction data by performing the following steps:
[0187] Importing the test user transaction data into an initial user transaction risk wide table, and binning the initial user transaction risk wide table to obtain a user transaction risk wide table including at least one data feature bin;
[0188] Discrete user transaction data is obtained by performing feature coding on each of the data feature boxes of the user transaction risk wide table.
[0189] In a feasible implementation manner, the processor 1010 performs the data binning of the initial user transaction risk wide table to obtain a user transaction risk wide table including at least one data feature bin, and performs the following steps:
[0190] The initial user transaction risk wide table is subjected to chi-square binning processing by adopting a chi-square binning method to obtain a user transaction risk wide table including at least one data feature bin.
[0191] In a feasible implementation manner, before the processor 1010 performs the data binning of the initial user transaction risk wide table to obtain the user transaction risk wide table including at least one data feature bin, the processor 1010 further performs the following steps:
[0192] Performing data quality detection processing on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain a data quality detection result, and clearing table data on the first test user transaction data characteristic variables based on the data quality detection result; and / or,
[0193] Data missing detection processing is performed on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain the variable missing rate corresponding to the test user transaction data characteristic variables, and table data adjustment is performed on the second test user transaction data characteristic variables based on the variable missing rate.
[0194] In a feasible implementation manner, the processor 1010 performs the table data adjustment on the second test user transaction data characteristic variable based on the variable missing rate by performing the following steps:
[0195] If a first variable missing rate in the variable missing rates is greater than or equal to a first missing rate threshold, determining a first table data variable corresponding to the first variable missing rate, and performing table data removal processing on the first table data variable;
[0196] If the second variable missing rate in the variable missing rate is less than or equal to the second missing rate threshold, determine the second table data variable corresponding to the second variable missing rate, determine the variable data distribution information corresponding to the second table data variable, and perform table data filling processing on the target missing variable value of the second table data variable based on the variable data distribution information.
[0197] In a feasible implementation manner, the processor 1010 performs feature encoding on each of the data feature boxes based on the user transaction risk wide table to obtain discrete user transaction data, and performs the following steps:
[0198] Determine each of the data feature boxes corresponding to the test user transaction data feature variables based on the user transaction risk wide table, determine the transaction data variable category corresponding to the data feature box, and set the candidate binary discrete variable value under the transaction data variable category;
[0199] Determine the box position relationship between the table variable data of the test user transaction data characteristic variable and each of the data characteristic boxes, and set a target discrete variable value under the transaction data variable category for the table variable data from the candidate binary discrete variable values based on the box position relationship;
[0200] Discrete user transaction data are obtained based on the discrete variable values of all the test user transaction data characteristic variables.
[0201] In a feasible implementation manner, the processor 1010 performs the training and tuning process on the initial risk interpretability model based on the discrete user transaction data to obtain the risk interpretability model after the training and tuning process, and performs the following steps:
[0202] Create an initial risk explainability model for user transaction data feature variables and risk prediction target variables;
[0203] The initial risk interpretability model is subjected to at least one round of model training using the discrete user transaction data, and an interpretable risk decision rule table including at least one interpretable risk decision rule is optimized based on the initial risk interpretability model during the model training process until the initial risk interpretability model completes model training, thereby obtaining a risk interpretability model including the interpretable risk decision rule table.
[0204] In a feasible implementation manner, the processor 1010 executes the process of determining the user risk prediction information and the target user risk decision information for the target user based on the risk explainability model and the explainable risk decision rule table, and performs the following steps:
[0205] Determine target user transaction data of a target user, and obtain a user transaction risk wide table, wherein the user transaction risk wide table is obtained based on the test user transaction data;
[0206] Determine the target discrete user transaction data corresponding to the target user transaction data based on the user transaction risk wide table;
[0207] The target discrete user transaction data is input into the risk interpretability model to determine user risk prediction information for the target user, and the target user risk decision information for the user risk prediction information is determined through the interpretable risk decision rule table in the risk interpretability model.
[0208] In a feasible implementation manner, the processor 1010 performs the training and tuning processing of the initial risk interpretability model based on the discrete user transaction data to obtain the risk interpretability model after the training and tuning processing, and the risk interpretability model includes an interpretable risk decision rule table, and then further performs the following steps:
[0209] At least one risk decision rule is obtained from the explainable risk decision rule table, and the risk decision rule is saved in a risk rule library.
[0210] In a feasible implementation manner, the user risk prediction information includes user risk prediction probability and user risk group division information.
[0211] In one or more embodiments of the present specification, the electronic device obtains discrete user transaction data by performing discrete data conversion on test user transaction data including continuous user transaction data, and obtains a risk interpretability model including an interpretable risk decision rule table by performing training and tuning processing based on the discrete user transaction data. In this way, the electronic device can determine user risk prediction information and target user risk decision information for a target user based on the risk interpretability model and the interpretable risk decision rule table in a target transaction scenario, and characterize and evaluate the risk decision process of a user by applying a clearly defined risk decision rule table based on the risk interpretability model, thereby enhancing not only the transparency and interpretability of risk processing, but also the accuracy and efficiency of risk processing.
[0212] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0213] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the test user transaction data, user risk prediction information and target user risk decision information involved in this specification are all obtained with full authorization.
[0214] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. A risk management method, the method comprising: Acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data; Performing discrete data conversion on the test user transaction data to obtain discrete user transaction data; Performing training and tuning processing on the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning processing, wherein the risk interpretability model includes an interpretable risk decision rule table; Based on the risk explainability model and the explainability risk decision rule table, user risk prediction information and target user risk decision information for the target user are determined.
2. According to the method of claim 1, the step of converting the test user transaction data into discrete data to obtain discrete user transaction data comprises: Importing the test user transaction data into an initial user transaction risk wide table, and binning the initial user transaction risk wide table to obtain a user transaction risk wide table including at least one data feature bin; Discrete user transaction data is obtained by performing feature coding on each of the data feature boxes of the user transaction risk wide table.
3. The method according to claim 2, wherein the step of binning the initial user transaction risk wide table to obtain the user transaction risk wide table including at least one data feature bin comprises: The initial user transaction risk wide table is subjected to chi-square binning processing by adopting a chi-square binning method to obtain a user transaction risk wide table including at least one data feature bin.
4. The method according to claim 2, before binning the initial user transaction risk wide table to obtain the user transaction risk wide table including at least one data feature bin, further comprising: Performing data quality detection processing on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain a data quality detection result, and clearing table data on the first test user transaction data characteristic variables based on the data quality detection result; and / or, Data missing detection processing is performed on the test user transaction data characteristic variables in the initial user transaction risk wide table to obtain the variable missing rate corresponding to the test user transaction data characteristic variables, and table data adjustment is performed on the second test user transaction data characteristic variables based on the variable missing rate.
5. The method according to claim 4, wherein adjusting the table data of the second test user transaction data characteristic variable based on the variable missing rate comprises: If a first variable missing rate in the variable missing rates is greater than or equal to a first missing rate threshold, determining a first table data variable corresponding to the first variable missing rate, and performing table data removal processing on the first table data variable; If the second variable missing rate in the variable missing rate is less than or equal to the second missing rate threshold, determine the second table data variable corresponding to the second variable missing rate, determine the variable data distribution information corresponding to the second table data variable, and perform table data filling processing on the target missing variable value of the second table data variable based on the variable data distribution information.
6. The method according to claim 2, wherein the step of performing feature coding on each of the data feature boxes based on the user transaction risk wide table to obtain discrete user transaction data comprises: Determine each of the data feature boxes corresponding to the test user transaction data feature variables based on the user transaction risk wide table, determine the transaction data variable category corresponding to the data feature box, and set the candidate binary discrete variable value under the transaction data variable category; Determine the box position relationship between the table variable data of the test user transaction data characteristic variable and each of the data characteristic boxes, and set a target discrete variable value under the transaction data variable category for the table variable data from the candidate binary discrete variable values based on the box position relationship; Discrete user transaction data are obtained based on the discrete variable values of all the test user transaction data characteristic variables.
7. According to the method of claim 1, the training and tuning of the initial risk interpretability model based on the discrete user transaction data to obtain the risk interpretability model after the training and tuning comprises: Create an initial risk explainability model for user transaction data feature variables and risk prediction target variables; The initial risk interpretability model is subjected to at least one round of model training using the discrete user transaction data, and an interpretable risk decision rule table including at least one interpretable risk decision rule is optimized based on the initial risk interpretability model during the model training process until the initial risk interpretability model completes model training, thereby obtaining a risk interpretability model including the interpretable risk decision rule table.
8. The method according to claim 1, wherein determining the user risk prediction information and the target user risk decision information for the target user based on the risk explainability model and the explainable risk decision rule table comprises: Determine target user transaction data of a target user, and obtain a user transaction risk wide table, wherein the user transaction risk wide table is obtained based on the test user transaction data; Determine the target discrete user transaction data corresponding to the target user transaction data based on the user transaction risk wide table; The target discrete user transaction data is input into the risk interpretability model to determine user risk prediction information for the target user, and the target user risk decision information for the user risk prediction information is determined through the interpretable risk decision rule table in the risk interpretability model.
9. According to the method of claim 1, the initial risk interpretability model is trained and tuned based on the discrete user transaction data to obtain a risk interpretability model after training and tuning, and the risk interpretability model includes an interpretable risk decision rule table and further includes: At least one risk decision rule is obtained from the explainable risk decision rule table, and the risk decision rule is saved in a risk rule library.
10. According to the method of claim 1, the user risk prediction information includes user risk prediction probability and user risk group classification information.
11. A risk management device, comprising: A data acquisition module, used to acquire test user transaction data of a sample user set in a target transaction scenario, wherein the test user transaction data includes continuous user transaction data; A data conversion module, used for performing discrete data conversion on the test user transaction data to obtain discrete user transaction data; A model processing module, used for training and tuning the initial risk interpretability model based on the discrete user transaction data to obtain a risk interpretability model after training and tuning, wherein the risk interpretability model includes an interpretable risk decision rule table; The model processing module is also used to determine user risk prediction information and target user risk decision information for the target user based on the risk interpretability model and the interpretable risk decision rule table.
12. A computer storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 10.
13. A computer program product, the computer program product storing at least one instruction, wherein the at least one instruction is loaded by a processor and executes the method steps according to any one of claims 1 to 10.
14. An electronic device comprising: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 10.
