Hierarchical financial behavior feature detection method and system based on double view angles

Through the hierarchical financial behavior feature detection method with a two-perspective perspective, the time-aware TLSTM model and attention mechanism are used to build a transaction sub-graph network, extract timing and financial behavior characteristics, and solve the problem of single perspective in the existing technology and improve fraud Accuracy of account detection.

CN119048220APending Publication Date: 2024-11-29SHANGHAI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411060400.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing fraud detection methods have a single perspective when detecting account transaction characteristics, and fail to effectively capture the complementary information between account nodes, resulting in a low recognition rate of fraudulent accounts.

Method used

Using a hierarchical financial behavior feature detection method based on a two-perspective perspective, a trading sub-graph network is constructed by obtaining historical trading events of the accounts to be detected, and time-series trading features are extracted using the time-aware TLSTM model, and combined with attention mechanism and long attention mechanism. Construct the global transaction characteristics and financial behavior characteristics of the node perspective, and finally input them into the classifier to obtain the probability of fraudulent accounts and transactions.

Benefits of technology

提高了欺诈模式的识别准确性,充分考虑了账户交易信息与金融交易行为的关系,实现了更精确的欺诈账户检测。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048220A_ABST
    Figure CN119048220A_ABST
Patent Text Reader

Abstract

The invention discloses a hierarchical financial behavior feature detection method and system based on double view angles, and relates to the technical field of fraud detection, and the method comprises the steps: constructing a transaction sub-graph network of a to-be-detected account according to a transaction record of the to-be-detected account; performing feature extraction on the transaction sub-graph network by using a TLSTM model with time perception to obtain time sequence transaction features between the node pairs; constructing node perspective global transaction features between the node pairs by using an attention mechanism, and determining financial behavior features of the to-be-detected account by using Attention; in combination with the time sequence transaction characteristics and the financial behavior characteristics, determining transaction characteristics under a transaction perspective; and respectively inputting the financial behavior characteristics and the transaction characteristics in the transaction perspective into a node classifier and a transaction classifier to obtain the probability that the to-be-detected account is a fraudulent account and the probability that the transaction between the accounts is a fraudulent transaction. According to the method, the attention mechanism and the network simplification technology are combined, and the identification accuracy of the fraudulent account is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fraud detection, and in particular to a hierarchical financial behavior feature detection method and system based on dual perspectives. Background Art

[0002] In recent years, how to solve the problem of sparsity and concealment of transaction features of accounts in fraud detection has become one of the biggest problems facing this field. Existing fraud detection methods mainly include three types: 1) rule-based fraud detection methods, 2) shallow machine learning-based fraud detection methods, and 3) graph representation learning-based fraud detection methods. Rule-based fraud detection methods identify fraudulent behavior by obtaining association rules. Fraud detection methods based on shallow machine learning usually detect fraudulent methods by screening and designing appropriate features. Fraud detection methods based on graph representation learning perform fraud detection tasks by modeling nodes in the network through graph representation learning. Among them, rule-based fraud detection methods usually obtain certain association rules by analyzing transaction data sets containing normal and fraudulent transactions, and identify abnormal transaction features in transaction data by combining mathematical statistics methods and domain expert knowledge, thereby detecting fraudulent behavior. Fraud detection methods based on shallow machine learning mine potential transaction patterns in samples and learn hidden patterns of fraudulent behavior to identify fraudulent transactions. The graph-based fraud detection method models the accounts and transactions in the transaction data as a graph structure, and uses the graph structure to reflect the dependencies of nodes in the network and the overall topological structure of the network to identify abnormal patterns and potential fraudulent behaviors.

[0003] However, existing methods only detect transaction features and account node features, but ignore the information complementarity between the two features. This results in a single perspective of the model, which cannot accurately characterize the financial behavior features and transaction features of account nodes, thus affecting the accuracy of fraud account detection. The graph representation learning-based method does not capture the global transaction information between account node pairs on the transaction network, resulting in the model losing local topological structure information of account nodes, which in turn reduces the model's low recognition rate for fraud accounts. Summary of the invention

[0004] The purpose of the present invention is to provide a hierarchical financial behavior feature detection method and system based on dual perspectives, which can achieve more accurate financial fraud user detection.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] In a first aspect, the present invention provides a hierarchical financial behavior feature detection method based on dual perspectives, comprising:

[0007] Obtaining historical transaction events of the account to be detected; the historical transaction events include transaction records between the account to be detected and other accounts;

[0008] Constructing a transaction subgraph network of the account to be detected according to the historical transaction events;

[0009] Based on the time-aware TLSTM model, feature extraction is performed on the transaction subgraph network to obtain time-series transaction features between node pairs; the node pairs include the account node to be detected and one account node in the other accounts;

[0010] According to the time-series transaction features, an attention mechanism is used to construct a node-perspective global transaction feature between the node pairs;

[0011] According to the node perspective global transaction characteristics between each of the node pairs, a multi-head attention mechanism is used to determine the financial behavior characteristics of the account to be detected;

[0012] Determining transaction features from a transaction perspective according to the time-series transaction features between the node pairs and the financial behavior features of the account to be detected;

[0013] The financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective are respectively input into the node classifier and the transaction classifier to obtain the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and an account node in the other accounts is a fraudulent transaction.

[0014] Optionally, the transaction subgraph network includes an account node set, a transaction edge set, and a transaction edge feature matrix.

[0015] Optionally, the time series transaction characteristics between the node pairs are specifically:

[0016] or

[0017]

[0018] in, represents the time series transaction characteristics between the node pair; u represents the account node to be detected, v represents the account node, 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; is the sequence of historical transaction events between nodes u and v in the transaction subgraph network.

[0019] Optionally, the transaction record includes transaction direction, transaction amount and transaction time information;

[0020] Optionally, according to the time-series transaction features, an attention mechanism is used to construct a node-perspective global transaction feature between the node pairs, specifically including:

[0021]

[0022] in, The global transaction characteristics of the account to be detected from the node perspective; <·,·> 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; Represents the result of feature extraction of historical transactions between node pairs; u represents the account to be detected, v represents the account node, n represents the number of transactions, k represents the scaling factor, and j represents the traversal index where the original attention score of each transaction needs to be summed when normalizing the attention score of the i-th transaction.

[0023] Optionally, the financial behavior characteristics of the account to be detected are specifically:

[0024]

[0025] Among them, Φ is the transaction subgraph, is the financial behavior feature extracted by node u in the transaction subgraph Φ, and K represents the number of heads of the multi-head attention mechanism; is the attention score between node u and edge v calculated by the kth attention head on the transaction subgraph Φ, h u and h v represents the characteristics of node u and edge v, is the transpose of the attention parameter vector used by the kth attention head to calculate the attention score on the transaction subgraph Φ, α k is the attention weight matrix of the kth attention head in the transaction subgraph Φ, Refers to the value of the attention weight between u and v in the attention weight matrix corresponding to the kth attention head, h v is the feature of edge v; σ is the activation function, || represents the concatenation operation of the vector, Represents the set of adjacent edges v of node u in the transaction subgraph Φ.

[0026] Optionally, the transaction features from the transaction perspective are specifically:

[0027]

[0028] in, is the transaction characteristics of the account to be tested from the transaction perspective, It is the financial behavior feature extracted by node u in the transaction graph Φ.

[0029] Optionally, the financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective are respectively input into a node classifier and a transaction classifier to obtain the probability that the account node to be detected is a fraudulent account and the probability that a transaction between the account node to be detected and an account node in the other accounts is a fraudulent transaction, specifically including:

[0030] According to the formula and Determining the probability that the account node to be detected is a fraudulent account;

[0031] According to the formula and Determining the probability that a transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction;

[0032] In the formula, Classifier Node is the node classifier, Classifier Trans is the transaction classifier, x is the initial input of the classifier, W1, W2 and b are the trainable parameters of the model, and σ is the Elu activation function; The probability that the transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction; is the probability that the account node to be detected is a fraudulent account; The logical value of whether the account node to be detected belongs to a normal account or an abnormal account; It is the logical value of whether the transaction is a normal transaction or an abnormal transaction.

[0033] In a second aspect, the present invention provides a hierarchical financial behavior feature detection system based on dual perspectives, comprising:

[0034] An acquisition module, used to acquire historical transaction events of the account to be detected; the historical transaction events include transaction records between the account to be detected and other accounts;

[0035] A network construction module, used to construct a transaction subgraph network of the account to be detected based on the historical transaction events;

[0036] A feature extraction module, used to extract features from the transaction subgraph network based on a time-aware TLSTM model to obtain time-series transaction features between node pairs; the node pairs include an account node to be detected and an account node in the other accounts;

[0037] A first feature construction module is used to construct a node perspective global transaction feature between the node pairs using an attention mechanism according to the time series transaction feature;

[0038] A second feature construction module is used to determine the financial behavior characteristics of the account to be detected by using a multi-head attention mechanism based on the node perspective global transaction characteristics between each of the node pairs;

[0039] A third feature construction module is used to determine the transaction features from a transaction perspective according to the time series transaction features between the node pairs and the financial behavior features of the account to be detected;

[0040] The detection module is used to input the financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective into the node classifier and the transaction classifier respectively, to obtain the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and an account node of the other accounts is a fraudulent transaction.

[0041] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0042] The present invention discloses a hierarchical financial behavior feature detection method and system based on dual perspectives, the method comprising: first obtaining the historical transaction events of the account to be detected, and then constructing its transaction subgraph network. The time-series transaction features of the transaction subgraph network are extracted by a TLSTM model based on time perception. The global transaction features from the node perspective between the node pairs are further constructed using the attention mechanism. Then, the financial behavior features of the account to be detected are determined using a multi-head attention mechanism. The time-series transaction features and the financial behavior features are combined to determine the transaction features from the transaction perspective. Finally, the financial behavior features and the transaction features are input into a node classifier and a transaction classifier to obtain the probability of fraudulent accounts and fraudulent transactions. The present invention combines the attention mechanism, network simplification and other technologies to improve the recognition accuracy of fraud patterns, fully consider the relationship between account transaction information and financial transaction behavior, and achieve more accurate fraudulent account detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] 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.

[0044] Figure 1 A schematic diagram of a process flow of a hierarchical financial behavior feature detection method based on dual perspectives provided in the first embodiment of the present invention;

[0045] Figure 2 A schematic diagram of the structure of a hierarchical financial behavior feature detection system based on dual perspectives provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0046] 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.

[0047] The purpose of the present invention is to provide a hierarchical financial behavior feature detection method and system based on dual perspectives, which can achieve more accurate financial fraud user detection.

[0048] 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.

[0049] Embodiment 1

[0050] like Figure 1 As shown, this embodiment provides a hierarchical financial behavior feature detection method based on dual perspectives, including:

[0051] Step 101: Acquire historical transaction events of the account to be detected; the historical transaction events include transaction records between the account to be detected and other accounts.

[0052] Step 102: Construct a transaction subgraph network of the account to be detected based on the historical transaction events.

[0053] Step 103: Based on the time-aware TLSTM model, feature extraction is performed on the transaction subgraph network to obtain time-series transaction features between node pairs; the node pairs include the account node to be detected and an account node in the other accounts.

[0054] Step 104: Based on the time-series transaction features, an attention mechanism is used to construct node-perspective global transaction features between the node pairs.

[0055] Step 105: Based on the node-perspective global transaction features between each of the node pairs, a multi-head attention mechanism is used to determine the financial behavior features of the account to be detected.

[0056] Step 106: Determine transaction features from a transaction perspective based on the time-series transaction features between the node pairs and the financial behavior features of the account to be detected.

[0057] Step 107: Input the financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective into the node classifier and the transaction classifier respectively, and obtain the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction.

[0058] When executing step 101 to step 102, the specific steps may be as follows:

[0059] For the account u to be detected, its historical transaction events are records of past transaction activities (such as transfers, consumption, etc.) between node u and certain accounts. These transaction records include the transaction direction, amount, and time information.

[0060] These historical transaction events can construct a transaction subgraph and construct the transaction subgraph network of the node u to be detected. The transaction subgraph of node u can be expressed as:

[0061] is a set of account nodes, including node u and the account nodes that transact with the node, where v i Represents an account node.

[0062] ε={ε1,…,ε N} is the transaction edge set, where ε i Represents a transaction edge.

[0063] 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.

[0064] When executing step 103, the specific steps may be as follows:

[0065] For the neighbor node v of the node to be detected in the transaction subgraph obtained in step 1, the transaction events between it and the node to be detected u are regarded as a time series, sorted in ascending order by timestamp, and then input into the TLSTM model. It is represented as the result of feature extraction of historical transactions between nodes (u, v) by the time-aware TLSTM model. The formula is as follows: Optionally, the time series transaction features between the node pairs are specifically:

[0066] or

[0067]

[0068] In the formula, represents the time series transaction characteristics between the node pair; u represents the account node to be detected, v represents the account node, 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; is the sequence of historical transaction events between nodes u and v in the transaction subgraph network.

[0069] The calculation formula of TLSTM is as follows:

[0070]

[0071]

[0072] f t =σ(W f x t +U f h t-1 +b f ).

[0073] i t =σ(W i x i +U i h t-1 +b i ).

[0074] o t =σ(W o x t +U o h t-1 +b o ).

[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 ) The obtained Δ tRepresents the interval between two consecutive time steps, which in this embodiment 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 in this embodiment corresponds to the transaction event corresponding to the current time step in the input transaction event sequence

[0078] When executing step 104, the specific steps may be as follows:

[0079] For the time series transaction features between node pairs, since there are multiple time series transaction directed edge features between node pairs, The transaction network needs to be simplified. A self-attention mechanism is used 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:

[0080]

[0081] Among them, <·,·> 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 account to be detected, v represents the account node, n represents the number of transactions, and k is a scaling factor used to adjust Zoom, control The numerical range of , to prevent the gradient from disappearing ( Too small) or gradient explosion ( (appears when ) is too large, j represents the traversal index where the original attention scores of each transaction need to be summed when normalizing the attention score of the i-th transaction. With the attention mechanism, the model can score the importance of different transactions between node pairs, and based on the scoring results, more important transaction features can be found to represent sequence embedding.

[0082] When executing step 105, the specific steps may be as follows:

[0083] Transaction information for neighboring nodes. Each account node usually interacts with multiple node accounts at the same time. After step three, this embodiment can use an undirected edge to represent the global transaction features of the node and a neighboring node. On this basis, in order to obtain rich financial behavior features of node u, it is necessary to merge the interaction behaviors of the node with all other nodes into the representation of the node itself to enrich the features of the node. This embodiment aggregates the transaction feature edges around each node to fuse the topological interaction relationship, and adopts a multi-head attention mechanism to capture suspicious transaction behaviors, and finally generates the financial behavior features of the node. For each node in the input transaction graph, the financial behavior feature module learns the weights of adjacent edges and aggregates adjacent edges to obtain the node representation. This embodiment uses represents the set of adjacent edges v of node u in the transaction subgraph Φ, then the node-edge<u,v> The importance can be expressed as:

[0084]

[0085] in, is the attention score between node u and edge v calculated by the kth attention head on the transaction subgraph Φ, h u and k v represents the characteristics of node u and edge v, is the transpose of the attention parameter vector used by the kth attention head to calculate the attention score on the transaction subgraph Φ, α k is the attention weight matrix of the kth attention head in the transaction subgraph Φ, σ is the activation function, and || represents the concatenation operation of the vector.

[0086] 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:

[0087]

[0088] in, is the financial behavior feature extracted by node u in the transaction subgraph Φ, and K represents the number of heads of the multi-head attention mechanism; Refers to the value of the attention weight between u and v in the attention weight matrix corresponding to the kth attention head, h v is the feature of edge v; σ is the activation function, || represents the concatenation operation of the vector, Represents the set of adjacent edges v of node u in the transaction subgraph Φ.

[0089] When executing step 106, the specific steps may be as follows:

[0090] The transaction perspective construction also goes through step 103 to obtain the transaction coding sequence And use an attention mechanism module that is twinned with step 104 to simplify the transaction network, that is, simplify the multi-directional edges between node pairs into a single undirected edge:

[0091]

[0092] In order to maximize the mutual information between the node and the transaction edge, considering that the financial behavior feature information of the node obtained in step 105 can also help the transaction edge of the node to make a judgment, the final representation of the transaction feature is:

[0093]

[0094] in, is the transaction characteristics of the account to be tested from the transaction perspective, It is the financial behavior feature extracted by node u in the transaction graph Φ.

[0095] When executing step 107, the specific steps may be as follows:

[0096] By obtaining the financial behavior characteristics of the final account node u And the transaction edge characteristics with neighboring nodes After that, the results are input into the corresponding classifiers at the node level and transaction level respectively to obtain the category probability distribution of node samples and transaction samples, so as to predict fraudulent accounts.

[0097] Node Classifier Node and transaction classifier TransThey have the same network architecture, which consists of two linear layers. The architecture representation is as follows:

[0098]

[0099] Classifier(x)=W2(σ(W1(x)+b)).

[0100] Among them, x is the initial input of the classifier, W1, W2 and b are the trainable parameters of the model, and σ is the Elu activation function. The feature dimension is 2, representing Logical values ​​belonging to normal samples and abnormal samples respectively.

[0101] According to the formula and Determine the probability that the account node to be detected is a fraudulent account.

[0102] According to the formula and Determine a probability that a transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction.

[0103] In the formula, Classifier Node is the node classifier, Classifier Trans is the transaction classifier, x is the initial input of the classifier, W1, W2 and b are the trainable parameters of the model, and σ is the Elu activation function; The probability that the transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction; is the probability that the account node to be detected is a fraudulent account; The logical value of whether the account node to be detected belongs to a normal account or an abnormal account; It is the logical value of whether the transaction is a normal transaction or an abnormal transaction.

[0104] Through the obtained probability distribution, it is possible to judge whether the sample node to be detected has fraudulent transactions with other nodes and whether the node is a fraudulent account.

[0105] Among them, in the method comparison experiment of this embodiment, two widely used methods: GCN, GrapgSage, and two advanced methods: PCGNN, TTAGN were selected and applied to the fraud detection task in this embodiment, and their effects were compared with the method proposed in this embodiment. The experimental indicators are average recall rate, average F1 value, and accuracy rate. Macro recall rate refers to the proportion of accounts correctly predicted as the label in each category of labels among all accounts that are actually the label. F1 value refers to the harmonic mean of precision and recall rate. Accuracy rate refers to the proportion of the correct number of all predicted samples in the total samples.

[0106] Table 1 Comparison of accuracy, average recall, and average F1 value of each method in the fraud detection task under the telecommunications fraud scenario

[0107] Accuracy Average recall Average F1 value GCN (2016) 83.7% 50.0% 45.6% GraphSage (2017) 84.9% 63.8% 66.1% PCGNN(2021) 82.8% 73.1% 71.4% TTAGN(2022) 86.8% 78.5% 73.3% The method proposed in this embodiment 90.6% 83.0% 79.5%

[0108] From the above Table 1, Table 1 shows the performance of each algorithm model from the three indicators of accuracy, average recall rate and average F1 value. The comprehensive performance of the method proposed in this embodiment exceeds the current advanced methods and the currently widely used methods in all three aspects. The method proposed in this embodiment enhances the relevance between transaction edges and account nodes by establishing a multi-perspective solution, which makes the transaction information and node information more accurately described; on the other hand, the method proposed in this embodiment learns more relevant information about fraudulent behavior from redundant transaction information through a hierarchical node feature construction method through a multi-layer attention mechanism for fraud detection, thus showing better performance.

[0109] Taking the telecom fraud scenario as a specific application example, an application analysis is conducted on a hierarchical financial behavior feature construction model method based on dual perspectives proposed in this embodiment. In this embodiment, telecom fraud accounts are marked as fraud nodes for fraud detection. The user inputs the transaction data to be detected for detection, which involves the transaction records of telecom fraud users. These telecom fraud users usually have illegal transactions.

[0110] Take the following illegal transaction operation as an example, the fraud account node a requires the victim node b to transfer money to it multiple times within a certain period of time, and then transfers the proceeds to node c through multiple transactions within a certain period of time to perform illegal operations, and node c consumes the money by performing consumption behaviors. This series of behaviors can determine node a as a telecommunications fraud user. Now input the transaction record containing the fraud account node a into the model proposed in this embodiment, and first construct a transaction subgraph for node a.

[0111] After that, a node-level perspective is created, and the time-series transaction sequence features of node a and neighboring nodes are processed through the TLSTM model. At this time, the time-series features of multiple transfers of node b, the transfer of funds of node a, and the illegal operations of node c are extracted, providing an accurate abnormal behavior basis when determining fraud. After that, the financial behavior features of the node are obtained through a double-layer attention mechanism. In the transaction subgraph of node a, there are a large number of capital chain jumps between the central node and the deceived person and node c. The first-layer attention mechanism considers all transaction information between all node pairs in the subgraph to extract global transaction features, focusing on more important illegal operations, and accurately characterizing the illegal operations of multiple indirect transactions into the global transaction features of node a. The second layer uses the undirected edges provided by the first layer to integrate the interactive behaviors of its own node with the surrounding victim nodes b and c into the representation of the node itself to enrich the features of node a. The financial behavior features of node a obtained by the two-layer attention mechanism fully consider the nodes c and victims in the transaction subgraph in the process of telecommunications fraud violations, and can comprehensively characterize the fraud account node a, and classify node a as a fraud account user through the node classifier.

[0112] Finally, a transaction-level perspective is established, and TLSTM and an attention mechanism are used to obtain the transaction subgraph features of node a and each neighboring node. Each global transaction feature is concatenated with the financial behavior features obtained from the node-level perspective to obtain the final representation of the transaction features with the victim node b. The transaction features are input into the transaction classifier, and the transaction between node a and node b can be judged as a fraudulent transaction.

[0113] Embodiment 2

[0114] like Figure 2 As shown, this embodiment provides a hierarchical financial behavior feature detection system based on dual perspectives, including:

[0115] The acquisition module 201 is used to acquire historical transaction events of the account to be detected; the historical transaction events include transaction records between the account to be detected and other accounts.

[0116] The network construction module 202 is used to construct a transaction subgraph network of the account to be detected based on the historical transaction events.

[0117] The feature extraction module 203 is used to extract features from the transaction subgraph network based on the time-aware TLSTM model to obtain time-series transaction features between node pairs; the node pairs include the account node to be detected and an account node in the other accounts.

[0118] The first feature construction module 204 is used to construct a node-perspective global transaction feature between the node pairs by using an attention mechanism according to the time-series transaction feature.

[0119] The second feature construction module 205 is used to determine the financial behavior characteristics of the account to be detected by adopting a multi-head attention mechanism according to the node perspective global transaction characteristics between each of the node pairs.

[0120] The third feature construction module 206 is used to determine the transaction features from a transaction perspective according to the time-series transaction features between the node pairs and the financial behavior features of the account to be detected.

[0121] The detection module 207 is used to input the financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective into the node classifier and the transaction classifier respectively, to obtain the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and an account node in the other accounts is a fraudulent transaction.

[0122] The present invention has the following technical effects:

[0123] The method proposed in the present invention can effectively address the shortcomings of existing fraud detection methods. First, the account history transaction modeling based on time perception models the transaction sequence through TLSTM, which effectively solves the analysis and processing problems of timing information and variable-length historical transaction sequences. Secondly, the node perspective construction based on the double-layer attention mechanism performs hierarchical feature extraction on the transaction information to obtain the final financial behavior characteristics of the node, which solves the problem of difficulty in characterizing the central node using transaction information. Finally, through the construction of a transaction perspective based on information interaction, it is possible to obtain more accurate transaction features on the transaction subgraph, thereby better capturing its financial behavior characteristics through the node's transaction subgraph. This method uses the historical transaction information and topological information of the account node to construct reasonable node financial behavior characteristics, obtain high-quality node representations, and then detect fraudulent accounts in the financial transaction network.

[0124] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0125] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea 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 hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that include: Obtaining historical transaction events of the account to be detected; the historical transaction events include transaction records between the account to be detected and other accounts; Constructing a transaction subgraph network of the account to be detected according to the historical transaction events; Based on the time-aware TLSTM model, feature extraction is performed on the transaction subgraph network to obtain time-series transaction features between node pairs; the node pairs include the account node to be detected and one account node in the other accounts; According to the time-series transaction features, an attention mechanism is used to construct a node-perspective global transaction feature between the node pairs; According to the node perspective global transaction characteristics between each of the node pairs, a multi-head attention mechanism is used to determine the financial behavior characteristics of the account to be detected; Determine the transaction characteristics from a transaction perspective according to the time-series transaction characteristics between the node pairs and the financial behavior characteristics of the account to be detected; The financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective are respectively input into the node classifier and the transaction classifier to obtain the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and an account node in the other accounts is a fraudulent transaction.

2. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that The transaction subgraph network includes an account node set, a transaction edge set, and a transaction edge feature matrix.

3. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that The time series transaction characteristics between the node pairs are specifically: or in, represents the time series transaction characteristics between the node pair; u represents the account node to be detected, v represents the account node, 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; is the sequence of historical transaction events between nodes u and v in the transaction subgraph network.

4. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that The transaction record includes transaction direction, transaction amount and transaction time information.

5. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that According to the time series transaction features, the attention mechanism is used to construct the node perspective global transaction features between the node pairs, specifically including: in, The global transaction characteristics of the account to be detected from the node perspective; <·,·> represents the inner product operation; f 1 (·), f2(·), and f 3 (·) represents the forward propagation network to transform the original input transaction features Map to a new vector representation; Represents the result of feature extraction of historical transactions between node pairs; u represents the account to be detected, v represents the account node, n represents the number of transactions, k represents the scaling factor, and j represents the traversal index where the original attention score of each transaction needs to be summed when normalizing the attention score of the i-th transaction.

6. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that The financial behavior characteristics of the account to be detected are specifically: Among them, Φ is the transaction subgraph, is the financial behavior feature extracted by node u in the transaction subgraph Φ, and K represents the number of heads of the multi-head attention mechanism; is the attention score between node u and edge v calculated by the kth attention head on the transaction subgraph Φ, h u and h v represents the characteristics of node u and edge v, is the transpose of the attention parameter vector used by the kth attention head to calculate the attention score on the transaction subgraph Φ, α k is the attention weight matrix of the kth attention head in the transaction subgraph Φ, Refers to the value of the attention weight between u and v in the attention weight matrix corresponding to the kth attention head, h v is the feature of edge v; σ is the activation function, ∥ represents the concatenation operation of the vector, Represents the set of adjacent edges v of node u in the transaction subgraph Φ.

7. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that The transaction characteristics from the transaction perspective are specifically: in, is the transaction characteristics of the account to be tested from the transaction perspective, It is the financial behavior feature extracted by node u in the transaction graph Φ.

8. According to claim 1, a hierarchical financial behavior feature detection method based on dual perspectives, It is characterized in that The financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective are input into the node classifier and the transaction classifier respectively, and the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction are obtained, specifically including: According to the formula and Determining the probability that the account node to be detected is a fraudulent account; According to the formula and Determining the probability that a transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction; In the formula, Classifier Node is the node classifier, Classifier Trans is the transaction classifier, x is the initial input of the classifier, W 1 , W 2 and b are the trainable parameters of the model, σ is the Elu activation function; The probability that the transaction between the account node to be detected and one of the account nodes in the other accounts is a fraudulent transaction; is the probability that the account node to be detected is a fraudulent account; The logical value of whether the account node to be detected belongs to a normal account or an abnormal account; It is the logical value of whether the transaction is a normal transaction or an abnormal transaction.

9. A hierarchical financial behavior feature detection system based on dual perspectives, It is characterized in that include: An acquisition module, used to acquire historical transaction events of the account to be detected; the historical transaction events include transaction records between the account to be detected and other accounts; A network construction module, used to construct a transaction subgraph network of the account to be detected based on the historical transaction events; A feature extraction module, used to extract features from the transaction subgraph network based on a time-aware TLSTM model to obtain time-series transaction features between node pairs; the node pairs include an account node to be detected and an account node in the other accounts; A first feature construction module is used to construct a node perspective global transaction feature between the node pairs using an attention mechanism according to the time series transaction feature; A second feature construction module is used to determine the financial behavior characteristics of the account to be detected by adopting a multi-head attention mechanism according to the node perspective global transaction characteristics between each of the node pairs; A third feature construction module is used to determine the transaction features from a transaction perspective according to the time-series transaction features between the node pairs and the financial behavior features of the account to be detected; The detection module is used to input the financial behavior characteristics of the account to be detected and the transaction characteristics from the transaction perspective into the node classifier and the transaction classifier respectively, to obtain the probability that the account node to be detected is a fraudulent account and the probability that the transaction between the account node to be detected and an account node in the other accounts is a fraudulent transaction.

Citation Information

Cited By

  • Financial gang fraud tracing method based on space-time fusion graph attention network and dynamic consensus block chain

    CN121561656A