Risk assessment method and device, computer equipment and storage medium
By introducing a multi-task processing module and attention mechanism into the risk control model, risk assessments are conducted separately for new and old users, which solves the problem of difficulty in predicting new users and overfitting of the risk control model, and improves the accuracy and accuracy of risk assessment. The generalization ability of the model reduces maintenance costs.
Patent Information
- Application Number
- CN202310248997.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-17
AI Technical Summary
In financial credit scenarios, the risk control model lacks a large number of sample data of intercepted users, resulting in obvious deviations in training and prediction. It is especially difficult to predict risks for new users, and conventional single-task modeling is prone to overfitting. Affects model accuracy and maintenance costs.
Propose a risk assessment method that uses the multi-task processing module in the pre-trained risk control model to process the characteristic data of the user to be evaluated, conduct risk assessments for new users and old users respectively, and use multi-task learning and attention mechanisms to improve the model It improves the generalization ability and feature extraction accuracy, avoids overfitting and reduces the number of models.
It improves the accuracy of the risk control model in risk prediction for new and old users, reduces the number of models and maintenance costs, avoids the over-fitting phenomenon caused by new and old user data modeling, and enhances the utilization efficiency and effectiveness of external credit characteristics. Information fusion of user portrait characteristics.
Smart Images

Figure CN118657598A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a risk assessment method, apparatus, computer equipment and storage medium. Background Art
[0002] In the financial credit scenario, the credit business is roughly divided into several links, such as marketing acquisition, pre-loan credit, and loan disbursement. Each link has certain risk control measures to screen the customer base. In the entire credit chain, the risk control system is like a sieve that filters layer by layer to obtain relatively high-quality customers. The credit approval process generally includes anti-fraud strategies, policy rules, credit approval strategies, model scoring screening and other links, and finally decides whether to lend. In the credit business of the Internet finance industry, the current credit approval rate is roughly 10% to 30%. Among them, the credit approval rate of about 10% is a more common figure, but some of them will be intercepted by the loan application strategy, so the final loan users are often less than 10%.
[0003] In related technologies, by obtaining good and bad labels of loan user samples, the repayment status of a large number of rejected users cannot be obtained. Conventional risk control modeling methods only use this small number of users to train the model, which makes it difficult to predict risks when the model is used online, especially for new users. Summary of the invention
[0004] The present application proposes a risk assessment method, apparatus, computer equipment and storage medium to improve the accuracy of risk prediction of a risk control model in an actual risk prediction process.
[0005] In a first aspect, an embodiment of the present application provides a risk assessment method, the method comprising: obtaining user feature data of a user to be assessed; if it is determined that the user to be assessed has not initiated a loan application, processing the user feature data through a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be assessed, the first multi-task processing module being trained based on a first training sample set, the first training sample set including a sample feature data set corresponding to a first sample user, the first sample user being a user who has initiated a loan application once; if it is determined that the user to be assessed has initiated a loan application, processing the user feature data through a second multi-task processing module in the pre-trained risk control model to obtain a risk assessment result for the user to be assessed, the second multi-task processing module being trained based on a second training sample set, the second training sample set including a sample feature data set corresponding to a second sample user, the second sample user being a user who has initiated multiple loan applications.
[0006] In a second aspect, an embodiment of the present application provides a risk assessment device, the device comprising: a user feature acquisition module, a first risk assessment module and a second risk assessment module. The user feature acquisition module is used to acquire user feature data of a user to be assessed; the first risk assessment module is used to process the user feature data through a first multi-task processing module in a pre-trained risk control model if it is determined that the user to be assessed has not initiated a loan application, and obtain a risk assessment result for the user to be assessed, the first multi-task processing module is trained based on a first training sample set, the first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once; the second risk assessment module is used to process the user feature data through a second multi-task processing module in the pre-trained risk control model if it is determined that the user to be assessed has initiated a loan application, and obtain a risk assessment result for the user to be assessed, the second multi-task processing module is trained based on a second training sample set, the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
[0007] In a third aspect, an embodiment of the present application provides a computer device, comprising: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the above method.
[0009] In the solution provided by the present application, user feature data of the user to be evaluated is obtained; if it is determined that the user to be evaluated has not initiated a loan application, the user feature data is processed by a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, and the first multi-task processing module is trained based on a first training sample set, and the first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once; if it is determined that the user to be evaluated has initiated a loan application, the user feature data is processed by a second multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, and the second multi-task processing module is trained based on a second training sample set, and the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications. In this way, the risk control model includes separate risk assessment modules for new and old users. In other words, the risk control model can capture the different characteristics of new and old users in the same application behavior, which is more conducive to the accuracy of loan risk prediction. Moreover, one model can take into account the risk prediction of new and old users at the same time, avoiding overfitting when new and old users use their own data modeling, reducing the number of models and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 A flow chart of a risk assessment method provided in an embodiment of the present application is shown.
[0012] Figure 2 A schematic flow chart of a risk assessment method provided in another embodiment of the present application is shown.
[0013] Figure 3 A model architecture diagram of a risk control model provided in an embodiment of the present application is shown.
[0014] Figure 4 Shows Figure 2 A flowchart of the sub-steps of step S260 in one implementation manner.
[0015] Figure 5 Shows Figure 2 A flowchart of the sub-steps of step S270 in one implementation manner.
[0016] Figure 6A flow chart of a method for training a risk control model provided in an embodiment of the present application is shown.
[0017] Figure 7 Shows Figure 6 A flowchart of the sub-steps of step S330 in one implementation manner.
[0018] Figure 8 It is a block diagram of a risk assessment device provided according to an embodiment of the present application.
[0019] Fig. 9 It is a block diagram of a computer device according to an embodiment of the present application for executing the risk assessment method according to an embodiment of the present application.
[0020] Fig.10 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing a risk assessment method according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0022] It should be noted that in some processes described in the specification, claims and the above-mentioned drawings of the present application, multiple operations that appear in a specific order are included, and these operations may not be executed or executed in parallel in the order in which they appear in this article. The sequence numbers of operations such as S110, S120, etc. are only used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or less operations, and these operations may be executed in sequence or in parallel. And, the terms "first", "second", etc. in the specification, claims and the above-mentioned drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or sub-modules is not necessarily limited to those steps or sub-modules explicitly listed, but may include other steps or sub-modules that are not explicitly listed or that are inherent to these processes, methods, products, or devices.
[0023] In the actual application of the risk control model, since it faces all applicants, the training samples used by the risk control model in the training phase lack sample data of a large number of users who are blocked in the loan strategy. This causes a significant deviation between the model training space and the online prediction and reasoning space. The biased samples will cause the model itself to be biased, and will continue to accumulate during the iteration process, making the model more and more biased. For new users, the lack of historical lending behavior data will make their risk prediction more difficult. Using conventional single-task modeling solutions will result in large deviations in risk prediction.
[0024] The inventor proposes a risk assessment method, device, computer equipment and storage medium. For those who have not initiated a loan application, risk assessment is performed through a first multi-task processing module in a pre-trained risk control model; for those who have initiated a loan application, risk assessment is performed through a second multi-task processing module in a pre-trained risk control model. The risk assessment method provided in the embodiment of the present application is described in detail below.
[0025] Please refer to Figure 1 , Figure 1 A flow chart of a risk assessment method provided in an embodiment of the present application. Figure 1 The risk assessment method provided in the embodiment of the present application is described in detail. The risk assessment method may include the following steps:
[0026] Step S110: Obtain user characteristic data of the user to be evaluated.
[0027] In this embodiment, the user to be evaluated can be understood as the user who currently initiates the loan application, and the user characteristic data of the user to be evaluated can be extracted based on the basic user information and / or historical behavior information of the user. Among them, the basic user information at least includes one or more of the information such as name, gender, age, marital status, work situation, education level, real estate under the name, family information (work situation of parents, spouse, children), etc.; the historical behavior information at least includes one or more of the information such as historical loan records, historical income records, historical transaction records, and historical financial records, etc., and this embodiment does not limit this.
[0028] Step S120: If it is determined that the user to be evaluated has not initiated a loan application, the user feature data is processed by a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, wherein the first multi-task processing module is trained based on a first training sample set, and the first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once.
[0029] Step S130: If it is determined that the user to be evaluated has initiated a loan application, the user feature data is processed by a second multi-task processing module in the pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, wherein the second multi-task processing module is trained based on a second training sample set, and the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
[0030] In this embodiment, the pre-trained risk control model includes a first multi-task processing module and a second multi-task processing module. Among them, multi-task learning can learn information from different tasks to related fields, and then share the information in the model based on this part of the field, and learn from each other and share with each other through multiple tasks, so as to improve the generalization ability and effect of the entire model. Although users who are rejected in the credit application stage and the withdrawal application stage do not have overdue labels, they have passed labels and rejected labels, and these labels themselves are strongly related to risks. Therefore, if these labels are combined for training, multi-task learning can be constituted. Based on this, the multi-task processing module can at least include task processing modules for processing credit application prediction tasks and withdrawal application prediction tasks. In other words, the risk control model is to train the task processing module corresponding to the credit application prediction task and the task processing module corresponding to the withdrawal application prediction task, and then evaluate the user's lending risk based on the credit application prediction results and the withdrawal application prediction results.
[0031] Among them, the first multi-task processing module is obtained by training based on the first training sample set, and the first training sample set includes a sample feature data set corresponding to the first sample user, and the first sample user is a user who has only initiated a loan application once; in other words, the first multi-task processing module is a risk prediction module for new users. The second multi-task processing module is obtained by training based on the second training sample set, and the second training sample set includes a sample feature data set corresponding to the second sample user, and the second sample user is a user who has initiated multiple loan applications; in other words, the second multi-task processing module is a risk prediction module for old users. In other words, the tasks that the risk control model needs to learn are changed from <credit application, withdrawal application> to <new user credit application, new user withdrawal application, old user credit application, old user withdrawal application>, and each task is split into separate modeling tasks for new and old users. In this way, the division of learning tasks is more refined, and the model can capture the different characteristics of new and old users in the same application behavior, which is more conducive to the accuracy of loan risk prediction. In addition, the first multi-task processing module and the second multi-task processing module share the same feature extraction layer. In other words, new and old users share the feature extraction layer at the bottom of the model, which enables more accurate expression of the relevant features of new users and improves the risk prediction capability of the risk control model for new users. In addition, using one model can take into account the risk prediction of new and old users at the same time, avoiding overfitting when new and old users use their own data to model, and reducing the number of models and maintenance costs.
[0032] Based on this, after obtaining the user feature data of the user to be evaluated, it can be further determined whether the user to be evaluated has initiated a loan application. If the user has not initiated a loan application, the first task processing module in the risk control model is called to perform risk assessment on the user to be evaluated; if the user has initiated a loan application, the second task processing module in the risk control model is called to perform risk assessment on the user to be evaluated. In this way, whether it is for new or old users, a better loan risk assessment can be achieved.
[0033] In some implementations, the user tag of the user to be evaluated can be obtained. If the user tag is a new user tag, the user to be evaluated is determined to be a user who has not initiated a loan application; if the user tag is an old user tag, the user to be evaluated is determined to be a user who has initiated a loan application. In this way, through the user tag, it can be quickly determined whether the user is a user who has initiated a loan application.
[0034] In other implementations, it is also possible to determine whether the user characteristic data of the user to be evaluated includes loan characteristic data related to historical loans; if the loan characteristic data is included, the user to be evaluated is determined to be a user who has initiated a loan application; if the loan characteristic data is not included, the user to be evaluated is determined to be a user who has not initiated a loan application. In this way, it is possible to more accurately determine whether the user is a user who has initiated a loan application.
[0035] In this embodiment, the risk assessment result output by the risk control model can be a risk assessment value, which can be a probability value or a risk assessment score, and this embodiment does not limit this. Based on this, it can be determined whether the risk assessment value is greater than the first target threshold. If it is greater than, the user to be assessed is determined to be a high-risk user, and a high-risk user can be understood as a user who is prone to overdue repayment after borrowing; if it is less than, the user to be assessed is determined to be a low-risk user, and a low-risk user can be understood as a user who will repay on time after receiving the loan. Optionally, other thresholds other than the first target threshold can also be set, such as the second target threshold, etc., that is, the user's risk level is further subdivided into high-risk users, medium-risk users, and low-risk users.
[0036] In this embodiment, the risk control model includes separate risk assessment modules for new and old users, which can capture the different characteristics of new and old users in the same application behavior, and is more conducive to the accuracy of loan risk prediction for new and old users; at the same time, only one model can be used to take into account the risk prediction of new and old users at the same time, avoiding overfitting when new and old users use their own data modeling, and reducing the number of models and maintenance costs.
[0037] Please refer to Figure 2 , Figure 2 A flow chart of a risk assessment method provided in another embodiment of the present application. Figure 2 The risk assessment method provided in the embodiment of the present application is described in detail. The risk assessment method may include the following steps:
[0038] Step S210: Acquire user data of the user to be evaluated.
[0039] In this embodiment, the user to be evaluated is a user who initiates a loan application on the target lending platform. Correspondingly, the user data of the user to be evaluated can be obtained from the target lending platform to obtain relevant data of the user to be evaluated. In addition, the external credit data of the user to be evaluated and the historical usage data of various applications in the electronic device used by the user can also be obtained. This embodiment does not limit this. In this way, more comprehensive user data of the user to be evaluated can be obtained to improve the accuracy of risk prediction.
[0040] Step S220: extracting features from the user data using a first feature extraction unit to obtain first feature data.
[0041] In this embodiment, the risk control model can be obtained by training based on a model improved from a multi-gate mixture-of-experts (MMOE) model. For details, please refer to Figure 3 , Figure 3 The model architecture diagram of the risk control model in this application is shown. The MMOE model aims to learn how to weigh the relationship between task-specific objectives and tasks (inter-task relationships) from data. The sub-model of the mixed expert structure (MoE) is shared between all tasks to adapt to multi-task learning, and it also has a trainable gating network (GatingNetwork) to optimize each task. Among them, the MMoE model extracts features of different directions through multiple expert networks. These expert networks are generally composed of DNN structures, and the embedding structure is shared at the bottom of the expert network. Each expert network can have different effects on different tasks. Above the expert network are towers with different optimization objectives, which are used for multi-task objective learning optimization.
[0042] Based on this, the risk control model may include a first feature extraction module, which includes a first feature extraction unit and multiple second feature extraction units. The first feature extraction unit includes an initial feature extraction layer and the above-mentioned Embedding layer, wherein the initial feature extraction layer is used to perform initial feature extraction on user data to obtain multiple discrete user feature variables; further, the discrete variables are converted into continuous variables through the Embedding layer, and the high-dimensional sparse feature variables are converted into low-dimensional dense feature variables without losing data information, that is, the first feature data is a low-dimensional dense feature variable.
[0043] Step S230: performing secondary feature extraction on the first feature data by each of the second feature extraction units to obtain second feature data output by each of the second feature extraction units as the user feature data.
[0044] Among them, the second feature extraction unit is the expert network mentioned above. The expert network is used to form an expert network for different tasks based on the same representation input, using different network structures and parameters; the expert network can be a multi-layer perceptron structure (Multiple Layer Perceptron, MLP), that is, a multi-layer fully connected neural network. The unprovided expert network is used to extract different second feature data from the first feature data. In other words, there are differences in the network structure and parameters of each of the above-mentioned second feature extraction units, and correspondingly, there are also differences between the second feature data output by each second feature extraction unit.
[0045] Step S240: If it is determined that the user to be evaluated has not initiated a loan application, the first feature fusion unit is used to perform weighted fusion on the second feature data output by each of the second feature extraction units to obtain third feature data output by the first feature fusion unit.
[0046] In this embodiment, the first multi-task processing module is used to predict the first target task and the second target task, wherein the first target task is Figure 3 The second objective task is to predict the credit application of new users in Figure 3 Correspondingly, the first multi-task processing module includes the following: Figure 3 The third feature fusion unit shown, the first feature fusion unit corresponding to the first target task, the first task processing unit, the second feature fusion unit corresponding to the second target task, and the second task processing unit, the aforementioned first feature data includes multiple sub-feature data.
[0047] Among them, the first feature fusion unit is the aforementioned gated network, which refers to the use of a gated network as a weight control for the output of an expert network during multi-task learning. That is, it is used to control the probability distribution of the input weights of different expert networks, and to combine different expert networks with different weights, and then weighted fuse the second feature data output by different expert networks, and then input them into different tower networks for task processing. Based on this, more suitable third feature data can be extracted for the first target task to improve the prediction accuracy for the first target task.
[0048] Step S250: Using the third feature fusion unit, determine the first weight information corresponding to each of the sub-feature data under the first target task, and based on the first weight information corresponding to each of the sub-feature data, perform weighted fusion on the third feature data and multiple sub-feature data to obtain fourth feature data corresponding to the first target task.
[0049] It can be understood that the first feature data extracted by the first feature extraction unit can be divided into internal user features and external credit-related features from the business logic. Among them, the internal user features include the associated feature data of the user to be evaluated in the target lending platform where the loan application is currently initiated; the external credit-related features include the feature information of the user's loan record on other lending platforms and the public personal credit feature information of the bank for the user.
[0050] However, since the user to be evaluated is a new user, the new user's internal user characteristics are indeed more serious. At this time, in the process of evaluating the risk situation of the new user, the new user's external credit-related characteristics are particularly important. Therefore, based on the existing MMOE model architecture, a third feature fusion unit is added to the task processing module for new users. Among them, the third feature fusion unit is the attention network layer. Among them, the purpose of the attention network layer is to select the more critical information for the current task goal from a lot of information and focus on it; the essential idea is to selectively filter out a small amount of important information from a large amount of information, and focus on these important information, ignoring most of the unimportant information. The process of focusing is quantified by the weight coefficient. The larger the weight, the more focused it is on its corresponding value. That is, the weight represents the importance of the information, and the value is the corresponding information.
[0051] Based on this, the third feature fusion unit can be used to determine the first weight information of each sub-feature data in the multiple sub-feature data in the first feature data under the first target task, and the second weight information of the third feature data output by the first feature fusion unit; and based on the first weight information and the second weight information, the first feature data and the third feature data are weightedly fused to obtain the fourth feature data corresponding to the first target task.
[0052] Specifically, the weighted external features can be calculated by the following formula:
[0053]
[0054] Among them, Z is used to characterize the weighted external features, Q is the third feature data and parameter matrix W Q The product of is an n-dimensional vector Q, where W Q It is one of the parameters that need to be learned in the model training phase; K is the external feature and parameter matrix W in the first feature data K The product of is an n-dimensional vector K, where W K It is also one of the parameters that need to be learned in the model training phase; V is the external feature and parameter matrix W in the first feature data V The product of is an n-dimensional vector V, where WV It is also one of the parameters that need to be learned during the model training phase.
[0055] Furthermore, the weighted external features are fused with the third feature data to obtain fourth feature data corresponding to the first target task.
[0056] It can be seen that if the processing task of the model at this time is a new user application, then Q at this time becomes the feature data output by the second feature fusion unit and W Q The product of , the calculation result of Z will also be different. In theory, it can truly change the weight of external features adaptively according to the task.
[0057] Step S260: input the fourth feature data into the first task processing unit to obtain an output result of the first task processing unit, wherein the output result includes a first probability value.
[0058] In this embodiment, the first task processing unit is the tower layer. The tower layer is generally a multi-layer perceptron structure, which performs nonlinear changes on the input and finally obtains the final output through sigmoid.
[0059] In this way, different weights are assigned to external features according to different current tasks, the effects of important features are adaptively amplified, and the effects of unimportant features are weakened, so that the feature data input to the current task processing unit is more in line with the feature data required by the current task, thereby improving the task processing accuracy of the current task processing unit. Taking the first task processing unit in step S260 as the current task processing unit as an example, the output result of the first task processing unit can represent whether the new user's credit application can be passed, that is, it can improve the prediction accuracy of the first task processing unit in predicting whether the user to be evaluated can pass the credit application.
[0060] In some other embodiments, the risk control model further includes a second feature extraction module, see Figure 4 , step S260 may include the contents of step S261 to step S263:
[0061] Step S261: extracting user portrait feature data of the user to be evaluated from the first feature data through the second feature extraction module.
[0062] The second feature extraction module can also be a multi-layer perceptron structure, and the user portrait feature data can be the feature data for labeling the user abstracted from the user attributes, user preferences, living habits, and user behaviors in the first feature data. That is, when changing the lock, the second feature extraction module can be regarded as a user portrait extraction module.
[0063] Step S262: Fusing the fourth feature data and the user portrait feature data to obtain eighth feature data.
[0064] Step S263: input the eighth characteristic data into the first task processing unit to obtain an output result of the first task processing unit.
[0065] Based on this, after obtaining the user portrait feature data of the user to be evaluated, the fourth feature data is further fused with the user portrait feature data to obtain the eighth feature data; and then the eighth feature data is input into the first task processing unit to obtain the corresponding output result. In this way, the influence of the user group characteristics on the application approval rate is measured, and the problem of information loss caused by the unilateral user features flowing layer by layer in the model structure is reduced, thereby improving the accuracy of risk prediction for new users.
[0066] Step S270: If the first probability value is greater than the first threshold, the risk assessment of the user to be assessed is performed using the second feature data output by the second feature fusion unit, the second task processing unit, and each of the second feature extraction units.
[0067] Optionally, if the first probability value is greater than the first threshold, it is determined that the user to be evaluated will be approved at the credit application stage; therefore, the second feature data output by the second feature fusion unit, the second task processing unit and each second feature extraction unit can be further utilized to predict the second target task for the user to be evaluated, that is, to predict whether the application for credit flow of the user to be evaluated can be approved; and based on the evaluation result of whether the application for credit flow can be approved, a risk assessment is performed on the user to be evaluated.
[0068] In some embodiments, the output result of the first task processing unit also includes some feature data, see Figure 5 , step S270 may include the contents of step S271 to step S275:
[0069] Step S271: If the first probability value is greater than the first threshold, the second feature fusion unit is used to perform weighted fusion on the second feature data output by each of the second feature extraction units to obtain the fifth feature data output by the second feature fusion unit.
[0070] In this embodiment, the specific implementation method of obtaining the fifth characteristic data is similar to the principle of the aforementioned third characteristic data acquisition method, and the contents in the aforementioned steps can be referred to, and no further description is given here. Among them, the fifth characteristic data is a more suitable fifth characteristic data extracted for the second target task to improve the prediction accuracy for the second target task.
[0071] Step S272: Using the third feature fusion unit, determine the second weight information corresponding to each of the sub-feature data under the second target task, and based on the second weight information corresponding to each of the sub-feature data, perform weighted fusion on the fifth feature data and multiple sub-feature data to obtain the sixth feature data corresponding to the second target task.
[0072] In this embodiment, the specific implementation method of obtaining the sixth characteristic data is similar to the principle of the aforementioned fourth characteristic data acquisition method, and the contents in the aforementioned steps may be referred to, which will not be repeated here.
[0073] Step S273: Fusing the sixth feature data and the partial feature data to obtain seventh feature data.
[0074] Step S274: input the seventh feature data into the second task processing unit to obtain an output result of the second task processing unit.
[0075] It can be understood that there is a temporal sequence between the first task processing unit and the second task processing unit, that is, the first task processing unit is first used to predict the first target task for the user to be evaluated, and after the prediction is passed, the second task processing unit is used to predict the second target task for the user to be evaluated. Obviously, part of the feature data used in the first task processing unit can be applied to the second task processing unit, so that the second task processing unit can combine the part of the feature data to more accurately output the prediction result for the second target task. Specifically, the sixth feature data and part of the feature data can be fused to obtain the seventh feature data; then the seventh feature data is input into the second task processing unit to obtain the output result of the second task processing unit.
[0076] Step S275: Based on the output result of the second task processing unit, a risk assessment is performed on the user to be assessed.
[0077] In this embodiment, the output result of the second task processing unit can be a second risk assessment value, and it can be determined whether the second risk assessment value is greater than a specified threshold. If it is greater, the user to be evaluated is determined to be a high-risk user, and a high-risk user can be understood as a user who is prone to overdue repayment after borrowing; if it is less than, the user to be evaluated is determined to be a low-risk user, and a low-risk user can be understood as a user who will repay on time after receiving the loan.
[0078] Step S280: If the first probability value is less than or equal to the first threshold, determine that the user to be evaluated is a high-risk user.
[0079] Optionally, if the first probability value is less than or equal to the first threshold, it can be determined that the user to be evaluated will be rejected at the credit application stage, which shows that the user to be evaluated is a high-risk user; since the prerequisite for the application for withdrawal is the approval of the credit application, there is no need to further predict the credit application of the user to be evaluated.
[0080] Step S290: If it is determined that the user to be evaluated has initiated a loan application, the user feature data is processed by a second multi-task processing module in the pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, and the second multi-task processing module is trained based on a second training sample set, and the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
[0081] Optionally, if it is determined that the user to be evaluated has initiated a loan application, that is, the user to be evaluated is an old user. At this time, the third task processing unit in the second multi-task processing module can be used to predict the credit application of the old user for the user to be evaluated; if the prediction fails, the user to be evaluated is evaluated as a high-risk user; if the prediction passes, the fourth task processing unit in the second multi-task processing module is used to predict the application for withdrawal by the old user for the user to be evaluated. Finally, based on the prediction result of the withdrawal application, the risk assessment of the user to be evaluated is further performed. The specific assessment method can refer to the content in the aforementioned embodiment, which will not be repeated here.
[0082] It is understandable that since the user to be evaluated is an old user, the number of internal user features is large, which can provide sufficient basis for task prediction. At this time, the reliance on external credit-related features is not great. Therefore, the second multi-task processing module for risk assessment of old users does not need to introduce a third feature fusion unit based on the attention mechanism, and can also obtain sufficient feature data for the third task processing unit and the fourth task processing unit to predict related tasks. However, whether it is the input of the third task processing unit or the fourth task processing unit, the feature data output by its corresponding feature fusion unit and the user portrait feature data extracted by the second feature extraction module will be fused and input. In this way, the influence of user group characteristics on the application approval rate is measured, the problem of information loss caused by the unilateral user features flowing layer by layer in the model structure is reduced, and the accuracy of risk prediction for old users is improved. Among them, the specific implementation methods of the third task processing unit for credit application prediction for old users and the fourth task processing unit for cash flow application prediction for old users can refer to the above content, which will not be repeated here.
[0083] In this embodiment, in order to solve the problem of insufficient accuracy in risk prediction for new users, a method of splitting the tasks of new and old users is proposed, thereby improving the accuracy of risk prediction for new users; in order to solve the problem of inefficient use of external credit characteristics for new users, a network structure of attention is proposed to adaptively and efficiently use external credit-related characteristics, thereby further improving the accuracy of risk prediction for new users; in order to solve the problem of insufficient influence of unilateral user characteristics, a model structure of a second feature extraction module for extracting user portrait feature data is added for both new and old users, thereby reducing the problem of information loss caused by the unilateral user characteristics flowing layer by layer in the model structure, thereby improving the accuracy of risk prediction for new and old users. At the same time, by splitting the modeling method of the tasks of new and old users, one model can be used to predict the credit and withdrawal applications of new and old users at the same time, thereby reducing the number of models and maintenance costs.
[0084] Please refer to Figure 6 , Figure 6 A flow chart of a method for training a risk control model provided in an embodiment of the present application is provided below. Figure 6 The training method of the risk control model provided in the embodiment of the present application is described in detail. The training method of the risk control model may include the following steps:
[0085] Step S310: constructing an initialized multi-task processing model, where the multi-task processing model includes a first multi-task processing module and a second multi-task processing module.
[0086] In this embodiment, the constructed initialized multi-task processing module can still refer to Figure 3 As shown, first, based on the existing MMOE network architecture, a first multi-task processing module and a second multi-task processing module are constructed. Among them, the first multi-task processing module is used to predict the credit application (i.e., the first target task) and the expenditure application (i.e., the second target task) of new users, thereby realizing risk prediction for new users; the second multi-task processing module is used to predict the credit application (i.e., the first target task) and the expenditure application (i.e., the second target task) of old users, thereby realizing risk prediction for old users. In addition, taking into account the problem of low efficiency in utilizing the external features of new users, for the first multi-task processing module, the following are added to the original network architecture. Figure 3 The third feature fusion unit based on the attention mechanism in the system can give different weights to external features according to the different current tasks for new users, adaptively amplify the role of important features, weaken the role of unimportant features, and efficiently utilize external credit-related features. At the same time, for the first multi-task processing module and the second multi-task processing module, the following are added to the original network architecture: Figure 3The second feature extraction module in is used to extract the user portrait feature data of users to measure the influence of user group characteristics on the application approval rate, reducing the problem of information loss caused by the unilateral user features flowing layer by layer in the model structure, while improving the accuracy of risk prediction for new and old users.
[0087] In some implementations, in order to improve the generalization ability of the risk control model finally trained, the expert network part in the MMOE network structure can be improved, and multiple levels of expert networks can be superimposed for each task.
[0088] Step S320: Acquire a first training sample set and a second training sample set.
[0089] Furthermore, a first training sample set for training the first multi-task processing module and a second training sample set for training the second multi-task processing module are obtained. The first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once. The second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
[0090] Step S330: Input the first training sample set and the second training sample set into the multi-task processing model, iteratively train the network parameters in the first multi-task processing module and the second multi-task processing module until the target training conditions are met, and obtain the trained multi-task processing model as a risk control model.
[0091] In some embodiments, the first multi-task processing module includes a third feature fusion unit, a first feature fusion unit corresponding to the first target task, a first task processing unit, a second feature fusion unit corresponding to the second target task, and a second task processing unit; the second multi-task processing module includes a fourth feature fusion unit corresponding to the first target task, a third task processing unit, a fifth feature fusion unit corresponding to the second target task, and a fourth task processing unit. Each first training sample in the first training sample set carries a target label, and each second training sample in the second training sample set carries a target label. Please refer to Figure 7 , step S330 may include the contents of step S331 to step S335:
[0092] Step S331: input each first training sample in the first training sample set into the multi-task processing model to obtain a predicted label of each first training sample output by the first multi-task processing module.
[0093] Step S332: Determine a first loss value according to the degree of difference between the predicted label of each of the first training samples and the target label carried by each of the first training samples.
[0094] In this embodiment, the target label that each first training sample can carry may include label information of whether the credit application is passed and whether the withdrawal application is passed. Based on this, after each first training sample is input into the multi-task processing model, first, the first task processing unit will output the first prediction label for the first training sample, and the first prediction label is used to characterize whether the sample user is approved in the prediction result; and based on the difference between the first prediction label and the label information of whether the credit application is passed contained in the target label, the first sub-loss value is determined; if the prediction result is not passed, the first sub-loss value is used as the first loss value corresponding to the first training sample. If the prediction result is passed, the second task unit further outputs the second prediction label for the first training sample, and the second prediction label is used to characterize whether the withdrawal application of the sample user is passed in the prediction result, and based on the difference between the second prediction label and the label information of whether the withdrawal application is passed contained in the target label, the second sub-loss value is determined; after weighted summing the first sub-loss value and the second sub-loss value, the above-mentioned first loss value is obtained.
[0095] Step S333: input each second training sample in the second training sample set into the multi-task processing model to obtain a predicted label of each second training sample output by the second multi-task processing module.
[0096] Step S334: Determine a second loss value according to the degree of difference between the predicted label of each second training sample and the target label carried by each second training sample.
[0097] In this embodiment, the specific implementation method of calculating the second loss value is similar to the calculation method of the first loss value, which will not be repeated here, and the contents in the aforementioned steps can be referred to.
[0098] Step S335: Based on the first loss value and the second loss value, iteratively train the network parameters in the multiple second feature extraction units, the second feature extraction module, the third feature fusion unit, the first feature fusion unit, the first task processing unit, the second feature fusion unit, the second task processing unit, the fourth feature fusion unit, the third task processing unit, the fifth feature fusion unit and the fourth task processing unit until the target training conditions are met, and obtain the trained multi-task processing model as the risk control model.
[0099] Furthermore, the first loss value and the second loss value can be weightedly summed to obtain a total loss value corresponding to the risk control model training, and then based on the total loss value, the network parameters of the multiple modules and multiple units mentioned in step S335 are iteratively trained until the target training conditions are met, thereby obtaining a trained multi-task processing model as the above-mentioned risk control model.
[0100] Among them, the target training condition can be: the total loss value is less than the preset value, the total loss value no longer changes, or the number of training times reaches the preset number of times, etc. It can be understood that after the network parameters in the plurality of second feature extraction units, the second feature extraction module, the third feature fusion unit, the first feature fusion unit, the first task processing unit, the second feature fusion unit, the second task processing unit, the fourth feature fusion unit, the third task processing unit, the fifth feature fusion unit and the fourth task processing unit are iteratively trained for multiple training cycles, wherein each training cycle includes multiple iterative trainings, and the aforementioned network parameters are continuously optimized so that the above-mentioned total loss value becomes smaller and smaller, and finally becomes a fixed value, or is less than the above preset value, at this time, it means that the multi-task processing model has converged; of course, it can also be determined that the multi-task processing has converged after the number of training times reaches the preset number of times, at this time, the converged multi-task processing model can be used as the above-mentioned target model. Among them, the preset value and the preset number of times are both pre-set, and their values can also be adjusted according to different application scenarios, and this embodiment does not limit this.
[0101] In this embodiment, the improved model based on the multi-task learning MMoE algorithm can effectively solve the problem of missing features in the new user credit model, and at the same time improve the accuracy of new user loan risk prediction and old user loan risk prediction. In view of the problem that the risk prediction of new users is not accurate enough, a method of splitting the tasks of new and old users is proposed to improve the accuracy of risk prediction for new users; in view of the problem that the external credit characteristics of new users are not used efficiently, the attention network structure is added to adaptively and efficiently use external credit related features, further improving the accuracy of risk prediction for new users; in view of the problem that the influence of unilateral user features is insufficient, the model structure of the second feature extraction module for extracting user portrait feature data is added for both new and old users, reducing the problem of information loss caused by the unilateral user features flowing layer by layer in the model structure, and improving the accuracy of risk prediction for new and old users.
[0102] Please refer to Figure 8 , which shows a structural block diagram of a risk assessment device 400 provided in an embodiment of the present application. The device 400 may include: a user feature acquisition module 410, a first risk assessment module 420 and a second risk assessment module 430.
[0103] The user feature acquisition module 410 is used to acquire user feature data of the user to be evaluated.
[0104] The first risk assessment module 420 is used to process the user feature data through a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be assessed if it is determined that the user to be assessed has not initiated a loan application. The first multi-task processing module is trained based on a first training sample set, and the first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once.
[0105] The second risk assessment module 430 is used to process the user feature data through a second multi-task processing module in the pre-trained risk control model to obtain a risk assessment result for the user to be assessed if it is determined that the user to be assessed has initiated a loan application. The second multi-task processing module is trained based on a second training sample set, and the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
[0106] In some embodiments, the risk control model further includes a first feature extraction module, which includes a first feature extraction unit and a plurality of second feature extraction units. The user feature acquisition module 410 can be specifically used to: obtain user data of the user to be evaluated; perform feature extraction on the user data by the first feature extraction unit to obtain first feature data; perform secondary feature extraction on the first feature data by each of the second feature extraction units to obtain second feature data output by each of the second feature extraction units as the user feature data.
[0107] In this manner, the first multi-task processing module is used to predict the first target task and the second target task, and the first multi-task processing module includes a third feature fusion unit, a first feature fusion unit corresponding to the first target task, a first task processing unit, a second feature fusion unit corresponding to the second target task, and a second task processing unit, and the first feature data includes multiple sub-feature data. The first risk assessment module 420 may include: a first fusion unit, a second fusion unit, a first output unit, and a risk assessment unit. Among them, the first fusion unit may be used to, if it is determined that the user to be assessed has not initiated a loan application, use the first feature fusion unit to perform weighted fusion on the second feature data output by each of the second feature extraction units to obtain the third feature data output by the first feature fusion unit. The second fusion unit may be used to use the third feature fusion unit to determine the first weight information corresponding to each of the sub-feature data under the first target task, and based on the first weight information corresponding to each of the sub-feature data, perform weighted fusion on the third feature data and multiple sub-feature data to obtain the fourth feature data corresponding to the first target task. The first output unit may be used to input the fourth feature data into the first task processing unit to obtain the output result of the first task processing unit, and the output result includes a first probability value. The risk assessment unit can be used to perform risk assessment on the user to be assessed by using the second feature fusion unit, the second task processing unit and the second feature data output by each of the second feature extraction units if the first probability value is greater than a first threshold.
[0108] In this manner, the risk assessment unit can also be specifically used for: after inputting the fourth characteristic data corresponding to the first target task into the task processing unit corresponding to the first target task and obtaining the output result of the task processing unit corresponding to the first target task, if the first probability value is less than or equal to the first threshold value, determining that the user to be assessed is a high-risk user.
[0109] In some embodiments, the output result of the first task processing unit also includes partial feature data, and the risk assessment unit can be specifically used to: if the first probability value is greater than the first threshold, use the second feature fusion unit to weightedly fuse the second feature data output by each of the second feature extraction units to obtain the fifth feature data output by the second feature fusion unit; use the third feature fusion unit to determine the second weight information corresponding to each of the sub-feature data under the second target task, and based on the second weight information corresponding to each of the sub-feature data, weightedly fuse the fifth feature data and multiple sub-feature data to obtain the sixth feature data corresponding to the second target task; fuse the sixth feature data and the partial feature data to obtain the seventh feature data; input the seventh feature data into the second task processing unit to obtain the output result of the second task processing unit; and perform risk assessment on the user to be assessed based on the output result of the second task processing unit.
[0110] In some embodiments, the risk control model also includes a second feature extraction module, and the first output unit can be specifically used to: extract user portrait feature data of the user to be evaluated from the first feature data through the second feature extraction module; fuse the fourth feature data and the user portrait feature data to obtain eighth feature data; input the eighth feature data into the first task processing unit to obtain the output result of the first task processing unit.
[0111] In some embodiments, the risk assessment device 600 may further include: a model construction module, a training sample acquisition module, and a model training module. Among them, the model construction module can be used to construct an initialized multi-task processing model, and the multi-task processing model includes the first multi-task processing module and the second multi-task processing module. The training sample acquisition module can be used to obtain the first training sample set and the second training sample set. The model training module can be used to input the first training sample set and the second training sample set into the multi-task processing model, iteratively train the network parameters in the first multi-task processing module and the second multi-task processing module until the target training conditions are met, and obtain the trained multi-task processing model as the risk control model.
[0112] In this manner, the first multi-task processing module is used to predict the first target task and the second target task for the first sample user, the risk control model also includes multiple second feature extraction units and a second feature extraction module, the first multi-task processing module includes a third feature fusion unit, a first feature fusion unit corresponding to the first target task, a first task processing unit, a second feature fusion unit corresponding to the second target task, and a second task processing unit, the second multi-task processing module is used to predict the first target task and the second target task for the second sample user, the second multi-task processing module includes a fourth feature fusion unit corresponding to the first target task, a third task processing unit, a fifth feature fusion unit corresponding to the second target task, and a fourth task processing unit, each first training sample in the first training sample set carries a target label, and each second training sample in the second training sample set carries the target label. The model training module can be specifically used to: input each first training sample in the first training sample set into the multi-task processing model to obtain the predicted label of each first training sample output by the first multi-task processing module; determine the first loss value according to the degree of difference between the predicted label of each first training sample and the target label carried by each first training sample; input each second training sample in the second training sample set into the multi-task processing model to obtain the predicted label of each second training sample output by the second multi-task processing module; determine the second loss value according to the degree of difference between the predicted label of each second training sample and the target label carried by each second training sample; based on the first loss value and the second loss value, iteratively train the network parameters in multiple second feature extraction units, second feature extraction modules, the third feature fusion unit, the first feature fusion unit, the first task processing unit, the second feature fusion unit, the second task processing unit, the fourth feature fusion unit, the third task processing unit, the fifth feature fusion unit and the fourth task processing unit until the target training conditions are met, and obtain the trained multi-task processing model as the risk control model.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0114] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0115] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0116] In summary, in order to solve the problem of inaccurate risk prediction for new users, we propose a method of splitting the tasks of new and old users, which improves the accuracy of risk prediction for new users; in order to solve the problem of inefficient use of external credit characteristics for new users, we propose an attention network structure that adaptively and efficiently uses external credit-related features, which further improves the accuracy of risk prediction for new users; in order to solve the problem of insufficient influence of unilateral user characteristics, we add a second feature extraction module for extracting user portrait feature data to the model structure for both new and old users, which reduces the problem of information loss caused by the unilateral user characteristics flowing layer by layer in the model structure, and improves the accuracy of risk prediction for new and old users. At the same time, by splitting the modeling method of new and old user tasks, we can use one model to predict the credit and withdrawal applications of new and old users at the same time, reducing the number of models and maintenance costs.
[0117] The following will be combined Fig. 9 A computer device provided by the present application is described.
[0118] Reference Fig. 9 , Fig. 9 The structural block diagram of a computer device 500 provided in an embodiment of the present application is shown, and the above method provided in an embodiment of the present application can be executed by the computer device 500. The computer device can be an electronic terminal with a data processing function, and the electronic terminal includes but is not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart watch, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, and smart home devices, etc.; of course, the computer device can also be a server, and the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0119] The computer device 500 in the embodiment of the present application may include one or more of the following components: a processor 501, a memory 502, and one or more applications, wherein the one or more applications may be stored in the memory 502 and configured to be executed by one or more processors 501, and the one or more programs are configured to execute the method as described in the aforementioned method embodiment.
[0120] The processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts of the entire computer device 500, and executes various functions and processes data of the computer device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 502, and calling data stored in the memory 502. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem can also be integrated into the processor 501 and implemented separately through a communication chip.
[0121] The memory 502 may include a random access memory (RAM) or a read-only memory (ROM). The memory 502 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as the various corresponding relationships described above) created by the computer device 500 during use.
[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0123] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.
[0124] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0125] Please refer to Fig.10 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 600 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0126] The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method step of the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.
[0127] In some embodiments, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the steps in the above-mentioned method embodiments.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A risk assessment method, characterized in that: The method comprises: Obtain user characteristic data of the user to be evaluated; If it is determined that the user to be evaluated has not initiated a loan application, the user feature data is processed by a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, wherein the first multi-task processing module is trained based on a first training sample set, and the first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once; If it is determined that the user to be evaluated has initiated a loan application, the user feature data is processed by a second multi-task processing module in the pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, the second multi-task processing module is trained based on a second training sample set, the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
2. The method according to claim 1, characterized in that The risk control model further includes a first feature extraction module, which includes a first feature extraction unit and a plurality of second feature extraction units; The step of obtaining user characteristic data of the user to be evaluated includes: Obtaining user data of the user to be evaluated; Extracting features from the user data by the first feature extraction unit to obtain first feature data; Each of the second feature extraction units performs secondary feature extraction on the first feature data to obtain second feature data output by each of the second feature extraction units as the user feature data.
3. The method according to claim 2, characterized in that The first multi-task processing module is used to predict the first target task and the second target task, the first multi-task processing module includes a third feature fusion unit, a first feature fusion unit corresponding to the first target task, a first task processing unit, a second feature fusion unit corresponding to the second target task, and a second task processing unit, and the first feature data includes multiple sub-feature data; If it is determined that the user to be evaluated has not initiated a loan application, the user feature data is processed by a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be evaluated, including: If it is determined that the user to be evaluated has not initiated a loan application, the first feature fusion unit is used to perform weighted fusion on the second feature data output by each of the second feature extraction units to obtain third feature data output by the first feature fusion unit; Using the third feature fusion unit, determining first weight information corresponding to each of the sub-feature data under the first target task, and based on the first weight information corresponding to each of the sub-feature data, performing weighted fusion on the third feature data and the multiple sub-feature data to obtain fourth feature data corresponding to the first target task; Inputting the fourth feature data into the first task processing unit to obtain an output result of the first task processing unit, wherein the output result includes a first probability value; If the first probability value is greater than a first threshold, a risk assessment is performed on the user to be assessed using the second feature fusion unit, the second task processing unit, and the second feature data output by each of the second feature extraction units.
4. The method according to claim 3, characterized in that The output result of the first task processing unit also includes some feature data, and if the first probability value is greater than the first threshold, using the second feature data output by the second feature fusion unit, the second task processing unit, and each of the second feature extraction units to perform risk assessment on the user to be assessed, including: If the first probability value is greater than the first threshold, using the second feature fusion unit, weighted fusion is performed on the second feature data output by each of the second feature extraction units to obtain fifth feature data output by the second feature fusion unit; Using the third feature fusion unit, determining the second weight information corresponding to each of the sub-feature data under the second target task, and based on the second weight information corresponding to each of the sub-feature data, weighted fusion is performed on the fifth feature data and the multiple sub-feature data to obtain the sixth feature data corresponding to the second target task; fusing the sixth feature data and the partial feature data to obtain seventh feature data; Inputting the seventh feature data into the second task processing unit to obtain an output result of the second task processing unit; Based on the output result of the second task processing unit, a risk assessment is performed on the user to be assessed.
5. The method according to claim 3, characterized in that: The risk control model further includes a second feature extraction module, which inputs the fourth feature data into the first task processing unit to obtain an output result of the first task processing unit, including: Extracting user portrait feature data of the user to be evaluated from the first feature data by the second feature extraction module; The fourth feature data and the user portrait feature data are merged to obtain eighth feature data; The eighth characteristic data is input into the first task processing unit to obtain an output result of the first task processing unit.
6. The method according to claim 3, characterized in that After inputting the fourth characteristic data corresponding to the first target task into the task processing unit corresponding to the first target task and obtaining the output result of the task processing unit corresponding to the first target task, the method further includes: If the first probability value is less than or equal to the first threshold, it is determined that the user to be evaluated is a high-risk user.
7. The method according to any one of claims 1 to 6, characterized in that: The training process of the risk control model includes: Constructing an initialized multi-task processing model, wherein the multi-task processing model includes the first multi-task processing module and the second multi-task processing module; Acquire the first training sample set and the second training sample set; The first training sample set and the second training sample set are input into the multi-task processing model, and the network parameters in the first multi-task processing module and the second multi-task processing module are iteratively trained until the target training conditions are met, so as to obtain the trained multi-task processing model as the risk control model.
8. The method according to claim 7, characterized in that The first multi-task processing module is used to predict the first target task and the second target task for the first sample user, the risk control model also includes multiple second feature extraction units and a second feature extraction module, the first multi-task processing module includes a third feature fusion unit, a first feature fusion unit corresponding to the first target task, a first task processing unit, a second feature fusion unit corresponding to the second target task, and a second task processing unit, the second multi-task processing module is used to predict the first target task and the second target task for the second sample user, the second multi-task processing module includes a fourth feature fusion unit corresponding to the first target task, a third task processing unit, a fifth feature fusion unit corresponding to the second target task, and a fourth task processing unit, each first training sample in the first training sample set carries a target label, and each second training sample in the second training sample set carries the target label; The step of inputting the first training sample set and the second training sample set into the multi-task processing model, iteratively training the network parameters in the first multi-task processing module and the second multi-task processing module until the target training conditions are met, and obtaining the trained multi-task processing model as the risk control model includes: Inputting each first training sample in the first training sample set into the multi-task processing model to obtain a predicted label of each first training sample output by the first multi-task processing module; Determining a first loss value according to a degree of difference between a predicted label of each of the first training samples and a target label carried by each of the first training samples; Inputting each second training sample in the second training sample set into the multi-task processing model to obtain a predicted label of each second training sample output by the second multi-task processing module; Determining a second loss value according to a degree of difference between a predicted label of each of the second training samples and a target label carried by each of the second training samples; Based on the first loss value and the second loss value, the network parameters in the multiple second feature extraction units, the second feature extraction module, the third feature fusion unit, the first feature fusion unit, the first task processing unit, the second feature fusion unit, the second task processing unit, the fourth feature fusion unit, the third task processing unit, the fifth feature fusion unit and the fourth task processing unit are iteratively trained until the target training conditions are met, and the trained multi-task processing model is obtained as the risk control model.
9. A risk assessment device, characterized in that: The device comprises: A user feature acquisition module, used to acquire user feature data of the user to be evaluated; A first risk assessment module, configured to, if it is determined that the user to be assessed has not initiated a loan application, process the user feature data through a first multi-task processing module in a pre-trained risk control model to obtain a risk assessment result for the user to be assessed, wherein the first multi-task processing module is trained based on a first training sample set, the first training sample set includes a sample feature data set corresponding to a first sample user, and the first sample user is a user who has initiated a loan application once; The second risk assessment module is used to process the user feature data through the second multi-task processing module in the pre-trained risk control model to obtain a risk assessment result for the user to be assessed if it is determined that the user to be assessed has initiated a loan application. The second multi-task processing module is trained based on a second training sample set, and the second training sample set includes a sample feature data set corresponding to a second sample user, and the second sample user is a user who has initiated multiple loan applications.
10. A computer device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Loan risk control rating method and system based on big data
CN119205315A
