A financial risk assessment method, device, storage medium and equipment
By extracting target variables from customer behavior information and constructing a financial risk assessment model, it solves the problem of strong subjectivity in financial risk assessment in the existing technology, improves the accuracy and objectivity of financial risk assessment, and realizes the prevention of improper financial management of customers. Comprehensive characterization of behavior and exploration of potential risks.
Patent Information
- Application Number
- CN202110552458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-05-20
AI Technical Summary
Due to the strong subjectivity of existing machine learning models in financial risk assessment, the accuracy of assessment results is low, making it difficult to effectively identify and measure customers' improper financial behaviors.
Extract the target variables from the behavioral information of the customers to be tested, build a financial risk assessment model based on the correlation between preset conditions and improper financial behavior, and calculate the contribution of the target variables and sorting characteristics of the customers to be tested through training and fusion of sub-models variables to improve the accuracy and objectivity of risk assessment.
By increasing the concentration of customer samples, identifying and measuring customers' financial risks from multiple angles, and improving the reliability and accuracy of financial risk assessment models, the accuracy of financial risk assessments is improved from a data perspective.
Smart Images

Figure CN113298373B
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data processing, and in particular to a financial risk assessment method, apparatus, storage medium and equipment. Background Art
[0002] With the development of big data and machine learning technology, more and more machine learning models are applied in financial risk control and marketing, especially supervised machine learning models. Using big data and machine learning technology, financial risk assessment can be performed on new and existing customers (i.e., assessing the probability of improper financial behavior of customers).
[0003] At present, when using machine learning models for financial risk assessment, most of them are combined with expert rules to assess whether the client has engaged in improper financial behavior (specifically, the behavior of legalizing illegally obtained property in this application). However, the use of expert rules to assess improper financial behavior is too subjective, resulting in low accuracy in the assessment results of financial risks. Summary of the invention
[0004] The present application provides a financial risk assessment method, apparatus, storage medium and device, the purpose of which is to improve the accuracy of financial risk assessment.
[0005] In order to achieve the above objectives, this application provides the following technical solutions:
[0006] A financial risk assessment method, comprising:
[0007] Extracting a target variable from the behavior information of the customer to be tested, and determining a characteristic value of the target variable; the target variable is a characteristic variable that meets a preset condition; the preset condition is that the characteristic variable is associated with improper financial behavior;
[0008] Inputting the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model; the financial risk assessment model is pre-trained based on the characteristic value of the target variable of the sample illegal customer and the characteristic value of the target variable of the sample legal customer as input and taking the financial risk as the training target; the output result includes the financial risk of the customer to be tested;
[0009] Determining the risk level and score of the customer to be tested based on the preset correspondence between the financial risk, score, and risk level;
[0010] Calculating the contribution of the target variable of the client to be tested to the financial risk;
[0011] Sorting the target variables of the customer to be tested in descending order of contribution to obtain a characteristic variable sequence;
[0012] The risk level, score, and characteristic variable sequence of the client to be tested are displayed externally.
[0013] Optionally, the step of pre-acquiring characteristic values of target variables of sample illegal customers and characteristic values of target variables of sample legal customers includes:
[0014] Obtain improper financial behaviors of each sample customer within the preset customer group;
[0015] For each of the sample customers, based on the preset correspondence between improper financial behaviors and scores, scoring is performed for each type of improper financial behaviors included in the sample customer, thereby obtaining scores for each type of improper financial behaviors included in the sample customer;
[0016] Accumulating and summing the scores of various improper financial behaviors of the sample customers to obtain characteristic scores of the sample customers;
[0017] Identify the sample customers whose characteristic scores are greater than a first preset threshold as illegal customers;
[0018] Identify the sample customers whose feature scores are not greater than the first preset threshold as legitimate customers;
[0019] Extracting various characteristic variables from the behavioral information of the sample customers;
[0020] Filter invalid data in each type of feature variables;
[0021] Performing data processing on each type of the characteristic variables to obtain characteristic values of each type of the characteristic variables, and performing data analysis on each type of the characteristic values to obtain data distribution of each type of the characteristic values;
[0022] From the various characteristic variables, characteristic variables that meet preset conditions are selected as target variables.
[0023] Optionally, the step of selecting a characteristic variable that meets a preset condition from each type of characteristic variable as a target variable includes:
[0024] For each type of the characteristic variable, the characteristic variable is regarded as a single variable;
[0025] Collect the single variables of each of the sample customers to construct a data set;
[0026] Dividing the data set into a training set and a test set;
[0027] Training a machine learning model using the training set;
[0028] The test set is used as the input of the trained machine learning model to obtain the output result of the machine learning model; the output result of the machine learning model includes the predicted probability of a single variable of each of the sample customers;
[0029] The sample customer with the largest value of the predicted probability is used as the target sample customer;
[0030] Using the target sample customers, construct a single variable set, and count the number p of single variables included in the single variable set;
[0031] Counting the number q of single variables belonging to illegal customers in the single variable set;
[0032] Calculate the ratio between the number q of the single variables belonging to the illegal customers and the number p of the single variables included in the single variable set to obtain the head precision rate of the single variable; the head precision rate is used to characterize the probability of the association between the characteristic variable and the improper financial behavior;
[0033] When the head accuracy is greater than a second preset threshold, the feature variable to which the single variable belongs is identified as a target variable.
[0034] Optionally, the step of selecting a characteristic variable that meets a preset condition from each type of characteristic variable as a target variable includes:
[0035] Pre-counting the total number m of types of the characteristic variables, the total number N of sample customers, and the proportion ρ of illegal customers included in the sample customers;
[0036] For each of the characteristic variables, the total number of sample customers with the same characteristic value N is counted m , and the total number N m The proportion of illegal customers included in m ;
[0037] When the total number m of the types of the feature variables is not greater than the preset third threshold, N m is greater than the preset first value, and m The characteristic variable greater than ρ is identified as the target variable; the preset first value is the product of the first adjustment coefficient α and the target ratio, and the target ratio is the ratio of the total number N of the sample customers to the total number m of the types of the characteristic variable;
[0038] When the total number m of the types of the feature variables is greater than the preset third threshold, m is greater than the preset second value, and mThe characteristic variable greater than ρ is identified as the target variable; the preset second value is the second adjustment coefficient β.
[0039] Optionally, the financial risk assessment model is pre-trained based on taking the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers as inputs and taking the financial risk as the training target, including:
[0040] Constructing corresponding sub-models for each type of target variable in advance; wherein the sub-models are used to predict the probability that a sample customer has improper financial behavior; the sample customers include sample illegal customers and sample legal customers;
[0041] The various sub-models are integrated to obtain a financial risk assessment model;
[0042] The characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance are used as inputs of the financial risk assessment model, and the financial risk is used as a training target to train the financial risk assessment model.
[0043] Optionally, the various sub-models are integrated to obtain a financial risk assessment model, including:
[0044] Divide each of the sample customers into multiple customer groups in advance according to a preset rule; the preset rule is: for multiple sample customers with the same target variable, divide the sample customers whose characteristic values of the target variable are empty and the sample customers whose characteristic values of the target variable are not empty into different customer groups;
[0045] For each of the customer groups, a corresponding sub-model is constructed for the target variable included in the customer group;
[0046] Using a limited domain search algorithm, adjusting the fusion coefficients of the sub-models included in each customer group, and obtaining evaluation results for each customer group;
[0047] By using a limited domain search algorithm, the fusion coefficient of the evaluation results of each customer group is adjusted to obtain a financial risk assessment model.
[0048] Optionally, calculating the contribution of the target variable of the customer to be tested to the financial risk includes:
[0049] Obtain n values within a neighborhood of characteristic values of the target variable of the customer to be tested;
[0050] Inputting the n numerical values into the financial risk assessment model in sequence to obtain n prediction results output by the financial risk assessment model; the prediction results are used to indicate the risk probabilities corresponding to the numerical values;
[0051] For each of the numerical values, calculate the difference between the risk probability corresponding to the numerical value and the financial risk of the customer to be tested, and use the difference as the weight of the numerical value;
[0052] The weights of the various numerical values are accumulated to obtain the contribution of the target variable to the financial risk.
[0053] A financial risk assessment device, comprising:
[0054] An extraction unit is used to extract a target variable from the behavior information of the customer to be tested, and determine a characteristic value of the target variable; the target variable is a characteristic variable that meets a preset condition; the preset condition is that the characteristic variable is associated with improper financial behavior;
[0055] An input unit, used for inputting the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model; the financial risk assessment model is pre-trained based on the characteristic value of the target variable of the sample illegal customer obtained in advance and the characteristic value of the target variable of the sample legal customer as input, with financial risk as the training target; the output result includes the financial risk of the customer to be tested;
[0056] A determination unit, configured to determine the risk level and score of the customer to be tested based on the preset correspondence between the financial risk, score, and risk level;
[0057] A calculation unit, used for calculating the contribution of the target variable of the client to be tested to the financial risk;
[0058] A sorting unit, used to sort the target variables included in the customer to be tested in descending order of contribution, to obtain a characteristic variable sequence;
[0059] A display unit is used to display the risk level, the score, and the characteristic variable sequence of the customer to be tested.
[0060] A computer-readable storage medium includes a stored program, wherein the program executes the financial risk assessment method.
[0061] A financial risk assessment device comprises: a processor, a memory and a bus; the processor and the memory are connected via the bus;
[0062] The memory is used to store programs, and the processor is used to run programs, wherein the financial risk assessment method is executed when the program is run.
[0063] The technical solution provided by the present application extracts the target variable from the behavior information of the customer to be tested and determines the characteristic value of the target variable. The target variable is a characteristic variable that meets the preset conditions, and the preset conditions are: the characteristic variable is associated with improper financial behavior. The characteristic value of the target variable of the customer to be tested is input into the financial risk assessment model to obtain the output result of the financial risk assessment model. The financial risk assessment model is based on the characteristic value of the target variable of the sample illegal customer obtained in advance and the characteristic value of the target variable of the sample legal customer as input, and the financial risk is used as the training target. The pre-training is obtained, and the output result includes the financial risk of the customer to be tested. Based on the preset correspondence between financial risk, score, and risk level, the risk level and score of the customer to be tested are determined. The contribution of the target variable of the customer to be tested to the financial risk is calculated, and the target variables contained in the customer to be tested are sorted in order from high to low in contribution to obtain a sequence of characteristic variables. The risk level, score, and characteristic variable sequence of the customer to be tested are displayed to the outside. Compared with the prior art, extracting target variables from the behavior information of the customer to be tested and using the target variables as the input of the financial risk assessment model is more objective, and using the output of the financial risk assessment model as the risk assessment result of the customer to be tested is more scientific and reasonable. It can be seen that the scheme described in this application can identify and measure the improper financial behavior of customers from multiple angles based on the customer's behavior information, rather than being limited to the improper financial behavior of illegal customers, comprehensively characterize the financial risks of customers, and by increasing the concentration of customer samples, tapping potential illegal customers, and improving the reliability and accuracy of the financial risk assessment model, thereby improving the accuracy of financial risk assessment from a data perspective. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0065] Figure 1a A schematic diagram of a financial risk assessment method provided in an embodiment of the present application;
[0066] Figure 1b A schematic diagram of another financial risk assessment method provided in an embodiment of the present application;
[0067] Figure 2 A schematic diagram of a characteristic variable screening method provided in an embodiment of the present application;
[0068] Figure 3 A schematic diagram of another characteristic variable screening method provided in an embodiment of the present application;
[0069] Figure 4 A schematic diagram of a method for fusing various sub-models provided in an embodiment of the present application;
[0070] Figure 5 A schematic diagram of a method for calculating the contribution of a target variable to financial risk provided in an embodiment of the present application;
[0071] Figure 6 A schematic diagram of another financial risk assessment method provided in an embodiment of the present application;
[0072] Figure 7 A schematic diagram of the architecture of a financial risk assessment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0074] like Figure 1a FIG. 1 is a schematic diagram of a financial risk assessment method provided in an embodiment of the present application, comprising the following steps:
[0075] S101: Obtain improper financial behaviors of each sample customer within the preset customer base.
[0076] Among them, the improper financial behavior of each sample customer includes one or more types.
[0077] S102: For each sample customer, based on the preset correspondence between improper financial behavior and score, score each type of improper financial behavior included in the sample customer to obtain the score of each type of improper financial behavior included in the sample customer.
[0078] S103: Accumulate and sum the scores of various improper financial behaviors of the sample customers to obtain characteristic scores of the sample customers.
[0079] S104: Identify sample customers whose feature scores are not greater than a first preset threshold as legitimate customers.
[0080] S105: Identify sample customers whose feature scores are greater than a first preset threshold as illegal customers.
[0081] Among them, sample customers whose feature scores are greater than the first preset threshold are identified as illegal customers. Starting from improper financial behavior, the improper financial behavior of sample customers is identified and measured from multiple angles, not limited to the actual identification of illegal customers. It comprehensively portrays customer financial risks, explores potential illegal customers, increases sample concentration, and improves the accuracy of financial risk assessment from a data perspective.
[0082] S106: Extract various characteristic variables from the behavioral information of sample customers.
[0083] Among them, behavioral information includes but is not limited to: basic information, transaction information, association information, consistency information, and external risk information, etc. Various characteristic variables are extracted from the behavioral information of sample customers, that is, the behavioral information of sample customers is processed, specifically, the behavioral information of sample customers is subjected to business derivation and technical derivation, and the transaction type and transaction ratio under different time dimensions, as well as various characteristic variables such as characteristic kurtosis, skewness, and change rate obtained according to the statistical distribution of data, provide a data basis for in-depth mining of the financial risks of sample customers.
[0084] S107: Filter invalid data in various feature variables.
[0085] Among them, invalid data in various feature variables are filtered out, that is, data cleaning is performed on various feature variables. Specifically, the implementation methods of data cleaning include but are not limited to: eliminating feature variables with obvious errors and redundancy in various feature variables, and filling in missing values (the filling methods include direct assignment, historical data backfilling, and averaging, etc.).
[0086] S108: Performing data processing on various characteristic variables to obtain characteristic values of various characteristic variables, and performing data analysis on various characteristic values to obtain data distribution of various characteristic values.
[0087] The characteristic values include, but are not limited to: the mean, median, quantile of the characteristic variable, the statistical characteristics of illegal customers on the characteristic variable, and the statistical characteristics of legal customers on the characteristic variable.
[0088] S109: Select characteristic variables that meet preset conditions from various characteristic variables as target variables.
[0089] Among them, the preset condition is that there is a correlation between the characteristic variable and improper financial behavior.
[0090] Select the characteristic variables that meet the preset conditions from various characteristic variables as the target variables. For the specific implementation method, please refer to Figure 2 and Figure 3 The method shown.
[0091] It should be noted that in the field of financial risk assessment, there are many characteristic variables, but the degree of missingness is high, and more attention is paid to whether the highest-risk customers are accurate. Figure 2 and Figure 3 A variable screening method that is more suitable for the business characteristics and data characteristics of financial risk assessment is proposed, which greatly improves the reliability of identifying illegal customers.
[0092] S110: Construct corresponding sub-models for each target variable.
[0093] Among them, the sub-models can be divided according to the natural data missing of the sample customers. If the sample customers have relevant data (i.e., the target variable), they will participate in the construction of the sub-model, otherwise they will not participate. For example, if all sample customers have basic information (i.e., one of the target variables), then all sample customers will participate in the construction of the basic information sub-model (the sub-model corresponding to the target variable). If some sample customers have transaction behaviors during the observation period, then these sample customers will construct the transaction model, and sample customers without transaction behaviors will not participate in the construction of the transaction model.
[0094] It should be noted that the LightGBM algorithm can be used to train the sub-model, and the model effect and stability can be judged on the test set and the out-of-time validation set. The training process of the sub-model, as well as the effect and stability judgment of the sub-model are common knowledge familiar to technical personnel in this field and will not be repeated here.
[0095] In an embodiment of the present application, the sub-model is used to predict the probability that a sample customer has improper financial behavior, and the sample customers include sample illegal customers and sample legal customers.
[0096] S111: Various sub-models are integrated to obtain a financial risk assessment model.
[0097] Among them, various sub-models are integrated to obtain the financial risk assessment model. The specific implementation method can be found in Figure 4 Different sample customers have different information blocks (target variables). For example, some sample customers naturally have no transaction information (a specific expression of the target variable). A single sub-model cannot distinguish and process sample customers with different data (i.e., target variables), resulting in inaccurate financial risk assessment results for sample customers.
[0098] It should be noted that Figure 4 The method shown can make full use of each type of data of sample customers (i.e., target variables), and dynamically identify the fusion coefficient of the same sub-model in different scenarios, thereby improving the accuracy of overall financial risk assessment.
[0099] S112: Taking the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance as input, and taking the financial risk as the training target, the financial risk assessment model is trained.
[0100] Among them, the training process of the financial risk assessment model is common knowledge familiar to those skilled in the art and will not be elaborated here.
[0101] S113: Extracting a target variable from the behavior information of the customer to be tested, and determining a characteristic value of the target variable.
[0102] The specific implementation process of S113 is consistent with the implementation process shown in the above S106-S109, and will not be repeated here.
[0103] S114: Input the characteristic value of the target variable of the customer to be tested into the trained financial risk assessment model to obtain the output result of the financial risk assessment model.
[0104] Among them, the output results of the financial risk assessment model include the financial risks of the customers to be tested.
[0105] S115: Determine the risk level and score of the customer to be tested based on the preset correspondence between financial risk, score, and risk level.
[0106] Among them, the customer to be tested is scored according to the output results of the financial risk assessment model. The higher the score, the higher the risk probability of the customer to be tested. In addition, the score can be divided into five risk levels: high risk, medium-high risk, medium risk, medium-low risk and low risk according to business requirements, and the number of customers to be tested at different risk levels is spindle-shaped, that is, the number of customers to be tested at high risk, medium-high risk and low risk is relatively small, and the number of customers to be tested at medium risk and medium-low risk is large.
[0107] It should be noted that determining the risk level and score of the customer to be tested based on the preset correspondence between financial risk, score, and risk level can achieve quantitative and qualitative assessment of financial risk and improve the applicability and accuracy of the overall financial risk assessment.
[0108] S116: Calculate the contribution of the target variable of the customer to be tested to the financial risk.
[0109] The specific process of calculating the contribution of the target variable of the customer to be tested to the financial risk can be found in Figure 5 The method shown.
[0110] S117: Sort the target variables included in the customer to be tested in descending order of contribution to obtain a characteristic variable sequence.
[0111] Among them, the financial risk assessment model belongs to a model (such as a tree model) and has a certain degree of interpretability, but it cannot be explained for every customer. In actual business applications, business personnel need to explain the score for each customer. Therefore, based on the financial risk of the customer to be tested, the characteristic variable sequence of the customer to be tested is calculated to facilitate business personnel to conduct targeted verification or adopt control measures to explain the financial risk factors of the customer to be tested.
[0112] S118: Display the risk level, score, and characteristic variable sequence of the customer to be tested.
[0113] It should be noted that the process shown in S101-S108 above can be found in Figure 1b shown.
[0114] In summary, compared with the prior art, extracting target variables from the behavior information of the customer to be tested and using the target variables as the input of the financial risk assessment model is more objective, and using the output of the financial risk assessment model as the risk assessment result of the customer to be tested is more scientific and reasonable. It can be seen that the scheme described in this embodiment can identify and measure the improper financial behavior of customers from multiple angles based on the customer's behavior information, rather than being limited to the improper financial behavior of illegal customers, comprehensively characterize the financial risks of customers, and by increasing the concentration of customer samples, tapping potential illegal customers, and improving the reliability and accuracy of the financial risk assessment model, thereby improving the accuracy of financial risk assessment from a data perspective.
[0115] like Figure 2 FIG. 1 is a schematic diagram of a feature variable screening method provided in an embodiment of the present application, comprising the following steps:
[0116] S201: For each type of feature variable, consider the feature variable as a single variable.
[0117] S202: Collect the single variables of each sample customer and construct a data set.
[0118] The representation form of the data set is shown in formula (1).
[0119]
[0120] In formula (1), x i1 …x in All are univariate, i is the index of the feature variable, and n is the total number of sample customers.
[0121] S203: Divide the data set into a training set and a test set.
[0122] S204: Train the machine learning model using the training set.
[0123] The machine learning models include but are not limited to: LightGBM model, XGBoost model, and random forest model, etc. The specific implementation process of training the machine learning model is common knowledge familiar to those skilled in the art and will not be described here.
[0124] S205: Use the test set as the input of the machine learning model to obtain the output result of the machine learning model.
[0125] Among them, the output results of the machine learning model include the predicted probability of the single variable of each sample customer.
[0126] Specifically, assume that the number of single variables contained in the test set is m, and the expression form of the test set is as shown in formula (2).
[0127]
[0128] In formula (2), Prob i1 …Prob im These are all single variables for each sample customer in the test set.
[0129] S206: The sample customer with the largest predicted probability value is used as the target sample customer.
[0130] S207: Using the target sample customers, construct a single variable set, and count the number p of single variables included in the single variable set.
[0131] S208: Count the number q of single variables in the single variable set that belong to illegal customers.
[0132] S209: Calculate the ratio between the number q of single variables belonging to illegal customers and the number p of single variables included in the single variable set to obtain the head precision of the single variable.
[0133] Among them, the head precision of a single variable is used to characterize the precision of the characteristic variable to which the single variable belongs for illegal customers, that is, it is used to characterize the probability of a correlation between the characteristic variable and improper financial behavior. The so-called precision is common knowledge familiar to those skilled in the art and will not be elaborated here.
[0134] S210: When the head accuracy is greater than a second preset threshold, the feature variable to which the single variable belongs is identified as a target variable.
[0135] In summary, the method described in this embodiment can effectively screen out target variables from various feature variables.
[0136] like Figure 3 FIG. 1 is a schematic diagram of another feature variable screening method provided in an embodiment of the present application, comprising the following steps:
[0137] S301: Pre-count the total number m of types of feature variables, the total number N of sample customers, and the proportion ρ of illegal customers included in the sample customers.
[0138] S302: For each characteristic variable, count the total number N of sample customers with the same characteristic value m , and the total number N m The proportion of illegal customers included in m .
[0139] Among them, the eigenvalues are the same, that is, the data distribution of the eigenvalues is the same.
[0140] S303: If the total number m of the types of feature variables is not greater than the preset third threshold, m is greater than the preset first value, and m The feature variables with a value greater than ρ are identified as target variables.
[0141] The preset first value is the product of the first adjustment coefficient α and the target ratio, and the target ratio is the ratio of the total number of sample customers N to the total number of types of characteristic variables m. Specifically, the preset first value is
[0142] S304: When the total number m of the types of feature variables is greater than the preset third threshold, m is greater than the preset second value, and m The feature variables with a value greater than ρ are identified as target variables.
[0143] The preset second value is the second adjustment coefficient β.
[0144] Specifically, the target variable determination method shown in S303 and S304 above is specifically expressed as shown in formula (3).
[0145]
[0146] In formula (3), the variable number represents the total number of types of feature variables m, and the preset third threshold is set to 10.
[0147] In summary, compared with Figure 2 The method shown in the embodiment can ensure that the target variable obtained by screening has statistical significance from the perspective of data distribution, and ensure that the target variable obtained by screening has a correlation with improper financial behavior. It can be seen that the method described in the embodiment can also effectively screen out the target variable from various feature variables.
[0148] like Figure 4FIG. 1 is a schematic diagram of a method for fusing various sub-models provided in an embodiment of the present application, comprising the following steps:
[0149] S401: Divide each sample customer into multiple customer groups in advance according to preset rules.
[0150] The preset rule is: for multiple sample customers with the same target variable, sample customers with empty characteristic values of the target variable and sample customers with non-empty characteristic values of the target variable are divided into different customer groups. Specifically, the division of customer groups can be understood as: according to the situation that the data owned by the sample customers participate in the construction of the sub-model, a customer group is formed for the sample customers participating in the modeling of the same sub-model, that is, multiple sample customers with one or more types of target variables are combined into one customer group.
[0151] S402: For each customer group, a corresponding sub-model is constructed for the target variable included in the customer group.
[0152] S403: Using the limited domain search algorithm, adjust the fusion coefficients of the sub-models included in each customer group to obtain the evaluation results of each customer group.
[0153] The specific expression of the limited domain search algorithm is shown in formula (4).
[0154] p k =∑ i,j∈n α i *p i +...+α j *p j (4)
[0155] In formula (4), p k represents the evaluation results (i.e., financial risk) of the sample customers included in the customer group, k represents the index of the sample customers included in the customer group, n represents the number of sub-models, i and j both represent the index of the sub-models included in the customer group, and α i ...α j Both represent the fusion coefficient of the sub-model, and α i ∈[-10,10], p i …p j They all represent the evaluation results of the sub-model (the output results of the sub-model, i.e., financial risks).
[0156] In addition, the specific expression of the customer group's evaluation results is shown in formula (5).
[0157]
[0158] In formula (5), represents the evaluation result of the customer group, and s represents the index of the customer group.
[0159] It should be emphasized that the so-called evaluation results are, in essence, a specific way of expressing the probability that the sub-model is used to predict the sample customers' improper financial behavior.
[0160] S404: Using a limited domain search algorithm, adjust the fusion coefficient of the evaluation results of each customer group to obtain a financial risk assessment model.
[0161] The specific expression of the financial risk assessment model is shown in formula (6).
[0162]
[0163] In formula (6), M represents the number of customer groups, β i represents the fusion coefficient of the evaluation results of the i-th customer group, P clusteri represents the evaluation result of the i-th customer group, P Merged is a function of the financial risk assessment model.
[0164] It should be noted that, after the above process, the evaluation results of the same sub-model will have different fusion coefficients, that is, different levels of importance, in different scenarios. Therefore, it can dynamically respond to the problem that the data of sample customers may be naturally missing (that is, the problem of a high missing rate of the target variable. The missing rate is common knowledge familiar to technicians in this field and will not be repeated here), thereby improving the accuracy of financial risk assessment.
[0165] Compared with the existing sub-model fusion method, the embodiment of the present application first forms a customer group for the sample customers who participate in the construction of the sub-model according to the data owned by the sample customers (i.e., the target variables possessed by each sample customer), and the sub-model results in each customer group determine the fusion coefficient through the limited domain search method, and form the evaluation results of the customer group. This strategy is to solve the problem of large absolute deviations in the predicted probabilities of different models. For example, the probability (i.e., the evaluation result) predicted by the sample customer with the highest risk in sub-model A may be 0.6, but the probability of the sample customer with the highest financial risk evaluation in sub-model B is 0.9. The sample customer with a probability of 0.6 may be a legitimate customer, so it is necessary to adjust the coefficient of the probability of sub-model A within the limited domain; secondly, after obtaining the evaluation results of each customer group, it is necessary to perform dynamic fusion again between different customer groups to obtain the optimal fusion coefficient and obtain the final evaluation results of the overall sample customers. The purpose of this step is to make the evaluation results of different customer groups comparable.
[0166] In summary, by using the scheme described in this implementation, the evaluation results of the same sub-model can have different importance when the sample customers have different data (ie, target variables).
[0167] like Figure 5 FIG. 1 is a schematic diagram of a method for calculating the contribution of a target variable to financial risk provided by an embodiment of the present application, comprising the following steps:
[0168] S501: Obtain n values within a neighborhood of characteristic values of a target variable of a customer to be tested.
[0169] S502: Input n numerical values into the financial risk assessment model in sequence to obtain n prediction results output by the financial risk assessment model.
[0170] The prediction result is used to indicate the risk probability corresponding to the numerical value.
[0171] S503: For each numerical value, calculate the difference between the risk probability corresponding to the numerical value and the financial risk of the customer to be tested, and use the difference as the weight of the numerical value.
[0172] S504: Accumulate the weights of each numerical value to obtain the contribution of the target variable to the financial risk.
[0173] Specifically, suppose the customer X to be tested contains p target variables, namely X(x1,x2,x3,...,x p ), and predefine the neighborhood of each eigenvalue of the target variable to be 1%*σ i (σ i Represents the fluctuation range, that is, the target variable x in the preset validation set i The standard deviation of the distribution). For the target variable x i In its 1%*σ i Random sampling n times, and considering the target variable x i In case of missing data, keep the other p-1 target variables unchanged, and generate a total of target variables x i The n+1 nearest neighbor samples (i.e. the values mentioned above) of the target variable x i The n+1 nearest neighbor samples are used to construct the nearest neighbor sample matrix as shown in formula (7).
[0174]
[0175] Input the neighbor sample matrix into the trained financial risk assessment model to obtain the target variable x i The prediction matrix is shown in formula (8).
[0176]
[0177] The weight of each neighbor sample is calculated as shown in formula (9).
[0178]
[0179] Correspondingly, the weights of each neighboring sample are accumulated to obtain the contribution of the target variable to financial risk. The process is shown in formula (10).
[0180]
[0181] In summary, by using the solution described in this embodiment, the contribution of each target variable included in the customer to be tested to the financial risk can be effectively calculated.
[0182] It should be noted that the various embodiments shown above are all optional specific implementations of the financial risk assessment method described in this application. To this end, the various embodiments shown above can be summarized as follows: Figure 6 The method shown.
[0183] like Figure 6 FIG. 1 is a schematic diagram of another financial risk assessment method provided in an embodiment of the present application, comprising the following steps:
[0184] S601: Extracting a target variable from the behavior information of the customer to be tested, and determining a characteristic value of the target variable.
[0185] Among them, the target variable is a characteristic variable that meets the preset conditions, and the preset conditions are: there is a correlation between the characteristic variable and improper financial behavior.
[0186] S602: Input the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model.
[0187] The financial risk assessment model is pre-trained based on the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers as inputs, and the financial risk is used as the training target. The output results include the financial risk of the customer to be tested.
[0188] S603: Determine the risk level and score of the customer to be tested based on the preset correspondence between financial risk, score, and risk level.
[0189] S604: Calculate the contribution of the target variable of the client to be tested to the financial risk.
[0190] S605: Sort the target variables included in the customer to be tested in descending order of contribution to obtain a characteristic variable sequence.
[0191] S606: Display the risk level, score, and characteristic variable sequence of the customer to be tested.
[0192] In summary, compared with the prior art, extracting target variables from the behavior information of the customer to be tested and using the target variables as the input of the financial risk assessment model is more objective, and using the output of the financial risk assessment model as the risk assessment result of the customer to be tested is more scientific and reasonable. It can be seen that the scheme described in this embodiment can identify and measure the improper financial behavior of customers from multiple angles based on the customer's behavior information, rather than being limited to the improper financial behavior of illegal customers, comprehensively characterize the financial risks of customers, and by increasing the concentration of customer samples, tapping potential illegal customers, and improving the reliability and accuracy of the financial risk assessment model, thereby improving the accuracy of financial risk assessment from a data perspective.
[0193] Corresponding to the financial risk assessment method provided in the above-mentioned embodiment of the present application, the embodiment of the present application also provides a financial risk assessment device.
[0194] like Figure 7 FIG. 1 is a schematic diagram of the architecture of a financial risk assessment device provided in an embodiment of the present application, including:
[0195] The extraction unit 100 is used to extract a target variable from the behavior information of the customer to be tested and determine a characteristic value of the target variable. The target variable is a characteristic variable that meets a preset condition, and the preset condition is that there is a correlation between the characteristic variable and the improper financial behavior.
[0196] The input unit 200 is used to input the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model. The financial risk assessment model is pre-trained based on the characteristic value of the target variable of the sample illegal customer obtained in advance and the characteristic value of the target variable of the sample legal customer as input, with financial risk as the training target. The output result includes the financial risk of the customer to be tested.
[0197] Among them, the input unit 200 is used to pre-acquire the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers, including: obtaining the improper financial behaviors of each sample customer within the preset customer group; for each sample customer, based on the preset correspondence between improper financial behaviors and scores, scoring the various improper financial behaviors contained in the sample customer to obtain the scores of the various improper financial behaviors contained in the sample customer; accumulating and summing the scores of the various improper financial behaviors contained in the sample customer to obtain the characteristic scores of the sample customers; identifying the sample customers whose characteristic scores are greater than the first preset threshold as illegal customers; identifying the sample customers whose characteristic scores are not greater than the first preset threshold as legal customers; extracting various characteristic variables from the behavior information of the sample customers; filtering invalid data in various characteristic variables; performing data processing on various characteristic variables to obtain characteristic values of various characteristic variables, and performing data analysis on various characteristic values to obtain data distribution of various characteristic values; screening out characteristic variables that meet preset conditions from various characteristic variables as target variables.
[0198] The input unit 200 is used to screen out characteristic variables that meet preset conditions from various types of characteristic variables as target variables, including: for each type of characteristic variable, treating the characteristic variable as a single variable; collecting the single variables of each sample customer to construct a data set; dividing the data set into a training set and a test set; using the training set to train the machine learning model; using the test set as the input of the trained machine learning model to obtain the output result of the machine learning model; the output result of the machine learning model includes the predicted probability of the single variable of each sample customer; taking the sample customer with the largest predicted probability as the target sample customer; using the target sample customer to construct a single variable set, and counting the number p of single variables contained in the single variable set; counting the number q of single variables belonging to illegal customers in the single variable set; calculating the ratio between the number q of single variables belonging to illegal customers and the number p of single variables contained in the single variable set to obtain the head precision of the single variable; the head precision is used to characterize the probability of a correlation between the characteristic variable and improper financial behavior; when the head precision is greater than the second preset threshold, the characteristic variable to which the single variable belongs is identified as the target variable.
[0199] The input unit 200 is used to select characteristic variables that meet preset conditions from various characteristic variables as target variables, including: pre-counting the total number of characteristic variable types m, the total number of sample customers N, and the proportion of illegal customers in the sample customers ρ; for each characteristic variable, counting the total number of sample customers N with the same characteristic value m , and the total number N m The proportion of illegal customers included in m; If the total number of types m of the feature variables is not greater than the preset third threshold, N m is greater than the preset first value, and m The characteristic variable greater than ρ is identified as the target variable; the first value is preset as the product of the first adjustment coefficient α and the target ratio, and the target ratio is the ratio of the total number of sample customers N to the total number of types of characteristic variables m; when the total number of types of characteristic variables m is greater than the preset third threshold, N is set. m is greater than the preset second value, and m The characteristic variable greater than ρ is identified as the target variable; the preset second value is the second adjustment coefficient β.
[0200] The input unit 200 is used for pre-training a financial risk assessment model based on the characteristic values of the target variables of sample illegal customers and the characteristic values of the target variables of sample legal customers obtained in advance as inputs, with financial risk as the training target, including: pre-constructing corresponding sub-models for various target variables; wherein the sub-models are used to predict the probability that the sample customers have improper financial behavior; the sample customers include sample illegal customers and sample legal customers; fusing various sub-models to obtain a financial risk assessment model; using the characteristic values of the target variables of sample illegal customers and the characteristic values of the target variables of sample legal customers obtained in advance as inputs of the financial risk assessment model, and training the financial risk assessment model with financial risk as the training target.
[0201] The input unit 200 is used to fuse various sub-models to obtain a process of a financial risk assessment model, including: pre-dividing each sample customer into multiple customer groups according to preset rules; the preset rules are: for multiple sample customers with the same target variable, sample customers with empty characteristic values of the target variable and sample customers with non-empty characteristic values of the target variable are divided into different customer groups; for each customer group, a corresponding sub-model is constructed for the target variable contained in the customer group; using a limited domain search algorithm, the fusion coefficient of each sub-model contained in each customer group is adjusted to obtain an evaluation result for each customer group; using a limited domain search algorithm, the fusion coefficient of the evaluation result of each customer group is adjusted to obtain a financial risk assessment model.
[0202] The determination unit 300 is used to determine the risk level and score of the customer to be tested based on the preset correspondence between the financial risk, the score, and the risk level.
[0203] The calculation unit 400 is used to calculate the contribution of the target variable of the client to be tested to the financial risk.
[0204] Among them, the calculation unit 400 is specifically used to: obtain n numerical values within the neighborhood of the characteristic value of the target variable of the customer to be tested; input the n numerical values into the financial risk assessment model in sequence to obtain n prediction results output by the financial risk assessment model; the prediction result is used to indicate the risk probability corresponding to the numerical value; for each numerical value, calculate the difference between the risk probability corresponding to the numerical value and the financial risk of the customer to be tested, and use the difference as the weight of the numerical value; add up the weights of each numerical value to obtain the contribution of the target variable to the financial risk.
[0205] The sorting unit 500 is used to sort the target variables included in the customer to be tested in descending order of contribution, so as to obtain a characteristic variable sequence.
[0206] The display unit 600 is used to display the risk level, score, and characteristic variable sequence of the customer to be tested.
[0207] In summary, compared with the prior art, extracting target variables from the behavior information of the customer to be tested and using the target variables as the input of the financial risk assessment model is more objective, and using the output of the financial risk assessment model as the risk assessment result of the customer to be tested is more scientific and reasonable. It can be seen that the scheme described in this embodiment can identify and measure the improper financial behavior of customers from multiple angles based on the customer's behavior information, rather than being limited to the improper financial behavior of illegal customers, comprehensively characterize the financial risks of customers, and by increasing the concentration of customer samples, tapping potential illegal customers, and improving the reliability and accuracy of the financial risk assessment model, thereby improving the accuracy of financial risk assessment from a data perspective.
[0208] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the financial risk assessment method provided by the present application.
[0209] The present application also provides a financial risk assessment device, including: a processor, a memory and a bus. The processor and the memory are connected via a bus, the memory is used to store programs, and the processor is used to run programs, wherein when the program is run, the financial risk assessment method provided by the present application is executed, including the following steps:
[0210] Extracting a target variable from the behavior information of the customer to be tested, and determining a characteristic value of the target variable; the target variable is a characteristic variable that meets a preset condition; the preset condition is that the characteristic variable is associated with improper financial behavior;
[0211] Inputting the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model; the financial risk assessment model is pre-trained based on the characteristic value of the target variable of the sample illegal customer and the characteristic value of the target variable of the sample legal customer as input and taking the financial risk as the training target; the output result includes the financial risk of the customer to be tested;
[0212] Determining the risk level and score of the customer to be tested based on the preset correspondence between the financial risk, score, and risk level;
[0213] Calculating the contribution of the target variable of the client to be tested to the financial risk;
[0214] Sorting the target variables of the customer to be tested in descending order of contribution to obtain a characteristic variable sequence;
[0215] The risk level, score, and characteristic variable sequence of the client to be tested are displayed externally.
[0216] Optionally, the step of pre-acquiring characteristic values of target variables of sample illegal customers and characteristic values of target variables of sample legal customers includes:
[0217] Obtain improper financial behaviors of each sample customer within the preset customer group;
[0218] For each of the sample customers, based on the preset correspondence between improper financial behaviors and scores, scoring is performed for each type of improper financial behaviors included in the sample customer, thereby obtaining scores for each type of improper financial behaviors included in the sample customer;
[0219] Accumulating and summing the scores of various improper financial behaviors of the sample customers to obtain characteristic scores of the sample customers;
[0220] Identify the sample customers whose characteristic scores are greater than a first preset threshold as illegal customers;
[0221] Identify the sample customers whose feature scores are not greater than the first preset threshold as legitimate customers;
[0222] Extracting various characteristic variables from the behavioral information of the sample customers;
[0223] Filter invalid data in each type of feature variables;
[0224] Performing data processing on each type of the characteristic variables to obtain characteristic values of each type of the characteristic variables, and performing data analysis on each type of the characteristic values to obtain data distribution of each type of the characteristic values;
[0225] From the various characteristic variables, characteristic variables that meet preset conditions are selected as target variables.
[0226] Optionally, the step of selecting a characteristic variable that meets a preset condition from each type of characteristic variable as a target variable includes:
[0227] For each type of the characteristic variable, the characteristic variable is regarded as a single variable;
[0228] Collect the single variables of each of the sample customers to construct a data set;
[0229] Dividing the data set into a training set and a test set;
[0230] Training a machine learning model using the training set;
[0231] The test set is used as the input of the trained machine learning model to obtain the output result of the machine learning model; the output result of the machine learning model includes the predicted probability of a single variable of each of the sample customers;
[0232] The sample customer with the largest value of the predicted probability is used as the target sample customer;
[0233] Using the target sample customers, construct a single variable set, and count the number p of single variables included in the single variable set;
[0234] Counting the number q of single variables belonging to illegal customers in the single variable set;
[0235] Calculate the ratio between the number q of the single variables belonging to the illegal customers and the number p of the single variables included in the single variable set to obtain the head precision rate of the single variable; the head precision rate is used to characterize the probability of the association between the characteristic variable and the improper financial behavior;
[0236] When the head accuracy is greater than a second preset threshold, the feature variable to which the single variable belongs is identified as a target variable.
[0237] Optionally, the step of selecting a characteristic variable that meets a preset condition from each type of characteristic variable as a target variable includes:
[0238] Pre-counting the total number m of types of the characteristic variables, the total number N of sample customers, and the proportion ρ of illegal customers included in the sample customers;
[0239] For each of the characteristic variables, the total number of sample customers with the same characteristic value N is counted m , and the total number N m The proportion of illegal customers included inm ;
[0240] When the total number m of the types of the feature variables is not greater than the preset third threshold, N m is greater than the preset first value, and m The characteristic variable greater than ρ is identified as the target variable; the preset first value is the product of the first adjustment coefficient α and the target ratio, and the target ratio is the ratio of the total number N of the sample customers to the total number m of the types of the characteristic variable;
[0241] When the total number m of the types of the feature variables is greater than the preset third threshold, N m is greater than the preset second value, and m The characteristic variable greater than ρ is identified as the target variable; the preset second value is the second adjustment coefficient β.
[0242] Optionally, the financial risk assessment model is pre-trained based on taking the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers as inputs and taking the financial risk as the training target, including:
[0243] Constructing corresponding sub-models for each type of target variable in advance; wherein the sub-models are used to predict the probability that a sample customer has improper financial behavior; the sample customers include sample illegal customers and sample legal customers;
[0244] The various sub-models are integrated to obtain a financial risk assessment model;
[0245] The characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance are used as inputs of the financial risk assessment model, and the financial risk is used as a training target to train the financial risk assessment model.
[0246] Optionally, the various sub-models are integrated to obtain a financial risk assessment model, including:
[0247] Divide each of the sample customers into multiple customer groups in advance according to a preset rule; the preset rule is: for multiple sample customers with the same target variable, divide the sample customers whose characteristic values of the target variable are empty and the sample customers whose characteristic values of the target variable are not empty into different customer groups;
[0248] For each of the customer groups, a corresponding sub-model is constructed for the target variable included in the customer group;
[0249] Using a limited domain search algorithm, adjusting the fusion coefficients of the sub-models included in each customer group, and obtaining evaluation results for each customer group;
[0250] By using a limited domain search algorithm, the fusion coefficient of the evaluation results of each customer group is adjusted to obtain a financial risk assessment model.
[0251] Optionally, calculating the contribution of the target variable of the customer to be tested to the financial risk includes:
[0252] Obtain n values within a neighborhood of characteristic values of the target variable of the customer to be tested;
[0253] Inputting the n numerical values into the financial risk assessment model in sequence to obtain n prediction results output by the financial risk assessment model; the prediction results are used to indicate the risk probabilities corresponding to the numerical values;
[0254] For each of the numerical values, calculate the difference between the risk probability corresponding to the numerical value and the financial risk of the customer to be tested, and use the difference as the weight of the numerical value;
[0255] The weights of the various numerical values are accumulated to obtain the contribution of the target variable to the financial risk.
[0256] If the functions described in the method of the embodiment of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a storage medium readable by a computing device. Based on this understanding, the part of the embodiment of the present application that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computing device (which can be a personal computer, server, mobile computing device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0257] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0258] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A financial risk assessment method, characterized in that: include: Extracting a target variable from the behavior information of the customer to be tested, and determining a characteristic value of the target variable; The target variable is a characteristic variable that meets the preset conditions; The preset condition is that: the characteristic variable is associated with improper financial behavior; Inputting the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model; The financial risk assessment model is pre-trained based on the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance as inputs, with financial risk as the training target; the output result includes the financial risk of the customer to be tested; The process of obtaining the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers includes: scoring various types of improper financial behaviors included in the sample customers based on the preset corresponding relationship between improper financial behaviors and scores; The process of pre-training the financial risk assessment model based on taking the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers as inputs and taking financial risk as the training target includes: pre-building corresponding sub-models for each type of the target variables; wherein the sub-models are used to predict the probability that the sample customers have improper financial behaviors; the sample customers include sample illegal customers and sample legal customers; fusing the various sub-models to obtain the financial risk assessment model; taking the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers as inputs of the financial risk assessment model and taking financial risk as the training target to train the financial risk assessment model; The process of fusing the various sub-models to obtain the financial risk assessment model includes: pre-dividing each of the sample customers into multiple customer groups according to preset rules; the preset rules are: for multiple sample customers with the same target variable, dividing the sample customers whose characteristic values of the target variable are empty and the sample customers whose characteristic values of the target variable are not empty into different customer groups; for each of the customer groups, building a corresponding sub-model for the target variable contained in the customer group; using a limited domain search algorithm, adjusting the fusion coefficient of each sub-model contained in each of the customer groups to obtain an evaluation result of each of the customer groups; using a limited domain search algorithm, adjusting the fusion coefficient of the evaluation result of each of the customer groups to obtain the financial risk assessment model; The expression of the limited domain search algorithm is: , The financial risk of the sample customers included in the representative customer group, Represents the index of sample customers included in the customer group, Represents the number of sub-models, and They all represent the index of the sub-models contained in the customer group. Both represent the fusion coefficient of the sub-model, and , Both represent the financial risk of the sub-model; Determining the risk level and score of the customer to be tested based on the preset correspondence between the financial risk, score, and risk level; Calculating the contribution of the target variable of the client to be tested to the financial risk; Sorting the target variables of the customer to be tested in descending order of contribution to obtain a characteristic variable sequence; The risk level, score, and characteristic variable sequence of the client to be tested are displayed externally.
2. The method according to claim 1, characterized in that The step of pre-acquiring the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers includes: Obtain improper financial behaviors of each sample customer within the preset customer group; For each of the sample customers, based on the preset correspondence between improper financial behaviors and scores, scoring is performed for each type of improper financial behaviors included in the sample customer, thereby obtaining scores for each type of improper financial behaviors included in the sample customer; Accumulating and summing the scores of various improper financial behaviors of the sample customers to obtain characteristic scores of the sample customers; Identify the sample customers whose characteristic scores are greater than a first preset threshold as illegal customers; Identify the sample customers whose feature scores are not greater than the first preset threshold as legitimate customers; Extracting various characteristic variables from the behavioral information of the sample customers; Filter invalid data in each type of feature variables; Performing data processing on each type of the characteristic variables to obtain characteristic values of each type of the characteristic variables, and performing data analysis on each type of the characteristic values to obtain data distribution of each type of the characteristic values; From the various characteristic variables, characteristic variables that meet preset conditions are selected as target variables.
3. The method according to claim 2, characterized in that The step of selecting characteristic variables that meet preset conditions from various characteristic variables as target variables includes: For each type of the characteristic variable, the characteristic variable is regarded as a single variable; Collect the single variables of each of the sample customers to construct a data set; Dividing the data set into a training set and a test set; Training a machine learning model using the training set; The test set is used as the input of the trained machine learning model to obtain the output result of the machine learning model; the output result of the machine learning model includes the predicted probability of a single variable of each of the sample customers; The sample customer with the largest value of the predicted probability is used as the target sample customer; Using the target sample customers, construct a single variable set, and count the number p of single variables included in the single variable set; Counting the number q of single variables belonging to illegal customers in the single variable set; Calculate the ratio between the number q of the single variables belonging to the illegal customers and the number p of the single variables included in the single variable set to obtain the head precision rate of the single variable; the head precision rate is used to characterize the probability of the association between the characteristic variable and the improper financial behavior; When the head accuracy is greater than a second preset threshold, the feature variable to which the single variable belongs is identified as a target variable.
4. The method according to claim 2, characterized in that: The step of selecting characteristic variables that meet preset conditions from various characteristic variables as target variables includes: Pre-count the total number of types of the feature variables , the total number of sample customers , and the percentage of illegal customers included in the sample customers ; For each of the characteristic variables, count the total number of sample customers with the same characteristic value , and the total The proportion of illegal customers included in ; The total number of types in the feature variables If it is not greater than the preset third threshold, is greater than a preset first value, and Greater than The characteristic variable is identified as the target variable; the preset first value is the first adjustment coefficient The product of the target proportion, which is the total number of sample customers The total number of types of the feature variables The ratio of The total number of types in the feature variables When the value is greater than the preset third threshold, is greater than a preset second value, and Greater than The characteristic variable is identified as the target variable; the preset second value is the second adjustment coefficient .
5. The method according to claim 1, characterized in that The calculating the contribution of the target variable of the client to be tested to the financial risk includes: Obtain n values within a neighborhood of characteristic values of the target variable of the customer to be tested; Inputting the n numerical values into the financial risk assessment model in sequence to obtain n prediction results output by the financial risk assessment model; the prediction results are used to indicate the risk probabilities corresponding to the numerical values; For each of the numerical values, calculate the difference between the risk probability corresponding to the numerical value and the financial risk of the customer to be tested, and use the difference as the weight of the numerical value; The weights of the various numerical values are accumulated to obtain the contribution of the target variable to the financial risk.
6. A financial risk assessment device, characterized in that: include: An extraction unit, used to extract a target variable from the behavior information of the customer to be tested, and determine a characteristic value of the target variable; The target variable is a characteristic variable that meets a preset condition; the preset condition is that the characteristic variable is associated with improper financial behavior; An input unit, used to input the characteristic value of the target variable of the customer to be tested into the financial risk assessment model to obtain the output result of the financial risk assessment model; The financial risk assessment model is pre-trained based on the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance as inputs, with financial risk as the training target; the output result includes the financial risk of the customer to be tested; The process of the input unit for obtaining the characteristic value of the target variable of the sample illegal customer and the characteristic value of the target variable of the sample legal customer includes: scoring various types of improper financial behaviors included in the sample customer based on the preset corresponding relationship between improper financial behaviors and scores; The input unit is used to pre-train a financial risk assessment model based on the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance as inputs, with financial risk as the training target, and the process includes: pre-building corresponding sub-models for each type of the target variables; wherein the sub-models are used to predict the probability that the sample customers have improper financial behaviors; the sample customers include sample illegal customers and sample legal customers; fusing the various sub-models to obtain a financial risk assessment model; using the characteristic values of the target variables of the sample illegal customers and the characteristic values of the target variables of the sample legal customers obtained in advance as inputs of the financial risk assessment model, and training the financial risk assessment model with financial risk as the training target; The input unit is used to fuse various sub-models to obtain the process of the financial risk assessment model, including: pre-dividing each of the sample customers into multiple customer groups according to preset rules; the preset rules are: for multiple sample customers with the same target variable, dividing the sample customers with empty characteristic values of the target variable and the sample customers with non-empty characteristic values of the target variable into different customer groups; for each of the customer groups, building a corresponding sub-model for the target variable contained in the customer group; using a limited domain search algorithm, adjusting the fusion coefficient of each sub-model contained in each of the customer groups to obtain an evaluation result of each of the customer groups; using a limited domain search algorithm, adjusting the fusion coefficient of the evaluation result of each of the customer groups to obtain the financial risk assessment model; the expression of the limited domain search algorithm is , The financial risk of the sample customers included in the representative customer group, Represents the index of sample customers included in the customer group, Represents the number of sub-models, and They all represent the index of the sub-models contained in the customer group. Both represent the fusion coefficient of the sub-model, and , Both represent the financial risk of the sub-model; A determination unit, configured to determine the risk level and score of the customer to be tested based on the preset correspondence between the financial risk, score, and risk level; A calculation unit, used for calculating the contribution of the target variable of the client to be tested to the financial risk; A sorting unit, used to sort the target variables included in the customer to be tested in descending order of contribution, to obtain a characteristic variable sequence; A display unit is used to display the risk level, the score, and the characteristic variable sequence of the customer to be tested.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the financial risk assessment method according to any one of claims 1-4.
8. A financial risk assessment device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus; The memory is used to store programs, and the processor is used to run programs, wherein the program executes the financial risk assessment method described in any one of claims 1-4 when running.
