Risk prediction method and device, equipment and storage medium

Through the combination of screening rules and decision tree models, risk prediction and overdue risk in financial services are balanced, which solves the problem of increased risk exposure and overdue risk after the popularization of financial services, and achieves the accuracy of risk prediction and business needs. satisfy.

CN118761832APending Publication Date: 2024-10-11THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311431149.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-10-11

Smart Images

  • Figure CN118761832A_ABST
    Figure CN118761832A_ABST
Patent Text Reader

Abstract

The invention relates to a risk prediction method and device, equipment and a storage medium. Respectively acting the plurality of first screening rules on the plurality of test accounts to obtain retained test accounts corresponding to the first screening rules; determining the accuracy of the at least part of the retained test accounts corresponding to each first screening rule, wherein the accuracy is used for representing the accuracy of risk prediction of the at least part of the retained test accounts by the first risk prediction model; selecting a first screening rule from a plurality of first screening rules at least based on the accuracy rate; and performing risk prediction on a target account by using the first risk prediction model, wherein the target account is an account obtained by screening the total account by using the selected first screening rule. Therefore, a batch of target accounts with prediction necessity are selected from the total accounts to carry out risk prediction on the model, and support can be provided for the model to meet actual business requirements in the aspects of early warning quantity and accuracy when the model is online.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information management technology, and in particular to a risk prediction method, device, equipment and storage medium. Background Art

[0002] The prosperous development of the economy cannot be separated from the deep support of finance.

[0003] Under the general background of inclusive finance, we strive to ensure that the general public can enjoy sustainable financial services.

[0004] However, the wider the financial penetration, the greater its risk exposure, and the deeper the penetration, the higher the risk.

[0005] The middle and low-income groups account for the majority of the society, and their credit ratings are lower than those of the high-income groups, and their risk levels are higher than those of the high-income groups. As financial services extend downward, banks face increased risk exposure and increased overdue risks.

[0006] Therefore, a risk prediction solution is needed to balance risk exposure and overdue risk. Summary of the invention

[0007] A technical problem to be solved by the present disclosure is how to provide a more reasonable risk prediction solution.

[0008] According to the first aspect of the present disclosure, a risk prediction method is provided, including: applying multiple first screening rules to multiple test accounts respectively to obtain retained test accounts corresponding to each of the first screening rules; determining the accuracy of at least some of the retained test accounts corresponding to each of the first screening rules, the accuracy being used to characterize the accuracy of the first risk prediction model in predicting the risk of at least some of the retained test accounts; selecting a first screening rule from the multiple first screening rules based at least on the accuracy; and using the first risk prediction model to perform risk prediction on a target account, the target account being an account obtained by screening all accounts using the selected first screening rule.

[0009] Optionally, at least part of the retained test accounts are a first number of retained test accounts with top risk rankings obtained by performing risk prediction on the retained test accounts using the first risk prediction model, and the first number is used to represent the number of accounts that can be verified within the business validity period.

[0010] Optionally, the method further includes: taking a first number of target accounts with high risk rankings as early warning accounts; and providing the early warning accounts to business personnel for verification.

[0011] Optionally, the method also includes: obtaining the values ​​of multiple variables for each first sample in the full amount of samples; constructing the values ​​of the multiple variables of each first sample and the corresponding sample labels into a second sample; using the second sample to train a decision tree model; using a second number of variables with the highest number of occurrences in the decision tree model as candidate rules; determining a rule threshold based on a branch threshold of the variable corresponding to the candidate rule in the decision tree model; and determining the multiple first screening rules based on the candidate rules and the rule threshold.

[0012] Optionally, based on the candidate rules and the rule threshold, determining the multiple first screening rules includes: merging variables corresponding to all candidate rules into a rule chain; performing Cartesian product on each variable in the rule chain and the corresponding rule threshold to obtain the multiple first screening rules.

[0013] Optionally, the method also includes: applying the multiple first screening rules to the full amount of samples respectively to obtain the negative sample ratio and sample retention rate corresponding to each of the first screening rules; selecting the first screening rule based on the negative sample ratio and the sample retention rate; screening the full amount of samples based on the selected first screening rule; and randomly sampling the screened first samples to obtain training samples.

[0014] Optionally, the method also includes: screening sample features of training samples based on a second screening rule; binning the screened sample features using a chi-square binning method; training a second risk prediction model based on the binned sample features; eliminating sample features in the second risk prediction model whose coefficients are different in positive or negative from the coefficients of most sample features; eliminating sample features that are not related to risk prediction through hypothesis testing; re-binning the retained sample features using an adjusted chi-square binning method to ensure that the ratio of binned features to negative samples corresponding to the same feature dimension remains monotonic; calculating evidence weights based on the binned sample features; and using the evidence weights as training data to train the first risk prediction model.

[0015] Optionally, the first risk prediction model is a scoring card model.

[0016] Optionally, the second screening rule includes at least one of the following: eliminating sample features whose null value rate is greater than a second threshold; eliminating sample features whose variance is less than a third threshold; and eliminating sample features whose information value is less than a fourth threshold.

[0017] Optionally, the method also includes: determining the conversion ratio of each overdue stage in multiple overdue stages into the next overdue stage based on the account overdue behavior data of at least part of the first samples in the full sample, and taking the overdue stage whose conversion ratio exceeds a sixth threshold as the target overdue stage; determining the performance period corresponding to the target overdue stage based on the loan data; and determining the sample labels of each first sample in the full sample based on the target overdue stage and the performance period.

[0018] Optionally, the method further includes: obtaining account information of accounts corresponding to the samples in multiple dimensions within multiple periods; performing feature extraction on the account information in each dimension within each period to obtain sample features of the samples.

[0019] Optionally, the multiple periods include the last 3 months, the last 6 months and the last 24 months; and / or the multiple dimensions include: account repayment behavior, account transaction behavior, account overdue behavior, customer attributes and customer assets.

[0020] According to a second aspect of the present disclosure, a risk prediction device is provided, comprising: a first screening module, used to apply multiple first screening rules to multiple test accounts respectively, to obtain retained test accounts corresponding to each of the first screening rules; a first determination module, used to determine the accuracy of at least some of the retained test accounts corresponding to each of the first screening rules, the accuracy being used to characterize the accuracy of the first risk prediction model in predicting the risk of at least some of the retained test accounts; a selection module, used to select a first screening rule from the multiple first screening rules based at least on the accuracy; a prediction module, used to use the first risk prediction model to perform risk prediction on a target account, the target account being an account obtained by screening all accounts using the selected first screening rule.

[0021] Optionally, at least part of the retained test accounts are a first number of retained test accounts with top risk rankings obtained by performing risk prediction on the retained test accounts using the first risk prediction model, and the first number is used to represent the number of accounts that can be verified within the business validity period.

[0022] Optionally, the device further includes: a second determining module, configured to use a first number of target accounts with high risk rankings as warning accounts; and a providing module, configured to provide the warning accounts to business personnel for verification.

[0023] Optionally, the device also includes: a first acquisition module, used to obtain the values ​​of multiple variables for each first sample in the full amount of samples; a construction module, used to construct the values ​​of the multiple variables of each first sample and the corresponding sample labels into a second sample; a first training module, used to train a decision tree model using the second sample; a third determination module, used to use a second number of variables with the highest number of occurrences in the decision tree model as candidate rules; a fourth determination module, used to determine the rule threshold according to the branch threshold of the variable corresponding to the candidate rule in the decision tree model; and a fifth determination module, used to determine the multiple first screening rules based on the candidate rules and the rule threshold.

[0024] Optionally, the fifth determination module combines variables corresponding to all candidate rules into a rule chain, and performs Cartesian product on each variable in the rule chain and the corresponding rule threshold to obtain the multiple first screening rules.

[0025] Optionally, the device also includes: a training sample selection module, which applies the multiple first screening rules to the full amount of samples respectively to obtain the negative sample ratio and sample retention rate corresponding to each of the first screening rules; the training sample selection module selects the first screening rule based on the negative sample ratio and the sample retention rate; the training sample selection module screens the full amount of samples based on the selected first screening rule; the training sample selection module randomly samples the screened first samples to obtain training samples.

[0026] Optionally, the device also includes: a second screening module, used to screen the sample features of the training samples based on the second screening rules; a first binning module, used to bin the screened sample features using the chi-square binning method; a second training module, used to train the second risk prediction model based on the binned sample features; a first elimination module, used to eliminate sample features in the second risk prediction model whose coefficients are different in positive or negative from the coefficients of most sample features; a second elimination module, used to eliminate sample features that are not related to risk prediction through hypothesis testing; a second binning module, used to re-bin the retained sample features using the adjusted chi-square binning method to ensure that the binned features corresponding to the same feature dimension remain monotonic with the ratio of negative samples; a calculation module, used to calculate the weight of evidence based on the binned sample features; and a third training module, used to train the first risk prediction model using the weight of evidence as training data.

[0027] Optionally, the first risk prediction model is a scoring card model.

[0028] Optionally, the second screening rule includes at least one of the following: eliminating sample features whose null value rate is greater than a second threshold; eliminating sample features whose variance is less than a third threshold; and eliminating sample features whose information value is less than a fourth threshold.

[0029] Optionally, the device also includes: a sixth determination module, used to determine the conversion ratio of each overdue stage in multiple overdue stages into the next overdue stage based on the account overdue behavior data of at least part of the first samples in the full sample, and take the overdue stage whose conversion ratio exceeds a sixth threshold as the target overdue stage; a seventh determination module, used to determine the performance period corresponding to the target overdue stage based on the loan data; and an eighth determination module, used to determine the sample label of each first sample in the full sample based on the target overdue stage and the performance period.

[0030] Optionally, the device also includes: a second acquisition module, used to obtain account information of the account corresponding to the sample in multiple dimensions within multiple periods; a feature extraction module, used to extract features of the account information in each dimension within each period to obtain sample features of the sample.

[0031] Optionally, the multiple periods include the last 3 months, the last 6 months and the last 24 months; and / or the multiple dimensions include: account repayment behavior, account transaction behavior, account overdue behavior, customer attributes and customer assets.

[0032] According to a third aspect of the present disclosure, a computing device is provided, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes the method described in the first aspect above.

[0033] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising an executable code, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described in the first aspect above.

[0034] According to a fifth aspect of the present disclosure, a non-temporary machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the first aspect above.

[0035] Therefore, the present invention determines the accuracy of at least some of the retained test accounts corresponding to each first screening rule, and the accuracy is used to characterize the accuracy of the first risk prediction model in predicting the risk of at least some of the retained test accounts. Based on the accuracy, the first screening rule is selected from multiple first screening rules. The selected first screening rule can be used as the account's early warning access strategy to select a group of target accounts with prediction necessity from the full amount of accounts for the model to perform risk prediction. This can provide support for the model to meet actual business needs in terms of both early warning quantity and accuracy when it goes online. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components in the exemplary embodiments of the present disclosure.

[0037] Figure 1 A schematic flow chart of a risk prediction method according to an embodiment of the present disclosure is shown.

[0038] Figure 2 A data table showing the accuracy of different rules when meeting the warning quantity.

[0039] Figure 3 The overall flow chart of the method steps that may be included in the present disclosure is shown.

[0040] Figure 4A An account overdue migration diagram is shown.

[0041] Figure 4B A Vintage graph for account M3+ Past Due is shown.

[0042] Figure 5 The data table obtained by calculating the sample retention rate and bad account rate under each rule is shown.

[0043] Figure 6 A feature cross-tabulation of a credit delinquency prediction scenario modeling solution is shown.

[0044] Figure 7 A KS trend chart of the first risk prediction model obtained through training in the present disclosure is shown.

[0045] Figure 8 A schematic structural diagram of a risk prediction device according to an embodiment of the present disclosure is shown.

[0046] Fig. 9 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0047] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0048] At present, the B card (behavioral scoring card) model is commonly used in the industry to predict customer overdue risk. By giving a score threshold, when the score given by the model is greater than the score threshold, it is considered that there is no overdue risk, otherwise it is considered that there is risk. For risky customers, corresponding strategies are adopted to monitor them or restrict their loans. The B card model is simple and practical, applicable to supervision and highly interpretable, and is deeply loved by credit personnel. The present disclosure can also provide a modeling scheme for credit overdue prediction based on the B card model, making the overdue prediction more stable and efficient.

[0049] Due to regulatory requirements and the need to maintain the bank's brand, each time the model generates an alert for a customer, an experienced risk business person needs to check whether the customer has a real risk and give a corresponding risk dimension explanation. Limited by the timeliness of the business and the workload of the business person, the number of alert accounts (i.e., the alert volume) generated by the model each time can be a finite value. The number of alert accounts can be determined based on the number of accounts that the business person can check within the business timeliness period. That is, the number of alert accounts can represent the number of accounts that can be checked within the timeliness period. As an example, the calculation formula for the number of alert accounts can be set as: number of alert accounts = effective time * number of business person checks per unit time. Among them, the effective time is the effective time stipulated by the business, i.e., the business timeliness period. For example, after a field visit to the business department, it is learned that after the suspicious account is issued, the issued account needs to be approved within 5 working days and then transferred for disposal; the current daily approval limit is between 160 and 200 accounts; therefore, the number of alert accounts is 1,000, that is, the upper limit of the number of suspicious accounts generated by the model each time is 1,000.

[0050] In order to ensure that the model can meet actual business needs in terms of warning volume and accuracy when it goes online, it is necessary to limit the warning volume and candidate warning customers. Therefore, it is necessary to set an account warning access strategy to select a group of candidate accounts that are necessary for prediction (i.e., the target accounts mentioned below) from all accounts for the model to perform risk prediction.

[0051] Figure 1 A schematic flow chart of a risk prediction method according to an embodiment of the present disclosure is shown.

[0052] See also Figure 1In step S110, the plurality of first screening rules are respectively applied to the plurality of test accounts to obtain the retained test accounts corresponding to the respective first screening rules.

[0053] The retained test accounts refer to the test accounts retained after the test accounts are screened using the first screening rule. The test accounts refer to accounts with known labels. The labels of the test accounts are used to indicate whether the test accounts are risky accounts, that is, whether the customers are bad customers. The samples with known labels used in model training can be used as test accounts. That is, multiple test accounts can refer to all samples with known labels.

[0054] The first screening rule may refer to a screening rule composed of one or more account-related variables and their corresponding thresholds. Exemplarily, the account-related variables may include, but are not limited to, the number of transactions, transaction amount, number of overdue payments, maximum number of overdue periods, account age and other statistical variables of the account in the last N (N≥1) months. One or more thresholds may be set for each variable. These variables may be selected, and the selected variables and their corresponding thresholds may be combined (such as Cartesian product) to obtain multiple first screening rules.

[0055] Exemplarily, multiple first screening rules may be obtained through the following steps.

[0056] Step 1) For each first sample in the full set of samples, obtain the values ​​of multiple variables.

[0057] The multiple variables may include, but are not limited to, the number of transactions, transaction amount, number of overdue payments, maximum number of overdue periods, account age, and other account-related variables in the last N (N≥1) months. The values ​​of the variables can be obtained by statistics. The full sample refers to a set of samples whose sample labels are known, such as a training sample set and / or a verification sample set. Each sample in the full sample corresponds to an account. The label of the sample is used to indicate whether the account is a bad account.

[0058] Step 2) construct the values ​​of multiple variables of each first sample and the corresponding sample labels into a second sample.

[0059] For each first sample, the values ​​of multiple variables of the first sample can be used as sample features, and the sample label of the first sample can be used as the sample tag to obtain the second sample.

[0060] Step 3) Use the second sample to train the decision tree model.

[0061] Decision Tree is a non-parametric supervised learning method that can summarize decision rules from a series of data with features and labels, and present these rules in a tree diagram structure to solve classification and regression problems. Each internal node in the decision tree represents a judgment on an attribute, each branch represents the output of a judgment result, and finally each leaf node represents a classification result. The training process of the decision tree model is a mature technology in this field, and this disclosure will not go into details. Exemplarily, a decision tree model with a predetermined number of layers (such as 3-5 layers) can be trained.

[0062] Step 4) The second largest number of variables ranked by the number of occurrences in the decision tree model are selected as candidate rules.

[0063] After the decision tree model is trained, the branch paths of the decision tree can be observed, and the second number of variables with the largest number of occurrences can be selected as candidate rules. The specific value of the second number can be flexibly set, such as 3 to 5.

[0064] Step 5) Determine the rule threshold according to the branch threshold of the variable corresponding to the candidate rule in the decision tree model.

[0065] The branch threshold of the variable corresponding to the candidate rule in the decision tree model can be directly determined as the rule threshold. The rule threshold can also be formed by rounding the threshold of the decision tree branch.

[0066] Step 6) Determine a plurality of first screening rules based on the candidate rules and the rule thresholds.

[0067] The selected candidate rules (ie, variables) and their corresponding rule thresholds may be freely combined (ie, a Cartesian product is performed) to form a plurality of rules, ie, a plurality of first screening rules.

[0068] Exemplarily, the variables corresponding to all candidate rules may be combined into a rule chain, and a Cartesian product may be performed on each variable in the rule chain and the corresponding rule threshold to obtain a plurality of first screening rules.

[0069] In step S120, the accuracy of at least part of the retained test accounts corresponding to each first screening rule is determined, and the accuracy is used to characterize the accuracy of the first risk prediction model in predicting the risk of at least part of the retained test accounts.

[0070] At least some of the retained test accounts may refer to some or all of the retained test accounts. For example, at least some of the retained test accounts may refer to the retained test accounts that are bad accounts in the retained test account set.

[0071] Exemplarily, at least part of the retained test accounts may be the first number of retained test accounts ranked high in risk (i.e., the score or probability output by the model) obtained by using the first risk prediction model to predict the retained test accounts, and the first number is used to represent the number of accounts that can be checked by (business personnel) within the business validity period, i.e., the number of warning accounts. Thus, the accuracy rate can represent the hit rate of the first risk prediction model for bad accounts in the number of warning accounts with the highest degree of suspicion.

[0072] In step S130 , a first screening rule is selected from a plurality of first screening rules based at least on the accuracy rate.

[0073] The first screening rule with the highest accuracy rate can be selected from multiple first screening rules. In addition, the first screening rule can also be selected by referring to other indicators while referring to the accuracy rate. Exemplarily, the first screening rule can also be selected from multiple first screening rules based on the accuracy rate and the bad account rate. The bad account rate refers to the proportion of bad accounts in the retained test accounts obtained by screening the test accounts based on the first screening rules. For example, the first screening rule with the highest accuracy rate and the highest bad account rate can be selected from multiple first screening rules.

[0074] In step S140, the first risk prediction model is used to perform risk prediction on the target account, where the target account is an account obtained by screening all accounts using the selected first screening rule.

[0075] The risk prediction may refer to the account overdue risk prediction, that is, predicting the probability of an account being overdue. The first risk prediction model may refer to the B card model. The full account may refer to the full customer maintained by the business party (such as a bank).

[0076] After executing step S140, the first number of target accounts with the highest risk (such as the score or probability output by the model) can be used as warning accounts, and the warning accounts can be provided to business personnel for verification, so that the actual business needs can be met in terms of warning quantity and accuracy.

[0077] So far combined Figure 1 A detailed description is given on how to set up early warning access strategies in model application so that the model can better meet actual business needs. Figure 1The feasibility and practicality of the method shown. After field visits to the business departments, we learned that after the suspicious accounts are issued, they need to be approved within 5 working days and then transferred for disposal. The current daily approval limit is between 160 and 200 accounts. Therefore, the upper limit of suspicious accounts generated by the model each time is 1,000. If the number exceeds 1,000 accounts, it cannot be approved within 5 working days, which is invalid production capacity. This example combines the rule table generated during the sample selection process to further count which rule has the highest bad account hit rate among the top 1,000 accounts with the highest degree of suspicion after rule filtering, and obtains Figure 2 The results shown. Figure 2 The results shown in the figure show that this example selects the rule chain with the highest accuracy as the prediction access rule. Specifically, it is "no overdue, the number of account withdrawals is greater than 6, the number of transactions in the current month is greater than 5, the number of transactions in the last 3 months is greater than 5, the total transaction amount in the last 3 months is greater than 0, and the total transaction amount in the last 6 months is greater than 0". This rule is the same as the sample selection rule described in the sample selection section below, which is a relatively good result. If the prediction access rule and the sample selection rule can be kept consistent, it can be considered that the prediction data and the training data have the same distribution trend to a certain extent.

[0078] Figure 3 The overall flow diagram of the method steps that may be included in the present disclosure is shown. Figure 3 As shown, the present disclosure includes six aspects in practice, namely, sample definition, sample selection, feature system design and development, model training and model application. Figure 1 This section describes the model application. The following sections provide examples of sample definition, sample selection, feature system design and development, and model training.

[0079] Sample Definition

[0080] The present disclosure can be used in the overdue prediction scenario of personal credit loans in the banking industry.

[0081] Credit default is a dynamic process that changes over time, reflecting the default situation over a period of time. Therefore, it is necessary to clarify in what time period and what degree of default can be judged as "bad".

[0082] In order to determine what level of overdue payment needs to be monitored, it is necessary to draw a migration diagram for each overdue stage, determine the conversion ratio of different overdue stages, and find an overdue stage that meets actual business needs as the criterion for judging "bad".

[0083] In general, the judgment criteria need to meet the following requirements: minimize the cost of bad debts and minimize the disturbance to customers. According to industry rules, accounts overdue for M6 periods or more are called bad debts and need to be accrued. Therefore, in the most extreme case, the judgment standard can be set as M6 period overdue. Determining what degree of overdue needs to be monitored determines the standard for judging the quality of the sample. In the following text, MX period overdue is used to represent the judgment criteria.

[0084] In order to determine the time it takes for an account to go from normal repayment to "bad", a Vintage chart needs to be drawn to determine how long it will take for a credit account to enter the bad stage. Generally, starting from the date the account is opened, observe the time it takes for the account to reach the MX period within 12 months. If there are many existing customers, the observation strategy can be adjusted. Select an observation time point and find out the accounts that are currently in normal repayment status based on the current time point. Then observe the time it takes for these customers' accounts to reach the MX period within 12 months. 12 months is an industry experience value and needs to be adjusted according to actual conditions. The observation period is mainly determined by the cycle of the credit product. Determining the time it takes for an account to go from normal repayment to "bad" determines the time range for judging the quality of the sample, which is referred to as the performance period in the following text.

[0085] Once the "bad" standard and performance period are determined, the sample can be defined. Generally, accounts that are overdue during the MX period during the performance period are considered bad accounts, and accounts that are not overdue during the MX period during the performance period are considered good accounts.

[0086] Exemplarily, the present disclosure can first determine the conversion ratio of each overdue stage in multiple overdue stages into the next overdue stage based on the account overdue behavior data of at least part of the first samples in the full amount of samples, and take the overdue stage whose conversion ratio exceeds the sixth threshold as the target overdue stage; then the performance period corresponding to the target overdue stage can be determined based on the loan data; finally, the sample label of each first sample in the full amount of samples can be determined based on the target overdue stage and the performance period. Specifically, if the first sample does not have an overdue behavior that belongs to or exceeds the target overdue stage during the performance period, the sample label of the first sample can indicate that the account corresponding to the first sample is a good account, and the first sample belongs to a positive sample; conversely, if the first sample has an overdue behavior that belongs to or exceeds the target overdue stage during the performance period, the sample label of the first sample can indicate that the account corresponding to the first sample is a bad account, and the first sample belongs to a negative sample.

[0087] Therefore, the risk prediction model in the present disclosure (i.e., the first risk prediction model mentioned above) can predict the probability or score of an account experiencing overdue behavior that falls within or exceeds the target overdue stage during the performance period.

[0088] In a specific embodiment, the present disclosure selects accounts with credit card transactions between January 1, 2021 and February 1, 2023 as the full sample. The account opening year of all sample accounts is counted, and it is found that the minimum account opening year is in 2007 and the maximum is in 2022. In order to make the model highly timely, this example sets the initial time to 2019 when drawing the migration diagram, that is, accounts with an account opening time less than 2019 will have their account start time corrected to 2019, and accounts that have been overdue in January 2019 will be kicked out. Based on this, the model is drawn Figure 4A The account overdue migration diagram is shown. From the migration rate calculation results, the average migration rate from 1 period overdue to 2 periods overdue is 31.73%, and a small number of accounts that are 1 period overdue will enter 2 periods overdue. The average migration rate from 2 periods overdue to 3 periods overdue is 70.6%, and basically most accounts that are 2 periods overdue will enter 3 periods overdue. The upward migration rate of accounts after 3 periods or more overdue is as high as 85%, which basically means that the account will not get better after the M3 period. Therefore, the M3 period overdue is determined as the standard for judging the quality of the account. Based on this, the following is drawn: Figure 4B The account M3+ overdue Vintage chart is shown. From the Vintage chart, we can find that the account basically reaches stability within 12 months, so 12 months is determined as the performance period of the account. Therefore, this example determines the definition of the sample as follows: accounts with 3 or more overdue periods within the performance period of 12 months are judged as bad accounts; accounts without 3 overdue periods within the performance period of 12 months are judged as good accounts.

[0089] Sample selection

[0090] In the banking industry, risk management departments generally perform routine maintenance and monitoring of credit customers. In the pre-loan stage, customers applying for credit loans will undergo a personal qualification review; in the mid-loan stage, customers who have been granted credit will be monitored on a daily basis, paying attention to their repayment status for each period; in the post-loan stage, overdue customers will be subject to collection management, added to the list of dishonest persons or blacklists, and other post-loan management measures. After long-term business dealings, a large amount of repayment data has been accumulated within the bank. Based on the repayment data, high-quality customers and overdue customers can be accurately identified. By identifying the good and bad customer groups, combined with the sample selection method required in this disclosure, the credit overdue prediction modeling samples required by this disclosure can be accurately screened out.

[0091] According to the sample definition mentioned above, accounts can be labeled. A label of 1 indicates an overdue sample, i.e. a bad customer; a label of 0 indicates a normal sample, i.e. a good customer. The labeled samples generated in this step can be called full samples.

[0092] In order to make the model distinguish between good and bad samples, it is necessary to screen out target samples with distinguishing ability from the full sample, so that the model can learn the pattern of distinguishing good and bad accounts based on the target sample. Generally speaking, the proportion of overdue credit customers in the total credit customers is very low, so the ratio of good and bad samples reflected in the full sample is very different. If the full sample is not further screened and filtered, then the bad samples will be ignored due to their low proportion, which will lead to a high probability that the model will only learn the pattern of good samples and ignore the boundary between good and bad.

[0093] Based on this, the present disclosure proposes that multiple first screening rules can be applied to the full amount of samples respectively to obtain the negative sample ratio and sample retention rate corresponding to each first screening rule. Based on the negative sample ratio and sample retention rate, the first screening rule is selected; the full amount of samples are screened based on the selected first screening rule; the first sample obtained by screening is randomly sampled to obtain a training sample. Using the selected first screening rule, more negative samples can be screened out from the full amount of samples, so that the first risk prediction model that can distinguish between good and bad samples can be trained using the training sample.

[0094] For example, for the full sample, the most recent transaction statistics of each account can be counted. Set the time window period to the last N months. Specifically count the number of transactions, transaction amount, number of overdue payments, maximum number of overdue periods, and account age of the account in the last N months. By setting multiple time windows N, the above statistics under multiple time windows are counted. The above-stated variables and sample labels are merged and input into the decision tree model. Train a 3-5 layer decision tree and observe the branch path of the decision tree. Select the top 3-5 variables with the most occurrences as candidate rules. Then, perform rounding operations according to the thresholds of the decision tree branches to form new rule thresholds. Next, perform Cartesian product of the selected variables and their corresponding thresholds to form several rules. Apply each rule to the full sample and calculate the bad account ratio and sample retention rate of the sample under each rule. Sort from high to low according to the bad account ratio and sample retention rate, and select one of the rules as the filtering condition for obtaining the target sample. Finally, randomly sample the target sample to ensure that the ratio of good and bad samples is not higher than 50:1, which is called a training sample.

[0095] In a specific embodiment, the present disclosure counts eight basic statistics, including the number of transactions in the current month, the number of transactions in the last three months, the number of transactions in the last six months, the total transaction amount in the current month, the total transaction amount in the last three months, the total transaction amount in the last six months, whether overdue payments have occurred, and the number of outgoing payments. A three-layer decision tree is used to train the entire sample. The six variables with the most occurrences are selected as candidate rules. Then, a rounding operation is performed according to the threshold of the decision tree branch to form a new rule threshold. The field rules are logically ANDed to obtain a rule chain. After measuring the sample retention rate and bad account rate under each rule, the following is obtained: Figure 5 Based on the data sheet shown. Figure 5 In the data table shown, this example selects the rule of "no overdue, number of billings greater than 6, number of transactions in the current month greater than 5, number of transactions in the last 3 months greater than 5, total transaction amount in the last 3 months greater than 0 and total transaction amount in the last 6 months greater than 0" as the filtering rule for obtaining the target sample. Finally, random sampling is performed on the target sample so that the ratio of good and bad samples in the training sample is approximately equal to 50:1.

[0096] Feature system design and development

[0097] When designing features of samples (including training samples, validation samples, and prediction samples), account information of the samples (corresponding accounts) in multiple dimensions in multiple periods can be obtained, and then feature extraction is performed on the account information in each dimension in each period to obtain sample features of the samples.

[0098] Exemplarily, the multiple periods may include but are not limited to the last 3 months, the last 6 months and the last 24 months; and / or the multiple dimensions may include but are not limited to: account repayment behavior, account transaction behavior, account overdue behavior, customer attributes and customer assets.

[0099] Therefore, the feature system dimensions cover five aspects: repayment, transaction, overdue, attributes and assets, taking into account the three key aspects of the account's cash holdings, cash flow and repayment willingness; and the feature calculation time period T spans 3 months, 6 months and 24 months, taking into account the short-term, medium-term and long-term time scales.

[0100] Figure 6 The cross-tabulation of features of the credit delinquency prediction scenario modeling scheme is shown. Figure 6 The present disclosure can design a feature system in five dimensions: customer attributes, customer assets, account repayment behavior, account transaction behavior, and account overdue behavior. In addition, the calculation time period T of the set feature can be equal to 3 months, 6 months, and 24 months. By cross-developing features for the above three time periods and five dimensions, a large number of features (such as 78) can be constructed.

[0101] Model Training

[0102] The first risk prediction model in the present disclosure may be a behavior scorecard model, also known as a B-card model.

[0103] Exemplarily, the first risk prediction model may be trained by the following steps. Optionally, the first risk prediction model may also be trained by combining some of the following steps.

[0104] Step 1) can screen the sample features of the training samples based on the second screening rule.

[0105] The training samples may be samples obtained based on the sample definition and sample selection mentioned above.

[0106] The sample features may be features designed and developed based on the feature system mentioned above.

[0107] The second screening rule is used to screen sample features. The second screening rule may include but is not limited to at least one of the following: eliminating sample features with a null value rate greater than a second threshold (such as 75%); eliminating sample features with a variance less than a third threshold (such as 1); eliminating sample features with an information value (IV) less than a fourth threshold (such as 0.05).

[0108] Step 2) The chi-square binning method can be used to bin the filtered sample features.

[0109] Chi-square binning is a data discretization technique that can divide continuous numerical variables (i.e., sample features in this disclosure) into several regions and assign a discretized value to each region. Chi-square binning can be used to convert the original continuous sample features (such as age) into multiple discrete sample features, and can also merge multi-state discrete features into fewer-state discrete features for better modeling and analysis.

[0110] The principle of chi-square binning can be based on the following two assumptions: there is no significant difference between adjacent intervals; the observations in the same interval conform to the same probability distribution. Based on the above two assumptions, the chi-square test can be used to determine which intervals can be merged.

[0111] Step 3) Train a second risk prediction model based on the binned sample features.

[0112] The second risk prediction model may also be a scorecard model, which can be used to predict the individual's credit default probability or risk score. The scorecard model may be constructed using methods such as, but not limited to, logistic regression, decision tree, neural network, etc.

[0113] Step 4) Eliminate sample features whose coefficients in the second risk prediction model are different from the coefficients of most sample features in terms of sign. Depending on the calculation logic in the second risk prediction model (i.e., the scoring card model), the coefficients can be negative or positive, but all feature coefficients must be in the same direction.

[0114] Step 5) Eliminate sample characteristics that are not relevant to risk prediction through hypothesis testing.

[0115] The p-value of the binned features under hypothesis testing can be counted, and features with p-values ​​greater than 0.05 can be eliminated. In variable correlation analysis, hypothesis testing can be performed on the correlation coefficient. Null hypothesis H0: There is no relationship between the independent variable (i.e., sample feature) and the dependent variable (i.e., risk prediction); alternative hypothesis H1: There is a correlation between the independent variable and the dependent variable. If the p-value is greater than 0.05, it indicates that the null hypothesis is accepted, otherwise it is rejected. Therefore, sample features with p-values ​​greater than 0.05 can be eliminated.

[0116] Step 6) Re-bin the retained sample features using the adjusted chi-square binning method to ensure that the binned features corresponding to the same feature dimension remain monotonic with the ratio of negative samples.

[0117] After eliminating all features through the above steps, the remaining features can be adjusted after chi-square binning to ensure that under a single feature, the black sample rate (i.e., the proportion of negative samples) and the binning remain monotonic.

[0118] Step 7) Calculate the weight of evidence (WOE) based on the sample characteristics after binning.

[0119] Step 8) Using the weight of evidence as training data, train the first risk prediction model.

[0120] The binned feature values ​​cannot be directly input into the model, and the binned encoding is usually performed in the form of WOE. That is, the WOE value can be used instead of the original feature value as the training data source of the scorecard model to train the final first risk prediction model. Figure 7 The KS trend chart of the first risk prediction model obtained by training in the present disclosure is shown. KS (Kolmogorov-Smirnov) is used to evaluate the risk differentiation ability of the model. The indicator measures the difference between the cumulative distribution of good and bad samples. Figure 7 As shown, the first risk prediction model after training can well distinguish good and bad accounts when predicting risks for accounts in different periods.

[0121] The risk prediction method disclosed herein may also be implemented as a risk prediction device. Figure 8A schematic diagram of the structure of a risk prediction device according to an embodiment of the present disclosure is shown. The functional units of the risk prediction device can be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present disclosure. It can be understood by those skilled in the art that the functional units described below in conjunction with the accompanying drawings can be combined or divided into sub-units to implement the principles of the above invention. Therefore, the description herein can support any possible combination, or division, or further limitation of the functional units described herein. The following is a brief description of the functional units that the risk prediction device can have and the operations that each functional unit can perform. For the details involved, please refer to the relevant description above, which will not be repeated here.

[0122] See also Figure 8 The risk prediction device 800 may include a first screening module 810 , a first determining module 820 , a selecting module 830 and a predicting module 840 .

[0123] The first screening module 810 is used to apply multiple first screening rules to multiple test accounts respectively to obtain retained test accounts corresponding to each first screening rule. The first determination module 820 is used to determine the accuracy of at least some of the retained test accounts corresponding to each first screening rule, and the accuracy is used to characterize the accuracy of the first risk prediction model in predicting risks for at least some of the retained test accounts. The selection module 830 is used to select a first screening rule from multiple first screening rules based at least on the accuracy. The prediction module 840 is used to use the first risk prediction model to predict the risk of a target account, and the target account is an account obtained by screening all accounts using the selected first screening rule.

[0124] At least some of the retained test accounts may be a first number of retained test accounts with the highest risk rankings obtained by performing risk prediction on the retained test accounts using a first risk prediction model, and the first number is used to represent the number of accounts that can be verified within the business validity period.

[0125] The risk prediction device 800 may further include a second determination module and a providing module. The second determination module is used to select a first number of target accounts with high risk rankings as early warning accounts. The providing module is used to provide the early warning accounts to business personnel for verification.

[0126] The risk prediction device 800 may also include a first acquisition module, a construction module, a first training module, a third determination module, a fourth determination module and a fifth determination module. The first acquisition module is used to obtain the values ​​of multiple variables for each first sample in the full sample; the construction module is used to construct the values ​​of multiple variables of each first sample and the corresponding sample labels into a second sample; the first training module is used to train the decision tree model using the second sample; the third determination module is used to use the second number of variables with the highest number of occurrences in the decision tree model as candidate rules; the fourth determination module is used to determine the rule threshold according to the branch threshold of the variable corresponding to the candidate rule in the decision tree model; the fifth determination module is used to determine multiple first screening rules based on the candidate rules and the rule threshold. The fifth determination module can merge the variables corresponding to all candidate rules into a rule chain, and perform Cartesian product on each variable in the rule chain and the corresponding rule threshold to obtain multiple first screening rules.

[0127] The risk prediction device 800 may further include a training sample selection module. The training sample selection module may apply multiple first screening rules to the full amount of samples respectively to obtain the negative sample ratio and sample retention rate corresponding to each first screening rule; the training sample selection module may select the first screening rule based on the negative sample ratio and the sample retention rate; the training sample selection module may screen the full amount of samples based on the selected first screening rule; the training sample selection module may randomly sample the screened first samples to obtain training samples.

[0128] The risk prediction device 800 may also include a second screening module, a first binning module, a second training module, a first elimination module, a second elimination module, a second binning module, a calculation module and a third training module. The second screening module is used to screen the sample features of the training sample based on the second screening rule; the first binning module is used to bin the screened sample features using the chi-square binning method; the second training module is used to train the second risk prediction model based on the binned sample features; the first elimination module is used to eliminate the sample features whose coefficients in the second risk prediction model are different from the coefficients of most sample features in positive or negative; the second elimination module is used to eliminate the sample features that are not related to risk prediction by hypothesis testing; the second binning module is used to re-bin the retained sample features using the adjusted chi-square binning method to ensure that the binning features corresponding to the same feature dimension and the negative sample ratio remain monotonic; the calculation module is used to calculate the weight of evidence based on the binned sample features; the third training module is used to train the first risk prediction model using the weight of evidence as training data.

[0129] The risk prediction device 800 may also include a sixth determination module, a seventh determination module, and an eighth determination module. The sixth determination module is used to determine the conversion ratio of each overdue stage in multiple overdue stages to the next overdue stage based on the account overdue behavior data of at least part of the first samples in the full sample, and take the overdue stage whose conversion ratio exceeds the sixth threshold as the target overdue stage. The seventh determination module is used to determine the performance period corresponding to the target overdue stage based on the loan data. The eighth determination module is used to determine the sample label of each first sample in the full sample based on the target overdue stage and the performance period.

[0130] The risk prediction device 800 may also include a second acquisition module and a feature extraction module. The second acquisition module is used to obtain account information of the account corresponding to the sample in multiple dimensions in multiple periods; the feature extraction module is used to extract features of the account information in each dimension in each period to obtain sample features of the sample.

[0131] Fig. 9 A schematic diagram of the structure of a computing device that can be used to implement the above-mentioned risk prediction method according to an embodiment of the present disclosure is shown.

[0132] See also Fig. 9 , the computing device 900 includes a memory 910 and a processor 920 .

[0133] The processor 920 may be a multi-core processor or may include multiple processors. In some embodiments, the processor 920 may include a general-purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, the processor 920 may be implemented using a customized circuit, such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0134] The memory 910 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 920 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 910 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 910 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0135] The memory 910 stores executable codes, and when the executable codes are processed by the processor 920 , the processor 920 can execute the risk prediction method mentioned above.

[0136] The risk prediction method, device and apparatus according to the present disclosure have been described above in detail with reference to the accompanying drawings.

[0137] In addition, the method according to the present disclosure may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing the above steps defined in the above method of the present disclosure.

[0138] Alternatively, the present disclosure may also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or computing device, server, etc.), the processor executes the various steps of the above-mentioned method according to the present disclosure.

[0139] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or a combination of both.

[0140] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system and method according to multiple embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0141] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A risk prediction method, characterized in that: include: Applying the plurality of first screening rules to the plurality of test accounts respectively to obtain the retained test accounts corresponding to the respective first screening rules; Determine the accuracy of at least part of the retained test accounts corresponding to each of the first screening rules, where the accuracy is used to characterize the accuracy of the risk prediction performed by the first risk prediction model on the at least part of the retained test accounts; selecting a first screening rule from the plurality of first screening rules based at least on the accuracy rate; The first risk prediction model is used to perform risk prediction on a target account, where the target account is an account obtained by screening all accounts using the selected first screening rule.

2. The method according to claim 1, characterized in that At least part of the retained test accounts are a first number of retained test accounts with the highest risk rankings obtained by using the first risk prediction model to perform risk prediction on the retained test accounts, and the first number is used to represent the number of accounts that can be verified within the business validity period.

3. The method according to claim 1, characterized in that Also includes: For each first sample in the full set of samples, obtaining values ​​of multiple variables; Constructing the values ​​of the multiple variables and the corresponding sample labels of each of the first samples into a second sample; Using the second sample to train a decision tree model; taking the second number of variables with the highest number of occurrences in the decision tree model as candidate rules; Determine a rule threshold according to a branch threshold of a variable corresponding to the candidate rule in the decision tree model; The plurality of first screening rules are determined based on the candidate rules and the rule threshold.

4. The method according to claim 3, characterized in that Determining the plurality of first screening rules based on the candidate rules and the rule thresholds includes: Merge the variables corresponding to all candidate rules into a rule chain; Cartesian products are performed on each variable in the rule chain and the corresponding rule threshold to obtain the multiple first screening rules.

5. The method according to claim 3, characterized in that: Also includes: Apply the multiple first screening rules to the full amount of samples respectively to obtain the negative sample ratio and sample retention rate corresponding to each of the first screening rules; Selecting a first screening rule based on the negative sample ratio and the sample retention rate; Screening the entire sample based on the selected first screening rule; The first sample obtained by screening is randomly sampled to obtain a training sample.

6. The method according to claim 1, characterized in that Also includes: Screening the sample features of the training samples based on the second screening rule; Use chi-square binning to bin the sample features after screening; Training a second risk prediction model based on the sample characteristics after binning; Eliminate sample features whose coefficients in the second risk prediction model are different in sign from the coefficients of most sample features; Eliminate sample characteristics that are irrelevant to risk prediction through hypothesis testing; The retained sample features are re-binned using the adjusted chi-square binning method to ensure that the binned features and negative sample ratios corresponding to the same feature dimension remain monotonic; Calculate the weight of evidence based on the sample characteristics after binning; The first risk prediction model is trained using the evidence weights as training data.

7. The method according to claim 1, characterized in that Also includes: Based on the account overdue behavior data of at least part of the first sample in the full sample, determining the conversion ratio of each overdue stage in the multiple overdue stages into the next overdue stage, and taking the overdue stage whose conversion ratio exceeds a sixth threshold as the target overdue stage; determining, based on the loan data, a performance period corresponding to the target delinquency stage; Based on the target overdue stage and the performance period, a sample label of each first sample in the full amount of samples is determined.

8. A risk prediction device, characterized in that: include: A first screening module, used to apply a plurality of first screening rules to a plurality of test accounts respectively, to obtain a retained test account corresponding to each of the first screening rules; A first determination module, used to determine the accuracy of at least part of the retained test accounts corresponding to each of the first screening rules, wherein the accuracy is used to characterize the accuracy of the risk prediction of the at least part of the retained test accounts by the first risk prediction model; A selection module, configured to select a first screening rule from the plurality of first screening rules based at least on the accuracy rate; A prediction module is used to use the first risk prediction model to predict the risk of a target account, where the target account is an account obtained by screening all accounts using the selected first screening rule.

9. A computing device comprising: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 7.

10. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 7.