Risk control model creation method, device, electronic device and storage medium

By automating processing and optimizing the generation of risk control models, it solves the complexity and high cost problems of wind control modeling in the existing technology, realizes efficient and interpretable risk control models, and provides modeling capabilities for non-expert users.

CN116542511BActive Publication Date: 2024-09-06BAIRONG FINANCIAL INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, the modeling process of machine learning risk control models is complex, requiring users to have an in-depth understanding of the data and models, increasing the threshold and cost, and making it difficult to customize modeling for different businesses and customer groups.

Method used

By obtaining the original data associated with the business, perform data processing and generate sample data, preset the algorithm type and hyperparameters of the risk control model, use the sample data to train and generate the optimal model, automate the modeling and optimization process, and reduce the modeling difficulty and cost.

Benefits of technology

It realizes the generation and optimization of automated risk control models, reduces modeling complexity and cost, improves modeling efficiency and model interpretability, and empowers non-expert users with modeling capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116542511B
    Figure CN116542511B
Patent Text Reader

Abstract

The present application discloses a method for creating a risk control model, which includes: obtaining original data associated with a business to be risk-controlled, the original data including multiple feature values ​​corresponding to multiple features and respective risk control labels; performing data processing on the original data to generate sample data; presetting one or more risk control model algorithm types and / or model hyperparameter search setting values, and based on a predetermined first model evaluation indicator, using the sample data for training to generate a risk control model for risk-control management of the business, wherein the risk control model is of the optimal algorithm type determined based on the first model evaluation indicator and / or has the optimal hyperparameter value determined based on the first model evaluation indicator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer-based financial technology (Fintech), and in particular to a risk control model creation method and device, as well as related electronic equipment and storage media. Background Art

[0002] With the development and maturity of big data and machine learning technologies, as well as the improvement of computer computing power and algorithms, intelligent risk control has gradually replaced traditional risk control. Machine learning with higher accuracy and feature recognition capabilities has gradually replaced traditional data analysis methods and become the mainstream risk control management and data mining model for Internet financial institutions. However, the quality of machine learning models depends largely on the quality of data, feature selection, and model parameters. Therefore, the application of machine learning in data mining requires users to understand the data itself and have a deep understanding of the model, which invisibly increases the threshold and cost of applying machine learning for data analysis. In addition, if customized machine learning models are to be established for different businesses, different scenarios, and different customer groups, the difficulty of model building is further increased.

[0003] The content of this background technology description is only for facilitating understanding of the relevant technology in this field and is not regarded as an admission of the prior art. Summary of the invention

[0004] Therefore, the embodiments of the present invention intend to provide a risk control model creation method and device, as well as an electronic device and a storage medium, which can automatically build and optimize models, significantly improve modeling efficiency, and reduce modeling complexity.

[0005] In a first aspect, a method for creating a risk control model is provided, comprising: obtaining original data associated with a business to be risk managed, the original data comprising multiple feature values ​​corresponding to multiple features and respective risk control labels; performing data processing on the original data to generate sample data; presetting one or more risk control model algorithm types and / or model hyperparameter search setting values, and based on a predetermined first model evaluation indicator, using the sample data for training to generate a risk control model for risk management of the business, wherein the risk control model is of an optimal algorithm type determined based on the first model evaluation indicator and / or has an optimal hyperparameter value determined based on the first model evaluation indicator.

[0006] In a second aspect, a risk control model creation device is provided, comprising: an acquisition module, configured to acquire original data associated with a business to be risk managed, the original data comprising multiple feature values ​​corresponding to multiple features and respective risk control labels; a generation module, configured to perform data processing on the original data to generate sample data; and a modeling module, configured to preset one or more risk control model algorithm types and / or model hyperparameter search setting values, and based on a predetermined first model evaluation indicator, use the sample data for training to generate a risk control model for risk management of the business, wherein the risk control model is of the optimal algorithm type determined based on the first model evaluation indicator and / or has the optimal hyperparameter value determined based on the first model evaluation indicator.

[0007] In a third aspect, an electronic device is provided, comprising: a processor and a memory storing a computer program, wherein the processor is configured to execute the processing method described in any embodiment when running the computer program.

[0008] In a fourth aspect, a storage medium is provided, wherein the storage medium stores a computer program, and the computer program is configured to execute the processing method described in any embodiment when executed.

[0009] The embodiment of the present invention proposes an improved processing scheme, which obtains raw data associated with the business to be risk-controlled, wherein the raw data includes multiple feature values ​​corresponding to multiple features and respective risk control labels; performs data processing on the raw data to generate sample data; presets one or more risk control model algorithm types and / or model hyperparameter search setting values, and uses the sample data for training based on a predetermined first model evaluation index to generate a risk control model for risk control management of the business, wherein the risk control model is the optimal algorithm type determined based on the first model evaluation index and / or has the optimal hyperparameter value determined based on the first model evaluation index. Therefore, compared with the traditional application of machine learning in data mining, which requires users to understand the data itself and have a deep understanding of the model, the scheme of the embodiment of the present invention can automatically generate and optimize the model, thereby reducing the difficulty of modeling, improving modeling efficiency, improving model interpretability, and giving non-expert users modeling capabilities.

[0010] Optional features and other effects of the embodiments of the present invention are partially described below and partially understood by reading this document. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The embodiments of the present invention are described in detail with reference to the accompanying drawings. The elements shown are not limited by the proportions shown in the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements, wherein:

[0012] Figure 1 An exemplary schematic diagram showing a risk control model creation environment according to an embodiment of the present invention;

[0013] Figure 2 An exemplary flow chart showing a method for creating a risk control model according to an embodiment of the present invention;

[0014] Figure 3 An exemplary schematic diagram showing a data processing process according to an embodiment of the present invention;

[0015] Figure 4 An exemplary schematic diagram showing a data experiment process according to an embodiment of the present invention;

[0016] Figure 5 An exemplary schematic diagram showing the execution process of a machine learning tool according to an embodiment of the present invention;

[0017] Figure 6 An exemplary schematic diagram showing a risk control model creation framework according to an embodiment of the present invention;

[0018] Figure 7 An exemplary schematic diagram of a risk control model creation system according to an embodiment of the present invention is shown;

[0019] Figure 8 An exemplary schematic diagram showing a traditional scorecard modeling process;

[0020] Fig. 9 An exemplary flow chart showing a scorecard modeling process according to an embodiment of the present invention;

[0021] Fig.10 A schematic diagram showing the structure of a device for creating a risk control model according to an embodiment of the present invention; and

[0022] Fig.11 An exemplary structural diagram of an electronic device capable of implementing the method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific implementation methods and drawings. Here, the exemplary implementation methods of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0024] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0025] Embodiments of the present invention provide a risk control model creation method and device, as well as related electronic devices and storage media. The risk control model creation method can be implemented with the aid of one or more computers, such as terminals. In some embodiments, the risk control model creation device can be implemented by software, hardware, or a combination of software and hardware.

[0026] As mentioned above, since the quality of machine learning models depends largely on the quality of data, feature selection, and model parameters, the application of machine learning in data mining requires users to understand the data itself and have a deep understanding of the model. This will lead to many problems, such as high threshold for modeling technology, low modeling efficiency, low model interpretability, and difficulty for non-expert users to model.

[0027] Specifically, in terms of the high threshold of modeling technology, modelers need to have mathematical statistics, machine learning, computer programming skills and modeling practical experience, etc. Risk control modeling work is usually only available to third-party financial technology consulting companies and large banks with sufficient resources, and most small and medium-sized banks do not have dedicated data analysis and modeling teams.

[0028] In terms of low modeling efficiency, the development and processing of risk control models are usually extremely complex, with a long development cycle, high manpower investment, and huge engineering workload. Manual modeling requires a lot of time for data preprocessing, model selection, variable selection, parameter adjustment, model evaluation, and other links, but in business applications, people usually hope to develop, iterate, and optimize quickly to efficiently support and respond to business needs.

[0029] In terms of low model interpretability, risk control models of financial institutions are usually required to have a certain degree of interpretability, so most risk control models are scorecard models based on logistic regression. The modeling process of scorecard models is more complicated than that of general machine learning models, and the modeling difficulty and process complexity are further increased. In addition to the scorecard model, machine learning models with superior performance are generally "black box" models, and their internal working mechanisms and principles are difficult to understand.

[0030] In terms of non-expert users having difficulty in modeling, all business departments, technical departments, and management departments need to conduct data analysis and data modeling for different businesses, different scenarios, and different customer groups, and quickly develop customized feature models and design personalized Internet products. However, personnel in many departments usually do not have the professional ability and experience in modeling.

[0031] In order to at least partially solve one or more of the above problems and other potential problems, the exemplary embodiments of the present disclosure propose a solution for creating a risk control model. In the solution, sample data associated with a business to be risk-controlled is obtained; based on the sample data, a model for risk-control management of the business is generated; and the model is deployed so that the model can be distributedly computed to perform risk control management on the business.

[0032] Therefore, compared with the traditional application of machine learning in data mining, which requires users to understand the data itself and have a deep understanding of the model, the solution of the embodiment of the present invention can automatically generate and optimize the model, thereby reducing the difficulty of modeling, improving modeling efficiency, improving model interpretability, and giving non-expert users modeling capabilities.

[0033] Specifically, in terms of reducing the difficulty of modeling, the use of an automated modeling platform can effectively help small and medium-sized banks develop risk control models for various products and processes, accelerate the construction of a big data risk control system, and enhance independent digital risk control management capabilities.

[0034] In terms of improving modeling efficiency, using a better automated modeling platform can significantly shorten the model development process that originally took weeks or even months. Later model monitoring and tuning can also greatly reduce the pressure and time of modelers, allowing modelers to save more time to study risk control strategies and model algorithm updates, and devote more energy to research work.

[0035] In terms of improving model interpretability, automated modeling platforms can usually quickly generate interpretable logistic regression scorecard models. Some automated machine learning platforms can explore and analyze the interpretability of machine learning models, and further extract model results to generate interpretable risk control rule combinations, expanding the selectivity of model algorithms.

[0036] In terms of empowering non-expert users with modeling capabilities, after the introduction of the automated modeling platform, all business departments, technical departments, management departments, etc. can use this platform to conduct data analysis and data modeling for different businesses, different scenarios, and different customer groups, quickly develop customized feature models, and design personalized Internet products. To a certain extent, it can improve the data analysis and data modeling capabilities of various departments and accelerate digital transformation and development.

[0037] Figure 1 FIG. 1 is a schematic diagram showing a risk control model creation environment 100 according to an embodiment of the present invention. Figure 1 The structure and function of the risk control model creation environment 100 shown are for illustrative purposes only and do not imply any limitation on the scope of the present disclosure. The embodiments of the present disclosure may be embodied in different structures and / or functions.

[0038] like Figure 1 As shown, the risk control model creation environment 100 may include a computing device 110. The computing device 110 may be any suitable electronic device, such as, but not limited to, a mobile phone, a tablet computer, a laptop computer, a desktop computer, a server, a mainframe, a wearable device, etc. Sample data 120 associated with a business to be risk-controlled may be input into the computing device 110.

[0039] Businesses that require risk management can include many types of businesses, such as auto finance, consumer finance, cash installments, credit cards, and credit card repayments. In addition, businesses can also be in multiple business stages, such as marketing, anti-fraud, anti-money laundering, pre-loan application, mid-loan behavior, and post-loan collection.

[0040] The sample data 120 may include features and feature values. For example, assuming that the business to be risk-controlled is a credit card business, in this case, the sample data 120 may include features such as "name", "telephone number", "age", "gender", "income", "occupation", "career development expectations", etc., and feature values ​​of these features such as "Zhang San", "88888888", "33", "male", "100,000", "engineer", "stable", etc. It should be understood that the features and feature values ​​of the above-mentioned sample data 120 are only examples. In fact, depending on the needs of the business, the sample data 120 may include any appropriate features and a large number of feature values ​​of these features.

[0041] The computing device 110 can generate a model (hereinafter, alternatively referred to as a "risk control model") 130 for risk management of the business based on the sample data 120. In some embodiments, the generation of the model 130 can use an automatic machine learning tool to automatically adjust parameters, so as to intelligently generate the optimal model. For example, the automatic machine learning tool may include any appropriate automatic machine learning tool such as NNI (Nerual Network Intelligence), Google Cloud AutoML, EasyDL, etc. Taking NNI as an example, NNI is a toolkit that can effectively help users design and tune the neural network architecture of the machine learning model, the parameters of complex systems (such as hyperparameters (alternatively referred to as "hyperparameters")), etc.

[0042] Traditionally, in machine learning modeling, in addition to preparing data, the most time-consuming and labor-intensive process is to try various hyperparameter combinations to find the best model effect. Even for experienced algorithm engineers and data scientists, it is sometimes difficult to grasp the rules and can only find a better hyperparameter combination through multiple attempts. For beginners, it takes more time and effort. However, with the help of automatic machine learning tools, the optimal model can be automatically generated through intelligent parameter adjustment, which significantly improves modeling efficiency and saves human resources.

[0043] The computing device 110 can deploy the model 130 so that the model 130 can perform distributed computing to perform risk management on the business. For example, a large amount of user data can be input into 130, and the model 130 can predict the risk ratings of these users, thereby performing risk management on related businesses, such as credit card businesses.

[0044] In some embodiments, the model 130 can be deployed using container technology. Container technology can deploy experimental tasks, realize the parallel execution of multiple experimental tasks, achieve the purpose of distributed task processing, and has the advantages of high availability, reliability, and scalability. For example, container technology can include any appropriate container technology such as DOCKER and coreos. By using container technology, the defects of traditionally being unable to distribute computing to different servers and relying on the performance of individual servers can be overcome.

[0045] In this way, the solution of the embodiment of the present invention can automatically generate and optimize the model, thereby reducing the difficulty of modeling, improving modeling efficiency, improving model interpretability, and giving non-expert users modeling capabilities.

[0046] Figure 2 An exemplary flow chart of a method for creating a risk control model according to an embodiment of the present invention is shown below. Figure 1 The risk control model creation environment 100 is used to describe the actions involved in the method 200. In addition, the method 200 may optionally include additional actions not shown and / or may omit the actions shown, and the scope of the present disclosure is not limited in this respect.

[0047] like Figure 2 As shown, the risk control model creation method 200 according to the embodiment of the present invention may include steps 210 to 230. In the embodiment of the present invention, the risk control model creation method 200 may be implemented by the computing device 110.

[0048] Step 210: Acquire original data associated with the business to be risk-controlled, wherein the original data includes multiple feature values ​​corresponding to multiple features and respective risk control labels.

[0049] In some embodiments, the computing device 110 may obtain raw data associated with the business to be risk-managed. The raw data may be obtained in any appropriate manner. For example, the computing device 110 may obtain raw data from a file uploaded by a user. In addition, the computing device 110 may also obtain raw data from a specified database. The specified database may be, for example, a database selected by the user.

[0050] The original data may include multiple feature values ​​corresponding to multiple features and respective risk control labels. For example, the features may be "name", "telephone number", "age", "gender", "income", "occupation", etc., and have feature values ​​"Zhang San", "88888888", "33", "male", "100,000", "engineer", etc. The risk control label may be "risk rating", etc., and have values ​​of "good" or "bad", etc. For example, good and bad samples may be defined based on labels such as whether the customer has at least one overdue payment of more than 15 days among the three installments due. The risk control label is a feature designated by the user as a dependent variable, also known as a Y label, while other features will serve as independent variables. In some embodiments, the risk control label value corresponding to each feature value of the original data may be defined.

[0051] In some embodiments, the computing device 110 may also automatically identify the data type of the feature of the raw data, such as continuous type, discrete type, etc. Thus, the computing device 110 may generate an analysis report of the raw data. In addition, the computing device 110 may also provide the analysis report to the user for preview. Table 1 shows an example of an analysis report.

[0052] Table 1: Analysis report

[0053]

[0054] The above process of acquiring raw data and generating analysis reports can also be referred to as a "data management" process.

[0055] Step 220: Process the original data to generate sample data.

[0056] In some embodiments, the computing device 110 may further process the raw data to generate sample data, which is also referred to as a “data processing” process. Figure 3 An exemplary schematic diagram of multiple sub-processes / flows of a data processing process 300 according to an embodiment of the present invention is shown. Those skilled in the art will appreciate that under the teachings of the present invention, these sub-processes / flows can be performed in parallel / combined and / or sequentially. If they are performed sequentially, unless it is obviously contrary to the teachings of the embodiment of the present invention, these sub-processes / flows can be performed in different ways. Figure 3 The sequences shown are performed in any practicable order.

[0057] Step 310: Select data.

[0058] In some embodiments, computing device 110 may select data. Specifically, computing device 110 may select a first data set from raw data based on a set of specified features. A user may set a threshold to exclude data associated with invalid features. In addition, a user may select a specified feature to select data associated with the specified feature. For example, a user may select a "name" feature, whereby data associated with the "name" feature will be selected into the first data set.

[0059] Step 320: Data sampling.

[0060] In some embodiments, the computing device 110 may perform data sampling. Specifically, the computing device 110 may select the second data set from the first data set based on a specified sampling rule. For example, a user may select a Y label and a sampling method and set a random sub to set the sampling rule. The sampling rule may adopt any appropriate sampling method, such as random sampling, stratified sampling, oversampling, etc.

[0061] Step 330: Feature derivation.

[0062] In some embodiments, the computing device 110 may perform feature derivation. Specifically, the computing device 110 may also generate derived features according to the features of the second data set based on a specified feature derivation rule to obtain a third data set including feature values ​​of the derived features.

[0063] For example, the derived feature “career development expectations” can be derived from the features “occupation” and “age”, which can indicate repayment ability / risk to a certain extent.

[0064] In some embodiments, multiple features of the second data set may be selected for feature derivation. For example, features "occupation" and "age" may be selected. In addition, one or more derivation logics may be set. For example, a user may select features to be used for derivation and input derivation feature information.

[0065] In addition, derivative codes may also be provided. The derivative codes may be written in any appropriate language, such as R, Python, Java, and function libraries thereof. For example, the computing device 110 also has a function table that can be used to write derivative codes, which records various functions of the derivative method, such as int(x) for converting a value to an integer, max(...) for finding the maximum value, and the like.

[0066] In addition, the one or more derivative logics can be verified based on the preset derivative criteria to screen out the derivative logic that meets the derivative criteria. For example, the computing device 110 can also verify the derivative code to ensure its correctness. Thus, based on the derivative logic that meets the derivative criteria, derived features and their feature values ​​can be derived from multiple features of the second data set and their feature values. For example, the derived feature "career development expectations" and its feature value "stable" can be obtained from the features "occupation" and "age" and their feature values ​​"bank clerk" and "33".

[0067] In a preferred embodiment, the derived criteria may include a first data type (constraint) criterion, a second feature coverage (constraint) criterion, and a third semantic criterion.

[0068] In a preferred embodiment, filtering based on the first data type (constraint) criteria may include:

[0069] determining data types of features used for feature derivation and data types of derived features;

[0070] For example, from possible derivation (combination, transformation or calculation) methods of all data types, possible derivation methods of the data type of the feature used for feature derivation and possible derivation methods of the data type of the derived feature are obtained;

[0071] Determine whether the set derivation logic conforms to the possible derivation mode of the data type;

[0072] Screen out derivative logic that does not conform to possible derivative methods.

[0073] Here, the derivation logic that complies with the possible derivation method can be used to perform screening based on the aforementioned second criterion.

[0074] In a specific example of the present invention, the data type may include one or more of a numerical type, a category type, a time type, and a combination type.

[0075] In a specific example of the present invention, possible derivation (combination, transformation or calculation) methods for all data types may include possible derivation methods for single features or multiple feature combinations. For example, for numerical features used for derivation, such as amount, quantity, etc., possible derivation methods may include four arithmetic operations, statistical operations and / or conversion into categorical types. For example, for categorical types, possible derivation methods may be based on sorting of ordered variables, and may be based on counting or conversion into dummy variables based on nominal variables. For example, for time types, possible derivation methods may be based on continuous values ​​or discrete values ​​for corresponding derivation, such as continuous values ​​that can be derived from durations, etc. For example, for combination types, cross operations may be performed on certain types, such as numerical or time features.

[0076] In a preferred embodiment, the screening based on the second criterion may include data coverage based on the features used for derivation and / or data coverage of the features after derivation, and may specifically include

[0077] Obtaining a first data coverage of a feature value corresponding to a feature used for feature derivation in the second sample data; if the first data coverage is less than a preset first coverage threshold, filtering out the derivation logic related to the feature; and / or

[0078] Based on one or more derivative logics, a feature value of a derived feature is obtained from a second data set; a second data coverage of the feature value of the derived feature is determined; if the second data coverage is less than a preset second coverage threshold, the derivative logic related to the feature is filtered out.

[0079] For example, if the coverage of the feature value corresponding to the feature used for derivation in the second sample set in the applicable customer group is less than 5%, then the feature can be omitted for feature derivation (i.e., the derivation logic related to it is screened out). Alternatively, if the coverage of the feature value corresponding to the derived feature obtained from the second sample set in the applicable customer group is less than 3%, then the derived feature can be omitted (i.e., the derivation logic related to it is screened out).

[0080] In some embodiments, the second criterion and the third criterion may be implemented in parallel or selectively, and may precede or follow each other.

[0081] In a preferred embodiment, screening based on the third criterion may include:

[0082] Acquire the semantic meaning of the derived feature based on the feature for derivation and the corresponding derivation logic, which can be implemented based on a variety of semantic analysis algorithms and can be optionally adjusted manually by the user; and filter the related derivation logic based on the semantic meaning of the derived feature and the third standard. For example, filtering the related derivation logic based on the semantics of the derived feature and the third standard may include: determining whether the semantics of the derived feature meets the third standard, and filtering out the related derivation logic that does not meet the third standard.

[0083] In some embodiments, the third criterion may include a business relevance sub-criterion, which may be screened in association with the second criterion. Here, the screening step may further include: if the first / second data coverage is less than the first / second coverage threshold, but the derived feature is determined to be higher than the preset business relevance sub-criterion based on the semantic meaning of the derived feature, then the relevant derivative logic is retained (not screened out). For example, if the coverage of the applicable customer group is less than the aforementioned 5% or 3%, but the business interpretability or business value is higher than a certain standard, the relevant derivative logic can still be retained.

[0084] In addition, an interpretable description of the derived features may be generated, for example, based on the same or similar means as described above for obtaining semantic meanings, so as to be provided to the user in the report to help the user understand.

[0085] The feature derivation and optional interpretability description performed in the embodiments of the present invention have a very beneficial effect on the establishment of a risk control model. As an explanation, for some users, when they want to establish a risk control model for a new or second business and / or scenario, they often only have (original) data from the original or first business and / or scenario. Although such data and its features have a certain correlation with the new or second business / scenario for which the risk control model is to be constructed, they are often not suitable for constructing the risk control model or the construction effect is not good, or the relevant personnel who construct the risk control model may not have sufficient professional knowledge to construct the risk control model or the construction effect is not good, although the relevant personnel may be able to construct a risk control model for the original or first business and / or scenario. In a further preferred embodiment, the derivation criteria can be set based on one or more of the following factors, preferably all of the following factors: the new or second business, one or more pre-set risk control model algorithm types as further described below, and model evaluation indicators as further described below.

[0086] Step 340: Transcoding.

[0087] In some embodiments, for ease of processing, the computing device 110 may perform transcoding, for example, transcoding character features into numerical features. Specifically, the computing device 110 may convert the third data set into transcoded data based on a specified transcoding method. The transcoding may be performed in any appropriate manner, such as onehot transcoding, woe transcoding, ordered variable transcoding, etc. The computing device 110 may perform batch transcoding on all data. Alternatively, the computing device 110 may also perform separate transcoding on individual data, so that different data may use different transcoding methods.

[0088] Step 350: Missing value processing.

[0089] In some embodiments, the computing device 110 may perform missing value processing. Specifically, the computing device 110 may fill in missing values ​​in the transcoded data to generate filled data. The computing device 110 may fill in any suitable manner, such as filling in a median, a fixed value, etc. In the case of filling in a fixed value, the fixed value may be specified by a user.

[0090] Step 360: Outlier processing.

[0091] In some embodiments, the computing device 110 can perform outlier processing. Specifically, the computing device 110 can remove outliers in the fill data to generate normal data. The computing device 110 can perform outlier processing in any appropriate manner, such as isolated forest detection, Z-score detection, custom filtering, etc. The user can batch process the fields and values ​​detected as outliers, or process individual outliers separately, so that different data can use different outlier processing methods. In addition, in custom filtering, the outlier range can also be customized according to the threshold.

[0092] Step 370: Deduplication.

[0093] In some embodiments, the computing device 110 may perform deduplication processing. Specifically, the computing device 110 may remove duplicate values ​​in normal data to generate sample data. For example, a user may select one or more fields that need to be deduplicated to achieve single-field deduplication or multi-field deduplication. When performing single-field deduplication, data with the same value in the field may be removed. When performing multi-field deduplication, data with the same value combination in multiple fields may be removed.

[0094] Therefore, after performing data processing as described in steps 310 - 370 on the original data, the computing device 110 can obtain the sample data 120 .

[0095] Step 230: Preset one or more risk control model algorithm types and / or model hyperparameter search setting values, and based on a predetermined first model evaluation indicator, use sample data for training to generate a risk control model for risk control management of the business, wherein the risk control model is an optimal algorithm type determined based on the first model evaluation indicator and / or has an optimal hyperparameter value determined based on the first model evaluation indicator.

[0096] The parameters of the model can be divided into two categories: parameters and hyperparameters. Parameters are parameter data obtained by the model through its own training and learning. Usually hyperparameters need to be set through experience to improve the effect of model training. For example, hyperparameters can be the number of hidden layers of the model, the number of neurons in each hidden layer, the activation function and learning algorithm used, the learning rate and regularization coefficient, etc., as well as hyperparameters unique to the risk control model. In addition, the first model evaluation index may include, for example, KS, Gini, ROC, AUC, PSI, etc. Specifically, for example, features can be input into the risk control model, the risk control model learns parameters under the guidance of the initial hyperparameters, and the model evaluation indicators are used to evaluate whether the setting of the hyperparameters is appropriate, and if not, continue to adjust.

[0097] Furthermore, the preset one or more risk control model algorithm types and / or model hyperparameter search setting values ​​include:

[0098] Select the preset one or more risk control model algorithm types from a plurality of alternative risk control model algorithm types; and set the model hyperparameter search setting value.

[0099] Optionally, the alternative risk control model algorithm types include at least two of logistic regression, extreme gradient boosting, boosting machine, gradient boosting, naive Bayes, decision tree and random forest.

[0100] In some embodiments, the model hyperparameter search setting value includes at least one of the following: a hyperparameter search method, a number of training times, a training duration, and a hyperparameter data search range.

[0101] Optionally, the hyperparameter search method includes at least one of a tree structure estimation method, a grid search method, a random search method, a simulated annealing method, a naive evolution method, a batch optimization method and a black box optimization method.

[0102] In this case, a hyperparameter search method can be used to search for candidate optimal hyperparameters in the hyperparameter data search range, and the candidate optimal hyperparameters can be used to train a risk control model based on the preset one or more risk control model algorithm types. If the number of training times or the training duration of the risk control model exceeds the preset number of training times and training duration, the training of the risk control model can be stopped. In this way, the training of the risk control model can be controlled. Accordingly, based on the predetermined first model evaluation index, the optimal algorithm type and the optimal hyperparameter value obtained through training can be determined, and the optimal risk control model can be determined accordingly for risk control management of the business.

[0103] In some embodiments, the process of generating a model may utilize a feature selection method, a model training method, a hyperparameter search method, and / or a binning method. Accordingly, in the embodiments of the present invention, features related to the feature selection and binning may also be included accordingly. The process of generating a model is also referred to as a "model experiment" process, which will be referred to hereinafter. Figure 4 Describe the sub-processes / flows of "model experiment". Those skilled in the art will understand that under the teachings of the present invention, these sub-processes / flows can be performed in parallel / combined and / or sequentially. If they are performed sequentially, unless it is obviously contrary to the teachings of the embodiments of the present invention, these sub-processes / flows can be performed in different ways. Figure 4 In particular, Figure 4 The sub-processes / flows of the "Model Experiment" shown are described on a functional basis. Figure 4 The sub-processes / flows shown may be performed in the manner of the preferred embodiments of the present invention described above or below or may be incorporated into these preferred embodiments.

[0104] In some embodiments, the process of generating a model can be implemented using an automatic machine learning tool (e.g., NNI). As described above, the automatic machine learning tool can automatically adjust parameters to intelligently generate the optimal model. With the help of the automatic machine learning tool, the optimal model can be automatically generated through intelligent parameter adjustment, thereby significantly improving the modeling efficiency and saving human resources. Figure 5 Describe the execution process of machine learning tools.

[0105] Figure 4 An exemplary schematic diagram showing sub-processes / flows of a data experiment 400 according to an embodiment of the present invention.

[0106] Step 410: Screening features.

[0107] In some embodiments, the computing device 110 may use any appropriate method to filter features. For example, the feature filtering method may include L1 regularization, random forest algorithm, indicator judgment method, etc.

[0108] In some embodiments of the present invention, feature screening can be performed based on one or more preset risk control model algorithm types. For example, in some embodiments, a first feature screening can be used for a first preset risk control model algorithm type, and a second feature screening can be used for a second preset risk control model algorithm (or no feature screening. Accordingly, in various embodiments of the present invention, feature screening can be used or not used, or sample data for specific feature screening can be used when training a risk control model.

[0109] In an embodiment of the present invention, the feature screening of the sub-step 410 may be combined with the binning described below, as further described below.

[0110] Step 420: Model training.

[0111] In some embodiments, the computing device 110 may use any appropriate method to perform model training. For example, the model training method may include Logistic Regression, Extreme Gradient Boosting XGBoost, Boosting Machine LightGBM, Gradient Boosting GBDT, Naive Bayes, Bayes, Decision Tree, Random Forest algorithm, etc.

[0112] The model training in sub-step 420 may be combined with other sub-steps, especially sub-step 430, in various possible forms. In the model training in this sub-step 420, for example, for an initial model based on a given risk control model algorithm type and a set of candidate optimal hyperparameters, at least part of the sample data (optionally feature-screened and / or binned) may be used to iteratively train the initial model until the iteration exits, for example, the loss converges or the loss value is less than a predetermined threshold, and the iterative method may include a gradient descent method.

[0113] Step 430: Hyperparameter search (determine).

[0114] In some embodiments, the computing device 110 may use any appropriate method to perform hyperparameter search, which may be used to form, for example, the initial model described in sub-step 420 for model training. For example, the hyperparameter search method may include a tree structure Parzen estimation method, a grid search method, a random search method, a simulated annealing method, a naive evolution method, a batch optimization method, a black box optimization method, and the like.

[0115] Take the grid search method as an example. Grid search means trying every possibility among all candidate hyperparameter selections by looping through them, and the best performing hyperparameter is the final result. Suppose there are two types of hyperparameters, each with 3 values ​​to be explored, and 9 hyperparameter combinations are obtained after Cartesian product. Use grid search to train the model using each optimal hyperparameter combination, and select the best hyperparameter on the validation set. This method often lists tables according to different categories and loops through the search in the table.

[0116] As for the hyperparameter search (determination) function, the (real) optimal hyperparameter value can be obtained from the candidate optimal hyperparameter value based on the first model evaluation index. In this sub-step 430, the generation of candidate hyperparameter values ​​by hyperparameter search and the determination of the real optimal hyperparameter value are described simultaneously. However, it is conceivable that, as described in certain embodiments of the present invention, the generation of candidate hyperparameter values ​​by hyperparameter search and the determination of the real optimal hyperparameter value can be implemented in separate steps, still falling within the scope of the invention.

[0117] Step 440: Binning.

[0118] In some embodiments, binning operations may be set for certain algorithm types. The computing device 110 may use any appropriate method to perform binning. For example, binning methods may include decision tree optimal binning, chi-square binning, etc. In addition, the computing device 110 may also support manual adjustment of binning. In some embodiments, automatic binning and / or manual binning may be selectively performed based on one or more preset risk control model algorithm types. For example, in some embodiments, for a logistic regression algorithm (type), some or all manual binning settings may be provided on the basis of automatic binning, or manual binning settings may be provided directly.

[0119] In some embodiments of the present invention, the binning method and / or binning threshold may be performed based on one or more preset risk control model algorithm types. For example, in some embodiments, a first binning method and / or binning threshold may be used for a first preset risk control model algorithm type, and a second binning method and / or binning threshold (or no binning) may be used for a second preset risk control model algorithm. Accordingly, in various embodiments of the present invention, sample data with or without binning, or with a specific binning method and / or binning threshold, may be used when training a risk control model.

[0120] Just as an example, in some embodiments, one or more binning variables and their thresholds may be preset, and the sample data may be binned based on these binning variables and their thresholds. Thus, a risk control model may be generated based on the binned sample data. For example, customers aged 0-30, 30-60, and over 60 may be binned into three groups based on age. In this way, objects of the same type (e.g., customers) may be grouped together, thereby reducing noise data in the sample data.

[0121] In the embodiment of the present invention, the feature screening of sub-step 410 can be combined with the binning of sub-step 420, which all fall within the scope of the present invention. For example, the sample data that has been feature screened and binned can be used based on the first preset risk control model algorithm, and the sample data that has been feature screened but not binned can be used based on the second preset risk control model algorithm.

[0122] As mentioned above, the model training in sub-step 420 can be combined with other sub-steps, especially sub-step 430, in various possible forms. In addition, the hyperparameter search to generate candidate hyperparameter values ​​and determine the true optimal hyperparameter value can be combined or implemented in separate steps. Thus, a plurality of different specific embodiments can be obtained.

[0123] In a specific embodiment, the generation of candidate hyperparameter values ​​by hyperparameter search may be independent of model training. Thus, the embodiment may include:

[0124] Using a hyperparameter search method to search for multiple groups of candidate optimal hyperparameters in a hyperparameter data search range, optionally, the multiple groups may correspond to the number of training times;

[0125] Within a predetermined number of training times or training duration, the following steps are executed cyclically: for each set of candidate optimal hyperparameters, an initial model is obtained from the set of candidate optimal hyperparameters and the corresponding risk control model algorithm, and the initial model is iteratively trained using sample data until the iteration is completed (the iteration exit condition may include the exit condition described elsewhere in this document);

[0126] After completing the loop, based on the predetermined first model evaluation index, the optimal risk control model is determined from the multiple trained risk control models obtained in the loop. For example, the algorithm type and hyperparameters are determined based on the evaluation index, and the parameters of the model are optionally determined.

[0127] As an alternative to the first specific embodiment, determining the optimal model can be incorporated into the steps of loop execution. For example, the second alternative specific embodiment may include:

[0128] Using a hyperparameter search method to search for multiple groups of candidate optimal hyperparameters in a hyperparameter data search range, optionally, the multiple groups may correspond to the number of training times;

[0129] Within a predetermined number of training times or training duration, the following steps are executed in a loop: for each set of candidate optimal hyperparameters, an initial model is obtained from the set of candidate optimal hyperparameters and the corresponding risk control model algorithm, and the initial model is iteratively trained using sample data until the iteration is completed (the iteration exit condition may include the exit condition described elsewhere in this document); based on a predetermined first model evaluation indicator, the risk control model after the iteration in the loop is compared with the existing optimal risk control model to determine the current optimal risk control model (it can be understood here that in the next loop, the current optimal risk control model can be used as the existing optimal risk control model).

[0130] In this specific embodiment, the number of training times or the training duration may be triggered selectively, that is, if one of the two conditions is met, the training is terminated.

[0131] In other words, in this second alternative specific embodiment, the optimal risk control model (as well as the optimal algorithm type and the optimal hyperparameter value) can be obtained in each cycle.

[0132] In this alternative specific embodiment, in the first loop, there may be an existing optimal risk control model or the existing optimal risk control model may be empty (ie, the first loop directly uses the risk control model that has completed the iteration as the current optimal risk control model).

[0133] As an alternative to the first two specific embodiments, the generation of candidate hyperparameter values ​​by hyperparameter search can be integrated with model training, and the determination of the truly optimal hyperparameter value is independent of model training. This third alternative specific embodiment may include:

[0134] Within a predetermined number of training times or training duration, the following steps are executed cyclically: a set of candidate optimal hyperparameters is searched in the hyperparameter data search range using a hyperparameter search method; for the set of candidate optimal hyperparameters, an initial model is obtained from the set of candidate optimal hyperparameters and a corresponding risk control model algorithm, and the initial model is iteratively trained using sample data until the iteration is completed (the iteration exit condition may include the exit condition described elsewhere in this document);

[0135] After completing the loop, based on the predetermined first model evaluation index, the optimal risk control model is determined from the multiple trained risk control models obtained in the loop. For example, the algorithm type and hyperparameters are determined based on the evaluation index, and the parameters of the model are optionally determined.

[0136] In other words, in the third alternative specific embodiment, a set of hyperparameters may be obtained in each loop, which may have the advantage that the hyperparameters may be obtained based on a specific risk control model algorithm type.

[0137] As an alternative to the first three specific embodiments, the hyperparameter search to generate candidate hyperparameter values ​​and the determination of the true optimal hyperparameter values ​​can be integrated with model training. This fourth alternative specific embodiment may include:

[0138] Within a predetermined number of training times or training duration, the following steps are executed in a loop: a set of candidate optimal hyperparameters is searched in the hyperparameter data search range using a hyperparameter search method; for the set of candidate optimal hyperparameters, an initial model is obtained from the set of candidate optimal hyperparameters and the corresponding risk control model algorithm, and the initial model is iteratively trained using sample data until the iteration is completed (the iteration exit condition may include the exit condition described elsewhere in this document); based on a predetermined first model evaluation index, the risk control model after the iteration in the loop is compared with the existing optimal risk control model to determine the current optimal risk control model. It can be understood here that in the next loop, the current optimal risk control model can be used as the existing optimal risk control model, and reference can be made to the aforementioned second specific embodiment.

[0139] Among the aforementioned four specific embodiments, the first specific embodiment has a special advantage, which can effectively improve the efficiency of model training and hyperparameter search, and the architecture is more modular. Users can modify the solution according to the embodiment of the present invention as needed to optimize model training and hyperparameter search respectively.

[0140] In other embodiments, feature screening and / or binning can be combined with the aforementioned four embodiments, and in particular can be integrated or independent of the aforementioned loops to obtain new embodiments. For example, in a further embodiment in which the binning operation is combined with the first specific embodiment, each loop includes: determining the corresponding risk control model algorithm type based on the current group of candidate optimal hyperparameters; judging whether to trigger the binning operation based on the risk control model algorithm type (e.g., logistic regression algorithm); if the binning operation is triggered, binning the sample data based on the preset binning method and binning threshold, and iteratively training the initial model using the binned sample data until the iteration is completed; if the binning operation is not triggered, iteratively training the initial model using the unbinned sample data until the iteration is completed.

[0141] Figure 5 An exemplary schematic diagram showing an execution process 500 of a machine learning tool according to an embodiment of the present invention is shown. Figure 5 The execution process 500 of the machine learning tool shown is an example of the execution process of NNI. It should be understood that the process 500 may also optionally include additional actions not shown and / or may omit the actions shown, and the scope of the present disclosure is not limited in this respect.

[0142] Step 510: Customizing the search space. For example, the computing device 110 may customize the search space of the hyperparameter to search for the hyperparameter in the space.

[0143] Optionally, step 520: start the automatic machine learning tool. For example, the computing device 110 can start the NNI.

[0144] Step 530: Generate hyperparameters. For example, the computing device 110 may use NNI to intelligently adjust the model parameters to determine the hyperparameters of the model.

[0145] Step 540: Performing an experiment. For example, the computing device 110 may perform an experiment on the model generated by the NNI, such as the aforementioned model training, for example, inputting test data into the model to evaluate its accuracy.

[0146] Step 550: Evaluate the results. For example, computing device 110 may compare the difference between the output of the model and the actual results to evaluate their accuracy.

[0147] Step 560: Analyze the results. For example, the computing device 110 may analyze the results to determine whether to deploy the model, or continue to optimize the model and the method of optimizing the model. Here, an analysis report may be generated.

[0148] In addition, in some embodiments, after the model is trained, the model can also be deployed so that the model can perform distributed computing to manage the business. In some embodiments, the model 130 can be deployed in a distributed manner using containers. Container technology can deploy experimental tasks, realize the parallel execution of multiple experimental tasks, achieve the purpose of distributed processing of tasks, and has the advantages of high availability, reliability, and scalability. For example, container technology can include any appropriate container technology such as DOCKER, coreos, etc. By using container technology, the defects of traditionally being unable to distribute computing to different servers and relying on the performance of individual servers can be overcome.

[0149] Further, in some embodiments, before deploying the model 130, the computing device 110 may also perform a test of the model 130. For example, the risk control model may be tested using test data based on a predetermined second model evaluation index. The acquisition method of the test data and its characteristics and characteristic values ​​are similar to those of the sample data, so their description is omitted here. In some embodiments, the second model evaluation index may optionally include KS, Gini, ROC, AUC, PSI, etc. of the test data.

[0150] In addition, a risk control model evaluation report can also be generated to provide users with clear explainability descriptions of the risk control model.

[0151] In this way, the solution of the embodiment of the present invention can automatically generate and optimize the model, thereby reducing the difficulty of modeling, improving modeling efficiency, improving model interpretability, and giving non-expert users modeling capabilities.

[0152] Figure 6 FIG. 6 is an exemplary schematic diagram showing a risk control model creation framework 600 according to an embodiment of the present invention. Figure 6 As shown, the risk control model creation framework 600 includes an application layer, a functional layer, and a support layer. The application layer may indicate the application scenarios and application stages of the risk control model creation method according to an embodiment of the present invention. Specifically, the application layer includes multiple types of mutual finance scenarios and multiple business stages. For example, multiple types of mutual finance scenarios may include auto finance, consumer finance, cash installments, credit cards, credit card repayments, etc. In addition, multiple business stages may include marketing, anti-fraud, pre-loan application, mid-loan behavior, post-loan collection, etc.

[0153] The function layer may indicate functions for implementing the risk control model creation method according to an embodiment of the present invention. For example, these functions may include sample management, data processing, automatic training, model publishing, and system management. Specifically, sample management may include uploading samples, sample analysis, Y label definition, and the like. Data processing may include sampling, feature derivation, transcoding, missing value processing, outlier processing, and deduplication. Automatic training may include logistic regression, boosted tree algorithm, gradient boosting, naive Bayes, decision tree, and random forest. Model publishing may include model generation, model deployment, model testing, and model launch. In addition, system management may include operation logs, organization management, user management, and authority management.

[0154] The support layer may indicate the functions provided by the risk control model creation method according to an embodiment of the present invention. For example, these support functions may include carrying the latest algorithms, integrating full-process modeling experience, intelligent parameter adjustment, model verification, and automatic report generation.

[0155] Figure 7 An exemplary schematic diagram of a risk control model creation system 700 according to an embodiment of the present invention is shown. It should be understood that the risk control model creation system 700 is only an example system for implementing the risk control model creation method according to an embodiment of the present invention, and any appropriate system implementation can implement the risk control model creation method according to an embodiment of the present invention.

[0156] like Figure 7 As shown, the risk control model creation system 700 may include a load balancing layer, a microservice layer, a presentation layer, an application layer, and a persistence layer. As an example, the load balancing layer can be implemented by technologies such as Nginx and keepalive. The microservice layer can be implemented by technologies such as Spring Cloud. The presentation layer can be implemented by technologies such as HTML, CSS3, ECHARS, and VUEJS. The application layer can be implemented by technologies such as Spring boot, Spring security for permission management, RESTful, Python, and NNI for service interfaces. The persistence layer can be implemented by technologies such as the data persistence framework MYBATIS (using MySQL database) and the cache database REDIS.

[0157] In the following, a typical scoring card modeling process is taken as an example to compare the traditional risk control model creation method with the risk control model creation method according to an embodiment of the present invention, wherein Figure 8 An exemplary schematic diagram of a conventional scorecard modeling process 800 is shown. Fig. 9An exemplary flow chart of a scorecard modeling process 900 according to an embodiment of the present invention is shown. A scorecard is a method for evaluating whether a business customer has risks. Assuming that a customer has no risk, a value of 0 will be assigned, while a value of 1 will be assigned if a customer has risk. Evaluating a customer is to predict the probability p of whether the customer has risk.

[0158] Figure 8 The traditional risk control model creation process 800 shown includes steps 810-890, wherein:

[0159] Step 810: Data acquisition: For example, the user can acquire raw data.

[0160] Step 820: Data exploration and data description. For example, the user can determine the valid fields of the data from the original data.

[0161] Step 830: Data integration: For example, the user can clean and transform the data.

[0162] Step 840: Feature selection. For example, the user manually selects features to be used for modeling.

[0163] Step 850: Model development. For example, the user can manually develop a model based on experience, including selecting a model type and manually adjusting hyperparameters of the model.

[0164] Step 860: Scorecard Creation and Scale For example, a user can create a scorecard and calculate a scale.

[0165] Step 870: Scorecard Implementation For example, a user may implement a scorecard.

[0166] Step 880: Model evaluation. For example, the user can evaluate the model to determine the accuracy of the model. If the accuracy of the model is low, it will return to reacquire data.

[0167] Step 890: Monitoring and reporting. For example, the user can monitor the accuracy of the model while the model is running. If the accuracy of the model is low during operation, it will return to re-acquire data or integrate data.

[0168] Fig. 9 The risk control model creation process 900 according to an embodiment of the present invention includes steps 910-980, wherein:

[0169] Step 910: Select / Upload Select sample data. For example, sample data can be selected and uploaded using the data management module. In addition, as described above, a data source (such as a database) can also be selected using the data management module, and the computing device 110 can obtain sample data from the data source.

[0170] Step 920: Generate a viewable data analysis report. For example, the data processing module can automatically generate a user-viewable data analysis report based on the sample to provide the user with analysis of the sample data.

[0171] Step 930: Select / configure a data processing solution. For example, a data processing solution can be selected / configured using the data experiment module. The data processing solution may include data selection, data sampling, feature derivation, transcoding, missing value processing, outlier processing, deduplication, etc. Since the data processing process has been described in the above reference, Figure 3 The detailed description is omitted here.

[0172] Step 940: Setting a threshold for screening feature conditions. For example, a threshold can be set using a data experiment module to exclude invalid features.

[0173] Step 950: Automatically screen algorithms and hyperparameters. For example, the data experiment module can be used to automatically screen modeling algorithms and hyperparameters.

[0174] Step 960: Generate a model and a scorecard report. For example, the data experiment model can be used to automatically generate a model and a scorecard report.

[0175] Step 970: Generate script / one-click deployment. For example, the data experiment model can be used to automatically generate scripts to deploy the model, thereby simplifying the model deployment process.

[0176] Step 980: Model deployment management / model monitoring. For example, the data management model can be used to manage the deployment of the model and monitor the operation of the model.

[0177] The above-mentioned data processing module and data experiment module are reusable, thereby further improving the modeling efficiency.

[0178] In such Fig.10 In the exemplary embodiment shown, a risk control model creation device 1000 is also provided. The risk control model creation device 1000 may include an acquisition module 1010, configured to acquire raw data associated with a business to be risk-controlled, the raw data including multiple feature values ​​corresponding to multiple features and respective risk control labels; a generation module 1020, configured to perform data processing on the raw data to generate sample data; and a modeling module 1030, configured to preset one or more risk control model algorithm types and / or model hyperparameter search setting values, and based on a predetermined first model evaluation index, use the sample data for training to generate a risk control model for risk control management of the business, wherein the risk control model is an optimal algorithm type determined based on the first model evaluation index and / or has an optimal hyperparameter value determined based on the first model evaluation index.

[0179] In some embodiments, the risk control model creation method further includes:

[0180] The testing module is configured to test the risk control model using test data based on a predetermined second model evaluation indicator.

[0181] In some embodiments, the risk control model creation method further includes:

[0182] The deployment module is configured to deploy the risk control model for performing risk control management on the business.

[0183] In some embodiments, the generating module includes:

[0184] A first selection module, configured to select a first data set from the raw data based on a set of specified features;

[0185] A second selection module is configured to select a second data set from the first data set based on a specified sampling rule;

[0186] a feature derivation module configured to generate derived features according to the features of the second data set based on a specified feature derivation rule, so as to obtain a third data set including feature values ​​of the derived features; and

[0187] The sample data generating module is configured to generate the sample data based on the third data set.

[0188] In some embodiments, the feature derivation module includes:

[0189] a feature selection module configured to select a plurality of features of the second data set for feature derivation;

[0190] A derivative logic setting module, configured to set one or more derivative logics;

[0191] A screening module, configured to verify the one or more derivative logics based on a preset derivative standard to screen out the derivative logics that meet the derivative standard;

[0192] The derivation module is configured to derive the derived features and their feature values ​​from a plurality of features and their feature values ​​of the second data set based on the derivation logic that meets the derivation criteria.

[0193] In some embodiments, the sample data generation module includes:

[0194] a transcoding module, configured to convert the third data set into transcoded data based on a specified transcoding method;

[0195] A filling module, configured to fill missing values ​​in the transcoded data to generate filling data;

[0196] an outlier processing module, configured to remove outliers in the filling data to generate normal data; and

[0197] The deduplication module is configured to remove duplicate values ​​in the normal data to generate the sample data.

[0198] In some embodiments, the model hyperparameter search setting value includes at least one of the following:

[0199] Hyperparameter search methods,

[0200] Number of training sessions,

[0201] training duration, and

[0202] Hyperparameter data search range.

[0203] In some embodiments, the modeling module includes:

[0204] A hyperparameter search module is configured to search for a candidate optimal hyperparameter in the hyperparameter data search range using a hyperparameter search method;

[0205] A training module, configured to train the risk control model using the candidate optimal hyperparameters;

[0206] The stopping module is configured to stop training the risk control model in response to the number of training times or the training duration of training the risk control model exceeding a preset number of training times and training duration.

[0207] In some embodiments, the modeling module includes:

[0208] A preset module, configured to preset one or more binning variables and their thresholds;

[0209] A binning module, configured to bin the sample data based on the one or more binning variables and their thresholds; and

[0210] The model generation module is configured to generate the risk control model based on the boxed sample data.

[0211] In some embodiments, the acquisition module includes at least one of the following:

[0212] an upload module, configured to obtain the original data from a file uploaded by a user; and

[0213] The database acquisition module is configured to acquire the original data from a specified database.

[0214] In some embodiments, the acquisition module further includes:

[0215] The definition module is configured to define the risk control label value corresponding to each characteristic value of the original data.

[0216] In some embodiments, the deployment module includes:

[0217] The distributed deployment module is configured to utilize containers to deploy the risk control model in a distributed manner.

[0218] In an embodiment of the present invention, an electronic device is provided, which includes: a processor and a memory storing a computer program, wherein the processor is configured to implement any method according to an embodiment of the present invention when running the computer program. In addition, a processing device for implementing the embodiment of the present invention can also be provided.

[0219] Fig.11 A schematic diagram of an electronic device 1100 that can implement a method or implement an embodiment of the present invention is shown, and in some embodiments, more or fewer electronic devices than shown may be included. In some embodiments, it can be implemented using a single or multiple electronic devices. In some embodiments, it can be implemented using cloud or distributed electronic devices.

[0220] like Fig.11 As shown, the electronic device 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate operations and processes according to the programs and / or data stored in the read-only memory (ROM) 1102 or the programs and / or data loaded from the storage part 1108 to the random access memory (RAM) 1103. CPU 1101 can be a multi-core processor or include multiple processors. In some embodiments, CPU 1101 can include a general main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. Various programs and data required for the operation of the electronic device 1100 are also stored in RAM 1103. CPU 1101, ROM 1102 and RAM 1103 are connected to each other via a bus 1104. Input / output (I / O) interface

[0221] 1105 is also connected to bus 1104 .

[0222] The processor and the memory are used together to execute the program stored in the memory. When the program is executed by the computer, the steps or functions of the model generation method and the recognition method described in the above embodiments can be implemented.

[0223] The following components are connected to the I / O interface 1105: input part including keyboard, mouse, etc.

[0224] 1106; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage section 1108 as needed. Fig.11 Only some components are schematically shown in the figure, which does not mean that the computer system 1100 only includes Fig.11 Components shown.

[0225] The systems, devices, modules or units described in the above embodiments may be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, a smart phone, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a personal digital assistant, a media player, a navigation device, a game console, a tablet computer, a wearable device, a smart TV, an Internet of Things system, a smart home, an industrial computer, a server or a combination thereof.

[0226] In a preferred embodiment, the training system and method can be implemented or realized at least partially or completely on a cloud-based machine learning platform or partially or completely in a self-built machine learning system, such as a GPU array.

[0227] In a preferred embodiment, the generating device and method can be implemented or realized in a server, such as a cloud or distributed server. In a preferred embodiment, the server can also be used to push or send data or content to the interrupt based on the generating result.

[0228] In an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores a computer program, and the computer program is configured to execute any method of the embodiment of the present invention when executed.

[0229] Storage media in embodiments of the present invention include permanent and non-permanent, removable and non-removable items that can be used to store information by any method or technology. Examples of 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 medium that can be used to store information that can be accessed by a computing device.

[0230] In the embodiments described above and / or shown in the accompanying drawings, a fraud identification model generation method and a fraud identification method as well as related electronic devices and storage media are proposed.

[0231] However, under the guidance of the present disclosure, the embodiments of the present invention can also be applied to a wider range of scenarios, especially to various application scenarios for implementing "binary classification" evaluation or identification, such as but not limited to other risk control scenarios or other financial scenarios, such as loan evaluation; and scenarios outside the financial industry, such as business development success evaluation, spam evaluation, product or advertisement effective recommendation or user preference evaluation. Therefore, in some embodiments of the present invention, a classification model generation method and device and a classification evaluation method and related electronic devices and storage media are also proposed, especially a risk control model generation method and device and a risk assessment method and related electronic devices and storage media are proposed, which may include the corresponding features described in the embodiments related to fraud identification (anti-fraud).

[0232] For example, the evaluation or identification model generation method may include:

[0233] A sample set including a plurality of sample data is obtained, each sample data including a plurality of variable values ​​corresponding to a plurality of initial variables and respective labels.

[0234] Binning the plurality of sample data of the sample set, and selecting a plurality of binning variables and their thresholds from the plurality of initial variables according to the binning results, wherein at least some of the binning variables have a plurality of thresholds and serve as multi-threshold variables, and the remaining binning variables have a single threshold and serve as first single-threshold variables;

[0235] processing the multi-threshold variables to generate a plurality of second single-threshold variables having single thresholds respectively;

[0236] mapping the first single threshold variable and the second single threshold variable into an initial rule;

[0237] The initial rules are processed to generate a final rule set including a plurality of final rules.

[0238] The methods, programs, systems, devices, etc. of the embodiments of the present invention may be executed or implemented in a single or multiple networked computers, or may be practiced in a distributed computing environment. In the embodiments of this specification, in these distributed computing environments, tasks may be performed by remote processing devices connected via a communication network.

[0239] Those skilled in the art should understand that the embodiments of the present specification may be provided as methods, systems or computer program products. Therefore, those skilled in the art may imagine that the functional modules / units or controllers and related method steps described in the above embodiments may be implemented in software, hardware or a combination of software / hardware.

[0240] Unless explicitly stated, the actions or steps of the methods, programs, and embodiments of the present invention do not have to be performed in a specific order and can still achieve the desired results. In some implementations, multitasking and parallel processing are also possible or may be advantageous.

[0241] In this article, multiple embodiments of the present invention are described, but for the sake of brevity, the description of each embodiment is not exhaustive, and the same or similar features or parts between the embodiments may be omitted. In this article, "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" are meant to be applicable to at least one embodiment or example according to the present invention, but not all embodiments. The above terms do not necessarily mean to refer to the same embodiment or example. In the absence of contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.

[0242] The exemplary systems and methods of the present invention have been specifically shown and described with reference to the above embodiments, which are merely examples of the best modes for implementing the present systems and methods. It will be appreciated by those skilled in the art that various changes may be made to the embodiments of the systems and methods described herein when implementing the present systems and / or methods without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims

1. A method for creating a risk control model, characterized in that: include: Acquire original data of the first business, where the original data includes multiple feature values ​​corresponding to the multiple features and respective risk control labels; Performing data processing including feature derivation on the original data of the first business to generate sample data for training a risk control model of the second business, wherein the feature derivation data processing includes generating derived features based on specified feature derivation rules, and the second business is different from the first business; Preset multiple risk control model algorithm types; Based on a predetermined first model evaluation indicator, training is performed using the sample data to generate a risk control model for performing risk control management on the second business, including: For a first risk control model algorithm type among the preset multiple risk control model algorithm types, training is performed using sample data processed by a first binning method and a first binning threshold, For a second risk control model algorithm type among the preset multiple risk control model algorithm types, training is performed using sample data that has not been binned or using sample data that has been binned using a second binning method and a second binning threshold; The risk control model is the optimal algorithm type determined based on the first model evaluation index.

2. The risk control model creation method according to claim 1, characterized in that: Before using the sample data for training based on the predetermined first model evaluation index to generate a risk control model for risk control management of the second business, the method further includes: presetting a model hyperparameter search setting value; wherein the training uses candidate optimal hyperparameters determined according to model hyperparameter search setting values; Among them, the risk control model also has an optimal hyperparameter value determined based on the first model evaluation index.

3. The risk control model creation method according to claim 1, characterized in that: Also includes: Based on the predetermined second model evaluation index, the risk control model is tested using the test data.

4. The risk control model creation method according to claim 1, characterized in that: Also includes: The risk control model is deployed in a distributed manner using containers to perform risk control management on the second business.

5. The risk control model creation method according to claim 1, characterized in that: The performing data processing including feature derivation on the original data of the first business to generate the sample data for training the risk control model of the second business includes: selecting a first data set from the raw data based on a set of specified features; Selecting a second data set from the first data set based on a specified sampling rule; Based on a specified feature derivation rule, generating derived features according to the features of the second data set to obtain a third data set including feature values ​​of the derived features; and The sample data is generated based on the third data set.

6. The method according to claim 5, characterized in that The step of generating derived features according to the features of the second data set based on the specified feature derivation rule to obtain a third data set including feature values ​​of the derived features includes: selecting a plurality of features of the second data set for feature derivation; Set one or more derivative logics; Verifying the one or more derivative logics based on a preset derivative standard to screen out the derivative logics that meet the derivative standard; The derived features and their feature values ​​are derived from a plurality of features and their feature values ​​of the second data set based on the derivation logic that meets the derivation criteria.

7. The method according to claim 5 or 6, characterized in that: Generating the sample data based on the third data set includes: Based on a specified transcoding method, converting the third data set into transcoded data; Filling missing values ​​in the transcoded data to generate filling data; removing outliers in the filling data to generate normal data; and The repeated values ​​in the normal data are removed to generate the sample data.

8. The method according to claim 1, characterized in that: The preset multiple risk control model algorithm types include: Select the preset multiple risk control model algorithm types from multiple alternative risk control model algorithm types.

9. The method according to claim 8, characterized in that The alternative risk control model algorithm types include at least two of logistic regression, extreme gradient boosting, boosting machine, gradient boosting, naive Bayes, decision tree and random forest.

10. The method according to claim 2, characterized in that The model hyperparameter search setting value includes at least one of a hyperparameter search method, a number of training times, a training duration, and a hyperparameter data search range.

11. The method according to claim 10, characterized in that The hyperparameter search method includes at least one of a tree structure estimation method, a grid search method, a random search method, a simulated annealing method, a naive evolution method, a batch optimization method and a black box optimization method.

12. The method according to claim 10, characterized in that Using the sample data for training to generate a risk control model for performing risk control management on the second business includes: Searching for a candidate optimal hyperparameter in the hyperparameter data search range using the hyperparameter search method; Based on the candidate optimal hyperparameters, using the sample data to train a risk control model based on the preset multiple risk control model algorithm types; In response to the number of training times or the training duration of training the risk control model exceeding a preset training duration, stopping the training; Based on the predetermined first model evaluation index, the optimal algorithm type and the optimal hyperparameter value obtained through training are determined, and the optimal risk control model is correspondingly determined for performing risk control management on the second business.

13. The method according to claim 2, characterized in that Using the sample data for training to generate the risk control model also includes: Filter the features of sample data based on the preset feature screening method.

14. The method according to claim 13, characterized in that The feature screening method includes at least one of L1 regularization, random forest algorithm, and index judgment method; The risk control model is trained based on sample data after feature screening.

15. The method according to claim 1, characterized in that The original data of the first business includes at least one of the following: Acquiring original data of the first service from a file uploaded by a user; and The original data of the first service is obtained from a designated database.

16. A risk control model creation device, characterized in that: include: An acquisition module is configured to acquire original data of a first business, where the original data of the first business includes a plurality of feature values ​​corresponding to a plurality of features and respective risk control labels; A generating module, configured to perform data processing on the original data of the first business to generate sample data for training a risk control model of a second business, where the second business is different from the first business; as well as A modeling module is configured to preset multiple risk control model algorithm types, and based on a predetermined first model evaluation index, use the sample data for training to generate a risk control model for risk control management of the second business, wherein the modeling module is further configured to: for a first risk control model algorithm type among the preset multiple risk control model algorithm types, use the sample data processed by the first binning method and the first binning threshold for training; for a second risk control model algorithm type among the preset multiple risk control model algorithm types, use the sample data that has not been processed by binning or use the sample data that has been processed by the second binning method and the second binning threshold for training, wherein the risk control model is the optimal algorithm type determined based on the first model evaluation index.

17. The risk control model creation device according to claim 16, characterized in that: Before using the sample data for training based on the predetermined first model evaluation index to generate a risk control model for risk control management of the second business, the method further includes: presetting a model hyperparameter search setting value; wherein the training uses candidate optimal hyperparameters determined according to model hyperparameter search setting values; Among them, the risk control model also has an optimal hyperparameter value determined based on the first model evaluation index.

18. An electronic device, characterized in that: include: A processor and a memory storing a computer program, wherein the processor is configured to perform the method according to any one of claims 1 to 15 when running the computer program.

19. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is configured to perform the method according to any one of claims 1 to 15 when executed.