Suspicious capital return detection method based on concurrent timing loop enumeration

By constructing a transaction timing topology diagram and introducing timestamp constraints, combined with multi-thread parallel technology, the efficiency and accuracy problems of traditional methods in identifying the return of bank transaction funds are solved, and more efficient fund return detection is achieved.

CN118279060BActive Publication Date: 2024-09-27HUAQIAO UNIVERSITY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410674745.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-27
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

When processing large-scale bank transaction records, traditional methods are difficult to quickly identify deeply hidden fraud, and fail to effectively consider the time continuity and amount fluctuation of transaction capital return, resulting in frequent omissions and false positives.

Method used

Adopting a detection method based on concurrent timing loop enumeration, by constructing a transaction timing topology diagram, setting strict rising constraints on timestamps, enumerating timing loops, and using multi-thread parallel technology to simultaneously conduct loop searches on strongly connected components to introduce blocking time mechanism to reduce the search space.

Benefits of technology

It improves the efficiency and accuracy of capital return detection, reduces false positives and omissions, and can effectively support risk control and regulatory needs in financial big data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279060B
    Figure CN118279060B
Patent Text Reader

Abstract

The invention discloses a suspicious fund reflux detection method based on concurrent timing ring enumeration, which relates to the field of financial big data analysis, and includes: S1, constructing a timing graph and its adjacency list structure according to bank transaction records; S2, enumerating all strongly connected components in the constructed timing graph, deleting nodes not included in the strongly connected components in the adjacency list structure, and excluding transaction edges that cannot form a ring; S3, allocating a storage structure for nodes in each strongly connected component, and initializing; S4, creating multiple threads to simultaneously execute a timing ring enumeration algorithm on different strongly connected components; S5, filtering out timing rings that do not meet the limit of the amount fluctuation range by using the constraint conditions related to the transaction amount; and outputting bank transaction flow information with suspicious fund reflux according to the remaining loop information and combining the original bank transaction records. The invention reduces the false alarm rate while improving the detection efficiency and execution performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial big data analysis, and in particular to a suspicious capital reflux detection method based on concurrent timing ring enumeration. Background Art

[0002] In the field of financial big data analysis, suspicious fund repatriation transactions are usually regarded as potential illegal money laundering or cash-out activities. Therefore, banks, financial institutions and regulatory agencies can strengthen financial risk control and enhance regulatory power by extracting suspicious fund repatriation transaction information from a large amount of financial transaction activity data.

[0003] When tracking the flow of funds in traditional relational databases, it is not easy to quickly identify deeply hidden frauds due to the limitations of query depth and query efficiency. The graph data structure uses nodes and edges to represent transaction entities and transaction relationships between entities, which facilitates efficient tracking of the flow of funds for each transaction. The way to build a bank transaction information graph model is to use accounts as nodes in the graph and transactions as directed edges connecting nodes, so that the problem of fund reflux detection can be converted into the problem of enumerating loops in the transaction information graph. Traditional directed loop solving methods usually adopt serial thinking, which has significant data access and computing overhead when processing large-scale bank transaction records, and does not take into account that the reflux of transaction funds in money laundering behavior often has the characteristics of continuous increase in transaction time, small fluctuation in transaction amount, and unpredictable transaction link length, resulting in underreporting and false alarms. Summary of the invention

[0004] In view of the technical problems mentioned above, the purpose of the embodiments of the present application is to propose a suspicious capital reflux detection method based on concurrent timing ring enumeration. Based on the characteristic that capital reflux has a continuously increasing transaction time, when constructing a transaction topology graph, the transaction time is used as the attribute of the edge, and then a transaction timing topology graph is constructed. When enumerating, a strict rising constraint of the timestamp is set, that is, the timing ring is enumerated; then, all strongly connected components in the transaction timing topology graph are enumerated. Since the loop must exist in the strongly connected components, the transaction edges that must not form a loop in the topology graph can be filtered out by calculating the strongly connected components, thereby reducing the search range; finally, a multi-threaded parallel method is used to simultaneously enumerate the timing rings on multiple strongly connected components, making full use of the high concurrency of the underlying multi-core processor. At the same time, a blocking time mechanism is introduced when enumerating the timing ring, making full use of the timestamp attributes on the transaction edges, reducing the loop search space, and improving the detection efficiency, thereby providing effective support for the application of financial big data analysis in risk control and financial supervision.

[0005] The technical solution of the present invention is as follows.

[0006] A suspicious fund return detection method based on concurrent timing ring enumeration, comprising:

[0007] S1, constructs a time sequence graph and its adjacency list structure based on bank transaction records;

[0008] S2, enumerate all strongly connected components in the constructed time sequence graph, delete the nodes that are not included in the strongly connected components in the adjacency list structure, and exclude the transaction edges that cannot form a ring;

[0009] S3, allocates storage structures for nodes in each strongly connected component and initializes them;

[0010] S4, creates multiple threads to simultaneously execute the timing ring enumeration algorithm on different strongly connected components;

[0011] S5, using the constraints related to the transaction amount to filter out the timing loops that do not meet the amount fluctuation range limit; based on the remaining loop information, combined with the original bank transaction records, output the bank transaction flow information with suspicious fund reflux.

[0012] Preferably, the step of constructing a time sequence graph and its adjacency list structure according to bank transaction records specifically includes:

[0013] S11, construct a time sequence graph based on the bank transaction records. Each transaction flow corresponds to a directed edge. The transaction time is used as the timestamp on the directed edge. The fund transfer account is used as the initiating node, and the fund transfer account is used as the receiving node. The time sequence graph G=(V,E) is constructed. V represents the set of nodes. E represents the set of edges between nodes.

[0014] S12, constructing an adjacency list structure of the time sequence graph, taking the fund transfer-out account as the head node, the fund transfer-in account as the child node, and the transaction time as the time information on the child node to construct the adjacency list structure.

[0015] Preferably, the step of enumerating all strongly connected components in the constructed time sequence graph, deleting nodes in the adjacency list structure that are not included in the strongly connected components, and excluding transaction edges that cannot form a ring specifically includes:

[0016] S21, use the directed graph-based Tarjan algorithm to enumerate all strongly connected components in the constructed time series graph, and use the same number to mark the nodes in the same strongly connected component;

[0017] S22, traverse the adjacency list according to the digital label of the node. If the label of the head node and the child node is the same, retain the child node and traverse the next child node; if the label of the head node and the child node is different, delete the child node and traverse the next child node; after all the head nodes are traversed, all transaction edges that cannot form a ring are eliminated.

[0018] Preferably, the step of allocating a storage structure for each node in the strongly connected component and initializing the structure specifically includes:

[0019] S31, for each node in the timing diagram , define the shared data structure: Record the access status of the node. Record the blocking time of the node, Record the nodes that are blocked due to this node blocking and Record a collection of simple timing loops;

[0020] S32, define three local data structures for each thread p: ​​edge stack , Node Stack and unlock the stack ; Among them, the edge stack and node stack They are used to simulate the edge sequence and node sequence accessed by the thread during the depth-first search process, and simulate recursive operations at the same time; unlock the stack Used to simulate recursive operations when recursively unlocking in the future; the initial values ​​of the edge stack, node stack, and unlock stack are all empty.

[0021] Preferably, in S31, the data structure , , and They are defined as follows:

[0022] Data Structure is an array, each node includes unvisited and visited There are two states. The state of each node at initialization is ;

[0023] Data Structure is an array that records the current blocking time of the node. When the node is accessed again, the timestamp on the current transaction edge must be less than the blocking time to continue accessing the node. At the same time, the current blocking time is modified to the timestamp on the current transaction edge. The blocking time of each node during initialization is ;

[0024] Data Structure It is an adjacency list structure, all nodes are head nodes of a column, and the sub-node structure is [a,t] , where a represents the blocked node, t represents the time node a is locked, and when node a is blocked multiple times by the same node, the maximum value is saved;

[0025] Data Structure Is a set that stores the enumerated loop information, including the nodes and edge information on the loop path.

[0026] Preferably, creating multiple threads to execute the timing loop enumeration algorithm on different strongly connected components specifically includes:

[0027] S41, Obtain a node v in the strongly connected component. It is necessary to unlock the v node, and the unlocking time T is ;

[0028] S42, Push the node v onto the node stack ; Obtain the first adjacent edge e in the adjacency list of node v and the node w pointed to by the adjacent edge;

[0029] S43, When all the adjacent edges in the adjacency list of node v have been visited, judge whether the loop information at the top of the edge stack is true. If it is true, perform the unlocking operation in S41, and the unlocking time is the loop time oldtime at the top of the edge stack ;

[0030] S44, Save the current loop information and loop time at the top of the stack to the new top of the stack after popping the top of the edge stack , and at the same time pop the top of the node stack and return to S42 to obtain the next adjacent edge and continue to judge until the node stack is empty and the search ends.

[0031] Preferably, the unlocking operation in S41 is specifically as follows:

[0032] S411, Judge whether the value of is less than T. If so, do not modify the value of ; If not, modify the value of to T;

[0033] S412, Push the node onto the unlocking stack , obtain each adjacent structure in , if t < T holds, then delete [w,t] in ; If not, do not perform the deletion operation; then use w as v and continue the operation in S411; where [w,t] represents the time when node w is locked; ;

[0034] S413, When all the adjacent structures in have been visited, pop the unlocking stack The top element of the stack, backtracks to the previous node, and continues to access the adjacent structure until the stack is unlocked. Is empty.

[0035] Preferably, in S42, the first adjacent edge e in the adjacency list of the node v and the node w pointed to by the adjacent edge are obtained, and the specific operations are as follows:

[0036] S421, if the current edge stack If it is empty, push the adjacent edge into the edge stack , the w node acts as the v node and continues to execute S42 to push into the node stack and obtain adjacent edges;

[0037] S422, determine the timestamp time on the adjacent edge e and the edge stack The size of the timestamp time' of the top edge of the stack e';

[0038] If time is less than time', return to S42, obtain the next adjacent edge of node v and continue searching;

[0039] If time is greater than time', determine whether w and v are the same: if they are the same, a loop is found and the structure Lock to ensure that there is no conflict when multiple threads save at the same time; save the node stack Hebianzhan The loop information on the save is completed and the structure is removed The lock is set so that other threads can continue to save loop information; the loop information is saved in the edge stack. The top of the stack is saved, and the current loop time time is saved. If the top of the current edge stack has a loop time oldtime, the maximum value between the two is saved, and the search is returned to S42 to obtain the next adjacent edge of node v and continue; if they are not the same, the judgment of S423 is continued;

[0040] S423, determine the timestamp time on the adjacent edge e and The size of , and whether the node w has been visited, that is, Is it ;

[0041] S4231, if only time is less than And the node w has been visited, that is equal When The value of , Change the value of to time; push the adjacent edge into the edge stack , take the w node as the v node, and continue to execute S42 to push into the node stack and obtain the adjacent edge operation;

[0042] S4232, when if time is less than or the node w has been visited, that is equal to If one of them is not satisfied, no operation is performed;

[0043] S4233, determine whether the loop information at the top of the current edge stack is true. If it is true, return to S42 and obtain the next adjacent edge of node v to continue the search; if it is not true, obtain the blocked node v, the blocked node w, and the blocking time time, and judge whether there is an adjacent structure in [w,T] ;

[0044] Specifically, if there is an adjacent structure , then judge the size of T and the blocking time time. When T < time, the adjacent structure is modified ; if there is no adjacent structure , then a new adjacent structure needs to be created , and stored in .

[0045] Compared with the prior art, the present invention has the following beneficial effects:

[0046] (1) The present invention adopts the method of enumerating strongly connected components to decompose the transaction topology graph into multiple small graphs, which can avoid the conflict problem when the enumeration algorithm is executed by multiple threads. And finally, the enumerated is the time sequence loop, and the loop must be included in the strongly connected component. Enumerating the strongly connected component first can filter out the edges that cannot form a loop in the transaction topology graph, reduce the search space, and speed up the enumeration efficiency;

[0047] (2) The present invention adopts the method of parallel enumeration by multiple threads to detect the fund reflux loop, which can make full use of the high concurrency of the underlying hardware multi-core and multi-processor, effectively improve the computing performance, can process large-scale bank transaction data, and can meet the needs of practical applications;

[0048] (3) The present invention uses the time sequence loop to represent the fund reflux, rather than the directed loop. Because the bank transaction fund reflux has the characteristic that the transaction edges are in ascending order of time stamps. If the directed loop is used and the time sequence attribute is ignored, it will cause a lot of false alarms in the final output and reduce the accuracy;

[0049] (4) The present invention adopts a new enumeration algorithm, introduces the concept of blocking time, and makes full use of the time stamp attribute on the time sequence edge. When the accessed edge is less than the blocking time, the access will no longer continue, thereby reducing unnecessary searches. And after finding the loop, the blocking time is updated by the cascading unlocking method to improve the search efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention, and a person of ordinary skill in the art can obtain the technical solutions according to these drawings without creative work.

[0051] Other attached pictures.

[0052] Figure 1 It is a flow chart of a multi-threaded parallel capital reflux detection method based on a timing diagram according to an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of constructing a timing diagram and an adjacency list structure according to a bank's transaction information table according to an embodiment of the present invention;

[0054] Figure 3 A schematic diagram of multi-threaded concurrent access to strongly connected components according to an embodiment of the present invention;

[0055] Figure 4 A flowchart of a thread p in an embodiment of the present invention performing loop solving on a v-node of a strongly connected component;

[0056] Figure 5 This is a node locking flowchart for locking v in an embodiment of the present invention, where the locked node is w and the blocking time is time;

[0057] Figure 6 This is a flowchart of unlocking a node v and unlocking time T according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all 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.

[0059] This embodiment provides a suspicious fund reflux detection method based on concurrent timing ring enumeration. By decomposing computing tasks into multiple threads for parallel execution, the high concurrency of the underlying multi-core processor is fully utilized to shorten the algorithm execution time, thereby achieving better performance and providing effective support for the application of financial big data analysis in risk control and financial supervision.

[0060] The overall process of constructing a time sequence diagram from a given bank transaction record and decomposing the time sequence diagram into multiple sub-graphs and performing multi-threaded parallel detection of capital repatriation on the sub-graphs is as follows: Figure 1 shown.

[0061] S1, constructs a time sequence graph and its adjacency list structure based on bank transaction records;

[0062] S2, enumerate all strongly connected components in the constructed time sequence graph, delete the nodes that are not included in the strongly connected components in the adjacency list structure, and exclude the transaction edges that cannot form a ring;

[0063] S3, allocates storage structures for nodes in each strongly connected component and initializes them;

[0064] S4, creates multiple threads to simultaneously execute the timing ring enumeration algorithm on different strongly connected components;

[0065] S5, using the constraints related to the transaction amount to filter out the timing loops that do not meet the amount fluctuation range limit; based on the remaining loop information, combined with the original bank transaction records, output the bank transaction flow information with suspicious fund reflux.

[0066] Specifically, Figure 2 As shown, S1 is implemented as follows.

[0067] S11, construct a time series graph based on bank transaction records. One transaction flow corresponds to one time series edge. The transaction time is used as the timestamp on the time series edge. The fund transfer account is used as the initiating node, and the fund transfer account is used as the receiving node.

[0068] S12, constructing an adjacency list structure of the time sequence graph, with the fund transfer-out account as the head node, the fund transfer-in account as the child node, and the transaction time as the timestamp information on the child node.

[0069] Specifically, Figure 3 As shown, S2 is implemented as follows.

[0070] S21, using the directed graph-based Tarjan algorithm to enumerate all strongly connected components in the constructed temporal topology graph, in the output label table, nodes with the same digital label are nodes in a strongly connected component. The specific algorithm is not included in the present invention and will not be described in detail. Reference may be made to the literature: TARJAN R. Enumeration of the elementarycircuits of a directed graph[J]. SIAM Journal on Computing, 1973,2(3): 211-216.

[0071] S22, according to the label table output by Tarjan, traverse the adjacency list. If the label of the head node and the child node of the edge are the same, keep the edge and continue to traverse the next edge; Figure 3 There is A B, and A and B have the same digital label in the label table and are in the same strongly connected component, so the edge is retained. If the head node and the child node have different labels, delete the child node and then traverse the next child node; Figure 3 There is C F, but C and F have different digital labels in the label table and are not in the same strongly connected component, so delete the edge.

[0072] The specific implementation of S3 is as follows.

[0073] S31, for each node , define a shared data structure to record the node status, the node blocking time, and a linked list of records of other nodes being blocked due to the node blocking. Among them:

[0074] (a) Each node has two states during the loop solving process, using To record, For the state array:

[0075] i. Node v is not visited and is marked as ;

[0076] ii. Node v has been visited and is marked as ;

[0077] At initialization, the state of each node is , each time the recursion is entered, the state is changed to , when jumping out of the recursion, modify it back .

[0078] (b) Each node needs to record the current blocking time during the loop solving process, using To record,

[0079] is a timestamp array. When accessing the node, the timestamp on the current transaction edge must be less than the blocking time of the node to continue accessing. The blocking time of each node during initialization is (Default is maximum).

[0080] (c) Each node has a linked list during the loop solving process, which is used to record the records of other nodes that are blocked due to the blocking of this node. The blocked nodes are recorded using blist[v]. Similar to the adjacency list structure, all nodes are regarded as a column head node, and the sub-node structure is [a,t] , where a represents the blocked node, t represents the time when node a is locked, and when node a is blocked by the same node multiple times, the maximum value is saved.

[0081] (d) When a loop is found, use set to save the loop information enumerated, including the nodes and edge information on the loop path.

[0082] S32, define three local data structures for each thread p: edge stack , node stack and unlock stack . The edge stack , node stack are respectively used to simulate the edge sequence and node sequence accessed during the depth - first search process of this thread, and at the same time simulate the recursive operation. The unlock stack is used to simulate the recursive operation during subsequent recursive unlocking. The edge stack, node stack, and unlock stack are all initially empty.

[0083] Specifically, S4 creates multiple threads to execute the timing loop enumeration algorithm on different strongly connected components simultaneously. The flowcharts of the algorithm are as Figure 3 , Figure 4 , Figure 5 and Figure 6 shown, and the specific algorithm steps are as follows.

[0084] S41, obtain a node v in the strongly connected component. First, unlock the v node, and the unlock time T is , and the unlocking operation is as follows:

[0085] (a) Judge whether the value of is less than T. If so, do not modify the value of ; if not, modify the value of to T. For example, for node A in Figure 3 , since the default is , which is not less than the unlock time T, the value is not changed.

[0086] (b) Push the v node onto the unlock stack , obtain each adjacency structure in [w,t] . If t < T holds, delete in [w,t] ; if not, do not perform the deletion operation, and then use w as v to continue the operation in 4.1.1.

[0087] (c) When After each adjacent structure in has been visited, pop the unlock stack The top element of the stack, backtracks to the previous node, and continues to access the adjacent structure until the stack is unlocked. Empty. For example, at the beginning of node A It is empty, so pop the A node directly and unlock the stack If it is empty, the unlocking of node A is completed.

[0088] S42, push node v into the node stack , get the first adjacent edge e in the adjacency list of node v and the node w pointed to by the adjacent edge, and push the adjacent edge into the edge stack , do the following:

[0089] (a) If the current edge stack It is empty because the edge needs to satisfy the timestamp increment constraint. When there is only one edge, there is no time comparison with the previous edge. Therefore, the w node acts as the v node and continues to execute S42 to push into the node stack and obtain the adjacent edge operation.

[0090] (b) Determine the timestamp time and edge stack on the adjacent edge e The size of the timestamp time' of the top edge e' of the stack.

[0091] i. If time is less than time', because the timestamp does not satisfy the time increment constraint, the judgment is not continued, and the operation returns to step 2 to obtain the next adjacent edge and continue the judgment.

[0092] ii. If time is greater than time', determine whether w and v are the same: if they are, a loop is found. B C D A, the structure Lock it to ensure that there will be no conflict when multiple threads save at the same time. Then save the node information and edge information on the loop. After saving, release the structure. The lock is released so that other threads can continue to save the loop information. The loop information true and the saved loop time time (currently: 18:00 on the 15th) are saved in the edge stack If the current node has a loop time oldtime at the top of the stack, the maximum value between the two is saved. Then pop the edge stack The top edge of the stack is found, and S42 is returned to push the node stack and obtain the adjacent edge operation, and the next adjacent edge of node v is obtained to continue the search; if they are not the same, the subsequent judgment is continued.

[0093] (c) Determine the timestamp time on the adjacent edge e and The size of , and whether the node w has been visited, that is, Is it 。

[0094] i. Only when time is less than and node w has not been visited, that is equals will be changed to , will be changed to time. For example, when visiting edge A B, since the initial value of is and B has been visited, so will be changed to and . Take node w as node v and continue to execute the operations of pushing the node onto the stack and obtaining the adjacent edges in S42.

[0095] ii. When time is less than or node w has been visited, that is equals if one of them is not satisfied, no operation will be performed. For example, the visited path is A B C D E, then visit edge E B. Since B has been visited, so and is less than , so edge E B will not be visited.

[0096] iii. Judge whether the loop information at the top of the current edge stack is true. If it is true, return to the operation of S42 to obtain the next adjacent edge of node v and continue the search. If it is not true, obtain the blocked node v, the blocked node w and the blocking time time, and judge whether there is an adjacent structure in [w,T] .

[0097] 1. If there is an adjacent structure , then judge the size of T and the blocking time time. When T < time, then modify the adjacent structure . .

[0098] 2. If there is no adjacent structure , then an adjacent structure needs to be created and stored in . For example, in ii, since E The edge B does not meet the access condition, and the E node is blocked because of the B node, so it will be Add the adjacency structure [E, 16th, 8:00]. Similarly, when backtracking, D E will also be locked.

[0099] S43, when all adjacent edges of the node v adjacency list have been visited, determine the edge stack Is the loop information at the top of the stack true? If true, execute the unlock operation of 1. The unlock time is the edge stack. The loop time oldtime at the top of the stack. For example, after operation iii, both nodes B and E are locked, and then access to D A, you will find loop A B C D A, when backtracking, nodes D, C, and B will use the unlocking time as After the B node is unlocked, it will determine [E, 16th 8:00], unlock time Less than , so the blocking time of node E will be updated, but the structure [E, 8:00 on the 16th] will not be deleted.

[0100] S44, save the loop information and loop time at the top of the current edge stack to the edge stack After popping the top of the stack, the node stack is popped out of the new top of the stack. The top of the stack is reached, and the operation S42 is returned to obtain the next adjacent edge of node v and continue searching until the node stack End the search if empty.

[0101] Specifically, the S5 is implemented as follows.

[0102] S51, traverse For all the rings in the collection, the transaction amount fluctuation range is set according to user needs, and the timing rings that do not meet the amount fluctuation range limit are filtered out.

[0103] S52: Output bank transaction flow information of suspicious fund reflux according to the remaining loop information and in combination with the original bank transaction records.

[0104] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A suspicious fund return detection method based on concurrent timing ring enumeration, characterized in that: include: S1, constructs a time sequence graph and its adjacency list structure based on bank transaction records; S2, enumerate all strongly connected components in the constructed time sequence graph, delete the nodes that are not included in the strongly connected components in the adjacency list structure, and exclude the transaction edges that cannot form a ring; S3, allocates storage structures for nodes in each strongly connected component and initializes them; S4, creates multiple threads to simultaneously execute the timing ring enumeration algorithm on different strongly connected components; S5, using the constraints related to the transaction amount to filter out the timing loops that do not meet the amount fluctuation range limit; based on the remaining loop information, combined with the original bank transaction records, output the bank transaction flow information with suspicious fund reflux; The step of allocating a storage structure to each node in a strongly connected component and initializing the structure specifically includes: S31, for each node v in the timing graph, define a shared data structure: visited(v) records the visit status of the node, timeblock(v) records the blocking time of the node, blist(v) records the nodes blocked due to the blocking of the node, and cycle records the simple timing cycle set; S32, define three local data structures for each thread p: ​​edge stack C p , node stack R p and unlock stack B p ; Among them, the edge stack C p and Node Stack R p They are used to simulate the edge sequence and node sequence accessed by the thread during the depth-first search, and simulate the recursive operation at the same time; unlock stack B p Used to simulate recursive operations when recursively unlocking in the future; the initial values ​​of the edge stack, node stack, and unlock stack are all empty; In S31, the data structures visited(v), timeblock(v), blist(v) and cycle are defined as follows: The data structure visited is an array. Each node has two states: unvisited and done. The state of each node is unvisited at the initialization. The data structure timeblock is an array that records the current blocking time of the node. When the node is accessed again, the timestamp on the current transaction edge must be less than the blocking time to continue accessing the node. At the same time, the current blocking time is modified to the timestamp on the current transaction edge. The blocking time of each node is max during initialization. The data structure blist is an adjacency list structure. All nodes are regarded as head nodes of a column. The subnode structure is [a, t], where a represents the blocked node and t represents the time when node a is locked. When node a is blocked by the same node multiple times, the maximum value is saved. The data structure cycle is a set that stores the enumerated cycle information, including the nodes and edge information on the cycle path; The step of creating multiple threads and executing the timing ring enumeration algorithm on different strongly connected components at the same time specifically includes: S41, obtaining a node v in the strongly connected component, and the node v needs to be unlocked, and the unlocking time T is max; S42, push node v into node stack R p ; Get the first adjacent edge e in the adjacency list of node v and the node w pointed to by the adjacent edge; S43, when all adjacent edges of the node v adjacency list have been visited, determine the edge stack C p Is the loop information at the top of the stack true? If true, execute the unlocking operation of S41, and the unlocking time is edge stack C p The loop time at the top of the stack is oldtime; S44, save the loop information and loop time at the top of the current stack to the edge stack C p After popping the top of the stack, the node stack R is also popped from the new top of the stack. p The top of the stack is reached, and S42 is returned to obtain the next adjacent edge and continue to judge until the node stack R p End the search if empty.

2. The suspicious capital reflux detection method based on concurrent timing ring enumeration according to claim 1 is characterized in that: The construction of the time sequence graph and its adjacency list structure according to the bank transaction records specifically includes: S11, construct a time sequence graph based on the bank transaction records, each transaction flow corresponds to a directed edge, the transaction time is used as the timestamp on the directed edge, the fund transfer account is used as the initiating node, and the fund transfer account is used as the receiving node, and construct a time sequence graph G = (V, E); wherein V represents a set of nodes; E represents a set of edges between nodes; S12. Construct the adjacency list structure of the timing diagram. Use the fund transfer - out account as the head node, the fund transfer - in account as the child node, and the transaction time as the time information on the child node to construct the adjacency list structure.

3. The suspicious capital reflux detection method based on concurrent timing ring enumeration according to claim 1 is characterized in that: In the constructed timing diagram, enumerate all strongly - connected components and delete the nodes in the adjacency list structure that are not included in the strongly - connected components, excluding the transaction edges that cannot form a cycle. Specifically, it includes: S21. Use the Tarjan algorithm based on a directed graph to enumerate all strongly - connected components in the constructed timing diagram. Nodes in the same strongly - connected component are marked with the same number. S22. According to the number markings of the nodes, traverse the adjacency list. If the head - node and the child - node have the same marking, retain the child - node and traverse the next child - node. If the head - node and the child - node have different markings, delete the child - node and traverse the next child - node. After all head - nodes have been traversed, all transaction edges that cannot form a cycle are excluded.

4. The suspicious capital reflux detection method based on concurrent timing ring enumeration according to claim 1 is characterized in that: The unlocking operation of S41 is specifically as follows: S411. Judge whether the value of timeblock(v) is less than T. If so, do not modify the value of timeblock(v). If not, modify the value of timeblock(v) to T. S412, push the v node onto the unlock stack B p , obtain each adjacency structure [w, t] in blist(v). If t < T holds, then delete [w, t] from blist(v); if not, do not perform the deletion operation; then continue the operation of S411 with w as v; where t represents the time when node w is locked; S413, when each adjacent structure in blist(v) has been visited, pop the unlock stack B p The top element of the stack, backtracks to the previous node, and continues to access the adjacent structure until stack B is unlocked. p Is empty.

5. The suspicious fund reflux detection method based on concurrent timing ring enumeration according to claim 4 is characterized in that: In S42, obtain the first adjacent edge e in the adjacency list of node v and the node w pointed to by the adjacent edge. The specific operation is as follows: S421, if the current edge stack C p Is empty, push the adjacent edge into edge stack C p , the w node acts as the v node and continues to execute the operation of S42 to push into the node stack and obtain adjacent edges; S422, determine the timestamp time on the adjacent edge e and the edge stack C p The size of the timestamp time' of the top edge of the stack e'; If time is less than time’, return to S42 to obtain the next adjacent edge of node v and continue the search. If time is greater than time', determine whether w and v are the same: if they are the same, find the loop and lock the structure cycle to ensure that there will be no conflict when multiple threads save at the same time; save the node stack R p Hebianzhan C p After saving, the loop information on the edge stack is saved and the lock of the structure cycle is released so that other threads can continue to save the loop information; the loop information true is saved in the edge stack C p The top of the stack is saved, and the current loop time time is saved. If the top of the current edge stack has a loop time oldtime, the maximum value between the two is saved, and the search is returned to S42 to obtain the next adjacent edge of node v and continue; if they are not the same, the judgment of S423 is continued; S423. Judge the magnitude relationship between the timestamp time on the adjacent edge e and timeblock(w), and whether the node w has been visited, that is, whether visited(w) is done. S4231, if only time is less than timeblock(w) and node w has been visited, that is, visited(w) is equal to unvisited, change the value of visited(w) to done and the value of timeblock(w) to time; push the adjacent edge into the edge stack C p , take the w node as the v node, and continue to execute S42 to push into the node stack and obtain the adjacent edge operation; S4232. When either time is less than timeblock(w) or the node w has not been visited (i.e., visited(w) equals unvisited) is not satisfied, do nothing. S4233, determine the current edge stack C p Check whether the loop information at the top of the stack is true. If so, return to S42 to obtain the next adjacent edge of node v and continue searching. If not, obtain the blocking node v, the blocked node w and the blocking time time, and determine whether there is an adjacent structure [w, T] in blist(v). Specifically, if there is an adjacent structure [w, T], then judge the magnitude relationship between T and the blocking time time. When T < time, modify the adjacent structure [w, T] to [w, time]. If there is no adjacent structure [w, T], then it is necessary to create an adjacent structure [w, time] and store it in blist(v).

Citation Information

Patent Citations

  • Circular transaction path detection

    CN103838811A

  • Transaction data processing method and device, computer equipment and storage medium

    CN112258195A

  • Method for creating KV storage engine index of memory database

    CN112269786A

  • Bank transaction fraud behavior detection method and system and electronic equipment

    CN116029734A

  • Suspicious fund flow direction tracing method and system based on path bundle

    CN116957598A