Internet insurance user feature screening method and device based on diffusion model

Through the Internet insurance user feature screening method based on the diffusion model, the structural causal model and topological sorting technology are used to solve the problem of difficulty in capturing user heterogeneity and large calculation amount with existing technology, and achieve efficient feature screening, which is suitable for Internet insurance. field, providing more scientific feature engineering support.

CN117972381BActive Publication Date: 2024-08-27HUAQIAO UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410390771.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2024-08-27
Estimated Expiration
2044-04-02

AI Technical Summary

Technical Problem

Existing unsupervised feature screening methods are difficult to effectively capture the heterogeneity of Internet insurance users, and are computationally intensive when processing large-scale multi-feature data, making it difficult to adapt to the characteristics of the Internet insurance field.

Method used

An Internet insurance user feature screening method based on the diffusion model is adopted. The user feature data is modeled and denoised through the structural causal model and the adaptive forward noise adding method. Topological sorting and iterative update mechanisms are used to screen out important features and reduce the risk. time complexity and improve screening accuracy.

Benefits of technology

It achieves a balance between users' shared features and personalized features, improves the accuracy and efficiency of feature screening, is suitable for multi-feature data in the Internet insurance field, and helps Internet insurance companies conduct more scientific feature engineering and decision support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117972381B
    Figure CN117972381B
Patent Text Reader

Abstract

The present invention discloses a method and device for screening characteristics of Internet insurance users based on a diffusion model, which relates to the field of data processing, and comprises: using a structural causal model to model several characteristic data in a set of characteristic data of a user into a structural causal graph, and initializing a causal list; improving the training process of the diffusion model, introducing a Markov transition probability matrix to describe the noise adding process of discrete variables, and obtaining a trained diffusion model; combining the diffusion model with the structural causal graph, iteratively updating the trained diffusion model, and calculating a fallen leaf score, determining that the characteristic data after being determined as a leaf node is removed as a leaf node according to the fallen leaf score and adding it to a causal list for topological sorting, and updating a mask; covering the mask in the set of characteristic data of the user, repeating the previous step, and finally obtaining a result of characteristic data screening, so as to solve the problem that it is difficult to capture the heterogeneity of Internet insurance users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method and device for screening characteristics of Internet insurance users based on a diffusion model. Background Art

[0002] With the rise of the Internet industry, data mining and data analysis have become increasingly important. By using business data and user behavior data, companies can conduct a deeper understanding and analysis, so as to improve products, set prices, and place advertisements in a targeted manner. In the process of data mining, scientifically screening user characteristics, and then scientifically formulating user service strategies, providing differentiated user marketing strategies to achieve personalized services, is an important way for Internet insurance companies to maximize the benefits of limited resources, and helps Internet insurance companies to occupy an advantageous position in the fierce market competition. In the field of Internet insurance, some users' insurance information and personal information are often collected, which usually occurs before purchasing insurance, that is, unlabeled data. It is inevitable to perform feature screening in unlabeled data to improve the performance of data mining. Therefore, unsupervised feature screening methods are used to mine important features in user characteristics to help analyze user behavior in insurance to understand their preferences, habits and behavior patterns, thereby improving product design, recommendation systems, etc.

[0003] The current unsupervised feature screening methods are mainly divided into univariate filter methods and wrapper methods. Univariate filter methods can effectively identify and filter out irrelevant features, but because they do not consider the dependencies between features, they cannot delete redundant features. Usually, univariate filter methods include evaluation methods based on information theory, such as SUD and SVD-Entropy, and methods based on spectral analysis similarity, such as Laplace score. Wrapper methods include using clustering algorithms to evaluate feature subsets, which leads to large computational complexity and is difficult to adapt to multi-feature data. Usually, wrapper methods include sequential methods, such as SS-SFS (Simplified Silhouette Sequential Forward Selection) method, bio-inspired methods, and iterative methods. However, Internet insurance data presents the characteristics of large data volume and many data features. More importantly, each user is highly personalized. Current unsupervised feature screening often assumes that instances have commonalities in shared feature subsets, so it is difficult to capture the heterogeneity of Internet insurance users. Summary of the invention

[0004] The purpose of this application is to propose a method and device for screening Internet insurance user characteristics based on a diffusion model in response to the above-mentioned technical problems.

[0005] In a first aspect, the present invention provides a method for screening characteristics of Internet insurance users based on a diffusion model, comprising the following steps:

[0006] The data of Internet insurance users is obtained and normalized to obtain a set of user feature data, wherein the set of user feature data includes a number of feature data, which are continuous data or discrete data. A structural causal model is used to model the several feature data in the set of user feature data into a structural causal graph, and a causal list is initialized;

[0007] Constructing a diffusion model with an adaptive forward noising method, denoising the continuous data and the discrete data in the user's feature data set respectively to obtain the noisy continuous data and the noisy discrete data, splicing the noisy continuous data and the noisy discrete data and inputting the time step into the diffusion model to obtain a predicted value of the noise at the time step t, constructing a loss function according to the predicted value of the noise at the time step t and the true value of the noise at the time step t, training the diffusion model based on the loss function to obtain a trained diffusion model;

[0008] Input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual according to the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model according to the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain the leaf fall score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes according to the leaf fall score and add them to the causal list for topological sorting, and update the mask, where the mask is the feature data that has been determined to be leaf nodes in the set of feature data of the user;

[0009] Cover the mask in the user's feature data set, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the user's feature data set, and output the first M leaf nodes in the causal list as the result of feature data screening.

[0010] Preferably, the set of user feature data is , represents the i-th feature data, i=1,2,…,N, N represents the total number of feature data in the user's feature data, and the structural causal graph is a directed acyclic graph containing N nodes to represent the causal relationship between the N feature data. Each node in the directed acyclic graph corresponds to each feature data, and the structural causal model is defined as shown in the following formula:

[0011] ;

[0012] in, Is the feature data in a directed acyclic graph The parent node of Representative node and parent node The causal relationship between Is with feature data Unrelated noise terms.

[0013] Preferably, the continuous data and the discrete data in the set of the user's feature data are denoised respectively to obtain the noisy continuous data and the noisy discrete data, which specifically includes:

[0014] Separate discrete variables and continuous variables from the set of feature data of users at time step t:

[0015] The following formula is used to add noise to the initial continuous variable to obtain the continuous variable after adding noise :

[0016] ;

[0017] in, , , and are all hyperparameters, represents the initial continuous variable, Represents the true value of the noise at time step t, which follows a Gaussian distribution ;

[0018] The following formula is used to add noise to the initial continuous variable to obtain the discrete variable after adding noise :

[0019] ;

[0020] in, Subject to category distribution , for The Markov transition probability matrix at time is specifically defined as:

[0021] ;

[0022] Among them, K represents the total category of discrete variables, and m and n are the category constants that discrete variables can take during the noise addition process.

[0023] Preferably, the noisy continuous data and the noisy discrete data are concatenated and input into the diffusion model with the time step to obtain the predicted value of the noise at the time step t, which specifically includes:

[0024] The diffusion model uses the following formula to predict the predicted value of the noise at time step t:

[0025] ;

[0026] in, Represents the concatenation of the noisy continuous data and the noisy discrete data. represents the predicted value of the noise at time step t.

[0027] Preferably, the loss function is expressed as follows:

[0028] ;

[0029] Where L represents the loss function, Represents the true value of the noise at time step t, which follows a Gaussian distribution , represents the predicted value of the noise at time step t, are the parameters of the diffusion model, Express Find the gradient, represents the L2 norm.

[0030] Preferably, calculating the residual according to the first prediction value specifically includes:

[0031] The residual is approximated using the following formula:

[0032] ;

[0033] in, represents the first predicted value, represents the derivative of the first predicted value, Indicates that the first prediction value corresponding to the leaf node is back-propagated to the input of the leaf node.

[0034] Preferably, the trained diffusion model is iteratively updated according to the residual and the second prediction value, and the feature data after the leaf nodes have been determined are removed and the time step t are input into the iterative trained diffusion model to obtain the leaf falling score, and the feature data after the leaf nodes have been determined are removed from the set of feature data of the user according to the leaf falling score as leaf nodes and added to the causal list for topological sorting, specifically including:

[0035] Calculate the sum of the residuals corresponding to all leaf nodes in the causal list to get the total residual ;

[0036] The trained diffusion model is iteratively updated using the following formula:

[0037] ;

[0038] in, represents the second predicted value, Represents the characteristic data corresponding to the nodes in the causal list in the structural causal graph, Indicates the characteristic data corresponding to the nodes in the structural causal graph that are not in the causal list. Represents the trained diffusion model after iteration, and continues to be iteratively updated as the trained diffusion model in the next iteration;

[0039] The following formula is used to determine the leaf nodes after removing the feature data that have been determined as leaf nodes:

[0040] ;

[0041] Among them, leaf is a leaf node, B is the batch data taken from the user's feature data set, It means to remove the feature data that has been determined as leaf nodes in the batch data. represents the leaf fall fraction, represents the derivative of the defoliation fraction, The derivative of the defoliation fraction is expressed as the variance of B, Indicates finding a feature data Minimize the variance.

[0042] In a second aspect, the present invention provides an Internet insurance user feature screening device based on a diffusion model, comprising:

[0043] The structural causal graph construction module is configured to obtain the data of Internet insurance users and perform normalization processing to obtain a set of user feature data, wherein the set of user feature data includes a plurality of feature data, and the feature data is continuous data or discrete data, and a structural causal model is used to model the plurality of feature data in the set of user feature data into a structural causal graph, and initialize a causal list;

[0044] The diffusion model training module is configured to construct a diffusion model with an adaptive forward denoising method, denoise the continuous data and the discrete data in the user's feature data set respectively to obtain the noisy continuous data and the noisy discrete data, concatenate the noisy continuous data and the noisy discrete data and input the concatenated data and the time step into the diffusion model to obtain a predicted value of the noise at the time step t, construct a loss function according to the predicted value of the noise at the time step t and the true value of the noise at the time step t, train the diffusion model based on the loss function, and obtain a trained diffusion model;

[0045] The topological sorting module is configured to input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual according to the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model according to the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain a leaf drop score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes as leaf nodes according to the leaf drop score and add them to the causal list for topological sorting, and update the mask, where the mask is the feature data that has been determined to be leaf nodes in the set of feature data of the user;

[0046] The iteration module is configured to cover the mask in the set of user's feature data, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the set of user's feature data, and output the first M leaf nodes in the causal list as the result of feature data screening.

[0047] In a third aspect, the present invention provides an electronic device comprising one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0048] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

[0050] (1) The Internet insurance user feature screening method based on the diffusion model of the present invention introduces a structural causal model to model Internet insurance users, thereby balancing the shared features and personalized features of Internet insurance users.

[0051] (2) The Internet insurance user feature screening method based on the diffusion model of the present invention improves the deficiency that the diffusion model can only be applied to continuous variables, introduces the Markov transition probability matrix to describe the noise addition process of discrete variables, and expands the applicability of the model. The characteristic of the diffusion model that can predict probability scores is applied to the topological sorting of the generated directed acyclic graph, bypassing the process of repeatedly solving the Hessian matrix, effectively reducing the time complexity. In terms of the accuracy of feature screening, the inference time used is shorter than that of the general unsupervised feature screening algorithm.

[0052] (3) The Internet insurance user feature screening method based on the diffusion model of the present invention performs structural causal modeling on the feature data of Internet insurance users, uses score matching and diffusion models, and combines the optimization of discrete variables by the diffusion model to find the leaf nodes in the structural causal graph and screen out important features in the feature data. This can help Internet insurance companies perform more scientific feature engineering on the user's feature data and provide decision support for the operation, decision-making and project stage summary of Internet insurance companies. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 is an exemplary device architecture diagram to which an embodiment of the present application may be applied;

[0055] Figure 2 A flow chart of a method for screening characteristics of Internet insurance users based on a diffusion model according to an embodiment of the present application;

[0056] Figure 3 A structural causal diagram of a method for screening characteristics of Internet insurance users based on a diffusion model according to an embodiment of the present application;

[0057] Figure 4 A schematic diagram of the network structure of a diffusion model of an Internet insurance user feature screening method based on a diffusion model according to an embodiment of the present application;

[0058] Figure 5 A comparison chart of feature screening results obtained by the method for screening features of Internet insurance users based on a diffusion model in an embodiment of the present application and supervised feature screening results;

[0059] Figure 6 A schematic diagram of an Internet insurance user feature screening device based on a diffusion model according to an embodiment of the present application;

[0060] Figure 7 It is a schematic diagram of the structure of a computer device suitable for implementing the electronic device of the embodiment of the present application. DETAILED DESCRIPTION

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

[0062] Figure 1 An exemplary device architecture 100 is shown to which the method for screening Internet insurance user characteristics based on a diffusion model or the device for screening Internet insurance user characteristics based on a diffusion model according to an embodiment of the present application can be applied.

[0063] like Figure 1 As shown, the device architecture 100 may include a terminal device 1 101, a terminal device 2 102, a terminal device 3 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device 1 101, the terminal device 2 102, the terminal device 3 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0064] The user can use the terminal device 101, the terminal device 2 102, and the terminal device 3 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various applications, such as data processing applications, file processing applications, etc., can be installed on the terminal device 101, the terminal device 2 102, and the terminal device 3 103.

[0065] Terminal device 1 101, terminal device 2 102, and terminal device 3 103 may be hardware or software. When terminal device 1 101, terminal device 2 102, and terminal device 3 103 are hardware, they may be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc. When terminal device 1 101, terminal device 2 102, and terminal device 3 103 are software, they may be installed in the electronic devices listed above. They may be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or they may be implemented as a single software or software module. No specific limitation is made here.

[0066] The server 105 may be a server that provides various services, such as a background data processing server that processes files or data uploaded by the terminal device 101, the terminal device 2 102, and the terminal device 3 103. The background data processing server may process the acquired files or data and generate processing results.

[0067] It should be noted that the Internet insurance user feature screening method based on the diffusion model provided in the embodiment of the present application can be executed by the server 105, and can also be executed by the terminal device 1 101, the terminal device 2 102, and the terminal device 3 103. Accordingly, the Internet insurance user feature screening device based on the diffusion model can be set in the server 105, and can also be set in the terminal device 1 101, the terminal device 2 102, and the terminal device 3 103.

[0068] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided as required. In the case where the processed data does not need to be obtained remotely, the above device architecture may not include a network, but only a server or a terminal device.

[0069] Figure 2 The embodiment of the present application provides a method for screening characteristics of Internet insurance users based on a diffusion model, comprising the following steps:

[0070] S1, obtain the data of Internet insurance users and perform normalization processing to obtain a set of user feature data. The set of user feature data contains several feature data, and the feature data is continuous data or discrete data. Use a structural causal model to model several feature data in the set of user feature data into a structural causal graph, and initialize a causal list.

[0071] In a specific embodiment, the set of user feature data is , represents the i-th feature data, i=1,2,…,N, N represents the total number of feature data in the user's feature data, and the structural causal graph is a directed acyclic graph containing N nodes to represent the causal relationship between the N feature data. Each node in the directed acyclic graph corresponds to each feature data, and the structural causal model is defined as shown in the following formula:

[0072] ;

[0073] in, Is the feature data in a directed acyclic graph The parent node of Representative node and parent node The causal relationship between Is with feature data Unrelated noise terms.

[0074] Specifically, in order to effectively screen feature data in an unsupervised manner, the embodiment of the present application introduces a structural causal model to model the feature data of Internet insurance users. , where a user has a set of N-dimensional feature data, expressed as: Consider discovering the causal relationship between N feature data, and use a directed acyclic graph (DAG) G containing N nodes to represent the real structural causal relationship, such as Figure 3 As shown. Each node in G represents a feature data , the edge represents the causal relationship between two adjacent nodes, that is, the directed acyclic graph G defines a structural causal model. Independent and identically distributed from the distribution . Perform causal modeling on the characteristic data of Internet insurance users, and regard the characteristic data of users as nodes with causal relationships. The leaf nodes in the structural causal graph are the characteristic data in the user's characteristic data that are most related to insurance. The embodiment of the present application introduces a structural causal model, and models the set of user characteristic data into a structural causal model to mine the shared characteristics of users and the personalized characteristics of each user. The structural causal model is an event-based causal relationship, and uses structural causal relationships and structural causal graphs to describe the modeling method of causal relationships. A directed acyclic graph is usually used to represent a structural causal graph. The parent node of the node in the graph represents the cause of the node, and the child node represents the effect of the node. The embodiment of the present application uses a structural causal model to dynamically balance the shared characteristics and personalized characteristics of users, and regards the characteristic data of Internet insurance users as a series of causal relationships, thereby converting the feature screening problem into a topological sorting problem of obtaining a directed acyclic graph.

[0075] S2, construct a diffusion model with an adaptive forward noising method, denoise the continuous data and discrete data in the user's feature data set respectively, obtain the noisy continuous data and the noisy discrete data, concatenate the noisy continuous data and the noisy discrete data and input the time step into the diffusion model to obtain the predicted value of the noise at time step t, construct a loss function according to the predicted value of the noise at time step t and the true value of the noise at time step t, train the diffusion model based on the loss function, and obtain a trained diffusion model.

[0076] In a specific embodiment, the continuous data and the discrete data in the set of the user's feature data are denoised respectively to obtain the noisy continuous data and the noisy discrete data, which specifically includes:

[0077] Separate discrete variables and continuous variables from the set of feature data of users at time step t:

[0078] The following formula is used to add noise to the initial continuous variable to obtain the continuous variable after adding noise :

[0079] ;

[0080] in, , , and are all hyperparameters, represents the initial continuous variable, Represents the true value of the noise at time step t, which follows a Gaussian distribution ;

[0081] The following formula is used to add noise to the initial continuous variable to obtain the discrete variable after adding noise :

[0082] ;

[0083] in, Subject to category distribution , for The Markov transition probability matrix at time is specifically defined as:

[0084] ;

[0085] Among them, K represents the total category of discrete variables, and m and n are the category constants that discrete variables can take during the noise addition process.

[0086] In a specific embodiment, the noise-added continuous data and the noise-added discrete data are concatenated and input into the diffusion model with the time step to obtain the predicted value of the noise with the time step t, which specifically includes:

[0087] The diffusion model uses the following formula to predict the predicted value of the noise at time step t:

[0088] ;

[0089] in, Represents the concatenation of the noisy continuous data and the noisy discrete data. represents the predicted value of the noise at time step t.

[0090] In a specific embodiment, the expression of the loss function is as follows:

[0091] ;

[0092] Where L represents the loss function, Represents the true value of the noise at time step t, which follows a Gaussian distribution , represents the predicted value of the noise at time step t, are the parameters of the diffusion model, Express Find the gradient, represents the L2 norm.

[0093] Specifically, in order to obtain the topological sorting of the directed acyclic graph G, a diffusion model based on score matching is introduced. The denoising diffusion model (Denoising Diffusion Probalistic Models) is a deep learning method for generating models. In general, the ultimate goal of the diffusion model is to learn the distribution of the training set, and then generate data similar to the training set by imitating the data distribution through the diffusion model. Figure 4 The network structure of the diffusion model includes an input layer, a first hidden layer, a second hidden layer, a third hidden layer and an output layer connected in sequence. The number of neurons in the input layer, the third hidden layer and the output layer is d, and the number of neurons in the first hidden layer and the second hidden layer is 128. The training of the diffusion model is divided into a forward denoising process and a reverse denoising process. After the diffusion model is trained, it enters the sampling process. There is no demand for generative tasks in the field of Internet insurance underwriting prediction. Therefore, the embodiments of this application will omit the reverse denoising process and the sampling process. For the characteristic data of Internet insurance users, And its data distribution , only the forward denoising process is performed. The forward denoising process of the optimized diffusion model for discrete variables ensures that the generative task is effectively applied to the feature screening task.

[0094] Since all features of the input data of the diffusion model must be continuous variables, and the feature data of Internet insurance users are structured data, there are both continuous variables and discrete variables in the set of user data features. Therefore, the continuous data and discrete data in the feature data are denoised separately. The forward denoising process and its derivation for continuous data are as follows:

[0095] ;

[0096] in, and are the data at time t and time t-1 in the noisy Markov chain, is standard Gaussian noise, is a hyperparameter .

[0097] For the forward noise addition process of discrete data, given the noise addition data with time step t-1 In the case of time step t, the noise data is obtained , the forward noise addition process of discrete data And its derivation can be written as:

[0098] ;

[0099] in, Follow category distribution , is the Markov transition probability matrix for time step t.

[0100] The embodiment of the present application calls the improvement of adding noise to the continuous data and discrete data in the feature data separately an adaptive forward noising method. By adding the adaptive forward noising method on the basis of the original diffusion model, it can ensure that the feature data of Internet insurance users retains heterogeneity during the diffusion process, thereby not losing feature data information.

[0101] S3, input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual based on the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model based on the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain the fallen leaf score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes as leaf nodes based on the fallen leaf score and add them to the causal list for topological sorting, and update the mask, where the mask is the feature data that has been determined to be leaf nodes in the set of user's feature data.

[0102] In a specific embodiment, calculating the residual according to the first prediction value specifically includes:

[0103] The residual is approximated using the following formula:

[0104] ;

[0105] in, represents the first predicted value, represents the derivative of the first predicted value, Indicates that the first prediction value corresponding to the leaf node is back-propagated to the input of the leaf node.

[0106] In a specific embodiment, the trained diffusion model is iteratively updated according to the residual and the second prediction value, and the feature data after the leaf nodes are removed and the time step t are input into the iterative trained diffusion model to obtain the leaf falling score. According to the leaf falling score, the feature data after the leaf nodes are removed from the set of feature data of the user as leaf nodes and added to the causal list for topological sorting, which specifically includes:

[0107] Calculate the sum of the residuals corresponding to all leaf nodes in the causal list to get the total residual ;

[0108] The trained diffusion model is iteratively updated using the following formula:

[0109] ;

[0110] in, represents the second predicted value, Represents the characteristic data corresponding to the nodes in the causal list in the structural causal graph, Indicates the characteristic data corresponding to the nodes in the structural causal graph that are not in the causal list. Represents the trained diffusion model after iteration, and continues to be iteratively updated as the trained diffusion model in the next iteration;

[0111] The following formula is used to determine the leaf nodes after removing the feature data that have been determined as leaf nodes:

[0112] ;

[0113] Among them, leaf is a leaf node, B is the batch data taken from the user's feature data set, It means to remove the feature data that has been determined as leaf nodes in the batch data. represents the leaf fall fraction, represents the derivative of the defoliation fraction, The derivative of the defoliation fraction is expressed as the variance of B, Indicates finding a feature data Minimize the variance.

[0114] Specifically, the output of the trained diffusion model is combined with the relationship between the directed acyclic graph, the probability score of the characteristic data of Internet insurance users is estimated through the trained diffusion model, and then the leaf nodes of the directed acyclic graph are found according to the probability score.

[0115] First, we prove that the output of the trained diffusion model is a probability score. ,have:

[0116] ;

[0117] in, is the noise added in the forward noise addition process at time step t. It can be seen from the above formula that the probability score is proportional to the output of the diffusion model that predicts the noise. Therefore, the embodiment of the present application can use the predicted value of the output of the diffusion model to represent the probability score. The Jacobian matrix of the probability score can be obtained by obtaining the trained diffusion model The back propagation of is estimated, for the trained diffusion model Input data :

[0118] ;

[0119] in, It means that the i-th output is back-propagated to the j-th input.

[0120] Next, verify the relationship between the probability score and the leaf nodes in the directed acyclic graph. The score estimate , substitute into the formula in the directed acyclic graph G:

[0121] ;

[0122] in, Representative Node Child nodes of When there are no child nodes, that is, the node When is a leaf node, the second term of the above formula will disappear. So, for ,Right now ,when When it is a leaf node, the Hessian matrix will become a constant.

[0123] Therefore, the leaf nodes of the directed acyclic graph are obtained through the probability scores of the probability distribution. The reference formula is as follows:

[0124] ;

[0125] in, is the log-likelihood function The Hessian matrix of is a constant.

[0126] From the above formula, we can see that the causal list is initialized to empty, and the leaf nodes can be found by probability scores. Add to cause and effect list and deleted from the user's feature data set X in the next iteration The corresponding data features complete the screening of the next leaf node. Each iteration needs to calculate the Hessian matrix, which greatly increases the time complexity of the algorithm. To address this problem, the "Deciduous Score" is introduced to replace the iterative calculation of leaf nodes. This algorithm does not need to re-estimate the probability score after each leaf node is deleted from X, and only needs to consider The distribution described by the noise additive model is followed, and no additional assumptions are made about the distribution of noise. The formula for calculating the defoliation score is:

[0127] ;

[0128] in, It represents the residual between the probability scores of all nodes and the non-leaf node data. Since the diffusion model is used as an estimate of the probability score, the probability score of the sorted causal list of the current leaf node can be estimated by the leaf score formula, without retraining the diffusion model. , the iterative trained diffusion model can be obtained.

[0129] In order to save computational costs, the residual is derived by probability score and Hessian matrix Assume that the structural causal graph G contains a distribution ,make for There are no leaf nodes The corresponding random variable, probability score For distribution Given a distribution containing and its score and the fractional Jacobian matrix The noise additive model of , calculates the residual of the defoliation fraction It can be expressed by the following formula:

[0130] ;

[0131] Therefore, there is no need to recalculate the Hessian matrix each time you iterate to find the leaf node, you only need to calculate the residual That’s it. When the directed acyclic graph contains more than two nodes, the process of finding leaf nodes needs to be iterated. Since the embodiment of the present application uses a trained diffusion model to approximate the score, and uses a greedy method to delete leaf nodes in the data set, recalculate the score, and calculate the variance of the newly distributed Hessian matrix to identify the next leaf node, this series of operations is equivalent to retraining the model after each leaf node is removed, which undoubtedly increases the complexity of the algorithm. Therefore, the fallen leaf score removes the leaf node from the initial score without retraining the neural network of the diffusion model. Assume that a leaf node is found , residual It can be approximated as:

[0132] ;

[0133] in, The output corresponding to the leaf node, represents the derivative of the trained diffusion model at the leaf node, that is During topological sorting, only , that is, for all The residual of the leaf node in The sum of .

[0134] S4, cover the mask in the user's feature data set, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the user's feature data set, and output the first M leaf nodes in the causal list as the result of feature data screening.

[0135] Specifically, update the mask, repeat step S3, find the first M leaf nodes in the topological sorting, and the feature data of the users corresponding to the first M leaf nodes are the important features. Indicates that only nodes are considered In order to effectively generate the topological sorting of the structural causal graph, the embodiment of the present application utilizes the relationship between the probability scores of nodes in the structural causal graph and leaf nodes, combined with the characteristics of the scores of node probabilities predicted by the diffusion model, to screen out the first M leaf nodes as important features.

[0136] The above steps S1-S4 do not necessarily represent the order between the steps, but are represented by step symbols, and the order between the steps can be adjusted.

[0137] The following is further described using specific examples.

[0138] Select the characteristic data of a real Internet insurance user, a total of 1352 data, 20 characteristic data, including user age, gender, insurance time, premium, phone number and other information. Finally, the importance of the characteristic data is obtained as follows: Figure 5As shown in Table 1, taking 25% as the screening threshold of important features, information gain and Fisher coefficient as targets, the Internet insurance user feature screening method based on the diffusion model proposed in the embodiment of the present application is compared with the general univariate filtering method and packaging method in terms of accuracy and running time.

[0139] Table 1

[0140]

[0141] Further references Figure 6 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an Internet insurance user feature screening device based on a diffusion model. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0142] The embodiment of the present application provides an Internet insurance user feature screening device based on a diffusion model, comprising:

[0143] The structural causal graph construction module 1 is configured to obtain the data of Internet insurance users and perform normalization processing to obtain a set of user feature data, wherein the set of user feature data includes a plurality of feature data, and the feature data is continuous data or discrete data, and a structural causal model is used to model the plurality of feature data in the set of user feature data into a structural causal graph, and initialize a causal list;

[0144] Diffusion model training module 2 is configured to construct a diffusion model with an adaptive forward noising method, denoise the continuous data and discrete data in the user's feature data set respectively to obtain the noisy continuous data and the noisy discrete data, concatenate the noisy continuous data and the noisy discrete data and input the concatenated data and the time step into the diffusion model to obtain a predicted value of the noise at time step t, construct a loss function according to the predicted value of the noise at time step t and the true value of the noise at time step t, train the diffusion model based on the loss function, and obtain a trained diffusion model;

[0145] The topological sorting module 3 is configured to input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual according to the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model according to the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain a leaf fall score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes as leaf nodes according to the leaf fall score and add them to the causal list for topological sorting, and update the mask, where the mask is the feature data that has been determined to be leaf nodes in the set of feature data of the user;

[0146] Iteration module 4 is configured to cover the mask in the set of user's feature data, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the set of user's feature data, and output the first M leaf nodes in the causal list as the result of feature data screening.

[0147] Reference below Figure 7 , which shows an electronic device (eg Figure 1 A schematic diagram of the structure of a computer device 700 (a server or terminal device as shown). Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0148] like Figure 7 As shown, the computer device 700 includes a central processing unit (CPU) 701 and a graphics processing unit (GPU) 702, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 703 or a program loaded from a storage part 709 to a random access memory (RAM) 704. In the RAM 704, various programs and data required for the operation of the computer device 700 are also stored. The CPU 701, the GPU 702, the ROM 703, and the RAM 704 are connected to each other through a bus 705. An input / output (I / O) interface 706 is also connected to the bus 705.

[0149] The following components are connected to the I / O interface 706: an input section 707 including a keyboard, a mouse, etc.; an output section 708 including a display such as a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 709 including a hard disk, etc.; and a communication section 710 including a network interface card such as a LAN card, a modem, etc. The communication section 710 performs communication processing via a network such as the Internet. A drive 711 can also be connected to the I / O interface 706 as needed. A removable medium 712, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 711 as needed so that a computer program read therefrom is installed into the storage section 709 as needed.

[0150] In particular, according to an embodiment of the present disclosure, the process described above 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 contains 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 the communication part 710, and / or installed from a removable medium 712. When the computer program is executed by the central processing unit (CPU) 701 and the graphics processing unit (GPU) 702, the above functions defined in the method of the present application are executed.

[0151] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor device, device or component, or any combination of the above. More specific examples of computer-readable 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 or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution device, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution device, 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, wire, optical cable, RF, etc., or any suitable combination of the above.

[0152] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0153] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the 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 and / or flowchart and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0154] The modules involved in the embodiments described in this application may be implemented by software or hardware, and the modules described may also be set in a processor.

[0155] As another aspect, the present application further 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 computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the data of Internet insurance users and performs normalization processing to obtain a set of user feature data, the set of user feature data contains several feature data, and the feature data is continuous data or discrete data. The structural causal model is used to model the several feature data in the set of user feature data into a structural causal graph, and the causal list is initialized; a diffusion model with an adaptive forward noising method is constructed, and the continuous data and discrete data in the set of user feature data are noised respectively to obtain noisy continuous data and noisy discrete data, the noisy continuous data and the noisy discrete data are spliced ​​and input into the diffusion model with the time step to obtain the predicted value of the noise at time step t, a loss function is constructed according to the predicted value of the noise at time step t and the true value of the noise at time step t, and the diffusion model is trained based on the loss function to obtain the trained diffusion model. Scattered model; input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual according to the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model according to the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain the leaf fall score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes according to the leaf fall score and add them to the causal list for topological sorting, update the mask, the mask is the feature data that has been determined to be leaf nodes in the set of user's feature data; cover the mask in the set of user's feature data, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the set of user's feature data, and output the first M leaf nodes in the causal list as the result of feature data screening.

[0156] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A method for screening Internet insurance user characteristics based on diffusion model. It is characterized in that The following steps are involved: The data of Internet insurance users are obtained and normalized to obtain a set of user feature data, wherein the set of user feature data includes a plurality of feature data, and the feature data is continuous data or discrete data. The plurality of feature data in the set of user feature data are modeled into a structural causal graph using a structural causal model, and a causal list is initialized; Constructing a diffusion model with an adaptive forward noising method, and performing noise addition on the continuous data and the discrete data in the set of the user's feature data, respectively, to obtain the noisy continuous data and the noisy discrete data, specifically including: Separating discrete data at the initial moment and continuous data at the initial moment from a set of characteristic data of the user at the initial moment; The following formula is used to add noise to the continuous data at the initial moment to obtain the continuous data after adding noise: in, α j =1-β j , α j and β j are all hyperparameters, Represents the continuous data at the initial moment, ∈ t Represents the true value of the noise at time step t, which follows a Gaussian distribution The following formula is used to add noise to the discrete data at the initial moment to obtain the discrete data after adding noise: in, Subject to the category distribution Cat(X t ; p = X t-1 Q j ), X t-1 is the noise data of time step t-1, X t is the noised data of time step t, , Q j is the Markov transition probability matrix at time j, which is specifically defined as: Wherein, K represents the total category of discrete data, m and n are the categories that the discrete data can take in the noise adding process, the noisy continuous data and the noisy discrete data are spliced ​​and input into the diffusion model with the time step to obtain the predicted value of the noise at the time step t, a loss function is constructed according to the predicted value of the noise at the time step t and the true value of the noise at the time step t, and the diffusion model is trained based on the loss function to obtain a trained diffusion model; Input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual according to the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model according to the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain a leaf fall score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes as leaf nodes according to the leaf fall score, add them to the causal list for topological sorting, and update the mask, which is the feature data that has been determined to be leaf nodes in the set of feature data of the user; Cover the mask in the set of feature data of the user, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the set of feature data of the user, and output the first M leaf nodes in the causal list as the result of feature data screening.

2. According to claim 1, the method for screening characteristics of Internet insurance users based on the diffusion model, It is characterized in that The set of the user's feature data is X={x 1 , x 2 , ..., x N }, x i represents the i-th feature data, i=1, 2, ..., N, N represents the total number of feature data in the feature data of the user, the structural causal graph is a directed acyclic graph containing N nodes to represent the causal relationship between the N feature data, each node in the directed acyclic graph corresponds to each feature data, and a structural causal model as shown in the following formula is defined: x i =f i (Pa(x i ),ε i ); Among them, Pa(x i ) is the feature data x in the directed acyclic graph i The parent node of i Represents the node and the parent node Pa(x i ), ε i is the feature data x i Unrelated noise terms.

3. According to claim 1, the method for screening characteristics of Internet insurance users based on the diffusion model, It is characterized in that The step of splicing the noisy continuous data and the noisy discrete data and inputting the time step into the diffusion model to obtain a predicted value of the noise at the time step t specifically includes: The diffusion model uses the following formula to predict the predicted value of the noise at time step t: in, represents the data obtained by concatenating the noisy continuous data and the noisy discrete data, represents the predicted value of the noise at time step t.

4. According to claim 1, the method for screening characteristics of Internet insurance users based on the diffusion model, It is characterized in that The expression of the loss function is as follows: Where L represents the loss function, ∈ t Represents the true value of the noise at time step t, which follows a Gaussian distribution represents the predicted value of the noise at time step t, θ is the parameter of the diffusion model, Express Find the gradient, ||·|| 2 represents the L2 norm.

5. According to claim 1, the method for screening characteristics of Internet insurance users based on diffusion model, It is characterized in that The calculating the residual according to the first prediction value specifically includes: The residual is approximated using the following formula: Among them, model(x, t) leaf represents the first predicted value, represents the derivative of the first predicted value, Indicates that the first predicted value corresponding to the leaf node is back-propagated to the input of the leaf node.

6. The method for screening Internet insurance user characteristics based on a diffusion model according to claim 1, It is characterized in that The iterative updating of the trained diffusion model according to the residual and the second predicted value, inputting the feature data after removing the leaf nodes and the time step t into the iterative trained diffusion model to obtain a leaf falling score, and determining the feature data after removing the leaf nodes from the set of feature data of the user as leaf nodes according to the leaf falling score and adding the feature data to the causal list for topological sorting, specifically includes: Calculate the sum of the residuals corresponding to all leaf nodes in the causal list to obtain the total residual Δ π ; The trained diffusion model is iteratively updated using the following formula: model′=model(-π,t)+Δ π ; Wherein, model(-π, t) represents the second prediction value, π represents the feature data corresponding to the node in the causal list in the structural causal graph, -π represents the feature data corresponding to the node in the structural causal graph that is not in the causal list, model′ represents the trained diffusion model after iteration, and in the next iteration, the trained diffusion model after iteration is used as the trained diffusion model to continue iterative update; The following formula is used to determine the leaf nodes after removing the feature data that have been determined as leaf nodes: Where leaf is a leaf node, B is the batch data taken from the set of feature data of the user, Mask π ⊙B represents the feature data after removing the leaf nodes in the batch data, model′(Mask π ⊙B, t) represents the defoliation fraction, represents the derivative of the defoliation fraction, Var B represents the variance of the derivative of the defoliation fraction with respect to B, Indicates finding a feature data x i Minimize the variance.

7. An Internet insurance user feature screening device based on a diffusion model, It is characterized in that include: A structural causal graph construction module is configured to obtain data of Internet insurance users and perform normalization processing to obtain a set of user feature data, wherein the set of user feature data includes a plurality of feature data, and the feature data is continuous data or discrete data, and a structural causal model is used to model the plurality of feature data in the set of user feature data into a structural causal graph, and initialize a causal list; The diffusion model training module is configured to construct a diffusion model with an adaptive forward noising method, and to perform noise addition on the continuous data and the discrete data in the set of the user's feature data to obtain the noisy continuous data and the noisy discrete data, specifically including: Separate the discrete data at the initial moment and the continuous data at the initial moment from the set of characteristic data of the user at the initial moment: The following formula is used to add noise to the continuous data at the initial moment to obtain the continuous data after adding noise: in, α j =1-β j , α j and β j are all hyperparameters, Represents the continuous data at the initial moment, ∈ t Represents the true value of the noise at time step t, which follows a Gaussian distribution The following formula is used to add noise to the discrete data at the initial moment to obtain the discrete data after adding noise: in, Subject to the category distribution Cat(X t ; p = X t-1 Q j ), X t-1 is the noise data of time step t-1, X t is the noised data of time step t, Qj is the Markov transition probability matrix at time j, which is specifically defined as: Wherein, K represents the total category of discrete data, m and n are the categories that the discrete data can take in the noise adding process, the noisy continuous data and the noisy discrete data are spliced ​​and input into the diffusion model with the time step to obtain the predicted value of the noise at the time step t, a loss function is constructed according to the predicted value of the noise at the time step t and the true value of the noise at the time step t, and the diffusion model is trained based on the loss function to obtain a trained diffusion model; The topological sorting module is configured to input the feature data and time step t corresponding to the leaf nodes in the causal list into the trained diffusion model to obtain a first prediction value, and calculate the residual according to the first prediction value; input the feature data and time step t corresponding to the nodes in the structural causal graph that are not in the causal list into the trained diffusion model to obtain a second prediction value, iteratively update the trained diffusion model according to the residual and the second prediction value, input the feature data and time step t after removing the leaf nodes that have been determined to be leaf nodes into the iterated trained diffusion model to obtain a leaf fall score, determine the feature data after removing the leaf nodes that have been determined to be leaf nodes as leaf nodes according to the leaf fall score and add them to the causal list for topological sorting, and update the mask, which is the feature data that has been determined to be leaf nodes in the set of feature data of the user; An iterative module is configured to cover the mask in the set of feature data of the user, repeat the previous step until the number of leaf nodes in the causal list is equal to the total number of feature data in the set of feature data of the user, and output the first M leaf nodes in the causal list as the result of feature data screening.

8. An electronic device, include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.