Risk prediction model training method, prediction method and device, medium and equipment
By calculating the timing loss function value and classification loss function value of the feature derivation layer, and combining the timing stability to train the risk prediction model, the problem of insufficient timing stability of the risk prediction model in the existing technology is solved, and the prediction accuracy and stability of the model are improved. sex.
Patent Information
- Application Number
- CN201910858418.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-09-11
AI Technical Summary
The existing risk prediction model lacks temporal stability, resulting in inaccurate risk prediction values after the model goes online, requiring frequent adjustments to the strategy to maintain accuracy.
By obtaining training samples with time series, calculate the distribution difference of the feature derivative layer at different time series time points, determine the objective function value based on the classification loss function value, and train the risk prediction model to improve the time series stability.
It improves the timing stability of the trained risk prediction model, reduces the complexity of later strategy adjustments, and ensures the accuracy of risk level information prediction.
Smart Images

Figure CN110674979B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of machine learning technology, and more specifically, to a risk prediction model training method and device, a risk prediction method and device, and a computer storage medium and electronic device for implementing the risk prediction model training method and the risk prediction method. Background Art
[0002] Risk refers to the distance between the goal people expect to achieve and the actual result within a certain period of time. Risk prediction is to predict the probability of risk events, through which effective risk response measures can be formulated in advance.
[0003] With the rapid development of machine learning technology, risk prediction is achieved by training machine learning models in related technologies. Specifically, in the process of training machine learning models, reducing the classification loss of the model is generally used as the training goal. Finally, a risk prediction model with classification loss that meets the set requirements is obtained, and then the risk level information is predicted through the trained risk prediction model.
[0004] However, the temporal stability of the risk prediction model provided by the relevant technology needs to be improved.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure. Summary of the invention
[0006] The purpose of the present disclosure is to provide a risk prediction model training method and device, a risk prediction method and device, and a computer storage medium and electronic device for implementing the above-mentioned risk prediction model training method and the above-mentioned risk prediction method, thereby improving the temporal stability of the risk prediction model at least to a certain extent.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to one aspect of the present disclosure, a method for training a risk prediction model is provided, comprising:
[0009] Acquire training samples with time series, and input the training samples into a risk prediction model; acquire derivative features with time series output by a feature derivation layer of the risk prediction model, wherein the derivative features are obtained by deriving features of the training samples by the feature derivation layer; calculate the time series loss function value of the feature derivation layer according to the distribution differences of the derivative features at different time points of the time series; and determine the objective function value of the risk prediction model according to the time series loss function value, so as to train the risk prediction model according to the objective function value.
[0010] In some embodiments of the present disclosure, based on the above scheme, the above method further includes: inputting the above derived features into the classification layer of the above risk prediction model, and determining the classification loss function value of the above risk prediction model according to the classification result output by the above classification layer;
[0011] The above-mentioned determining the objective function value of the above-mentioned risk prediction model based on the above-mentioned time series loss function value includes: determining the objective function value of the above-mentioned risk prediction model in combination with the above-mentioned time series loss function value and the above-mentioned classification loss function value.
[0012] In some embodiments of the present disclosure, based on the aforementioned scheme, the timing loss function value of the feature derivative layer is calculated according to the distribution difference of the derived features at different time points in the timing sequence, including: obtaining a first derived feature at a first time point, and obtaining a second derived feature at a second time point with a timing different from the first time point; and, calculating the maximum mean difference between the first derived feature and the second derived feature to obtain the timing loss function value of the feature derivative layer.
[0013] In some embodiments of the present disclosure, based on the aforementioned scheme, the classification loss function value of the risk prediction model is determined according to the classification results output by the classification layer, including: calculating the maximum likelihood estimate of the classification results output by the classification layer to obtain the classification loss function value of the risk prediction model.
[0014] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned acquisition of training samples with time series includes: acquiring behavioral data with time series of the prediction object; and determining the risk level information of the above-mentioned prediction object, and labeling the above-mentioned behavioral data according to the above-mentioned risk level, to obtain a training set containing training samples with time series.
[0015] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned obtaining of training samples with time series includes: collecting user behavior data in software to obtain training samples with time series, and the above-mentioned software includes one or more of instant messaging software, financial management platform and shopping software.
[0016] In some embodiments of the present disclosure, based on the aforementioned scheme, after the aforementioned behavior data is labeled according to the aforementioned risk level, the aforementioned method further includes: performing one or more of completion processing and deduplication processing on the aforementioned training set.
[0017] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned inputting of the above-mentioned training samples into the risk prediction model includes: calculating the population stability index of the above-mentioned training samples; screening the above-mentioned training samples according to the above-mentioned population stability index; and, inputting the screened training samples into the above-mentioned risk prediction model.
[0018] In some embodiments of the present disclosure, based on the aforementioned scheme, the feature derivative layer is a hidden layer of a neural network model; or, the feature derivative layer is a splitting node of a decision tree model in which the risk prediction model is a decision tree model.
[0019] According to one aspect of the present disclosure, a risk prediction model training device is provided, comprising:
[0020] A sample acquisition module is configured to acquire training samples with time series and input the training samples into a risk prediction model; a derived feature acquisition module is configured to acquire derived features with time series output by a feature derivation layer of the risk prediction model, wherein the derived features are obtained by deriving features of the training samples from the feature derivation layer; a time series loss function determination module is configured to calculate the time series loss function value of the feature derivation layer according to the distribution differences of the derived features at different time points in the time series; and a model training module is configured to determine the objective function value of the risk prediction model according to the time series loss function value, so as to train the risk prediction model according to the objective function value.
[0021] In some embodiments of the present disclosure, based on the aforementioned scheme, the training device of the above-mentioned risk prediction model also includes: a classification loss function determination module.
[0022] The classification loss function determination module is configured to: input the derived features into the classification layer of the risk prediction model, and determine the classification loss function value of the risk prediction model according to the classification result output by the classification layer;
[0023] On this basis, the above-mentioned model training module is specifically configured to: determine the objective function value of the above-mentioned risk prediction model in combination with the above-mentioned time series loss function value and the above-mentioned classification loss function value.
[0024] In some embodiments of the present disclosure, based on the aforementioned scheme, a temporal loss function determination module includes: a feature acquisition unit and a loss calculation unit.
[0025] Among them, the above-mentioned feature acquisition unit is configured to: obtain a first derivative feature at a first time point, and obtain a second derivative feature at a second time point with a different time sequence from the above-mentioned first time point; and the above-mentioned loss calculation unit is configured to: calculate the maximum mean difference between the above-mentioned first derivative feature and the above-mentioned second derivative feature to obtain the time series loss function value of the above-mentioned feature derivative layer.
[0026] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned classification loss function determination module is specifically configured to include: calculating the maximum likelihood estimate of the classification result output by the above-mentioned classification layer to obtain the classification loss function value of the above-mentioned risk prediction model.
[0027] In some embodiments of the present disclosure, based on the aforementioned solution, the sample acquisition module includes: a behavior data acquisition unit and a labeling unit.
[0028] Among them, the above-mentioned behavior data acquisition unit is configured to: acquire the behavior data with time series of the prediction object; and the above-mentioned labeling unit is configured to: determine the risk level information of the above-mentioned prediction object, and label the above-mentioned behavior data according to the above-mentioned risk level to obtain a training set containing training samples with time series.
[0029] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned behavior data acquisition unit is specifically configured to: collect the user's behavior data in the software to obtain training samples with time series, and the above-mentioned software includes one or more of instant messaging software, financial management platform and shopping software.
[0030] In some embodiments of the present disclosure, based on the aforementioned scheme, the training device of the above-mentioned risk prediction model also includes: a data cleaning module.
[0031] The data cleaning module is configured to: after labeling the behavior data according to the risk level, perform one or more of completion processing and deduplication processing on the training set.
[0032] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned derivative feature acquisition module is configured as: a stability index calculation unit, a sample screening unit and a sample input unit.
[0033] Among them, the above-mentioned stability index calculation unit is configured to: calculate the group stability index of the above-mentioned training samples; the above-mentioned sample screening unit is configured to: screen the above-mentioned training samples according to the above-mentioned group stability index; and the above-mentioned sample input unit is configured to: input the screened training samples into the above-mentioned risk prediction model.
[0034] In some embodiments of the present disclosure, based on the aforementioned scheme, the feature derivative layer is a hidden layer of a neural network model; or, the feature derivative layer is a splitting node of a decision tree model in which the risk prediction model is a decision tree model.
[0035] According to one aspect of the present disclosure, a risk prediction method is provided, comprising:
[0036] Inputting the behavior data of the prediction object into the risk prediction model; deriving features of the behavior data through the feature derivation layer of the risk prediction model to obtain derived features; and classifying the derived features through the classification layer of the risk prediction model to obtain predicted risk level information;
[0037] Wherein, the risk prediction model is trained according to the risk prediction model training method described in the first aspect.
[0038] According to one aspect of the present disclosure, there is provided a risk prediction device, comprising:
[0039] A feature input module is configured to input the behavior data of the prediction object into the risk prediction model; a feature derivation module is configured to derive the characteristics of the behavior data through the feature derivation layer of the risk prediction model to obtain derived characteristics; and a risk prediction module is configured to classify the derived characteristics through the classification layer of the risk prediction model to obtain predicted risk level information;
[0040] Among them, the risk prediction model is trained according to the risk prediction model training method described in the first aspect above.
[0041] According to one aspect of the present disclosure, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the training method of the risk prediction model described in the first aspect and the risk prediction method described in the third aspect are implemented.
[0042] According to one aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the training method of the risk prediction model described in the first aspect above by executing the executable instructions, and to implement the risk prediction method described in the third aspect.
[0043] It can be seen from the above technical solutions that the risk prediction model training method and device, the risk prediction method and device in the exemplary embodiments of the present disclosure, and the computer storage medium and electronic device for implementing the risk prediction model training method and the risk prediction method have at least the following advantages and positive effects:
[0044] In the technical solutions provided by some embodiments of the present disclosure, a risk prediction model is trained by training samples with time series to improve the time series stability of the trained model. Specifically, the above-mentioned training samples with time series are input into the risk prediction model to obtain the derived features with time series output by the feature derivative layer of the risk prediction model. Furthermore, the time series loss function value of the feature derivative layer is calculated based on the distribution differences of the above-mentioned derived features at different time points in the time series, so that the time series loss function value is included in the objective function value of the model. In other words, the time series stability of the derived features is taken into account in the process of training the above-mentioned risk prediction model according to the above-mentioned objective function value, so that the time series stability of the risk prediction model after training is improved.
[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0047] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present disclosure can be applied;
[0048] Figure 2 A schematic diagram of the timeline of risk prediction model training and application is shown schematically;
[0049] Figure 3 A flowchart of a risk prediction model training method according to an embodiment of the present disclosure is schematically shown;
[0050] Figure 4 A flowchart schematically illustrates a method for determining a training set according to an embodiment of the present disclosure;
[0051] Figure 5 A model structure diagram according to an embodiment of the present disclosure is schematically shown;
[0052] Figure 6 A flowchart schematically illustrates a method for training a risk prediction model according to another embodiment of the present disclosure;
[0053] Figure 7 A flowchart of a method for determining timing loss according to an embodiment of the present disclosure is schematically shown;
[0054] Figure 8 A flow chart of a risk prediction method according to an embodiment of the present disclosure is schematically shown;
[0055] Fig. 9 A structural diagram of a risk prediction model training device according to an embodiment of the present disclosure is schematically shown;
[0056] Fig.10 A schematic diagram of a risk prediction device according to an embodiment of the present disclosure is shown; and
[0057] Fig.11 A schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0058] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more comprehensive and complete and will fully convey the concept of the example embodiments to those skilled in the art.
[0059] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.
[0060] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0061] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0062] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0063] Machine Learning (ML) is a multi-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0064] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0065] The solution provided by the embodiments of the present disclosure involves artificial intelligence, machine learning and other technologies, which are specifically described by the following embodiments:
[0066] Figure 1 A schematic diagram of the system architecture of a risk prediction model training method and device, and an exemplary application environment of the risk prediction method and device, to which the embodiments of the present disclosure can be applied, is shown.
[0067] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.
[0068] The risk prediction model training method and risk prediction method provided in the embodiment of the present disclosure are generally executed by the server 105, and accordingly, the risk prediction model training device and risk prediction device are generally arranged in the server 105. However, it is easy for those skilled in the art to understand that the risk prediction model training method and risk prediction method provided in the embodiment of the present disclosure can also be executed by the terminal devices 101, 102, and 103, and accordingly, the risk prediction model training device and risk prediction method device can also be arranged in the terminal devices 101, 102, and 103, and this is not particularly limited in the present exemplary embodiment.
[0069] For example, in an exemplary embodiment, the terminal devices 101, 102, and 103 may determine the training sample data with time series and send it to the server 105, so that the server 105 obtains the training sample with time series and inputs the training sample into the risk prediction model; then, the server 105 obtains the derivative features with time series output by the feature derivation layer of the risk prediction model, wherein the above-mentioned derivative features are obtained by deriving features of the training samples by the above-mentioned feature derivation layer. Further, the server 105 calculates the time series loss function value of the feature derivation layer according to the distribution difference of the derivative features at different time points of the time series; the server 105 then determines the objective function value of the risk prediction model according to the time series loss function value, so as to train the risk prediction model according to the objective function value and obtain the trained credit prediction model.
[0070] Exemplarily, the server 105 may also send the trained risk prediction model to the terminal devices 101, 102, and 103. Thus, the user may conveniently perform risk prediction through the trained risk prediction model in the terminal devices 101, 102, and 103.
[0071] For example, one usage scenario could be: in the traditional rental industry, manufacturers temporarily withhold consumers' deposits to ensure that the rented items are returned intact. However, this method cannot provide consumers with a good rental experience. Taking shared bicycles / shared electric vehicles as an example, with the closure of the manufacturer, the temporarily withheld deposits may not be successfully returned to consumers, reducing the consumer experience.
[0072] In related technologies, in order to improve the rental experience of consumers, merchants can provide a way to reduce or waive the deposit for high-quality users with good credit, thereby improving the consumer's experience in the rental process and consumption stickiness, and at the same time, it is conducive to protecting the rights and interests of users themselves. Among them, the method of determining the above-mentioned high-quality users with good credit can be: predicting the credit value of the rental user by training a machine learning model, thereby determining the high-quality users with good credit.
[0073] Specifically, the related technology collects the user's online data and directly uses it to train the risk prediction model. Figure 2 The timeline provided is to collect online data of users to train the risk prediction model within the time period S20 from the modeling time point T1 of the risk prediction model to the online application time point T2 of the trained model.
[0074] However, since online data is highly accidental, for example, after a software function is updated, the user usage data before and after the function is updated may change. Therefore, the directly collected online user data has the characteristics of time series instability. As a result, when the user data is collected after the model is launched (that is, after the model is launched at time point T2), and is input into the trained risk prediction model for risk prediction, the risk prediction value is inaccurate. For example, if the predicted value of the user risk prediction model changes significantly between the modeling time point and the online application time point, the risk prediction value at the online application time point may be inaccurate, resulting in the risk of free deposit leasing being greater than the assessment at the modeling time point, which in turn leads to losses.
[0075] In related technologies, in order to avoid inaccurate risk prediction values after the model is launched (i.e., after the model is launched and applied at time T2), policy adjustments are still required after the model is launched (for example, collecting user data after the model is launched to continue training the model, or adjusting the risk threshold, etc.). However, although this technical solution can guarantee the accuracy of the risk prediction value to a certain extent, the later adjustment of the policy leads to a high complexity of operation.
[0076] This technical solution aims to solve the problem that the present invention discloses a solution to improve the temporal stability of the model, so as to solve the above-mentioned problems existing in the related art to a certain extent. The technical solution of the embodiment of the present disclosure is described in detail below:
[0077] Figure 3 The flowchart of the risk prediction model training method according to one embodiment of the present disclosure is schematically shown. Figure 3 , the embodiment shown in the figure includes:
[0078] Step S310, obtaining a training sample with a time series, and inputting the training sample into a risk prediction model;
[0079] Step S320, obtaining the derived features with time series output by the feature derivation layer of the risk prediction model, wherein the derived features are obtained by the feature derivation layer performing feature derivation on the training samples;
[0080] Step S330, calculating the temporal loss function value of the feature derivative layer according to the distribution difference of the derived features at different temporal time points; and
[0081] Step S340, determining the objective function value of the risk prediction model according to the time series loss function value, so as to train the risk prediction model according to the objective function value.
[0082] exist Figure 3 In the technical solution provided by the illustrated embodiment, a training sample with time series is input into the risk prediction model to obtain a derivative feature with time series output by the feature derivative layer of the risk prediction model. Furthermore, the time series loss function value of the feature derivative layer is calculated based on the distribution difference of the derivative feature at different time points of the time series, so that the objective function value of the model includes the time series loss function value. In other words, the time series stability of the derivative feature is taken into account in the process of training the risk prediction model according to the objective function value, so that the time series stability of the risk prediction model after training is improved.
[0083] At the same time, the technical solution provided in this embodiment does not require post-strategy adjustments to the trained risk prediction model (such as redefinition of credit rating thresholds, etc.), thereby reducing the complexity of risk prediction while ensuring the accuracy of risk level information prediction.
[0084] The following Figure 3 The specific implementation methods of each step of the embodiment shown are described in detail:
[0085] For example, with the popularization of mobile smart devices and the rapid development of the Internet, users can easily realize online activities such as communication, entertainment, and payment by simply operating applications on mobile smart devices, and can also experience offline consumption such as online to offline (Online to Outline, referred to as: O2O) life services, navigation, and special cars. Therefore, online data can reflect the user's life trajectory to a large extent, and thus online data can be collected to obtain rich user behavior data to predict the user's credit value / risk value through user behavior data. Therefore, in this technical solution, the training set of the risk prediction model is determined based on user behavior data.
[0086] For example, Figure 4 The flowchart of the method for determining the training set according to an embodiment of the present disclosure is schematically shown. Figure 4 , the embodiment shown in the figure includes:
[0087] Step S410, acquiring behavior data with time series of the prediction object; and step S420, determining risk level information of the prediction object, and labeling the behavior data according to the risk level to obtain a training set containing training samples with time series.
[0088] In an exemplary embodiment, the method for determining the user identity information may be: determining it based on the basic information collected when the user logs into the platform software such as instant messaging software, financial management platform or shopping software. For example, age, gender, education, occupation and other information. The method for determining the user identity information may also be determined through the terminal device information. For example, the model, brand, device name of the mobile device, and the unique identification code corresponding to the device and other information.
[0089] In an exemplary embodiment, the specific implementation method of obtaining the time-series behavioral data of the above-mentioned prediction object can be: obtaining the user's behavior data in the software through interface access and active reporting by the software to obtain a time-series training sample, wherein the above-mentioned software includes one or more of instant messaging software, financial management platform and shopping software.
[0090] For example, economic behavior data, such as consumption behavior and consumption time, transfer behavior and transfer time, financial management behavior and the time when financial management behavior occurs, red envelope sending and receiving behavior and the time when red envelopes are sent and received, etc.; hobby behavior data, such as article reading and forwarding behavior and the corresponding time, public account subscription behavior and occurrence time, content search behavior and occurrence time, etc.; social behavior data, such as friends following behavior and behavior occurrence time, blacklisting behavior and behavior occurrence time, etc.; and location-based service (Location Based Services, abbreviated as: LBS) geographic location data, such as navigation behavior and the time when navigation behavior occurs, check-in behavior and check-in time, taxi-hailing behavior and taxi-hailing time, etc.
[0091] Exemplarily, a training sample with a time sequence is determined based on the above behavior data and the time when the behavior occurs.
[0092] In an exemplary embodiment, the specific implementation method for determining the risk level information of the above-mentioned prediction object can be: directly using the defaulting users and fulfilling users determined in a similar rental scenario as labels. For example, the risk level of the user behavior information corresponding to the defaulting users is labeled as "high risk level / risk level 1", and the risk level of the user behavior information corresponding to the fulfilling users is labeled as "low risk level / risk level 3", etc.
[0093] In an exemplary embodiment, the specific implementation method for determining the risk level information of the above-mentioned prediction object can also be: for the user behavior data to be marked, the corresponding user identity information is gray-processed, and the performance status of the user after gray-processing is continuously obtained, so as to be labeled according to the subsequent performance status data. Exemplary, whether the user has taken out a loan in the financial management software, and if the loan has been taken out, whether the loan can be repaid according to the established loan repayment rules. If the loan is repaid according to the established rules, its label can be determined as "good credit rating / low risk level"; if there is information about not repaying the loan according to the established rules, its label can be determined as "general credit rating / general risk level"; if there is no information about repaying the loan according to the established rules, its label can be determined as "low credit rating / high risk level", etc.
[0094] In an exemplary embodiment, in order to increase the amount of information in the training samples and to avoid invalid training of the model as much as possible, after the behavior data is labeled according to the risk level, the data needs to be cleaned. Exemplarily, one or more of the following processes, such as filling and deduplication, are performed on the behavior data after the labeling process. For example, when there are omissions in the reporting process, missing values need to be filled, and when the data is repeated, deduplication needs to be performed. This improves the quality of the training set, which is beneficial to improving the prediction accuracy of the trained model.
[0095] In an exemplary embodiment, the population stability index (Population Stability Index, PSI for short) of the training sample is calculated according to the following formula. PSI is used to measure the distribution difference of the training sample in time series. Further, the features with PSI greater than a preset threshold are screened out, and the screened training samples are input into the above-mentioned risk prediction model. In this way, features with relatively high time series stability are effectively selected to participate in model training, so as to improve the prediction stability of the trained model in time series.
[0096]
[0097] Among them, P true,i is the actual proportion of the i-th feature in the training set, P expect,i is the expected proportion of the i-th feature in the training set.
[0098] In an exemplary embodiment, the training samples in the training set can be organized into the following format:
[0099] (1)(x i ,y i ), where i = 1, ..., n, represents the i-th prediction object (e.g., user), x i represents the training sample features determined based on the user behavior features of the i-th prediction object, y i Represents xi Target classification (i.e. target risk level);
[0100] (2)(x j ,t j ), where j = 1, ..., n, represents the jth prediction object (e.g., user), x j represents the training sample features determined according to the user behavior features of the jth prediction object, t j Represents x j The corresponding data time point.
[0101] In an exemplary embodiment, the training samples in the training set can also be organized into the following format: k ,y k ,t k ), where k = 1, ..., n, represents the kth prediction object (e.g., user), x k represents the training sample features determined based on the user behavior features of the kth prediction object, y k Represents x k The target classification (i.e. target risk level), t k Represents x k The corresponding data time point.
[0102] In an exemplary embodiment, Figure 5 The model structure diagram according to an embodiment of the present disclosure is schematically shown. Figure 5 The technical solution provides a classification model. The model structure includes: a feature derivation layer (Encoder) 510 and a classification layer (Classifier) 520. For example, for a set of features X in the training sample (for example, feature X can be expressed as: x k ,y k ,t k ), the feature derivation layer derives the feature to obtain the derived feature E(X), and the classification layer (Classifier) determines the probability Pc(y|E(X)) that x corresponds to the risk level A according to the derived feature E(X).
[0103] Exemplarily, if the classification model is a neural network model, the feature derived layer (Encoder) 510 is a hidden layer of the neural network model. The derived feature E(X) may be a feature of feature x after convolution processing, the derived feature E(X) may be a feature of feature x after pooling processing, the derived feature E(X) may also be a feature of feature X after full connection processing, etc.
[0104] Exemplarily, if the above-mentioned classification model is a decision tree model, then the above-mentioned feature derivation layer (Encoder) 510 is a split node of the risk prediction model.
[0105] In an exemplary embodiment, continue to refer to Figure 3 After the training sample x is input into the risk prediction model, the derived features E(X) with time series output by the feature derivation layer (Encoder) of the risk prediction model are obtained in step S320. In step S330, the time series loss function value of the feature derivation layer (Encoder) can be calculated according to the distribution difference of the derived features E(X) at different time points to improve the time series stability of the trained model.
[0106] In an exemplary embodiment, Figure 6 The flowchart of the training method of the risk prediction model according to another embodiment of the present disclosure is schematically shown. Figure 6 , the embodiment shown in the figure includes steps S610 to S650.
[0107] In an exemplary embodiment, the specific implementation of the above steps S610 to S630 is the same as the specific implementation of steps S310 to S330, and will not be repeated here.
[0108] In an exemplary embodiment, the method provided by the present technical solution also includes: step S640, inputting the derived features into the classification layer of the risk prediction model, and determining the classification loss function value of the credit prediction model according to the classification results output by the classification layer.
[0109] Further, as a specific implementation of step S340, in step S650, the objective function value of the risk prediction model is determined in combination with the time series loss function value and the classification loss function value.
[0110] Exemplarily, the following specifically describes how to determine the above-mentioned time series loss function and the above-mentioned classification loss function:
[0111] In an exemplary embodiment, Figure 7 The flowchart of the method for determining the time series loss function according to an embodiment of the present disclosure is schematically shown. Figure 7 , the embodiment shown in the figure includes:
[0112] Step S710, obtaining a first derived feature at a first time point, and obtaining a second derived feature at a second time point that is different in timing from the first time point; and, step S720, calculating the maximum mean difference between the first derived feature and the second derived feature to obtain the timing loss function value of the feature derivative layer.
[0113] In an exemplary embodiment, the maximum mean discrepancy (MMD) method is used to measure the derived features E(X A )、E(X B ) distribution differences at different time points. For example, if the derived feature is at the modeling time point (refer to Figure 2 , that is, the smaller the maximum mean difference between the time point of T1) and the time point of online application (T2), we can assume that the feature distribution of these two time points is more consistent. This also means that the time series stability of the trained credit prediction model is higher.
[0114] Specifically: For the same prediction object s, obtain its first time point t sa The first derivative feature E(x sa ), and obtain its second time point t sb The second derivative characteristic E(x sb ), the first derived feature E(x sa ) and the above second derived feature E(x sb ) is the maximum mean difference.
[0115]
[0116] Wherein, X and Y in the above formula represent the above first derived feature E(x sa ) and the above second derived feature E(x sb ), X in the above formula is 1-N, Y in the above formula is 1-M; k() is a Gaussian kernel function. Exemplarily, the calculation of MMD can also be accelerated by using a fast MMD calculation method, where N and M are the number of derived features.
[0117] Furthermore, the temporal loss function of the feature derivative layer (Encoder) of the above risk prediction model is determined as E jab , j is an integer, the value is greater than or equal to 1 and less than or equal to the number of training samples:
[0118]
[0119] In an exemplary embodiment, the classification loss function value of the risk prediction model is determined according to the classification result output by the classification layer (Classifier). The specific implementation method may be: calculating the maximum likelihood estimate of the classification result output by the classification layer (Classifier) to obtain the classification loss function value of the risk prediction model.
[0120] Specifically, the logarithmic loss, i.e., the log-likelihood loss, is defined on the probability estimation and can be used to evaluate the probability output of the classifier. Exemplarily, the classification loss function C is determined according to the following formula: i Wherein, i is an integer, and its value is greater than or equal to 1 and less than or equal to the number of training samples.
[0121]
[0122] In an exemplary embodiment, combined with the above-mentioned time series loss function E jab And the above classification loss function C i Determine the objective function of the above risk prediction model. The objective function can be expressed as:
[0123] MinJ(E,C)=min[γ×E jab +C i ].
[0124] Among them, γ represents the loss coefficient of the above time series classification function, and its size can be determined according to actual needs.
[0125] Exemplarily, the risk prediction model is trained by solving the objective function minJ(E,C) to obtain the model parameters of the feature derivation layer (Encoder) of the risk prediction model and the model parameters of the classification layer (Classifier) of the risk prediction model. Specifically, in the risk prediction model after training obtained by the objective function, its feature derivation layer (Encoder) can obtain a relatively more stable derived feature E(X). At the same time, while ensuring the accuracy of the predicted value Pc(y|h=E(x)) of the classification layer (Classifier), the temporal stability of the predicted value Pc(y|h=E(x)) is also improved.
[0126] This technical solution introduces the distribution difference of the derived features output by the feature derivation layer at different time points in the time series, and uses it as the penalty term of the model objective function. Therefore, the risk prediction model trained based on the objective function with the penalty term can obtain a model prediction value with a more stable distribution in the time series while minimizing the loss of the target prediction ability.
[0127] In an exemplary embodiment, based on the model training method provided in the foregoing embodiment, Figure 8 The flowchart of the risk prediction method according to an embodiment of the present disclosure is schematically shown. Figure 8 , the embodiment shown in the figure includes:
[0128] Step S810, inputting the behavior data of the prediction object into the risk prediction model;
[0129] Step S820, deriving features from the behavior data through the feature derivation layer of the risk prediction model to obtain derived features;
[0130] Step S830, classifying the derived features through the classification layer of the risk prediction model to obtain predicted risk level information.
[0131] Exemplarily, since the above risk prediction model is based on Figures 3 to 7 The risk prediction model training method provided in the embodiment shown is obtained by training. Therefore, based on the risk prediction model with higher temporal stability provided by the technical solution, the business party can safely use the model before it goes online (i.e., reference Figure 2 The model can be trained based on the data of S20 in the previous section without worrying about the time difference between the modeling time point and the online application time point causing the distribution change of the model prediction value, so that the strategy can be run more stably and continuously without frequent adjustments. There is no need to frequently adjust the strategy of real-time risk level threshold, which effectively reduces the workload.
[0132] Those skilled in the art will appreciate that all or part of the steps to implement the above-mentioned embodiments are implemented as a computer program executed by a processor (including a CPU and a GPU). For example, the model training of the above-mentioned risk prediction model is implemented by a GPU, or based on the trained risk prediction model, a CPU or a GPU is used to implement risk level prediction processing of the object to be tested, etc. When the computer program is executed by the CPU, the above-mentioned functions defined by the above-mentioned method provided in the present disclosure are executed. The program can be stored in a computer-readable storage medium, which can be a read-only memory, a disk or an optical disk, etc.
[0133] In addition, it should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0134] The following introduces an embodiment of a training device for a risk prediction model of the present disclosure, which can be used to execute the above-mentioned training method for a risk prediction model of the present disclosure.
[0135] Fig. 9 FIG. 1 is a schematic diagram showing the structure of a training device for a risk prediction model in an exemplary embodiment of the present disclosure. Fig. 9 As shown, the training device 900 of the above-mentioned risk prediction model includes: a sample acquisition module 901, a derivative feature acquisition module 902, a time series loss function determination module 903, and a model training module 904.
[0136] The sample acquisition module 901 is configured to acquire training samples with a time series and input the training samples into the risk prediction model;
[0137] The derived feature acquisition module 902 is configured to: acquire the derived features with time series output by the feature derivation layer of the risk prediction model, wherein the derived features are obtained by the feature derivation layer performing feature derivation on the training samples;
[0138] The above-mentioned temporal loss function determination module 903 is configured to calculate the temporal loss function value of the above-mentioned feature derivative layer according to the distribution difference of the above-mentioned derived features at different temporal time points;
[0139] The above-mentioned model training module 904 is configured to determine the objective function value of the above-mentioned risk prediction model according to the above-mentioned time series loss function value, so as to train the above-mentioned risk prediction model according to the above-mentioned objective function value.
[0140] In some embodiments of the present disclosure, based on the aforementioned scheme, the risk prediction model training device 900 further includes: a classification loss function determination module 905.
[0141] The classification loss function determination module 905 is configured to: input the derived features into the classification layer of the risk prediction model, and determine the classification loss function value of the risk prediction model according to the classification result output by the classification layer;
[0142] On this basis, the above-mentioned model training module 904 is specifically configured to: determine the objective function value of the above-mentioned risk prediction model in combination with the above-mentioned time series loss function value and the above-mentioned classification loss function value.
[0143] In some embodiments of the present disclosure, based on the aforementioned scheme, the temporal loss function determination module 903 includes: a feature acquisition unit 9031 and a loss calculation unit 9032 .
[0144] Among them, the above-mentioned feature acquisition unit 9031 is configured to: obtain a first derivative feature at a first time point, and obtain a second derivative feature at a second time point that is different in timing from the above-mentioned first time point; and the above-mentioned loss calculation unit 9032 is configured to: calculate the maximum mean difference between the above-mentioned first derivative feature and the above-mentioned second derivative feature, and obtain the timing loss function value of the above-mentioned feature derivative layer.
[0145] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned classification loss function determination module 905 is specifically configured to include: calculating the maximum likelihood estimate of the classification result output by the above-mentioned classification layer to obtain the classification loss function value of the above-mentioned risk prediction model.
[0146] In some embodiments of the present disclosure, based on the above-mentioned solution, the sample acquisition module 901 includes: a behavior data acquisition unit 9011 and a labeling unit 9012 .
[0147] Among them, the above-mentioned behavior data acquisition unit 9011 is configured to: obtain the behavior data with time series of the prediction object; and the above-mentioned labeling unit 9012 is configured to: determine the risk level information of the above-mentioned prediction object, and label the above-mentioned behavior data according to the above-mentioned risk level to obtain a training set containing training samples with time series.
[0148] In some embodiments of the present disclosure, based on the aforementioned scheme, the above-mentioned behavior data acquisition unit 9011 is specifically configured to: collect the user's behavior data in the software to obtain training samples with time series, and the above-mentioned software includes one or more of instant messaging software, financial management platform and shopping software.
[0149] In some embodiments of the present disclosure, based on the aforementioned scheme, the risk prediction model training device 900 further includes: a data cleaning module 906.
[0150] The data cleaning module 906 is configured to: after labeling the behavior data according to the risk level, perform one or more of a completion process and a deduplication process on the training set.
[0151] In some embodiments of the present disclosure, based on the aforementioned scheme, the derived feature acquisition module 902 is configured as: a stability index calculation unit 9021, a sample screening unit 9022 and a sample input unit 9023.
[0152] Among them, the above-mentioned stability index calculation unit 9021 is configured to: calculate the group stability index of the above-mentioned training samples; the above-mentioned sample screening unit 9022 is configured to: screen the above-mentioned training samples according to the above-mentioned group stability index; and the above-mentioned sample input unit 9023 is configured to: input the screened training samples into the above-mentioned risk prediction model.
[0153] In some embodiments of the present disclosure, based on the aforementioned scheme, the feature derivative layer is a hidden layer of a neural network model; or, the feature derivative layer is a splitting node of a decision tree model in which the risk prediction model is a decision tree model.
[0154] The specific details of each unit in the training device of the above risk prediction model are already in the appendix of the manual. Figures 3 to 7 The corresponding risk prediction model training method is described in detail, so it will not be repeated here.
[0155] The following introduces an embodiment of a training device for a risk prediction model of the present disclosure, which can be used to execute the above-mentioned training method for a risk prediction model of the present disclosure.
[0156] Fig.10 FIG. 2 is a schematic diagram showing the structure of a risk prediction device in an exemplary embodiment of the present disclosure. Figure 8 As shown, the risk prediction device 1000 includes: a feature input module 1001 , a feature derivation module 1002 , and a risk prediction module 1003 .
[0157] The feature input module 1001 is configured to input the behavior data of the prediction object into the risk prediction model; the feature derivation module 1002 is configured to derive the behavior data through the feature derivation layer of the risk prediction model to obtain derived features; and the risk prediction module 1003 is configured to classify the derived features through the classification layer of the risk prediction model to obtain predicted risk level information;
[0158] Wherein, the risk prediction model is based on Figures 3 to 8 The risk prediction model is obtained by training using the training method provided in the illustrated embodiment.
[0159] The specific details of each unit in the above risk prediction device are already in the appendix of the manual. Figure 8 The corresponding risk prediction method is described in detail in the embodiment, so it will not be repeated here.
[0160] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present disclosure is shown.
[0161] It should be noted that Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0162] like Fig.11As shown, the computer system 1100 includes a processor 1101 (including: a graphics processing unit (GPU), a central processing unit (CPU)), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103. Various programs and data required for system operation are also stored in the RAM 1103. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other through a bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.
[0163] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.
[0164] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1109, and / or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.
[0165] It should be noted that the computer-readable medium shown in the embodiment of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0166] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing 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 boxes represented in succession 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 or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0168] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0169] For example, the electronic device can implement Figure 3 As shown in: Step S310, obtaining a training sample with a time series, and inputting the training sample into a risk prediction model; Step S320, obtaining a derived feature with a time series output by a feature derivation layer of the risk prediction model, wherein the derived feature is obtained by deriving features of the training sample by the feature derivation layer; Step S330, calculating the time series loss function value of the feature derivation layer according to the distribution difference of the derived feature at different time points of the time series; and Step S340, determining the objective function value of the risk prediction model according to the time series loss function value, so as to train the risk prediction model according to the objective function value.
[0170] For example, the electronic device can implement Figure 8 As shown in: step S810, inputting the behavior data of the prediction object into the risk prediction model; step S820, deriving the characteristics of the behavior data through the characteristic derivation layer of the risk prediction model to obtain derived characteristics; and step S830, classifying the derived characteristics through the classification layer of the risk prediction model to obtain predicted risk level information; wherein the risk prediction model is based on Figure 3 The risk prediction model is obtained by training using the training method shown.
[0171] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0172] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0173] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0174] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A training method for a risk prediction model, characterized in that: The method comprises: The user's behavior data in the software is obtained through interface access and active reporting by the software, and a training sample with a time series is determined according to the behavior data and the time when the behavior occurs. For the user behavior data to be marked, the corresponding user identity information is gray-processed, and the user's performance status after gray-processing is continuously obtained to mark the user's risk level according to the performance status data, and the behavior data is labeled according to the risk level to obtain a training set containing training samples with a time series, and calculate the group stability index of the training samples in the training set; the training samples whose group stability index is greater than a preset threshold are screened; the screened training samples are input into a risk prediction model, and the group stability index is used to measure the distribution difference of the training samples in the time series. The software includes one or more of instant messaging software, financial management platform and shopping software; Obtaining a derivative feature with a time series output by a feature derivation layer of the risk prediction model, wherein the derivative feature is obtained by the feature derivation layer performing feature derivation on a training sample, and the feature derivation layer is a hidden layer of a neural network model; or, the feature derivation layer is a splitting node of a decision tree model when the risk prediction model is; For the same user, obtaining a first derivative feature at a first time point, and obtaining a second derivative feature at a second time point that is different in time sequence from the first time point; Calculating the maximum mean difference between the first derived feature and the second derived feature to obtain the temporal loss function value of the feature derivative layer; The objective function value of the risk prediction model is determined according to the time series loss function value, so as to train the risk prediction model according to the objective function value, so as to determine the predicted risk level information of the predicted object in the corresponding software based on the behavioral data of the predicted object through the risk prediction model.
2. The risk prediction model training method according to claim 1, characterized in that: The method further comprises: Inputting the derived features into the classification layer of the risk prediction model, and determining the classification loss function value of the risk prediction model according to the classification result output by the classification layer; Determining the objective function value of the risk prediction model according to the time series loss function value includes: The objective function value of the risk prediction model is determined by combining the time series loss function value and the classification loss function value.
3. The risk prediction model training method according to claim 2, characterized in that: Determining the classification loss function value of the risk prediction model according to the classification result output by the classification layer includes: The maximum likelihood estimate of the classification result output by the classification layer is calculated to obtain the classification loss function value of the risk prediction model.
4. The risk prediction model training method according to claim 1, characterized in that: After labeling the behavior data according to the risk level, the method further includes: One or more of a completion process and a duplicate removal process are performed on the training set.
5. A risk prediction method, characterized in that: The method comprises: Inputting the behavior data of the predicted object in the software into the risk prediction model; Derivative features are obtained by deriving features from the behavior data through a feature derivation layer of the risk prediction model; Classifying the derived features through the classification layer of the risk prediction model to obtain the predicted risk level information of the predicted object in the corresponding software; Wherein, the risk prediction model is trained according to the risk prediction model training method according to any one of claims 1 to 4.
6. A training device for a risk prediction model, characterized in that: The device comprises: The sample acquisition module is configured to obtain the user's behavior data in the software through interface access and software active reporting, determine the training samples with time series according to the behavior data and the time when the behavior occurs, and for the user behavior data to be marked, grayscale process the corresponding user identity information, continuously obtain the user's performance status after grayscale processing, so as to mark the user's risk level according to the performance status data, and mark the behavior data according to the risk level, obtain a training set containing training samples with time series, and calculate the group stability index of the training samples in the training set; screen the training samples whose group stability index is greater than a preset threshold; input the screened training samples into the risk prediction model, and the group stability index is used to measure the distribution difference of the training samples in time series, and the software includes one or more of instant messaging software, financial management platform and shopping software; A derived feature acquisition module is configured to acquire the derived features with time series output by the feature derivation layer of the risk prediction model, wherein the derived features are obtained by the feature derivation layer performing feature derivation on the training samples; the feature derivation layer is a hidden layer of a neural network model; or the feature derivation layer is a split node of a decision tree model when the risk prediction model is a decision tree model; The timing loss function determination module is configured to obtain, for the same user, a first derivative feature at a first time point, and obtain a second derivative feature at a second time point that is different in time sequence from the first time point; calculate the maximum mean difference between the first derivative feature and the second derivative feature, and obtain the timing loss function value of the feature derivative layer; The model training module is configured to determine the objective function value of the risk prediction model according to the time series loss function value, so as to train the risk prediction model according to the objective function value.
7. The risk prediction model training device according to claim 6, characterized in that: The device also includes: A classification loss function determination module is configured to input the derived features into the classification layer of the risk prediction model, and determine the classification loss function value of the risk prediction model according to the classification result output by the classification layer; The model training module is specifically configured to determine the objective function value of the risk prediction model in combination with the time series loss function value and the classification loss function value.
8. A risk prediction device, characterized in that: The device comprises: A feature input module, configured to input the behavior data of the prediction object in the software into the risk prediction model; A feature derivation module is configured to derive features from the behavior data through the feature derivation layer of the risk prediction model to obtain derived features; A risk prediction module is configured to classify the derived features through the classification layer of the risk prediction model to obtain predicted risk level information of the predicted object in the corresponding software; Wherein, the risk prediction model is trained according to the risk prediction model training method according to any one of claims 1 to 4.
9. A computer storage medium, characterized in that A computer program is stored thereon; When the computer program is executed by a processor, the method for training a risk prediction model as claimed in any one of claims 1 to 4 is implemented, and Implement the risk prediction method as described in claim 5.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the risk prediction model training method as described in any one of claims 1 to 4, and implement the risk prediction method as described in claim 5.
Citation Information
Cited By
Construction method of intelligent product risk prediction model based on machine learning
CN119338265A
A method for constructing an intelligent product risk prediction model based on machine learning
CN119338265B
