A method, device, storage medium and electronic device for model training

By constructing business data sets and sample data sets, evaluating the training quality and distinction of the classification model, and adjusting the training of the risk control model, the problem of declining risk control model effectiveness was solved, and the accuracy of risk control and platform security were improved.

CN114943307BActive Publication Date: 2024-09-06ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210752076.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-09-06
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

After the risk control model has been applied for a long time, the difference between the online sample distribution and the training sample distribution causes the risk control effect to decrease and affects the security of the platform.

Method used

By collecting online business data, we build business data sets and sample data sets, train classification models, evaluate their training quality and differentiation, and adjust the training of risk control models based on the differentiation to improve risk control accuracy.

Benefits of technology

It effectively avoids the decline of the risk control model, improves the accuracy of risk control, and ensures the security of the platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114943307B
    Figure CN114943307B
Patent Text Reader

Abstract

This specification discloses a method, device, storage medium and electronic device for model training, which collects business data of online business within a set time and constructs a business data set, and then trains a preset classification model based on the business data set and the sample data set used to train the risk control model. The classification model is used to determine which data set the input data belongs to between the business data set and the sample data set, and then determines the training quality of the trained classification model, and determines the overall discrimination between the business data set and the sample data set based on the training quality, and trains the risk control model based on the discrimination, so as to perform risk control on online users through the trained risk control model. It can be seen that the method indirectly determines how much difference there is in the sample distribution of the business data set and the sample data set through the training quality of the training classification model, thereby improving the accuracy of risk control through the risk control model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of risk control, and in particular to a method, device, storage medium, and electronic device for model training. Background Art

[0002] Currently, Internet platforms need to ensure the information security of users. Therefore, Internet platforms need to conduct risk control on users and can promptly stop the business performed for users when there are risks in the user's business, or remind users to pay attention to business that may involve risks.

[0003] In actual applications, Internet platforms can perform risk control through risk control models (machine learning models). However, in risk control business, as the risk control models are applied for a longer period of time, there may be certain differences in the sample distribution between the samples generated online for risk control and the samples initially used to train the risk control models. Therefore, the risk control effect of the risk control model may become worse and worse. As a result, it may be impossible to perform risk control accurately and it is difficult to ensure the security of the platform.

[0004] Therefore, how to improve the accuracy of risk control and ensure the security of the platform is an urgent problem to be solved. Summary of the invention

[0005] This specification provides a model training method, device, storage medium and electronic device to avoid the decline of the effect of the risk control model, improve the accuracy of risk control, and ensure the security of the platform.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a model training method, including:

[0008] Collect business data of online businesses within a set time and build a business data set;

[0009] According to the business data set and the sample data set used in training the risk control model, a preset classification model is trained, wherein the classification model is used to determine which data set the input data belongs to, the business data set or the sample data set;

[0010] Determining a degree of training quality of the trained classification model;

[0011] Determining the overall discrimination between the business data set and the sample data set according to the training quality level;

[0012] The risk control model is trained according to the degree of differentiation, so as to perform risk control on online users through the trained risk control model.

[0013] Optionally, determining the training quality of the trained classification model includes:

[0014] Inputting the business data set and the sample data set into the trained classification model to obtain a classification result; and determining the classification accuracy and classification error rate corresponding to the trained classification model according to the classification result;

[0015] Determining a classification effect distribution curve corresponding to the trained classification model according to the classification accuracy rate and the classification error rate;

[0016] The training quality level is determined according to the classification effect distribution curve.

[0017] Optionally, the business data set and the sample data set are input into the trained classification model to obtain a classification result, including:

[0018] The sample data set is used as a positive sample set, the business data set is used as a negative sample set, and the positive sample set and the negative sample set are input into the trained classification model to obtain a classification result for the positive sample set and a classification result for the negative sample set;

[0019] According to the classification results, determining the classification accuracy and classification error rate corresponding to the trained classification model specifically includes:

[0020] The classification accuracy is obtained according to the proportion of correctly identified positive samples in all positive samples, and the classification error rate is obtained according to the proportion of negative samples incorrectly identified as positive samples in all negative samples.

[0021] Optionally, training the risk control model according to the discrimination degree includes:

[0022] If it is determined that the discrimination degree is not less than the set discrimination degree, the risk control model is trained according to the business data set.

[0023] Optionally, before training the preset classification model according to the business data set and the training data set, the method further includes:

[0024] The classification model is constructed according to the model structure corresponding to the risk control model.

[0025] Optionally, constructing the classification model according to the model structure corresponding to the risk control model includes:

[0026] The classification model is constructed according to a specified network layer in the model structure corresponding to the risk control model, wherein the specified network layer includes: a feature extraction layer, wherein the data feature dimension of the data input into the risk control model is the same as the data feature dimension of the data input into the classification model.

[0027] This specification provides a model training device, including:

[0028] The collection module is used to collect business data of online businesses within a set time and build a business data set;

[0029] A training module, used to train a preset classification model according to the business data set and the sample data set used in training the risk control model, wherein the classification model is used to determine which data set the input data belongs to, the business data set or the sample data set;

[0030] A first determination module is used to determine the training quality of the trained classification model;

[0031] A second determination module, used to determine the overall discrimination between the business data set and the sample data set according to the training quality level;

[0032] The risk control module is used to train the risk control model according to the discrimination degree, so as to perform risk control on online users through the trained risk control model.

[0033] This specification provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned model training method is implemented.

[0034] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned model training method when executing the program.

[0035] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0036] It can be seen from the above-mentioned model training method that the business data of online business within a set time can be collected and a business data set can be constructed. Then, the preset classification model is trained according to the business data set and the sample data set used to train the risk control model. The classification model is used to determine which data set the input data belongs to between the business data set and the sample data set. Then, the training quality of the trained classification model is determined, and based on the training quality, the overall discrimination between the business data set and the sample data set is determined, and based on the discrimination, the risk control model is trained to perform risk control on online users through the trained risk control model.

[0037] It can be seen from the above content that the model training method provided in this specification needs to be trained through business data sets and sample data sets, and indirectly through the training quality of the trained classification model to determine the overall discrimination between the business data set and the sample data set, that is, to determine how big the difference is in the sample distribution of the business data set and the sample data set, so as to determine whether it is necessary to further iteratively train the risk control model, and how to train the risk control model, so as to improve the accuracy of risk control through the risk control model. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0039] Figure 1 A flowchart of a model training method in this specification;

[0040] Figure 2 A flowchart of determining the degree of distinction between a business data set and a sample data set by training a classification model provided in this specification;

[0041] Figure 3 A schematic diagram of a model training device provided in this manual;

[0042] Figure 4 A method corresponding to the Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. 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.

[0044] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0045] Figure 1 The following is a flow chart of a model training method in this specification, which specifically includes the following steps:

[0046] S100: Collect business data of online business within a set time and build a business data set.

[0047] S102: According to the business data set and the sample data set used to train the risk control model, a preset classification model is trained. According to the business data set and the sample data set used to train the risk control model, a preset classification model is trained, and the classification model is used to determine to which data set the input data belongs between the business data set and the sample data set.

[0048] S104: Determine the training quality of the trained classification model.

[0049] In practical applications, accurate risk control can reduce the risks faced by users and platforms. Due to the offensive and defensive nature of risk control scenarios, models after going online often experience performance degradation. There are many reasons for model degradation. The most direct reason is that the sample distribution encountered in the online environment is inconsistent with that during training. Therefore, the model training method provided in this manual is mainly used to avoid the problem of performance degradation of the model after going online over time.

[0050] Specifically, the server can collect business data of online business within a set time and construct a business data set, and train a preset classification model based on the business data set and the sample data set used to train the risk control model. The classification model is used to determine which data set the input data belongs to between the business data set and the sample data set.

[0051] Then, the overall differentiation between the business data set and the sample data set can be determined based on the trained classification model. The risk control model mentioned here is an online risk control model, which does not limit the business scenarios in which the risk control model is used. For example, the risk control model can be used to perform risk control on user accounts online to prevent the user's account from being stolen. For another example, the risk control model can be used to perform risk control on online transactions to avoid risky transactions.

[0052] The business data mentioned above can be used for online risk control. For example, the business data can be the user's transaction data, which can be used to perform risk control on the user's transactions. Of course, the business data can also include data related to the user's account and the user's historical behavior. The business data can be used to perform risk control on the user's account to identify whether the user's account has been stolen. The sample data set can refer to a training sample set used to train the current risk control model (which can include all training samples used to train the current risk control model).

[0053] The above-mentioned classification model is a model used to classify business data sets and sample data sets. That is, the training goal of the classification model mentioned here is mainly to enable the classification model to distinguish business data sets from sample data sets. That is, for the classification model, the business data set is one category and the sample data set is another category.

[0054] It should be noted that the training quality degree of the trained classification model can be specifically determined, and based on the training quality degree, the overall discrimination between the business data set and the sample data set can be determined. The training quality degree is used to characterize whether the training effect of the classification model is good (in addition, the training quality degree can also be used to characterize the classification effect of the classification model after training). The higher the training quality degree, the better the classification effect of the classification model can be, and there can be a positive correlation between the classification quality degree and the discrimination. Of course, the training quality degree can also be directly used as the discrimination.

[0055] If there is a certain difference in the sample distribution between the business data set and the sample data set, then during the training of the classification model, it is difficult for the training model to classify the business data set and the sample data set well. In this case, no matter how the classification model is trained, the classification effect of the classification model will be poor. It can also be said that the training quality of the classification model through the business data set and the sample data set is low, then the training quality level will also be low, so the training quality level can indirectly explain the overall discrimination between the business data set and the sample data set. Therefore, if the training quality level is low, the discrimination will also be low. If the training quality level is high, it means that the classification effect of the classification model is better, which means that the classification model can distinguish the business data set from the sample data set, so the overall discrimination between the business data set and the sample data set is high.

[0056] Of course, the training quality degree calculated in a certain way may be opposite to the training quality of the classification model. If the training quality of the classification model is worse, the training quality degree is higher. Then, the higher the training quality degree, the lower the overall differentiation between the business data set and the sample data set.

[0057] There are many ways to determine the degree of training quality. For example, the business data set and the sample data set can be input into the trained classification model to obtain the classification result; and according to the classification result, the classification accuracy and classification error rate corresponding to the trained classification model are determined, and according to the classification accuracy and classification error rate, the classification effect distribution curve corresponding to the trained classification model is determined, and then according to the classification effect distribution curve (Receiver Operating Characteristic curve, ROC), the degree of training quality is determined.

[0058] Specifically, when determining the classification accuracy and classification error rate, the sample data set can be used as the positive sample set, and the business data set can be used as the negative sample set, and the positive sample set and the negative sample set can be input into the trained classification model to obtain the classification results for the positive sample set and the classification results for the negative sample set. The classification accuracy can be obtained based on the proportion of correctly identified positive samples in all positive samples, and the classification error rate can be obtained based on the proportion of negative samples that are incorrectly identified as positive samples in all negative samples.

[0059] When drawing the ROC curve, the above-mentioned classification accuracy can be used as the ordinate and the classification error rate as the abscissa. The ROC curve is a curve passing through (0, 0) and (1, 1) and located above the line between (0, 0) and (1, 1). The integral of the curve, that is, the area under the curve (AUC) of the curve can represent the classification effect of the classification model, so the integral corresponding to the curve can be calculated as the training quality level, and if the training quality level is not less than the set value, the above-mentioned risk control model can be iteratively trained according to the business data set.

[0060] Of course, drawing the ROC curve can be a continuous process during the training process, that is, the process of training the classification model can be divided into multiple training processes. After each training, the classification accuracy and classification error rate of the classification model can be determined through part of the data in the business data set and the sample data set (as the data of the validation set), so as to obtain the ROC curve through the classification accuracy and classification error rate determined multiple times.

[0061] It should be noted that in order to more accurately obtain the above-mentioned discrimination by training the classification model, a classification model can be constructed according to the model structure corresponding to the risk control model, wherein the model structures of the risk control model and the classification model can be consistent, or, the classification model can be constructed according to the specified network layer in the model structure corresponding to the risk control model, and the specified network layer may include: a feature extraction layer, wherein the data feature dimension of the data input into the risk control model can be the same as the data feature dimension of the data input into the classification model, and the algorithm used by the classification model in this specification can be consistent with the risk control model, and the method of processing feature data by the classification model can be consistent with the risk control model (this is also the reason why the feature extraction layer is included in the specified network layer).

[0062] S106: Determine the overall discrimination between the business data set and the sample data set according to the training quality level.

[0063] S108: Training the risk control model according to the degree of differentiation, so as to perform risk control on online users through the trained risk control model.

[0064] It is mentioned in the above content that the overall discrimination between the business data set and the sample data set can be determined according to the degree of training quality. Then, the overall discrimination between the business data set and the sample data set is obtained. The risk control model can be trained according to the discrimination to perform risk control on online users through the trained risk control model.

[0065] Among them, the overall distinction between the business data set and the sample data set mentioned here may refer to the distinction between the business data set and the sample data set in sample distribution. When the business data set and the sample data set have a certain degree of distinction in sample distribution, it may be that there is a certain difference in the data distribution under one or some characteristic dimensions between the business data set and the sample data set. For a piece of business data or a piece of sample data, there will be many characteristic dimensions. For example, if the business data is transaction data, the characteristic dimensions may include transaction time, transaction location, transaction object, and transaction amount, etc. Therefore, the characteristic dimensions mentioned here may refer to the data of each dimension contained in the business data or sample data (or it can be called data of each category).

[0066] Specifically, according to the above-mentioned discrimination, there are many ways to train the risk control model. Since the greater the overall discrimination between the business data set and the sample data set, the worse the risk control effect of the risk control model may be, therefore, if it is determined that the discrimination is not less than the set discrimination, the risk control model can be trained according to the business data set. Of course, it is also possible to filter out at least part of the data set from the business data set according to the discrimination to train the risk control model. The higher the discrimination, the more data sets can be filtered out to train the risk control model. Specifically, the proportion of the data set that needs to be filtered out from the business data set can be determined according to the discrimination, so as to filter out at least part of the data set from the business data set to train the risk control model. The higher the discrimination, the higher the proportion can be.

[0067] Among them, in order to ensure that whether the training data of the risk control model is different from the business data at regular intervals, thereby indirectly determining whether there is a certain decline in the model effect of the risk control model, the online business data generated in each preset business cycle can be obtained, and the classification model can be trained based on the online business data generated in the business cycle and the training data used to train the risk control model to obtain the training quality of the trained classification model, and the above-mentioned discrimination degree is determined based on the training quality degree of the trained classification model, and the risk control model is trained based on the discrimination degree, so that risk control can be performed in the next business cycle through the trained risk control model.

[0068] Among them, the duration of a business cycle can be set in advance. For example, the duration of a business cycle can be set to 7 days, so a batch of business data can be collected every 7 days, and the classification model can be trained through the business data set corresponding to this batch of business data and the sample data set of the risk control model, and the training quality of the trained classification model can be determined.

[0069] In the above content, various embodiments of the model training method in this specification are described respectively. The following will fully describe the model training method by way of an example. Figure 2 shown.

[0070] Figure 2 This is a flow chart of determining the degree of distinction between a business data set and a sample data set by training a classification model provided in this specification.

[0071] from Figure 2 It can be seen that in the process of training the classification model, the sample data set can be used as a positive sample, and the business data set can be used as a negative sample. That is to say, the classification model can actually be a two-classification model. The sample data set is one category, and the business data set is another category. The business data set is data generated online, so it can be used for risk control models to perform online risk control. The sample data set is a training sample that has been used to train the risk control model in history. After training the classification model, the training quality of the classification model can be determined. The higher the training quality, the higher the overall discrimination between the business data set and the sample data set. The lower the training quality, the lower the overall discrimination between the business data set and the sample data set. Therefore, the risk control model can be trained according to the discrimination. For example, when the discrimination is higher than the set threshold, the risk control model can be trained through the business data set. The business data set can be added to the sample data set, so that the risk control model is trained through the sample data set with the business data set added. Of course, it is also possible to select some data sets from the sample data set according to the discrimination and train the risk control model.

[0072] Therefore, it can be seen that the model training method provided in this specification can train the classification model through the newly generated online business data and the training data used to train the risk control model in the past. If the sample distribution of the business data has not changed relative to the training data, the classification effect of the classification model after training will be poor. If the sample distribution of the business data has changed to a certain extent relative to the training data, the classification effect of the classification model after training will be better. Therefore, the overall discrimination between the business data set and the sample data set can be indirectly obtained through the training quality level that can characterize the classification effect of the classification model. If the discrimination is high, it means that the sample distribution of the online business data has changed to a certain extent, and the risk control model needs to be further iterated to improve the accuracy of risk control through the risk control model.

[0073] The above is a method for model training provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a device for model training, such as Figure 3 shown.

[0074] Figure 3 A schematic diagram of a model training device provided in this specification, specifically including:

[0075] The collection module 301 is used to collect the business data of online business within a set time and construct a business data set;

[0076] A training module 302 is used to train a preset classification model based on the business data set and the sample data set used to train the risk control model, wherein the classification model is used to determine which data set the input data belongs to, the business data set or the sample data set;

[0077] A first determination module 303 is used to determine the training quality of the trained classification model;

[0078] A second determination module 304, configured to determine the overall discrimination between the service data set and the sample data set according to the training quality level;

[0079] The risk control module 305 is used to train the risk control model according to the discrimination degree, so as to perform risk control on online users through the trained risk control model.

[0080] Optionally, the first determination module 303 is specifically used to input the business data set and the sample data set into the trained classification model to obtain a classification result; determine the classification accuracy and classification error rate corresponding to the trained classification model based on the classification result; determine the classification effect distribution curve corresponding to the trained classification model based on the classification accuracy and the classification error rate; and determine the training quality level based on the classification effect distribution curve.

[0081] Optionally, the first determination module 303 is specifically used to take the sample data set as a positive sample set and the business data set as a negative sample set, and input the positive sample set and the negative sample set into the trained classification model to obtain classification results for the positive sample set and classification results for the negative sample set; obtain the classification accuracy rate according to the proportion of correctly identified positive samples in all positive samples, and obtain the classification error rate according to the proportion of negative samples that are incorrectly identified as positive samples in all negative samples.

[0082] Optionally, the risk control module 305 is specifically configured to, if it is determined that the discrimination is not less than a set discrimination, train the risk control model according to the business data set.

[0083] Optionally, the device further comprises:

[0084] The construction module 306 is used to construct the classification model according to the model structure corresponding to the risk control model.

[0085] Optionally, the construction module 306 is specifically used to construct the classification model according to a specified network layer in the model structure corresponding to the risk control model, and the specified network layer includes: a feature extraction layer, wherein the data feature dimension of the data input into the risk control model is the same as the data feature dimension of the data input into the classification model.

[0086] This specification also provides a computer-readable storage medium, which stores a computer program that can be used to execute the above-mentioned model training method.

[0087] This manual also provides Figure 4 The schematic structure diagram of the electronic device shown in FIG. Figure 4 As described above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above-mentioned model training method. Of course, in addition to the software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0088] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0089] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0090] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0091] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0092] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0093] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0096] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0097] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0098] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0099] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0100] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0101] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing nodes connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage nodes.

[0102] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0103] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A model training method, comprising: Collect business data of online businesses within a set time and construct a business data set. In the risk control scenario, the business data is the user's transaction data; According to the business data set and the sample data set used in training the risk control model, a preset classification model is trained, wherein the classification model is used to determine which data set the input data belongs to, the business data set or the sample data set; Determining the training quality of the trained classification model, wherein the training quality is used to indicate whether the training effect of the classification model is good; Determining the overall discrimination between the business data set and the sample data set according to the training quality level; The risk control model is trained according to the degree of differentiation, so as to perform risk control on online users through the trained risk control model.

2. The method of claim 1, determining the degree of training quality of the trained classification model, comprising: Inputting the business data set and the sample data set into the trained classification model to obtain a classification result; According to the classification results, determining the classification accuracy and classification error rate corresponding to the trained classification model; Determining a classification effect distribution curve corresponding to the trained classification model according to the classification accuracy rate and the classification error rate; The training quality level is determined according to the classification effect distribution curve.

3. The method according to claim 2, inputting the business data set and the sample data set into the trained classification model to obtain a classification result, comprising: The sample data set is used as a positive sample set, the business data set is used as a negative sample set, and the positive sample set and the negative sample set are input into the trained classification model to obtain a classification result for the positive sample set and a classification result for the negative sample set; According to the classification results, determining the classification accuracy and classification error rate corresponding to the trained classification model specifically includes: The classification accuracy is obtained according to the proportion of correctly identified positive samples in all positive samples, and the classification error rate is obtained according to the proportion of negative samples incorrectly identified as positive samples in all negative samples.

4. The method according to claim 1, training the risk control model according to the discrimination, comprising: If it is determined that the discrimination degree is not less than the set discrimination degree, the risk control model is trained according to the business data set.

5. The method according to claim 1, before training the preset classification model according to the business data set and the sample data set, further comprising: The classification model is constructed according to the model structure corresponding to the risk control model.

6. The method according to claim 1, constructing the classification model according to the model structure corresponding to the risk control model, comprising: The classification model is constructed according to a specified network layer in the model structure corresponding to the risk control model, wherein the specified network layer includes: a feature extraction layer, wherein the data feature dimension of the data input into the risk control model is the same as the data feature dimension of the data input into the classification model.

7. A model training device, comprising: The collection module is used to collect the business data of online businesses within a set time and construct a business data set. In the risk control scenario, the business data is the user's transaction data; A training module, used to train a preset classification model according to the business data set and the sample data set used in training the risk control model, wherein the classification model is used to determine which data set the input data belongs to, the business data set or the sample data set; A first determination module is used to determine the training quality of the trained classification model, where the training quality is used to indicate whether the training effect of the classification model is good; A second determination module, used to determine the overall discrimination between the business data set and the sample data set according to the training quality level; The risk control module is used to train the risk control model according to the discrimination degree, so as to perform risk control on online users through the trained risk control model.

8. In the device as described in claim 7, the first determination module is specifically used to input the business data set and the sample data set into the trained classification model to obtain a classification result; based on the classification result, determine the classification accuracy and classification error rate corresponding to the trained classification model; based on the classification accuracy and the classification error rate, determine the classification effect distribution curve corresponding to the trained classification model; based on the classification effect distribution curve, determine the training quality level.

9. A computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the program.

Citation Information

Patent Citations

  • Business risk prevention and control method, device and equipment

    CN109598281A

  • Risk control model construction method and device based on multi-objective optimization and electronic equipment

    CN113344700A

  • Model training method, business risk control method and device

    CN113643119A

  • Loan overdue prediction method and device, electronic equipment and computer readable medium

    CN114078050A

  • Data classifier

    US20190164062A1