Multi-layer information fusion-based few-sample fraud detection method and system
Through a multi-layer information fusion method, the transaction network and attention mechanism are used to extract features, and combined with exclusive and domain-related knowledge, the problem of poor robustness of the fraud detection model and feature distribution alignment in the existing technology is solved, and the recall of fraud detection is improved. rate and average recall rate.
Patent Information
- Application Number
- CN202410517343.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology is difficult to effectively utilize a small amount of label information in fraud detection, resulting in a model with poor robustness, and ignores domain-specific knowledge and unique transaction patterns, resulting in negative transfer and feature distribution alignment problems.
A few-sample fraud detection method based on multi-layer information fusion is used to obtain the transaction network of the target account, build an attention mechanism from the node perspective and the transaction perspective, combine the TLSTM model to extract features, and use exclusive knowledge and domain-related knowledge to perform feature fusion. Train a multi-layer perceptron model to predict the probability of fraudulent accounts.
It improves the recall rate and average recall rate of fraud detection, effectively utilizes source domain knowledge, reduces negative transfer, ensures feature distribution alignment, and enhances the robustness of the model.
Smart Images

Figure CN118537009A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of few-sample fraud detection, and in particular to a few-sample fraud detection method and system based on multi-layer information fusion. Background Art
[0002] In recent years, the biggest problem facing fraud detection research is that some specific fraud scenarios are difficult to label, and it is difficult to train a robust model using a small amount of label information in fraud scenarios to construct the target's behavioral characteristics and detect fraudulent accounts in the target network. Summary of the invention
[0003] The purpose of the present invention is to provide a few-sample fraud detection method and system based on multi-layer information fusion, which can effectively use the transaction knowledge learned from the source scene to assist in fraud detection in the target scene with scarce labeled samples.
[0004] To achieve the above object, the present invention provides the following solutions:
[0005] In a first aspect, the present invention provides a few-sample fraud detection method based on multi-layer information fusion, comprising:
[0006] Acquire the transaction network of the target account; the transaction network includes an account node set, transaction edges and transaction edge features, and label information of each of the account nodes and transaction edges; the transaction edge features include transaction direction, transaction amount and transaction time information.
[0007] The transaction network of the target account is input into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account; the few-sample fraud detection model is a detection model based on multi-layer information fusion.
[0008] Optionally, the training process of the few-sample fraud detection model is specifically as follows:
[0009] Obtain the transaction network of sample fraud accounts.
[0010] Based on the transaction network of the sample fraud account, a node-perspective attention mechanism is constructed to obtain the node-perspective global transaction features between each node pair; the node pair includes the sample fraud account and an account in the account node set.
[0011] According to the global transaction features from the node perspective between each of the node pairs, the Attention with a multi-head mechanism is used to determine the transaction features from the node perspective of the sample fraud account; the transaction features from the node perspective are obtained by fusing the global transaction features of neighboring nodes.
[0012] Based on the transaction network of the sample fraud account, an attention mechanism from the transaction perspective is constructed to obtain the global transaction features from the transaction perspective between each node pair.
[0013] According to the global transaction features from the transaction perspective between each of the node pairs, the Attention with a multi-head mechanism is used to determine the transaction features from the transaction perspective of the sample fraud account; the transaction features from the transaction perspective are determined by fusing the global transaction features of neighboring nodes and judging whether the sample fraud account in the node pair has had fraudulent transactions with the accounts in the node pair.
[0014] The transaction characteristics of the sample fraud account are determined based on the transaction characteristics of the sample fraud account from a node perspective and the transaction characteristics from a transaction perspective.
[0015] The transaction features of the sample fraud account are respectively input into a fraud-specific knowledge node feature extractor and a fraud-domain-associated knowledge node feature extractor to obtain the exclusive transaction pattern features and shared domain transaction pattern features of the sample fraud account.
[0016] The exclusive transaction pattern features and the shared domain transaction pattern features of the sample fraud account are integrated to obtain the behavioral features of the sample fraud account; the behavioral features are used to predict the probability that an account is a fraud account.
[0017] Based on the behavioral characteristics of the sample fraud accounts, a first preset model is trained to obtain a trained small-sample fraud detection model.
[0018] Optionally, after obtaining the transaction network of the sample fraud account, it also includes:
[0019] Based on the time-aware TLSTM model, feature extraction is performed on the transaction network of the sample fraud account to obtain the result of feature extraction of historical transactions between node pairs.
[0020] Optionally, the result of feature extraction of historical transactions between the node pairs is specifically:
[0021] or
[0022]
[0023] in, It represents the result of feature extraction of historical transactions between node pairs; u represents sample fraud accounts, v represents account nodes, n represents the number of transactions, Represents the transaction amount of the i-th transaction; Represents the transaction timestamp of the i-th transaction between nodes u and v; Represents the time interval between the current transaction and the last transaction; For trading network.
[0024] Optionally, based on the transaction network of the sample fraud account, an attention mechanism from the node perspective is constructed to obtain global transaction information between the node pairs, specifically including:
[0025] Based on the transaction network of the sample fraudulent account, the transaction edge features between the node pairs are fused into an undirected transaction feature edge to obtain the global transaction information between the node pairs.
[0026] Optionally, based on the transaction network of the sample fraudulent account, the transaction edge features between the node pairs are merged into an undirected transaction feature edge to obtain the global transaction information between the node pairs, specifically including:
[0027] According to the formula Transaction characteristics from a transaction perspective of the sample fraudulent accounts are determined.
[0028] in, Transaction characteristics from the transaction perspective of sample fraud accounts; <·,·> represents the inner product operation; f1(·), f2(·), and f3(·) represent the forward propagation network to transform the original input transaction features Map to a new vector representation; It represents the result of feature extraction of historical transactions between node pairs; u represents the sample fraud account, v represents the account node, and n represents the number of transactions.
[0029] Optionally, the transaction features of the sample fraud account from a transaction perspective are specifically:
[0030]
[0031] in, is the transaction feature representation of the transaction perspective extracted by node u in the transaction graph Φ, and K represents the number of heads of the multi-head attention mechanism; h u and h v represents the characteristics of node u and edge v, α Φ is the attention parameter matrix of the transaction subgraph Φ, σ is the activation function, || represents the concatenation operation of the vector, Represents a node u and its adjacent edge v.
[0032] Optionally, the transaction features of the sample fraud account from a transaction perspective are specifically:
[0033]
[0034] in, The transaction characteristics of the sample fraud account from the transaction perspective, It is the transaction feature representation of the transaction perspective extracted by node u in the transaction graph Φ.
[0035] In a second aspect, the present invention provides a small sample fraud detection system based on multi-layer information fusion, comprising:
[0036] The acquisition module is used to acquire the transaction network of the target account; the transaction network includes an account node set, transaction edges and transaction edge features, and label information of each of the account nodes and transaction edges; the transaction edge features include transaction direction, transaction amount and transaction time information.
[0037] The prediction module is used to input the transaction network of the target account into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account.
[0038] Optionally, also include:
[0039] A training module is used to train the few-sample fraud detection model.
[0040] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0041] The present invention provides a few-sample fraud detection method and system based on multi-layer information fusion, wherein the method includes obtaining the transaction network of the target account; the transaction network includes an account node set, transaction edges and transaction edge features, and label information of each account node and transaction edge; the transaction edge features include transaction direction, transaction amount and transaction time information, and the transaction network of the target account is input into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account. Based on the few-sample fraud detection model, the present invention can perform fraud detection on target scenarios with scarce labeled samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 A flow chart of a small sample fraud detection method based on multi-layer information fusion provided in the first embodiment of the present invention;
[0044] Figure 2 A training flow chart of a small sample fraud detection model provided in the first embodiment of the present invention;
[0045] Figure 3 A training flow chart of a few-sample fraud detection model with multi-layer information fusion provided in the first embodiment of the present invention;
[0046] Figure 4 A structural diagram of a small sample fraud detection system based on multi-layer information fusion provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Existing few-shot fraud detection methods use graph representation learning technology to model nodes in the network to achieve fraud detection tasks. Since the graph data structure can more naturally reflect the dependencies between nodes in the network and the overall topological structure of the network, graph-based fraud detection technology can more effectively learn the characteristics of objects with fraudulent behavior, thereby performing fraud detection. To address the problem of few-shot fraud detection, graph domain adaptive learning applies domain adaptive learning to graph data structures, using knowledge-rich source networks to assist target networks with less labeled data in learning.
[0049] The few-shot fraud detection method based on graph domain adaptive learning mainly consists of two stages. First, a small amount of labeled abnormal data is used to calculate the statistically significant deviation between abnormal nodes and normal nodes on the network to determine whether the node has fraudulent behavior. Second, a cross-network meta-learning algorithm is used to detect fraudulent comments in the target network by transferring the meta-knowledge in the auxiliary network.
[0050] However, previous graph domain adaptation techniques mainly focus on the features carried by the nodes themselves, while in the target network, the attribute information of the nodes themselves may not be able to directly reflect whether there is fraud. In addition, when extracting node features, previous methods usually only represent the nodes of the source domain and the target domain through a shared network. This approach ignores the domain-specific knowledge that may exist in different fraud scenarios, resulting in the loss of some domain-specific transaction patterns in the source and target domains during the encoding process. At the same time, this shared network may also transfer redundant knowledge in the source scene to the target scene, causing the problem of negative transfer. Finally, when migrating features from two domains, previous methods often simply map the source domain features and the target domain features to the same latent space, while ignoring the alignment problem between feature distributions.
[0051] Therefore, the purpose of the present invention is to provide a few-sample fraud detection method and system based on multi-layer information fusion to solve the problem that the target features are sparse and hidden, and it is difficult to effectively use existing knowledge to obtain account behavior features. Among them, a hierarchical behavior feature construction model based on dual perspectives is proposed. On this basis, a few-sample fraud detection model based on multi-layer information fusion is proposed, focusing on the two aspects of sharing information between the source domain and the target domain and fusing feature information from different fields.
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] Embodiment 1
[0054] like Figure 1 As shown, this embodiment provides a few-sample fraud detection method based on multi-layer information fusion, including:
[0055] Step 101: Acquire the transaction network of the target account; the transaction network includes an account node set, transaction edges and transaction edge features, and label information of each of the account nodes and transaction edges; the transaction edge features include transaction direction, transaction amount and transaction time information.
[0056] Step 102 inputs the transaction network of the target account into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account; the few-sample fraud detection model is a detection model based on multi-layer information fusion.
[0057] When executing step 101, the specific steps may be as follows:
[0058] The transaction network of the target account is expressed as: G = {V, ε, X, C}, V = {v1, ...v N} is a set of account nodes, where v i Represents an account node. ε={ε1,...ε N} is the transaction edge set, where ε i represents a transaction edge. X is the transaction edge feature matrix and S represents the dimension of each transaction feature. Each transaction includes the transaction direction, amount and time information. C is the label information of each node and transaction edge. Y corresponds to the label set.
[0059] In some implementations, after executing step 101, the method further includes:
[0060] Based on the time-aware TLSTM model, feature extraction is performed on the transaction network of the sample fraud account to obtain the result of feature extraction of historical transactions between node pairs.
[0061] Specifically, the transaction events between the node pairs are regarded as a time series, sorted in ascending order by timestamp, and then input into the TLSTM model. For the node pair (u, v), It is represented as the result of feature extraction of historical transactions between nodes (u, v) by the time-aware TLSTM model.
[0062] The result of feature extraction of historical transactions between the nodes is specifically:
[0063] or
[0064]
[0065] In the formula, It represents the result of feature extraction of historical transactions between node pairs; u represents sample fraud accounts, v represents account nodes, n represents the number of transactions, Indicates the transaction amount of the i-th transaction, and its direction is between nodes u and v (i.e., how much money u pays v for the transaction). The positive or negative value of indicates the transaction direction of this transaction. If node u transfers the amount to v, then is a positive value, otherwise It is a negative value; Represents the transaction timestamp of the i-th transaction between nodes i and v; Represents the time interval between the current transaction and the last transaction; For trading network.
[0066] The calculation formula of TLSTM is as follows:
[0067]
[0068]
[0069]
[0070]
[0071] f t =σ(W f x t +U f h t-1 +b f ).
[0072] i t =σ(Wi x t +U i h t-1 +b i ).
[0073] o t =σ(W o x t +U o h t-1 +b o ).
[0074]
[0075]
[0076] h t =o t *tanh(C t ).
[0077] in represents the short-term memory component at time step t-1, which is extracted from the cell memory at time step t-1 by a network, {W d ,b d} represents the parameters of the extracted network; is the short-term memory adjusted by time decay weights, which is obtained by converting the short-term memory Multiply by a decay function g(Δ t ) obtained, Δ t Represents the interval between two consecutive time steps, which in the present invention corresponds to the time interval between the current transaction and the previous transaction; Indicates long-term memory; represents the adjusted previous memory; f t represents the forget gate, which determines how much information is forgotten from the cell memory of the previous time step t-1; i t represents the input gate, which determines how much of the new input information enters the cell memory of the current time step t; o t represents the output gate, which determines how much of the cell memory at the current time step t is output to the next time step; represents candidate cell memory; {W f ,U f ,b f}、{W i ,U i ,b i}、{W o ,U o ,b o}、{W c ,U c ,b c} respectively represent the network parameters of the forget gate, input gate, output gate and candidate memory, σ represents the sigmoid activation function, and tanh represents the hyperbolic tangent activation function; C t represents the cell memory of the current time step; h t-1 and h t represents the hidden state of the previous time step and the current time step, and the hidden state h of each time step t The sequence formed is the extracted feature sequence x t Represents the input of the current time step, which corresponds to the transaction event corresponding to the current time step in the input transaction event sequence in the present invention
[0078] Combining the above two points, TLSTM is used to analyze and process the variable-length historical transaction sequences between two nodes, providing a technical basis for obtaining the financial behavior characteristics of account nodes from a node-level perspective and obtaining more accurate transaction characteristics from a transaction-level perspective.
[0079] When executing step 102, the specific steps may be as follows:
[0080] The target account's transaction network (also called the target scenario transaction network) ), source scene transaction network The learning rate ξ and batch size B are input into the trained few-shot fraud detection model to obtain the probability that the target account is a fraudulent account.
[0081] Among them, in some implementations of this embodiment, such as Figure 2 As shown, the training process of the few-sample fraud detection model is specifically as follows:
[0082] Step 201: Obtain the transaction network of a sample fraud account.
[0083] Step 202: Based on the transaction network of the sample fraud account, a node-perspective attention mechanism is constructed to obtain a node-perspective global transaction feature between each node pair; the node pair includes the sample fraud account and an account in the account node set.
[0084] Step 203: Based on the global transaction features from the node perspective between each of the node pairs, the Attention with a multi-head mechanism is used to determine the transaction features from the node perspective of the sample fraud account; the transaction features from the node perspective are obtained by fusing the transaction edge features of neighboring nodes.
[0085] Step 204: Based on the transaction network of the sample fraud account, an attention mechanism of the transaction perspective is constructed to obtain the global transaction features of the transaction perspective between each node pair.
[0086] Step 205: Based on the global transaction features from the transaction perspective between each of the node pairs, the Attention with a multi-head mechanism is used to determine the transaction features from the transaction perspective of the sample fraud account; the transaction features from the transaction perspective are determined by fusing the transaction edge features of neighboring nodes and judging whether the sample fraud account in the node pair has had any fraudulent transactions with the accounts in the node pair.
[0087] Step 206: Determine the transaction characteristics of the sample fraud account based on the transaction characteristics of the sample fraud account from a node perspective and the transaction characteristics from a transaction perspective.
[0088] Step 207: Input the transaction features of the sample fraud account into the fraud-specific knowledge node feature extractor and the fraud-domain-associated knowledge node feature extractor respectively, to obtain the exclusive transaction pattern features and shared domain transaction pattern features of the sample fraud account.
[0089] Step 208: The exclusive transaction pattern features and the shared domain transaction pattern features of the sample fraud account are integrated to obtain the behavioral features of the sample fraud account; the behavioral features are used to predict the probability that the account is a fraud account.
[0090] Step 209: Based on the behavioral characteristics of the sample fraud accounts, a first preset model is trained to obtain a trained small sample fraud detection model.
[0091] Specifically, when executing step 202, the specific steps may be as follows:
[0092] The first level is for historical transaction information between node pairs, because there are multiple time-series transaction directed edge features between node pairs. In order to simplify the transaction network, we first merge multiple time-series transaction directed edge features between node pairs into an undirected transaction feature edge. To represent the global transaction information between node pairs. It directly uses the last transaction information To characterize the global transaction information between nodes, that is In order to prevent the LSTM model from forgetting, the present invention uses a self-attention mechanism to fully consider all transaction information between node pairs to characterize the global transaction characteristics between node pairs, that is, The calculation formula is as follows:
[0093]
[0094]
[0095]
[0096] Where <·,·> represents the inner product operation. f1(·), f2(·), and f3(·) represent the forward propagation network to transform the original input transaction features Mapped to a new vector representation. In fact, f1(·), f2(·), and f3(·) can be designed in many different ways. The present invention uses a simple fully connected layer to reduce the complexity of the model.
[0097] When executing step 203, the specific steps may be as follows:
[0098] Regarding the transaction information of neighboring nodes, each account node usually interacts with multiple node accounts at the same time. Through the attention mechanism from the node perspective, the model can use an undirected edge to represent the global transaction features of a node and a neighboring node. All transaction behaviors are converted into a transaction subgraph feature. On this basis, the present invention aggregates the transaction feature edges around each node to fuse the topological interaction relationship. In addition, the Attention with multi-head mechanism is used to identify the transaction graph structure around the node, highlight the transaction subgraph features that may have fraudulent behavior, capture suspicious transaction behaviors, and finally generate the financial behavior characteristics of the node.
[0099] This embodiment uses Represents node u and its adjacent edges Then the node-edge<u,v> The importance can be expressed as:
[0100]
[0101]
[0102] Among them, h u and h v represents the characteristics of node u and edge v, α Φ is the attention parameter matrix of the transaction subgraph Φ, σ is the activation function, and || represents the concatenation operation of the vector.
[0103] Then, the financial behavior characteristics of node u are obtained by integrating the characteristics of neighbor transaction edges and the corresponding importance levels. The characteristics of node u can be expressed as:
[0104]
[0105] in, It is the transaction feature representation extracted by node u in the transaction graph Φ, and K represents the number of heads of the multi-head attention mechanism.
[0106] When executing steps 204-205, the specific steps may be as follows:
[0107] The task based on the transaction level perspective and the task based on the node level perspective are two interrelated subtasks that share a TLSTM model. The transaction perspective construction method based on information interaction also uses the transaction encoding sequence between node pairs in TLSTM. To maintain the association and compatibility between the two tasks, the transaction-level perspective first simplifies the multi-directional edges between the formula node pairs into a single undirected edge:
[0108]
[0109] The transaction-level perspective requires the fusion of neighbor transaction features. In order to help the financial behavior acquisition module better identify neighbor edges with fraudulent behavior, the transaction-level perspective improves the accuracy of the node-level perspective by judging whether there has been a fraudulent transaction between two nodes. The transaction-level perspective constructs a transaction-level label based on whether there has been a fraudulent transaction between node pairs. The formula is as follows:
[0110]
[0111] When executing step 206, the specific steps may be as follows:
[0112] In order to maximize the interactive information between nodes and transaction edges, and considering that the node information can also help the node's transaction edge to make judgments, the final representation of the transaction feature is:
[0113]
[0114] In the formula, The transaction characteristics of the sample fraud account from the transaction perspective, It is the transaction feature representation of the transaction perspective extracted by node u in the transaction graph Φ.
[0115] When executing step 207, the specific steps may be as follows:
[0116] By calculating the transaction feature model of the node, the node is input into the exclusive knowledge node feature extractor and the domain-related knowledge node feature extractor according to the source scene data. The transaction subgraphs in the graph capture the node’s unique transaction pattern features x spc and its transaction pattern characteristics in the shared domain x shareAmong them, exclusive knowledge refers to the transaction subgraph structure characteristics that are unique to the current fraudulent behavior, and domain-related characteristics refer to the transaction subgraph structure characteristics that are common to all fraudulent behaviors. For example, in a fraudulent behavior scenario, multiple victims will make centralized remittances to the fraudster, and such subgraph structure characteristics are domain-related characteristics; and the small amount of fraud and the large number of transfers are unique to gambling scenarios, and such subgraph structure characteristics are exclusive knowledge.
[0117] By combining x share , x spc These two representations can obtain more complete account behavior features. The simplest way to combine these two representations is average representation and connection representation. However, for different samples, the weights of domain-related shared knowledge and domain-specific knowledge will be different. Therefore, this embodiment combines these two representations through a domain attention mechanism (DomainAttention, DA):
[0118]
[0119] Among them, d∈{Src,Tgt} represents the domain information of x. o Represents the weight coefficients from different domains, obtained by the following formula:
[0120]
[0121]
[0122] Where p∈{Src,Tgt}; f1(·), f2(·), f3(·) are feedforward neural networks. The domain self-attention mechanism can learn the importance of domain-related shared and domain-specific knowledge.
[0123] When executing step 209, the specific steps may be as follows:
[0124] After obtaining the final financial behavior feature x of the account node, the next step is to classify the account node. Since there is a problem of few samples in the target scenario, the source domain and the target domain share the same multi-layer perceptron as a classifier in the present invention. The multi-layer perceptron consists of two linear layers, and its architecture is represented as follows:
[0125]
[0126] MLP(x)=f2(σ(f1(x)))
[0127] Among them, x is the initial input of the classifier, f1 and f2 are fully connected layers, and σ is the activation function. The two dimensions represent the logical values of predicting whether the sample x belongs to a normal sample or an abnormal sample. Therefore, the loss function of the node can be expressed as:
[0128]
[0129]
[0130]
[0131] Where d∈{Src,Tgt}, d represents whether the sample x is a source domain node or a target domain node. Because the number of target domain sample nodes is small, in order to avoid overfitting of the model, the source domain and the target domain share the same multi-layer perceptron and convert the node features into the logical distribution of samples.
[0132] Then the sample-level domain loss is calculated, and the sample-level domain loss is distributed aligned by introducing the posterior estimate of the classifier. First, for a node u, conditional adversarial transfer learning will first establish the node feature x u Joint variables with their categorical predictive information From the following formula:
[0133]
[0134] Where d∈{Src,Tgt} represents the domain label of the sample node, is a multilinear mapping
[97] , where the optimal node feature is obtained by the corresponding domain attention mechanism. And the prediction information of the multi-layer perceptron for the sample node u
[0135] Then, is input into a domain discriminator to distinguish which domain the u node comes from, and is calculated as follows:
[0136]
[0137]
[0138] in, represents the domain features learned by node u in the discriminator, d(k) represents the dimension of the kth layer in the discriminator, and l d is the number of hidden layers in the discriminator. represents the trainable parameters associated with the domain discriminator. Then, the sample-level domain loss domain classification loss is defined as follows using nodes from the source network and nodes from the target network for training:
[0139]
[0140] Where, d i is the sample node u i If d i =1, it means u i From the target domain, if d i =0 means u i From the source domain. Indicates u i Predicted probabilities from the target domain.
[0141] Then, the category-level domain loss is calculated. The category-level domain loss aligns the category distribution between the two domains for domain transfer learning by contrastive learning to measure the intra-class distance and inter-class distance.
[0142] First, this embodiment measures the distance between two classes using the Euclidean distance.
[0143]
[0144] Among them, c1 and c2 represent the category labels, namely fraud class and normal class. Represents the number of samples of class c1 and class c2 in domain o1 and o2 respectively. represents the Euclidean distance between the center-like feature of o1 domain c1 and the center-like feature of o1 domain c1. o1, o2∈{Src,Tgt} and o1 and o2 can represent the same domain. Then, this embodiment represents the category-level domain loss as:
[0145]
[0146] In the above formula, the numerator represents the sum of the distances within a class, and the denominator represents the sum of the distances between classes. The intra-class domain difference is minimized to compress the feature representation of samples within the class, while the inter-class domain difference is maximized to make each other's representation further away from the decision boundary.
[0147] In addition, this embodiment also proposes a small sample fraud detection model based on multi-layer information fusion. The overall process is as follows: Figure 3 As shown in the figure. 1) Construct a time-aware account historical transaction sequence. 2) Construct an attention mechanism from the node perspective for the transaction network in step one. 3) Use the attention mechanism in step two to calculate the transaction feature representation from the node perspective based on the double-layer attention mechanism. 4) Calculate the transaction feature representation from the transaction perspective of the transaction network based on information interaction. 5) Calculate the hierarchical transaction features of the node based on the double perspective. 6) Construct a domain attention mechanism that integrates domain associations and domain-specific knowledge. 7) Predict the existence of fraudulent behavior in the node. 8) Calculate the sample-level domain loss. 9) Calculate the category-level domain loss.
[0148] Embodiment 2
[0149] like Figure 4 As shown, this embodiment provides a small sample fraud detection system based on multi-layer information fusion, including:
[0150] The acquisition module 401 is used to acquire the transaction network of the target account; the transaction network includes an account node set, a transaction edge and a transaction edge feature, and label information of each of the account nodes and the transaction edge; the transaction edge feature includes transaction direction, transaction amount and transaction time information.
[0151] The prediction module 402 is used to input the transaction network of the target account into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account.
[0152] The system also includes:
[0153] A training module is used to train the few-sample fraud detection model.
[0154] Based on the few-sample fraud detection method and system based on multi-layer information fusion provided by the present invention, a specific embodiment is proposed.
[0155] In the comparative experiment of the method of the present invention, CDAN[1], BPS+DANN[2] and AdaGCN[3] were selected to use the hierarchical transaction features based on dual perspectives proposed by the present invention to extract node financial behavior features and perform graph domain adaptive learning. Due to the uneven sample distribution problem of the target domain samples, this experiment uses the recall rate R1 and the average recall rate R of fraudulent samples as evaluation indicators. Among them, the average recall rate is the proportion of accounts correctly predicted to be labeled in each category of labels to all accounts that actually have the label, the larger the better; the recall rate of fraudulent samples is the proportion of the number of correctly predicted fraudulent samples to the total number of fraudulent samples, the larger the better.
[0156] Table 1 Comparative experimental results of fraud detection on violation datasets
[0157]
[0158]
[0159] The method proposed in the present invention has significantly improved the recall rate R1 of fraud samples and the average recall rate R in the violation dataset compared with the baseline model. This is mainly due to two reasons: On the one hand, the present invention learns the shared knowledge of the domain and the exclusive knowledge of the domain through domain-shared and domain-exclusive node feature extractors respectively, avoiding the problem that the traditional method ignores the domain-exclusive knowledge of the model by sharing the same feature extractor based on the source domain and the target domain. On the other hand, the present invention aligns the feature distribution between the two domains by constraining the source domain features and the target domain features at the sample level and the class level through a double-layer domain loss that incorporates category information, so as to effectively transfer the knowledge in the source domain to the target scenario where samples are scarce.
[0160] The present invention takes the task of few-sample fraud detection in violation scenarios as a specific application example, and conducts application analysis on a few-sample fraud detection model based on multi-layer information fusion proposed in the present invention.
[0161] In the fraud detection process of the violation scenario, the fraud behavior is determined through the transaction path. Typical fraud behavior paths include: 1) The violating user directly places an order with the violating merchant, and then the violating merchant transfers the funds to other merchants; 2) Opening a fake account. The violating group uses a fake bank short account as a collection account and requires the buyer to transfer the betting funds to a designated account through online banking or mobile banking. The fake account is then used to further collect and transfer assets in the form of merchant settlement funds; 3) Leased account. The violating group uses a rented third-party payment collection QR code to transfer funds. Normal users lend their collection codes to private payment platforms to collect payments, and then use other accounts unrelated to the collection account to transfer funds to the private payment platform, thereby achieving a jump in the capital chain. The specific path is as follows: Figure 2 If the transaction path of an account shows the following situations: 1) the account transfers money to a merchant that violates the rules; 2) an account makes multiple small remittances to a fake account; 3) multiple accounts make centralized remittances to a rental account and then transfer them to a private platform, it will be judged as illegal fraud.
[0162] In this task, the transaction behaviors of N accounts are collected to construct a violation data set, and training is performed on X samples. After training, the model is tested on Y samples to detect the accuracy of the model in predicting fraudulent samples. The ratio of training set samples to test set samples is 1:9. In the fraud detection experiment, the user enters the account and its transaction records, and the model analyzes the transaction path of the account and classifies the nodes to determine whether fraud occurs.
[0163] Take the following illegal operation as an example. The buyer account node x made multiple small remittances to the fake account y within a certain period of time. Usually, the fake account is a bank short account opened by the illegal group. The assets are then further aggregated through the fake account and transferred to the illegal merchant to transfer the assets. Through this transaction path, the model can determine that the fake account node y has violated the rules.
[0164] The fake account node y and its transaction records are input into the model proposed in the present invention to construct a transaction network. The transaction events between the fake account, the purchaser account and the illegal merchant are regarded as a time series, sorted in ascending order by timestamp, and then input into the TLSTM model. Through TLSTM, the analysis and processing of historical transaction sequences of variable length between the fake account and the purchaser account are realized.
[0165] First, for the historical transaction information of the fake account, multiple transaction record edge features are fused into an undirected transaction record edge to represent the global transaction information between the fake account and a certain buyer account and the illegal merchant. In order to prevent the LSTM model from forgetting, the present invention uses a self-attention mechanism to efficiently utilize historical transaction information. For the buyer node that has transaction information with the fake account, the transaction feature edges around the fake account are aggregated through the node perspective attention mechanism to fuse the topological interaction relationship. In addition, attention with a multi-head mechanism is used to capture suspicious transaction behaviors, and finally generate node-level behavioral features of the fake node.
[0166] Then, the node feature representation from the transaction level perspective is performed. From the transaction level perspective, the transaction features of the fake account node are fused with the buyer node and the illegal merchant node. By judging whether there has been a fraudulent transaction between the two nodes, the accuracy of the fused neighbor information from the transaction level perspective is improved. The node behavior features from the node level and transaction level perspectives are fused to obtain the transaction behavior features of the fake account.
[0167] Finally, after obtaining the transaction features of the fake node, the node is input into the exclusive knowledge node feature extractor and the domain-associated knowledge node feature extractor to capture the node's exclusive transaction pattern features and its transaction pattern features in the shared domain according to the transaction subgraph in the source scenario data, and then graph domain adaptive learning is performed to obtain the final transaction behavior features of the account node. The transaction behavior features are input into the node classifier to classify the account node, and it can be determined that the fake account node y has violated the rules.
[0168] In summary, the present invention has the following beneficial effects:
[0169] 1) The method proposed in this invention aims to effectively learn and master the shared knowledge between the source domain and the target domain, as well as the proprietary knowledge unique to each domain. By utilizing the correlation between these two types of knowledge, this method aims to assist the target domain in fraud detection, thereby alleviating the few-sample problem it faces. In this process, the domain-related node feature extractor is responsible for extracting the shared features of the node in two different scenarios, while the domain-specific node feature extractor focuses on capturing the proprietary features of the node. Then, through a carefully designed domain attention mechanism, these two types of features are successfully fused to obtain the final transaction pattern features of the node.
[0170] 2) This paper also introduces a domain loss function that incorporates category information to further promote knowledge transfer between the two domains. This domain loss function contains two levels: first, starting from the sample level, we calculate the multilinear mapping between node features and node category prediction distributions to ensure full alignment of feature distributions between domains; second, we also use a category-level loss function to achieve effective alignment of distributions between the two domains at the class-center level.
[0171] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0172] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A small sample fraud detection method based on multi-layer information fusion, characterized in that: include: Acquire the transaction network of the target account; the transaction network includes an account node set, transaction edges and transaction edge features, and label information of each of the account nodes and transaction edges; the transaction edge features include transaction direction, transaction amount and transaction time information; The transaction network of the target account is input into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account; the few-sample fraud detection model is a detection model based on multi-layer information fusion.
2. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 1, characterized in that: The training process of the few-sample fraud detection model is as follows: Obtain the transaction network of sample fraud accounts; Based on the transaction network of the sample fraud account, a node-perspective attention mechanism is constructed to obtain a node-perspective global transaction feature between each node pair; the node pair includes the sample fraud account and one account in the account node set; According to the global transaction features from the node perspective between each of the node pairs, using Attention with a multi-head mechanism, the transaction features from the node perspective of the sample fraud account are determined; The transaction features from the node perspective are obtained by fusing the global transaction features of neighboring nodes; Based on the transaction network of the sample fraud account, an attention mechanism of the transaction perspective is constructed to obtain the global transaction features of the transaction perspective between each node pair; According to the global transaction features from the transaction perspective between each of the node pairs, the Attention with a multi-head mechanism is used to determine the transaction features from the transaction perspective of the sample fraud account; the transaction features from the transaction perspective are determined by fusing the global transaction features of neighboring nodes and judging whether the sample fraud account in the node pair has had fraudulent transactions with the accounts in the node pair; Determining the transaction characteristics of the sample fraud account according to the transaction characteristics of the sample fraud account from a node perspective and the transaction characteristics from a transaction perspective; Inputting the transaction features of the sample fraud account into a fraud-specific knowledge node feature extractor and a fraud-domain-associated knowledge node feature extractor respectively, to obtain the exclusive transaction pattern features and the shared domain transaction pattern features of the sample fraud account; The exclusive transaction pattern characteristics of the sample fraud account and the shared domain transaction pattern characteristics are integrated to obtain the behavior characteristics of the sample fraud account; The behavioral characteristics are used to predict the probability that the account is a fraudulent account; Based on the behavioral characteristics of the sample fraud accounts, a first preset model is trained to obtain a trained small-sample fraud detection model.
3. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 1, characterized in that: After obtaining the transaction network of the sample fraud account, it also includes: Based on the time-aware TLSTM model, feature extraction is performed on the transaction network of the sample fraud account to obtain the result of feature extraction of historical transactions between node pairs.
4. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 3, characterized in that: The result of feature extraction of historical transactions between the node pairs is specifically: or in, It represents the result of feature extraction of historical transactions between node pairs; u represents sample fraud accounts, v represents account nodes, n represents the number of transactions, Represents the transaction amount of the i-th transaction; Represents the transaction timestamp of the i-th transaction between nodes u and v; Represents the time interval between the current transaction and the last transaction; For trading network.
5. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 2, characterized in that: Based on the transaction network of the sample fraud account, an attention mechanism from the node perspective is constructed to obtain the global transaction information between the node pairs, specifically including: Based on the transaction network of the sample fraudulent account, the transaction edge features between the node pairs are fused into an undirected transaction feature edge to obtain the global transaction information between the node pairs.
6. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 5, characterized in that: Based on the transaction network of the sample fraud account, the transaction edge features between the node pairs are fused into an undirected transaction feature edge to obtain the global transaction information between the node pairs, specifically including: According to the formula Determining transaction characteristics of the sample fraud account from a transaction perspective; in, Transaction characteristics from the transaction perspective of sample fraud accounts; <·,·> represents the inner product operation; f1(·), f2(·), and f3(·) represent the forward propagation network to transform the original input transaction features Map to a new vector representation; It represents the result of feature extraction of historical transactions between node pairs; u represents the sample fraud account, v represents the account node, and n represents the number of transactions.
7. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 1, characterized in that: The transaction characteristics of the sample fraud account from the transaction perspective are as follows: in, is the transaction feature representation of the transaction perspective extracted by node u in the transaction graph Φ, and K represents the number of heads of the multi-head attention mechanism; h u and h v represents the features of node u and edge v, α Φ is the attention parameter matrix of the transaction subgraph Φ, σ is the activation function, || represents the concatenation operation of the vector, Represents a node u and its adjacent edge v.
8. The method for detecting fraud with a small number of samples based on multi-layer information fusion according to claim 2, characterized in that: The transaction characteristics of the sample fraud account from the transaction perspective are as follows: in, The transaction characteristics of the sample fraud account from the transaction perspective, It is the transaction feature representation of the transaction perspective extracted by node u in the transaction graph Φ.
9. A small sample fraud detection system based on multi-layer information fusion, characterized in that: include: An acquisition module, used to acquire a transaction network of a target account; the transaction network includes an account node set, transaction edges and transaction edge features, and label information of each of the account nodes and transaction edges; the transaction edge features include transaction direction, transaction amount and transaction time information; The prediction module is used to input the transaction network of the target account into the trained few-sample fraud detection model to obtain the probability that the target account is a fraud account.
10. A small sample fraud detection system based on multi-layer information fusion according to claim 9, characterized in that: Also includes: A training module is used to train the few-sample fraud detection model.
Citation Information
Cited By
Financial data identification monitoring system and method based on big data
CN118798913A
Abnormal transaction object detection method and device, equipment, medium and product
CN120317972A
