User screening method, device and electronic equipment
By screening and dividing user samples in the risk control decision-making engine, and using different rule engines to process samples at different levels, the problem of sample reduction and irrationality caused by the rule engines in the existing technology is solved, and the reliability of the risk control decision-making engine is improved. and effect.
Patent Information
- Application Number
- CN202111545315.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-16
AI Technical Summary
In the existing risk control decision-making engine, the use of rule engines results in the rejection of too many negative samples, resulting in a reduction in the modeling samples of the model engine, limited improvement in the overall decision-making engine effect, and the adoption of the same rules for positive and negative samples is unreasonable.
By obtaining the user set to be processed, using preset rules and trained prediction models to filter, users are divided into three categories: low score, medium score, and high score, and different rule engines are used to process different stratified samples, and gradually adjusted Filter the threshold to achieve the preset positive sample ratio, and retain rules with strong judgment ability to improve model performance.
It improves the reliability of the decision-making engine, retains more initial modeling samples, improves the model effect, and sets the rule engine by distinguishing sample levels, improving the accuracy of the overall decision-making.
Smart Images

Figure CN114240148B
Abstract
Description
Technical Field
[0001] The present application relates to the field of risk control big data processing, and specifically, to a user screening method, device and electronic equipment. Background Art
[0002] The risk control decision engine is a set of decision flows for financial institutions to conduct credit assessment and credit pricing on applicants. In existing risk control decision engines, the purpose of using the rule engine is to improve the overall effect of the decision engine. However, the use of some rules in the existing rule engine will lead to the rejection of too many negative samples, resulting in a reduction in the modeling samples of the model engine. The overall effect of the decision engine is limited. In addition, there are objectively positive and negative samples in the modeling samples. It is unreasonable to use the same rule engine for all samples. Summary of the invention
[0003] In order to overcome the above-mentioned deficiencies in the prior art, the purpose of the present application is to provide a user screening method, the method comprising:
[0004] Acquire a first set of users to be processed, where the first set of users to be processed includes a plurality of users to be processed, and each of the users to be processed includes user information;
[0005] According to the first preset rule and the user information of each of the to-be-processed users, the first to-be-processed user set is screened to obtain a second to-be-processed user set;
[0006] The second set of users to be processed is processed using the trained first prediction model to obtain a user score of each user to be processed in each set of users to be processed, wherein the higher the user score is, the lower the probability that the user to be processed is predicted to be a positive sample; the positive sample is a user predicted to have a loan default;
[0007] Obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold;
[0008] According to the first score threshold, the second score threshold and the user scores obtained by the first prediction model, the second set of users to be processed is divided into a set of users to be processed with low scores, a set of users to be processed with medium scores and a set of users to be processed with high scores;
[0009] Using the trained second prediction model and the trained third prediction model respectively, the high-score to-be-processed user set and the medium-score to-be-processed user set are processed to obtain user scores of the high-score to-be-processed user set and the medium-score to-be-processed user set;
[0010] According to the screening score thresholds corresponding to the second prediction model and the third prediction model, a sample of users to be processed whose user scores meet the conditions is screened out from the high-score to-be-processed user set and the medium-score to-be-processed user set as admitted users.
[0011] In a possible implementation, a first training sample set is obtained, wherein the first training sample set includes a plurality of training samples, each of the training samples includes user data and a user repayment overdue label;
[0012] Filtering the first training sample set according to the first preset rule to obtain a second training sample set;
[0013] Using user samples with overdue records in the second training sample set as positive sample labels, and using user samples without overdue records as negative sample labels, to train the first prediction model;
[0014] Processing the second training sample set by using the trained first prediction model to obtain a first user score for each training sample in each second training sample set, wherein a higher first user score indicates a lower probability that the training sample is predicted as a positive sample;
[0015] Obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold;
[0016] According to the first score threshold, the second score threshold and the first user score, the second training sample set is divided into a low-score sample user set, a medium-score sample user set and a high-score sample user set;
[0017] For the high-score sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels to train the second prediction model;
[0018] Processing the high-score sample user set by using the trained second prediction model to obtain a second user score for each training sample in each high-score sample user set, wherein a higher second user score indicates a lower probability that the training sample is predicted as a positive sample;
[0019] For the middle-divided sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels to train the third prediction model;
[0020] Processing the medium-scoring sample user set by means of the trained third prediction model to obtain a third user score of each training sample in each medium-scoring sample user set, wherein a higher third user score indicates a lower probability that the training sample is predicted as a positive sample;
[0021] Obtaining a preset positive sample ratio, taking the highest second user score obtained by the second prediction model from the high-score sample user set as a third score threshold, and taking the highest third user score obtained by the third prediction model from the medium-score sample user set as a fourth score threshold;
[0022] Gradually lowering the third score threshold, if before the third score threshold drops to the lowest second user score derived by the second prediction model from the high-score sample user set, the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set reaches the preset positive sample ratio, then using the current third score threshold as the screening score threshold of the second prediction model, and using the fourth score threshold as the screening score threshold of the third prediction model;
[0023] If the third score threshold is reduced to the lowest second user score obtained by the second prediction model from the high-score sample user set, and the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set does not reach the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is gradually reduced, and a first sum of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels and the number of user samples whose third user scores are greater than the fourth score threshold and have positive sample labels is calculated, and a second sum of the number of user samples whose second user scores are greater than the third score threshold and the number of user samples whose third user scores are greater than the fourth score threshold is calculated, until the ratio of the first sum to the second sum reaches the preset positive sample ratio, and the fourth score threshold is used as the screening score threshold of the third prediction model.
[0024] In a possible implementation, after the step of dividing the second training sample set into a low-score sample user set, a medium-score sample user set, and a high-score sample user set according to the first score threshold, the second score threshold, and the first user score, the method further includes:
[0025] According to the second preset rule and the user information of each of the to-be-processed users, the high-score sample user set is screened to obtain a screened high-score sample user set;
[0026] According to the third preset rule and the user information of each of the to-be-processed users, the medium-score sample user set is screened to obtain a screened medium-score sample user set.
[0027] In a possible implementation, the step of using user samples with overdue records in the second training sample set as positive sample labels and user samples without overdue records as negative sample labels to train the first prediction model includes:
[0028] Dividing the second training sample set into a second training set and a second test set;
[0029] User samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels. The first prediction model is trained using the second training set, and the trained first prediction model is tested using the second test set until the AUC or KS value of the first prediction model calculated on the second training sample set is the highest, and the difference between the AUC or KS values of the first prediction model on the second training set and the second test set is within a set value range.
[0030] In a possible implementation, the step of training the second prediction model for the high-score sample user set by using user samples with overdue records as positive sample labels and user samples without overdue records as negative sample labels includes:
[0031] Dividing the high-score sample user set into a high-score sample training set and a high-score sample test set;
[0032] User samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels. The second prediction model is trained using the high-score sample training set, and the trained second prediction model is tested using the high-score sample test set until the AUC or KS value calculated by the second prediction model on the high-score sample user set is the highest, and the difference between the AUC or KS values obtained by the second prediction model on the high-score sample training set and the high-score sample test set is within a set value range.
[0033] In a possible implementation, the step of training the third prediction model for the average sample user set by taking user samples with overdue records as positive sample labels and taking user samples without overdue records as negative sample labels includes:
[0034] Dividing the average sample user set into an average sample training set and an average sample test set;
[0035] The user samples with overdue records are used as positive sample labels, and the user samples without overdue records are used as negative sample labels. The third prediction model is trained using the median sample training set, and the trained third prediction model is tested using the median sample test set until the AUC or KS value calculated by the third prediction model on the median sample user set is the highest, and the difference between the AUC or KS values obtained by the third prediction model on the median sample training set and the median sample test set is within a set value range.
[0036] Another object of the present application is to provide a user screening device, the device comprising:
[0037] A first data acquisition module is used to acquire a first set of users to be processed, wherein the first set of users to be processed includes a plurality of users to be processed, and each of the users to be processed includes user information;
[0038] A first screening module, configured to screen the first set of users to be processed according to a first preset rule and user information of each of the users to be processed, to obtain a second set of users to be processed;
[0039] A first prediction module is used to process the second set of users to be processed using the trained first prediction model to obtain a user score of each user to be processed in each set of users to be processed, wherein the higher the user score is, the lower the probability that the user to be processed is predicted to be a positive sample; the positive sample is a user predicted to have a loan default;
[0040] A user segmentation module is configured to obtain a preset first score threshold and a second score threshold, wherein the first score threshold is less than the second score threshold; and to segment the second set of users to be processed into a set of users to be processed with low scores, a set of users to be processed with medium scores, and a set of users to be processed with high scores according to the first score threshold, the second score threshold, and the user scores obtained by the first prediction model;
[0041] A second prediction module is used to process the high-score to-be-processed user set and the medium-score to-be-processed user set using the trained second prediction model and the third prediction model respectively, to obtain user scores of the high-score to-be-processed user set and the medium-score to-be-processed user set;
[0042] A user screening module is used to screen out user samples whose user scores meet the conditions from the high-score to-be-processed user set and the medium-score to-be-processed user set as admitted users according to the screening score thresholds corresponding to the second prediction model and the third prediction model.
[0043] In a possible implementation manner, the device further includes:
[0044] A second data acquisition module is used to acquire a first training sample set, wherein the first training sample set includes a plurality of training samples, each of which includes user data and a user repayment overdue label;
[0045] a second screening module, screening the first training sample set according to the first preset rule to obtain a second training sample set;
[0046] The training module is used to train the first prediction model by taking user samples with overdue records in the second training sample set as positive sample labels and taking user samples without overdue records as negative sample labels; processing the second training sample set by the trained first prediction model to obtain the first user score of each training sample in each second training sample set, wherein the higher the first user score is, the lower the probability that the training sample is predicted to be a positive sample is; obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is less than the second score threshold; and performing a prediction on the first prediction model according to the first score threshold, the second score threshold and The first user score is used to divide the second training sample set into a low-score sample user set, a medium-score sample user set and a high-score sample user set; for the high-score sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels to train the second prediction model; the high-score sample user set is processed by the trained second prediction model to obtain the second user score of each training sample in each high-score sample user set, wherein the higher the second user score, the lower the probability that the training sample is predicted to be a positive sample; for the medium-score sample user set, The user samples with overdue records are used as positive sample labels, and the user samples without overdue records are used as negative sample labels to train the third prediction model; the medium-score sample user set is processed by the trained third prediction model to obtain the third user score of each training sample in each medium-score sample user set, wherein the higher the third user score, the lower the probability that the training sample is predicted to be a positive sample; a preset positive sample ratio is obtained, the highest second user score obtained by the second prediction model from the high-score sample user set is used as the third score threshold, and the highest second user score obtained by the third prediction model from the medium-score sample user set is used as the third score threshold. The highest third user score is used as the fourth score threshold; the third score threshold is gradually reduced. If, before the third score threshold drops to the lowest second user score obtained by the second prediction model from the high-score sample user set, the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set reaches the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is used as the screening score threshold of the third prediction model;If the third score threshold is reduced to the lowest second user score obtained by the second prediction model from the high-score sample user set, and the ratio of the number of user samples with the second user score greater than the third score threshold and having positive sample labels to the number of user samples with the second user score greater than the third score threshold in the high-score sample user set does not reach the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is gradually reduced, and the first sum of the number of user samples with the second user score greater than the third score threshold and having positive sample labels and the number of user samples with the third user score greater than the fourth score threshold and having positive sample labels is calculated, and the second sum of the number of user samples with the second user score greater than the third score threshold and the number of user samples with the third user score greater than the fourth score threshold is calculated, until the ratio of the first sum to the second sum reaches the preset positive sample ratio, and the fourth score threshold is used as the screening score threshold of the third prediction model. ;
[0047] Another object of the present application is to provide an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the user screening method provided by the present application is implemented.
[0048] Another object of the present application is to provide a machine-readable storage medium, characterized in that the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by one or more processors, the user screening method provided by the present application is implemented.
[0049] Compared with the prior art, this application has the following beneficial effects:
[0050] The user screening method, device and electronic device provided in the present application only retain the first preset rule with strong judgment ability, put some rules in the back position, retain more initial modeling samples, improve the model effect, and divide the samples into three user sets: high, medium and low according to the prediction value of the model for the samples. The rule engine is set differently for samples of different layers, thereby improving the overall reliability of the decision engine. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A schematic diagram of the steps of the user screening method provided in the embodiment of the present application;
[0053] Figure 2 A schematic diagram of an electronic device provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of the functional modules of the user screening device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0056] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the invented product is usually placed when in use. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0059] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0060] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0061] Please refer to Figure 2 , Figure 2 1 is a block diagram of an electronic device 100 provided in a preferred embodiment of the present application. The electronic device 100 comprises a user screening device 110 , a machine-readable storage medium 120 and a processor 130 .
[0062] The components of the machine-readable storage medium 120 and the processor 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The user screening device 110 includes at least one software function module that can be stored in the machine-readable storage medium 120 in the form of software or firmware or solidified in the operating system (OS) of the electronic device 100. The processor 130 is used to execute the executable modules stored in the machine-readable storage medium 120, such as the software function modules and computer programs included in the user screening device 110.
[0063] The machine-readable storage medium 120 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The machine-readable storage medium 120 is used to store a program, and the processor 130 executes the program after receiving an execution instruction.
[0064] The processor 130 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0065] Please refer to Figure 1 , Figure 1 For application Figure 2 A flowchart of a user screening method of the electronic device 100 is shown, and the various steps of the method will be described in detail below.
[0066] Step S110: obtaining a first set of users to be processed, wherein the first set of users to be processed includes a plurality of users to be processed, and each of the users to be processed includes user information.
[0067] The user information may include but is not limited to user income information, user deposit information, historical repayment records, user work and study, user gender, age, user occupation, etc.
[0068] Step S120: Screening the first set of users to be processed according to the first preset rule and the user information of each of the users to be processed to obtain a second set of users to be processed.
[0069] The first preset rule may be a rule with a high degree of recognition of bad customers, such as a blacklist.
[0070] Step S130, using the trained first prediction model to process the second set of users to be processed, and obtaining a user score of each user to be processed in each set of second users to be processed, wherein the higher the user score, the lower the probability that the user to be processed is predicted to be a positive sample. The positive sample is a user who is predicted to have a loan default.
[0071] Step S140: Obtain a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold.
[0072] Step S150: dividing the second set of users to be processed into a low-score set of users to be processed, a medium-score set of users to be processed, and a high-score set of users to be processed according to the first score threshold, the second score threshold, and the user scores obtained by the first prediction model.
[0073] Step S160, using the trained second prediction model and the third prediction model respectively, to process the high-score to-be-processed user set and the medium-score to-be-processed user set to obtain user scores of the high-score to-be-processed user set and the medium-score to-be-processed user set.
[0074] Step S170, based on the screening score thresholds corresponding to the second prediction model and the third prediction model, screen out samples of users whose user scores meet the conditions from the high-score to-be-processed user set and the medium-score to-be-processed user set as admitted users.
[0075] This embodiment also provides a training method for the first prediction model, the second prediction model and the third prediction model, and a corresponding determination method for the screening score threshold. Specifically, the method provided in this embodiment also includes the following steps.
[0076] Step S201, obtaining a first training sample set, wherein the first training sample set includes a plurality of training samples, each of the training samples includes user data and a user repayment overdue label.
[0077] Step S202: Screen the first training sample set according to the first preset rule to obtain a second training sample set.
[0078] Step S203: Use user samples with overdue records in the second training sample set as positive sample labels, and use user samples without overdue records as negative sample labels to train the first prediction model.
[0079] Step S204, processing the second training sample set by the trained first prediction model to obtain a first user score for each training sample in each second training sample set, wherein the higher the first user score is, the lower the probability that the training sample is predicted to be a positive sample is.
[0080] Step S205: Obtain a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold.
[0081] Step S206: Divide the second training sample set into a low-score sample user set, a medium-score sample user set, and a high-score sample user set according to the first score threshold, the second score threshold, and the first user score.
[0082] Step S207 , for the high-score sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels, to train the second prediction model.
[0083] Step S208, processing the high-score sample user set by the trained second prediction model to obtain a second user score for each training sample in each high-score sample user set, wherein the higher the second user score, the lower the probability that the training sample is predicted as a positive sample.
[0084] Step S209 , for the middle-class sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels, to train the third prediction model.
[0085] Step S210, processing the median sample user set through the trained third prediction model to obtain a third user score for each training sample in each median sample user set, wherein the higher the third user score, the lower the probability that the training sample is predicted as a positive sample.
[0086] Step S211, obtain a preset positive sample ratio, use the highest second user score obtained by the second prediction model from the high-score sample user set as the third score threshold, and use the highest third user score obtained by the third prediction model from the medium-score sample user set as the fourth score threshold.
[0087] Step S212, gradually lowering the third score threshold. If, before the third score threshold drops to the lowest second user score obtained by the second prediction model from the high-score sample user set, the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set reaches the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is used as the screening score threshold of the third prediction model.
[0088] Step S213: If the third score threshold is reduced to the lowest second user score obtained by the second prediction model from the high-score sample user set, and the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set does not reach the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is gradually reduced, and a first sum of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels and the number of user samples whose third user scores are greater than the fourth score threshold and have positive sample labels is calculated, and a second sum of the number of user samples whose second user scores are greater than the third score threshold and the number of user samples whose third user scores are greater than the fourth score threshold is calculated, until the ratio of the first sum to the second sum reaches the preset positive sample ratio, and the fourth score threshold is used as the screening score threshold of the third prediction model.
[0089] In some possible implementations, after the step of dividing the second set of users to be processed into a set of low-score users to be processed, a set of medium-score users to be processed, and a set of high-score users to be processed according to the first score threshold, the second score threshold, and the user scores obtained by the first prediction model, the method further includes:
[0090] According to the second preset rule and the user information of each of the to-be-processed users, the set of high-scoring to-be-processed users is screened to obtain a screened set of high-scoring to-be-processed users.
[0091] According to the third preset rule and the user information of each of the to-be-processed users, the medium-divided to-be-processed user set is screened to obtain a screened medium-divided to-be-processed user set.
[0092] In some possible implementations, the step of using user samples with overdue records in the second training sample set as positive sample labels and user samples without overdue records as negative sample labels to train the first prediction model includes:
[0093] Dividing the second training sample set into a second training set and a second test set;
[0094] User samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels. The first prediction model is trained using the second training set, and the trained first prediction model is tested using the second test set until the AUC or KS value of the first prediction model calculated on the second training sample set is the highest, and the difference between the AUC or KS values of the first prediction model on the second training set and the second test set is within a set value range.
[0095] In some possible implementations, the step of training the second prediction model for the high-score sample user set by using user samples with overdue records as positive sample labels and user samples without overdue records as negative sample labels includes:
[0096] The high-score sample user set is divided into a high-score sample training set and a high-score sample test set.
[0097] User samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels. The second prediction model is trained using the high-score sample training set, and the trained second prediction model is tested using the high-score sample test set until the AUC or KS value calculated by the second prediction model on the high-score sample user set is the highest, and the difference between the AUC or KS values obtained by the second prediction model on the high-score sample training set and the high-score sample test set is within a set value range.
[0098] In some possible implementations, the step of training the third prediction model for the average sample user set by taking user samples with overdue records as positive sample labels and taking user samples without overdue records as negative sample labels includes:
[0099] The medium-split sample user set is divided into a medium-split sample training set and a medium-split sample test set.
[0100] The user samples with overdue records are used as positive sample labels, and the user samples without overdue records are used as negative sample labels. The third prediction model is trained using the median sample training set, and the trained third prediction model is tested using the median sample test set until the AUC or KS value calculated by the third prediction model on the median sample user set is the highest, and the difference between the AUC or KS values obtained by the third prediction model on the median sample training set and the median sample test set is within a set value range.
[0101] Please refer to Figure 3This embodiment further provides a user screening device 110, which includes at least one functional module that can be stored in a machine-readable storage medium 120 in the form of software. Functionally, the user screening device 110 may include a first data acquisition module 111, a first screening module 112, a first prediction module 113, a user classification module 114, a second prediction module 115, and a user screening module 116.
[0102] The first data acquisition module 111 is used to acquire a first set of users to be processed, where the first set of users to be processed includes a plurality of users to be processed, and each of the users to be processed includes user information.
[0103] The first screening module 112 is used to screen the first set of users to be processed according to a first preset rule and user information of each of the users to be processed to obtain a second set of users to be processed.
[0104] The first prediction module 113 is used to process the second set of users to be processed using the trained first prediction model to obtain a user score of each user to be processed in each set of second users to be processed, wherein the higher the user score, the lower the probability that the user to be processed is predicted to be a positive sample. The positive sample is a user who is predicted to have a loan default.
[0105] The user segmentation module 114 is used to obtain a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold, and to segment the second set of users to be processed into a set of low-score users to be processed, a set of medium-score users to be processed, and a set of high-score users to be processed according to the first score threshold, the second score threshold, and the user scores obtained by the first prediction model.
[0106] The second prediction module 115 is used to process the high-score to-be-processed user set and the medium-score to-be-processed user set using the trained second prediction model and the third prediction model respectively to obtain user scores of the high-score to-be-processed user set and the medium-score to-be-processed user set.
[0107] The user screening module 116 is used to screen out user samples whose user scores meet the conditions from the high-score to-be-processed user set and the medium-score to-be-processed user set as admitted users according to the screening score thresholds corresponding to the second prediction model and the third prediction model.
[0108] In some possible implementations, the user screening device 110 further includes:
[0109] The second data acquisition module is used to acquire a first training sample set, where the first training sample set includes multiple training samples, and each training sample includes user data and a user repayment overdue label.
[0110] The second screening module screens the first training sample set according to the first preset rule to obtain a second training sample set.
[0111] The training module is used to train the first prediction model by taking user samples with overdue records in the second training sample set as positive sample labels and taking user samples without overdue records as negative sample labels; processing the second training sample set by the trained first prediction model to obtain the first user score of each training sample in each second training sample set, wherein the higher the first user score is, the lower the probability that the training sample is predicted to be a positive sample is; obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is less than the second score threshold; and performing a prediction on the first prediction model according to the first score threshold, the second score threshold and The first user score is used to divide the second training sample set into a low-score sample user set, a medium-score sample user set and a high-score sample user set; for the high-score sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels to train the second prediction model; the high-score sample user set is processed by the trained second prediction model to obtain the second user score of each training sample in each high-score sample user set, wherein the higher the second user score, the lower the probability that the training sample is predicted to be a positive sample; for the medium-score sample user set, The user samples with overdue records are used as positive sample labels, and the user samples without overdue records are used as negative sample labels to train the third prediction model; the medium-score sample user set is processed by the trained third prediction model to obtain the third user score of each training sample in each medium-score sample user set, wherein the higher the third user score, the lower the probability that the training sample is predicted to be a positive sample; a preset positive sample ratio is obtained, the highest second user score obtained by the second prediction model from the high-score sample user set is used as the third score threshold, and the highest second user score obtained by the third prediction model from the medium-score sample user set is used as the third score threshold. The highest third user score is used as the fourth score threshold; the third score threshold is gradually reduced. If, before the third score threshold drops to the lowest second user score obtained by the second prediction model from the high-score sample user set, the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set reaches the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is used as the screening score threshold of the third prediction model;If the third score threshold is reduced to the lowest second user score obtained by the second prediction model from the high-score sample user set, and the ratio of the number of user samples with the second user score greater than the third score threshold and having positive sample labels to the number of user samples with the second user score greater than the third score threshold in the high-score sample user set does not reach the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is gradually reduced, and the first sum of the number of user samples with the second user score greater than the third score threshold and having positive sample labels and the number of user samples with the third user score greater than the fourth score threshold and having positive sample labels is calculated, and the second sum of the number of user samples with the second user score greater than the third score threshold and the number of user samples with the third user score greater than the fourth score threshold is calculated, until the ratio of the first sum to the second sum reaches the preset positive sample ratio, and the fourth score threshold is used as the screening score threshold of the third prediction model. ;
[0112] To sum up, the user screening method, device and electronic device provided by the present application only retain the first preset rule with strong judgment ability, put some rules in the post-position, retain more initial modeling samples, and improve the model effect; according to the model's predicted value of the sample, the sample is divided into three user sets: high, medium, and low, and the rule engine is set differently for samples of different layers, thereby improving the overall reliability of the decision engine.
[0113] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0114] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0115] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0116] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0117] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A user screening method, characterized in that: The method comprises: Acquire a first set of users to be processed, where the first set of users to be processed includes a plurality of users to be processed, and each of the users to be processed includes user information; According to the first preset rule and the user information of each of the to-be-processed users, the first to-be-processed user set is screened to obtain a second to-be-processed user set; The second set of users to be processed is processed using the trained first prediction model to obtain a user score of each user to be processed in each set of users to be processed, wherein the higher the user score is, the lower the probability that the user to be processed is predicted to be a positive sample; the positive sample is a user predicted to have a loan default; Obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold; According to the first score threshold, the second score threshold and the user scores obtained by the first prediction model, the second set of users to be processed is divided into a set of users to be processed with low scores, a set of users to be processed with medium scores and a set of users to be processed with high scores; Using the trained second prediction model and the trained third prediction model respectively, the high-score to-be-processed user set and the medium-score to-be-processed user set are processed to obtain user scores of the high-score to-be-processed user set and the medium-score to-be-processed user set; According to the screening score thresholds corresponding to the second prediction model and the third prediction model, a sample of users to be processed whose user scores meet the conditions is screened out from the high-score to-be-processed user set and the medium-score to-be-processed user set as admitted users.
2. The method according to claim 1, characterized in that The method further comprises: Acquire a first training sample set, wherein the first training sample set includes a plurality of training samples, each of the training samples includes user data and a user repayment overdue label; Screening the first training sample set according to the first preset rule to obtain a second training sample set; Using user samples with overdue records in the second training sample set as positive sample labels, and using user samples without overdue records as negative sample labels, to train the first prediction model; Processing the second training sample set by using the trained first prediction model to obtain a first user score for each training sample in each second training sample set, wherein a higher first user score indicates a lower probability that the training sample is predicted as a positive sample; Obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is smaller than the second score threshold; According to the first score threshold, the second score threshold and the first user score, the second training sample set is divided into a low-score sample user set, a medium-score sample user set and a high-score sample user set; For the high-score sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels to train the second prediction model; Processing the high-score sample user set by using the trained second prediction model to obtain a second user score for each training sample in each high-score sample user set, wherein a higher second user score indicates a lower probability that the training sample is predicted as a positive sample; For the middle-divided sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels, and the third prediction model is trained; Processing the medium-scoring sample user set by means of the trained third prediction model to obtain a third user score of each training sample in each medium-scoring sample user set, wherein a higher third user score indicates a lower probability that the training sample is predicted as a positive sample; Obtaining a preset positive sample ratio, taking the highest second user score obtained by the second prediction model from the high-score sample user set as a third score threshold, and taking the highest third user score obtained by the third prediction model from the medium-score sample user set as a fourth score threshold; Gradually lowering the third score threshold, if before the third score threshold drops to the lowest second user score derived by the second prediction model from the high-score sample user set, the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set reaches the preset positive sample ratio, then using the current third score threshold as the screening score threshold of the second prediction model, and using the fourth score threshold as the screening score threshold of the third prediction model; If the third score threshold is reduced to the lowest second user score obtained by the second prediction model from the high-score sample user set, and the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set does not reach the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is gradually reduced, and a first sum of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels and the number of user samples whose third user scores are greater than the fourth score threshold and have positive sample labels is calculated, and a second sum of the number of user samples whose second user scores are greater than the third score threshold and the number of user samples whose third user scores are greater than the fourth score threshold is calculated, until the ratio of the first sum to the second sum reaches the preset positive sample ratio, and the fourth score threshold is used as the screening score threshold of the third prediction model.
3. The method according to claim 2, characterized in that After the step of dividing the second training sample set into a low-score sample user set, a medium-score sample user set, and a high-score sample user set according to the first score threshold, the second score threshold, and the first user score, the method further includes: According to the second preset rule and the user information of each of the to-be-processed users, the high-score sample user set is screened to obtain a screened high-score sample user set; According to the third preset rule and the user information of each of the to-be-processed users, the medium-score sample user set is screened to obtain a screened medium-score sample user set.
4. The method according to claim 2, characterized in that: The step of using user samples with overdue records in the second training sample set as positive sample labels and user samples without overdue records as negative sample labels to train the first prediction model includes: Dividing the second training sample set into a second training set and a second test set; User samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels. The first prediction model is trained using the second training set, and the trained first prediction model is tested using the second test set until the AUC or KS value of the first prediction model calculated on the second training sample set is the highest, and the difference between the AUC or KS values of the first prediction model on the second training set and the second test set is within a set value range.
5. The method according to claim 2, characterized in that: The step of training the second prediction model for the high-score sample user set by taking user samples with overdue records as positive sample labels and taking user samples without overdue records as negative sample labels comprises: Dividing the high-score sample user set into a high-score sample training set and a high-score sample test set; User samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels. The second prediction model is trained using the high-score sample training set, and the trained second prediction model is tested using the high-score sample test set until the AUC or KS value calculated by the second prediction model on the high-score sample user set is the highest, and the difference between the AUC or KS values obtained by the second prediction model on the high-score sample training set and the high-score sample test set is within a set value range.
6. The method according to claim 2, characterized in that The step of training the third prediction model for the average sample user set by taking user samples with overdue records as positive sample labels and user samples without overdue records as negative sample labels comprises: Dividing the average sample user set into an average sample training set and an average sample test set; The user samples with overdue records are used as positive sample labels, and the user samples without overdue records are used as negative sample labels. The third prediction model is trained using the median sample training set, and the trained third prediction model is tested using the median sample test set until the AUC or KS value calculated by the third prediction model on the median sample user set is the highest, and the difference between the AUC or KS values obtained by the third prediction model on the median sample training set and the median sample test set is within a set value range.
7. A user screening device, characterized in that: The device comprises: A first data acquisition module is used to acquire a first set of users to be processed, wherein the first set of users to be processed includes a plurality of users to be processed, and each of the users to be processed includes user information; A first screening module, configured to screen the first set of users to be processed according to a first preset rule and user information of each of the users to be processed, to obtain a second set of users to be processed; A first prediction module is used to process the second set of users to be processed using the trained first prediction model to obtain a user score of each user to be processed in each set of users to be processed, wherein the higher the user score is, the lower the probability that the user to be processed is predicted to be a positive sample; the positive sample is a user predicted to have a loan default; A user segmentation module is configured to obtain a preset first score threshold and a second score threshold, wherein the first score threshold is less than the second score threshold; and to segment the second set of users to be processed into a set of users to be processed with low scores, a set of users to be processed with medium scores, and a set of users to be processed with high scores according to the first score threshold, the second score threshold, and the user scores obtained by the first prediction model; A second prediction module is used to process the high-score to-be-processed user set and the medium-score to-be-processed user set using the trained second prediction model and the third prediction model respectively, to obtain user scores of the high-score to-be-processed user set and the medium-score to-be-processed user set; A user screening module is used to screen out user samples whose user scores meet the conditions from the high-score to-be-processed user set and the medium-score to-be-processed user set as admitted users according to the screening score thresholds corresponding to the second prediction model and the third prediction model.
8. The device according to claim 7, characterized in that The device also includes: A second data acquisition module is used to acquire a first training sample set, wherein the first training sample set includes a plurality of training samples, each of which includes user data and a user repayment overdue label; a second screening module, screening the first training sample set according to the first preset rule to obtain a second training sample set; The training module is used to train the first prediction model by taking user samples with overdue records in the second training sample set as positive sample labels and taking user samples without overdue records as negative sample labels; processing the second training sample set by the trained first prediction model to obtain the first user score of each training sample in each second training sample set, wherein the higher the first user score is, the lower the probability that the training sample is predicted to be a positive sample is; obtaining a preset first score threshold and a second score threshold, wherein the first score threshold is less than the second score threshold; and performing a prediction on the first prediction model according to the first score threshold, the second score threshold and The first user score is used to divide the second training sample set into a low-score sample user set, a medium-score sample user set and a high-score sample user set; for the high-score sample user set, user samples with overdue records are used as positive sample labels, and user samples without overdue records are used as negative sample labels to train the second prediction model; the high-score sample user set is processed by the trained second prediction model to obtain the second user score of each training sample in each high-score sample user set, wherein the higher the second user score, the lower the probability that the training sample is predicted to be a positive sample; for the medium-score sample user set, The user samples with overdue records are used as positive sample labels, and the user samples without overdue records are used as negative sample labels to train the third prediction model; the medium-score sample user set is processed by the trained third prediction model to obtain the third user score of each training sample in each medium-score sample user set, wherein the higher the third user score, the lower the probability that the training sample is predicted to be a positive sample; a preset positive sample ratio is obtained, the highest second user score obtained by the second prediction model from the high-score sample user set is used as the third score threshold, and the highest second user score obtained by the third prediction model from the medium-score sample user set is used as the third score threshold. The highest third user score is used as the fourth score threshold; the third score threshold is gradually reduced. If, before the third score threshold drops to the lowest second user score obtained by the second prediction model from the high-score sample user set, the ratio of the number of user samples whose second user scores are greater than the third score threshold and have positive sample labels to the number of user samples whose second user scores are greater than the third score threshold in the high-score sample user set reaches the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is used as the screening score threshold of the third prediction model;If the third score threshold is reduced to the lowest second user score obtained by the second prediction model from the high-score sample user set, and the ratio of the number of user samples with the second user score greater than the third score threshold and having positive sample labels to the number of user samples with the second user score greater than the third score threshold in the high-score sample user set does not reach the preset positive sample ratio, the current third score threshold is used as the screening score threshold of the second prediction model, and the fourth score threshold is gradually reduced, and the first sum of the number of user samples with the second user score greater than the third score threshold and having positive sample labels and the number of user samples with the third user score greater than the fourth score threshold and having positive sample labels is calculated, and the second sum of the number of user samples with the second user score greater than the third score threshold and the number of user samples with the third user score greater than the fourth score threshold is calculated, until the ratio of the first sum to the second sum reaches the preset positive sample ratio, and the fourth score threshold is used as the screening score threshold of the third prediction model. ; 9. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by one or more processors, the method according to any one of claims 1 to 6 is implemented.
