Search

US-20260127042-A1 - RESOURCE TRANSFER INFORMATION DETECTION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM

US20260127042A1US 20260127042 A1US20260127042 A1US 20260127042A1US-20260127042-A1

Abstract

A resource transfer information detection method and apparatus are provided. In a process of performing resource transfer path search on a resource transfer relationship graph, a current search node, a reference node that points to the current search node and that is in a current resource transfer path, and a candidate node that the current search node points to and that is in the resource transfer relationship graph are determined. A first resource transfer time is obtained between the current search node and the reference node and a second resource transfer time between the current search node and the candidate node is obtained. When the first resource transfer time and the second resource transfer time satisfy a time difference condition, the candidate node is added to the current resource transfer path to detect a target resource transfer path.

Inventors

  • Wenhao Li

Assignees

  • TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED

Dates

Publication Date
20260507
Application Date
20260106
Priority Date
20211020

Claims (20)

  1. 1 . A resource transfer information detection method performed by a computer device, comprising: obtaining a resource transfer identifier pair corresponding to a resource transfer identifier set, the resource transfer identifier set comprising a plurality of resource transfer identifiers; determining a resource transfer direction corresponding to the resource transfer identifier pair; determining a resource transfer identifier in the resource transfer identifier set as a node in a resource transfer relationship graph; performing directed edge connection on nodes corresponding to the resource transfer identifier pair according to the resource transfer direction to obtain the resource transfer relationship graph; determining a current search node in a current resource transfer path that is currently found based on the resource transfer relationship graph; determining a reference node and a candidate node corresponding to the current search node in the current resource transfer path; determining a first resource transfer time between the current search node and the reference node and a second resource transfer time between the current search node and the candidate node; and adding, when the first resource transfer time and the second resource transfer time satisfy a time difference condition, the candidate node to the current resource transfer path to detect a target resource transfer path, wherein the time difference condition is a time difference condition of flowing of a target resource from the reference node sequentially to the current search node and the candidate node.
  2. 2 . The method according to claim 1 , wherein each resource transfer identifier pair includes two resource transfer identifiers with a resource transfer relationship in the resource transfer identifier set.
  3. 3 . The method according to claim 1 , wherein determining the current search node in the current resource transfer path that is currently found comprises performing resource transfer path search on the resource transfer relationship graph.
  4. 4 . The method according to claim 1 , wherein determining the reference node and the candidate node corresponding to the current search node in the current resource transfer path comprises: determining a node that points to the current search node and that is in the current resource transfer path as the reference node; and determining a node that the current search node points to and that is in the resource transfer relationship graph as the candidate node.
  5. 5 . The method according to claim 1 , wherein determining the first resource transfer time between the current search node and the reference node comprises: obtaining a resource transfer record set between the current search node and the reference node, the resource transfer record set comprising a plurality of resource transfer records; performing a weighted calculation on the resource transfer time in the resource transfer record set based on a resource transfer value in each resource transfer record to obtain the first resource transfer time between the current search node and the reference node.
  6. 6 . The method according to claim 5 , wherein performing the weighted calculation on the resource transfer time in the resource transfer record set based on the resource transfer value in each resource transfer record to obtain the first resource transfer time comprises: obtaining resource transfer time and the resource transfer value in each resource transfer record; determining a time weight corresponding to the resource transfer time based on the resource transfer value, the time weight is in positive correlation with the resource transfer value; and performing the weighted calculation on the resource transfer time in the resource transfer record set based on the time weight corresponding to the resource transfer time to obtain the first resource transfer time between the current search node and the reference node.
  7. 7 . The method according to claim 6 , wherein determining the time weight corresponding to the resource transfer time based on the resource transfer value comprises: summing resource transfer values in the resource transfer record set to obtain a resource transfer statistical value; calculating a ratio of the resource transfer value to the resource transfer statistical value; and determining the ratio as the time weight corresponding to the resource transfer time.
  8. 8 . The method according to claim 1 , wherein the first resource transfer time is first last resource transfer time from the reference node to the current search node and the second resource transfer time is second initial resource transfer time from the current search node to the candidate node.
  9. 9 . The method according to claim 8 , wherein determining the first resource transfer time and the second resource transfer time satisfy the time difference condition comprises: determining a time sequence between the first last resource transfer time and the second initial resource transfer time; and determining, when the time sequence indicates that the first last resource transfer time is earlier than the second initial resource transfer time, that the first resource transfer time and the second resource transfer time satisfy the time difference condition.
  10. 10 . The method according to claim 9 , further comprising: obtaining a first time difference value between the first last resource transfer time and the second initial resource transfer time such that the time sequence indicates that the first last resource transfer time is later than the second initial resource transfer time; obtaining first initial resource transfer time from the reference node to the current search node; obtaining second last resource transfer time from the current search node to the candidate node; obtaining a second time difference value between the second last resource transfer time and the first initial resource transfer time; calculating a time ratio between the first time difference value and the second time difference value; and determining, when the time ratio is less than a preset ratio threshold, that the first resource transfer time and the second resource transfer time satisfy the time difference condition.
  11. 11 . The method according to claim 1 , wherein adding, when the first resource transfer time and the second resource transfer time satisfy the time difference condition, the candidate node to the current resource transfer path to detect the target resource transfer path comprises: obtaining a first resource transfer amount from the reference node to the current search node and a second resource transfer amount from the current search node to the candidate node; and adding, when the first resource transfer time and the second resource transfer time satisfy the time difference condition and a resource amount difference between the first resource transfer amount and the second resource transfer amount is less than a preset amount difference, the candidate node to the current resource transfer path to detect the target resource transfer path.
  12. 12 . The method according to claim 11 , wherein determining of the resource amount difference between the first resource transfer amount and the second resource transfer amount comprises: calculating a resource amount ratio between the first resource transfer amount and the second resource transfer amount; determining the resource amount ratio as the resource amount difference; and wherein determining that the resource amount difference between the first resource transfer amount and the second resource transfer amount is less than the preset amount difference comprises: determining, when the resource amount ratio is greater than a first threshold and less than a second threshold, that the resource amount difference between the first resource transfer amount and the second resource transfer amount is less than the preset amount difference, the first threshold is less than 1, and the second threshold is greater than 1.
  13. 13 . The method according to claim 1 , wherein adding, when the first resource transfer time and the second resource transfer time satisfy the time difference condition, the candidate node to the current resource transfer path comprises: obtaining a path attribute identifier corresponding to the candidate node when the first resource transfer time and the second resource transfer time satisfy the time difference condition, wherein the path attribute identifier is added to a node for which there are a plurality of incoming edges in an existing target resource transfer path, and the path attribute identifier is used for identifying a sub-path starting from the node for which there are the plurality of incoming edges in the existing target resource transfer path; obtaining, based on the path attribute identifier, a sub-path starting from the candidate node; and concatenating the sub-path to the current resource transfer path to detect the target resource transfer path.
  14. 14 . The method according to claim 1 , further comprising: determining a node satisfying a preset starting node condition in nodes in the resource transfer relationship graph as a starting node of the current resource transfer path, wherein the preset starting node condition comprises at least one of the following conditions: an out-degree of the node is greater than 0, and an in-degree of the node is less than or equal to a preset threshold; and a ratio of a total resource transfer-in amount of the node to a total resource transfer-out amount of the node is less than a preset ratio.
  15. 15 . The method according to claim 14 , wherein determining the current search node in the current resource transfer path that is currently found comprises: forming, when a resource transfer amount from the starting node to a node that the starting node points to is greater than or equal to a resource transfer amount threshold, the current resource transfer path based on the starting node and the node that the starting node points to; and determining the node that the starting node points to as the current search node.
  16. 16 . A resource transfer information detection apparatus, comprising a memory for storing computer instructions and a processor for executing the computer instructions to: obtain a resource transfer identifier pair corresponding to a resource transfer identifier set, the resource transfer identifier set comprising a plurality of resource transfer identifiers; determine a resource transfer direction corresponding to the resource transfer identifier pair; determine a resource transfer identifier in the resource transfer identifier set as a node in a resource transfer relationship graph; perform directed edge connection on nodes corresponding to the resource transfer identifier pair according to the resource transfer direction to obtain the resource transfer relationship graph; determine a current search node in a current resource transfer path that is currently found based on the resource transfer relationship graph; determine a reference node and a candidate node corresponding to the current search node in the current resource transfer path; determine a first resource transfer time between the current search node and the reference node and a second resource transfer time between the current search node and the candidate node; and add, when the first resource transfer time and the second resource transfer time satisfy a time difference condition, the candidate node to the current resource transfer path to detect a target resource transfer path, wherein the time difference condition is a time difference condition of flowing of a target resource from the reference node sequentially to the current search node and the candidate node.
  17. 17 . The resource transfer information detection apparatus according to claim 16 , wherein the processor, when being configured to determine the current search node in the current resource transfer path that is currently found, configure the processor to: perform resource transfer path search on the resource transfer relationship graph.
  18. 18 . The resource transfer information detection apparatus according to claim 16 , wherein the processor, when being configured to determine the reference node and the candidate node corresponding to the current search node in the current resource transfer path, configure the processor to: determine a node that points to the current search node and that is in the current resource transfer path as the reference node; and determine a node that the current search node points to and that is in the resource transfer relationship graph as the candidate node.
  19. 19 . A non-transitory storage medium for storing computer readable instructions, the computer readable instructions, when executed by a processor, causing the processor to: obtain a resource transfer identifier pair corresponding to a resource transfer identifier set, the resource transfer identifier set comprising a plurality of resource transfer identifiers; determine a resource transfer direction corresponding to the resource transfer identifier pair; determine a resource transfer identifier in the resource transfer identifier set as a node in a resource transfer relationship graph; perform directed edge connection on nodes corresponding to the resource transfer identifier pair according to the resource transfer direction to obtain the resource transfer relationship graph; determine a current search node in a current resource transfer path that is currently found based on the resource transfer relationship graph; determine a reference node and a candidate node corresponding to the current search node in the current resource transfer path; determine a first resource transfer time between the current search node and the reference node and a second resource transfer time between the current search node and the candidate node; and add, when the first resource transfer time and the second resource transfer time satisfy a time difference condition, the candidate node to the current resource transfer path to detect a target resource transfer path, wherein the time difference condition is a time difference condition of flowing of a target resource from the reference node sequentially to the current search node and the candidate node.
  20. 20 . A computer device, comprising a memory and a processor, the memory storing computer-readable instructions executable by the processor to configure the processor to implement the method according to claim 1 .

Description

RELATED APPLICATION The present application is a continuation application of and claims the benefit of priority to U.S. patent application Ser. No. 18/326,652 filed on May 31, 2023, which is a continuation of PCT application PCT/CN2022/117568, filed Sep. 7, 2022, which claims priority to Chinese Patent Application No. 202111221459.0, entitled “RESOURCE TRANSFER INFORMATION DETECTION METHOD AND APPARATUS, DEVICE, AND STORAGE MEDIUM” filed with the China National Intellectual Property Administration on Oct. 20, 2021. All are incorporated by reference in their entirety. FIELD OF THE TECHNOLOGY The present subject matter relates to the field of computer technologies, and in particular, to a resource transfer information detection method and apparatus, a computer device, storage medium, and a computer program product. BACKGROUND With development of a computer technology and an Internet technology, an Internet-based online payment platform emerges, and a user may transfer money on the online payment platform. This greatly improves transaction efficiency, and reduces transaction costs. In many cases, it is necessary to detect resource transfer information, for example, detect a transfer operation on a resource of an unauthenticated source. Currently, manual detection is mainly performed, resulting in low resource transfer information detection efficiency. BRIEF SUMMARY A resource transfer information detection method is provided. The method includes: obtaining a resource transfer identifier set, the resource transfer identifier set including a plurality of resource transfer identifiers;obtaining a resource transfer identifier pair corresponding to the resource transfer identifier set, and determining a resource transfer direction corresponding to the resource transfer identifier pair, each resource transfer identifier pair including two resource transfer identifiers with a resource transfer relationship in the resource transfer identifier set;determining a resource transfer identifier in the resource transfer identifier set as a node in a resource transfer relationship graph, and performing directed edge connection on nodes corresponding to the resource transfer identifier pair according to the resource transfer direction to obtain the resource transfer relationship graph;determining, in a process of performing resource transfer path search on the resource transfer relationship graph, a current search node in a current resource transfer path that is currently found, determining a node that points to the current search node and that is in the current resource transfer path as a reference node, and determining a node that the current search node points to and that is in the resource transfer relationship graph as a candidate node;determining first resource transfer time between the current search node and the reference node and second resource transfer time between the current search node and the candidate node; andadding, when the first resource transfer time and the second resource transfer time satisfy a time difference condition, the candidate node to the current resource transfer path to detect a target resource transfer path, the time difference condition is a time difference condition of flowing of a target resource from the reference node sequentially to the current search node and the candidate node. A resource transfer information detection apparatus is provided. The apparatus includes: an identifier set obtaining module configured to obtain a resource transfer identifier set, the resource transfer identifier set including a plurality of resource transfer identifiers;a transfer direction determining module configured to obtain a resource transfer identifier pair corresponding to the resource transfer identifier set, and determine a resource transfer direction corresponding to the resource transfer identifier pair, each resource transfer identifier pair including two resource transfer identifiers with a resource transfer relationship in the resource transfer identifier set;a relationship graph obtaining module configured to determine a resource transfer identifier in the resource transfer identifier set as a node in a resource transfer relationship graph, and perform directed edge connection on nodes corresponding to the resource transfer identifier pair according to the resource transfer direction to obtain the resource transfer relationship graph;a node determining module configured to determine, in a process of performing resource transfer path search on the resource transfer relationship graph, a current search node in a current resource transfer path that is currently found, determine a node that points to the current search node and that is in the current resource transfer path as a reference node, and determine a node that the current search node points to and that is in the resource transfer relationship graph as a candidate node;a time determining module configured to determine first resource trans