Fraudulent transaction detection method and device, equipment, storage medium and product

By constructing a transaction graph and using transaction attribute matching to identify risk paths, the problems of high computational cost and low accuracy in fraudulent transaction detection in the existing technology are solved, and efficient and accurate fraudulent transaction detection is achieved.

CN118537013APending Publication Date: 2024-08-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410701489.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Fraudulent transaction detection in the existing technology has high computational cost and low accuracy. Methods based on expert rules are easily bypassed. Methods based on machine learning require a large amount of annotated data and re-training, and are difficult to cope with new transaction characteristics.

Method used

By constructing a transaction map to be tested and matching it with predefined transaction attributes, risk paths are identified and fraudulent transactions are identified. The transaction security index, trust index and risk coefficient are used as matching conditions to reduce computing resource requirements and improve detection efficiency.

Benefits of technology

It improves the accuracy and efficiency of fraudulent transaction detection, reduces computational costs, does not rely on a large amount of annotated data, and adapts to new transaction characteristics without retraining the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537013A
    Figure CN118537013A
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of computers, and provides a fraudulent transaction detection method and device, equipment, a storage medium and a product, and the method comprises the steps: obtaining to-be-detected transaction data, and constructing a to-be-detected transaction graph according to the to-be-detected transaction data; querying a path matched with each path in a risk path set from the to-be-tested transaction atlas according to a predefined transaction attribute, wherein the risk path set is determined according to paths in a fraud atlas constructed based on historical fraud transaction data; and determining the corresponding transaction in the queried path as a fraudulent transaction. According to the embodiment of the invention, the accuracy of fraudulent transaction detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular to a fraudulent transaction detection method, device, equipment, storage medium and product. Background Art

[0002] With the continuous development of financial technology, in order to meet regulatory requirements and reduce the pressure of manual investigation, it is essential to automatically detect transactions with fraud risks. The existing technology mainly includes detection methods based on expert rule method and machine learning. Among them, the fraud transaction detection method based on expert rule method refers to the analysis results of each business or each operation step based on the experience of business experts, finding out the possible risk points in each process, designing corresponding anti-fraud prevention rules, and embedding the anti-fraud prevention rules into the transaction process or risk control system. The expert rule method can block fraud transactions with relatively high certainty, but due to the fixed nature of anti-fraud prevention rules, it is easy to be broken or bypassed by fraud gangs, resulting in a decrease in the accuracy of fraud transaction detection. The detection method based on machine learning collects massive transaction data to train the machine learning model to obtain a fraud transaction detection model, and uses the model for fraud transaction detection. However, due to the small number of fraud transaction data samples in real scenarios, the difficulty of the machine learning algorithm is increased, affecting the accuracy of identifying fraud transactions. In addition, due to the dependence of neural networks on data, once new transaction features are added to the transaction data, the model structure needs to be modified and retrained, so the time cost and computational cost required are very high. Therefore, there is an urgent need for a fraudulent transaction detection method that can reduce computational costs and improve the accuracy of fraudulent transaction detection. Summary of the invention

[0003] In view of the above problems in the prior art, the purpose of the embodiments of this specification is to provide a fraudulent transaction detection method, device, equipment, storage medium and product to solve the problems of high computational cost and low accuracy of fraudulent transaction detection in the prior art.

[0004] In order to solve the above technical problems, the specific technical solutions of the embodiments of this specification are as follows:

[0005] On the one hand, an embodiment of this specification provides a fraudulent transaction detection method, the method comprising:

[0006] Acquire the transaction data to be tested, and construct a transaction graph to be tested according to the transaction data to be tested;

[0007] querying, from the tested transaction graph, a path matching each path in a risk path set according to predefined transaction attributes, wherein the risk path set is determined according to the paths in the fraud graph constructed based on historical fraud transaction data;

[0008] The corresponding transaction in the queried path is determined to be a fraudulent transaction.

[0009] Furthermore, the predefined transaction attributes include a transaction security index, a transaction trust index and a risk factor; wherein:

[0010] The transaction security index is used to characterize the security level of transactions between nodes;

[0011] The transaction trust index is used to characterize the degree of trust in transactions between nodes;

[0012] The risk factor is used to characterize the possibility of fraudulent transaction behavior in the node.

[0013] Furthermore, the querying of paths matching each path in the risk path set from the transaction graph to be tested according to predefined transaction attributes includes:

[0014] Mark all paths in the risk path set as to be matched;

[0015] Randomly select a path to be matched, obtain the transaction attribute value of the path to be matched, and set the transaction attribute constraint condition according to the transaction attribute value;

[0016] Randomly select a node with an in-degree of zero from the transaction graph to be tested and use it as the starting node;

[0017] Obtain all adjacent node sets of the starting node;

[0018] Calculate the constraint function value from the starting node to each adjacent node in the adjacent node set, and select the first K adjacent nodes whose constraint function values ​​satisfy the transaction attribute constraint condition and are the smallest as candidate nodes;

[0019] Determine whether there is an end node with an out-degree of zero among the candidate nodes. If so, calculate the matching degree between the path from the start node to the end node and the path to be matched, take the path with the largest matching degree as the matching path with the path to be matched, and mark the path to be matched as visited;

[0020] If not, each candidate node is used as a new initial node, and the steps of determining the starting node to the candidate node are repeated;

[0021] Repeat the steps of randomly selecting a path to be matched and the steps thereafter until all the paths to be matched in the risk path set are matched.

[0022] Furthermore, the calculating of the constraint function value from the starting node to each adjacent node in the adjacent node set includes:

[0023] Obtaining a random path from the fraud graph, and determining transaction attributes of the random path, wherein the transaction attributes include a transaction security index, a transaction trust index, and a risk coefficient;

[0024] Constraining the transaction attributes of each connection node from the starting node to the adjacent node set according to the transaction attributes of the random path;

[0025] For the transaction attribute constraints from the starting node to each connection node in the adjacent node set, a maximum value is selected from the transaction attribute constraints as a constraint function value from the starting node to the adjacent node in the adjacent node set.

[0026] Furthermore, the calculating of the matching degree between the path corresponding to the starting node to the end node and the path to be matched includes:

[0027] Calculate the transaction attribute aggregation value of the path corresponding to the starting node to the end node;

[0028] The transaction attribute aggregation values ​​of the path corresponding to the starting node to the end node are weighted and summed to obtain the matching degree between the path corresponding to the starting node to the end node and the path to be matched.

[0029] Furthermore, the transaction attributes include first-type attributes and second-type attributes, wherein the first-type attributes represent attributes between a node and its adjacent nodes, and the second-type attributes are node attributes;

[0030] Calculating the aggregate value of the first-class attribute of the path corresponding to the start node to the end node includes: calculating the first-class attribute of each node in the path corresponding to the start node to the end node, and performing multiplication calculation on the first-class attribute of each node to obtain the aggregate value of the first-class attribute of the path corresponding to the start node to the end node;

[0031] Calculating the aggregate value of the second type of attribute of the path corresponding to the starting node to the end node includes: calculating the second type of attribute for each node in the path corresponding to the starting node to the end node; adding and averaging the second type of attribute for each node in the path corresponding to the starting node to the end node; and determining the summed and averaged result as the aggregate value of the second type of attribute of the path corresponding to the starting node to the end node.

[0032] On the other hand, an embodiment of the present specification provides a fraudulent transaction detection device, the device comprising:

[0033] An acquisition module, used to acquire the transaction data to be tested, and construct a transaction graph to be tested according to the transaction data to be tested;

[0034] A query module, for querying a path matching each path in a risk path set from the transaction graph to be tested according to predefined transaction attributes, the risk path set being determined according to the paths in the fraud graph constructed based on historical fraud transaction data;

[0035] The determination module is used to determine the corresponding transaction in the queried path as a fraudulent transaction.

[0036] On the other hand, an embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein when the computer program is executed by the processor, the instructions of any one of the above methods are executed.

[0037] On the other hand, an embodiment of the present specification further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor of a computer device, the computer program executes instructions of any one of the above-described methods.

[0038] On the other hand, the embodiments of this specification further provide a computer program product, which, when executed by a processor of a computer device, executes instructions of any one of the above methods.

[0039] One or more technical solutions provided by some embodiments of this specification have at least the following technical effects:

[0040] The embodiment of this specification matches the path in the test transaction map with the path in the fraud map according to the predefined transaction attributes, thereby determining the fraudulent transaction. Compared with the machine learning-based method, the embodiment of this specification does not rely on a large amount of labeled data for training. By comparing the test transaction map with the known fraud map, fraudulent transactions with similar attributes and structures to the fraud map can be identified, thereby improving the accuracy of fraudulent transaction detection. In addition, when new transaction features appear in the fraudulent transaction data, it is not necessary to retrain the network for fraud detection. It is only necessary to construct a new map based on the new fraudulent transaction features, and then match the test map with the new map to determine the fraudulent transaction. The required computing resources are small and the efficiency is high.

[0041] The above description is only an overview of the technical solutions of some embodiments of this specification. In order to more clearly understand the technical means of some embodiments of this specification, they can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiments of this specification more obvious and easy to understand, the following specifically cites the preferred embodiments and describes them in detail in conjunction with the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A schematic diagram showing a process of a fraudulent transaction detection method in some embodiments of this specification;

[0044] Figure 2 A schematic diagram of a process of searching for a path matching each path in the risk path set from the transaction graph to be tested according to predefined transaction attributes in some embodiments of this specification is shown;

[0045] Figure 3 A schematic diagram of a process of calculating the constraint function value from the starting node to each adjacent node in the adjacent node set in some embodiments of the present specification is shown;

[0046] Figure 4 A schematic diagram of a process of calculating the matching degree between the path from the start node to the end node and the path to be matched in some embodiments of this specification is shown;

[0047] Figure 5 A schematic diagram of the module structure of a fraudulent transaction detection device in some embodiments of this specification is shown;

[0048] Figure 6 A schematic diagram of the structure of a computer device in this specification is shown.

[0049] Description of the accompanying symbols:

[0050] 501. Get module;

[0051] 502. Query module;

[0052] 503. Determine module;

[0053] 602. Computer equipment;

[0054] 604, processor;

[0055] 606. Memory;

[0056] 608, driving mechanism;

[0057] 610, input / output module;

[0058] 612. Input devices;

[0059] 614. Output device;

[0060] 616. Presentation equipment;

[0061] 618. Graphical user interface;

[0062] 620, network interface;

[0063] 622, communication link;

[0064] 624. Communication bus. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0066] In order to solve the above problems, the embodiments of this specification provide a fraudulent transaction detection method. Figure 1 This is a flowchart of a fraudulent transaction detection method provided in the embodiments of this specification. This specification provides method operation steps as described in the embodiments or flowcharts, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual system or device product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel.

[0067] It should be noted that the terms "first", "second", etc. in this specification and claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0068] Reference Figure 1 As shown, the embodiment of this specification provides a fraudulent transaction detection method, the method comprising:

[0069] S101: Acquire transaction data to be tested, and construct a transaction graph to be tested according to the transaction data to be tested;

[0070] S102: querying a path matching each path in a risk path set from the transaction graph to be tested according to a predefined transaction attribute, wherein the risk path set is determined according to the paths in a fraud graph constructed based on historical fraud transaction data;

[0071] S103: Determine the corresponding transaction in the queried path as a fraudulent transaction.

[0072] The embodiment of this specification matches the path in the test transaction map with the path in the fraud map according to the predefined transaction attributes, thereby determining the fraudulent transaction. Compared with the machine learning-based method, the embodiment of this specification does not rely on a large amount of labeled data for training. By comparing the test transaction map with the known fraud map, fraudulent transactions with similar attributes and structures to the fraud map can be identified, thereby improving the accuracy of fraudulent transaction detection. In addition, when new transaction features appear in the fraudulent transaction data, it is not necessary to retrain the network for fraud detection. It is only necessary to construct a new map based on the new fraudulent transaction features, and then match the test map with the new map to determine the fraudulent transaction. The required computing resources are small and the efficiency is high.

[0073] Transaction data refers to data generated in various transaction activities that record detailed transaction information. These data reflect the entire process of transaction activities, including key elements such as transaction participants, transaction time, location, quantity, and transaction method, and can be obtained through financial institutions, trading platforms, and third-party data service providers. In some embodiments, the transaction data to be tested can be the transaction data of an account of a certain financial institution within a specified period of time, or it can be the transaction data of a specified target account within a specific period of time. Due to the intricate transaction relationship between accounts, the graph is a data structure in which nodes represent entities and edges represent the connection relationship between entities. The relationship between entities can be intuitively and clearly reflected through the graph. Therefore, a transaction graph to be tested can be constructed based on the transaction data to be tested. The specific construction method is: take a certain account to be tested as a vertex, accounts with transaction associations with it as nodes, and transaction relationships between vertices and nodes as edges. The direction of the arrow represents the transaction flow, where the transaction flow includes outgoing transactions and incoming transactions, thereby constructing the transaction graph of the account, and associating the transaction graphs of several accounts to be tested to obtain the transaction graph to be tested.

[0074] In some embodiments, historical fraud transaction data refers to transaction data obtained from confirmed fraud cases. Similarly, in order to better reflect the complex correlation between fraud data, a fraud graph can be constructed based on historical fraud data, wherein the transaction corresponding to each edge in the fraud graph is a fraud transaction. In the fraud graph, a node with a node in-degree of zero is used as the starting node, and the path consisting of several edges from the starting node to the end node is determined as a risk path from the starting node to the end node, thereby obtaining several risk paths in the fraud graph, and determining several risk paths as a risk path set. After determining the transaction graph to be tested and the fraud graph, the method for determining fraud transactions in this specification is to find a path that matches each risk path in the fraud graph from the transaction graph to be tested, and determine the transaction corresponding to the matching path in the transaction graph to be tested as a fraud transaction. In the path matching process, it is necessary to match according to the transaction attributes of the nodes and edges, and the paths that are successfully matched have similar transaction attributes.

[0075] In some embodiments, transaction attributes include a transaction security index, a transaction trust index, and a risk factor, wherein the transaction security index is used to characterize the security level of transactions between nodes, and can be comprehensively determined by factors such as the geographical location, transaction method, transaction time, transaction transparency, and payment method of historical transactions between nodes. Specifically, weights and scoring criteria are set for each factor in advance, and then scores and summaries are performed based on the actual situation of transactions between nodes, and finally a transaction security index is obtained, and the index is normalized to the range of [0, 1], and the index is used to reflect the security level of transactions between nodes. In some embodiments of this specification, S is used to represent the security transaction index, S (A,B) Represents the transaction security index between node A and node B, S (A,B) The smaller the value, the less secure the transaction between node A and node B. The transaction trust index is used to characterize the degree of trust in transactions between nodes. Specifically, trust refers to the trust one node has in another node, based on the historical transactions between the nodes and their respective account information, and the extent to which the latter's future actions will lead to unexpected results. In some embodiments of this specification, the transaction trust index can be obtained by obtaining the previous interaction activities between nodes through data mining, using a third-party trust rating agency or trust assessment model, or by calculating according to a preset rule algorithm. This specification uses T to represent the transaction trust index, T (A,B) Represents the transaction trust index between node A and node B, T (A,B) ∈[0, 1], T (A,B) The smaller the value, the lower the trust in the transaction between node A and node B. The risk coefficient is used to characterize the possibility of fraudulent transaction behavior in a node. The risk score can be generated based on the transaction behavior of the node using the transaction indicator analysis model and the risk assessment model. This manual uses P to represent the risk coefficient, PA represents the risk factor of node A, P A ∈[0, 1], P A The larger the value, the higher the possibility that the node has engaged in fraudulent transactions.

[0076] In some embodiments, reference Figure 2 As shown, the querying of paths matching each path in the risk path set from the transaction graph to be tested according to the predefined transaction attributes may include the following steps:

[0077] S201: Mark all paths in the risk path set as to be matched.

[0078] S202: randomly selecting a path to be matched, obtaining a transaction attribute value of the path to be matched, and setting a transaction attribute constraint condition according to the transaction attribute value.

[0079] The transaction attribute values ​​of the path to be matched include transaction security index, transaction trust index and risk coefficient, which are respectively expressed as Q S , Q T and Q P It means that since each path to be matched is composed of several edges, and each edge is obtained by associating two nodes, the transaction attribute value of each edge can be obtained first, and then the transaction attribute value of all edges in the path to be matched can be aggregated to obtain the transaction attribute value of the path to be matched, where the transaction attribute value of each edge can be calculated by the above method. After obtaining the transaction attribute value of the path to be matched, specific constraints can be set according to the transaction attribute value. Specifically, the constraint condition of the path to be matched can be defined as: Among them, A and B represent the starting node and the end node of the path respectively, 0.5, 0.6 and 0.4 represent the three transaction attribute values ​​of the path respectively, indicating the restrictions on the security index, trust index and risk coefficient of the path.

[0080] S203: Randomly select a node with an in-degree of zero from the transaction graph to be tested, and use it as the starting node.

[0081] S204: Acquire all adjacent node sets of the start node.

[0082] S205: Calculate the constraint function value from the starting node to each adjacent node in the adjacent node set, and select the first K adjacent nodes whose constraint function values ​​satisfy the transaction attribute constraint condition and are the smallest as candidate nodes.

[0083] Reference Figure 3 , the calculating of the constraint function value from the starting node to each adjacent node in the adjacent node set includes:

[0084] S301: Obtain a random path from the fraud graph, and determine the transaction attributes of the random path, wherein the transaction attributes include a transaction security index, a transaction trust index, and a risk coefficient;

[0085] S302: Constraining the transaction attributes of each connection node from the starting node to the adjacent node set according to the transaction attributes of the random path;

[0086] S303: For the transaction attribute constraints from the starting node to each connection node in the adjacent node set, a maximum value is selected from the transaction attribute constraints as a constraint function value from the starting node to the adjacent node in the adjacent node set.

[0087] In some embodiments, the constraint function value from the starting node to each adjacent node in the adjacent node set may be calculated by the following formula:

[0088]

[0089] Among them, C represents the constraint function value, Q S represents the transaction security index of a random path in the fraud graph, Q T represents the transaction trust index of a path in the fraud graph, Q P represents the risk factor of a path in the fraud graph, q S Represents the transaction security index from the starting node to a certain adjacent node in the transaction graph to be tested, q T Represents the transaction trust index from the starting node to a certain adjacent node in the transaction graph to be tested, q P It represents the risk coefficient from the starting node to a certain adjacent node in the transaction graph to be tested. If the C value is greater than 1, it means that the constraint value of a certain attribute of the current path does not meet the corresponding transaction attribute constraint condition. If the C value is less than 1, it means that the maximum value of the ratio is less than 1, indicating that each transaction attribute constraint of the current path is satisfied. At the same time, the smaller the C value, the better the degree of constraint satisfaction, and the more adjacent nodes that can be expanded. In some embodiments, after calculating the constraint function value from the starting node to all adjacent nodes, the constraint function values ​​are sorted in ascending order, and the first K nodes are selected as candidate nodes, that is, the next expansion nodes. If the number of adjacent nodes is less than K, all of them are expanded as candidate nodes. By limiting the number of candidate nodes, the node expansion space is effectively reduced, thereby reducing the calculation time and improving the query efficiency. At the same time, in order to ensure that most of the nodes can be traversed, K should satisfy the node out-degree of K ≥ 95%.

[0090] S206: Determine whether there is an end node with an out-degree of zero among the candidate nodes. If so, calculate the matching degree between the path from the start node to the end node and the path to be matched, take the path with the largest matching degree as the matching path with the path to be matched, and mark the path to be matched as visited.

[0091] Reference Figure 4 , the calculating the matching degree between the path corresponding to the starting node to the end node and the path to be matched includes:

[0092] S401: Calculate the transaction attribute aggregation value of the path corresponding to the starting node to the end node;

[0093] S402: performing weighted sum processing on the transaction attribute aggregation values ​​of the path corresponding to the start node to the end node to obtain the matching degree between the path corresponding to the start node to the end node and the path to be matched.

[0094] In some embodiments, the matching degree between the path from the start node to the end node and the path to be matched can be calculated by the following formula:

[0095]

[0096] in, Indicates the matching degree between the path from the start node to the end node and the path to be matched, r(a1,...,a i ) means that a1 is the starting node, a i is the path to the end node, a i Represents the nodes included in the path from the starting node to the end node, ω S represents the transaction security index weight, ω T represents the transaction trust index weight, ω P represents the risk factor weight, Indicates the transaction security index aggregation value of the path from the start node to the end node. Represents the aggregate value of the transaction trust index of the path from the start node to the end node. represents the risk coefficient aggregate value of the path from the starting node to the end node. In some embodiments, ω S ∈(0,1),ω T ∈(0,1),ω P ∈(0,1), and ω S +ω T +ω P =1, this weight can be set according to actual needs, and this specification does not limit it.

[0097] In some embodiments, transaction attributes can be divided into first-category attributes and second-category attributes according to the nature of the transaction attributes, wherein the first-category attributes represent the attributes between a node and its adjacent nodes, namely, the transaction security index and the transaction trust index, and the second-category attributes are node attributes, namely, the risk coefficient.

[0098] Calculating the aggregate value of the first type of attribute of the path corresponding to the starting node to the end node includes: calculating the first type of attribute for each node in the path corresponding to the starting node to the end node, and performing multiplication calculation on the first type of attribute of each node to obtain the aggregate value of the first type of attribute of the path corresponding to the starting node to the end node;

[0099] Calculating the aggregate value of the second type of attribute of the path corresponding to the starting node to the end node includes: calculating the second type of attribute for each node in the path corresponding to the starting node to the end node; adding and averaging the second type of attribute for each node in the path corresponding to the starting node to the end node; and determining the summed and averaged result as the aggregate value of the second type of attribute of the path corresponding to the starting node to the end node.

[0100] It can be understood that since the transaction security index and transaction trust index represent the attributes between nodes and are transitive, the transaction security index aggregation value and the transaction trust index aggregation value can be calculated by multiplication, while the risk coefficient represents the attribute of the node itself and is not transitive. Therefore, when calculating the risk coefficient aggregation value, the multiplication method cannot be used. The average risk coefficient of the nodes in the path can be calculated and the average value can be used as the risk coefficient aggregation value of the path.

[0101] In some embodiments, the transaction security index aggregate value, the transaction trust index aggregate value, and the risk coefficient aggregate value may be calculated using the following formula:

[0102]

[0103]

[0104]

[0105] in, Represents the transaction security index aggregation value of the path from the start node to the end node, r(a1,...,a i ) means that a1 is the starting node, a i is the path to the end node, a i Indicates the nodes included in the path from the start node to the end node. Represents node a i and a i+1 The transaction security index between Represents the aggregate value of the transaction trust index of the path from the start node to the end node. Represents node a i and a i+1 The transaction trust index between Represents the risk coefficient aggregation value of the path from the starting node to the end node. Represents node a i Thus, the matching degree between each candidate path and the path to be matched can be calculated, and the candidate path with the largest matching degree is selected as the path that best matches the path to be matched, indicating that the candidate path and the path to be matched have the most similar transaction attributes.

[0106] S207: If not, each candidate node is used as a new initial node, and steps S203-S205 are repeated;

[0107] S208: Repeat steps S202-S207 until all the paths to be matched in the risk path set are matched.

[0108] In some embodiments, multiple matches can be performed to determine the path that is most similar to the path to be matched. Specifically, for a certain path match, if a path R from the starting node Vs to a candidate node Vx is matched, the constraint function value, matching degree, transaction security index aggregation value, transaction trust index aggregation value, risk coefficient aggregation value, and node sequence of path R will be calculated and saved in a dictionary with node Vx as the key and a list of corresponding transaction attribute values ​​as the value. In each subsequent match, if the node Vx is passed again, the constraint function value, matching degree, transaction security index aggregation value, transaction trust index aggregation value, risk coefficient aggregation value, and node sequence of path R corresponding to the path R′ obtained in this match will be compared with the value corresponding to the node Vx in the dictionary, and the following four situations will be executed according to the comparison results:

[0109] (1) If Vx is the last node and the matching degree of path R′ is greater than that of path R, it means that the path R′ selected in the subsequent matching is better than the path R saved in the dictionary. Then, the transaction attribute value in path R′ is used to update the value corresponding to Vx in the dictionary.

[0110] (2) If Vx is the last node and the matching degree of path R′ is less than that of path R, it means that the path R′ selected in the subsequent matching is worse than the path R saved in the dictionary. Then, the value corresponding to Vx in the dictionary is used to replace all transaction attribute values ​​in path R′.

[0111] (3) If Vx is not the last node, and the matching degree of path R′ is greater than that of path R, and the constraint function value of path R′ is less than that of path R, it means that the path R′ selected in the subsequent matching is better than the path R saved in the dictionary. At the same time, the constraint satisfaction degree of the new path R′ is higher and it can accommodate more nodes. The value corresponding to Vx in the dictionary is updated using the attribute value in path R′.

[0112] (4) If Vx is not the last node, and the matching degree of path R′ is less than that of path R, and the constraint function value of path R′ is greater than that of path R, it means that the path R′ selected in the subsequent matching is worse than the path R saved in the dictionary. At the same time, the constraint satisfaction degree of path R in the dictionary is higher and it can accommodate more nodes. The value corresponding to Vx in the dictionary is used to replace all transaction attribute values ​​in path R′.

[0113] After the above operations, the local optimal path of the current candidate node in all executed path matching can be obtained. Through this optimization strategy, the probability of finding the global optimal solution in path matching can be greatly improved.

[0114] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. And the acquisition, storage, use, and processing of data in the technical solutions described in the embodiments of this application are in compliance with relevant regulations.

[0115] Based on the above-mentioned fraudulent transaction detection method, the embodiments of this specification also provide a corresponding fraudulent transaction detection device. The device may include a system (including a distributed system), software (application), module, component, server, client, etc. using the method described in the embodiments of this specification and a device combined with necessary implementation hardware. Based on the same innovative concept, the device in one or more embodiments provided in the embodiments of this specification is as described in the following embodiments. Since the implementation scheme and method of the device to solve the problem are similar, the implementation of the specific device in the embodiments of this specification can refer to the implementation of the aforementioned method, and the repetitions will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0116] Specifically, Figure 5 This is a schematic diagram of the module structure of an embodiment of a fraudulent transaction detection device provided in the embodiment of this specification, referring to Figure 3 As shown, a fraudulent transaction detection device provided in an embodiment of this specification includes:

[0117] An acquisition module 501 is used to acquire the transaction data to be tested and construct a transaction graph to be tested according to the transaction data to be tested;

[0118] A query module 502, configured to query a path matching each path in a risk path set from the transaction graph to be tested according to a predefined transaction attribute, wherein the risk path set is determined according to the paths in the fraud graph constructed based on historical fraud transaction data;

[0119] The determination module 503 is used to determine the corresponding transaction in the queried path as a fraudulent transaction.

[0120] The beneficial effects obtained by the device provided in the embodiments of this specification are consistent with the beneficial effects obtained by the above method and will not be repeated here.

[0121] It should be noted that the fraudulent transaction detection method and device in this specification can be used in the financial field, and can also be used in any field other than the financial field. This specification does not limit the application field of the fraudulent transaction detection method and device.

[0122] Reference Figure 6 As shown, based on the above-mentioned fraudulent transaction detection method, a computer device 602 is also provided in an embodiment of the specification, wherein the above-mentioned method is run on the computer device 602. The computer device 602 may include one or more processors 604, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 602 may also include any memory 606, which is used to store any kind of information such as code, settings, data, etc. Non-limitingly, for example, the memory 606 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 602. In one case, when the processor 604 executes an associated instruction stored in any memory or combination of memories, the computer device 602 may perform any operation of the associated instruction. The computer device 602 also includes one or more drive mechanisms 608 for interacting with any storage, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.

[0123] The computer device 602 may also include an input / output module 610 (I / O) for receiving various inputs (via input devices 612) and for providing various outputs (via output devices 614). A specific output mechanism may include a presentation device 616 and an associated graphical user interface (GUI) 618. In other embodiments, the input / output module 610 (I / O), input device 612, and output device 614 may not be included, and the computer device 602 may be used as a computer device in a network. The computer device 602 may also include one or more network interfaces 620 for exchanging data with other devices via one or more communication links 622. One or more communication buses 624 couple the components described above together.

[0124] The communication link 622 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 622 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0125] Corresponding to Figures 1 to 4 In addition to the method shown, an embodiment of the specification also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are executed.

[0126] The embodiment of the present specification also provides a computer-readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the following Figures 1 to 4 The method shown.

[0127] The embodiments of the present specification also provide a computer program product, including at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the following Figures 1 to 4 The method shown.

[0128] It should be understood that in the various embodiments of this specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this specification.

[0129] It should also be understood that in the embodiments of this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this specification generally indicates that the associated objects before and after are in an "or" relationship.

[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this specification.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.

[0134] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0136] Specific embodiments are used in this specification to illustrate the principles and implementation methods of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of this specification. At the same time, for those skilled in the art, according to the ideas of this specification, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this specification.

Claims

1. A fraudulent transaction detection method, characterized in that: The method comprises: Acquire the transaction data to be tested, and construct a transaction graph to be tested according to the transaction data to be tested; querying, from the tested transaction graph, a path matching each path in a risk path set according to predefined transaction attributes, wherein the risk path set is determined according to the paths in the fraud graph constructed based on historical fraud transaction data; The corresponding transaction in the queried path is determined to be a fraudulent transaction.

2. The method according to claim 1, characterized in that The predefined transaction attributes include a transaction security index, a transaction trust index and a risk factor; wherein: The transaction security index is used to characterize the security level of transactions between nodes; The transaction trust index is used to characterize the degree of trust in transactions between nodes; The risk factor is used to characterize the possibility of fraudulent transaction behavior in the node.

3. The method according to claim 1, characterized in that The step of searching the transaction graph to be tested for a path that matches each path in the risk path set according to the predefined transaction attributes includes: Mark all paths in the risk path set as to be matched; Randomly select a path to be matched, obtain the transaction attribute value of the path to be matched, and set the transaction attribute constraint condition according to the transaction attribute value; Randomly select a node with an in-degree of zero from the transaction graph to be tested and use it as the starting node; Obtain all adjacent node sets of the starting node; Calculate the constraint function value from the starting node to each adjacent node in the adjacent node set, and select the first K adjacent nodes whose constraint function values ​​satisfy the transaction attribute constraint condition and are the smallest as candidate nodes; Determine whether there is an end node with an out-degree of zero among the candidate nodes. If so, calculate the matching degree between the path from the start node to the end node and the path to be matched, take the path with the largest matching degree as the matching path with the path to be matched, and mark the path to be matched as visited; If not, each candidate node is used as a new initial node, and the steps of determining the starting node to the candidate node are repeated; Repeat the steps of randomly selecting a path to be matched and the steps thereafter until all the paths to be matched in the risk path set are matched.

4. The method according to claim 3, characterized in that The calculating of the constraint function value from the starting node to each adjacent node in the adjacent node set includes: Obtaining a random path from the fraud graph, and determining transaction attributes of the random path, wherein the transaction attributes include a transaction security index, a transaction trust index, and a risk coefficient; Constraining the transaction attributes of each connection node from the starting node to the adjacent node set according to the transaction attributes of the random path; For the transaction attribute constraints from the starting node to each connection node in the adjacent node set, a maximum value is selected from the transaction attribute constraints as a constraint function value from the starting node to the adjacent node in the adjacent node set.

5. The method according to claim 3, characterized in that: The calculating the matching degree between the path corresponding to the starting node to the end node and the path to be matched includes: Calculate the transaction attribute aggregation value of the path corresponding to the starting node to the end node; The transaction attribute aggregation values ​​of the path corresponding to the starting node to the end node are weighted and summed to obtain the matching degree between the path corresponding to the starting node to the end node and the path to be matched.

6. The method according to claim 5, characterized in that The transaction attributes include first-class attributes and second-class attributes, wherein the first-class attributes represent the attributes between a node and its adjacent nodes, and the second-class attributes are node attributes; Calculating the aggregate value of the first-class attribute of the path corresponding to the start node to the end node includes: calculating the first-class attribute of each node in the path corresponding to the start node to the end node, and performing multiplication calculation on the first-class attribute of each node to obtain the aggregate value of the first-class attribute of the path corresponding to the start node to the end node; Calculating the aggregate value of the second type of attribute of the path corresponding to the starting node to the end node includes: calculating the second type of attribute for each node in the path corresponding to the starting node to the end node; adding and averaging the second type of attribute for each node in the path corresponding to the starting node to the end node; and determining the summed and averaged result as the aggregate value of the second type of attribute of the path corresponding to the starting node to the end node.

7. A fraudulent transaction detection device, characterized in that: The device comprises: An acquisition module, used to acquire the transaction data to be tested, and construct a transaction graph to be tested according to the transaction data to be tested; A query module, configured to query a path matching each path in a risk path set from the transaction graph to be tested according to predefined transaction attributes, wherein the risk path set is determined according to the paths in the fraud graph constructed based on historical fraud transaction data; The determination module is used to determine the corresponding transaction in the queried path as a fraudulent transaction.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The method comprises at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the method according to any one of claims 1 to 6.