Retraining method and device for risk control model

By obtaining and analyzing sample data, predicting group stability and calculating deployment cost increments, the machine learning model is retrained by taking multiple factors into consideration, solving the problem of low reliability of retraining in the existing technology and improving the model's reliability. stability and effectiveness.

CN114154891BActive Publication Date: 2024-08-23CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111494348.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2024-08-23
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

The retraining trigger element of the machine learning model in the existing technology is single, resulting in low reliability and effectiveness of the retraining.

Method used

By obtaining the current sample data and previous sample data, the population stability information is predicted, and the retraining probability is determined based on the generation time and the number of retraining times, and the deployment cost increment between the deployment of the new model and the original model is calculated, comprehensively considering the population stability, The original risk control model is retrained using the retraining probability and deployment cost increment to generate a new risk control model.

Benefits of technology

It improves the reliability and accuracy of machine learning model retraining, avoids the problem of low reliability caused by a single trigger element, and enhances the stability and resource utilization efficiency of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114154891B
    Figure CN114154891B
Patent Text Reader

Abstract

The disclosed embodiments provide a method and device for retraining a risk control model, comprising: obtaining current sample data and previous sample data, and predicting group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is business record data used for retraining, and the previous sample data is business record data for training an original risk control model, obtaining a generation time of the original risk control model, obtaining the number of retrainings from the generation of the original risk control model to the current retraining, and determining a probability of retraining based on the generation time and the number of retrainings, calculating an incremental deployment cost between the deployment of a new risk control model and the original risk control model, and retraining the original risk control model based on the group stability information, the probability of retraining, and the incremental deployment cost to obtain a new risk control model, thereby improving the technical effect of reliability and accuracy of retraining.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of artificial intelligence technology, and more particularly to a method and device for retraining a risk control model. Background Art

[0002] With the development of artificial intelligence technology, machine learning models are widely used in various industries and fields. For example, machine learning models are used in information push, that is, by training push models to push news and information to users; another example is that machine learning models are used in risk control, that is, by training risk control models to prevent funds from being stolen, fraud, etc.

[0003] In order to make the machine learning model continuously meet the needs of users, such as improving the efficiency of information push, or improving the reliability of risk control, it is usually necessary to retrain the trained machine learning model. In the prior art, the retraining of the original machine learning model is usually triggered based on the "monitoring + single rule" method, such as monitoring a certain parameter of the machine learning model operation, such as monitoring the area under the curve (Area Under Curve, AUC) of the original machine learning model's working characteristic (Receiver Operating Characteristic curve, ROC). If the AUC is greater than the preset threshold, the original machine learning model is retrained to obtain a new machine learning model.

[0004] However, with the above method, the trigger element for retraining is single, resulting in low reliability and effectiveness of retraining. Summary of the invention

[0005] The disclosed embodiments provide a risk control model retraining method and device to solve the technical problem of low reliability of retraining.

[0006] On the one hand, an embodiment of the present disclosure provides a method for retraining a risk control model, comprising:

[0007] Acquire current sample data and previous sample data, and predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model;

[0008] Obtaining the generation time of the original risk control model, obtaining the number of retrainings from the generation of the original risk control model to the current retraining, and determining the probability of retraining according to the generation time and the number of retrainings;

[0009] The deployment cost increment between the new risk control model and the original risk control model is calculated, and the original risk control model is retrained according to the group stability information, the probability of retraining, and the deployment cost increment to obtain the new risk control model, and the new risk control model is used to identify the risk information of the business to be processed.

[0010] In some embodiments, predicting population stability information during retraining based on the previous sample data and the current sample data includes:

[0011] Determining current feature distribution information corresponding to the current sample data, and determining previous feature distribution information corresponding to the previous sample data;

[0012] Distribution difference information between the current feature distribution information and the previous feature distribution information is calculated, and the population stability information is predicted based on the distribution difference information.

[0013] In some embodiments, determining the probability of retraining according to the generation time and the number of retraining times includes:

[0014] Determine the time difference between the current time and the generated time, and obtain the time of the most recent retraining from the current time;

[0015] The probability of the retraining is calculated according to the time difference, the time of the most recent retraining from the current time, the number of retraining times, and a preset weight hyperparameter.

[0016] In some embodiments, calculating the incremental deployment cost between deploying the new risk control model and the original risk control model includes:

[0017] Obtaining the current occupancy rate of the central processing unit and the current occupancy rate of the memory when the new risk control model is deployed, and obtaining the previous occupancy rate of the central processing unit and the previous occupancy rate of the memory when the original risk control model is deployed;

[0018] The deployment cost increment is calculated according to the current occupancy of the central processing unit, the current occupancy of the memory, the previous occupancy of the central processing unit, and the previous occupancy of the memory.

[0019] In some embodiments, calculating the deployment cost increment according to the current occupancy of the CPU, the current occupancy of the memory, the previous occupancy of the CPU, and the previous occupancy of the memory includes:

[0020] determining a cost increment of the central processor according to a quotient between a current occupancy rate of the central processor and a previous occupancy rate of the central processor;

[0021] determining a cost increment of the memory according to a quotient between a current occupancy rate of the memory and a previous occupancy rate of the memory;

[0022] The sum of the cost increment of the central processing unit and the cost increment of the memory is determined as the deployment cost increment.

[0023] In some embodiments, retraining the original risk control model according to the population stability information, the probability of retraining, and the deployment cost increment to obtain the new risk control model includes:

[0024] Obtaining performance evaluation information when a preset candidate network model is used to retrain the original risk control model;

[0025] The new risk control model is generated according to the performance evaluation information, the population stability information, the probability of retraining, and the deployment cost increment.

[0026] In some embodiments, generating the new risk control model according to the performance evaluation information, the population stability information, the probability of retraining, and the deployment cost increment includes:

[0027] Determining a model replacement confidence according to the performance evaluation information, the population stability information, the probability of retraining, and the deployment cost increment;

[0028] If the model replacement confidence is greater than a preset confidence threshold, the candidate network model is determined as the new risk control model.

[0029] In a second aspect, an embodiment of the present disclosure provides a retraining device for a risk control model, comprising:

[0030] A first acquisition unit, used to acquire current sample data and previous sample data;

[0031] A prediction unit, used to predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model;

[0032] A second acquisition unit is used to acquire the generation time of the original risk control model and the number of retraining times from the generation of the original risk control model to the current retraining;

[0033] a determining unit, configured to determine a probability of retraining according to the generation time and the number of retraining times;

[0034] A calculation unit, used to calculate the deployment cost increment between the deployment of the new risk control model and the original risk control model;

[0035] A retraining unit is used to retrain the original risk control model according to the group stability information, the probability of retraining, and the deployment cost increment to obtain the new risk control model, and the new risk control model is used to identify the risk information of the business to be processed.

[0036] In some embodiments, the prediction unit comprises:

[0037] A first determining subunit, configured to determine current feature distribution information corresponding to the current sample data, and determine previous feature distribution information corresponding to the previous sample data;

[0038] A first calculation subunit, configured to calculate distribution difference information between the current feature distribution information and the previous feature distribution information;

[0039] A prediction subunit is used to predict the population stability information based on the distribution difference information.

[0040] In some embodiments, the determining unit includes:

[0041] A second determining subunit, used to determine a time difference between a current time and the generated time;

[0042] The first acquisition subunit is used to obtain the time of the most recent retraining from the current time;

[0043] The second calculation subunit is used to calculate the probability of the retraining according to the time difference, the time of the most recent retraining from the current time, the number of retraining times, and a preset weight hyperparameter.

[0044] In some embodiments, the computing unit comprises:

[0045] A second acquisition subunit is used to acquire the current occupancy rate of the central processing unit and the current occupancy rate of the memory when the new risk control model is deployed, and to acquire the previous occupancy rate of the central processing unit and the previous occupancy rate of the memory when the original risk control model is deployed;

[0046] The third calculation subunit is used to calculate the deployment cost increment according to the current occupancy of the central processing unit, the current occupancy of the memory, the previous occupancy of the central processing unit, and the previous occupancy of the memory.

[0047] In some embodiments, the third computing subunit is used to determine the cost increment of the central processing unit based on the quotient of the current occupancy of the central processing unit and the previous occupancy of the central processing unit, determine the cost increment of the memory based on the quotient of the current occupancy of the memory and the previous occupancy of the memory, and determine the sum of the cost increment of the central processing unit and the cost increment of the memory as the deployment cost increment.

[0048] In some embodiments, the retraining unit comprises:

[0049] A third acquisition subunit is used to obtain performance evaluation information when a preset candidate network model is used to retrain the original risk control model;

[0050] A generating subunit is used to generate the new risk control model according to the performance evaluation information, the population stability information, the probability of retraining, and the deployment cost increment.

[0051] In some embodiments, the generation subunit is used to determine the model replacement confidence based on the performance evaluation information, the population stability information, the probability of retraining, and the deployment cost increment. If the model replacement confidence is greater than a preset confidence threshold, the candidate network model is determined as the new risk control model.

[0052] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a memory, a processor;

[0053] A memory, configured to store instructions executable by the processor;

[0054] The processor is configured to execute the method as described in the first aspect.

[0055] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0056] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0058] Figure 1 A schematic diagram of a system for retraining a machine learning model;

[0059] Figure 2 A schematic diagram of the training principle of the machine learning model;

[0060] Figure 3 is a schematic diagram of a retraining method for a risk control model according to an embodiment of the present disclosure;

[0061] Figure 4 is a schematic diagram of a retraining method for a risk control model according to another embodiment of the present disclosure;

[0062] Figure 5 is a schematic diagram of a process module of a machine learning pipeline according to an embodiment of the present disclosure;

[0063] Figure 6 is a schematic diagram of a retraining device for a risk control model according to an embodiment of the present disclosure;

[0064] Figure 7 is a schematic diagram of a retraining device for a risk control model according to another embodiment of the present disclosure;

[0065] Figure 8 The present invention is a block diagram of an electronic device for implementing a risk control model retraining method according to an embodiment of the present disclosure.

[0066] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

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

[0068] Machine Learning Operations (MLOps) is a cultural concept and application example that combines network model R&D system development and operation support (including integration, testing, release, deployment, infrastructure management and other operations) to achieve complex and automated management of the machine learning model system life cycle. It is a technology that can achieve efficient operation and maintenance of models while deploying them from development and testing to production, which means that automation and monitoring will be implemented in all steps of the machine learning system construction process.

[0069] The technical content involved in MLOps includes continuous integration (CI), continuous delivery (CD), monitoring and continuous training (CT) of the machine learning pipeline. Whether it is model launch, model operation, iterative update or continuous training (i.e. retraining), it provides relatively standardized and automated management and control.

[0070] like Figure 1 As shown, retraining of machine learning models involves feature libraries, machine learning pipelines, model services, performance monitoring of models / data, and triggers.

[0071] Among them, the data in the feature library are reusable features, and there is no need to repeatedly process these features for different network models, thus saving valuable time and energy.

[0072] For continuous training, the feature library can provide the latest batch of data sets for training tasks. For model services, the feature library can extract a batch of feature values ​​related to the requested entity, such as customer audience features, product features, and current session aggregate features for online service of the model, and can also provide offline data for batch service. In addition, the feature library is also monitored by the monitoring system to re-model, that is, retrain to obtain a new machine learning model.

[0073] The machine learning pipeline includes the entire process from feature engineering to model output. This process usually includes data extraction, data verification, feature derivation, model training, model evaluation, model verification, etc.

[0074] After the machine learning pipeline, the model is deployed based on continuous delivery (such as Figure 1 CD as shown in: Model Deployment).

[0075] The model serving module deploys the trained model as a prediction service (for example, a microservice with a REST API) or deploys the entire machine learning system.

[0076] The model / data performance monitoring module tracks or records the distribution changes of data at different times and the performance changes of the model. It is necessary to collect the information necessary for model performance degradation and other model behavior deviations, and plays a vital role in triggers.

[0077] Triggers automatically execute machine learning pipelines according to their own policies. The triggered machine learning pipeline requires a new model version trained with new data (such as Figure 1 Trigger CT in ).

[0078] Among them, the machine learning model can be divided into two stages during the first training, one is the experimental stage (also called development), and the other is the training stage (also called production stage).

[0079] like Figure 2 As shown, during the experimental development phase, the sample data in the feature library is analyzed (such as Figure 1 The data analysis module is shown in the figure), and then enters the data pipeline module, which is used to process the data, output the source code, and push the source code to the code repository. The pipeline continuous integration module compiles, tests, packages the source code, and configures the data source of the test environment. The pipeline continuous delivery module is used to deploy the components generated by the pipeline continuous integration module to the target environment.

[0080] During the training phase, the machine learning pipeline (see Figure 1 ), which is used to automatically execute in the production environment according to a schedule or trigger. The model continuous delivery module is used to use the trained model as a prediction service. In this stage, the full amount of data will be used to train the production-ready model, and the model will be evaluated to verify whether the model can be put online. The output is a deployable model. The model service interface (not shown in the figure) is used to provide services to the outside world. The model performance and effect monitoring module is used to monitor the relevant information when the machine learning model provides services, and trigger retraining through triggers when the relevant information does not meet the preset service requirements.

[0081] It should be understood that the machine learning model can be various types of network models, such as risk control models, information push models, etc.

[0082] In related technologies, retraining is usually triggered based on a "monitoring + single rule" approach to trigger retraining of the original machine learning model. For example, the AUC is monitored, and when the AUC is greater than a preset threshold, the original machine learning model is retrained to obtain a new machine learning model.

[0083] However, the reliability of triggering retraining using the methods in the related art is low.

[0084] In order to avoid the above-mentioned technical problems, the inventors of the present disclosure, through creative labor, obtained the inventive concept of the present disclosure: combining elements of multiple dimensions to trigger retraining of the machine learning model, such as combining population stability information (Population Stability Index, PSI), the probability of retraining, and the deployment cost increment to trigger retraining.

[0085] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0086] See also Figure 3 , Figure 3 It is a schematic diagram of a retraining method of a risk control model according to an embodiment of the present disclosure.

[0087] like Figure 3 As shown, this includes:

[0088] S301: Obtain current sample data and previous sample data, and predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model.

[0089] Exemplarily, the executor of this embodiment may be a retraining device of the risk control model (hereinafter referred to as the retraining device), and the retraining device may be a server (such as a cloud server, or a local server), a computer, a terminal device, a processor, a chip, etc., which is not limited in this embodiment.

[0090] Based on the above analysis, it can be seen that the retrained machine learning model can be a risk control model, an information push model, or other network models. In this embodiment, the machine learning model is taken as a risk control model for exemplary explanation.

[0091] Among them, group stability information refers to an indicator for measuring the stability evaluation of the model during retraining.

[0092] The current sample data and the previous sample data are of the same type. For example, for the risk control model, the current sample data and the previous sample data both include: account balance, deposit and withdrawal time, user age, user gender, and user credit rating, etc. For another example, for the information push model, the current sample data and the previous sample data both include: user age, user gender, and user browsing history, etc.

[0093] S302: Obtain the generation time of the original risk control model, obtain the number of retrainings from the generation of the original risk control model to the current retraining, and determine the probability of retraining according to the generation time and the number of retrainings.

[0094] The probability of retraining refers to the possibility of needing to retrain. The greater the possibility, the more necessary it is to retrain.

[0095] S303: Calculate the deployment cost increment between the new risk control model and the original risk control model, and retrain the original risk control model according to the group stability information, the probability of retraining, and the deployment cost increment to obtain a new risk control model. The new risk control model is used to identify the risk information of the business to be processed.

[0096] The incremental deployment cost refers to the increased cost of deploying the new risk control model obtained after retraining relative to the cost of deploying the original risk control model.

[0097] Based on the above analysis, an embodiment of the present disclosure provides a method for retraining a risk control model, the method comprising: obtaining current sample data and previous sample data, and predicting population stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is business record data used for retraining, and the previous sample data is business record data for training the original risk control model, obtaining the generation time of the original risk control model, obtaining the number of retraining times from the generation of the original risk control model to the current retraining, and determining the probability of retraining based on the generation time and the number of retraining times, and calculating the probability of deploying the new risk control model and the original risk control model. The deployment cost increment between risk control models is determined, and the original risk control model is retrained according to the group stability information, the probability of retraining, and the deployment cost increment to obtain a new risk control model, wherein the new risk control model is used to identify the risk information of the business to be processed. In this embodiment, the following are introduced: the group stability information, the probability of retraining, and the deployment cost increment are determined respectively, so as to retrain the original risk control model based on the elements of the three dimensions, thereby obtaining the technical characteristics of the new risk control model, avoiding the disadvantage of low reliability of triggering retraining in related technologies, and improving the technical effect of reliability and accuracy of retraining.

[0098] See also Figure 4 , Figure 4 Schematic diagram of a retraining method for a risk control model according to another embodiment of the present disclosure.

[0099] like Figure 4 As shown, this includes:

[0100] S401: Obtain current sample data and previous sample data, and predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model.

[0101] It should be noted that the features of this embodiment that are the same as those of the above-mentioned embodiment will not be described in detail in this embodiment.

[0102] In some embodiments, predicting the population stability information during retraining based on the previous sample data and the current sample data may include the following steps:

[0103] The first step: determining the current feature distribution information corresponding to the current sample data, and determining the previous feature distribution information corresponding to the previous sample data.

[0104] The second step: calculate the distribution difference information between the current feature distribution information and the previous feature distribution information, and predict the population stability information based on the distribution difference information.

[0105] For example, the population stability information PSI can be determined by Formula 1:

[0106]

[0107] Among them, A i is the proportion of feature i in the previous sample data, E i is the proportion of feature i in the current sample data.

[0108] Relatively speaking, the smaller the value of the population stability information PSI is, the smaller the distribution difference information between the current feature distribution information and the previous feature distribution information is, and the stronger the stability is.

[0109] For example, if the group stability information PSI is less than 0.1, it means that the stability is very high; if the group stability information PSI is between 0.1 and 0.25, it means that the stability is average; if the group stability information PSI is greater than 0.25, it means that the stability is poor.

[0110] In this embodiment, by determining the group stability information based on the current feature distribution information and the previous feature distribution information, the stability of the original risk control model can be evaluated more accurately, so as to improve the accuracy and reliability of the determined group stability information PSI.

[0111] S402: Obtain the generation time of the original risk control model, obtain the number of retrainings from the generation of the original risk control model to the current retraining, and determine the probability of retraining according to the generation time and the number of retrainings.

[0112] In some embodiments, determining the probability of retraining according to the generation time and the number of retraining times includes the following steps:

[0113] The first step: determine the time difference between the current time and the generated time, and obtain the time of the most recent retraining from the current time.

[0114] Step 2: Calculate the probability of retraining based on the time difference, the time of the most recent retraining from the current time, the number of retraining times, and the preset weight hyperparameters.

[0115] For example, the probability of retraining T can be determined according to Formula 2 loss , Formula 2:

[0116]

[0117] Among them, τ>0, ω>0, 0<T loss <1, ω is the time of the most recent retraining from the current time, N is the number of retrainings, τ is the time difference, μ is the weight hyperparameter, and e is a natural constant (its value is about 2.7). The weight hyperparameter can be set based on historical records, historical records, experiments, and experience, etc., and this embodiment does not limit it.

[0118] For example, the weight hyperparameter can be set to 365. The original risk control model was launched on January 1. During the 150 days since its launch, three retrainings were triggered. The time from the most recent retraining was 50 days. Then:

[0119]

[0120] That is, the probability of retraining is 0.5514.

[0121] In this embodiment, by combining the time elements of different dimensions, the number of retraining times, and the weight hyperparameters to determine the probability of retraining, the probability of retraining can accurately and reliably characterize the possibility of needing retraining, thereby improving the technical effect of timeliness and accuracy of retraining.

[0122] S403: Calculate the deployment cost increment between the deployment of the new risk control model and the original risk control model.

[0123] In some embodiments, S403 may include the following steps:

[0124] The first step: obtaining the current occupancy rate of the CPU and the current occupancy rate of the memory when the new risk control model is deployed, and obtaining the previous occupancy rate of the CPU and the previous occupancy rate of the memory when the original risk control model is deployed.

[0125] The second step: calculating the deployment cost increment according to the current occupancy of the CPU, the current occupancy of the memory, the previous occupancy of the CPU, and the previous occupancy of the memory.

[0126] That is to say, in this embodiment, the deployment cost increment is determined by combining the occupancy rate of the central processing unit (CPU) and the memory occupancy rate, so as to fully consider the reasonable utilization of resources and resource costs, so as to achieve the technical effect of saving costs, avoiding excessive resource consumption and improving resource utilization when a new risk control model is retrained based on the deployment cost increment.

[0127] In some embodiments, the second step may include the following sub-steps:

[0128] First sub-step: determining the cost increment of the central processor according to the quotient between the current occupancy rate of the central processor and the previous occupancy rate of the central processor.

[0129] Second sub-step: determining the cost increment of the memory according to the quotient between the current occupancy rate of the memory and the previous occupancy rate of the memory.

[0130] The third sub-step: determining the sum of the cost increment of the CPU and the cost increment of the memory as the deployment cost increment.

[0131] For example, the incremental ROI of deployment cost can be determined by Formula 3:

[0132] ROI=[(S c -S n ) / S n +(M c -M n ) / M n ] / 2

[0133] Among them, S n ≠0,M n ≠0, S n is the previous occupancy rate of the CPU, S c is the current CPU occupancy rate, M n is the previous memory occupancy, M c The current memory usage.

[0134] In this embodiment, by separately determining the cost increment of the central processing unit and the cost increment of the memory, and combining the cost increment of the central processing unit and the cost increment of the memory to determine the deployment cost increment, the technical effect of improving the comprehensiveness and reliability of determining the deployment cost increment can be improved.

[0135] S404: Obtaining performance evaluation information when the preset candidate network model is used to retrain the original risk control model.

[0136] In some embodiments, in combination Figure 5 , Figure 1 , Figure 2 It can be seen that two processes, algorithm selection and parameter tuning, can be added to the machine learning pipeline.

[0137] Among them, the algorithm selection process can provide different training algorithms; the parameter tuning process configures different parameters for tuning for each algorithm selected in the algorithm selection process, and the tuning method can select Bayesian tuning or grid tuning, etc., which is not limited in this embodiment.

[0138] During the model verification process, the model performance of the current round can be compared with the model performance of the previous rounds, and finally the candidate network model with the best performance can be selected as the final candidate retraining model, and the performance evaluation information of the finally selected candidate network model can be marked as α, such as α = AUC of the candidate network model with the best performance = 0.8).

[0139] S405: Generate a new risk control model based on the performance evaluation information, the group stability information, the probability of retraining, and the deployment cost increment, wherein the new risk control model is used to identify the risk information of the business to be processed.

[0140] In this embodiment, by combining elements of four dimensions (i.e., performance evaluation information, group stability information, probability of retraining, and deployment cost increment), the original risk control model is retrained to obtain a new risk control model, which can make the retraining comprehensive, thereby improving the technical effect of reliability and accuracy of retraining.

[0141] In some embodiments, S405 may include the following steps:

[0142] The first step is to determine the model replacement confidence based on performance evaluation information, population stability information, probability of retraining, and deployment cost increment.

[0143] Step 2: If the model replacement confidence is greater than a preset confidence threshold, the candidate network model is determined as a new risk control model.

[0144] For example, the model replacement confidence P can be determined by Formula 4:

[0145] P=(ω1PSI+ω2T loss +ω3α) / 3-ω4ROI

[0146] Among them, ω1, ω2, ω3, and ω4 are pre-set weight values ​​respectively.

[0147] The confidence threshold may be set based on demand, historical records, and experiments, and is not limited in this embodiment.

[0148] That is to say, in this embodiment, if the model replacement confidence is greater than the confidence threshold, it means that the need to replace the previous risk control model has been met, and the previous risk control model is replaced; if the model replacement confidence is less than or equal to the confidence threshold, it means that the need to replace the previous risk control model has not been met, that is, the current risk control model can still meet the demand for risk control, and there is no need to replace the previous risk control model, so as to avoid waste of resources, improve resource utilization, and improve the technical effect of the effectiveness and reliability of the risk control model in preventing and controlling risks.

[0149] According to another aspect of the embodiments of the present disclosure, the embodiments of the present disclosure also provide a retraining device for a risk control model.

[0150] See also Figure 6 , Figure 6 Schematic diagram of a retraining device for a risk control model according to an embodiment of the present disclosure.

[0151] like Figure 6 As shown, the risk control model retraining device 600 includes:

[0152] The first acquisition unit 601 is used to acquire current sample data and previous sample data.

[0153] The prediction unit 602 is used to predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model.

[0154] The second acquisition unit 603 is used to acquire the generation time of the original risk control model, and acquire the number of retrainings from the generation of the original risk control model to the current retraining.

[0155] The determining unit 604 is configured to determine a probability of retraining according to the generation time and the number of retraining times.

[0156] The calculation unit 605 is used to calculate the deployment cost increment between the deployment of the new risk control model and the original risk control model.

[0157] The retraining unit 606 is used to retrain the original risk control model according to the group stability information, the probability of retraining, and the deployment cost increment to obtain the new risk control model, wherein the new risk control model is used to identify the risk information of the business to be processed.

[0158] See also Figure 7 , Figure 7Schematic diagram of a retraining device for a risk control model according to another embodiment of the present disclosure.

[0159] like Figure 7 As shown, the risk control model retraining device 700 includes:

[0160] The first acquisition unit 701 is used to acquire current sample data and previous sample data.

[0161] The prediction unit 702 is used to predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model.

[0162] Combination Figure 7 It can be seen that, in some embodiments, the prediction unit 702 includes:

[0163] The first determining subunit 7021 is used to determine the current feature distribution information corresponding to the current sample data, and determine the previous feature distribution information corresponding to the previous sample data.

[0164] The first calculation subunit 7022 is used to calculate distribution difference information between the current feature distribution information and the previous feature distribution information.

[0165] The prediction subunit 7023 is used to predict the population stability information according to the distribution difference information.

[0166] The second acquisition unit 703 is used to acquire the generation time of the original risk control model and the number of retraining times from the generation of the original risk control model to the current retraining.

[0167] The determining unit 704 is configured to determine a probability of retraining according to the generation time and the number of retraining times.

[0168] Combination Figure 7 It can be seen that, in some embodiments, the determining unit 704 includes:

[0169] The second determining subunit 7041 is used to determine the time difference between the current time and the generated time.

[0170] The first acquisition subunit 7042 is used to acquire the time of the most recent retraining from the current time.

[0171] The second calculation subunit 7043 is used to calculate the probability of the retraining according to the time difference, the time of the most recent retraining from the current time, the number of retraining times, and a preset weight hyperparameter.

[0172] The calculation unit 705 is used to calculate the deployment cost increment between the deployment of the new risk control model and the original risk control model.

[0173] Combination Figure 7 It can be seen that, in some embodiments, the computing unit 705 includes:

[0174] The second acquisition subunit 7051 is used to obtain the current occupancy rate of the central processing unit and the current occupancy rate of the memory when the new risk control model is deployed, and to obtain the previous occupancy rate of the central processing unit and the previous occupancy rate of the memory when the original risk control model is deployed.

[0175] The third calculation subunit 7052 is used to calculate the deployment cost increment according to the current occupancy of the central processing unit, the current occupancy of the memory, the previous occupancy of the central processing unit, and the previous occupancy of the memory.

[0176] In some embodiments, the third computing subunit 7052 is used to determine the cost increment of the central processing unit based on the quotient of the current occupancy of the central processing unit and the previous occupancy of the central processing unit, determine the cost increment of the memory based on the quotient of the current occupancy of the memory and the previous occupancy of the memory, and determine the sum of the cost increment of the central processing unit and the cost increment of the memory as the deployment cost increment.

[0177] The retraining unit 706 is used to retrain the original risk control model according to the group stability information, the retraining probability, and the deployment cost increment to obtain the new risk control model.

[0178] Combination Figure 7 It can be seen that, in some embodiments, the retraining unit 706 includes:

[0179] The third acquisition subunit is used to obtain the performance evaluation information 7061 when the preset candidate network model retrains the original risk control model.

[0180] The generating subunit 7062 is used to generate the new risk control model according to the performance evaluation information, the population stability information, the probability of retraining, and the deployment cost increment.

[0181] In some embodiments, the generation subunit 7062 is used to determine the model replacement confidence based on the performance evaluation information, the group stability information, the probability of retraining, and the deployment cost increment. If the model replacement confidence is greater than a preset confidence threshold, the candidate network model is determined as the new risk control model, and the new risk control model is used to identify the risk information of the business to be processed.

[0182] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0183] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, the program product includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0184] like Figure 8 , is a block diagram of an electronic device according to a retraining method of a risk control model according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0185] like Figure 8 As shown, the electronic device includes: one or more processors 801, memory 802, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 801 is taken as an example.

[0186] The memory 802 is a non-transitory computer-readable storage medium provided by the present disclosure. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the risk control model retraining method provided by the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions, which are used to enable a computer to perform the risk control model retraining method provided by the present disclosure.

[0187] The memory 802 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the risk control model retraining method in the embodiment of the present disclosure. The processor 801 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 802, that is, implementing the risk control model retraining method in the above method embodiment.

[0188] The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of an electronic device according to the retraining method of a risk control model, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 802 may optionally include a memory remotely disposed relative to the processor 801, and these remote memories may be connected to the electronic device of the retraining method of the risk control model via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0189] The electronic device of the risk control model retraining method may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0190] The input device 803 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device of the risk control model retraining method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 804 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0191] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0192] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0193] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0194] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0195] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

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

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

Claims

1. A retraining method for risk control models, include: Acquire current sample data and previous sample data, and predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model; Obtaining the generation time of the original risk control model, obtaining the number of retrainings from the generation of the original risk control model to the current retraining, and determining the probability of retraining according to the generation time and the number of retrainings; the probability of retraining refers to the possibility of needing to perform retraining; Calculate the deployment cost increment between the new risk control model and the original risk control model, and retrain the original risk control model according to the population stability information, the probability of retraining, and the deployment cost increment to obtain the new risk control model, wherein the new risk control model is used to identify the risk information of the business to be processed; the deployment cost increment refers to the increase in the deployment cost of the new risk control model relative to the deployment cost of the original risk control model; The method of retraining the original risk control model according to the population stability information, the probability of retraining, and the deployment cost increment to obtain the new risk control model includes: Obtain performance evaluation information of a preset candidate network model when retraining the original risk control model; determine the model replacement confidence according to the performance evaluation information, the population stability information, the probability of the retraining, and the deployment cost increment; if the model replacement confidence is greater than a preset confidence threshold, determine the candidate network model as the new risk control model.

2. The method according to claim 1, in, Predicting population stability information during retraining based on the previous sample data and the current sample data includes: Determining current feature distribution information corresponding to the current sample data, and determining previous feature distribution information corresponding to the previous sample data; Distribution difference information between the current feature distribution information and the previous feature distribution information is calculated, and the population stability information is predicted based on the distribution difference information.

3. The method according to claim 1, in, Determining the probability of retraining according to the generation time and the number of retraining times includes: Determine the time difference between the current time and the generated time, and obtain the time of the most recent retraining from the current time; The probability of the retraining is calculated according to the time difference, the time of the most recent retraining from the current time, the number of retraining times, and a preset weight hyperparameter.

4. The method according to claim 1, in, Calculating the incremental deployment cost between the new risk control model and the original risk control model, including: Obtaining the current occupancy rate of the central processing unit and the current occupancy rate of the memory when the new risk control model is deployed, and obtaining the previous occupancy rate of the central processing unit and the previous occupancy rate of the memory when the original risk control model is deployed; The deployment cost increment is calculated according to the current occupancy of the central processing unit, the current occupancy of the memory, the previous occupancy of the central processing unit, and the previous occupancy of the memory.

5. The method according to claim 4, in, Calculating the deployment cost increment according to the current occupancy of the central processing unit, the current occupancy of the memory, the previous occupancy of the central processing unit, and the previous occupancy of the memory includes: determining a cost increment of the central processor according to a quotient between a current occupancy rate of the central processor and a previous occupancy rate of the central processor; determining a cost increment of the memory according to a quotient between a current occupancy rate of the memory and a previous occupancy rate of the memory; The sum of the cost increment of the central processing unit and the cost increment of the memory is determined as the deployment cost increment.

6. A retraining device for a risk control model, include: A first acquisition unit, used to acquire current sample data and previous sample data; A prediction unit, used to predict the group stability information during retraining based on the previous sample data and the current sample data, wherein the current sample data is the business record data used for retraining, and the previous sample data is the business record data for training the original risk control model; A second acquisition unit is used to acquire the generation time of the original risk control model and the number of retraining times from the generation of the original risk control model to the current retraining; A determination unit, configured to determine a probability of retraining according to the generation time and the number of retraining times; the probability of retraining refers to a possibility of needing to perform retraining; A calculation unit, used to calculate the incremental deployment cost between the deployment of the new risk control model and the original risk control model; the incremental deployment cost refers to the incremental cost of the deployment cost of the new risk control model relative to the deployment cost of the original risk control model; a retraining unit, configured to retrain the original risk control model according to the group stability information, the probability of the retraining, and the deployment cost increment to obtain the new risk control model, wherein the new risk control model is used to identify risk information of the business to be processed; The retraining unit comprises: A third acquisition subunit is used to obtain performance evaluation information when a preset candidate network model is used to retrain the original risk control model; A generating subunit is used to determine the model replacement confidence according to the performance evaluation information, the group stability information, the probability of retraining, and the deployment cost increment; if the model replacement confidence is greater than a preset confidence threshold, the candidate network model is determined as the new risk control model.

7. An electronic device, include: Memory, processor; A memory, configured to store instructions executable by the processor; The processor is configured to execute the method as claimed in any one of claims 1 to 5.

8. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, wherein the computer-executable instructions are used to implement the method according to any one of claims 1 to 5 when executed by a processor.

9. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.