Fraud identification method, network device and storage medium
Patent Information
- Application Number
- CN202210454439.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing technologies suffer from large errors and low accuracy when dealing with large amounts of unlabeled data for fraud detection. Traditional methods such as self-training, co-training, and semi-supervised models have limitations in the field of fraud prevention.
A user social graph network is constructed. By acquiring data information of target users and their related persons, semi-supervised training is performed. The algorithm combines a label probability aggregation algorithm and an improved MixMatch algorithm to identify fraud risks using the relationship information in the user social graph.
The accuracy of fraud detection has been improved by using semi-supervised learning that integrates the sample's own attributes and correlation information, thereby enhancing the model's recognition precision.
Smart Images

Figure CN117011020B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication security technology, and in particular to a fraud identification method, network device, and storage medium. Background Technology
[0002] Identifying credit fraud is a core aspect of financial risk control. Traditional anti-fraud methods involve training models based on existing fraud data through data mining. However, traditional supervised learning models often rely on large amounts of labeled data to achieve good accuracy.
[0003] In reality, fraud labels are scarce and difficult to obtain, leaving a large amount of unlabeled data unused and severely impacting model performance. Therefore, how to fully utilize large amounts of unlabeled data for modeling has become a technical challenge in the field of fraud prevention.
[0004] Currently, while there are some solutions to the problem of limited available labels in the anti-fraud field, their applications are relatively limited, and each method has certain limitations. For example, self-training methods alone carry certain risks and are prone to overfitting; collaborative training has too high data requirements; ordinary semi-supervised models have large errors and require manual analysis later; graph semi-supervised learning does not consider user behavior attributes and has large errors. Summary of the Invention
[0005] This invention proposes a fraud identification method, network device, and storage medium to solve the problem of large errors and low accuracy in existing technologies when performing fraud identification on large amounts of unlabeled data.
[0006] To solve the above-mentioned technical problems, the present invention is implemented as follows:
[0007] In a first aspect, embodiments of the present invention provide a fraud risk identification method, the method comprising:
[0008] Acquire data information of the target user and their associated persons, including the target user's mobile phone number, their relationship with the associated persons, and user behavior data;
[0009] A user social graph network is constructed based on the data information. The user social graph network includes a set of users with users as nodes, a set of edges with relationships between users as edges, and an adjacency matrix representing the relationships between user nodes.
[0010] Two batches of samples are drawn from the user set: a labeled first sample set and an unlabeled second sample set. The same data preprocessing is performed on the first and second sample sets.
[0011] Semi-supervised training was performed on the preprocessed first and second sample sets to obtain a fraud risk identification model.
[0012] The fraud risk identification model is used to predict the probability vectors of all users in the user social graph network.
[0013] Based on the label probability vector, a t-step graph probability vector is obtained using a label probability aggregation algorithm.
[0014] Based on the t-step graph probability vector and the label probability vector, a new label probability vector is obtained;
[0015] Based on the new label probability vector and the fraud risk identification model, the fraud risk probability of the target user is obtained;
[0016] Here, the t-step graph probability vector of the target user node represents the vector of aggregated probability values of the nearest neighbor nodes from the target user node within t steps.
[0017] Optionally, the step of semi-supervised training on the preprocessed first and second sample sets to obtain the fraud risk identification model includes:
[0018] Data perturbation is performed on each sample in the first sample set to generate a dataset.
[0019] Perform K data perturbations on each sample in the second sample set to generate a dataset. Where K is a positive integer greater than or equal to 1;
[0020] For the dataset and dataset Perform data augmentation by obfuscation to obtain the augmented dataset. and dataset
[0021] For the augmented dataset and dataset The fraud risk identification model is obtained by performing semi-supervised training.
[0022] Optionally, obtaining the t-step graph probability vector based on the label probability aggregation algorithm includes calculating the t-step transition matrix:
[0023] Calculate the degree matrix based on the user's social graph network;
[0024] Calculate the transition probability matrix P for steps 1 to t respectively. t ;
[0025] According to the transition probability matrix P t Further calculate the transition expectation matrix Qt
[0026]
[0027] Among them, E ij Let t be the expected number of visits from user node i to user node j within t steps. The larger the expected number of visits, the closer the relationship between user i and user j. n represents the total number of users.
[0028] The transition expectation matrix Q t Each element value in the array represents the expected value of reaching another user node within t steps, starting from a certain user node.
[0029] Optionally, the step of obtaining the t-step graph probability vector based on the label probability aggregation algorithm further includes obtaining the fraud probability of neighboring user nodes:
[0030] According to the transition expectation matrix Q t Obtain the expected values of reaching other user nodes within t steps from the target user node and sort them.
[0031] Based on the sorting results, select the m user nodes with the largest expected values within t steps of the target user node as the neighboring nodes of the target user node;
[0032] Obtain the set P of fraud risk probabilities for each of the m user nodes. πj :
[0033]
[0034] set P πj This represents the probability of fraud among the m users most closely related to the j-th user. This represents the sequence number of the user node, where the sequence number is... The user node is the node with the largest expected value that starts from node j within step t.
[0035] Optionally, the step of obtaining the t-step graph probability vector based on the label probability aggregation algorithm further includes obtaining the t-step transition expectation vector corresponding to adjacent user nodes:
[0036] The expected value of the t-step transition for the m user nodes is:
[0037]
[0038] The expected values of the t-step transitions of the m user nodes are normalized to obtain a set of vectors representing the expected values of the t-step transitions of the m user nodes.
[0039]
[0040] And there is,
[0041] The set The higher the probability value of an element, the closer the relationship between the actual user node corresponding to that element and user node j.
[0042] Optionally, the label probability aggregation algorithm is used to obtain the t-step graph probability vector. Also includes:
[0043] The normalized t-step transition expectation vector of the m user nodes is multiplied by the fraud risk probability vector of the m nodes to obtain the aggregated fraud risk probability p of the j-th node. j (t):
[0044]
[0045] Where, p j (t) represents the t-step graph probability value of the j-th node in the graph network G, and represents the aggregation probability value of the m neighboring nodes that are closest to the j-th user.
[0046] Iterate through all user nodes, calculate the t-step graph probability value for each user node, and finally obtain the t-step graph probability vector.
[0047] Optionally, obtaining a new label probability vector based on the t-step graph probability vector and the label probability vector includes:
[0048] Based on the t-step graph probability vector The label probability vector P is updated to obtain the new label probability vector P. f
[0049]
[0050] Where t and w are both hyperparameters.
[0051] Secondly, embodiments of the present invention provide a network device, including:
[0052] The acquisition module is used to acquire data information of the target user and its associated persons, including the target user's mobile phone number, its relationship with the associated persons, and user behavior data.
[0053] The graph network construction module is used to construct a user social graph network based on the data information. The user social graph network includes a user set with users as nodes, an edge set with relationships between users as edges, and an adjacency matrix representing the relationships between user nodes.
[0054] The preprocessing module is used to extract two batches of samples from the user set, one batch being a labeled first sample set and the other batch being an unlabeled second sample set, and to perform the same data preprocessing on the first sample set and the second sample set;
[0055] The model training module is used to perform semi-supervised training on the preprocessed first and second sample sets to obtain a fraud risk identification model.
[0056] The probability prediction module is used to predict all users in the user social graph network through the fraud risk identification model to obtain a label probability vector;
[0057] The probability prediction module is further configured to obtain a t-step graph probability vector based on the label probability vector and a label probability aggregation algorithm.
[0058] The probability prediction module is further configured to obtain a new label probability vector based on the t-step graph probability vector and the label probability vector;
[0059] The probability prediction module is also used to obtain the fraud risk probability of the target user based on the new label probability vector and the fraud risk identification model.
[0060] Thirdly, embodiments of the present invention provide a network device, including: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the fraud detection method of the first aspect described above.
[0061] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the fraud detection method of the first aspect described above.
[0062] The technical solution provided by this invention obtains data information of target users and their associated persons; constructs a user social graph network based on the data information, the user social graph network including a user set with users as nodes, an edge set with relationships between users as edges, and an adjacency matrix representing the relationships between user nodes; extracts two batches of samples from the user set, one batch being a labeled first sample set and the other batch being an unlabeled second sample set, and performs the same data preprocessing on both sample sets; performs semi-supervised training on the preprocessed sample sets to obtain a fraud risk identification model; predicts all users in the user social graph network using the fraud risk identification model to obtain a label probability vector; obtains a t-step graph probability vector based on the label probability vector using a label probability aggregation algorithm; obtains a new label probability vector based on the t-step graph probability vector and the label probability vector; and obtains the fraud risk probability of the target user based on the new label probability vector and the fraud risk identification model. This solves the problem of large errors and low accuracy in existing technologies when performing fraud identification on large amounts of unlabeled data. Attached Figure Description
[0063] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0064] Figure 1 A flowchart of a fraud risk identification method provided in an embodiment of the present invention;
[0065] Figure 2 A flowchart of a fraud risk identification model training process provided in an embodiment of the present invention;
[0066] Figure 3 A flowchart of fraud risk identification tag aggregation provided in an embodiment of the present invention;
[0067] Figure 4 This is a schematic diagram illustrating the principle of probability aggregation for fraud risk identification tags provided in an embodiment of the present invention.
[0068] Figure 5 A schematic diagram of a network device structure provided in an embodiment of the present invention;
[0069] Figure 6 This is a schematic diagram of another network device provided in an embodiment of the present invention. Detailed Implementation
[0070] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0071] Please refer to Figure 1 , Figure 1 The flowchart of a fraud risk identification method provided by an embodiment of the present invention is shown. The method includes:
[0072] Step 11: Obtain data information of the target user and its associated persons. The data information includes the target user's mobile phone number, its relationship with associated persons, and user behavior data.
[0073] For example, there are multiple ways to obtain data information, such as collecting user location, call volume, data usage, SMS messages, and APP usage data from the base station based on data from telecommunications operators.
[0074] Step 12: Construct a user social graph network based on the data information. The user social graph network includes a set of users as nodes, a set of edges as relationships between users, and an adjacency matrix representing the relationships between user nodes.
[0075] For example, a user social graph network G is constructed based on the relationship between regional location and the number of calls between users, where G = (V, E, S), and V = {v1, ..., v...}. n V represents the user set, where each element represents a feature vector for each user, primarily composed of various user behavior data. E is a set of edges used to represent relationships between users. An edge connects two users if and only if they are in the same city area and have made calls to each other. The edge weights can be obtained by counting the number of calls made by the target user to the associated user. S is an adjacency matrix representing the relationships between user nodes.
[0076] For example, the regional location could be the city code of the user's city.
[0077] Step 13: Extract two batches of samples from the user set, one batch being a labeled first sample set and the other batch being an unlabeled second sample set, and perform the same data preprocessing on the first and second sample sets.
[0078] For example, two batches of samples with the same number are drawn from the user set V: one batch is a labeled first sample set X, and the other batch is an unlabeled second sample set U (note: the labeled sample set X should contain both fraudulent users and normal users; fraudulent users refer to users who commit fraudulent acts against other users). The same data preprocessing is performed on both batches of sample sets, which may include data cleaning, filling missing values, type conversion, etc.
[0079] Step 14: Perform semi-supervised training on the preprocessed first and second sample sets to obtain the fraud risk identification model.
[0080] For example, the fraud risk identification model f is obtained by semi-supervised training on a labeled first sample set X and an unlabeled second sample set U using the algorithm designed in this scheme. model .
[0081] Step 15: Predict all users in the user social graph network using the fraud risk identification model to obtain a label probability vector.
[0082] For example, firstly, the fraud risk identification model f obtained in step 14 is used. model Predict the label probability vector P for all users in the user social graph network G, where P = (p1, p2, ..., p2). i ,…,p n ); where p i =f(x) i ;θ), representing the fraud probability of the i-th user predicted by the model; n represents the total number of users; θ represents the weight parameters learned by the model. Other details about the model will be explained in detail later.
[0083] Step 16: Based on the label probability vector, obtain the t-step graph probability vector using the label probability aggregation algorithm.
[0084] For example, the tag probability aggregation algorithm designed in this scheme is used to obtain the t-step graph probability vector. Where t is a hyperparameter, it is recommended to set it to 2, and a detailed explanation will be provided later.
[0085] Step 17: Obtain a new label probability vector based on the t-step graph probability vector and the label probability vector; wherein, the t-step graph probability vector of the target user node represents the vector of aggregated probability values of the nearest neighbor nodes from the target user node within t steps.
[0086] For example, based on the t-step graphical probability vector obtained in step 16 The original label probability vector P is updated, and the new label probability vector P is obtained. f for:
[0087]
[0088] Where w is a hyperparameter, its size can be adjusted according to actual conditions. In the above formula, the label probability vector P expresses the fraud probability predicted based on sample features; the t-step graph probability vector... It expresses the fraud probability based on the complex relationships in the user social graph network G.
[0089] Step 18: Obtain the fraud risk probability of the target user based on the new label probability vector and the fraud risk identification model.
[0090] Specifically, through the label probability vector P and the t-step graph probability vector... The fusion of two different types of fraud probabilities can further improve the accuracy of the anti-fraud model and obtain more accurate fraud risk identification results.
[0091] Optionally, the step of semi-supervised training on the preprocessed first and second sample sets to obtain the fraud risk identification model includes:
[0092] Data perturbation is performed on each sample in the first sample set to generate a dataset.
[0093] Perform K data perturbations on each sample in the second sample set to generate a dataset. Where K is a positive integer greater than or equal to 1;
[0094] For the dataset and dataset Perform data augmentation by obfuscation to obtain the augmented dataset. and dataset
[0095] For the augmented dataset and dataset The fraud risk identification model is obtained by performing semi-supervised training.
[0096] Specifically, the semi-supervised training improved MixMatch model mentioned above is an improvement. The original MixMatch method is only applicable to the field of image recognition and cannot be directly used in the field of fraud detection. In this solution, the part of MixMatch used for image data augmentation is replaced with 0.2 times Gaussian noise perturbation. At the same time, the classifier is pre-trained with a labeled first sample set X before data perturbation. The improved MixMatch is more suitable for anti-fraud scenarios.
[0097] refer to Figure 2The training process for the fraud risk identification model provided in this application embodiment is as follows:
[0098] Step 21: Pre-train the fraud detection model
[0099] A fraud detection model f is pre-trained based on a labeled first sample set X. model The model outputs the fraud probability.
[0100] Step 22: Perturbation of labeled sample data
[0101] Data perturbation is performed on each sample in the labeled sample set X to generate a new sample set. Specifically:
[0102]
[0103] Parameter description:
[0104] x i User i represents the i-th sample in the labeled sample set, and each sample corresponds to various attribute features of the user;
[0105] p i : The probability of fraud for the i-th sample in the labeled sample set.
[0106] Step 23: Perturbation of unlabeled sample data
[0107] Perform K data perturbations on each sample in the unlabeled second sample set U to generate a new sample set. Specifically:
[0108]
[0109] Parameter description:
[0110] u i : Represents the i-th sample in the unlabeled sample set;
[0111] q i : Represents the fraud probability output by the model, more specifically the fraud probability of the i-th sample in the unlabeled sample set;
[0112] k (lowercase): indicates the k-th perturbation, k∈(1,……K).
[0113] Step 24: Obfuscate data to enhance image data perturbation
[0114] For dataset and dataset Perform MixUp data augmentation to obtain a new dataset, specifically:
[0115]
[0116] Parameter description:
[0117] W: W is a new dataset composed of the labeled sample set and the unlabeled sample set after shuffling their order;
[0118] Wi: Wi is the i-th sample in W;
[0119] (lower case): It is a sample set The samples in.
[0120] Step 25: Define the loss function
[0121] Based on the obtained dataset and We define the following loss function
[0122]
[0123]
[0124]
[0125] The sharpen function is calculated as follows:
[0126]
[0127] H(*) is the cross-entropy loss function. This is the final loss function.
[0128] Lx: Lx is the loss function for labeled samples;
[0129] Lu: Lu is the loss function for unlabeled samples;
[0130] k: represents the kth perturbation, k∈(1,……K);
[0131] T: T is a hyperparameter, an argument of the Sharpen function, and has a default value;
[0132] θ: These are the weight parameters to be trained in machine learning;
[0133] q i : Represents the fraud probability output by the model, more specifically the fraud probability of the i-th sample in the unlabeled sample set.
[0134] Step 26: Train the classifier model based on the loss function
[0135] According to the loss function defined in step 25 The fraud detection model f is trained using the stochastic gradient descent algorithm. model .
[0136] Specifically, based on the dataset and dataset Determine the loss function
[0137] According to the loss function The fraud detection model F is trained using the stochastic gradient descent algorithm.
[0138] Specifically, the Tag Probability Aggregation (TPA) algorithm designed in this scheme can aggregate the risk probabilities of neighboring nodes around the target node, as shown in the reference. Figure 3 The polymerization process includes the following steps:
[0139] Step 31, calculate the label probability vector:
[0140] Using the previously trained fraud detection model f model Predicting for all users yields a tag probability vector P = (p1, p2, ..., p...). i ,…,p n ), where p i =f model (x i ;θ) represents the fraud probability of the i-th user predicted by the model, n represents the total number of users, and θ represents the weight parameters to be trained in the machine learning model.
[0141] Step 32, calculate the expected transition matrix for step t:
[0142] Optionally, obtaining the t-step graph probability vector based on the label probability aggregation algorithm includes calculating the t-step transition matrix:
[0143] Calculate the degree matrix based on the user's social graph network;
[0144] Calculate the transition probability matrix P for steps 1 to t respectively. t ;
[0145] According to the transition probability matrix P t Further calculate the transition expectation matrix Q t
[0146]
[0147] Among them, E ij Let t be the expected number of visits from user node i to user node j within t steps. The larger the expected number of visits, the closer the relationship between user i and user j. n represents the total number of users.
[0148] The transition expectation matrix Qt Each element value in the array represents the expected value of reaching another user node within t steps, starting from a certain user node.
[0149] Specifically, the steps to calculate the expected transition matrix at step t are as follows:
[0150] 1) First, calculate the degree matrix D based on the user social graph network G constructed in step 1, as follows:
[0151] in, s n,j Let be the (n,j)th element in the adjacency matrix S.
[0152] Specifically, the degree matrix is a diagonal matrix, and the degree of each user node represents the number of edges associated with that node.
[0153] 2) Calculate the transition probability matrices for steps 1 to t respectively:
[0154] Let P t Let G be the transition probability matrix at step t in the graph network G. Its calculation formula is as follows:
[0155] P t =[(D) -1 S] t
[0156] 3) Calculate the expected transition matrix based on the obtained transition probability matrix:
[0157] The specific formula for calculating the t-step transition expectation matrix of the user social graph network G is as follows:
[0158]
[0159] Where E ij Let t be the expected number of visits from node i to node j within t steps. Obviously, the larger the expected number of visits, the closer the relationship between user i and user j.
[0160] Step 33, calculate the graph probability vector at step t:
[0161] Optionally, the step of obtaining the t-step graph probability vector based on the label probability aggregation algorithm further includes obtaining the fraud probability of neighboring user nodes:
[0162] According to the transition expectation matrix Q t Obtain the expected values of reaching other user nodes within t steps from the target user node and sort them.
[0163] Based on the sorting results, select the m user nodes with the largest expected values within t steps of the target user node as the neighboring nodes of the target user node;
[0164] Obtain the set P of fraud risk probabilities for each of the m user nodes. πj :
[0165]
[0166] set P πj This represents the probability of fraud among the m users most closely related to the j-th user. This represents the sequence number of the user node, where the sequence number is... The user node is the node with the largest expected value that starts from node j within step t.
[0167] Specifically, for the t-step transition expectation matrix Q of the user social graph network G... t Transition expectation matrix Q t Each element value in the array represents the expected value of reaching another node within t steps, starting from a given node. If the node's index is represented by the index, then the index is... The node is the c-th node (within t steps) that starts from node j and has the largest expected value. For example, node... Let node j be the node with the third largest expected value originating from node j. For example, nodes a, b, and c have expected values Ea, Eb, and Ec respectively, where Eb > Ec > Ea. Then, at this point, node j... This refers to node c.
[0168] Specifically, further:
[0169]
[0170] This means that, based on the order of the expected values, the first m nodes are selected as neighboring nodes. Then, the m neighboring nodes of the j-th node are:
[0171]
[0172] set v πj The actual meaning is: the m users who are most closely related to the j-th user.
[0173] Optionally, the step of obtaining the t-step graph probability vector based on the label probability aggregation algorithm further includes obtaining the t-step transition expectation vector corresponding to adjacent user nodes:
[0174] The expected value of the t-step transition for the m user nodes is:
[0175]
[0176] The expected values of the t-step transitions of the m user nodes are normalized to obtain a set of vectors representing the expected values of the t-step transitions of the m user nodes.
[0177]
[0178] And there is,
[0179] The set The higher the probability value of an element, the closer the relationship between the actual user node corresponding to that element and user node j.
[0180] Specifically, in real-world scenarios, sets The higher the probability value of an element, the closer the actual user corresponding to that element is to user j.
[0181] Optionally, the label probability aggregation algorithm is used to obtain the t-step graph probability vector. Also includes:
[0182] The normalized t-step transition expectation vector of the m user nodes is multiplied by the fraud risk probability vector of the m nodes to obtain the aggregated fraud risk probability p of the j-th node. j (t):
[0183]
[0184] Where, p j (t) represents the t-step graph probability value of the j-th node in the graph network G, and represents the aggregation probability value of the m neighboring nodes that are closest to the j-th user.
[0185] Iterate through all user nodes, calculate the t-step graph probability value for each user node, and finally obtain the t-step graph probability vector.
[0186] The above steps complete the calculation of the probability vector for the t-step graph.
[0187] Optionally, obtaining a new label probability vector based on the t-step graph probability vector and the label probability vector includes:
[0188] Based on the t-step graph probability vector The label probability vector P is updated to obtain the new label probability vector P. f
[0189]
[0190] Where t and w are both hyperparameters.
[0191] Specifically, t and w are hyperparameters that can be adjusted according to actual usage.
[0192] refer to Figure 4 This diagram illustrates the principle of the Tag Probability Aggregation (TPA) algorithm designed in this scheme. As shown, when identifying the fraud risk of a target node, target node A initially has a high-risk tag probability. However, since the three nodes connected to A are all low-risk, after tag probability aggregation, A's tag probability changes from high-risk to medium-risk. Similarly, target node B initially has a low-risk tag probability, but because the four nodes connected to B are all high-risk, B's tag probability becomes medium-risk after aggregation.
[0193] In summary, the fraud risk identification method provided by the embodiments of the present invention has the following technical effects:
[0194] 1) A tag probability aggregation algorithm (TPA) based on user social graph is designed. This algorithm can update the predicted probability of each node based on the edge weight information on the user social graph. Based on the calculation of multi-step transition expectation, it can integrate deeper relationship information in the graph into the predicted probability. Compared with existing graph clustering methods, it can more accurately screen out fraudulent users.
[0195] 2) The process for image data augmentation in MixMatch has been improved. In addition, the classifier is pre-trained with labeled samples before data perturbation. The improved MixMatch is more suitable for anti-fraud scenarios.
[0196] 3) MixMatch does not use semi-supervised learning technology based on user social graphs, and therefore cannot learn the relationship information in user social graphs. However, the semi-supervised learning technology in the fraud risk identification method provided in this embodiment of the invention seamlessly combines the designed TPA algorithm with the improved MixMatch algorithm. Compared with the existing MixMatch algorithm and various single technical solutions, this fusion solution can simultaneously utilize the sample's own attribute information and the relationship information between samples for semi-supervised learning, further improving the fraud identification rate.
[0197] Please refer to Figure 5 This invention provides a network device 50, comprising:
[0198] The acquisition module 51 is used to acquire data information of the target user and its associated persons, including the target user's mobile phone number, relationship with associated persons, and user behavior data.
[0199] Graph network construction module 52 is used to construct a user social graph network based on the data information. The user social graph network includes a user set with users as nodes, an edge set with relationships between users as edges, and an adjacency matrix representing the relationships between user nodes.
[0200] Preprocessing module 53 is used to extract two batches of samples from the user set, one batch being a labeled first sample set and the other batch being an unlabeled second sample set, and to perform the same data preprocessing on the first sample set and the second sample set.
[0201] The model training module 54 is used to perform semi-supervised training on the preprocessed first and second sample sets to obtain a fraud risk identification model.
[0202] The probability prediction module 55 is used to predict all users in the user social graph network through the fraud risk identification model to obtain a label probability vector.
[0203] The probability prediction module 55 is further configured to obtain a t-step graph probability vector based on the label probability vector and a label probability aggregation algorithm.
[0204] The probability prediction module 55 is further configured to obtain a new label probability vector based on the t-step graph probability vector and the label probability vector; wherein, the t-step graph probability vector of the target user node represents the vector of aggregated probability values of the nearest neighbor nodes from the target user node within t steps.
[0205] The probability prediction module 55 is also used to obtain the fraud risk probability of the target user based on the new label probability vector and the fraud risk identification model.
[0206] Optionally, the model training module 54 is further used to perform semi-supervised training on the preprocessed first and second sample sets to obtain a fraud risk identification model, including:
[0207] Data perturbation is performed on each sample in the first sample set to generate a dataset.
[0208] Perform K data perturbations on each sample in the second sample set to generate a dataset. Where K is a positive integer greater than or equal to 1;
[0209] For the dataset and dataset Perform data augmentation by obfuscation to obtain the augmented dataset. and dataset
[0210] For the augmented dataset and dataset The fraud risk identification model is obtained by performing semi-supervised training.
[0211] Optionally, the probability prediction module 55 is further configured to:
[0212] Calculate the degree matrix based on the user's social graph network;
[0213] Calculate the transition probability matrix P for steps 1 to t respectively. t ;
[0214] According to the transition probability matrix P t Further calculate the transition expectation matrix Q t
[0215]
[0216] Among them, E ij Let t be the expected number of visits from user node i to user node j within t steps. The larger the expected number of visits, the closer the relationship between user i and user j. n represents the total number of users.
[0217] The transition expectation matrix Q t Each element value in the array represents the expected value of reaching another user node within t steps, starting from a certain user node.
[0218] Optionally, the probability prediction module is also used to obtain the fraud probability of neighboring user nodes:
[0219] According to the transition expectation matrix Q t Obtain the expected values of reaching other user nodes within t steps from the target user node and sort them.
[0220] Based on the sorting results, select the m user nodes with the largest expected values within t steps of the target user node as the neighboring nodes of the target user node;
[0221] Obtain the set P of fraud risk probabilities for each of the m user nodes. πj :
[0222]
[0223] set P πj This represents the probability of fraud among the m users most closely related to the j-th user. This represents the sequence number of the user node, where the sequence number is... The user node is the node with the largest expected value that starts from node j within step t.
[0224] Optionally, the probability prediction module 55 is further configured to obtain the expected value vector of t-step transitions corresponding to adjacent user nodes:
[0225] The expected value of the t-step transition for the m user nodes is:
[0226]
[0227] The expected values of the t-step transitions of the m user nodes are normalized to obtain a set of vectors representing the expected values of the t-step transitions of the m user nodes.
[0228]
[0229] And there is,
[0230] The set The higher the probability value of an element, the closer the relationship between the actual user node corresponding to that element and user node j.
[0231] Optionally, the probability prediction module 55 is further configured to:
[0232] The normalized t-step transition expectation vector of the m user nodes is multiplied by the fraud risk probability vector of the m nodes to obtain the aggregated fraud risk probability p of the j-th node. j (t):
[0233]
[0234] Where, p j (t) represents the t-step graph probability value of the j-th node in the graph network G, and represents the aggregation probability value of the m neighboring nodes that are closest to the j-th user.
[0235] Iterate through all user nodes, calculate the t-step graph probability value for each user node, and finally obtain the t-step graph probability vector.
[0236] Optionally, the probability prediction module 55 is further configured to:
[0237] Based on the t-step graph probability vector The label probability vector P is updated to obtain the new label probability vector P. f
[0238]
[0239] Where t and w are both hyperparameters.
[0240] The various modules of the network device described above can achieve all the technical effects of the fraud risk identification method provided in the embodiments of the present invention, which will not be elaborated here.
[0241] Please refer to Figure 6The present invention also provides a network device 60, including a processor 61, a memory 62, and a computer program stored in the memory 62 and executable on the processor 61. When the computer program is executed by the processor 61, it implements the various processes of the above-described fraud risk identification method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0242] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the above-described fraud risk identification method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0243] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0244] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0245] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.
Claims
1. A method for identifying fraud risk, characterized in that, The method includes: Acquire data information of the target user and their associated persons, including the target user's mobile phone number, their relationship with the associated persons, and user behavior data; A user social graph network is constructed based on the data information. The user social graph network includes a set of users with users as nodes, a set of edges with relationships between users as edges, and an adjacency matrix representing the relationships between user nodes. Two batches of samples are drawn from the user set: a labeled first sample set and an unlabeled second sample set. The same data preprocessing is performed on the first and second sample sets. Semi-supervised training was performed on the preprocessed first and second sample sets to obtain a fraud risk identification model. The fraud risk identification model is used to predict the probability vectors of all users in the user social graph network. Based on the label probability vector, a label probability aggregation algorithm is used to obtain... Step graph probability vector; Based on the t-step graph probability vector and the label probability vector, a new label probability vector is obtained; Based on the new label probability vector and the fraud risk identification model, the fraud risk probability of the target user is obtained; Wherein, the t-step graph probability vector of the target user node represents the vector of aggregated probability values of the nearest neighbor nodes from the target user node within t steps; The step of semi-supervised training on the preprocessed first and second sample sets to obtain the fraud risk identification model includes: Data perturbation is performed on each sample in the first sample set to generate a dataset. ; Perform each sample in the second sample set on a separate basis. Secondary data perturbation to generate dataset , where K is a positive integer greater than or equal to 1; For the dataset and dataset Perform data augmentation by obfuscation to obtain the augmented dataset. 'and dataset '; For the augmented dataset 'and dataset The fraud risk identification model is obtained by performing semi-supervised training. The label probability aggregation algorithm obtained The step-by-step probability vector includes the calculation of the t-step transition matrix: Calculate the degree matrix based on the user's social graph network; Calculate the transition probability matrices for steps 1 to t respectively. ; According to the transition probability matrix Further calculate the transition expectation matrix ; ; in, for Within steps, by User node departs to The expected number of visits to a user node; the larger the expected number of visits, the higher the number of visits. User and The closer the relationship between users, the more n represents the total number of users; The transition expectation matrix Each element value in the array represents a starting point from a specific user node. The expected value of reaching another user node within one step; The label probability aggregation algorithm obtained The step-by-step probability vector also includes the fraud probability of neighboring user nodes: According to the transition expectation matrix Obtain the expected values of reaching other user nodes within t steps from the target user node and sort them. Based on the sorting results, select the m user nodes with the largest expected values within t steps of the target user node as the neighboring nodes of the target user node; Obtain the set of fraud risk probabilities for each of the m user nodes. : ; gather Indicates the relationship with the first The closest user relationship The probability of fraud per user This represents the sequence number of the user node, where the sequence number is... The user node is in Step by The expected value starting from the node Large nodes; The label probability aggregation algorithm obtained The step-by-step probability vector also includes the expected value vector of t-step transitions for adjacent user nodes: The expected value of the t-step transition for the m user nodes is: ; The expected values of the t-step transitions of the m user nodes are normalized to obtain a set of vectors representing the expected values of the t-step transitions of the m user nodes. : ; And there is, ; The set The higher the probability value of an element, the closer the actual user node and user node corresponding to that element are. The closer the relationship; The label probability aggregation algorithm obtained The step graph probability vector also includes: The normalized version The expected value vector of the user node's t-step transition is multiplied by the fraud risk probability vectors of the m nodes to obtain the first... Fraud risk probability after aggregating individual nodes : ; in, For graph networks The Middle Each node The probability value of the step diagram represents the probability of the step with respect to the first step. The aggregation probability value of the m nearest neighboring nodes of a user relationship; Iterate through all user nodes and calculate the sum of all user nodes. The probability values of the step diagram are finally obtained. Step-by-step probability vector , .
2. The fraud risk identification method according to claim 1, characterized in that, The process of obtaining a new label probability vector based on the t-step graph probability vector and the label probability vector includes: According to the above Step-by-step probability vector The label probability vector P is updated to obtain the new label probability vector. ; ; Where t and w are both hyperparameters.
3. A network device, characterized in that, include: The acquisition module is used to acquire data information of the target user and its associated persons, including the target user's mobile phone number, its relationship with the associated persons, and user behavior data. The graph network construction module is used to construct a user social graph network based on the data information. The user social graph network includes a user set with users as nodes, an edge set with relationships between users as edges, and an adjacency matrix representing the relationships between user nodes. The preprocessing module is used to extract two batches of samples from the user set, one batch being a labeled first sample set and the other batch being an unlabeled second sample set, and to perform the same data preprocessing on the first sample set and the second sample set; The model training module is used to perform semi-supervised training on the preprocessed first and second sample sets to obtain a fraud risk identification model. The probability prediction module is used to predict all users in the user social graph network through the fraud risk identification model to obtain a label probability vector; The probability prediction module is further configured to obtain, based on the label probability vector and a label probability aggregation algorithm, the following: Step graph probability vector; The probability prediction module is further configured to obtain a new label probability vector based on the t-step graph probability vector and the label probability vector; The probability prediction module is also used to obtain the fraud risk probability of the target user based on the new label probability vector and the fraud risk identification model. The step of semi-supervised training on the preprocessed first and second sample sets to obtain the fraud risk identification model includes: Data perturbation is performed on each sample in the first sample set to generate a dataset. ; Perform each sample in the second sample set on a separate basis. Secondary data perturbation to generate dataset , where K is a positive integer greater than or equal to 1; For the dataset and dataset Perform data augmentation by obfuscation to obtain the augmented dataset. 'and dataset '; For the augmented dataset 'and dataset The fraud risk identification model is obtained by performing semi-supervised training. The label probability aggregation algorithm obtained The step-by-step probability vector includes the calculation of the t-step transition matrix: Calculate the degree matrix based on the user's social graph network; Calculate the transition probability matrices for steps 1 to t respectively. ; According to the transition probability matrix Further calculate the transition expectation matrix ; ; in, for Within steps, by User node departs to The expected number of visits to a user node; the larger the expected number of visits, the higher the number of visits. User and The closer the relationship between users, the more n represents the total number of users; The transition expectation matrix Each element value in the array represents a starting point from a specific user node. The expected value of reaching another user node within one step; The label probability aggregation algorithm obtained The step-by-step probability vector also includes the fraud probability of neighboring user nodes: According to the transition expectation matrix Obtain the expected values of reaching other user nodes within t steps from the target user node and sort them. Based on the sorting results, select the m user nodes with the largest expected values within t steps of the target user node as the neighboring nodes of the target user node; Obtain the set of fraud risk probabilities for each of the m user nodes. : ; gather Indicates the relationship with the first The closest user relationship The probability of fraud per user This represents the sequence number of the user node, where the sequence number is... The user node is in Step by The expected value starting from the node Large nodes; The label probability aggregation algorithm obtained The step-by-step probability vector also includes the expected value vector of t-step transitions for adjacent user nodes: The expected value of the t-step transition for the m user nodes is: ; The expected values of the t-step transitions of the m user nodes are normalized to obtain a set of vectors representing the expected values of the t-step transitions of the m user nodes. : ; And there is, ; The set The higher the probability value of an element, the closer the actual user node and user node corresponding to that element are. The closer the relationship; The label probability aggregation algorithm obtained The step graph probability vector also includes: The normalized version The expected value vector of the user node's t-step transition is multiplied by the fraud risk probability vectors of the m nodes to obtain the first... Fraud risk probability after aggregating individual nodes : ; in, For graph networks The Middle Each node The probability value of the step diagram represents the probability of the step with respect to the first step. The aggregation probability value of the m nearest neighboring nodes of a user relationship; Iterate through all user nodes and calculate the sum of all user nodes. The probability values of the step diagram are finally obtained. Step-by-step probability vector , .
4. A network device, characterized in that, include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the fraud risk identification method as described in any one of claims 1 to 2.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the fraud risk identification method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Weak tag social image recognition method based on semi-supervision relation theme model
CN105279517A
Fraud recognition method and fraud recognition device
CN107730262A
