Credit risk assessment method and system based on unbalanced data processing

By performing category balancing processing on the unbalanced data of credit customers and constructing an integrated classifier, the difficulty in identifying defaulting customers caused by unbalanced data in traditional credit risk assessment methods is solved, and the accuracy of identification of defaulting customers is improved.

CN112634022BActive Publication Date: 2024-09-03BEIJING UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011565846.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-09-03
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

When traditional credit risk assessment methods deal with imbalanced data, it is difficult to effectively identify defaulting customers, resulting in a decline in classification effect. Existing machine learning methods ignore the imbalanced characteristics of data set categories, resulting in poor prediction accuracy for minority class samples.

Method used

Use a method based on imbalanced data processing to balance the imbalanced category data of credit customers, build an integrated classifier through random forest and logistic regression algorithms, use the Smote algorithm and KNN algorithm to generate new samples, perform category balancing, and construct credit risks Evaluate the model.

Benefits of technology

It improves the credit risk assessment model's identification accuracy of defaulting customers, avoids the poor prediction accuracy of minority samples, and improves the accuracy of credit risk assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112634022B
    Figure CN112634022B
Patent Text Reader

Abstract

The present invention discloses a credit risk assessment method and system based on unbalanced data processing, the method comprising: upon receiving a credit application request initiated by a user through a client, obtaining customer information filled in by the user; obtaining characteristic variables in the user's credit data according to the customer information; inputting the characteristic variables into a trained credit risk assessment model based on unbalanced data processing; judging whether to approve the user's credit request according to the prediction result output by the credit risk assessment model, and returning the judgment result to the client. The technical solution of the present invention solves the problem of unbalanced category classification of credit data sets, avoids the situation of poor prediction accuracy for minority class samples, and improves the recognition accuracy of the credit risk assessment model for defaulting customers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of risk assessment, and in particular to a credit risk assessment method based on unbalanced data processing and a credit risk assessment system based on unbalanced data processing. Background Art

[0002] The credit risk assessment method is to perform feature processing based on data such as the customer's credit attributes, and then use specific methods to conduct a credit assessment on the customer, based on which a decision is made whether to grant credit, thereby identifying and reducing the risks involved in financial transactions.

[0003] In traditional credit risk assessment methods, the feature processing part often relies on the knowledge and experience of experts, uses traditional customer basic information, and combines general statistical methods to make relatively subjective judgments. The credit risk assessment ability is low and cannot effectively identify defaulting customers.

[0004] The current credit risk assessment method based on machine learning is as follows: Based on the customer's credit attributes and other data, the sample data is cleaned using data preprocessing methods to convert the sample data into data that can be modeled. Then, feature selection is performed based on feature importance, and a credit risk assessment classifier is constructed using a machine learning algorithm to conduct credit assessment on the customer. Traditional classification problems are based on two assumptions: (1) the number of categories is roughly equal; (2) the cost of misclassification of various categories is the same. However, the probability of minority samples in unbalanced data is lower than that of majority samples, and the cost is significantly higher than that of majority samples. If the traditional classifier is used to improve the overall classification accuracy, it is easy to cause classification errors in the minority class.

[0005] An unbalanced dataset refers to a dataset where the number of samples in each category varies greatly. Taking the binary classification problem as an example, assuming that the number of samples in the positive class is much larger than the number of samples in the negative class, the data in this case is called unbalanced data. In a credit dataset, an unbalanced dataset often means that the number of samples in the default dataset is much smaller than the number of samples in the non-default dataset. This phenomenon will lead to a decrease in the classification effect of machine learning, and thus fail to effectively identify defaulting customers.

[0006] The current credit risk assessment method based on machine learning ignores the imbalanced characteristics of the data set categories. The cleaned imbalanced category data set is input into the constructed machine learning classifier for training, resulting in a low degree of recognition of minority class samples, namely defaulting customers. Summary of the invention

[0007] In response to the above problems, the present invention provides a credit risk assessment method and system based on unbalanced data processing. Through data mining and machine learning methods, the unbalanced category data of credit customers is balanced based on the unbalanced data processing method, and a credit risk assessment model is trained to solve the problem of unbalanced category classification of credit data sets, avoid the situation where the prediction accuracy of minority class samples is poor, and improve the credit risk assessment model's recognition accuracy of defaulting customers.

[0008] To achieve the above-mentioned purpose, the present invention provides a credit risk assessment method based on unbalanced data processing, comprising: upon receiving a credit application request initiated by a user through a client, obtaining customer information filled in by the user; based on the customer information, obtaining characteristic variables in the credit data of the user; inputting the characteristic variables into a trained credit risk assessment model based on unbalanced data processing; judging whether to approve the user's credit request based on the prediction result output by the credit risk assessment model, and returning the judgment result to the client.

[0009] In the above technical scheme, preferably, the training method of the credit risk assessment model based on unbalanced data processing includes: obtaining a customer credit data sample set and performing data cleaning on the credit data sample set; using a random forest method to perform feature screening on the credit data sample set after data cleaning to obtain a feature data set; using an unbalanced data processing method to perform category balance on the feature data set to obtain a training data set; constructing an integrated classifier based on a logistic regression algorithm and an xgboost machine learning algorithm; inputting the training data set into the integrated classifier to perform machine learning on the training data, and obtaining the trained credit risk assessment model when the loss function reaches the minimum value.

[0010] In the above technical solution, preferably, the specific process of using the unbalanced data processing method to balance the categories of the feature data set includes: calculating the majority class sample center and the minority class sample center for the feature data set; increasing the oversampling weight for the parent sample close to the majority class sample center; selecting the neighboring samples close to the minority class sample center as auxiliary samples for oversampling; according to the oversampling number of each parent sample, interpolating between the parent sample and the auxiliary sample to generate a corresponding number of new samples, and fusing the new samples with the feature data set to generate a balanced data set and output it.

[0011] In the above technical solution, preferably, the specific process of calculating the majority class sample center and the minority class sample center includes: normalizing the data in the feature data set; dividing the normalized feature data set into a majority class data set and a minority class data set; calculating the number of samples in the majority class data set, the number of samples in the minority class data set, and the number of minority class samples to be generated; calculating the majority class sample center based on the majority class data set and the number of samples, and calculating the minority class sample center based on the minority class data set and the number of samples.

[0012] In the above technical solution, preferably, the step of increasing the oversampling weight for the parent sample close to the center of the majority class sample specifically includes: selecting samples in the minority class data set as parent samples, and adding them to the parent sample set; traversing the parent sample set, and calculating the Euclidean distance from each parent sample to the center of the majority class sample; calculating the oversampling weight of each parent sample according to the Euclidean distance, and adding it to the weight set; traversing the weight set, and calculating the oversampling number of each parent sample according to the product of the oversampling weight and the number of minority class samples to be generated.

[0013] In the above technical solution, preferably, the specific process of selecting the neighboring samples close to the center of the minority class sample as auxiliary samples for oversampling includes: using the KNN algorithm to obtain the minority class K nearest neighbor set of the parent sample; traversing the K nearest neighbor set, calculating the Euclidean distance of each sample in the K nearest neighbor set to the center of the minority class sample, and adding it to the distance set; sorting the distance set from small to large, and selecting the sample corresponding to the smallest Euclidean distance in the distance set as the auxiliary sample.

[0014] In the above technical solution, preferably, the credit data set includes characteristic variables and target variables, the characteristic variables are credit-related data of the credit user, and the target variable is a value representing whether the credit user is in default.

[0015] The present invention also proposes a credit risk assessment system based on unbalanced data processing, which uses the credit risk assessment method based on unbalanced data processing proposed in any one of the above technical solutions, including: a client and a server, the client including a credit application module and a result output module, the server including an information acquisition module, a credit risk assessment model and a result prediction module; the credit application module is used to receive a user's credit application request and obtain customer information filled in by the user, and send the customer information to the server; the information acquisition module obtains characteristic variables in the user's credit data according to the customer information, and inputs the characteristic variables into the credit risk assessment model; the credit risk assessment model outputs the user's credit risk probability according to the characteristic variables; the result prediction module determines whether to pass the user's credit request according to the credit risk probability, and sends the judgment result to the result output module.

[0016] In the above technical solution, preferably, the construction system of the credit risk assessment model includes: a data cleaning module, a feature screening module, an unbalanced classification processing module and a model construction module; the data cleaning module is used to obtain a customer credit data sample set, and perform data cleaning on the credit data sample set, and process missing values; the feature screening module is used to select important features in the credit data sample set after data cleaning as input features to obtain a feature data set; the unbalanced classification processing module uses an unbalanced data processing method to perform category balance on the feature data set to obtain a training data set; the model construction module constructs an integrated classifier based on the logistic regression algorithm and the xgboost machine learning algorithm, and inputs the training data set into the integrated classifier for training and learning to obtain the credit risk assessment model.

[0017] In the above technical solution, preferably, the imbalanced classification processing module is specifically used for:

[0018] Normalizing the data in the feature data set; dividing the normalized feature data set into a majority class data set and a minority class data set; calculating the number of samples in the majority class data set, the number of samples in the minority class data set, and the number of minority class samples to be generated; calculating the majority class sample center based on the majority class data set and the number of samples, and calculating the minority class sample center based on the minority class data set and the number of samples;

[0019] Select samples in the minority class data set as parent samples and add them to the parent sample set; traverse the parent sample set and calculate the Euclidean distance from each parent sample to the center of the majority class sample; calculate the oversampling weight of each parent sample according to the Euclidean distance and add it to the weight set; traverse the weight set and calculate the oversampling number of each parent sample according to the product of the oversampling weight and the number of minority class samples to be generated;

[0020] Obtain the minority class K nearest neighbor set of the parent sample using the KNN algorithm; traverse the K nearest neighbor set, calculate the Euclidean distance of each sample in the K nearest neighbor set to the center of the minority class sample, and add it to the distance set; sort the distance set from small to large, and select the sample corresponding to the smallest Euclidean distance in the distance set as the auxiliary sample;

[0021] According to the oversampling amount of each parent sample, a corresponding number of new samples are generated by interpolation between the parent sample and the auxiliary sample, and the new samples are fused with the feature data set to generate a balanced data set and output it.

[0022] Compared with the prior art, the beneficial effects of the present invention are as follows: through data mining and machine learning methods, the unbalanced category data of credit customers is balanced based on the unbalanced data processing method, and a credit risk assessment model is trained to solve the problem of unbalanced category classification of credit data sets, avoid the situation where the prediction accuracy of minority class samples is poor, and improve the recognition accuracy of the credit risk assessment model for defaulting customers. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flow chart of a credit risk assessment method based on unbalanced data processing disclosed in an embodiment of the present invention;

[0024] Figure 2 A flow chart of a method for training a credit risk assessment model based on unbalanced data processing disclosed in an embodiment of the present invention;

[0025] Figure 3 A schematic flow chart of an unbalanced data processing method disclosed in an embodiment of the present invention;

[0026] Figure 4 A schematic diagram of the structure of a credit risk assessment model based on unbalanced data processing disclosed in an embodiment of the present invention;

[0027] Figure 5 A schematic diagram of the structure of a credit risk assessment model training system disclosed in an embodiment of the present invention.

[0028] In the figure, the corresponding relationship between each component and the reference numeral is as follows:

[0029] 1. Client; 11. Credit application module; 12. Result output module; 2. Server; 21. Information acquisition module; 22. Credit risk assessment model; 23. Result prediction module; 31. Data cleaning module; 32. Feature screening module; 33. Imbalanced classification processing module; 34. Model building module. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0032] like Figure 1 As shown, a credit risk assessment method based on unbalanced data processing provided by the present invention includes: upon receiving a credit application request initiated by a user through a client, obtaining customer information filled in by the user; based on the customer information, obtaining feature variables in the user's credit data; inputting the feature variables into a trained credit risk assessment model based on unbalanced data processing; judging whether to approve the user's credit request based on the prediction result output by the credit risk assessment model, and returning the judgment result to the client.

[0033] In this embodiment, the unbalanced category data of credit customers are balanced based on the unbalanced data processing method through data mining and machine learning methods, and a credit risk assessment model is trained to solve the problem of unbalanced category classification of credit data sets, avoid the situation where the prediction accuracy of minority class samples is poor, and improve the recognition accuracy of default customers by the credit risk assessment model.

[0034] Specifically, the method builds a credit risk assessment model based on data mining technology and machine learning classification algorithm. The client sends customer credit data to the credit risk assessment model, and the credit risk assessment model returns to the client the default probability of the credit customer's loan.

[0035] like Figure 2As shown, in the above embodiment, preferably, the training method of the credit risk assessment model based on unbalanced data processing includes: obtaining a customer credit data sample set, and performing data cleaning on the credit data sample set; using a random forest method to perform feature screening on the credit data sample set after data cleaning to obtain a feature data set; using an unbalanced data processing method to perform category balance on the feature data set to obtain a training data set; constructing an integrated classifier based on a logistic regression algorithm and an xgboost machine learning algorithm; inputting the training data set into the integrated classifier to perform machine learning on the training data, and obtaining a trained credit risk assessment model when the loss function reaches a minimum value.

[0036] Specifically, the acquired credit data set is cleaned to prevent unclean data from causing errors in the analysis process and errors in the results. Then, a feature screening process is performed, and the random forest method is used to screen out features that have a significant impact on the model prediction results. Then, an unbalanced classification process is performed, and the unbalanced classification processing method based on the center of the sample space is used to balance the categories, so as to obtain a balanced data set. An integrated classifier based on logistic regression and xgboost machine learning algorithms is constructed, and the data set is input into the integrated classifier as training data for learning, and finally a trained credit risk assessment model is obtained. Among them, adding the unbalanced classification algorithm to the data preprocessing stage of the credit risk assessment model improves the accuracy of the machine learning model, and the data categories are balanced in the data preprocessing stage so that the model has similar classification effects for data of different categories, thereby avoiding the situation where the prediction accuracy of minority class samples is poor. In addition, the unbalanced data processing method is a weighted oversampling algorithm based on the center of the sample space, and the minority class sample center and the majority class sample center are added to the Smote unbalanced classification algorithm to solve the distribution of category overlap and small disjunct items that may exist in the minority class sample space that affects the accuracy of the Smote method.

[0037] like Figure 3 As shown, in the above embodiment, preferably, the specific process of using the unbalanced data processing method to balance the categories of the feature data set includes: based on the improvement of the Smote algorithm, calculating the majority class sample center and the minority class sample center for the feature data set; increasing the oversampling weight for the parent sample close to the majority class sample center (the minority class sample used to synthesize the new sample in the Smote algorithm); selecting the neighbor samples close to the minority class sample center (the k nearest neighbor samples of the parent sample in the Smote algorithm) as auxiliary samples (the minority class samples used to synthesize the new sample with the parent sample in the Smote algorithm); according to the oversampling number of each parent sample, interpolating between the parent sample and the auxiliary sample to generate a corresponding number of new samples, and fusing the new samples with the feature data set to generate a balanced data set and output it.

[0038] Specifically, firstly, since the algorithm generates new samples without reducing the number of samples, the information loss caused by deleting samples is avoided. Secondly, since it is difficult to identify boundary samples, a larger oversampling weight is given to the parent sample close to the center of the majority class sample, and the number of boundary minority class samples is increased, which can increase the recognition degree of minority class samples. Then, since the new samples generated by considering the boundary samples and small disjunct samples in the minority class cluster as auxiliary samples are easy to fall into the majority class sample area, and the boundary samples and small disjunct samples in the minority class samples are far away from the center of the minority class samples relative to other minority class samples, the neighboring samples close to the center of the minority class samples are selected as auxiliary samples, thereby avoiding the possibility of selecting boundary samples and small disjunct samples as auxiliary samples, avoiding the synthesis of noise samples, and improving the quality of the synthesized samples.

[0039] In the above embodiment, preferably, the specific process of calculating the majority class sample center and the minority class sample center includes: normalizing the data in the feature data set; dividing the normalized feature data set into a majority class data set and a minority class data set; calculating the number of samples in the majority class data set, the number of samples in the minority class data set, and the number of minority class samples to be generated; calculating the majority class sample center based on the majority class data set and the number of samples, and calculating the minority class sample center based on the minority class data set and the number of samples.

[0040] In the above embodiment, preferably, increasing the oversampling weight for the parent sample close to the center of the majority class sample specifically includes: selecting samples in the minority class data set as parent samples, and adding them to the parent sample set; traversing the parent sample set, and calculating the Euclidean distance from each parent sample to the center of the majority class sample; calculating the oversampling weight of each parent sample according to the Euclidean distance, and adding it to the weight set; traversing the weight set, and calculating the oversampling number of each parent sample according to the product of the oversampling weight and the number of minority class samples to be generated.

[0041] In the above embodiment, preferably, the specific process of selecting the neighboring samples close to the center of the minority class sample as the auxiliary samples includes: using the KNN algorithm to obtain the minority class K neighbor set of the parent sample; traversing the K neighbor set, calculating the Euclidean distance of each sample in the K neighbor set to the center of the minority class sample, and adding it to the distance set; sorting the distance set from small to large, and selecting the sample corresponding to the smallest Euclidean distance in the distance set as the auxiliary sample.

[0042] In the above embodiment, preferably, the credit data set is a collection of credit samples in a table form. Each row corresponds to a credit sample of a certain credit customer, and each column represents a specific variable. The credit data set includes two types: feature variables and target variables. Feature variables are various data related to credit users, and there is only one target variable, which is a value that characterizes whether the credit sample user has defaulted. According to whether the target variable sample has defaulted, the sample can be divided into two types. If the value of the target variable is default, the sample is a default sample, and if the value of the target variable is no default, the sample is a non-default sample.

[0043] like Figure 4 As shown, the present invention also proposes a credit risk assessment system based on unbalanced data processing, which applies the credit risk assessment method based on unbalanced data processing proposed in any one of the above embodiments, including: a client 1 and a server 2, the client 1 includes a credit application module 11 and a result output module 12, the server 2 includes an information acquisition module 21, a credit risk assessment model 22 and a result prediction module 23; the credit application module 11 is used to receive the user's credit application request and obtain the customer information filled in by the user, and send the customer information to the server 2; the information acquisition module 21 obtains the characteristic variables in the user's credit data according to the customer information, and inputs the characteristic variables into the credit risk assessment model 22; the credit risk assessment model 22 outputs the user's credit risk probability according to the characteristic variables; the result prediction module 23 determines whether the user's credit request is passed according to the credit risk probability, and sends the judgment result to the result output module 12.

[0044] In this embodiment, the unbalanced category data of the credit customer is balanced based on the unbalanced data processing method through data mining and machine learning methods, and the credit risk assessment model 22 is trained to predict the credit data of the user based on the credit risk assessment model 22, thereby improving the recognition accuracy of the credit risk assessment model 22 for default customers. Specifically, the system constructs the credit risk assessment model 22 based on data mining technology and machine learning classification algorithms, and the client 1 sends the customer credit data to the credit risk assessment model 22, and the credit risk assessment model 22 returns the default probability of the credit customer's loan to the client 1.

[0045] like Figure 5As shown, in the above embodiment, preferably, the construction system of the credit risk assessment model 22 includes: a data cleaning module 31, a feature screening module 32, an unbalanced classification processing module 33 and a model building module 34; the data cleaning module 31 is used to obtain a customer credit data sample set, and perform data cleaning on the credit data sample set, and process missing values; the feature screening module 32 is used to select important features in the credit data sample set after data cleaning as input features to obtain a feature data set; the unbalanced classification processing module 33 uses an unbalanced data processing method to balance the feature data set to obtain a training data set; the model building module 34 constructs an integrated classifier based on the logistic regression algorithm and the xgboost machine learning algorithm, and inputs the training data set into the integrated classifier for training and learning to obtain a credit risk assessment model 22.

[0046] Specifically, the acquired credit data set is cleaned to prevent unclean data from causing errors in the analysis process and errors in the results. Then, a feature screening process is performed, and the random forest method is used to screen out features that have a significant impact on the model prediction results. Then, an unbalanced classification process is performed, and the unbalanced classification processing method based on the center of the sample space is used to balance the categories, so as to obtain a balanced data set. An integrated classifier based on logistic regression and xgboost machine learning algorithms is constructed, and the data set is input into the integrated classifier as training data for learning, and finally a trained credit risk assessment model 22 is obtained. Among them, adding the unbalanced classification algorithm to the data preprocessing stage of the credit risk assessment model 22 improves the accuracy of the machine learning model, and balancing the data categories in the data preprocessing stage makes the model have similar classification effects for data of different categories, thereby avoiding the situation where the prediction accuracy of minority class samples is poor. In addition, the unbalanced data processing method is a weighted oversampling algorithm based on the center of the sample space, and the minority class sample center and the majority class sample center are added to the Smote unbalanced classification algorithm to solve the distribution of category overlap and small disjunct items that may exist in the minority class sample space that affects the accuracy of the Smote method.

[0047] In the above embodiment, preferably, the imbalanced classification processing module 33 is specifically used for:

[0048] Normalize the data in the feature data set; divide the normalized feature data set into a majority class data set and a minority class data set; calculate the number of samples in the majority class data set, the number of samples in the minority class data set, and the number of minority class samples to be generated; calculate the majority class sample center based on the majority class data set and the number of samples, and calculate the minority class sample center based on the minority class data set and the number of samples;

[0049] Select samples from the minority class data set as parent samples and add them to the parent sample set; traverse the parent sample set and calculate the Euclidean distance from each parent sample to the center of the majority class sample; calculate the oversampling weight of each parent sample based on the Euclidean distance and add it to the weight set; traverse the weight set and calculate the oversampling number of each parent sample based on the product of the oversampling weight and the number of minority class samples to be generated;

[0050] Use the KNN algorithm to obtain the minority class K nearest neighbor set of the parent sample; traverse the K nearest neighbor set, calculate the Euclidean distance of each sample in the K nearest neighbor set to the center of the minority class sample, and add it to the distance set; sort the distance set from small to large, and select the sample corresponding to the smallest Euclidean distance in the distance set as the auxiliary sample;

[0051] According to the oversampling amount of each parent sample, a corresponding number of new samples are generated by interpolation between the parent sample and the auxiliary sample, and the new samples are fused with the feature data set to generate a balanced data set and output it.

[0052] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A credit risk assessment method based on unbalanced data processing, characterized in that: include: Upon receiving a credit application request initiated by a user through a client, obtaining customer information filled in by the user; According to the customer information, acquiring characteristic variables in the credit data of the user; Inputting the characteristic variables into the trained credit risk assessment model based on imbalanced data processing; Determining whether to approve the user's credit request based on the prediction result output by the credit risk assessment model, and returning the determination result to the client; The training method of the credit risk assessment model based on unbalanced data processing includes: Acquire a sample set of customer credit data, and perform data cleaning on the sample set of credit data; Using a random forest method to perform feature screening on the credit data sample set after data cleaning to obtain a feature data set; Using an unbalanced data processing method to balance the categories of the feature data set to obtain a training data set; Build an integrated classifier based on logistic regression algorithm and xgboost machine learning algorithm; Inputting the training data set into the integrated classifier to perform machine learning on the training data, and obtaining the trained credit risk assessment model when the loss function reaches a minimum value; The specific process of using the unbalanced data processing method to class balance the feature data set includes: The majority class sample center and the minority class sample center are calculated for the feature data set. The specific process includes: Normalizing the data in the feature data set; Dividing the normalized feature data set into a majority class data set and a minority class data set; Calculate the number of samples in the majority class data set, the number of samples in the minority class data set, and the number of minority class samples to be generated; The majority class sample center is calculated based on the majority class data set and the number of samples, and the minority class sample center is calculated based on the minority class data set and the number of samples; Add oversampling weights to parent samples close to the center of the majority class samples, including: Selecting samples from the minority class data set as parent samples and adding them to the parent sample set; Traversing the parent sample set, and calculating the Euclidean distance from each parent sample to the center of the majority class sample; Obtaining an oversampling weight for each parent sample according to the Euclidean distance calculation, and adding the oversampling weight to the weight set; Traversing the weight set, and calculating the oversampling quantity of each parent sample according to the product of the oversampling weight and the number of the minority class samples to be generated; Selecting neighboring samples close to the center of the minority class sample as auxiliary samples for oversampling, the specific process includes: Using the KNN algorithm to obtain the minority class K nearest neighbor set of the parent sample; Traversing the K nearest neighbor set, calculating the Euclidean distance of each sample in the K nearest neighbor set to the center of the minority class sample, and adding the distance to the distance set; The distance set is sorted from small to large, and a sample corresponding to the smallest Euclidean distance in the distance set is selected as an auxiliary sample; According to the oversampling amount of each parent sample, a corresponding number of new samples are generated by interpolation between the parent sample and the auxiliary sample, and the new samples are fused with the feature data set to generate a balanced data set and output it.

2. The credit risk assessment method based on unbalanced data processing according to claim 1, characterized in that: The credit data set includes characteristic variables and target variables, wherein the characteristic variables are credit-related data of the credit user, and the target variable is a value indicating whether the credit user has defaulted.

3. A credit risk assessment system based on unbalanced data processing, applying the credit risk assessment method based on unbalanced data processing according to any one of claims 1 to 2, characterized in that: include: Client and server, the client includes a credit application module and a result output module, the server includes an information acquisition module, a credit risk assessment model and a result prediction module; The credit application module is used to receive a user's credit application request and obtain the customer information filled in by the user, and send the customer information to the server; The information acquisition module acquires characteristic variables in the credit data of the user according to the customer information, and inputs the characteristic variables into the credit risk assessment model; The credit risk assessment model outputs the credit risk probability of the user according to the characteristic variables; The result prediction module determines whether to approve the user's credit request based on the credit risk probability, and sends the determination result to the result output module; The credit risk assessment model construction system includes: a data cleaning module, a feature screening module, an imbalanced classification processing module and a model construction module; The data cleaning module is used to obtain a sample set of customer credit data, and perform data cleaning on the sample set of credit data to process missing values; The feature screening module is used to select important features in the credit data sample set after data cleaning as input features to obtain a feature data set; The imbalanced classification processing module performs category balance on the feature data set using an imbalanced data processing method to obtain a training data set; The model building module constructs an integrated classifier based on the logistic regression algorithm and the xgboost machine learning algorithm, and inputs the training data set into the integrated classifier for training and learning to obtain the credit risk assessment model; The imbalanced classification processing module is specifically used for: Normalizing the data in the feature data set; Dividing the normalized feature data set into a majority class data set and a minority class data set; Calculate the number of samples in the majority class data set, the number of samples in the minority class data set, and the number of minority class samples to be generated; The majority class sample center is calculated based on the majority class data set and the number of samples, and the minority class sample center is calculated based on the minority class data set and the number of samples; Selecting samples from the minority class data set as parent samples and adding them to the parent sample set; Traversing the parent sample set, and calculating the Euclidean distance from each parent sample to the center of the majority class sample; Obtaining an oversampling weight for each parent sample according to the Euclidean distance calculation, and adding the oversampling weight to the weight set; Traversing the weight set, and calculating the oversampling quantity of each parent sample according to the product of the oversampling weight and the number of the minority class samples to be generated; Using the KNN algorithm to obtain the minority class K nearest neighbor set of the parent sample; Traversing the K nearest neighbor set, calculating the Euclidean distance of each sample in the K nearest neighbor set to the center of the minority class sample, and adding the distance to the distance set; The distance set is sorted from small to large, and a sample corresponding to the smallest Euclidean distance in the distance set is selected as an auxiliary sample; According to the oversampling amount of each parent sample, a corresponding number of new samples are generated by interpolation between the parent sample and the auxiliary sample, and the new samples are fused with the feature data set to generate a balanced data set and output it.