Risk identification method, device, equipment and storage medium

By extracting user behavior data features and reducing dimensionality, and optimizing the risk identification model, the problem of low efficiency of traditional risk identification methods is solved, and more accurate and efficient risk identification is achieved.

CN114202337BActive Publication Date: 2024-11-22PING AN TECH (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111533290.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-11-22
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

Traditional risk identification methods are low in efficiency, making it difficult to quickly determine the risk probability of new users, resulting in insufficient risk identification efficiency.

Method used

By obtaining user behavior data, performing feature extraction and dimensionality reduction processing, constructing a loss function to optimize the risk identification model, using the initial weight to calculate the loss value and risk reference value, and optimizing the risk identification model to improve the identification accuracy.

Benefits of technology

It realizes more accurate risk identification, improves risk identification efficiency, and can quickly determine the risk level of the user to be identified, ensuring user safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114202337B_ABST
    Figure CN114202337B_ABST
Patent Text Reader

Abstract

The present invention relates to artificial intelligence technology, and discloses a risk identification method, including: extracting features and reducing dimensions of user behavior data to obtain a reduced dimension feature set, and calculating the initial weight corresponding to each reduced dimension feature in the reduced dimension feature set; using a risk identification model to identify risks of user behavior data to obtain an identification result; constructing a loss function using the initial weight, and calculating the loss value corresponding to the identification result according to the loss function, optimizing the risk identification model by the size between the loss value and the risk reference value calculated based on the initial weight, and obtaining a standard risk identification model; inputting the relevant user data of the user to be identified into the standard risk identification model to obtain the risk level corresponding to the relevant user data. In addition, the present invention also relates to blockchain technology, and the initial weight can be stored in the node of the blockchain. The present invention also proposes a risk identification device, an electronic device, and a storage medium. The present invention can improve the efficiency of risk identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a risk identification method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development of Internet technology, transactions between users (such as product transactions, service transactions, etc.) using the Internet are becoming more and more common. In order to ensure the security of transactions using the Internet, it is necessary to identify risky users (such as advertisers operating fraudulent websites, merchants operating illegal products, users who forge information to defraud loans, etc.) and prevent them from participating in transactions. The traditional risk identification method is to set up whitelists and blacklists and score people based on their historical behavior. This method requires judging the risk probability of this user based on a large number of record analyses, and the judgment time for new users is often longer. Therefore, the efficiency of risk identification is low. Summary of the invention

[0003] The present invention provides a risk identification method, device and computer-readable storage medium, the main purpose of which is to improve the efficiency of risk identification.

[0004] To achieve the above object, the present invention provides a risk identification method, comprising:

[0005] Acquire user behavior data, perform feature extraction on the user behavior data, and obtain a user feature parameter set;

[0006] Performing dimensionality reduction processing on the user feature parameter set to obtain a reduced-dimensionality feature set, and calculating an initial weight corresponding to each reduced-dimensionality feature in the reduced-dimensionality feature set;

[0007] Using a preset risk identification model to perform risk identification on the user behavior data to obtain an identification result of the user behavior data;

[0008] Constructing a loss function using the initial weights, and calculating a loss value corresponding to the identification result according to the loss function, optimizing the risk identification model by the difference between the loss value and the risk reference value calculated based on the initial weights, and obtaining a standard risk identification model;

[0009] Relevant user data of the user to be identified is obtained, and the relevant user data is input into the standard risk identification model to obtain the risk level corresponding to the relevant user data.

[0010] Optionally, the using a preset risk identification model to perform risk identification on the user behavior data includes:

[0011] Performing feature conversion on the user behavior data to obtain a user feature matrix;

[0012] The convolutional layer, the pooling layer and the fully connected layer in the risk identification model are used to process the user feature matrix in sequence to obtain identification data;

[0013] Input the identification data into a preset activation function to obtain a probability value corresponding to the identification data, and determine the risk level corresponding to the user behavior data according to the magnitude of the probability value;

[0014] The risk level corresponding to the user behavior data is used as the identification result of the user behavior data.

[0015] Optionally, before optimizing the risk identification model by comparing the loss value with the risk reference value calculated based on the initial weight, the method further includes:

[0016] Calculating multiple prediction index values ​​according to the multiple initial weights and a preset prediction index value formula;

[0017] Summing the multiple prediction index values ​​to obtain a prediction index value corresponding to the user characteristic parameter;

[0018] The initial weight and the prediction index value are used as inputs of a preset risk reference value calculation formula to obtain a risk reference value.

[0019] Optionally, the calculating an initial weight corresponding to each dimensionality reduction feature in the dimensionality reduction feature set includes:

[0020] Performing binning processing on the dimension reduction features to obtain a grouping variable set;

[0021] The initial weights corresponding to the plurality of grouping variables in the grouping variable set are calculated respectively using a preset weight calculation formula.

[0022] Optionally, performing dimensionality reduction processing on the user feature parameter set to obtain a dimensionality reduction feature set includes:

[0023] Obtaining the number and dimension of user characteristic parameters in the user characteristic parameter set;

[0024] Arrange the user characteristic parameters into an indicator matrix by columns, with the number of columns being the number of parameters and the number of rows being the number of dimensions;

[0025] Zero-mean each row of the indicator matrix to obtain a first matrix;

[0026] Obtaining a covariance matrix based on the first matrix, and calculating eigenvalues ​​and corresponding eigenvectors of the covariance matrix;

[0027] Arranging the eigenvectors in rows from top to bottom according to the magnitude of the eigenvalues ​​into a eigenmatrix, and taking the first preset number of rows in the eigenmatrix to form a second matrix;

[0028] The first matrix and the second matrix are multiplied to obtain a dimension reduction feature.

[0029] Optionally, the calculating to obtain the eigenvalues ​​and corresponding eigenvectors of the covariance matrix includes:

[0030] Obtain a preset identity matrix, and construct a characteristic polynomial according to the identity matrix and the covariance matrix;

[0031] Performing matrix solution on the characteristic polynomial to obtain eigenvalues;

[0032] Substitute the eigenvalue into the characteristic polynomial to obtain the eigenvector corresponding to the eigenvalue.

[0033] Optionally, the extracting the features of the user behavior data to obtain a user feature parameter set includes:

[0034] Obtaining a preset feature reference table, and searching for user feature parameters corresponding to a plurality of user behavior data in the user behavior data based on the feature reference table;

[0035] A preset number of parameters are selected from the user characteristic parameters corresponding to the plurality of user behavior data to form a user characteristic parameter set.

[0036] In order to solve the above problems, the present invention further provides a risk identification device, the device comprising:

[0037] A data processing module is used to obtain user behavior data, perform feature extraction on the user behavior data to obtain a user feature parameter set, perform dimensionality reduction processing on the user feature parameter set to obtain a reduced dimensionality feature set, and calculate an initial weight corresponding to each reduced dimensionality feature in the reduced dimensionality feature set;

[0038] A risk identification module, used to perform risk identification on the user behavior data using a preset risk identification model to obtain an identification result of the user behavior data;

[0039] A model training module, used to construct a loss function using the initial weights, and calculate the loss value corresponding to the recognition result according to the loss function, and optimize the risk recognition model by the size between the loss value and the risk reference value calculated based on the initial weights to obtain a standard risk recognition model;

[0040] The result generation module is used to obtain relevant user data of the user to be identified, input the relevant user data into the standard risk identification model, and obtain the risk level corresponding to the relevant user data.

[0041] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0042] at least one processor; and,

[0043] a memory communicatively connected to the at least one processor; wherein,

[0044] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the risk identification method described above.

[0045] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the risk identification method described above.

[0046] The embodiment of the present invention obtains a reduced dimension feature set by performing feature extraction and dimensionality reduction processing on user behavior data. The dimensionality reduction processing can extract the main feature components in the data, while ensuring more original features of the user features in the user feature parameter set, and weight calculation is performed on the reduced dimension feature set to obtain the initial weight corresponding to each reduced dimension feature, and a loss function is constructed according to the initial weight, thereby optimizing the risk identification model. The loss function constructed using the initial weight fully considers the influence of different user feature parameters on risk identification. The loss value corresponding to the identification result is calculated according to the loss function, and the risk identification model is optimized by the size between the loss value and the risk reference value calculated based on the initial weight to obtain a standard risk identification model. The standard risk identification model has a more accurate identification function, and the risk identification of the relevant user data of the user to be identified is performed using the standard risk identification model to obtain the risk level corresponding to the relevant user data. Therefore, the risk identification method, device, electronic device and computer-readable storage medium proposed by the present invention can solve the problem of insufficient efficiency of risk identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a risk identification method according to an embodiment of the present invention;

[0048] Figure 2 A functional module diagram of a risk identification device provided by an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of the structure of an electronic device for implementing the risk identification method provided by an embodiment of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] The embodiment of the present application provides a risk identification method. The execution subject of the risk identification method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the risk identification method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0053] Reference Figure 1 The figure is a flow chart of a risk identification method provided by an embodiment of the present invention.

[0054] In this embodiment, the risk identification method includes:

[0055] S1. Obtain user behavior data, perform feature extraction on the user behavior data, and obtain a user feature parameter set.

[0056] In the embodiment of the present invention, the user behavior data may refer to relevant data generated when the user participates in an activity, such as the user's access time, the user's access duration, IP, region, behavior trajectory and access parameters.

[0057] Specifically, the extracting of the user behavior data features to obtain a user feature parameter set includes:

[0058] Obtaining a preset feature reference table, and searching for user feature parameters corresponding to a plurality of user behavior data in the user behavior data based on the feature reference table;

[0059] A preset number of parameters are selected from the user characteristic parameters corresponding to the plurality of user behavior data to form a user characteristic parameter set.

[0060] In detail, the feature reference table refers to a correspondence table between behavior data and feature parameters, and the feature reference table includes multiple user behavior data and feature categories described in the user behavior data. There may be a situation where one feature category includes one or more user behavior data. Based on the feature reference table, user feature parameters corresponding to multiple user behavior data in the user behavior data can be searched.

[0061] The preset number is five. For example, in the embodiment of the present invention, the user feature parameter set after feature extraction includes access time point, duration, IP, region, access track, and registration time.

[0062] S2. Perform dimensionality reduction processing on the user feature parameter set to obtain a reduced-dimensionality feature set, and calculate an initial weight corresponding to each reduced-dimensionality feature in the reduced-dimensionality feature set.

[0063] In the embodiment of the present invention, the step of performing dimensionality reduction processing on the user feature parameter set to obtain a dimensionality reduction feature set includes:

[0064] Obtaining the number and dimension of user characteristic parameters in the user characteristic parameter set;

[0065] Arrange the user characteristic parameters into an indicator matrix by columns, with the number of columns being the number of parameters and the number of rows being the number of dimensions;

[0066] Zero-mean each row of the indicator matrix to obtain a first matrix;

[0067] Obtaining a covariance matrix based on the first matrix, and calculating eigenvalues ​​and corresponding eigenvectors of the covariance matrix;

[0068] Arranging the eigenvectors in rows from top to bottom according to the magnitude of the eigenvalues ​​into a eigenmatrix, and taking the first preset number of rows in the eigenmatrix to form a second matrix;

[0069] The first matrix and the second matrix are multiplied to obtain a dimension reduction feature.

[0070] For example, assuming that the number of user feature parameters in the user feature parameter set is m and the dimension is n, the user feature parameters are organized into an indicator matrix X with n rows and m columns, and each row of the indicator matrix is ​​zero-meaned, that is, the mean of this row is subtracted.

[0071] Further, obtaining the covariance matrix based on the first matrix includes:

[0072] The covariance matrix is ​​obtained using the following calculation formula:

[0073]

[0074] Wherein, C is the covariance matrix, m is the number of the user characteristic parameters, X is the indicator matrix, X T is the transposed matrix corresponding to the indicator matrix.

[0075] Specifically, the calculation to obtain the eigenvalues ​​and corresponding eigenvectors of the covariance matrix includes:

[0076] Obtain a preset identity matrix, and construct a characteristic polynomial according to the identity matrix and the covariance matrix;

[0077] Performing matrix solution on the characteristic polynomial to obtain eigenvalues;

[0078] Substitute the eigenvalue into the characteristic polynomial to obtain the eigenvector corresponding to the eigenvalue.

[0079] In detail, the preset unit matrix is ​​E, and the characteristic polynomial |C-λE| is constructed according to the unit matrix E and the covariance matrix C, wherein λ is the eigenvalue to be calculated, and the eigenvalue is substituted into the characteristic polynomial to obtain the eigenvector corresponding to the eigenvalue.

[0080] In an embodiment of the present invention, a PCA (Principal Component Ahalysis) dimensionality reduction method is used to reduce the dimensionality of the indicator reference factor, wherein the PCA dimensionality reduction method is a common data analysis method, which is often used for dimensionality reduction of high-dimensional data and can be used to extract the main characteristic components of the data.

[0081] Furthermore, the calculating of the initial weight corresponding to each dimensionality reduction feature in the dimensionality reduction feature set includes:

[0082] Performing binning processing on the dimension reduction features to obtain a grouping variable set;

[0083] The initial weights corresponding to the plurality of grouping variables in the grouping variable set are calculated respectively using a preset weight calculation formula.

[0084] In detail, the binning process of the user characteristic parameters is discretization process or grouping process.

[0085] Furthermore, the preset weight calculation formula is:

[0086]

[0087] Among them, WOEi is the initial weight, yi is the number of individuals whose characteristic variable value is "yes", and y is the number of individuals whose characteristic variable value is "no".

[0088] In detail, WOE (Weight of Evidence) is the weight of evidence, and WOE is a coding form of the original independent variable.

[0089] S3. Use a preset risk identification model to perform risk identification on the user behavior data to obtain an identification result of the user behavior data.

[0090] In an embodiment of the present invention, a risk identification model may be constructed using a random forest algorithm or a Bert algorithm, and may also be a convolutional neural network.

[0091] Specifically, the using a preset risk identification model to perform risk identification on the user behavior data includes:

[0092] Performing feature conversion on the user behavior data to obtain a user feature matrix;

[0093] The convolutional layer, the pooling layer and the fully connected layer in the risk identification model are used to process the user feature matrix in sequence to obtain identification data;

[0094] Input the identification data into a preset activation function to obtain a probability value corresponding to the identification data, and determine the risk level corresponding to the user behavior data according to the magnitude of the probability value;

[0095] The risk level corresponding to the user behavior data is used as the identification result of the user behavior data.

[0096] In detail, in this scheme, a convolutional neural network is used as a risk identification model, and the convolution layer, pooling layer and fully connected layer in the risk identification model are used to perform convolution processing, pooling processing and fully connected processing on the user behavior data in turn to obtain identification data. Among them, the convolution layer generally implements convolution processing through a convolution kernel, and the pooling layer performs pooling processing on the convolution-processed data through the maximum pooling method, which can achieve dimensionality reduction processing of the data, and the fully connected layer can simulate nonlinear transformation. The identification data is input into a preset activation function to obtain the probability value corresponding to the identification data, wherein the activation function can be a softmax function. The risk level of the user behavior data is determined according to the probability value interval to which the obtained probability value belongs. For example, the calculated probability value is 0.6, and the probability value interval can be (0.8, 1.0], which belongs to high risk, (0.5, 0.8) belongs to medium risk, and [0, 0.5] belongs to low risk. Therefore, the risk level of the user behavior data is medium risk.

[0097] S4. Construct a loss function using the initial weights, and calculate the loss value corresponding to the identification result according to the loss function, optimize the risk identification model by the size between the loss value and the risk reference value calculated based on the initial weights, and obtain a standard risk identification model.

[0098] In the embodiment of the present invention, the step of constructing a loss function using the initial weights includes:

[0099]

[0100] Among them, loss(x, class) is the loss value, q is the initial weight, x[class] is the recognition result, and j is the total number of data in the recognition result.

[0101] Specifically, before optimizing the risk identification model by the difference between the loss value and the risk reference value calculated based on the initial weight, the method further includes:

[0102] Calculating multiple prediction index values ​​according to the multiple initial weights and a preset prediction index value formula;

[0103] Summing the multiple prediction index values ​​to obtain a prediction index value corresponding to the user characteristic parameter;

[0104] The initial weight and the prediction index value are used as inputs of a preset risk reference value calculation formula to obtain a risk reference value.

[0105] In detail, the preset prediction index value formula is:

[0106]

[0107] Among them, IV i are multiple prediction indicator values, y i is the number of individuals whose characteristic variable takes the value of “yes”, y is the number of individuals whose characteristic variable takes the value of “no”, WOE i is the initial weight.

[0108] Furthermore, the plurality of prediction index values ​​are summed using a preset summation formula to obtain a prediction index value corresponding to the user characteristic parameter, including:

[0109] The preset summation formula is:

[0110]

[0111] Here, n is the number of grouping variables.

[0112] In detail, the loss value corresponding to the identification result is calculated according to the loss function, and the size of the loss value and the risk reference value is judged. When the loss value is greater than or equal to the risk reference value, the model parameters of the risk identification model are adjusted, and risk identification is re-performed to obtain a new identification result. The loss value corresponding to the new identification result is calculated. Until the loss value is less than the risk reference value, the current risk identification model is output as a standard risk identification model.

[0113] S5. Obtain relevant user data of the user to be identified, input the relevant user data into the standard risk identification model, and obtain the risk level corresponding to the relevant user data.

[0114] In the embodiment of the present invention, the relevant user data is input into the standard risk identification model, and the standard risk identification model can identify the risk level corresponding to the relevant user data, and the risk level is the basis for subsequent risk strategies. Different risk strategies can be pushed to the identified users according to the risk level corresponding to the relevant user data to ensure the safety of the users.

[0115] The embodiment of the present invention obtains a reduced dimension feature set by performing feature extraction and dimensionality reduction processing on user behavior data. The dimensionality reduction processing can extract the main feature components in the data while ensuring more original features of the user features in the user feature parameter set. The reduced dimension feature set is weighted to obtain the initial weight corresponding to each reduced dimension feature, and a loss function is constructed based on the initial weight, thereby optimizing the risk identification model. The loss function constructed using the initial weight fully considers the influence of different user feature parameters on risk identification. The loss value corresponding to the identification result is calculated according to the loss function, and the risk identification model is optimized by the size between the loss value and the risk reference value calculated based on the initial weight to obtain a standard risk identification model. The standard risk identification model has a more accurate identification function. The standard risk identification model is used to perform risk identification on the relevant user data of the user to be identified, and the risk level corresponding to the relevant user data is obtained. Therefore, the risk identification method proposed by the present invention can solve the problem of insufficient efficiency of risk identification.

[0116] like Figure 2 , which is a functional module diagram of a risk identification device provided by an embodiment of the present invention.

[0117] The risk identification device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the risk identification device 100 can include a data processing module 101, a risk identification module 102, a model training module 103 and a result generation module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0118] In this embodiment, the functions of each module / unit are as follows:

[0119] The data processing module 101 is used to obtain user behavior data, perform feature extraction on the user behavior data to obtain a user feature parameter set, perform dimensionality reduction processing on the user feature parameter set to obtain a reduced dimensionality feature set, and calculate the initial weight corresponding to each reduced dimensionality feature in the reduced dimensionality feature set;

[0120] The risk identification module 102 is used to perform risk identification on the user behavior data using a preset risk identification model to obtain an identification result of the user behavior data;

[0121] The model training module 103 is used to construct a loss function using the initial weights, and calculate the loss value corresponding to the recognition result according to the loss function, and optimize the risk recognition model by the difference between the loss value and the risk reference value calculated based on the initial weights to obtain a standard risk recognition model;

[0122] The result generation module 104 is used to obtain relevant user data of the user to be identified, input the relevant user data into the standard risk identification model, and obtain the risk level corresponding to the relevant user data.

[0123] In detail, the specific implementation of each module of the risk identification device 100 is as follows:

[0124] Step 1: Obtain user behavior data, perform feature extraction on the user behavior data, and obtain a user feature parameter set.

[0125] In the embodiment of the present invention, the user behavior data may refer to relevant data generated when the user participates in an activity, such as the user's access time, the user's access duration, IP, region, behavior trajectory and access parameters.

[0126] Specifically, the extracting of the user behavior data features to obtain a user feature parameter set includes:

[0127] Obtaining a preset feature reference table, and searching for user feature parameters corresponding to a plurality of user behavior data in the user behavior data based on the feature reference table;

[0128] A preset number of parameters are selected from the user characteristic parameters corresponding to the plurality of user behavior data to form a user characteristic parameter set.

[0129] In detail, the feature reference table refers to a correspondence table between behavior data and feature parameters, and the feature reference table includes multiple user behavior data and feature categories described in the user behavior data. There may be a situation where one feature category includes one or more user behavior data. Based on the feature reference table, user feature parameters corresponding to multiple user behavior data in the user behavior data can be searched.

[0130] The preset number is five. For example, in the embodiment of the present invention, the user feature parameter set after feature extraction includes access time point, duration, IP, region, access track, and registration time.

[0131] Step 2: Perform dimensionality reduction processing on the user feature parameter set to obtain a reduced dimensionality feature set, and calculate the initial weight corresponding to each reduced dimensionality feature in the reduced dimensionality feature set.

[0132] In the embodiment of the present invention, the step of performing dimensionality reduction processing on the user feature parameter set to obtain a dimensionality reduction feature set includes:

[0133] Obtaining the number and dimension of user characteristic parameters in the user characteristic parameter set;

[0134] Arrange the user characteristic parameters into an indicator matrix by columns, with the number of columns being the number of parameters and the number of rows being the number of dimensions;

[0135] Zero-mean each row of the indicator matrix to obtain a first matrix;

[0136] Obtaining a covariance matrix based on the first matrix, and calculating eigenvalues ​​and corresponding eigenvectors of the covariance matrix;

[0137] Arranging the eigenvectors in rows from top to bottom according to the magnitude of the eigenvalues ​​into a eigenmatrix, and taking the first preset number of rows in the eigenmatrix to form a second matrix;

[0138] The first matrix and the second matrix are multiplied to obtain a dimension reduction feature.

[0139] For example, assuming that the number of user feature parameters in the user feature parameter set is m and the dimension is n, the user feature parameters are organized into an indicator matrix X with n rows and m columns, and each row of the indicator matrix is ​​zero-meaned, that is, the mean of this row is subtracted.

[0140] Further, obtaining the covariance matrix based on the first matrix includes:

[0141] The covariance matrix is ​​obtained using the following calculation formula:

[0142]

[0143] Wherein, C is the covariance matrix, m is the number of the user characteristic parameters, X is the indicator matrix, X T is the transposed matrix corresponding to the indicator matrix.

[0144] Specifically, the calculation to obtain the eigenvalues ​​and corresponding eigenvectors of the covariance matrix includes:

[0145] Obtain a preset identity matrix, and construct a characteristic polynomial according to the identity matrix and the covariance matrix;

[0146] Performing matrix solution on the characteristic polynomial to obtain eigenvalues;

[0147] Substitute the eigenvalue into the characteristic polynomial to obtain the eigenvector corresponding to the eigenvalue.

[0148] In detail, the preset unit matrix is ​​E, and the characteristic polynomial |C-λE| is constructed according to the unit matrix E and the covariance matrix C, wherein λ is the eigenvalue to be calculated, and the eigenvalue is substituted into the characteristic polynomial to obtain the eigenvector corresponding to the eigenvalue.

[0149] In an embodiment of the present invention, a PCA (Principal Component Ahalysis) dimensionality reduction method is used to reduce the dimensionality of the indicator reference factor, wherein the PCA dimensionality reduction method is a common data analysis method, which is often used for dimensionality reduction of high-dimensional data and can be used to extract the main characteristic components of the data.

[0150] Furthermore, the calculating of the initial weight corresponding to each dimensionality reduction feature in the dimensionality reduction feature set includes:

[0151] Performing binning processing on the dimension reduction features to obtain a grouping variable set;

[0152] The initial weights corresponding to the plurality of grouping variables in the grouping variable set are calculated respectively using a preset weight calculation formula.

[0153] In detail, the binning process of the user characteristic parameters is discretization process or grouping process.

[0154] Furthermore, the preset weight calculation formula is:

[0155]

[0156] Among them, WOEi is the initial weight, y i is the number of individuals whose characteristic variable takes the value of "yes", and y is the number of individuals whose characteristic variable takes the value of "no".

[0157] In detail, WOE (Weight of Evidence) is the weight of evidence, and WOE is a coding form of the original independent variable.

[0158] Step three: Use a preset risk identification model to perform risk identification on the user behavior data to obtain an identification result of the user behavior data.

[0159] In an embodiment of the present invention, a risk identification model may be constructed using a random forest algorithm or a Bert algorithm, and may also be a convolutional neural network.

[0160] Specifically, the using a preset risk identification model to perform risk identification on the user behavior data includes:

[0161] Performing feature conversion on the user behavior data to obtain a user feature matrix;

[0162] The convolutional layer, the pooling layer and the fully connected layer in the risk identification model are used to process the user feature matrix in sequence to obtain identification data;

[0163] Input the identification data into a preset activation function to obtain a probability value corresponding to the identification data, and determine the risk level corresponding to the user behavior data according to the magnitude of the probability value;

[0164] The risk level corresponding to the user behavior data is used as the identification result of the user behavior data.

[0165] In detail, in this scheme, a convolutional neural network is used as a risk identification model, and the convolution layer, pooling layer and fully connected layer in the risk identification model are used to perform convolution processing, pooling processing and fully connected processing on the user behavior data in turn to obtain identification data. Among them, the convolution layer generally implements convolution processing through a convolution kernel, and the pooling layer performs pooling processing on the convolution-processed data through the maximum pooling method, which can achieve dimensionality reduction processing of the data, and the fully connected layer can simulate nonlinear transformation. The identification data is input into a preset activation function to obtain the probability value corresponding to the identification data, wherein the activation function can be a softmax function. The risk level of the user behavior data is determined according to the probability value interval to which the obtained probability value belongs. For example, the calculated probability value is 0.6, and the probability value interval can be (0.8, 1.0], which belongs to high risk, (0.5, 0.8) belongs to medium risk, and [0, 0.5] belongs to low risk. Therefore, the risk level of the user behavior data is medium risk.

[0166] Step 4: construct a loss function using the initial weights, and calculate the loss value corresponding to the identification result based on the loss function, optimize the risk identification model by the size between the loss value and the risk reference value calculated based on the initial weights, and obtain a standard risk identification model.

[0167] In the embodiment of the present invention, the step of constructing a loss function using the initial weights includes:

[0168]

[0169] Among them, loss(x, class) is the loss value, q is the initial weight, x[class] is the recognition result, and j is the total number of data in the recognition result.

[0170] Specifically, before optimizing the risk identification model by the difference between the loss value and the risk reference value calculated based on the initial weight, the method further includes:

[0171] Calculating multiple prediction index values ​​according to the multiple initial weights and a preset prediction index value formula;

[0172] Summing the multiple prediction index values ​​to obtain a prediction index value corresponding to the user characteristic parameter;

[0173] The initial weight and the prediction index value are used as inputs of a preset risk reference value calculation formula to obtain a risk reference value.

[0174] In detail, the preset prediction index value formula is:

[0175]

[0176] Among them, IV i are multiple prediction indicator values, y i is the number of individuals whose characteristic variable takes the value of “yes”, y is the number of individuals whose characteristic variable takes the value of “no”, WOE i is the initial weight.

[0177] Furthermore, the plurality of prediction index values ​​are summed using a preset summation formula to obtain a prediction index value corresponding to the user characteristic parameter, including:

[0178] The preset summation formula is:

[0179]

[0180] Here, n is the number of grouping variables.

[0181] In detail, the loss value corresponding to the identification result is calculated according to the loss function, and the size of the loss value and the risk reference value is judged. When the loss value is greater than or equal to the risk reference value, the model parameters of the risk identification model are adjusted, and risk identification is re-performed to obtain a new identification result. The loss value corresponding to the new identification result is calculated. Until the loss value is less than the risk reference value, the current risk identification model is output as a standard risk identification model.

[0182] Step 5: Obtain relevant user data of the user to be identified, input the relevant user data into the standard risk identification model, and obtain the risk level corresponding to the relevant user data.

[0183] In the embodiment of the present invention, the relevant user data is input into the standard risk identification model, and the standard risk identification model can identify the risk level corresponding to the relevant user data, and the risk level is the basis for subsequent risk strategies. Different risk strategies can be pushed to the identified users according to the risk level corresponding to the relevant user data to ensure the safety of the users.

[0184] The embodiment of the present invention obtains a reduced dimension feature set by performing feature extraction and dimensionality reduction processing on user behavior data. The dimensionality reduction processing can extract the main feature components in the data while ensuring more original features of the user features in the user feature parameter set. The reduced dimension feature set is weighted to obtain the initial weight corresponding to each reduced dimension feature, and a loss function is constructed based on the initial weight, thereby optimizing the risk identification model. The loss function constructed using the initial weight fully considers the influence of different user feature parameters on risk identification. The loss value corresponding to the identification result is calculated according to the loss function, and the risk identification model is optimized by the size between the loss value and the risk reference value calculated based on the initial weight to obtain a standard risk identification model. The standard risk identification model has a more accurate identification function. The standard risk identification model is used to perform risk identification on the relevant user data of the user to be identified, and the risk level corresponding to the relevant user data is obtained. Therefore, the risk identification device proposed by the present invention can solve the problem of insufficient efficiency of risk identification.

[0185] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a risk identification method provided by an embodiment of the present invention.

[0186] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a risk identification program.

[0187] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing risk identification programs, etc.), and calling data stored in the memory 11.

[0188] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the risk identification program, but also can be used to temporarily store data that has been output or is to be output.

[0189] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0190] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0191] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0192] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0193] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0194] The risk identification program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0195] Acquire user behavior data, perform feature extraction on the user behavior data, and obtain a user feature parameter set;

[0196] Performing dimensionality reduction processing on the user feature parameter set to obtain a reduced-dimensionality feature set, and calculating an initial weight corresponding to each reduced-dimensionality feature in the reduced-dimensionality feature set;

[0197] Using a preset risk identification model to perform risk identification on the user behavior data to obtain an identification result of the user behavior data;

[0198] Constructing a loss function using the initial weights, and calculating a loss value corresponding to the identification result according to the loss function, optimizing the risk identification model by the difference between the loss value and the risk reference value calculated based on the initial weights, and obtaining a standard risk identification model;

[0199] Relevant user data of the user to be identified is obtained, and the relevant user data is input into the standard risk identification model to obtain the risk level corresponding to the relevant user data.

[0200] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0201] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0202] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0203] Acquire user behavior data, perform feature extraction on the user behavior data, and obtain a user feature parameter set;

[0204] Performing dimensionality reduction processing on the user feature parameter set to obtain a reduced-dimensionality feature set, and calculating an initial weight corresponding to each reduced-dimensionality feature in the reduced-dimensionality feature set;

[0205] Using a preset risk identification model to perform risk identification on the user behavior data to obtain an identification result of the user behavior data;

[0206] Constructing a loss function using the initial weights, and calculating a loss value corresponding to the identification result according to the loss function, optimizing the risk identification model by the difference between the loss value and the risk reference value calculated based on the initial weights, and obtaining a standard risk identification model;

[0207] Relevant user data of the user to be identified is obtained, and the relevant user data is input into the standard risk identification model to obtain the risk level corresponding to the relevant user data.

[0208] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0209] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0210] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0211] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0212] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0213] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0214] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, 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.

[0215] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0216] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A risk identification method, characterized in that: The method comprises: Acquire user behavior data, perform feature extraction on the user behavior data, and obtain a user feature parameter set; Performing dimensionality reduction processing on the user feature parameter set to obtain a reduced-dimensionality feature set, and calculating an initial weight corresponding to each reduced-dimensionality feature in the reduced-dimensionality feature set; Using a preset risk identification model to perform risk identification on the user behavior data to obtain an identification result of the user behavior data; Constructing a loss function using the initial weights, and calculating a loss value corresponding to the identification result according to the loss function, optimizing the risk identification model by the difference between the loss value and the risk reference value calculated based on the initial weights, and obtaining a standard risk identification model; Obtain relevant user data of the user to be identified, input the relevant user data into the standard risk identification model, and obtain the risk level corresponding to the relevant user data; Among them, the use of a preset risk identification model to perform risk identification on the user behavior data includes: performing feature conversion on the user behavior data to obtain a user feature matrix; using the convolution layer, pooling layer and fully connected layer in the risk identification model to sequentially process the user feature matrix to obtain identification data; inputting the identification data into a preset activation function to obtain a probability value corresponding to the identification data, and determining the risk level corresponding to the user behavior data according to the size of the probability value; and using the risk level corresponding to the user behavior data as the identification result of the user behavior data; Before optimizing the risk identification model by comparing the loss value with the risk reference value calculated based on the initial weight, the method further includes: calculating a plurality of prediction index values ​​according to a plurality of the initial weights and a preset prediction index value formula; summing the plurality of prediction index values ​​to obtain a prediction index value corresponding to the user characteristic parameter; using the initial weights and the prediction index value as inputs of a preset risk reference value calculation formula to obtain a risk reference value; The method of performing dimensionality reduction processing on the user feature parameter set to obtain a reduced-dimensionality feature set includes: obtaining the number and dimension of user feature parameters in the user feature parameter set; arranging the user feature parameters by columns into an indicator matrix with the number of columns as the number of columns and the dimension as the number of rows; performing zero mean conversion on each row of the indicator matrix to obtain a first matrix; obtaining a covariance matrix based on the first matrix, and calculating the eigenvalues ​​and corresponding eigenvectors of the covariance matrix; arranging the eigenvectors by rows from top to bottom into a feature matrix according to the size of the eigenvalues, and taking the first preset number of rows in the feature matrix to form a second matrix; multiplying the first matrix and the second matrix to obtain reduced-dimensionality features.

2. The risk identification method according to claim 1, characterized in that: The calculating the initial weight corresponding to each dimensionality reduction feature in the dimensionality reduction feature set includes: Performing binning processing on the dimension reduction features to obtain a grouping variable set; The initial weights corresponding to the plurality of grouping variables in the grouping variable set are calculated respectively using a preset weight calculation formula.

3. The risk identification method according to claim 1, characterized in that: The calculating to obtain the eigenvalues ​​and corresponding eigenvectors of the covariance matrix includes: Obtain a preset identity matrix, and construct a characteristic polynomial according to the identity matrix and the covariance matrix; Performing matrix solution on the characteristic polynomial to obtain eigenvalues; Substitute the eigenvalue into the characteristic polynomial to obtain the eigenvector corresponding to the eigenvalue.

4. The risk identification method according to any one of claims 1 to 3, characterized in that: The extracting features of the user behavior data to obtain a user feature parameter set includes: Obtaining a preset feature reference table, and searching for user feature parameters corresponding to a plurality of user behavior data in the user behavior data based on the feature reference table; A preset number of parameters are selected from the user characteristic parameters corresponding to the plurality of user behavior data to form a user characteristic parameter set.

5. A risk identification device, used to implement the risk identification method according to any one of claims 1 to 4, characterized in that: The device comprises: A data processing module is used to obtain user behavior data, perform feature extraction on the user behavior data to obtain a user feature parameter set, perform dimensionality reduction processing on the user feature parameter set to obtain a reduced dimensionality feature set, and calculate an initial weight corresponding to each reduced dimensionality feature in the reduced dimensionality feature set; A risk identification module, used to perform risk identification on the user behavior data using a preset risk identification model to obtain an identification result of the user behavior data; A model training module, used to construct a loss function using the initial weights, and calculate the loss value corresponding to the recognition result according to the loss function, and optimize the risk recognition model by the size between the loss value and the risk reference value calculated based on the initial weights to obtain a standard risk recognition model; The result generation module is used to obtain relevant user data of the user to be identified, input the relevant user data into the standard risk identification model, and obtain the risk level corresponding to the relevant user data.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the risk identification method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the risk identification method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Business evaluation method and device based on intelligent modeling, electronic equipment and medium

    CN113516417A

  • Fraud risk prediction method and device, equipment and storage medium

    CN113706291A

  • Predictive Key Risk Indicator Identification Process Using Quantitative Methods

    US20140019194A1

  • Method and apparatus for training risk identification model and server

    US20210166140A1