A method for adjusting prediction distribution of multi-classification models
By adjusting the sample weight of the multi-classification model and dividing the customer groups, the problem of prediction distribution deviation and customer group accuracy in the multi-classification model is solved, and more accurate and efficient prediction results are achieved.
Patent Information
- Application Number
- CN202410798503.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In multi-classification models, the imbalance of modeling samples leads to large deviations between the predicted distribution and the true distribution. Especially when the prediction accuracy of different customer groups is difficult to meet the requirements, it affects the reliability of the model.
By determining the initial weights of samples of different categories, and adjusting the weights based on the deviation of historical overdue data and predicted distribution results, different customer groups are divided, and the weights of the multi-classification model are adjusted to ensure the similarity between the predicted distribution and the real distribution.
It improves the accuracy of the adjustment results of the multi-classification model, avoids the complex weight adjustment process, ensures the classification accuracy of each customer group, and ensures the accuracy and efficiency of the overall processing.
Smart Images

Figure CN118378177B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of financial information technology, and in particular relates to a multi-classification model prediction distribution adjustment method. Background Art
[0002] The risk control model is a core component of the big data risk control system. Most big data risk control models are supervised machine learning models, especially classification models. According to different prediction targets, classification models can be divided into binary classification models and multi-classification models. Multi-classification models are usually used in user profiling scenarios, such as income prediction, education prediction, etc. In such scenarios, the multi-classification model should not only have a high accuracy, but also have a high similarity between its predicted distribution and the actual distribution to ensure the rationality of the model prediction.
[0003] When the degree of imbalance of modeling samples is high (most samples are concentrated in individual categories, and there are fewer samples in other categories), directly constructing a multi-classification model will cause the predicted distribution to be more concentrated than the actual distribution, and there will be a large deviation between the two. In order to solve the above technical problems, the existing technical solutions often improve the accuracy of modeling results by adjusting sample weights. Specifically, similar sample weight adjustment methods are given in the invention patents CN202010922347.7 "Machine Learning Sample Weight Adjustment Method and Device, Storage Medium" and CN202310092595.7 "Model Training Method, Device, Equipment and Storage Medium for Bank Credit Risk Control". However, it is not difficult to find through analysis that there are the following technical problems:
[0004] There are large differences between samples of credit applications. For example, in the process of income forecasting, there will be large differences in industry type, company type and job situation. The forecast accuracy for the entire group meets the requirements, but it may be difficult to meet the requirements for the forecast accuracy of different customer groups. Therefore, if the forecast accuracy of different customer groups is not considered, the reliability of the modeling results cannot be guaranteed.
[0005] In response to the above technical problems, the present invention provides a method for adjusting the prediction distribution of a multi-classification model. Summary of the invention
[0006] To achieve the purpose of the present invention, the present invention adopts the following technical solutions:
[0007] According to one aspect of the present invention, a method for adjusting prediction distribution of a multi-classification model is provided.
[0008] In order to solve the above technical problems, the present invention provides a method for adjusting the prediction distribution of a multi-classification model, which is characterized by:
[0009] S1 determines the initial weights of samples of different categories of the multi-classification model, and trains the multi-classification model according to the initial weights and samples to obtain a training model;
[0010] S2 When the prediction distribution results of different categories of the training model on the test sample do not meet the requirements, obtain the historical overdue data of samples of different categories, and adjust the initial weights of samples of different categories in combination with the deviation of the prediction distribution results of different categories, until the prediction distribution of different categories of the training model on the test sample meets the requirements;
[0011] S3 divides the samples into different customer groups according to the information similarity of samples of different categories, and when it is determined that there is a customer group that needs to be weighted according to the predicted distribution of the training model in different customer groups, proceeds to the next step;
[0012] S4 takes the customer groups that need to be weighted as adjustment customer groups, and divides different adjustment customer groups into different adjustment customer groups according to the information similarity of the samples and the deviation of the predicted distribution results, and adjusts the weights of the corresponding multi-classification models according to the deviation of the predicted distribution results of different adjustment customer groups.
[0013] The beneficial effects of the present invention are:
[0014] 1. The initial weights of samples of different categories are adjusted according to their historical overdue data and the deviations of the predicted distribution results of different categories. This not only takes into account the differences in the need to adjust the weight values of samples of different categories due to the differences in the deviations of the predicted distribution results, but also ensures the accuracy of the adjustment results of the multi-classification model by further combining the historical overdue data of samples of different categories.
[0015] 2. By adjusting the deviation of the predicted distribution results of different customer groups, the weights of the corresponding multi-classification models are adjusted, thereby avoiding the technical problem of high complexity of weight adjustment caused by weight adjustment of sample training for each customer group. At the same time, by classifying the customer groups, the technical problem of using a unified multi-classification model failing to ensure that the classification accuracy of all customer groups meets the requirements is avoided. Therefore, the overall classification processing accuracy is guaranteed on the basis of ensuring processing efficiency.
[0016] A further technical solution is that the initial weights of the samples of different categories are determined according to the proportion of the number of samples in different categories.
[0017] A further technical solution is that the method for determining the training model is:
[0018] Reconstructing samples of different categories based on their initial weights to obtain reconstructed samples;
[0019] The reconstructed samples are used as training samples to train the multi-classification model to obtain a training model.
[0020] A further technical solution is to divide the samples into different customer groups, specifically including:
[0021] Determine the similarity of basic credit information of different samples based on the basic credit information of different samples, and perform information similarity between different samples based on the similarity of basic credit information;
[0022] Samples whose information similarity is greater than the preset similarity threshold are divided into the same customer group.
[0023] A further technical solution is to determine the customer groups that need to be weighted, including:
[0024] Obtaining the target distribution of different customer groups in different categories, and determining the comprehensive recognition accuracy of the training model in different customer groups based on the predicted distribution of different categories of the training model in different customer groups;
[0025] It is determined based on the comprehensive recognition accuracy whether there is a customer group that needs weight adjustment.
[0026] A further technical solution is to determine whether there is a customer group that needs to be weighted according to the comprehensive recognition accuracy, which specifically includes:
[0027] When the comprehensive recognition accuracy of the customer group does not meet the requirement, it is determined that the customer group needs to be weighted.
[0028] A further technical solution is to divide different adjustment customer groups into different adjustment customer groups, including:
[0029] Determine the credit information similarity of samples of different adjustment customer groups in different categories based on the information similarity between samples of different categories of different adjustment customer groups, and determine the prediction deviation similarity of different adjustment customer groups in different categories based on the deviation between the prediction distribution results of different adjustment customer groups in different categories and the target distribution results;
[0030] Determine the comprehensive similarity of different adjustment customer groups in different categories based on the similarity of prediction deviations and credit information in different categories;
[0031] The similarity evaluation amounts between different adjustment customer groups are performed according to the comprehensive similarities in different categories and the number of samples in different categories, and the different adjustment customer groups are divided into different adjustment customer group groups using the similarity evaluation amounts.
[0032] A further technical solution is to use the similarity evaluation amount to divide different adjustment customer groups into different adjustment customer group groups, specifically including:
[0033] The adjusted customer groups whose similarity evaluation values meet the requirements are divided into the same adjusted customer group.
[0034] A further technical solution is that the method for adjusting the weight of the corresponding multi-classification model is:
[0035] Deviations in the predicted distribution results of different adjusted customer groups
[0036] Divide the adjusted customer group into the same multi-classification model and use it as the corresponding multi-classification model, and use the weight adjusted by the training model as the basic adjustment weight of the corresponding multi-classification model;
[0037] Determine the predicted distribution deviation of samples of different categories of the adjusted customer group according to the predicted distribution of the adjusted customer group, and determine the correction coefficient of the basic adjustment weight of the corresponding multi-classification model based on the predicted distribution deviation of samples of different categories;
[0038] The basic adjustment weight is adjusted using the correction coefficient to obtain a weight adjustment result of the multi-classification model.
[0039] Other features and advantages will be described in the following description. The objects and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and drawings.
[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
[0042] Figure 1 is a flow chart of a method for adjusting the prediction distribution of a multi-classification model;
[0043] Figure 2 is a flowchart of a determined method for training a model;
[0044] Figure 3 It is a flow chart of a method for determining whether the prediction distribution results of different categories of the training model on the test sample meet the requirements;
[0045] Figure 4 It is a flowchart of a method for adjusting the initial weights of samples of different categories;
[0046] Figure 5 It is a flowchart of the corresponding method for adjusting the weights of the multi-classification model. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0048] The risk control model is a core component of the big data risk control system. Most big data risk control models are supervised machine learning models, especially classification models. According to the different prediction targets, classification models can be divided into binary classification models and multi-classification models. The target space of the binary classification model only includes two categories, while the target space of the multi-classification model includes more than two categories. Multi-classification models are usually used in user portrait scenarios, such as income prediction, education prediction, etc. In such scenarios, the multi-classification model should not only have a high accuracy, but also have a high similarity between its predicted distribution and the actual distribution to ensure the rationality of the model prediction.
[0049] When the modeling samples are highly unbalanced (most of the samples are concentrated in a single category, and there are fewer samples in other categories), directly building a multi-classification model will cause the predicted distribution to be more concentrated than the actual distribution, and there will be a large deviation between the two. The main reason for this problem is that the model tends to generate prediction results for the categories that account for a larger proportion of the modeling samples, thereby obtaining a higher "accuracy". To address this problem, the conventional solution is to adjust the weights of each category on the overall sample, but this method has certain limitations. In order to ensure the performance of the risk control system, risk control strategies are usually developed by customer groups. This requires that the risk control model has good performance on different customer groups. For multi-classification models, this means high accuracy and distribution similarity on different customer groups. Although adjusting the weights of each category on the overall sample can ensure that the overall predicted distribution has a high similarity with the actual distribution, it is difficult to ensure the same performance on each sub-customer group.
[0050] In view of the above problems, the present invention proposes a method for adjusting the predicted distribution of a multi-classification model. Through overall weight adjustment + sub-customer group weight adjustment, the present invention achieves a high similarity between the predicted distribution and the actual distribution in both the overall sample and each sub-customer group.
[0051] Specifically, the following steps are included:
[0052] 1. Overall weight adjustment;
[0053] 1. Initialize the overall weight;
[0054] Taking the N classification model as an example, the weight of category i is initialized to W_i=(1-RD_i) / min(1-RD_k) (k=1,2,...,N), where RD_i is the proportion of category i in the modeling sample. The minimum initialization weight is 1, and the higher the proportion of the category, the smaller the initialization weight. At this time, the initial weights W of each category of the sample are [W_1, W_2,..., W_N];
[0055] 2. Overall weight adjustment cycle;
[0056] 2.0 Modeling based on the current weights of each category W_i, obtaining the model prediction distribution PD_i (the percentage of predicted category i in the total samples);
[0057] 2.1 Calculate the similarity sim_eval between the predicted distribution PD and the true distribution RD (the similarity evaluation can select commonly used distribution difference indicators such as MAE and PSI):
[0058] If sim_eval reaches or is less than the preset threshold sim_eval_max, the difference between the model prediction distribution PD and the true distribution RD is small. At this time, the category modeling weight in step 2.0 is used as the final weight and step 2 is entered;
[0059] If sim_eval is greater than the expected value, the model predicted distribution PD is significantly different from the true distribution RD, and the following category weights will be adjusted:
[0060] 2.1.1 Based on the true distribution RD_i of each category and the model predicted distribution PD_i in step 2.0, calculate the absolute difference AE_i = RD_i - PD_i of each category;
[0061] 2.1.2 Based on the absolute difference AE_i of the categories and the modeling weight W_i in step 2.0, calculate the weight adjustment sum W_delta_total = ln( sum(W_k) * sum(abs(AE_k)) / 2 + 1), (k = 1,2,..., N);
[0062] 2.1.3 Based on the absolute difference AE_i of each category and the model predicted category distribution PD_i in step 2.0, calculate the relative difference RE_i = ln(abs(AE_i) / (PD_i) + 1);
[0063] 2.1.4 Normalize the relative differences RE_i of each category RE_NORM_i = RE_i / sum(RE_k), (k=1,2,..., N);
[0064] 2.1.5 According to the relative difference after standardization of each category, the sum of weight adjustments is distributed to each category to obtain the weight adjustment value of each category (this step contains a customizable adjustment coefficient step, which is generally set to 0.5. The smaller the adjustment coefficient, the smaller the adjustment of the weight) W_delta_i = RE_NORM_i * W_delta_total * step *sgn(AE_i), (sgn(AE_i) is the sign of the absolute difference of category i, that is, the adjustment direction);
[0065] 2.1.6 Update the weight of each category W_i based on the category weight adjustment value W_delta_i, and repeat steps 2.0~2.1, where W_i = W_i + W_delta_i;
[0066] 2. Adjustment of sub-customer group weights;
[0067] 1) Calculate the weighted distribution RC_ADJ_i and its distribution proportion RD_ADJ_i of each category of the overall sample after adjustment in step 1:
[0068] RC_ADJ_i = W_i * RC_i (RC_i is the actual sample size of category i in the overall sample), RD_ADJ_i= RC_ADJ_i / sum(RC_ADJ_k) (k=1,2,...,N);
[0069] 2) Calculate the weight of each category of the sub-customer group, taking sub-customer group G as an example:
[0070] WG_i = RD_ADJ_i * RC_G / RC_G_i (RC_G is the total sample size of sub-group G, RC_G_i is the actual sample size of category i in sub-group G). At this time, WG_i is output as the final sample weight of category i in sub-group G.
[0071] The invention will be further described below in conjunction with specific embodiments.
[0072] To solve the above problems, according to one aspect of the present invention, Figure 1 As shown, a method for adjusting the prediction distribution of a multi-classification model is provided, which is characterized by:
[0073] S1 determines the initial weights of samples of different categories of the multi-classification model, and trains the multi-classification model according to the initial weights and samples to obtain a training model;
[0074] Furthermore, the initial weights of the samples of different categories are determined according to the proportion of the number of samples in different categories.
[0075] Specifically, Figure 2 As shown, the method for determining the training model is:
[0076] Reconstruct samples of different categories based on their initial weights to obtain reconstructed samples;
[0077] The reconstructed samples are used as training samples to train the multi-classification model to obtain a training model.
[0078] Further, such as Figure 3 As shown, judging whether the prediction distribution results of different categories of the training model on the test sample meet the requirements specifically includes:
[0079] Determining the accuracy of the prediction results of the training model in different categories based on the deviation between the prediction distribution results of the training model in different categories and the target distribution results;
[0080] The weight values of the prediction accuracy of different categories are determined by the number of test samples in different categories, and the comprehensive accuracy is determined in combination with the prediction accuracy of the training model in different categories. Based on the comprehensive accuracy, it is determined whether the prediction distribution results of different categories of the training model on the test samples meet the requirements.
[0081] Specifically, when the prediction distribution results of different categories of the training model on the test sample meet the requirements, it is directly determined whether there is a customer group that needs to be weighted.
[0082] In another embodiment, determining whether the prediction distribution results of different categories of the training model on the test sample meet the requirements specifically includes:
[0083] Determine the prediction accuracy of the training model in different categories based on the deviation between the prediction distribution results of the training model in different categories and the target distribution results, and judge whether there is a category whose prediction accuracy does not meet the requirements. If so, determine that the prediction distribution results of different categories of the training model on the test sample do not meet the requirements. If not, proceed to the next step;
[0084] Determine the suspected problem category according to the accuracy of the prediction result, and judge whether the number of the suspected problem categories meets the requirements. If not, determine that the prediction distribution results of different categories of the training model on the test sample do not meet the requirements. If so, proceed to the next step;
[0085] Determine the weight values of the prediction results accuracy of different categories by the number of test samples of different categories, and judge whether the sum of the weight values of the suspected problem categories meets the requirements. If not, determine that the prediction distribution results of different categories of the training model on the test samples do not meet the requirements. If so, proceed to the next step;
[0086] The comprehensive accuracy is determined according to the weight values of the prediction result accuracy of different categories and the prediction result accuracy of the training model in different categories, and based on the comprehensive accuracy, it is determined whether the prediction distribution results of different categories of the training model on the test sample meet the requirements.
[0087] In another embodiment, determining whether the prediction distribution results of different categories of the training model on the test sample meet the requirements specifically includes:
[0088] Determine the accuracy of the prediction results of the training model in different categories based on the deviation between the prediction distribution results of the training model in different categories and the target distribution results, and judge whether there is a suspected problem category based on the prediction result accuracy. If not, determine whether the prediction distribution results of different categories of the training model on the test sample meet the requirements. If so, proceed to the next step;
[0089] Determine the suspected problem category according to the prediction result accuracy, determine the weight value of the prediction result accuracy of different categories according to the number of test samples of different categories, obtain the focus category in the category based on the weight value, and judge whether the number of suspected problem categories in the focus category meets the requirement. If not, determine that the prediction distribution results of different categories of the training model on the test sample do not meet the requirement. If so, proceed to the next step;
[0090] Determine the accuracy evaluation amount of the concerned category according to the number of suspected problem categories in the concerned category, the average value of the prediction result accuracy of different concerned categories, the prediction result accuracy of different suspected problem categories and the weight value, and judge whether the accuracy evaluation amount of the concerned category meets the requirements. If not, determine that the prediction distribution results of different categories of the training model on the test sample do not meet the requirements. If so, proceed to the next step;
[0091] The comprehensive accuracy is determined according to the weight values of the prediction result accuracy of different categories and the prediction result accuracy of the training model in different categories, and based on the comprehensive accuracy, it is determined whether the prediction distribution results of different categories of the training model on the test sample meet the requirements.
[0092] S2 When the prediction distribution results of different categories of the training model on the test sample do not meet the requirements, obtain the historical overdue data of samples of different categories, and adjust the initial weights of samples of different categories in combination with the deviation of the prediction distribution results of different categories, until the prediction distribution of different categories of the training model on the test sample meets the requirements;
[0093] Furthermore, the historical overdue data includes the number of overdue samples and the overdue duration of different overdue samples.
[0094] Specifically, Figure 4 As shown, the method for adjusting the initial weights of samples of different categories is:
[0095] Determine the accuracy of prediction results of samples of different categories through the deviation of the prediction distribution results of samples of different categories;
[0096] Determine the number and proportion of overdue samples of different categories based on the historical overdue data of samples of different categories, and determine the weight adjustment factors of samples of different categories based on the overdue duration of overdue samples of different categories;
[0097] The adjustment factors of different categories are determined according to the prediction result accuracy and the weight adjustment factor, and the initial weights of the samples of different categories are adjusted using the adjustment factors.
[0098] Furthermore, the accuracy of the prediction results of samples of different categories is determined by the deviation of the prediction distribution results of samples of different categories, specifically including:
[0099] The distribution deviation amount is determined according to the deviation between the predicted distribution results of samples of different categories and the target distribution results, and the accuracy of the prediction results of samples of different categories is determined according to the distribution deviation amount.
[0100] It should be noted that different types of adjustment factors are determined according to the prediction result accuracy and the weight adjustment factor, specifically including:
[0101] The error rate is determined according to the prediction result accuracy, and different types of adjustment factors are determined according to the product of the error rate and the weight adjustment factor.
[0102] In another embodiment, the method for adjusting the initial weights of samples of different categories is:
[0103] Determine the prediction result accuracy of samples of different categories by the deviation of the prediction distribution results of samples of different categories, and judge whether the prediction result accuracy of the category is less than the preset accuracy threshold. If so, adjust the initial weight of the samples of the category based on the preset adjustment factor; if not, proceed to the next step;
[0104] Determine the basic weight adjustment factor of the samples of the category based on the prediction result accuracy of the samples of the category, calculate the number of overdue samples of the samples according to the historical overdue data of the samples, and judge whether the number of overdue samples of the samples is less than the preset number of overdue samples. If so, adjust the initial weight of the samples of the category based on the basic weight adjustment factor. If not, proceed to the next step.
[0105] Determine the number and proportion of overdue samples of different categories based on the historical overdue data of samples of different categories, and determine the weight adjustment factors of samples of different categories based on the overdue duration of overdue samples of different categories;
[0106] The adjustment factors of different categories are determined according to the basic weight adjustment factor and the weight adjustment factor, and the initial weights of samples of different categories are adjusted using the adjustment factors.
[0107] S3 divides the samples into different customer groups according to the information similarity of samples of different categories, and when it is determined that there is a customer group that needs to be weighted according to the predicted distribution of the training model in different customer groups, proceeds to the next step;
[0108] Specifically, the samples are divided into different customer groups, including:
[0109] The samples are divided into different customer groups based on the similarity of information of samples in different categories.
[0110] Determine the similarity of basic credit information of different samples based on the basic credit information of different samples, and perform information similarity between different samples based on the similarity of basic credit information;
[0111] Samples whose information similarity is greater than the preset similarity threshold are divided into the same customer group.
[0112] Furthermore, it is determined that there are customer groups that need to be weighted, including:
[0113] Obtaining the target distribution of different customer groups in different categories, and determining the comprehensive recognition accuracy of the training model in different customer groups based on the predicted distribution of different categories of the training model in different customer groups;
[0114] It is determined based on the comprehensive recognition accuracy whether there is a customer group that needs weight adjustment.
[0115] It should be noted that, according to the comprehensive recognition accuracy, determining whether there is a customer group that needs to be adjusted in weight includes:
[0116] When the comprehensive recognition accuracy of the customer group does not meet the requirement, it is determined that the customer group needs to be weighted.
[0117] S4 takes the customer groups that need to be weighted as adjustment customer groups, and divides different adjustment customer groups into different adjustment customer groups according to the information similarity of the samples and the deviation of the predicted distribution results, and adjusts the weights of the corresponding multi-classification models according to the deviation of the predicted distribution results of different adjustment customer groups.
[0118] It is understandable that different adjustment customer groups are divided into different adjustment customer groups, including:
[0119] Determine the credit information similarity of samples of different adjustment customer groups in different categories based on the information similarity between samples of different categories of different adjustment customer groups, and determine the prediction deviation similarity of different adjustment customer groups in different categories based on the deviation between the prediction distribution results of different adjustment customer groups in different categories and the target distribution results;
[0120] Determine the comprehensive similarity of different adjustment customer groups in different categories based on the similarity of prediction deviations and credit information in different categories;
[0121] The similarity evaluation amounts between different adjustment customer groups are performed according to the comprehensive similarities in different categories and the number of samples in different categories, and the different adjustment customer groups are divided into different adjustment customer group groups using the similarity evaluation amounts.
[0122] It should be noted that the use of the similarity evaluation amount to divide different adjustment customer groups into different adjustment customer group groups specifically includes:
[0123] The adjusted customer groups whose similarity evaluation values meet the requirements are divided into the same adjusted customer group.
[0124] In another embodiment, different adjustment customer groups are divided into different adjustment customer group groups, specifically including:
[0125] Determine the credit information similarity of different adjusted customer groups in different categories of samples according to the information similarity between different adjusted customer groups, and judge whether the number of categories whose credit information similarity between the adjusted customer groups does not meet the requirement meets the requirement, if so, proceed to the next step, if not, determine that the adjusted customer groups do not belong to the same adjusted customer group;
[0126] Determine the similarity of prediction deviations of different adjusted customer groups in different categories according to the deviations of the prediction distribution results of different adjusted customer groups in different categories from the target distribution results, and judge whether the number of categories in which the prediction deviation similarities between the adjusted customer groups do not meet the requirements meets the requirements, if so, proceed to the next step, if not, determine that the adjusted customer groups do not belong to the same adjusted customer group;
[0127] Determine the comprehensive similarity of different adjustment customer groups in different categories based on the similarity of prediction deviations and credit information in different categories, and judge whether the number of categories whose comprehensive similarities between adjustment customer groups do not meet the requirements meets the requirements, if so, proceed to the next step, if not, determine that the adjustment customer groups do not belong to the same adjustment customer group;
[0128] The similarity evaluation amounts between different adjustment customer groups are performed according to the comprehensive similarities in different categories and the number of samples in different categories, and the different adjustment customer groups are divided into different adjustment customer group groups using the similarity evaluation amounts.
[0129] In another embodiment, different adjustment customer groups are divided into different adjustment customer group groups, specifically including:
[0130] S41 determines the credit information similarity of different adjusted customer groups in different categories of samples according to the information similarity between different adjusted customer groups and samples of different categories, and determines whether there are categories between the adjusted customer groups whose credit information similarity does not meet the requirements. If yes, proceed to step S43; if not, proceed to the next step;
[0131] S42 determines the prediction deviation similarity of different adjusted customer groups in different categories by the deviation of the prediction distribution results of different adjusted customer groups in different categories from the target distribution results, and judges whether there are categories between the adjusted customer groups whose prediction deviation similarity does not meet the requirements. If yes, proceed to the next step; if not, determine that the adjusted customer groups belong to the same adjusted customer group;
[0132] S43: determining the comprehensive similarities of different adjustment customer groups in different categories based on the similarities of prediction deviations and credit information in different categories, and judging whether there are categories between the adjustment customer groups whose comprehensive similarities do not meet the requirements; if so, proceeding to the next step; if not, determining that the adjustment customer groups belong to the same adjustment customer group;
[0133] S44 determines the screening categories according to the number of different categories, and judges whether there are screening categories whose comprehensive similarity does not meet the requirements between the adjusted customer groups. If not, proceed to the next step. If yes, determine that the adjusted customer groups do not belong to the same adjusted customer group.
[0134] S45 performs similarity evaluations between different adjustment customer groups according to the comprehensive similarities in different categories and the number of samples in different categories, and divides different adjustment customer groups into different adjustment customer group groups using the similarity evaluations.
[0135] Specifically, Figure 5 As shown, the weight adjustment method of the corresponding multi-classification model is:
[0136] Divide the adjusted customer group into the same multi-classification model and use it as the corresponding multi-classification model, and use the weight adjusted by the training model as the basic adjustment weight of the corresponding multi-classification model;
[0137] Determine the predicted distribution deviation of samples of different categories of the adjusted customer group according to the predicted distribution of the adjusted customer group, and determine the correction coefficient of the basic adjustment weight of the corresponding multi-classification model based on the predicted distribution deviation of samples of different categories;
[0138] The basic adjustment weight is adjusted using the correction coefficient to obtain a weight adjustment result of the multi-classification model.
[0139] Through the above embodiments, the present invention achieves the following beneficial effects:
[0140] 1. The initial weights of samples of different categories are adjusted according to their historical overdue data and the deviations of the predicted distribution results of different categories. This not only takes into account the differences in the need to adjust the weight values of samples of different categories due to the differences in the deviations of the predicted distribution results, but also ensures the accuracy of the adjustment results of the multi-classification model by further combining the historical overdue data of samples of different categories.
[0141] 2. By adjusting the deviation of the predicted distribution results of different customer groups, the weights of the corresponding multi-classification models are adjusted, thereby avoiding the technical problem of high complexity of weight adjustment caused by weight adjustment of sample training for each customer group. At the same time, by classifying the customer groups, the technical problem of using a unified multi-classification model failing to ensure that the classification accuracy of all customer groups meets the requirements is avoided. Therefore, the overall classification processing accuracy is guaranteed on the basis of ensuring processing efficiency.
[0142] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0143] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0144] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A method for adjusting the prediction distribution of a multi-classification risk control model, characterized in that: Specifically include: Determine the initial weights of samples of different categories of the multi-classification model, and train the multi-classification model according to the initial weights and samples to obtain a training model; When the prediction distribution results of different categories of the training model on the test sample do not meet the requirements, obtain the historical overdue data of samples of different categories, and adjust the initial weights of samples of different categories in combination with the deviation of the prediction distribution results of different categories, until the prediction distribution of different categories of the training model on the test sample meets the requirements; The samples are divided into different customer groups according to the similarity of information of samples of different categories, and when it is determined that there is a customer group that needs to be weighted according to the predicted distribution of the training model in different customer groups, the next step is entered; The customer groups that need to be weighted are used as adjustment customer groups, and different adjustment customer groups are divided into different adjustment customer groups according to the information similarity of the samples and the deviation of the predicted distribution results. The weights of the corresponding multi-classification models are adjusted according to the deviation of the predicted distribution results of different adjustment customer groups. Divide the sample into different customer groups, including: Determine the similarity of basic credit information of different samples based on the basic credit information of different samples, and perform information similarity between different samples based on the similarity of basic credit information; Classify samples whose information similarity is greater than the preset similarity threshold into the same customer group; The method for adjusting the initial weights of samples of different categories is: Determine the accuracy of prediction results of samples of different categories through the deviation of the prediction distribution results of samples of different categories; Determine the number and proportion of overdue samples of different categories based on the historical overdue data of samples of different categories, and determine the weight adjustment factors of samples of different categories based on the overdue duration of overdue samples of different categories; Determine different types of adjustment factors according to the prediction result accuracy and the weight adjustment factor, and use the adjustment factor to adjust the initial weights of samples of different categories; Different adjustment customer groups are divided into different adjustment customer groups, including: Determine the credit information similarity of different adjusted customer groups in different categories of samples according to the information similarity between different adjusted customer groups, and judge whether the number of categories whose credit information similarity between the adjusted customer groups does not meet the requirement meets the requirement, if so, proceed to the next step, if not, determine that the adjusted customer groups do not belong to the same adjusted customer group; Determine the similarity of prediction deviations of different adjusted customer groups in different categories according to the deviations of the prediction distribution results of different adjusted customer groups in different categories from the target distribution results, and judge whether the number of categories in which the prediction deviation similarities between the adjusted customer groups do not meet the requirements meets the requirements, if so, proceed to the next step, if not, determine that the adjusted customer groups do not belong to the same adjusted customer group; Determine the comprehensive similarity of different adjustment customer groups in different categories based on the similarity of prediction deviations and credit information in different categories, and judge whether the number of categories whose comprehensive similarities between adjustment customer groups do not meet the requirements meets the requirements, if so, proceed to the next step, if not, determine that the adjustment customer groups do not belong to the same adjustment customer group; The similarity evaluation amounts between different adjustment customer groups are performed according to the comprehensive similarities in different categories and the number of samples in different categories, and the different adjustment customer groups are divided into different adjustment customer group groups using the similarity evaluation amounts.
2. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: The initial weights of the samples of different categories are determined according to the proportion of the number of samples in different categories.
3. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: The method for determining the training model is: Reconstructing samples of different categories based on their initial weights to obtain reconstructed samples; The reconstructed samples are used as training samples to train the multi-classification model to obtain a training model.
4. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: Determining whether the prediction distribution results of different categories of the training model on the test sample meet the requirements, specifically includes: Determining the accuracy of the prediction results of the training model in different categories based on the deviation between the prediction distribution results of the training model in different categories and the target distribution results; The weight values of the prediction accuracy of different categories are determined by the number of test samples in different categories, and the comprehensive accuracy is determined in combination with the prediction accuracy of the training model in different categories. Based on the comprehensive accuracy, it is determined whether the prediction distribution results of different categories of the training model on the test samples meet the requirements.
5. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: Determining whether the prediction distribution results of different categories of the training model on the test sample meet the requirements, specifically includes: Determine the prediction accuracy of the training model in different categories based on the deviation between the prediction distribution results of the training model in different categories and the target distribution results, and judge whether there is a category whose prediction accuracy does not meet the requirements. If so, determine that the prediction distribution results of different categories of the training model on the test sample do not meet the requirements. If not, proceed to the next step; Determine the suspected problem category according to the accuracy of the prediction result, and judge whether the number of the suspected problem categories meets the requirements. If not, determine that the prediction distribution results of different categories of the training model on the test sample do not meet the requirements. If so, proceed to the next step; Determine the weight values of the prediction results accuracy of different categories by the number of test samples of different categories, and judge whether the sum of the weight values of the suspected problem categories meets the requirements. If not, determine that the prediction distribution results of different categories of the training model on the test samples do not meet the requirements. If so, proceed to the next step; The comprehensive accuracy is determined according to the weight values of the prediction result accuracy of different categories and the prediction result accuracy of the training model in different categories, and based on the comprehensive accuracy, it is determined whether the prediction distribution results of different categories of the training model on the test sample meet the requirements.
6. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: The historical overdue data includes the number of overdue samples and the overdue duration of different overdue samples.
7. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: The accuracy of the prediction results of samples of different categories is determined by the deviation of the prediction distribution results of samples of different categories, including: The distribution deviation amount is determined according to the deviation between the predicted distribution results of samples of different categories and the target distribution results, and the accuracy of the prediction results of samples of different categories is determined according to the distribution deviation amount.
8. The method for adjusting the prediction distribution of a multi-classification risk control model according to claim 1, characterized in that: Identify the customer groups that need to have their weights adjusted, including: Obtaining the target distribution of different customer groups in different categories, and determining the comprehensive recognition accuracy of the training model in different customer groups based on the predicted distribution of different categories of the training model in different customer groups; It is determined based on the comprehensive recognition accuracy whether there is a customer group that needs weight adjustment.
