Group recognition method and system based on dynamic graph

Through the group identification method based on dynamic graphs, we can capture abnormal flow patterns in transaction data, identify target objects and groups, solve the shortcomings of static graph methods in dynamic transaction identification, and achieve high-accuracy and timely financial risk control.

CN114675942BActive Publication Date: 2024-09-17ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210291861.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-09-17
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

Existing group identification methods based on static graphs have limited identification capabilities in emergencies and cannot accurately reflect the dynamic change information of transactions, affecting accuracy.

Method used

The group identification method based on dynamic graphs is used to obtain transaction data sets, construct dynamic graphs, use dynamic graph representation algorithms to capture abnormal flow patterns, identify target objects and construct data flow diagrams, and identify target groups based on inflow proportions.

Benefits of technology

It achieves an accuracy rate of more than 90% for group members, has high timeliness and interpretability, enhances the ability to prevent and control illegal financial activities, and improves the timeliness of operational trials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114675942B
    Figure CN114675942B
Patent Text Reader

Abstract

The present disclosure proposes a group identification method and system based on a dynamic graph. The method includes: obtaining a transaction data set within a predetermined time period; constructing a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped into a low-dimensional vector; determining flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capturing transaction data flows with abnormal flow patterns in the dynamic graph based on the flow information of the transaction data; identifying a target object based on the captured transaction data flow; and identifying a target group based on the transaction-related relationship between the target object and other objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of financial risk control, and in particular to a group recognition method and system based on dynamic graphs. Background Art

[0002] The existing group discovery methods and systems are usually based on static graphs, and Louvain and other group discovery algorithms are executed on the constructed static graphs to identify the target group. This solution has achieved certain results, but the ability to identify sudden groups within the system is limited.

[0003] In view of the shortcomings of the static graph-based group recognition method in the prior art, it is desired to provide an improved dynamic graph-based group recognition method. Summary of the invention

[0004] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or critical elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.

[0005] The present disclosure proposes a group identification method based on a dynamic graph, comprising: obtaining a transaction data set within a predetermined time period; constructing a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped into a low-dimensional vector; determining flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capturing a transaction data flow with an abnormal flow pattern in the dynamic graph based on the flow information of the transaction data; identifying a target object based on the captured transaction data flow; and identifying a target group based on the transaction-related relationship between the target object and other objects.

[0006] In one embodiment of the present disclosure, constructing a dynamic graph based on the time period and the transaction data set further includes: obtaining object features and transaction features associated with each object based on the time period and the transaction data set, wherein the object features include historical tags, first-order features, and second-order features of the object, and the transaction features include transaction occurrence time and transaction-related amounts for each transaction performed by the object; and constructing the dynamic graph based on the object features and the transaction features.

[0007] In one embodiment of the present disclosure, a transaction data flow with an abnormal flow pattern includes a transaction data flow that satisfies one or more of the following: the average of transaction-related amounts of all transactions executed by the same object is greater than a first threshold; the interval between transaction occurrence times of adjacent transactions executed by the same object is less than a second threshold; and the flow link of transactions executed by the same object is greater than a preset number of hops.

[0008] In one embodiment of the present disclosure, determining the flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph and capturing the transaction data flow with an abnormal flow pattern in the dynamic graph based on the flow information of the transaction data are achieved by executing a dynamic graph characterization algorithm on the dynamic graph.

[0009] In one embodiment of the present disclosure, the dynamic graph characterization algorithm includes a TGAT algorithm, a GAT algorithm, or a GraphSage algorithm.

[0010] In one embodiment of the present disclosure, identifying a target group based on the transaction-related relationship between the target object and other objects further includes: constructing a data flow graph based on the transaction-related relationship between the target object and other objects, wherein the root node in the data flow graph represents the target object, and non-root nodes represent other objects that have transaction-related relationships with the target object; identifying the target group based on the data inflow ratio of the nodes in the data flow graph.

[0011] In one embodiment of the present disclosure, identifying the target group based on the data inflow ratio of the nodes in the data flow graph further includes: marking the outflow data of the root node in the data flow graph and the inflow data and outflow data of the non-root nodes; calculating the data inflow ratio of all non-root nodes in the data flow graph, wherein the data inflow ratio of each non-root node represents the ratio of the inflow data of the non-root node to the outflow data of the root node; determining the non-root nodes whose data inflow ratio exceeds a preset threshold; and identifying the target object and the object represented by the determined non-root node as the target group.

[0012] The present disclosure also proposes a group recognition system based on a dynamic graph, including: a data acquisition module, which acquires a transaction data set within a predetermined time period; a dynamic graph construction module, which constructs a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped to a low-dimensional vector; an object recognition module, which is configured to: determine flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capture transaction data flows with abnormal flow patterns in the dynamic graph based on the flow information of the transaction data; identify target objects based on the captured transaction data flows; and a group recognition module, which identifies a target group based on the transaction-related relationship between the target object and other objects.

[0013] In one embodiment of the present disclosure, the dynamic graph construction module further: obtains object features and transaction features associated with each object based on the time period and the transaction data set, wherein the object features include the object's historical label, first-order features, and second-order features, and the transaction features include the transaction occurrence time and transaction-related amount of each transaction performed by the object; and constructs the dynamic graph based on the object features and the transaction features.

[0014] In one embodiment of the present disclosure, a transaction data flow with an abnormal flow pattern includes a transaction data flow that satisfies one or more of the following: the average of transaction-related amounts of all transactions executed by the same object is greater than a first threshold; the interval between transaction occurrence times of adjacent transactions executed by the same object is less than a second threshold; and the flow link of transactions executed by the same object is greater than a preset number of hops.

[0015] In one embodiment of the present disclosure, the object recognition module further: determines the flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph by executing a dynamic graph characterization algorithm on the dynamic graph, and captures the transaction data flow with abnormal flow pattern in the dynamic graph based on the flow information of the transaction data.

[0016] In one embodiment of the present disclosure, the dynamic graph characterization algorithm includes a TGAT algorithm, a GAT algorithm, or a GraphSage algorithm.

[0017] In one embodiment of the present disclosure, the group identification module further: constructs a data flow graph based on the transaction-related relationship between the target object and other objects, wherein the root node in the data flow graph represents the target object, and the non-root nodes represent other objects that have transaction-related relationships with the target object; identifies the target group based on the data inflow ratio of the nodes in the data flow graph.

[0018] In one embodiment of the present disclosure, the group identification module further: marks the outflow data of the root node in the data flow graph and the inflow data and outflow data of the non-root nodes; calculates the data inflow ratio of all non-root nodes in the data flow graph, wherein the data inflow ratio of each non-root node represents the ratio of the inflow data of the non-root node to the outflow data of the root node; determines the non-root nodes whose data inflow ratio exceeds a preset threshold; and identifies the target object and the object represented by the determined non-root node as the target group.

[0019] The present disclosure also proposes a computer-readable storage medium storing a computer program, which can be executed by a processor to perform the aforementioned group recognition method based on dynamic graphs.

[0020] The technical solution disclosed in this disclosure constructs a dynamic graph containing time information, identifies the target object by capturing the abnormal flow pattern in the dynamic graph, and identifies the target group based on the transaction-related relationship between the target object and other objects (for example, transaction fund relationship). The accuracy rate of group members obtained by this method is as high as over 90%, and it has high timeliness and explainability. It can enhance the ability to prevent and control illegal financial activities, improve the timeliness of operational review and reporting, and has significant business value. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The features, nature and advantages of the present disclosure will become more apparent when the detailed description set forth below is understood in conjunction with the accompanying drawings. In the accompanying drawings, the same reference numerals are always used for corresponding identification. It should be noted that the drawings described are only schematic and non-limiting. In the accompanying drawings, the sizes of some components may be exaggerated and are not drawn to scale for illustrative purposes.

[0022] Figure 1 A group recognition architecture based on dynamic graphs according to an embodiment of the present disclosure is shown.

[0023] Figure 2 An exemplary flow chart of a group recognition method based on dynamic graphs according to an embodiment of the present disclosure is shown.

[0024] Figure 3 A schematic diagram showing the self-attention mechanism in the TGAT algorithm.

[0025] Figure 4 An exemplary process of identifying a target group based on a transaction-related relationship between a target object and other objects according to an embodiment of the present disclosure is shown.

[0026] Figure 5 A topological structure diagram of identifying a target group based on a transaction correlation relationship between a target object and other objects according to an embodiment of the present disclosure is shown.

[0027] Figure 6 A block diagram of a group recognition system based on dynamic graphs according to an embodiment of the present disclosure is shown.

[0028] Figure 7 A device block diagram of a group recognition system based on dynamic graphs according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical scheme and advantages of the present disclosure clearer, the present disclosure is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. In the following detailed description, many specific details are set forth to provide a thorough understanding of the described exemplary embodiments. However, it is obvious to those skilled in the art that the described embodiments can be practiced without some or all of these specific details. In other exemplary embodiments, well-known structures are not described in detail to avoid unnecessarily obscuring the concepts of the present disclosure. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure. At the same time, in the absence of conflict, the various aspects described in the embodiments can be combined arbitrarily.

[0030] The current group discovery mainly adopts the relationship expansion method: that is, for a certain member, all members related to it are expanded according to funds, intermediary relationships, etc., and the transaction behavior of each member is analyzed one by one to determine whether they are group members. Then the expanded members are expanded again, and so on, until a group of appropriate size is obtained. This group discovery method is highly subjective, requires a lot of manpower for review, and does not have the ability of automatic review.

[0031] Another common method is to generate groups through group discovery algorithms: that is, to construct a graph using the relationship media of all risky customers, and then use LPA and Louvain algorithms to discover groups, and determine whether the group is an illegal financial activity group based on the risk concentration of the generated group. This method is based on the constructed static graph, and does not model the customers before constructing the graph. The resulting group accuracy is low, the trial efficiency is low, and it does not meet the requirements of business scenarios.

[0032] Based on the trial experience given by the prevention and control of illegal financial activities, it is found that most transactions involved in illegal financial activities have the following characteristics: (1) High turnover amount: the average transaction amount of a single customer is large, and the inflow and outflow amounts are close in a relatively short period of time; (2) Fast turnover speed: because funds have time costs, the inflow and outflow time intervals of most illegal financial activity transactions are within 3 hours, and the funds stay in the account for a very short time; (3) Abnormal circulation links: the capital links of illegal financial activity transactions are mostly more than two hops, and are capital interactions between multiple customers. It can be seen that in actual illegal financial activities, transactions often contain time information, and transactions between customers change dynamically over time. Therefore, the group discovery algorithm based on static graphs cannot accurately reflect the dynamic change information of transactions, thereby affecting the accuracy of group discovery. In view of this, the present disclosure proposes a near-line group identification scheme based on dynamic graphs. First, extract the full amount of transaction data on a daily basis and construct a dynamic graph at the transaction level; execute the dynamic graph representation algorithm on the dynamic graph to capture the abnormal flow pattern of funds and identify suspicious accounts at the daily level; construct a fund flow graph based on the identified suspicious accounts and their transactions, and then find the target group. The accuracy of group members obtained by this method is as high as over 90%, and it has high timeliness and explainability. It can strengthen the ability to prevent and control illegal financial activities and improve the timeliness of operational review and reporting, which has great business value.

[0033] Figure 1 A dynamic graph-based group recognition architecture 100 according to an embodiment of the present disclosure is shown.

[0034] like Figure 1 As shown, the dynamic graph-based group recognition architecture 100 of the present disclosure mainly includes three layers: a feature cleaning layer, an object recognition layer, and a group discovery layer.

[0035] In the feature cleaning layer, the transaction data set within a specific time period is extracted (for example, the full transaction data is extracted on a daily basis). The object features and transaction features associated with each object (for example, the customer who performs the transaction) are obtained from the transaction data set through feature cleaning. Object features may include the object's historical label (for example, historical trial label), first-order features, and second-order features. Transaction features may include the transaction occurrence time and transaction-related amount of each transaction performed by the object, for example, the transaction time and transaction amount of each transaction performed by the object.

[0036] The historical label of an object may include the historical review conclusion of the object by the review agency for the prevention and control of illegal financial activities, and the review conclusion can be used as a label for model training.

[0037] At the object recognition layer, a dynamic graph is constructed based on the time period and the transaction data set. For example, the dynamic graph can be constructed based on the object features and transaction features associated with each object to incorporate the time change information of the transaction into the dynamic graph. Subsequently, a dynamic graph characterization algorithm can be executed on the dynamic graph to capture abnormal transaction data flows in the dynamic graph (e.g., transaction data flows with abnormal flow patterns). Based on the abnormal transaction data flows, target objects (e.g., suspicious accounts) can be identified.

[0038] In the group discovery layer, a data flow graph is constructed based on the transaction-related relationships (e.g., transaction relationships) between the target object identified in the object identification layer and other objects. By calculating the data interaction relationship between each node in the graph, the target node (i.e., other objects belonging to the same group as the target object) can be determined. Finally, the target object and the other objects determined can be identified as the target group. The identified target group can be reported to the review agency for illegal financial activity prevention and control for review.

[0039] It should be noted that although the various aspects of the present disclosure are explained in conjunction with the illegal financial activity prevention and control scenario in most of the descriptions, the technology of the present disclosure can be applied to target group identification in various other scenarios. For example, in an e-commerce scenario, the technology of the present disclosure can be used to identify malicious review groups.

[0040] Figure 2 An exemplary flow chart of a group recognition method 200 based on a dynamic graph according to an embodiment of the present disclosure is shown.

[0041] The method 200 starts at step 202. At step 202, a transaction data set within a predetermined time period is obtained.

[0042] For example, in the illegal financial activity prevention and control scenario, transaction data of transactions within a predetermined time period can be obtained. Illegal financial activity group discovery can be divided into "online-nearline-offline" according to the length of the time window. Nearline group discovery only produces groups on the same day. In one embodiment of the present disclosure, in order to identify nearline groups, full transaction data can be obtained on a daily basis.

[0043] In e-commerce scenarios, in order to identify malicious review groups, all transaction review data within a specific time period can be obtained.

[0044] In step 204 , a dynamic graph is constructed based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped into a low-dimensional vector.

[0045] Real graphs (networks) are often in a high-dimensional space. The original high-dimensional space contains redundant information and noise information, which will cause errors and reduce the accuracy in practical applications. Therefore, a graph embedding algorithm is used to reduce the dimension of the original graph data. By reducing the dimension, the errors caused by redundant information can be reduced. In addition, the essential structural features inside the data can also be found through the dimension reduction algorithm.

[0046] In practical implementation, first, a graph in a D-dimensional space (i.e., the original high-dimensional space) is constructed according to the actual problem, and then the nodes in the graph are embedded (mapped) into low-dimensional vectors in a d (d << D)-dimensional vector space. After the node embedding, the representation (low-dimensional vector) of the node in the low-dimensional space retains the topological structure information and node information in the original high-dimensional space. In the embodiments of the present disclosure, the low-dimensional vector includes the graph structure information of the node (e.g., the connection relationship between the node and other nodes) and the feature information of the node and its neighbor nodes, and both the graph structure information and the feature information of the node change over time.

[0047] In an embodiment of the present disclosure, constructing a dynamic graph based on the time period and the transaction data set further includes: obtaining object features and transaction features associated with each object based on the time period and the transaction data set, where the object features include the historical labels, first-order features, and second-order features of the object, and the transaction features include the transaction occurrence time and the transaction-related amount of each transaction executed by the object; constructing a dynamic graph based on the object features and the transaction features. In a preferred embodiment, the object features and the transaction features are obtained through feature cleaning.

[0048] In an embodiment of the present disclosure, each node in the dynamic graph can represent an object, and the object features associated with the object can be included in the attributes of the node. The edges between adjacent nodes in the dynamic graph can represent that there is a transaction-related relationship (e.g., a transaction relationship) between the corresponding objects, and the transaction features associated with the object can be included in the attributes of the edge. Since the transactions executed by the object have the characteristic of changing over time, the nodes in the constructed dynamic graph, the neighbor nodes of each node, and the edges between the nodes are all changing over time. That is to say, at different times, the number of nodes in the dynamic graph, the number of neighbor nodes of each node, and the number of edges in the dynamic graph may be different. Thus, by constructing a dynamic graph based on the object features and the transaction features, the time information of the transactions executed by the object and the transaction-related relationships that change over time between different objects can be well reflected, so as to accurately reflect the transaction data flow that changes over time.

[0049] In step 206,流转信息 related to the flow direction and flow rate of the transaction data in the dynamic graph is determined based on the low-dimensional vectors of each node in the dynamic graph.

[0050] In one embodiment of the present disclosure, the flow information in the illegal financial activity prevention and control scenario may include the objects that execute related transactions (for example, the customers that execute the transactions), the relevant amounts of transaction data (for example, the transaction amount), the flow paths of transaction data in the dynamic graph (for example, the flow paths of transaction funds), the flow speed of transaction data in the dynamic graph (for example, the time interval for the flow of transaction funds between different objects), and the like.

[0051] In one embodiment of the present disclosure, the flow information in the e-commerce scenario may include the object that performs the relevant transaction (for example, the user who evaluates the product), the relevant amount of the transaction data (for example, the price of the evaluated product), the time when the transaction occurs (for example, the time when the user evaluates the product), the level of the transaction data (for example, user A's initial evaluation of the product, user A's secondary evaluation of user B's product evaluation (initial evaluation)), etc.), the flow path of the transaction data in the dynamic graph (for example, the forwarding / sharing of product evaluations and product information between different users), etc.

[0052] In step 208, the transaction data flow with an abnormal flow pattern in the dynamic graph is captured based on the flow information of the transaction data.

[0053] In one embodiment of the present disclosure, a transaction data flow with an abnormal flow pattern includes a transaction data flow that satisfies one or more of the following: the average of transaction-related amounts of all transactions executed by the same object is greater than a first threshold; the interval between transaction occurrence times of adjacent transactions executed by the same object is less than a second threshold; and the flow link of transactions executed by the same object is greater than a preset number of hops.

[0054] As discussed above, most transactions of illegal financial activities have the following characteristics: (1) high amount of money transferred; (2) fast transfer speed; (3) abnormal transfer link. Therefore, when the average transaction amount executed by the same object within a predetermined time period (e.g., within one day) is large (e.g., greater than the first threshold), the amount of money transferred can be considered to be too high. When the time interval between adjacent transactions executed by the same object is small (e.g., less than the second threshold), the money transfer can be considered to be too fast. In addition, when the money link of transactions executed by the same object is greater than the preset number of hops, the money transfer link can be considered to be abnormal. When at least one of the above conditions is met, the transaction data flow can be considered to have an abnormal flow pattern. In this way, abnormal transaction data flows can be accurately captured. In a specific implementation, the first threshold, the second threshold, and the preset number of hops can be set based on experience, set through training or experimental processes, or set through theoretical calculations.

[0055] It should be noted that the above abnormal flow pattern is only exemplary and not restrictive. Different abnormal flow patterns can be defined in different application scenarios. For example, in an e-commerce scenario, if the total number / average number of negative reviews given by the same object within a predetermined time period is large (for example, greater than the first threshold); the time interval between the negative reviews given by the same object for different products is small (for example, less than the second threshold); the similarity of the negative reviews of the same product by different objects is too high (for example, higher than the third threshold); or the number of times the same object shares / forwards the negative reviews of the product is too many, then it can be considered that the evaluation data flow has an abnormal flow pattern.

[0056] In one embodiment of the present disclosure, determining the flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph and capturing the transaction data flow with abnormal flow pattern in the dynamic graph based on the flow information of the transaction data is achieved by executing a dynamic graph characterization algorithm on the dynamic graph.

[0057] In one embodiment of the present disclosure, the dynamic graph characterization algorithm may include a TGAT (Temperal Graph Attention) algorithm, a GAT (Graph Attention Network) algorithm, or a GraphSage (Graph Sample Aggregate) algorithm. The above algorithms are all algorithms for dynamic graphs, which can well characterize the characteristics that change dynamically over time, and thus achieve tasks such as node classification and link prediction. In the present disclosure, node classification can be achieved through the above algorithms to identify abnormal nodes (for example, suspicious accounts) and non-abnormal nodes. Preferably, the TGAT algorithm can be used.

[0058] Specifically, TGAT is an algorithm that can iteratively characterize nodes in a timing graph by combining neighbor node features and corresponding time information. TGAT has developed a set of time encoding functions based on Bochner's theorem that can characterize time difference information. At the same time, combined with the self-attention mechanism in GAT, an iterative rule for node characterization on a timing graph is constructed, reaching SOTA (state-of-the-art) on multiple public data sets. The TGAT algorithm can well model graphs that change over time. By training visible nodes, node classification and link prediction tasks can be well performed. In an embodiment of the present disclosure, the nodes in the dynamic graph can be classified by the TGAT algorithm to divide the nodes in the dynamic graph into abnormal nodes and non-abnormal nodes, where abnormal nodes may include nodes with abnormal transaction data flows. By executing the TGAT algorithm on the dynamic graph, the target object can be accurately found.

[0059] It should be noted that in addition to the TGAT algorithm, other dynamic graph representation algorithms such as the GAT algorithm or the GraphSage algorithm may also be used. In actual implementation, those skilled in the art may use appropriate dynamic graph representation algorithms to capture transaction data flows with abnormal flow patterns according to actual needs.

[0060] At step 210, a target object is identified based on the captured transaction data stream.

[0061] Through the captured transaction data flow with abnormal flow pattern, the target object executing the abnormal transaction can be identified.

[0062] In step 212, the target group is identified based on the transaction-related relationship (e.g., transaction relationship) between the target object and other objects. The detailed process of step 212 will be described in detail. Figure 4 Further explanation in.

[0063] Figure 2 Method 200 constructs a dynamic graph for all transactions every day, identifies the target object based on the dynamic graph algorithm, and identifies the target group based on the transaction-related relationship of the target object. The dynamic graph constructed in this way can accurately depict the time information of the transaction, has high accuracy and strong interpretability, can save manpower in operational review, and is of great significance for improving the efficiency of intelligent review in the prevention and control of illegal financial activities.

[0064] Figure 3 A schematic diagram 300 showing the self-attention mechanism in the TGAT algorithm.

[0065] like Figure 3 As shown in the upper part of For example, the self-attention mechanism can Parallel computing greatly improves Perform feature extraction (i.e. obtain ). The principle of parallel computing combined with the self-attention mechanism is as follows:

[0066] The input sequence is transformed through an embedding layer (optional) Perform preliminary embedding and obtain As the input of the self-attention layer I . Enter I Multiply the matrices separately , we get three matrices Then the attention matrix is ​​obtained by the following formula 1 , and then get the output .

[0067]

[0068] In the TGAT algorithm, a multi-head self-attention mechanism is preferably used. The multi-head self-attention mechanism maps the results of the attention calculation to multiple subspaces, which is equivalent to repeating the above self-attention calculation, but each time it is randomly initialized, so the final result is equivalent to mapping to multiple subspaces.

[0069] Figure 3 The lower part shows the schematic structure of the multi-head self-attention mechanism. As shown in the figure, Q, K, and V are first linearly transformed, and then the self-attention is calculated (for example, scaled dot product attention). Note that the linear transformation and self-attention calculation here are performed h times, which is called multi-head, and the parameters of each linear transformation of Q, K, and V are different. After that, the h times of self-attention results are concatenated (Concat), and the value obtained by linear transformation is used as the result of multi-head self-attention. Specifically, for a specific , you need to use the following formula 2 with multiple groups (for example, h groups) Multiply them together to get multiple groups ; Then the attention matrix is ​​obtained by the following formula 3, and then the output is obtained by formula 4:

[0070]

[0071] Therefore, the multi-head self-attention mechanism greatly improves the speed of feature extraction and can capture relevant information in different subspaces.

[0072] The specific implementation of the TGAT algorithm and the self-attention mechanism is well known in the field of machine learning and will not be repeated here.

[0073] Figure 4 An exemplary process 400 of identifying a target group based on a transaction-related relationship between a target object and other objects according to an embodiment of the present disclosure is shown.

[0074] For clarity, Figure 5 The topology diagram 500 is combined with the explanation Figure 4 .

[0075] exist Figure 4 and Figure 5 In the process, a fund flow diagram is constructed based on the transaction correlation between the target object and other objects, and the target group is found based on the strategy search method.

[0076] Process 400 begins at step 402. At step 402, a data flow graph is constructed based on the transaction-related relationship between the target object and other objects, wherein the root node in the data flow graph represents the target object, and the non-root nodes represent other objects that have transaction-related relationships with the target object. For example, in an illegal financial activity prevention and control scenario, the data flow graph may be a fund flow graph between objects. The root node in the fund flow graph represents the target object, and the non-root nodes in the fund flow graph represent other objects that have transaction relationships with the target object.

[0077] Combination Figure 5 , the root node N0 of the topology diagram 500 represents the target object. Taking the target object as the starting point object, a capital flow diagram is constructed. Figure 5 As shown, the root node (0th layer node) N0 is the starting point object, and the non-root nodes are other objects that have a transaction relationship with the starting point object.

[0078] Specifically, the first layer node N 11 、N 12 and N 13 Has a transaction relationship with the root node N0, the second layer node N 21 、N 22 、N 23 、N 24 With the first layer node N 11 、N 12 and N 13 There are transactional relationships, and so on.

[0079] exist Figure 5 In the example, the arrows between nodes indicate that there is a transaction relationship between the corresponding objects, and the direction of the arrows indicates the flow of funds. For example, funds first flow from the root node N0 to the first-layer node N 11 、N 12 and N 13 After that, the funds are transferred from the first layer node N 11 Flow to the second layer node N 21 、N 22 , from the first layer node N 12 Flow to the second layer node N 23 , from the first layer node N 13 Flow to the second layer node N 24 , and so on, until the funds flow into the fourth (last) layer of nodes, at which point the flow of funds ends.

[0080] It should be noted that although Figure 5 The topological structure shows the nodes of a specific layer and the specific transaction relationship between the nodes of each layer, but it should be understood that Figure 5The topological structure is only exemplary and not restrictive. In a specific implementation, nodes of different layers and different transaction relationships between nodes of each layer can be constructed according to the actual capital flow of the starting point object.

[0081] In step 404, the outflow data of the root node in the data flow graph and the inflow data and outflow data of the non-root node are marked. Taking the illegal financial activity prevention and control scenario as an example, the outflow funds of the root node in the fund flow graph and the inflow funds and outflow funds of the non-root node can be marked.

[0082] exist Figure 5 In the calculation, the flow from the root node N0 to each node in the first layer (N 11 、N 12 and N 13 ). Then, the inflow and outflow of each node in the first, second, and third layers are calculated in turn, as well as the inflow of each node in the fourth (final) layer. The calculated inflow and / or outflow of each node is then marked.

[0083] In step 406, the data inflow ratio of all non-root nodes in the data flow graph is calculated, wherein the data inflow ratio of each non-root node represents the ratio of the inflow data of the non-root node to the outflow data of the root node. In the illegal financial activity prevention and control scenario, the capital inflow ratio of all non-root nodes in the capital flow graph can be calculated, wherein the capital inflow ratio of each non-root node represents the ratio of the inflow capital of the non-root node to the outflow capital of the root node.

[0084] exist Figure 5 In the example, we first calculate the ratio of the inflow of each node in the first layer to the total outflow of the root node N0, and then calculate the ratio of the inflow of each node in the second layer to the total outflow of the root node N0, and so on, until the proportion of capital inflow of all non-root nodes in the graph is calculated.

[0085] For clarity, Figure 5 Different shaded patterns are used to indicate nodes with different capital inflow ratios. Specifically, nodes with horizontal shades (N 46 ) indicates nodes where the capital inflow ratio is between 70% and 100%; nodes with cross-hatched shadows (N 11 、N 12 、N 23 、N 31 、N 32 ) indicates nodes with a capital inflow ratio between 30% and 70%; nodes without shading indicate nodes with a capital inflow ratio between 0% and 30%. It should be noted that Figure 5The range divisions in are only exemplary and non-restrictive. In a specific implementation, different range divisions can be set. For example, in a different embodiment, the capital inflow ratio can be divided into four ranges: 0%-25%, 25%-50%, 50%-75%, and 75%-100%.

[0086] In step 408, non-root nodes whose data inflow ratio exceeds a preset threshold are determined.

[0087] In one embodiment of the present disclosure, a certain threshold value (such as 10%, 20%, 30%, etc.) may be preset. If the data inflow ratio of a non-root node exceeds the threshold value, it is considered that the object represented by the node belongs to the same target group as the starting point object. In a specific implementation, the preset threshold value may be set based on experience, through training or experimental processes, or through theoretical calculations.

[0088] In step 410 , the target object and the objects represented by the determined non-root nodes are identified as a target group.

[0089] exist Figure 5 In the process, non-root nodes and their transactions with a capital inflow ratio greater than a threshold can be retained. The objects represented by these non-root nodes, together with the objects represented by the root nodes, constitute the target group.

[0090] Taking the preset threshold of 30% as an example, Figure 5 The non-root nodes with capital inflow greater than 30% include N 11 、N 12 、N 23 、N 31 、N 32 、N 46 The objects corresponding to these non-root nodes together with the starting point object of the root node N0 constitute the target group.

[0091] After identifying the target group, the target group can be reported to the review agency for illegal financial activity prevention and control for review.

[0092] It should be noted that Figure 4 and Figure 5 The process and topology diagram of identifying the target group based on the transaction correlation between the target object and other objects shown in the figure are exemplary and not restrictive. In actual implementation, in addition to the above-mentioned strategy search method, other types of group discovery algorithms such as Louvain, LPA, etc. can also be used. Those skilled in the art can use different methods to discover the target group / target group based on actual needs. In addition, although Figure 4 and Figure 5The target group discovery process is described in conjunction with the illegal financial activity prevention and control scenario, but a similar process can also be extended to other scenarios, such as e-commerce scenarios.

[0093] Figure 6 A block diagram of a group recognition system 600 based on dynamic graphs according to an embodiment of the present disclosure is shown.

[0094] See also Figure 6 , the system 600 may include a data acquisition module 602, a dynamic graph construction module 604, an object recognition module 606, and a group recognition module 608. Each of these modules may be connected or communicated with each other directly or indirectly on one or more buses 610.

[0095] The data acquisition module 602 may acquire a transaction data set within a predetermined time period.

[0096] In an embodiment of illegal financial activity prevention and control, in order to identify near-line groups, the data acquisition module 602 can acquire all transaction data within a day.

[0097] The dynamic graph construction module 604 may construct a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped to a low-dimensional vector.

[0098] In one embodiment of the present disclosure, the dynamic graph construction module 604 can obtain object features and transaction features associated with each object based on the time period and the transaction data set, wherein the object features include the object's historical label, first-order features, and second-order features, and the transaction features include the transaction occurrence time and transaction-related amount of each transaction performed by the object; and construct the dynamic graph based on the object features and the transaction features.

[0099] The object identification module 606 can determine the flow information related to the flow direction and flow rate of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capture the transaction data flow with abnormal flow pattern in the dynamic graph based on the flow information of the transaction data; and identify the target object based on the captured transaction data flow.

[0100] In one embodiment of the present disclosure, a transaction data flow with an abnormal flow pattern includes a transaction data flow that satisfies one or more of the following: the average of transaction-related amounts of all transactions executed by the same object is greater than a first threshold; the interval between transaction occurrence times of adjacent transactions executed by the same object is less than a second threshold; and the flow link of transactions executed by the same object is greater than a preset number of hops.

[0101] In one embodiment of the present disclosure, the object recognition module 606 further determines the flow information related to the flow direction and flow rate of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph by executing a dynamic graph characterization algorithm on the dynamic graph, and captures the transaction data flow with abnormal flow pattern in the dynamic graph based on the flow information of the transaction data.

[0102] In one embodiment of the present disclosure, the dynamic graph characterization algorithm may include a TGAT algorithm, a GAT algorithm, or a GraphSage algorithm.

[0103] The group identification module 608 may identify a target group based on a transaction-related relationship between the target object and other objects.

[0104] In one embodiment of the present disclosure, the group identification module 608 can further: construct a data flow graph based on the transaction-related relationship between the target object and other objects, wherein the root node in the data flow graph represents the target object, and the non-root node represents other objects that have a transaction-related relationship with the target object; identify the target group based on the data inflow ratio of the nodes in the data flow graph.

[0105] In one embodiment of the present disclosure, the group identification module 608 can further: mark the outflow data of the root node in the data flow graph and the inflow data and outflow data of the non-root nodes; calculate the data inflow ratio of all non-root nodes in the data flow graph, wherein the data inflow ratio of each non-root node represents the ratio of the inflow data of the non-root node to the outflow data of the root node; determine the non-root nodes whose data inflow ratio exceeds a preset threshold; identify the target object and the object represented by the determined non-root node as a target group.

[0106] Although Figure 6 Specific modules of system 600 are shown in the figure, but it should be understood that these modules are exemplary and non-restrictive. In different implementations, one or more of these modules can be combined, split, removed, or additional modules can be added. For example, in some implementations, object identification module 606 and group identification module 608 can be combined into a single module. In some implementations, system 600 can also include additional modules, such as a reporting module (not shown) for reporting the identified target group to the review agency.

[0107] Figure 7 A block diagram of a device 700 including a group recognition system based on a dynamic graph according to an embodiment of the present disclosure is shown.

[0108] The device illustrates a general hardware environment in which the present disclosure may be applied according to its exemplary embodiments.

[0109] Now refer to Figure 7Device 700 is described, which is an exemplary embodiment of a hardware device that can be applied to various aspects of the present disclosure. Device 700 can be any machine configured to perform processing and / or computing, and can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal digital assistant (PDA), a smart phone, or any combination thereof. The above system can be implemented in whole or in part by device 700 or a similar device or system.

[0110] The device 700 may include components that may be connected or in communication with the bus 712 via one or more interfaces. For example, the device 700 may include a bus 712, a processor 702, a memory 704, an input device 708, and an output device 710, among other things.

[0111] The processor 702 may be any type of processor and may include, but is not limited to, a general-purpose processor and / or a special-purpose processor (e.g., a special processing chip), an intelligent hardware device (e.g., a general-purpose processor, a DSP, a CPU, a microcontroller, an ASIC, an FPGA, a programmable logic device, a discrete gate or transistor logic component, a discrete hardware component, or any combination thereof). In some cases, the processor 702 may be configured to operate a memory array using a memory controller. In other cases, a memory controller (not shown) may be integrated into the processor 702. The processor 702 may be responsible for managing the bus and general processing, including executing software stored on the memory. The processor 702 may also be configured to perform various functions described herein related to group recognition based on dynamic graphs. For example, processor 702 may be configured to: obtain a transaction data set within a predetermined time period; construct a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped to a low-dimensional vector; determine flow information related to the flow direction and flow rate of the transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capture a transaction data flow with an abnormal flow pattern in the dynamic graph based on the flow information of the transaction data; identify a target object based on the captured transaction data flow; and identify a target group based on the transaction-related relationship between the target object and other objects.

[0112] The memory 704 may be any storage device that enables data storage. The memory 704 may include, but is not limited to, a disk drive, an optical storage device, a solid-state memory, a floppy disk, a floppy disk, a hard disk, a tape or any other magnetic medium, an optical disk or any other optical medium, a ROM (read-only memory), a RAM (random access memory), a cache memory, and / or any other memory chip or cartridge, and / or any other medium from which a computer can read data, instructions, and / or code. The memory 704 may store computer executable software 706 including computer readable instructions that, when executed, cause the processor to perform various functions described herein related to dynamic graph-based group recognition.

[0113] Input device 708 may be any type of device that can be used to input information.

[0114] Output device 710 may be any type of device for outputting information. In one embodiment, output device 710 may be any type of output device that can display information.

[0115] The detailed description described above in conjunction with the accompanying drawings describes examples and does not represent all examples that can be implemented or fall within the scope of the claims. The terms "example" and "exemplary" when used in this specification mean "used as an example, instance or illustration" and do not mean "better or better than other examples".

[0116] Reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present disclosure. Thus, use of these phrases may refer to more than just one embodiment. Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0117] The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the universal principles defined herein may be applied to other aspects. Therefore, the claims are not intended to be limited to the aspects shown herein, but should be granted the full scope consistent with the claims in language, wherein the singular reference to the elements is not intended to represent "there is and only one", but "one or more", unless otherwise specifically stated. Unless otherwise specifically stated, the term "some" refers to one or more. The elements of the various aspects described throughout this disclosure are all structurally and functionally equivalent schemes currently or hereafter known to those of ordinary skill in the art and are expressly incorporated herein by reference, and are intended to be covered by the claims.

[0118] It should also be noted that these embodiments may be described as a process depicted as a flow chart, flow diagram, structure diagram, or block diagram. Although the flow chart may describe the operations as sequential processes, many of these operations can be performed in parallel or concurrently. In addition, the order of these operations can be rearranged.

[0119] Although various embodiments have been illustrated and described, it should be understood that the embodiments are not limited to the precise configuration and components described above. Various modifications, substitutions and improvements obvious to those skilled in the art may be made in the arrangement, operation and details of the devices disclosed herein without departing from the scope of the claims.

Claims

1. A group recognition method based on dynamic graph, comprising: Get transaction data set within a predetermined time period; constructing a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped into a low-dimensional vector; Determine flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capturing a transaction data flow having an abnormal flow pattern in the dynamic graph based on the flow information of the transaction data; identifying a target object based on the captured transaction data stream; Building a data flow graph based on the transaction-related relationship between the target object and other objects, wherein a root node in the data flow graph represents the target object, and non-root nodes represent other objects that have a transaction-related relationship with the target object; Marking the outflow data of the root node and the inflow data and outflow data of the non-root nodes in the data flow graph; Calculate the data inflow ratio of all non-root nodes in the data flow graph, wherein the data inflow ratio of each non-root node represents the ratio of the inflow data of the non-root node to the outflow data of the root node; Identify non-root nodes whose data inflow ratio exceeds a preset threshold; and The target object and the objects represented by the determined non-root nodes are identified as a target group.

2. The method of claim 1, constructing a dynamic graph based on the time period and the transaction data set further comprises: Obtaining object features and transaction features associated with each object based on the time period and the transaction data set, wherein the object features include a history tag, a first-order feature, and a second-order feature of the object, and the transaction features include a transaction occurrence time and a transaction-related amount of each transaction performed by the object; The dynamic graph is constructed based on the object characteristics and the transaction characteristics.

3. The method according to claim 1, wherein the transaction data flow having an abnormal flow pattern comprises a transaction data flow that satisfies one or more of the following conditions: The average of the transaction-related amounts of all transactions executed by the same object is greater than a first threshold; The interval between transaction occurrence times of adjacent transactions executed by the same object is less than a second threshold; as well as The flow link of the transaction executed by the same object is greater than the preset hop count.

4. The method as claimed in claim 1, determining the flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph and capturing the transaction data flow with abnormal flow pattern in the dynamic graph based on the flow information of the transaction data is achieved by executing a dynamic graph characterization algorithm on the dynamic graph.

5. The method according to claim 4, wherein the dynamic graph characterization algorithm comprises a TGAT algorithm, a GAT algorithm, or a GraphSage algorithm.

6. A group recognition system based on dynamic graph, comprising: A data acquisition module, which acquires transaction data sets within a predetermined time period; A dynamic graph construction module, which constructs a dynamic graph based on the time period and the transaction data set, wherein each node in the dynamic graph is mapped into a low-dimensional vector; An object recognition module configured to: Determine flow information related to the flow direction and flow speed of transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph; capturing a transaction data flow having an abnormal flow pattern in the dynamic graph based on the flow information of the transaction data; identifying a target object based on the captured transaction data stream; as well as A group identification module configured to: Building a data flow graph based on the transaction-related relationship between the target object and other objects, wherein a root node in the data flow graph represents the target object, and non-root nodes represent other objects that have a transaction-related relationship with the target object; Marking the outflow data of the root node and the inflow data and outflow data of the non-root nodes in the data flow graph; Calculate the data inflow ratio of all non-root nodes in the data flow graph, wherein the data inflow ratio of each non-root node represents the ratio of the inflow data of the non-root node to the outflow data of the root node; Identify non-root nodes whose data inflow ratio exceeds a preset threshold; and The target object and the objects represented by the determined non-root nodes are identified as a target group.

7. The system of claim 6, wherein the dynamic graph construction module further comprises: Obtaining object features and transaction features associated with each object based on the time period and the transaction data set, wherein the object features include a history tag, a first-order feature, and a second-order feature of the object, and the transaction features include a transaction occurrence time and a transaction-related amount of each transaction performed by the object; The dynamic graph is constructed based on the object characteristics and the transaction characteristics.

8. The system of claim 6, wherein the transaction data flow having an abnormal flow pattern comprises a transaction data flow that satisfies one or more of the following conditions: The average of the transaction-related amounts of all transactions executed by the same object is greater than a first threshold; The interval between transaction occurrence times of adjacent transactions executed by the same object is less than a second threshold; as well as The flow link of the transaction executed by the same object is greater than the preset hop count.

9. The system as described in claim 6, wherein the object recognition module further: determines the flow information related to the flow direction and flow speed of the transaction data in the dynamic graph based on the low-dimensional vector of each node in the dynamic graph by executing a dynamic graph characterization algorithm on the dynamic graph, and captures the transaction data flow with abnormal flow pattern in the dynamic graph based on the flow information of the transaction data.

10. The system of claim 9, wherein the dynamic graph characterization algorithm comprises a TGAT algorithm, a GAT algorithm, or a GraphSage algorithm.

11. A computer-readable storage medium storing a computer program, wherein the computer program can be executed by a processor to perform the method according to any one of claims 1 to 5.