Method for processing multi-label model in risk model
Through the multi-label model processing method, a multi-classification model is established and brought into the general model, which solves the problem that the general model ignores customer group information and the specific model has too few samples, improves the fitting effect of the model and the overall modeling effect, and reduces complexity and subjectivity.
Patent Information
- Application Number
- CN202411079805.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-09-10
AI Technical Summary
Existing risk models ignore the characteristics of customer group information in each channel in the general model. The scope of use of specific customer group models is limited and the samples are small, which increases the complexity and subjectivity of the model.
Using a multi-label model processing method, by obtaining the application information of loan products, establishing label vectors and initial feature vectors, establishing a multi-classification model, predicting overdue probability, determining the weight of the multi-classification model, and bringing it into the general model to retain the customer group information and improve the overall modeling effect.
Retaining customer group information on the basis of large samples improves the model's fitting effect and overall modeling effect, and reduces model complexity and subjectivity.
Smart Images

Figure CN118628233A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of risk models, and in particular to a method for processing a multi-label model in a risk model. Background Art
[0002] In the field of risk modeling, a general model for the entire sample and a specific customer group model divided by each channel are usually established. In the general model, relying on the entire sample, more generalized information can be learned, and the model is often more robust and applicable to a wider range, but the general model often ignores the characteristics of customer group information in each channel; in the specific customer group model, the characteristics of the specific population are retained, and the fitting effect for the specific customer group is often better, but the scope of use of the model is relatively limited. At the same time, due to the limitations of the specific customer group, the modeling samples are often small.
[0003] Usually, the following two methods are used to retain customer characteristics. The first option is to artificially divide customer groups based on rich business experience and customer data performance. The second option is to divide customer groups based on customer characteristics based on machine learning algorithms such as decision trees and clustering algorithms. After customer group division, customer group-related characteristics are derived or each customer group is modeled separately to obtain sub-models, which are then applied to the general model.
[0004] In the above two directions of customer segmentation, the first solution often relies more on the experience of business experts and is more subjective. The second solution is to divide customer groups based on machine learning algorithms. Whether it is a decision tree or a clustering algorithm, business experts are still required to select the features required by the algorithm, and the complexity of the general model is greatly increased. In the data processing after customer group segmentation, the derivation of customer group-related features adds more subjectivity to the construction of the general model. Or the solution of building sub-models for customer groups, although the characteristics of the customer groups are retained, each customer group is modeled separately, and still faces problems such as reduced samples and too many sub-models, which greatly increases the complexity of the model. Summary of the invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is: According to a first aspect of the present application, a method for processing a multi-label model in a risk model is provided, the method comprising the following steps: S100, obtaining each application information corresponding to the preset m loan products to obtain an application information list A=(A1, A2, ..., A i , …, A n ), i=1, 2,...,n; among them, A i is the i-th application information obtained, n is the number of application information obtained; one application information corresponds to one loan product; S200, based on the overdue information corresponding to each application information, establish a label vector corresponding to each application information to obtain a label vector list B corresponding to A = (B1, B2, ..., B i , …, B n ); where B i A i The corresponding label vector; B i =(ZB i , B i,1 , B i,2 , …, B i,j , …, B i,m ), j = 1, 2, ..., m; ZB i For B i The corresponding total overdue value, B i,j For B i Corresponding to the sub-overdue value of the j-th loan product; ZB i To characterize B i Whether the corresponding user has overdue behavior, B i,j To characterize B i Whether the corresponding user has overdue behavior in the jth loan product; S300, using a preset feature screening method, perform feature screening on all application information in A to obtain an initial feature vector list C corresponding to A = (C1, C2, ..., C i , …, C n ); where C i A i The corresponding initial eigenvector; C i =(C i,1 , C i,2 , …, C i,r , …, C i,s ), r=1,2,…,s; C i,r A i The corresponding rth feature, s is the number of features corresponding to each application information; S400, based on B and C, establish a multi-classification model WT; S500, input each feature vector in C into WT to predict the probability of overdue for each application information in A on each loan product, so as to obtain a list of overdue probability vectors D = (D1, D2, ..., D i , …, D n ); where D i A i Corresponding to the overdue vector; D i =(YD i , D i,1 , D i,2 , …, D i,j , …, D i,m); Among them, YD i A i The probability that the corresponding user has no overdue behavior on all loan products, D i,j A i The probability that the corresponding user has overdue payment on the j-th loan product; S600, according to D, determine the multi-classification model weight corresponding to each application information to obtain a multi-classification model weight list η=(η1, η2, ..., η i ,…,η n ); where η i A i The corresponding multi-classification model weights; S700, add η to C to obtain the target feature vector list E corresponding to A = (E1, E2, ..., E i ,…,E n ); where E i A i The corresponding target feature vector; S800: Substitute E into a preset general model to obtain a target model.
[0006] Furthermore, YD i +∑ m j=1 D i,j =1.
[0007] Furthermore, η i =∑ m j=1 D i,j / m.
[0008] Furthermore, E i =(C i,1 , C i,2 , …, C i,r , …, C i,s , η i ).
[0009] Furthermore, ZB i is equal to 0 or 1; where ZB i Equal to 0 means A i The corresponding user has no overdue behavior on all loan products; ZB i Equal to 1 means A i The corresponding user has overdue behavior on one loan product among all loan products.
[0010] Furthermore, B i,j is equal to 0 or 1; where B i,j Equal to 0 means A iThe corresponding user has no overdue behavior on the j-th loan product; B i,j Equal to 1 means A i The corresponding user has overdue behavior on the j-th loan product.
[0011] Furthermore, the preset feature screening methods include: a missing rate feature screening method, a single value rate feature screening method, and a feature importance feature screening method.
[0012] The present invention has at least the following beneficial effects: The processing method of the multi-label model in the risk model of the present invention obtains each application information corresponding to the preset m loan products to obtain an application information list A; according to the overdue information corresponding to each application information, a label vector corresponding to each application information is established to obtain a label vector list B corresponding to A; a preset feature screening method is used to perform feature screening on all application information in A to obtain an initial feature vector list C corresponding to A; according to B and C, a multi-classification model WT is established; each feature vector in C is input into WT to predict the probability of overdue of each application information in A on each loan product to obtain an overdue probability vector list D; according to D, the multi-classification model weight corresponding to each application information is determined to obtain a multi-classification model weight list η; η is added to C to obtain a target feature vector list E corresponding to A; E is substituted into a preset general model to obtain a target model; under a general large sample, the present invention uses customer group plus risk label as a modeling label to establish a multi-classification model, and brings the multi-classification model weight into the general model, so that the general model retains customer group information on the basis of a sufficiently large sample and improves the overall modeling effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A flowchart of a method for processing a multi-label model in a risk model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0016] It should be noted that, based on the present disclosure, those skilled in the art should understand that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement a device and / or practice a method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0017] The following will refer to Figure 1 The flowchart of the processing method of the multi-label model in the risk model shown is an introduction to the processing method of the multi-label model in the risk model.
[0018] The processing method of the multi-label model in the risk model may include the following steps: S100, obtaining each application information corresponding to the preset m loan products to obtain an application information list A=(A1, A2, ..., A i , …, A n ), i=1, 2,...,n; among them, A i is the i-th application information obtained, n is the number of application information obtained; one application information corresponds to one loan product.
[0019] In this embodiment, m loan products are preset, each loan product corresponds to a number of application information, each application information corresponds to a user, and a user may correspond to multiple application information. Each application information corresponding to the m loan products within the preset historical time period can be obtained to obtain A.
[0020] S200, based on the overdue information corresponding to each application information, establish a label vector corresponding to each application information to obtain a label vector list B corresponding to A = (B1, B2, ..., B i , …, B n ); where B i A i The corresponding label vector; B i =(ZB i , B i,1 , B i,2 , …, B i,j , …, B i,m ), j = 1, 2, ..., m; ZB i For B i The corresponding total overdue value, B i,j For B i Corresponding to the sub-overdue value of the j-th loan product; ZB i To characterize B i Whether the corresponding user has overdue behavior, Bi,j To characterize B i Whether the corresponding user has overdue behavior in the j-th loan product.
[0021] In this embodiment, whether the loan product corresponding to each application information has any overdue behavior can be obtained through the background data, and the dimension of the label vector is m+1; it can be understood that if the user corresponding to a certain application information has no overdue behavior on the loan product corresponding to the application information, then the total overdue value of the application information is 0, and the sub-overdue value corresponding to each loan product is also 0.
[0022] Furthermore, ZB i is equal to 0 or 1; where ZB i Equal to 0 means A i The corresponding user has no overdue behavior on all loan products; ZB i Equal to 1 means A i The corresponding user has overdue behavior on one loan product among all loan products.
[0023] Furthermore, B i,j is equal to 0 or 1; where B i,j Equal to 0 means A i The corresponding user has no overdue behavior on the j-th loan product; B i,j Equal to 1 means A i The corresponding user has overdue behavior on the j-th loan product.
[0024] As other implementations, other different values may be selected to distinguish whether the user has overdue behavior, which is not limited here.
[0025] S300, using a preset feature screening method, perform feature screening on all application information in A to obtain an initial feature vector list C corresponding to A = (C1, C2, ..., C i , …, C n ); where C i A i The corresponding initial eigenvector; C i =(C i,1 , C i,2 , …, C i,r , …, C i,s ), r=1,2,…,s; C i,r A i The corresponding rth feature, s is the number of features corresponding to each application information.
[0026] In this embodiment, the preset feature screening methods may include: a missing rate feature screening method, a single value rate feature screening method, and a feature importance feature screening method; it should be noted that those skilled in the art can use existing feature screening methods according to actual needs to perform feature screening on all application information in A to obtain an initial feature vector list C corresponding to A, which will not be elaborated here.
[0027] S400, based on B and C, establish a multi-classification model WT.
[0028] In this embodiment, it should be noted that those skilled in the art can use the existing multi-classification model building method according to actual needs to build a multi-classification model WT based on B and C, which will not be elaborated here.
[0029] S500, input each feature vector in C into WT to predict the probability of overdue for each application information in A on each loan product, so as to obtain a list of overdue probability vectors D = (D1, D2, ..., D i , …, D n ); where D i A i Corresponding to the overdue vector; D i =(YD i , D i,1 , D i,2 , …, D i,j , …, D i,m ); Among them, YD i A i The probability that the corresponding user has no overdue behavior on all loan products, D i,j A i The probability that the corresponding user has overdue payment on the j-th loan product.
[0030] In this embodiment, WT can predict the probability of overdue behavior for each application information in A on each loan product, and then obtain D.
[0031] Furthermore, YD i +∑ m j=1 D i,j =1.
[0032] S600, according to D, determine the multi-classification model weight corresponding to each application information to obtain a multi-classification model weight list η=(η1, η2, ..., η i ,…,η n ); where η i A i The corresponding multi-classification model weights.
[0033] In this embodiment, n i=∑ m j=1 D i,j / m.
[0034] S700, add η to C to obtain the target feature vector list E corresponding to A = (E1, E2, ..., E i ,…,E n ); where E i A i The corresponding target feature vector.
[0035] Furthermore, E i =(C i,1 , C i,2 , …, C i,r , …, C i,s , η i ); It should be noted that η i In E i The position in can also be other positions, which are not limited here.
[0036] S800: Substitute E into a preset general model to obtain a target model.
[0037] In this embodiment, through the above steps, under a general large sample, a multi-classification model is established with customer groups plus risk labels as modeling labels, and the weights of the multi-classification model are brought into the general model, so that the general model retains customer group information on the basis of a sufficiently large sample, thereby improving the overall modeling effect.
[0038] Furthermore, in order to verify the effectiveness of the above method, the following introduces in detail the application of the universal B card ever30 multi-classification model V1.0 established by this method in the universal B card ever30 customer-level fusion model V6.0 and the improvement of the effect of the universal model.
[0039] Universal B card ever30 multi-classification sub-model V1.0: 1. Feature screening: For common samples from all channels, there are more than 10,000 features in total. We first screen the features. The screening methods include: missing rate, single value rate, feature importance, PSI of train and oot variables, trend consistency of train and oot variables, and distribution consistency of train and oot variables. After the initial screening, there are 114 dimensions of features left.
[0040] 2. Label definition: Define labels according to the method introduced above. There are 14 channels in this channel, so the labels this time are 15-dimensional.
[0041] 3. Model construction: Based on the multi-labels defined in this method, the model is constructed, and finally a probability matrix with n rows (sample size is n) and 15 columns (number of labels is 14) is generated. The probability values from the 2nd to the 15th columns are averaged to represent the risk probability of the customer. The risk probabilities of all customers are used as features and brought into the universal B card ever30 customer-level fusion model V6.0.
[0042] At this time, the model effect of the universal B card ever30 multi-classification sub-model V1.0 is as follows: auc: 0.6141, KS: 0.1554, top10%lift: 1.8904, bottom10%lift: 0.3978.
[0043] Universal B card ever30 customer-level fusion model V6.0: 1. Feature screening: For common samples of all channels, there are more than 10,000 features in total. Perform a preliminary screening of features first. The screening methods include: missing rate, single value rate, feature importance, PSI of train and oot variables, trend consistency of train and oot variables, and distribution consistency of train and oot variables. After the preliminary screening, there are 181 features left.
[0044] 2. Model construction: Based on the above-screened features as model features, the influential features and multi-classification sub-models are added to the model in turn according to their contribution to the model. In terms of the contribution to the model, the multi-classification sub-model is the fourth one added to the model, and it increases the KS of the model by two points (0.2173>0.2375), with a significant effect. The importance of the multi-classification sub-model is 19.25%, which is very important.
[0045] After adding the multi-classification sub-model, the model effect is: auc: 0.6619, KS: 0.2375, top10%lift: 2.3065, bottom10%lift: 0.2794.
[0046] It can be seen that the universal B card ever30 multi-classification sub-model V1.0 as a sub-model is very important to the universal B card ever30 customer-level fusion model V6.0, and the effect is significantly improved.
[0047] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0048] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.
[0049] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0050] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0051] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0052] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0053] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.
[0054] The electronic device is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0055] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one memory mentioned above, and a bus connecting different system components (including the memory and the processor).
[0056] The memory stores program codes, which can be executed by the processor, so that the processor executes the steps in various embodiments described in this specification.
[0057] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0058] The memory may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0059] The bus may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0060] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device (e.g., routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter. The network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0061] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0062] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0063] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are only for illustration, not for limiting the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention.
Claims
1. A method for processing a multi-label model in a risk model, characterized in that: The method comprises the following steps: S100, obtaining each application information corresponding to the preset m loan products to obtain an application information list A=(A1, A2, ..., A i , …, A n ), i=1, 2,...,n; among them, A i is the i-th application information obtained, n is the number of application information obtained; one application information corresponds to one loan product; S200, based on the overdue information corresponding to each application information, establish a label vector corresponding to each application information to obtain a label vector list B corresponding to A = (B1, B2, ..., B i , …, B n ); where B i A i The corresponding label vector; B i =(ZB i , B i,1 , B i,2 , …, B i,j , …, B i,m ), j = 1, 2, ..., m; ZB i For B i The corresponding total overdue value, B i,j For B i Corresponding to the sub-overdue value of the j-th loan product; ZB i To characterize B i Whether the corresponding user has overdue behavior, B i,j To characterize B i Whether the corresponding user has overdue behavior in the jth loan product; S300, using a preset feature screening method, perform feature screening on all application information in A to obtain an initial feature vector list C corresponding to A = (C1, C2, ..., C i , …, C n ); where C i A i The corresponding initial eigenvector; C i =(C i,1 , C i,2 , …, C i,r , …, C i,s ), r=1,2,…,s; C i,r A i The corresponding rth feature, s is the number of features corresponding to each application information; S400, based on B and C, establish a multi-classification model WT; S500, input each feature vector in C into WT to predict the probability of overdue for each application information in A on each loan product, so as to obtain a list of overdue probability vectors D = (D1, D2, ..., D i , …, D n ); where D i A i Corresponding to the overdue vector; D i =(YD i , D i,1 , D i,2 , …, D i,j , …, D i,m ); Among them, YD i A i The probability that the corresponding user has no overdue behavior on all loan products, D i,j A i The probability that the corresponding user has overdue payment on the j-th loan product; S600, according to D, determine the multi-classification model weight corresponding to each application information to obtain a multi-classification model weight list η=(η1, η2, ..., η i ,…,η n ); where η i A i The corresponding multi-classification model weights; S700, add η to C to obtain the target feature vector list E corresponding to A = (E1, E2, ..., E i , …, E n ); where E i A i The corresponding target feature vector; S800: Substitute E into a preset general model to obtain a target model.
2. The method for processing a multi-label model in a risk model according to claim 1, characterized in that: YD i +∑ m j= 1D i,j =1。 3. The method for processing a multi-label model in a risk model according to claim 2, characterized in that: η i =∑ m j= 1D i,j / m。 4. The method for processing a multi-label model in a risk model according to claim 1, characterized in that: From i =(C i,1 ,C i,2 ,…,C i,r ,…,C i,s ,η i ).
5. The method for processing a multi-label model in a risk model according to claim 1, characterized in that: ZB i is equal to 0 or 1; where ZB i Equal to 0 means A i The corresponding user has no overdue behavior on all loan products; ZB i Equal to 1 means A i The corresponding user has overdue behavior on one loan product among all loan products.
6. The method for processing a multi-label model in a risk model according to claim 1, characterized in that: B i,j is equal to 0 or 1; among them, B i,j Equal to 0 means A i The corresponding user has no overdue behavior on the j-th loan product; B i,j Equal to 1 means A i The corresponding user has overdue behavior on the j-th loan product.
7. The method for processing a multi-label model in a risk model according to claim 1, characterized in that: The preset feature screening methods include: missing rate feature screening method, single value rate feature screening method and feature importance feature screening method.
