Method and device for generating anti-fraud model

By constructing the initial parameter space and population iterative update method, the problem of low training efficiency of anti-fraud model is solved, and faster model training and higher prediction accuracy are achieved.

CN118886924APending Publication Date: 2024-11-01WEBANK (CHINA)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411029184.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The training efficiency of existing anti-fraud models is low, especially the particle swarm optimization algorithm (PSO) requires artificial parameter space, which leads to slow convergence speed of the model and it is difficult to find the optimal solution to hyperparameters within the effective time.

Method used

By constructing the initial parameter space of K hyperparameters of the anti-fraud model, M particles are generated, and the parameter space is updated through population iteration, the parameter space is expanded using the positional relationship between the individual optimal solution and the population optimal solution, and the parameter space is adjusted round by round The velocity and position of particles to improve the optimal solution efficiency of hyperparameters.

Benefits of technology

It improves the training speed and prediction accuracy of the anti-fraud model, improves the hardware execution effect of the model, and reduces the time consumption during the training process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886924A_ABST
    Figure CN118886924A_ABST
Patent Text Reader

Abstract

The invention discloses an anti-fraud model generation method and device, and the method comprises the steps: constructing an initial parameter space, and generating M particles; performing population iteration on the M particles to determine final parameter values of hyper-parameters of the anti-fraud model; the process of each population iteration is as follows: determining M anti-fraud models of the Nth round according to M particles in the Nth round of population iteration; calculating fitness function values of the M anti-fraud models; determining a first convex polyhedron according to the individual optimal solutions of the M particles; determining a parameter space corresponding to the (N + 1) th round of population iteration according to a position relationship between the first convex polyhedron and a particle corresponding to the optimal solution of the population; and determining M particles of the (N + 1) th round of population iteration in the parameter space corresponding to the (N + 1) th round of population iteration. By adopting the method, each round of population iteration can correspond to different parameter spaces, the training speed of the model is improved, and then the execution effect of hardware in the training process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology, and in particular to a method and device for generating an anti-fraud model. Background Art

[0002] With the rapid development of financial technology, various financial services have become more popular and convenient. At the same time, this has also provided new opportunities for fraud. Financial fraud not only causes huge economic losses to financial institutions, but also seriously undermines the order of the financial market and consumer confidence. Therefore, training effective anti-fraud models to identify fraud has become an urgent problem to be solved in the financial industry.

[0003] There are many common anti-fraud models, mainly based on logistic regression, distributed gradient boosting library (eXtremeGradient Boosting, Xgboost) and light gradient boosting machine (Light Gradient Boosting Machine, LightGBM). Anti-fraud models have multiple hyperparameters. Traditional model parameter adjustment methods are often based on empirical parameter adjustment, grid parameter adjustment or particle swarm optimization (PSO). However, the PSO algorithm requires manual setting of the parameter solution space. Each iteration, particles can only move within a fixed parameter space, resulting in low efficiency of the training method and slow model convergence.

[0004] Therefore, how to train the model still needs further research. Summary of the invention

[0005] The present application provides a method and device for generating an anti-fraud model, which are used to increase the training speed of the model, thereby improving the execution effect of the hardware during the training process.

[0006] In a first aspect, an embodiment of the present application provides a method for generating an anti-fraud model, which can be executed by a device for generating an anti-fraud model, the method comprising: constructing an initial parameter space of K hyperparameters of the anti-fraud model, and generating M particles located in the initial parameter space; wherein each particle corresponds to an anti-fraud model, and the position of each particle in the initial parameter space represents the parameter value of the K hyperparameters; by performing population iteration on the M particles, the final parameter value of the hyperparameter of the anti-fraud model is determined; wherein each population iteration process is as follows: according to the M particles in the Nth round of population iteration, the M anti-fraud models of the Nth round are determined; by performing a plurality of training sample users on the M particles, the M anti-fraud models of the Nth round are determined; The fitness function values ​​of the M anti-fraud models are calculated based on the prediction results under the anti-fraud models and the labels of the multiple training sample users, and the fitness function values ​​represent the prediction accuracy of the anti-fraud models; the labels are used to indicate whether the training sample users are fraudulent users; according to the particles corresponding to the individual optimal solutions of the M particles in N rounds of population iterations, the first convex polyhedron corresponding to the Nth round of population iteration is determined; according to the positional relationship between the first convex polyhedron and the particles corresponding to the group optimal solution of the Nth round of population iteration, the parameter space corresponding to the N+1th round of population iteration is determined; in the parameter space corresponding to the N+1th round of population iteration, the M particles of the N+1th round of population iteration are determined.

[0007] By adopting the above method, the first convex polyhedron is determined by the particles corresponding to the individual optimal solution, and the parameter space corresponding to each round of population iteration is updated according to the positional relationship between the first convex polyhedron and the group optimal solution. In this way, the parameter space corresponding to each particle in each round of population iteration is different, and the parameter space corresponding to the particle can be determined more accurately, thereby improving the efficiency of each particle in finding the individual optimal solution in the parameter space, that is, improving the efficiency of determining the optimal solution of the hyperparameters of the anti-fraud model.

[0008] In a possible implementation, a parameter space corresponding to the N+1th round of population iteration is determined based on a positional relationship between the first convex polyhedron and particles corresponding to the optimal solution of the population in the Nth round of population iteration, including: if the particles corresponding to the optimal solution of the population in the Nth round of population iteration are located inside the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a first distance to obtain the parameter space corresponding to the N+1th round of population iteration; if the particles corresponding to the optimal solution of the population in the Nth round of population iteration are located on the surface of the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a second distance to obtain the parameter space corresponding to the N+1th round of population iteration; the second distance is greater than the first distance.

[0009] By adopting the above method, according to the positional relationship between the particle corresponding to the swarm optimal solution and the first convex polyhedron, the positional relationship is divided into the interior of the first convex polyhedron and the surface of the first convex polyhedron. Thus, according to the two situations, each vertex of the first convex polyhedron is expanded outward by different distances, and the parameter space corresponding to each particle is determined more finely.

[0010] In one possible implementation, the vertices of the first convex polyhedron are expanded outward by a first distance to obtain a parameter space corresponding to the N+1th round of population iteration, including: expanding the vertices of the first convex polyhedron outward by a first distance; constructing a second convex polyhedron based on the expanded vertices; and determining the intersection of the second convex polyhedron and the initial parameter space as the parameter space corresponding to the N+1th round of population iteration.

[0011] Using the above method, the first convex polyhedron is expanded to obtain a second convex polyhedron. The parameter space corresponding to each particle is determined according to the intersection of the second convex polyhedron and the initial parameter space. In this way, the parameter space corresponding to the particle can be determined more accurately, and the individual optimal solution can be found in a smaller parameter space, which can increase the training speed of the anti-fraud model.

[0012] In a possible implementation, the first distance is the distance that the particle corresponding to the vertex moves in half a unit time at the speed corresponding to the Nth round of population iteration; the second distance is the distance that the particle corresponding to the vertex moves in one unit time at the speed corresponding to the Nth round of population iteration.

[0013] In a possible implementation, determining the M particles of the N+1th round of population iteration in the parameter space corresponding to the N+1th round of population iteration includes: determining, for each particle, the speed of the particle in the N+1th round of population iteration; determining an updated position of the particle after movement according to the speed in the N+1th round of population iteration; if the updated position is located in the parameter space corresponding to the N+1th round of population iteration, the updated position is the position of the particle in the N+1th round of population iteration; if the updated position is not located in the parameter space corresponding to the N+1th round of population iteration, taking the boundary position corresponding to the updated position in the parameter space corresponding to the N+1th round of population iteration as the position of the particle in the N+1th round of population iteration.

[0014] By using the above method, the speed and position of each particle in different population iterations can be updated. If the calculated updated position of a particle exceeds the parameter space, the boundary position of the parameter space is used as the updated position of the particle. In this way, the position of each particle can be limited to within the range of the parameter space.

[0015] In a possible implementation, determining the speed of the particle in the N+1th round of population iteration includes: for each particle, determining the speed of the particle in the N+1th round of population iteration according to the inertia weight, the personal cognition parameter, the social cognition parameter, the speed of the particle in the Nth round of population iteration, and the position of the particle in the Nth round of population iteration; wherein the inertia weight decreases with the increase of the number of population iteration rounds, the personal cognition parameter in the early stage of population iteration is greater than the personal cognition parameter in the late stage of population iteration, and the social cognition parameter in the early stage of population iteration is less than the social cognition parameter in the late stage of population iteration.

[0016] Using the above method, the inertia weight, personal cognitive parameters and social cognitive parameters change with the number of rounds of population iteration, so that particles can quickly determine the individual optimal solution and improve the training speed of the anti-fraud model.

[0017] In one possible implementation, the hyperparameters of the anti-fraud model include at least one of the following: the number of trees, the learning rate and the depth of the tree; the value range of the number of trees is greater than or equal to 10 and less than or equal to 100; the value range of the learning rate is greater than or equal to 0.01 and less than or equal to 0.5; the value range of the depth of the tree is greater than or equal to 3 and less than or equal to 30.

[0018] In a possible implementation, any training sample user includes at least one of the following information: customer gender, age, family member information, educational background information, work information, income information, debt information, equipment information, and credit information.

[0019] In one possible implementation, the method also includes: monitoring whether the anti-fraud model is updated; triggering a broadcast stream if updated; obtaining a real-time event stream for identifying fraud, and determining whether the real-time event stream is a fraud event based on the broadcast stream and the real-time event stream.

[0020] By adopting the above method, after the anti-fraud model is updated, the updated anti-fraud model can be quickly obtained, and the updated anti-fraud model and the real-time event stream can be combined to improve the efficiency of judging whether the real-time event stream is a fraud event.

[0021] In a second aspect, an embodiment of the present application provides a device for generating an anti-fraud model, the device comprising:

[0022] A construction module is used to construct an initial parameter space of K hyperparameters of the anti-fraud model; a generation module is used to generate M particles located in the initial parameter space; wherein each particle corresponds to an anti-fraud model, and the position of each particle in the initial parameter space represents the parameter value of the K hyperparameters; a processing module is used to determine the final parameter value of the hyperparameter of the anti-fraud model by performing population iteration on the M particles; and, based on the M particles in the Nth round of population iteration, determine the M anti-fraud models of the Nth round; a calculation module is used to calculate the predicted results of multiple training sample users under the M anti-fraud models and the predicted results of the multiple training sample users. The fitness function values ​​of the M anti-fraud models are calculated based on the labels, and the fitness function values ​​represent the prediction accuracy of the anti-fraud models; the labels are used to indicate whether the training sample users are fraudulent users; the processing module is also used to determine the first convex polyhedron corresponding to the Nth round of population iteration according to the particles corresponding to the individual optimal solutions of the M particles in N rounds of population iteration; determine the parameter space corresponding to the N+1th round of population iteration according to the positional relationship between the first convex polyhedron and the particles corresponding to the group optimal solution of the Nth round of population iteration; and determine the M particles of the N+1th round of population iteration in the parameter space corresponding to the N+1th round of population iteration.

[0023] In one possible implementation, the processing module is also used to, if the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located inside the first convex polyhedron, expand the vertices of the first convex polyhedron outward by a first distance, thereby obtaining a parameter space corresponding to the N+1th round of population iteration; if the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located on the surface of the first convex polyhedron, expand the vertices of the first convex polyhedron outward by a second distance, thereby obtaining a parameter space corresponding to the N+1th round of population iteration; the second distance is greater than the first distance.

[0024] In one possible implementation, the processing module is also used to expand the vertices of the first convex polyhedron outward by a first distance; construct a second convex polyhedron based on the vertices after the outward expansion; and determine the intersection of the second convex polyhedron and the initial parameter space as the parameter space corresponding to the N+1th round of population iteration.

[0025] In a possible implementation, the processing module is further used to determine, for each particle, a speed of the particle in the N+1th round of population iteration; determine an updated position of the particle after movement according to the speed in the N+1th round of population iteration; if the updated position is located in the parameter space corresponding to the N+1th round of population iteration, then the updated position is the position of the particle in the N+1th round of population iteration; if the updated position is not located in the parameter space corresponding to the N+1th round of population iteration, then the boundary position corresponding to the updated position in the parameter space corresponding to the N+1th round of population iteration is used as the position of the particle in the N+1th round of population iteration.

[0026] In a possible implementation, the processing module is further used to determine, for each particle, a speed of the particle in the N+1 round of population iteration based on an inertia weight, a personal cognitive parameter, a social cognitive parameter, the speed of the particle in the N round of population iteration, and a position of the particle in the N round of population iteration; wherein the inertia weight decreases as the number of population iteration rounds increases, the personal cognitive parameter at the beginning of the population iteration is greater than the personal cognitive parameter at the end of the population iteration, and the social cognitive parameter at the beginning of the population iteration is less than the social cognitive parameter at the end of the population iteration.

[0027] In one possible implementation, the processing module is also used to monitor whether the anti-fraud model is updated; if updated, the broadcast stream is triggered; the device also includes an acquisition module, which is used to acquire a real-time event stream for identifying fraud, and the processing module is also used to determine whether the real-time event stream is a fraud event based on the broadcast stream and the real-time event stream.

[0028] In a third aspect, an embodiment of the present application further provides an anti-fraud model generation device, the device comprising a memory and a processor, the memory being used to store computer programs or instructions; the processor being used to call the computer programs or instructions stored in the memory to execute a method in any possible implementation of the first aspect.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When a computer reads and executes the instructions, the computer executes a method in any possible implementation of the first aspect.

[0030] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein instructions are stored in the computer program product. When a computer reads and executes the instructions, the computer executes a method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0032] Figure 1 A flowchart corresponding to a method for generating an anti-fraud model provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of an internal module of a device 2000 for generating an anti-fraud model provided in an embodiment of the present application;

[0034] Figure 3 A structural schematic diagram of an anti-fraud model generation device 3000 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0036] There are many common anti-fraud models, such as the loan fraud identification model based on logistic regression, but this model has low recognition accuracy and has the problem of collinearity of model variables; for example, the ensemble learning model based on Xgboost, but this method is time-consuming and inefficient to train when processing massive data and multi-dimensional feature data. In addition, there are models with higher accuracy and efficiency than the above two models, but the models have many hyperparameters. Traditional hyperparameters are often based on empirical parameter adjustment or grid parameter adjustment. This method is inefficient and it is difficult to obtain the optimal solution of parameters within the effective time. The common PSO algorithm can be used to optimize the hyperparameters of the model, but the PSO algorithm requires the parameter space to be set manually. The parameter space is the movement space of the particles. Each iteration, the particles can only move within the set parameter space, and the set parameter space is fixed. Therefore, this method is also inefficient in determining the hyperparameters of the model.

[0037] Based on this, an embodiment of the present application provides a method for generating an anti-fraud model, which is used to achieve different parameter spaces corresponding to each round of population iteration, improve the training speed of the model, and further improve the execution effect of the hardware during the training process.

[0038] Figure 1A schematic diagram of a flow chart corresponding to a method for generating an anti-fraud model provided in an embodiment of the present application, which flow chart can be executed by a device for generating an anti-fraud model, such as Figure 1 As shown, the process includes the following steps:

[0039] Step 101, construct an initial parameter space of K hyperparameters of the anti-fraud model, and generate M particles in the initial parameter space.

[0040] Exemplarily, the embodiment of the present application takes the anti-fraud model LightGBM as an example. The LightGBM model involves multiple hyperparameters, including the number of trees, learning rate, tree depth, and number of leaf nodes. Based on the bank's anti-fraud model training history experience and fraud data, it is found that the three hyperparameters of the number of trees, learning rate, and tree depth have a greater impact on the model's identification of fraud data. Therefore, the embodiment of the present application describes the number of trees, learning rate, and tree depth as hyperparameters. The present application does not limit the specific anti-fraud model, and the present application does not make specific restrictions on hyperparameters, which may include at least one of the number of trees, learning rate, and tree depth.

[0041] Construct the initial parameter space of the above three hyperparameters. Specifically, each hyperparameter has a corresponding value range. According to the value range set for each hyperparameter, determine the initial parameter space of the three hyperparameters. Based on the experience of the staff, since the anti-fraud model processes a large number of data types and the data structure is relatively complex, the number of trees cannot be too small, but if the number of trees is too large, the training will be slow. Therefore, the value range of the number of trees is greater than or equal to 10 and less than or equal to 100. For the learning rate hyperparameter, if the learning rate is set too large, it is easy to cause unstable model training. If it is set too small, the model convergence speed is very slow. Therefore, the value range of the learning rate is greater than or equal to 0.01 and less than or equal to 0.5. For the tree depth hyperparameter, if the tree depth is set too small, the model is prone to underfitting. If it is set too large, the model is prone to overfitting. Therefore, the value range of the tree depth is greater than or equal to 3 and less than or equal to 30. Therefore, the initial parameter space of the three hyperparameters in the embodiment of the present application is shown in Table 1, and the upper bound and the lower bound represent the maximum value and the minimum value of the hyperparameters, respectively.

[0042] Table 1

[0043]

[0044] The initial parameter space is the parameter space corresponding to the first round of population iteration of the particles. Further, M particles located in the initial parameter space are generated. The embodiment of the present application takes 50 particles as an example, and the embodiment of the present application does not specifically limit the number of particles. The particles are located in the initial parameter space. Since the parameter space in the embodiment of the present application is determined by the value range of three hyperparameters, the position coordinates of the particles have three dimensions, which are the number of trees, the learning rate, and the depth of the tree. The coordinate value of the particle in the corresponding dimension is the value of the hyperparameter corresponding to the anti-fraud model in the dimension. For example, the coordinate value of the particle in the parameter space is (35, 0.2, 15), then the model parameters corresponding to the particle are the number of trees is 35, the learning rate is 0.2, and the depth of the tree is 15. The 50 particles in the embodiment of the present application all have randomly initialized initial positions.

[0045] The final parameter values ​​of the hyperparameters of the anti-fraud model are determined by performing population iteration on the above 50 particles. The process of each population iteration is shown below.

[0046] Step 102, determining M anti-fraud models of the Nth round according to the M particles in the Nth round of population iteration.

[0047] Exemplarily, the positions of the 50 particles in each round of population iteration may change, and the 50 particles are continuously iterated according to the initial positions randomly initialized in the first round of population iteration. In the Nth round of population iteration, the 50 particles have the corresponding positions in the Nth round. According to the positions of the 50 particles in the Nth round, the 50 anti-fraud models of the Nth round are determined.

[0048] Step 103, calculating the fitness function values ​​of the M anti-fraud models through the prediction results of the multiple training sample users under the M anti-fraud models and the labels of the multiple training sample users.

[0049] Specifically, based on the flow data within a certain period of time in the past, the basic information of multiple users can be obtained, and the basic information of the users can be preprocessed, including missing value processing and abnormal value processing, such as deleting user data whose age does not meet the set range, or calculating the age based on the ID card information and filling in the missing age information. The preprocessing can also include other processing steps, and the embodiments of the present application do not specifically limit the preprocessing method.

[0050] Based on the pre-processed basic information of the user, the user's label is determined. The label can indicate whether the user is a fraudulent user. Multiple users with determined labels are used as training sample users. Due to the particularity of bank loan data, the data volume is large, the data type is complex, and the data source is inconsistent, so there are multiple basic information of users. Based on descriptive analysis, statistical analysis and business experience of various information, the influence of each basic information of the user on judging whether the user is a fraudulent user is determined, and important information is selected as the feature variable for training the anti-fraud model. Any training sample user includes at least one of the following information: customer gender, age, family information, education background information, work information, income information, debt information, equipment information, and credit information.

[0051] The information of multiple training sample users is input into the 50 anti-fraud models of the determined Nth round. According to the prediction results of the 50 models and the labels of the training sample users, the fitness function values ​​of the 50 anti-fraud models of the Nth round are calculated, which are f and f respectively. 1,N 、f 2,N 、f 3, N......f 50,N . Specifically, the anti-fraud model predicts the probability value of the user being a fraudulent user based on the basic information of the input user, and outputs whether the user is a fraudulent user based on the pre-set probability threshold of the anti-fraud model. For example, the anti-fraud model predicts that the probability value of user 1 being a fraudulent user is 60%, and the probability value of user 2 being a fraudulent user is 30%, and the pre-set probability threshold of the anti-fraud model is 50%, then the output is that user 1 is a normal user, and the output is that user 2 is a fraudulent user. Based on the prediction results of the anti-fraud model for multiple training sample users and the labels of the training sample users, the fitness function value of the anti-fraud model is calculated. The fitness function value can characterize the prediction accuracy of the model. The embodiment of the present application uses the F1 score of the model as the fitness function of the model. The embodiment of the present application does not specifically limit the fitness function.

[0052] The F1 score is a commonly used indicator for evaluating classification models, especially for binary classification models. It is the harmonic mean of precision and recall. The calculation formula for the F1 score is:

[0053] F1 = 2 × (precision × recall) / (precision + recall)

[0054] Among them, precision represents the proportion of samples predicted by the model as positive that are actually positive, while recall represents the proportion of all samples that are actually positive that are correctly predicted by the model as positive. The combination of these two indicators can help evaluate the performance of classification models, especially when dealing with data with imbalanced categories. The F1 score provides a single metric value, and the closer the value is to 1, the better the prediction performance of the model.

[0055] Step 104 , determining a first convex polyhedron corresponding to the Nth round of population iteration according to particles corresponding to the individual optimal solutions of the M particles in N rounds of population iteration.

[0056] Specifically, the fitness function values ​​of the 50 anti-fraud models corresponding to each round of population iteration are the fitness function values ​​corresponding to the 50 particles in each round of population iteration. According to the fitness function values ​​of the 50 anti-fraud models corresponding to N rounds of population iteration, the fitness function values ​​corresponding to the 50 particles in N rounds of population iteration are determined. Among them, the fitness function value corresponding to the 50 particles in the first round of population iteration is: f 1,1 、f 2,1 、f 3,1 ......f 50,1 ; The fitness function value corresponding to 50 particles in the second round of population iteration is: f 1,2 、f 2,2 、f 3,2 ......f 50,2 ; The fitness function value corresponding to 50 particles in the Nth round of population iteration is: f 1,N 、f 2,N 、f 3, N......f 50,N . Count the maximum fitness function value of each particle in N rounds of population iteration, that is, the optimal fitness value is the individual optimal solution of the particle. According to the individual optimal solutions of 50 particles, determine the first convex polyhedron corresponding to the Nth round of population iteration. For example, get the fitness function value corresponding to the first particle in N rounds of population iteration, such as the fitness function value from the first round to the Nth round is f 1,1 =0.1, f 1,2 =0.3, f 1,3 =0.7......f 1,N =0.55, determine f 1,3 The maximum value of is 0.7, then the optimal fitness value of the first particle in N rounds of population iteration is 0.7, recorded as f1. In the same way, the optimal fitness value of the second particle in N rounds of population iteration is f2; the optimal fitness value of the third particle in N rounds of population iteration is f3; ... The optimal fitness value of the 50th particle in N rounds of population iteration is f 50 The first convex polyhedron includes the particle positions corresponding to each particle at the individual optimal solution.

[0057] Step 105 , determining the parameter space corresponding to the N+1th round of population iteration according to the positional relationship between the first convex polyhedron and the particles corresponding to the population optimal solution of the Nth round of population iteration.

[0058] For example, the optimal solution of the population in the Nth round of population iteration is the maximum value of the individual optimal solutions of 50 particles in N rounds of population iteration, that is, F = max{f1,f2,...f 50}. According to the positional relationship between the first convex polyhedron and the particles corresponding to the group optimal solution of the Nth round of population iteration, the parameter space corresponding to the N+1th round of population iteration is determined. Specifically, the positional relationship between the first convex polyhedron and the particles corresponding to the group optimal solution includes multiple types, such as the particles corresponding to the group optimal solution are within the center range of the first convex polyhedron, or the particles corresponding to the group optimal solution are within the edge range of the first convex polyhedron; the particles corresponding to the group optimal solution are within the left half range of the first convex polyhedron, or the particles corresponding to the group optimal solution are within the right half range of the first convex polyhedron.

[0059] Optionally, if the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located inside the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a first distance, thereby obtaining the parameter space corresponding to the N+1th round of population iteration; if the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located on the surface of the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a second distance, thereby obtaining the parameter space corresponding to the N+1th round of population iteration. The second distance is greater than the first distance. The expanded first convex polyhedron can be the parameter space corresponding to the N+1th round of population iteration.

[0060] Optionally, when the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located inside the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a first distance, and a second convex polyhedron is constructed based on the vertices after the outward expansion, and the intersection of the second convex polyhedron and the initial parameter space is determined as the parameter space corresponding to the N+1th round of population iteration; when the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located on the surface of the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a second distance, and a second convex polyhedron is constructed based on the vertices after the outward expansion, and the intersection of the second convex polyhedron and the initial parameter space is determined as the parameter space corresponding to the N+1th round of population iteration.

[0061] In addition, particles have corresponding speeds in each round of population iteration. The speed of particles in the first population iteration is the randomly set initial speed, and the speed of particles in each population iteration is also constantly iterating. The first distance is the distance that the particle corresponding to the vertex moves in half a unit of time at the speed corresponding to the Nth round of population iteration; the second distance is the distance that the particle corresponding to the vertex moves in one unit of time at the speed corresponding to the Nth round of population iteration.

[0062] Step 106, determining M particles of the N+1th round of population iteration in the parameter space corresponding to the N+1th round of population iteration.

[0063] Specifically, after determining the parameter space corresponding to the N+1th round of population iteration, the specific positions of the 50 particles of the N+1th round of population iteration can be determined. For each particle, the speed of the particle in the N+1th round of population iteration is determined according to the inertia weight, personal cognitive parameters, social cognitive parameters, the speed of each particle in the Nth round of population iteration and the position in the Nth round of population iteration. In the traditional PSO algorithm, the inertia weight, personal cognitive weight and social cognitive weight are set as constants based on experience, but this setting method will affect the convergence speed of the model. Therefore, in the embodiment of the present application, the inertia weight, personal cognitive weight and social cognitive weight will change with the change of the number of population iteration rounds. Specifically, the inertia weight decreases with the increase of the number of population iteration rounds, the personal cognitive parameters in the early stage of population iteration are greater than the personal cognitive parameters in the later stage of population iteration, and the social cognitive parameters in the early stage of population iteration are less than the social cognitive parameters in the later stage of population iteration.

[0064] Optionally, the inertia weight w corresponding to the i-th round of population iteration i As shown in Formula 1:

[0065]

[0066] The initial value of the inertia weight is w0=2. The inertia weight represents the degree of memory of the original speed, that is, inertial motion is performed based on the original speed. In the early stage of iteration, the inertia weight should be larger to ensure that each particle flies independently and fully searches the space. In the later stage, it should be smaller to learn more from other particles.

[0067] The individual cognitive parameter c corresponding to the i-th round of population iteration 0i As shown in Formula 2, the social cognition parameter c 1i As shown in Formula 3:

[0068]

[0069] Initial value of personal cognitive parameter c 00 =1, initial value of social cognition parameter c 10 =1. Since the personal cognitive parameter represents the flight step length of the individual towards the individual optimal value, the parameter should be larger in the early stage of iteration and smaller in the later stage. The social cognitive parameter represents the flight step length towards the group optimal value. The parameter should be smaller in the early stage and larger in the later stage. In this way, the global search ability and local search ability of each particle can be fully balanced.

[0070] The speed of the jth particle in the dth dimension during the N+1th round of population iteration is shown in Formula 4:

[0071]

[0072] Among them, w NIndicates the inertia weight corresponding to the Nth round of population iteration; represents the velocity of the jth particle in the dth dimension during the Nth round of population iteration; c 0N represents the individual cognitive parameter corresponding to the Nth round of population iteration; r0 and r1 are random numbers between 0 and 1; the particle position corresponding to the individual optimal solution of the jth particle is (p j1 , p j2 ,......,p jD ), D represents the dimension, in the embodiment of the present application, D is 3, p jd represents the coordinates of the jth particle in dimension d; represents the coordinates of the jth particle at the dth temperature in the Nth round of population iteration; c 1N represents the social cognitive parameters corresponding to the Nth round of population iteration; the particle positions corresponding to the optimal solution of the group are (g1, g2, ... g D ),g d Represents the coordinates of the current (i.e., Nth round) group optimal solution in the dth dimension.

[0073] In particular, the speed of the particle in each dimension has a boundary value. If the speed of the particle in this dimension exceeds the boundary, the speed of the particle in this dimension is updated to the boundary value. In an embodiment of the present application, the speed boundary value in the dimension of the number of trees is [-5,5], the speed boundary value in the dimension of the learning rate is [-0.1,0.1], and the speed boundary value in the depth of the tree is [-2,2]. The positive and negative represent the speed in two directions in this dimension. The embodiment of the present application does not specifically limit the speed boundary value in each dimension, and it can also be set to other values.

[0074] For each particle, after determining the speed of the particle in the N+1th round of population iteration, determine the updated position of the particle after movement according to the speed in the N+1th round of population iteration. If the updated position is in the parameter space corresponding to the N+1th round of population iteration, the updated position is the position of the particle in the N+1th round of population iteration; if the updated position is not in the parameter space corresponding to the N+1th round of population iteration, the boundary position corresponding to the updated position in the parameter space corresponding to the N+1th round of population iteration is used as the position of the particle in the N+1th round of population iteration.

[0075] The position coordinates of the jth particle in the dth dimension during the N+1th round of population iteration are shown in Formula 5:

[0076]

[0077] in, Represents the position coordinate value of the jth particle in the dth dimension during the Nth round of population iteration; It represents the velocity of the jth particle in the dth dimension during the N+1th round of population iteration.

[0078] Each particle updates its speed and position during the continuous population iteration process, and updates the optimal solution of the population. If the optimal solution of the population is greater than the set threshold, or no longer changes, or the number of population iteration rounds is greater than the set number of rounds, the condition for stopping training is met. The embodiment of the present application does not specifically limit the set threshold and the set number of rounds.

[0079] When the conditions for stopping training are met, the trained anti-fraud model is the optimal model. Multiple test users and test user labels are obtained, and the test users are input into the optimal model to determine the fraud probability value of each test user. The fraud threshold of the optimal model is determined based on the fraud probability value of each test user and the label of each test user. In other words, based on the fraud probability value corresponding to each test user labeled as a fraud user, the probability value with the minimum fraud probability value is determined as the fraud threshold of the optimal model. The optimal model determines whether each user is a fraud user based on the determined fraud threshold.

[0080] The log collection system (Flume) monitors the files storing the anti-fraud model. After uploading the trained anti-fraud model to the distributed file system, Flume sends the update identification data to Kafka. The update identification data can be 0 or 1. The embodiment of the present application does not specifically limit the update identification data. Further, Flink obtains the update identification data in Kafka, broadcasts the update identification data using the broadcast operator, forms a broadcast stream, and broadcasts the update identification data to all files that call the anti-fraud model. At the same time, Flink consumes real-time event streams, associates the event stream with the broadcast stream, and the event stream obtains the latest anti-fraud model, writes the latest anti-fraud model into the memory, and judges whether the real-time event stream is a fraudulent event according to the latest anti-fraud model, that is, judges whether the user in the real-time event stream is a fraudulent user. When Flume does not monitor the updated anti-fraud model, it directly obtains the anti-fraud model from the memory to judge whether the event stream is a fraudulent event.

[0081] Compared with the traditional anti-fraud model generation method, the anti-fraud model generation method proposed in the embodiment of the present application has a faster running time, that is, the model training speed is faster, which improves the execution effect of the hardware during the training process. Table 2 is a performance comparison table of the anti-fraud model generation method before and after the improvement:

[0082] Table 2

[0083]

[0084] It can be seen that when the number of iterations is 100, the fitness function value corresponding to the improved method is higher than the fitness function value corresponding to the method before the improvement, that is, the optimal solution of the hyperparameters found by the improved method is better than the optimal solution of the hyperparameters found by the method before the improvement, so that the accuracy of the hyperparameters of the anti-fraud model can be increased. It can also be seen that when the number of iterations is 100, the fitness function value before the improvement is 0.8930233, and after the improvement, when the number of iterations is 37, the fitness function value is 0.8940092, which is greater than 0.8930233. Therefore, the efficiency of finding the optimal solution of the hyperparameters by the improved method is also higher than that of finding the optimal solution of the hyperparameters by the method before the improvement.

[0085] The anti-fraud model provided in the embodiment of the present application has a wide range of application scenarios in the financial field, for example, identifying abnormal transaction behavior, that is, identifying sudden large-value credit card transactions or transactions in unusual geographic locations; in the loan approval process, using anti-fraud models to evaluate the authenticity and reliability of applicant information to prevent loan fraud; identifying and preventing telecommunications network fraud, preventing spam text messages or fraudulent calls; using anti-fraud models to identify suspicious financial transactions of institutions and prevent money laundering activities.

[0086] Figure 2 A schematic diagram of an internal module of the anti-fraud model generation device 2000 provided in an embodiment of the present application, such as Figure 2 As shown, the device may include: a construction module 201, a generation module 202, a processing module 203, a calculation module 204, an acquisition module 205, and optionally, a storage module, the storage module is used to store computer instructions or programs, and the processing module 203 can call the computer instructions or programs in the storage module.

[0087] Among them, the construction module 201 is used to construct the initial parameter space of K hyperparameters of the anti-fraud model; the generation module 202 is used to generate M particles located in the initial parameter space; wherein each particle corresponds to an anti-fraud model, and the position of each particle in the initial parameter space represents the parameter value of K hyperparameters; the processing module 203 is used to determine the final parameter value of the hyperparameter of the anti-fraud model by performing population iteration on the M particles; and, according to the M particles in the Nth round of population iteration, determine the M anti-fraud models of the Nth round; the calculation module 204 is used to calculate the predicted results of multiple training sample users under the M anti-fraud models and the multiple The label of the training sample user is used to calculate the fitness function value of the M anti-fraud models, wherein the fitness function value represents the prediction accuracy of the anti-fraud model; the label is used to indicate whether the training sample user is a fraudulent user; the processing module 203 is also used to determine the first convex polyhedron corresponding to the Nth round of population iteration according to the particles corresponding to the individual optimal solutions of the M particles in N rounds of population iteration; determine the parameter space corresponding to the N+1th round of population iteration according to the positional relationship between the first convex polyhedron and the particles corresponding to the group optimal solution of the Nth round of population iteration; determine the M particles of the N+1th round of population iteration in the parameter space corresponding to the N+1th round of population iteration.

[0088] In a possible implementation, the processing module 203 is also used to, if the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located inside the first convex polyhedron, expand the vertices of the first convex polyhedron outward by a first distance, so as to obtain the parameter space corresponding to the N+1th round of population iteration; if the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located on the surface of the first convex polyhedron, expand the vertices of the first convex polyhedron outward by a second distance, so as to obtain the parameter space corresponding to the N+1th round of population iteration; the second distance is greater than the first distance.

[0089] In one possible implementation, the processing module 203 is also used to expand the vertices of the first convex polyhedron outward by a first distance; construct a second convex polyhedron based on the vertices after the outward expansion; and determine the intersection of the second convex polyhedron and the initial parameter space as the parameter space corresponding to the N+1th round of population iteration.

[0090] In a possible implementation, the processing module 203 is further used to determine, for each particle, a speed of the particle in the N+1th round of population iteration; determine an updated position of the particle after movement according to the speed in the N+1th round of population iteration; if the updated position is located in the parameter space corresponding to the N+1th round of population iteration, the updated position is the position of the particle in the N+1th round of population iteration; if the updated position is not located in the parameter space corresponding to the N+1th round of population iteration, the boundary position corresponding to the updated position in the parameter space corresponding to the N+1th round of population iteration is used as the position of the particle in the N+1th round of population iteration.

[0091] In a possible implementation, the processing module 203 is further used to determine, for each particle, the speed of the particle in the N+1 round of population iteration according to the inertia weight, the personal cognition parameter, the social cognition parameter, the speed of the particle in the N round of population iteration, and the position of the particle in the N round of population iteration; wherein the inertia weight decreases with the increase in the number of population iteration rounds, the personal cognition parameter at the early stage of population iteration is greater than the personal cognition parameter at the late stage of population iteration, and the social cognition parameter at the early stage of population iteration is less than the social cognition parameter at the late stage of population iteration.

[0092] In one possible implementation, the processing module 203 is also used to monitor whether the anti-fraud model is updated; if updated, the broadcast stream is triggered; the device also includes an acquisition module 204, and the acquisition module 204 is used to obtain a real-time event stream for identifying fraud. The processing module 203 is also used to determine whether the real-time event stream is a fraud event based on the broadcast stream and the real-time event stream.

[0093] Figure 3 A schematic diagram of a structure of a device 3000 for generating an anti-fraud model provided in an embodiment of the present application. Figure 3 As shown, it includes at least one processor 301 and a memory 302 connected to the at least one processor 301. The specific connection medium between the processor 301 and the memory 302 is not limited in the embodiment of the present application. Figure 3 For example, the processor 301 and the memory 302 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0094] In an embodiment of the present invention, the memory 302 stores instructions that can be executed by at least one processor 301. The at least one processor 301 can implement the steps of the above-mentioned anti-fraud model generation method by executing the instructions stored in the memory 302.

[0095] The processor 301 is the control center of the computer device, and can use various interfaces and lines to connect various parts of the computer device, and perform resource settings by running or executing instructions stored in the memory 302 and calling data stored in the memory 302. Optionally, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 302 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.

[0096] The processor 301 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0097] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 302 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 302 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 302 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0098] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0099] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0102] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for generating an anti-fraud model, characterized in that: The method comprises: Constructing an initial parameter space of K hyperparameters of the anti-fraud model, and generating M particles located in the initial parameter space; wherein each particle corresponds to an anti-fraud model, and the position of each particle in the initial parameter space represents the parameter value of the K hyperparameters; The final parameter value of the hyperparameter of the anti-fraud model is determined by performing population iteration on the M particles; wherein each population iteration process is as follows: According to the M particles in the Nth round of population iteration, the M anti-fraud models of the Nth round are determined; Calculate the fitness function values ​​of the M anti-fraud models through the prediction results of multiple training sample users under the M anti-fraud models and the labels of the multiple training sample users, wherein the fitness function values ​​represent the prediction accuracy of the anti-fraud models; the labels are used to indicate whether the training sample users are fraudulent users; According to the particles corresponding to the individual optimal solutions of M particles in N rounds of population iteration, the first convex polyhedron corresponding to the Nth round of population iteration is determined; Determining a parameter space corresponding to the N+1th round of population iteration according to a positional relationship between the first convex polyhedron and particles corresponding to the population optimal solution of the Nth round of population iteration; In the parameter space corresponding to the N+1th round of population iteration, M particles of the N+1th round of population iteration are determined.

2. The method according to claim 1, characterized in that Determining a parameter space corresponding to the N+1th round of population iteration according to a positional relationship between the first convex polyhedron and particles corresponding to the population optimal solution of the Nth round of population iteration includes: If the particle corresponding to the optimal solution of the population in the Nth round of population iteration is located inside the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a first distance, so as to obtain a parameter space corresponding to the N+1th round of population iteration; If the particles corresponding to the optimal solution of the population in the Nth round of population iteration are located on the surface of the first convex polyhedron, the vertices of the first convex polyhedron are expanded outward by a second distance to obtain a parameter space corresponding to the N+1th round of population iteration; the second distance is greater than the first distance.

3. The method according to claim 2, characterized in that The vertices of the first convex polyhedron are expanded outward by a first distance, thereby obtaining a parameter space corresponding to the N+1th round of population iteration, including: Expanding the vertices of the first convex polyhedron outward by a first distance; Construct a second convex polyhedron according to the vertices after outward expansion; The intersection of the second convex polyhedron and the initial parameter space is determined as the parameter space corresponding to the N+1th round of population iteration.

4. The method according to claim 2, characterized in that: The first distance is the distance that the particle corresponding to the vertex moves in half a unit time at the speed corresponding to the Nth round of population iteration; The second distance is the distance that the particle corresponding to the vertex moves in one unit time at a speed corresponding to the Nth round of population iteration.

5. The method according to any one of claims 1 to 4, characterized in that: The step of determining M particles of the N+1th round of population iteration in the parameter space corresponding to the N+1th round of population iteration includes: For each particle, determine the speed of the particle in the N+1th round of population iteration; determine the updated position of the particle after movement according to the speed in the N+1th round of population iteration; if the updated position is located in the parameter space corresponding to the N+1th round of population iteration, then the updated position is the position of the particle in the N+1th round of population iteration; if the updated position is not located in the parameter space corresponding to the N+1th round of population iteration, then the boundary position corresponding to the updated position in the parameter space corresponding to the N+1th round of population iteration is used as the position of the particle in the N+1th round of population iteration.

6. The method according to claim 5, characterized in that Determining the speed of the particle in the N+1th round of population iteration includes: For each particle, the speed of the particle in the N+1 round of population iteration is determined according to the inertia weight, the personal cognition parameter, the social cognition parameter, the speed of the particle in the N round of population iteration, and the position of the particle in the N round of population iteration; wherein the inertia weight decreases with the increase of the number of population iteration rounds, the personal cognition parameter in the early stage of population iteration is greater than the personal cognition parameter in the late stage of population iteration, and the social cognition parameter in the early stage of population iteration is less than the social cognition parameter in the late stage of population iteration.

7. The method according to any one of claims 1 to 4, characterized in that: The hyperparameters of the anti-fraud model include at least one of the following: the number of trees, the learning rate, and the depth of the tree; The number of trees is greater than or equal to 10 and less than or equal to 100; The learning rate has a value range of greater than or equal to 0.01 and less than or equal to 0.5; The depth of the tree ranges from greater than or equal to 3 to less than or equal to 30.

8. The method according to any one of claims 1 to 4, characterized in that: Any training sample user includes at least one of the following information: customer gender, age, family member information, educational background information, work information, income information, debt information, equipment information, and credit information.

9. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Monitoring whether the anti-fraud model is updated; if updated, triggering a broadcast stream; A real-time event stream for identifying fraud is obtained, and whether the real-time event stream is a fraud event is determined based on the broadcast stream and the real-time event stream.

10. A device for generating an anti-fraud model, characterized in that: include: A construction module is used to construct the initial parameter space of K hyperparameters of the anti-fraud model; A generation module, used to generate M particles located in the initial parameter space; wherein each particle corresponds to an anti-fraud model, and the position of each particle in the initial parameter space represents the parameter value of K hyperparameters; A processing module, configured to determine a final parameter value of a hyperparameter of the anti-fraud model by performing population iteration on the M particles; and determine M anti-fraud models of the Nth round according to the M particles in the Nth round of population iteration; A calculation module, used to calculate the fitness function values ​​of the M anti-fraud models through the prediction results of multiple training sample users under the M anti-fraud models and the labels of the multiple training sample users, wherein the fitness function value represents the prediction accuracy of the anti-fraud model; the label is used to indicate whether the training sample user is a fraudulent user; The processing module is also used to determine a first convex polyhedron corresponding to the Nth round of population iteration according to particles corresponding to individual optimal solutions of M particles in N rounds of population iteration; determine a parameter space corresponding to the N+1th round of population iteration according to a positional relationship between the first convex polyhedron and particles corresponding to the group optimal solution of the Nth round of population iteration; and determine M particles of the N+1th round of population iteration in the parameter space corresponding to the N+1th round of population iteration.

11. A device for generating an anti-fraud model, characterized in that: include: Memory, used to store computer programs or instructions; A processor, configured to call a computer program or instruction stored in the memory to execute the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when a computer reads and executes the instructions, the computer executes the method according to any one of claims 1 to 9.

13. A computer program product, characterized in that The computer program product stores instructions, and when a computer reads and executes the instructions, the computer executes the method according to any one of claims 1 to 9.