A transaction risk detection method, device and equipment
By calculating resource quantity balance and blockchain smart contract identification within transaction nodes in the Internet financial field, the problem of high difficulty in identifying money laundering risks is solved, and accurate identification and interpretive determination of money laundering transactions are achieved.
Patent Information
- Application Number
- CN202110925763.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-08-12
AI Technical Summary
In the field of Internet finance, it is difficult for existing technologies to accurately identify money laundering risks, especially due to the lack of training samples and similar fraud risk characteristics, which makes it difficult to identify money laundering risks. Moreover, money laundering transactions are similar to conventional large-amount transfers, making it difficult to build an effective detection model.
By obtaining the number of resources received by the target transaction node and the number of resources transferred out within the preset detection period, the balance of the number of resources is calculated. If the preset risk conditions are met, it is judged that there is a transaction risk, and a method is provided to determine account money laundering. Probability measurement mechanism and deploy smart contracts in the blockchain system for risk identification.
It achieves strong interpretability from the essential level of money laundering risks, takes into account the accuracy of risk prevention and control and compliance interpretability, and improves the accuracy of identifying money laundering transactions.
Smart Images

Figure CN113706154B
Abstract
Description
Technical Field
[0001] This document relates to the field of computer technology, and in particular to a method, device and equipment for detecting transaction risks. Background Art
[0002] There are various transaction risks in the field of Internet finance, such as fraud risk, credit risk, money laundering risk, etc.
[0003] Among the above transaction risks, some transaction risks (such as money laundering risk) are difficult to identify. For example, there are no users who suffer losses in money laundering risk, and based on this, there are no complaints against money laundering risk. Therefore, it is difficult to accurately identify money laundering risk. In addition, due to the lack of training samples, it is difficult to apply the commonly used supervised machine learning algorithm to build a detection model for money laundering risk. Moreover, it is also difficult to obtain risk characteristics similar to fraud risk for money laundering risk (in fraudulent transactions, the fraudsters often have a large number of fraudulent operations, such as screenshots, frequent information exchanges, etc., and the fraudulent transactions can be characterized based on the above information). From the transaction itself, money laundering transactions are very similar to conventional large-amount transfers. To this end, it is necessary to provide a measurement mechanism for determining the probability of money laundering in an account, and it is necessary to provide strong explanatory power from the essential level of money laundering risk. Summary of the invention
[0004] The purpose of the embodiments of this specification is to provide a measurement mechanism for determining the probability of money laundering in an account, and to provide strong explanations from the essence of money laundering risk.
[0005] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:
[0006] An embodiment of the present specification provides a method for detecting transaction risks, the method comprising: obtaining a first quantity of resources received by a target transaction node within a preset detection period, and obtaining a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold. Based on the first quantity and the second quantity, the quantity of resources transferred by the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period are determined respectively. If within the detection period, the quantity of resources transferred by the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk.
[0007] A transaction risk detection method provided by an embodiment of this specification is applied to a blockchain system, the method comprising: receiving risk identification rule information corresponding to the money laundering risk of a transaction node, and deploying a smart contract corresponding to the risk identification rule information to the blockchain system, wherein the risk identification rule information includes the conditions that need to be met for the transaction node to have a money laundering risk. When a preset detection period is reached, a first quantity of resources received by the target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold. Based on the smart contract, the quantity of resources transferred by the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period are determined respectively by the first quantity and the second quantity. If within the detection period, the quantity of resources transferred by the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering condition of the smart contract, then the judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract.
[0008] An embodiment of the present specification provides a device for detecting transaction risks, the device comprising: a quantity acquisition module, which acquires a first quantity of resources received by a target transaction node within a preset detection period, and acquires a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold. A parameter determination module, which determines, based on the first quantity and the second quantity, the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period, respectively. A risk determination module, which determines that the target transaction node has a transaction risk if, within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet a preset risk condition.
[0009] The embodiment of this specification provides a device for detecting transaction risks, the device is a device in a blockchain system, and the device includes: a contract deployment module, receiving risk identification rule information corresponding to the money laundering risk of a transaction node, and deploying a smart contract corresponding to the risk identification rule information to the blockchain system, wherein the risk identification rule information includes the conditions that need to be met for the transaction node to have money laundering risks. A quantity acquisition module, when a preset detection cycle is reached, acquires the first quantity of resources received by the target transaction node within the preset detection cycle, and acquires the second quantity of resources transferred by the target transaction node within the detection cycle, and the duration corresponding to the detection cycle is less than the preset duration threshold. A parameter determination module, based on the smart contract, determines the quantity of resources transferred through the target transaction node within the detection cycle and the balance between the resources received by the target transaction node and the transferred resources within the detection cycle through the first quantity and the second quantity. A risk judgment module, if within the detection cycle, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, then determines the judgment result of whether the target transaction node has transaction risks based on the smart contract.
[0010] A transaction risk detection device provided by an embodiment of the present specification includes: a processor; and a memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor: obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold. Based on the first quantity and the second quantity, the quantity of resources transferred by the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period are determined respectively. If within the detection period, the quantity of resources transferred by the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk.
[0011] The embodiment of this specification provides a transaction risk detection device, the device is a device in a blockchain system, the device includes: a processor; and a memory arranged to store computer executable instructions, the executable instructions when being executed make the processor: receive risk identification rule information corresponding to the money laundering risk of the transaction node, and deploy the smart contract corresponding to the risk identification rule information to the blockchain system, the risk identification rule information includes the conditions that need to be met for the transaction node to have money laundering risk. When the preset detection cycle is reached, the first quantity of resources received by the target transaction node in the preset detection cycle is obtained, and the second quantity of resources transferred by the target transaction node in the detection cycle is obtained, and the duration corresponding to the detection cycle is less than the preset duration threshold. Based on the smart contract, the first quantity and the second quantity are used to determine the quantity of resources transferred by the target transaction node in the detection cycle and the balance between the resources received by the target transaction node and the transferred resources in the detection cycle. If, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, the judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract.
[0012] The embodiment of the present specification also provides a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: obtain a first quantity of resources received by the target transaction node within a preset detection period, and obtain a second quantity of resources transferred by the target transaction node within the detection period, and the duration corresponding to the detection period is less than a preset duration threshold. Based on the first quantity and the second quantity, determine the quantity of resources transferred by the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period. If within the detection period, the quantity of resources transferred by the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk.
[0013] The embodiment of this specification also provides a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: receiving risk identification rule information corresponding to the money laundering risk of the transaction node, and deploying the smart contract corresponding to the risk identification rule information in the blockchain system, wherein the risk identification rule information includes the conditions that need to be met for the transaction node to have money laundering risk. When the preset detection period is reached, the first quantity of resources received by the target transaction node within the preset detection period is obtained, and the second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than the preset duration threshold. Based on the smart contract, the first quantity and the second quantity are used to determine the quantity of resources transferred by the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period. If within the detection period, the quantity of resources transferred by the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering condition of the smart contract, then the judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] 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 recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0015] Figure 1 This is an embodiment of a transaction risk detection method of this specification;
[0016] Figure 2 This is a schematic diagram of the resource transfer process of a transaction node in this specification;
[0017] Figure 3 This is another embodiment of a method for detecting transaction risks in this specification;
[0018] Figure 4 This is another embodiment of a transaction risk detection method of this specification;
[0019] Figure 5A This is another embodiment of a transaction risk detection method of this specification;
[0020] Figure 5B This is a schematic diagram of another transaction risk detection process in this specification;
[0021] Figure 6 This is a schematic diagram of a processing process for detecting another transaction risk in this specification;
[0022] Figure 7 This is an embodiment of a transaction risk detection device of this specification;
[0023] Figure 8 This is another embodiment of a transaction risk detection device of this specification;
[0024] Fig. 9 This is an embodiment of a transaction risk detection device in this specification. DETAILED DESCRIPTION
[0025] The embodiments of this specification provide a transaction risk detection method, device and equipment.
[0026] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of this specification.
[0027] Embodiment 1
[0028] like Figure 1 As shown, the embodiment of this specification provides a transaction risk detection method, the execution subject of the method can be a server, wherein the server can be a server of a certain business (such as a business for conducting transactions or a financial business, etc.), specifically, the server can be a payment service server, or a server for services related to finance or instant messaging, etc., or it can also be a server for detecting whether an account in a database has a specified risk. The method can specifically include the following steps:
[0029] In step S102, a first quantity of resources received by the target transaction node within a preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold.
[0030] Among them, the target transaction node can be any transaction node, and the transaction node can be an account, which can be set according to the actual situation, and the embodiment of this specification does not limit this. The detection period can be a pre-set period for risk detection of transactions, such as the duration corresponding to the detection period can be 10 minutes, 15 minutes or 30 minutes, etc., which can be set according to the actual situation, and the embodiment of this specification does not limit this. The first transaction node can be a transaction node that transfers resources to the target transaction node. In actual applications, the first transaction node can also be called an upstream transaction node (that is, relative to the target transaction node, in the direction of resource transfer, the first transaction node is located before or upstream of the target transaction node). Resources can be currency or points and other objects that can be traded, which can be set according to the actual situation, and the embodiment of this specification does not limit this. The first quantity can be the total number of resources whose use rights of resources are transferred to the target transaction node within the detection period. For example, transaction node A transfers resources of quantity A1 to the target transaction node, transaction node B transfers resources of quantity B1 to the target transaction node, and transaction node C transfers resources of quantity C1 to the target transaction node, then the first quantity can be A1+B1+C1. The second transaction node may be a transaction node that receives resources transferred from the target transaction node. In practical applications, the second transaction node may also be referred to as a downstream transaction node (i.e., relative to the target transaction node, in the direction of resource transfer, the second transaction node is located after or downstream of the target transaction node). The second quantity may be the total quantity of resources transferred from the target transaction node received within the detection period. For example, the target transaction node transfers resources of quantity D1 to transaction node D, the target transaction node transfers resources of quantity E1 to transaction node E, and the target transaction node transfers resources of quantity F1 to transaction node F. Then, the second quantity may be D1+E1+F1. The duration threshold may be set according to actual conditions, such as based on expert experience, such as 10 minutes, 15 minutes, or 30 minutes, etc., which is not limited in the embodiments of this specification.
[0031] In practice, there will be various transaction risks in the field of Internet finance, such as fraud risk, credit risk, money laundering risk, etc.
[0032] Among the above-mentioned transaction risks, some transaction risks (such as money laundering risks) are difficult to identify. For example, there are no users who suffer losses in money laundering risks, and based on this, there are no complaints against money laundering risks. Therefore, it is difficult to accurately identify money laundering risks. In addition, due to the lack of training samples, it is difficult to apply the commonly used supervised machine learning algorithm to build a detection model for money laundering risks. Moreover, it is also difficult for money laundering risks to obtain risk characteristics similar to fraud risks (in fraudulent transactions, the fraudsters often have a large number of fraudulent operations, such as screenshots, frequent information interactions, etc., and the fraudulent transactions can be characterized based on the above information). From the perspective of the transaction itself, money laundering transactions are very similar to conventional large-scale transfers. For this reason, it is necessary to provide a measurement mechanism for determining the probability of money laundering in an account, and it is necessary to generate strong interpretability from the essential level of money laundering risks. The embodiments of this specification provide an achievable processing method, which may specifically include the following contents:
[0033] In a typical money laundering transaction, resources usually flow in from multiple accounts at the entry layer, and after a rapid circulation of more than two layers, the above resources are dispersed, the resource circulation links are obfuscated, and finally flow to the account at the exit layer for withdrawal. Based on the above, money laundering transactions usually have the following characteristics: (1) The amount of resources transferred is large: the number of available accounts is limited, so the amount of resources that need to be circulated in the transaction node of each account is large; (2) The resource circulation speed is fast: since the stay of resources in the account increases the risk of the resource being frozen, the resources are usually circulated in the shortest possible time; (3) For any transaction node, the amount of resources flowing in and the amount of resources flowing out are roughly balanced (or the difference between the two is less than the preset threshold).
[0034] Based on the above three characteristics, a measurement mechanism for determining the probability of money laundering in an account can be proposed. Specifically, Figure 2As shown, on the time axis, the four-layer transaction nodes quickly transfer a certain amount of resources, wherein the thickness of the directed line segment represents the amount of resources, the thicker the directed line segment, the more resources are transferred, and the thinner the directed line segment, the fewer resources are transferred. A transaction node can be selected from the transaction as the target transaction node, and a time threshold can be pre-set according to actual conditions. At the same time, a corresponding detection period can be set based on the preset time threshold. When the start time of a certain detection period is reached, relevant information of the target transaction node can be recorded, for example, the amount, time and relevant information of the above-mentioned transaction node (such as the name of the transaction node, the identifier of the corresponding account, etc.) of the resources transferred from other transaction nodes (i.e., the first transaction node) received, as well as the amount, time and relevant information of the above-mentioned transaction node (such as the name of the transaction node, the identifier of the corresponding account, etc.) transferred to other transaction nodes (i.e., the second transaction node) until the end time of the detection period. Then, the first amount of resources transferred by the target transaction node from the first transaction node within the detection period can be obtained, and the second amount of resources transferred by the target transaction node to the second transaction node within the detection period can be obtained. For example, Figure 2 As shown, if the target transaction node is B3, the resources received by the target transaction node come from transaction nodes A1, A2 and A3, and the receiving transaction nodes for the resources transferred out by the target transaction node are C1 and C2. For another example, if the target transaction node is A2, the resources received by the target transaction node come from the resources initially deposited by the user to the target transaction node, and the receiving transaction nodes for the resources transferred out by the target transaction node are B2, B3, B5 and B6.
[0035] In step S104, based on the first quantity and the second quantity, the quantity of resources transferred by the target transaction node during the detection period and the balance between the resources received and transferred by the target transaction node during the detection period are determined respectively.
[0036] Among them, the amount of resources transferred through the target transaction node during the above detection period can be the amount of resources transferred to other transaction nodes and directly output during the detection period. The amount of resources can be used to determine whether the target transaction node is a transaction node with a large amount of transferred resources and a fast resource turnover speed, that is, to determine whether the target transaction node meets two of the above three characteristics, namely, the large amount of transferred resources and the fast resource turnover speed. The above balance degree can be used to determine whether the target transaction node meets the remaining characteristic of the above three characteristics, that is, for any transaction node, the inflow amount of resources and the outflow amount of resources are roughly balanced.
[0037] In implementation, after obtaining the first quantity and the second quantity in the above manner, the first quantity can be compared with the second quantity, and the smaller value of the two quantities can be obtained. Then, the quantity of resources transferred through the target transaction node within the above detection period can be determined by the smaller value of the two quantities. Specifically, for example, the difference between the smaller value of the two quantities and a preset value (which can be determined based on the average difference between resource transfer-out and resource transfer-in during the resource transfer process or set according to expert experience) can be calculated, and the obtained difference can be determined as the quantity of resources transferred through the target transaction node within the above detection period, etc. In actual applications, a variety of different processing methods can also be included, which can be set specifically according to actual conditions, and the embodiments of this specification do not limit this.
[0038] The difference between the first quantity and the second quantity can be calculated, and then the calculated difference can be divided by the first quantity or the second quantity to obtain a corresponding calculation result. The obtained calculation result can be determined as the balance between the resources received and the transferred resources by the target transaction node during the detection period, etc. In practical applications, a variety of different processing methods can be included, which can be set according to actual conditions, and the embodiments of this specification do not limit this.
[0039] In step S106, if within the above detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk.
[0040] Among them, the risk condition can be pre-set to determine whether there is a specified risk condition, such as a money laundering risk condition, etc., which can be set according to actual conditions, and the embodiments of this specification do not limit this.
[0041] In implementation, after obtaining the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources in the above-mentioned detection period in the above-mentioned manner, the first measurement parameter for measuring whether the magnitude of the number of transferred resources is large and the second measurement parameter for measuring whether the resource circulation speed is fast can be calculated based on the number of resources transferred through the target transaction node in the above-mentioned detection period. The first measurement parameter and the second measurement parameter can be calculated in various ways. For example, the ratio of the number of resources transferred through the target transaction node in the above-mentioned detection period to a preset value can be calculated, and the obtained ratio can be used as the first measurement parameter. In addition, the ratio of the number of resources transferred through the target transaction node in the above-mentioned detection period to the duration corresponding to the detection period can be calculated, and the obtained ratio can be used as the second measurement parameter. The specific setting can also be based on the actual situation, and the embodiments of this specification are not limited to this.
[0042] The obtained first metric parameter can be compared with the corresponding threshold value in the preset risk condition. If the risk condition is met, the obtained second metric parameter can be compared with the corresponding threshold value in the preset risk condition. If the risk condition is met, the balance between the resources received by the target transaction node and the transferred resources can be compared with the corresponding threshold value in the preset risk condition. If the risk condition is met, it can be determined that the target transaction node has a transaction risk, that is, the account corresponding to the target transaction node has a transaction risk. In this embodiment, it can be determined that the account corresponding to the target transaction node is an account in a money laundering transaction, and the transaction corresponding to the target transaction node is a money laundering transaction. Otherwise, it can be determined that the target transaction node does not have a transaction risk, or the target transaction node or its corresponding transaction can be marked, and then the corresponding service personnel can conduct a risk assessment on this transaction, and determine whether to continue this transaction or freeze the target transaction node and its related transaction nodes according to the final risk assessment results.
[0043] The embodiments of the present specification provide a method for detecting transaction risks, which obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold, and then, based on the first quantity and the second quantity, determines the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period, respectively; if within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and is able to comprehensively consider three major characteristics, namely, resource flow, resource transfer velocity, and resource inflow and resource outflow balance, to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0044] Embodiment 2
[0045] like Figure 3 As shown, the embodiment of this specification provides a transaction risk detection method, the execution subject of the method can be a server, wherein the server can be a server of a certain business (such as a business for conducting transactions or a financial business, etc.), specifically, the server can be a payment service server, or a server for services related to finance or instant messaging, etc., or it can also be a server for detecting whether an account in a database has a specified risk. The method can specifically include the following steps:
[0046] In step S302, a first quantity of resources received by the target transaction node within a preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold.
[0047] In implementation, Figure 2 As shown, the transaction node is recorded as v, and the transaction node Transfer to transaction node The number of resources is used as the weight of the edge (directed line segment), denoted as , that is, during this detection period, the transaction node To the transaction node The total amount of resources transferred. Transaction Node Upstream transaction node (i.e., to transaction node The set of transaction nodes that transfer resources is recorded as , downstream transaction node (i.e. receiving transaction node The transaction nodes of the transferred resources) are recorded as , then the transaction node have:
[0048] (1)
[0049] in, Represents a transaction node a second quantity of resources transferred out during the detection period,
[0050] (2)
[0051] in, Represents a transaction node The first quantity of resources transferred out during the detection period.
[0052] Based on the above method, the first quantity of resources received by the target transaction node within a preset detection period and the second quantity of resources transferred by the target transaction node within the detection period can be obtained respectively.
[0053] In step S304, the values of the first quantity and the second quantity are compared to obtain the quantity with the smallest value.
[0054] In implementation, if the second number is smaller than the first number, the second number can be obtained and the second number can be used as the number with the smallest value. If the first number is smaller than the second number, the first number can be obtained and the first number can be used as the number with the smallest value, that is, .
[0055] In step S306, the quantity of resources transferred through the target transaction node within the above detection period is determined based on the obtained minimum quantity.
[0056] In implementation, the processing of the above step S306 can obtain the number with the smallest value between the first number and the second number, and then, the number with the smallest value can be directly used as the number of resources transferred through the target transaction node within the above detection period, or, it can be pre-set such as the average difference between resource transfer-out and resource transfer-in during the resource transfer process or a specified value set according to expert experience, and the difference between the above-mentioned number with the smallest value and the above-mentioned pre-set value can be calculated, and the obtained difference can be used as the number of resources transferred through the target transaction node within the above detection period. In actual applications, in addition to the above implementation, the number of resources transferred through the target transaction node within the above detection period can also be determined in a variety of different ways, which can be set specifically according to actual conditions, and the embodiments of this specification do not limit this.
[0057] In step S308, the difference between the first quantity and the second quantity is calculated, and based on the calculated difference and a preset coefficient indicating the tolerance of the party with the right to use the resources to retain the resources at the target transaction node, the balance between the resources received and the resources transferred out by the target transaction node during the above-mentioned detection period is determined.
[0058] Among them, the preset coefficient can be used to indicate the tolerance of the party with the right to use the resources to retain the resources in the target transaction node. Since the resources circulated in the money laundering transaction do not belong to the account corresponding to the transaction node, the account corresponding to the transaction node can only retain a small part of the resources as the reward or fee for the resource transfer, but the party with the right to use the resources can retain the transferred resources in a certain transaction node to achieve the effect of disguise, but at the same time it will also increase the risk of the resources being frozen. Based on this, the above coefficient (i.e., the preset coefficient) can be preset to indicate the degree to which the disguised resources can be tolerated. For example, the number of resources received by a certain transaction node is 60,000, and the number of resources transferred out is 50,000. For the preset coefficient, if the preset coefficient is set to 5, it is considered that the party with the right to use the resources can bear at most 1 / 5*100% of the resources to be transferred for disguise. The determination of the above value can be based on the fact that the reward or fee for resource transfer in the money laundering transaction usually does not exceed 20%. If more than 20% of the resources are disguised, once the transaction node is frozen, it will cause losses to the party with the right to use the resources.
[0059] In implementation, the balance between the resources received and the resources transferred out by the target transaction node during the above detection period can be determined by the following expression:
[0060] - (3)
[0061] in, In actual applications, since the amount of resource transfer-out and the amount of resource transfer-in of a transaction node in a money laundering transaction are roughly balanced, the smaller the value of the above expression is, the greater the probability that the transaction node is a transaction node in a money laundering transaction.
[0062] In step S310, based on the weight corresponding to the number of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, and the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, a weighted sum is taken of the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding result.
[0063] In implementation, based on the above content, we can get
[0064] (4)
[0065] in, To obtain the result, is the weight corresponding to the amount of resources transferred through the target transaction node, The weight corresponding to the balance between the resources received by the target transaction node and the resources transferred out. and The value of can be 1.
[0066] Based on the above formula (4), and in and When the value of is 1, the relevant results shown in Table 1 below can be obtained.
[0067] Table 1
[0068]
[0069] Based on the above Table 1, it can be determined that The larger the value, the higher the risk of money laundering. If the value of is a positive number, the trend relationship between the size remains unchanged. In addition, the closer to the top in Table 1, the lower the retention rate (such as the retained funds ratio) and the higher the money laundering risk. When the maximum reward or maximum fee (such as the handling fee of money laundering transaction) as a resource transfer in money laundering transaction is considered to be 20% (i.e. ), therefore, a retention resource rate higher than the above ratio can be considered that the probability of money laundering risk is not high (such as a negative number in Table 1). , it can be considered that the highest reward or highest fee (such as the handling fee of money laundering transaction) as a resource transfer in money laundering transaction is 16.7% (i.e. ), therefore, a higher retention rate than the above ratio can be considered to indicate that the probability of money laundering risk is not high (such as a negative number in Table 1). It can be considered that the highest reward or highest fee (such as the handling fee of money laundering transaction) as a resource transfer in money laundering transaction is 14.3% (i.e. ), therefore, a retention resource rate higher than the above ratio can be considered that the probability of money laundering risk is not high (such as a negative number in Table 1).
[0070] In step S312, if the obtained result meets the preset risk condition, it is determined that the target transaction node has transaction risk.
[0071] In implementation, in the processing of the above step S312, it is possible to determine whether the target transaction node has transaction risk by setting a threshold in the risk condition. For details, please refer to the above related content and will not be repeated here.
[0072] The embodiments of the present specification provide a method for detecting transaction risks, which obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold, and then, based on the first quantity and the second quantity, determines the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period, respectively; if within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and is able to comprehensively consider three major characteristics, namely, resource flow, resource transfer velocity, and resource inflow and resource outflow balance, to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0073] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0074] Embodiment 3
[0075] like Figure 4 As shown, the embodiment of this specification provides a transaction risk detection method, the execution subject of the method can be a server, wherein the server can be a server of a certain business (such as a business for conducting transactions or a financial business, etc.), specifically, the server can be a payment service server, or a server for services related to finance or instant messaging, etc., or it can also be a server for detecting whether an account in a database has a specified risk. The method can specifically include the following steps:
[0076] In step S402, a first quantity of resources received by the target transaction node within a preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold.
[0077] In step S404, the values of the first quantity and the second quantity are compared to obtain the quantity with the smallest value.
[0078] In step S406, the quantity of resources transferred through the target transaction node within the above detection period is determined based on the obtained minimum quantity.
[0079] In step S408, the difference between the first quantity and the second quantity is calculated, and based on the calculated difference and a preset coefficient indicating the tolerance of the party with the right to use the resources to retain the resources at the target transaction node, the balance between the resources received and the resources transferred out by the target transaction node during the above-mentioned detection period is determined.
[0080] In step S410, based on the weight corresponding to the number of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, and the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, a weighted sum is taken of the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result.
[0081] The first result obtained above can be the result obtained in the above embodiment 2. .
[0082] In step S412, based on the weight corresponding to the amount of resources transferred by each of the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources, a weighted sum is performed on the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources to obtain a second result corresponding to each of the upstream transaction nodes.
[0083] In practice, since money laundering risk is usually a group risk, superimposing neighborhood information can enhance accuracy. To this end, the information of the transaction node itself and the upstream neighborhood nodes can be fused to enhance the measurement accuracy of whether the transaction node is a transaction node in a money laundering transaction. Based on this, the second result corresponding to each transaction node in the upstream transaction node can be calculated separately by the above formula (4). For details, please refer to the above related content, which will not be repeated here.
[0084] In step S414, if it is determined based on the first result, the second result and the information of the upstream transaction node that the target transaction node meets the preset risk condition, it is determined that the target transaction node has a transaction risk.
[0085] In implementation, the first result and the second result can be weightedly summed based on the weight corresponding to the first result, the weight corresponding to the second result, the first result, the second result, and combined with information such as the number of upstream transaction nodes to obtain a corresponding result. Then, based on the obtained result, it is determined whether the target transaction node has a transaction risk. For details, please refer to the above-mentioned related content, which will not be repeated here.
[0086] In practical applications, the processing of the above step S414 can be varied. Two optional processing methods are provided below, which can specifically include the following processing methods 1 and 2.
[0087] Method 1: The following steps A2 and A4 may be included:
[0088] In step A2, a first risk metric value corresponding to the target transaction node is determined based on the first result, the second result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, and the number of transaction nodes included in the upstream transaction node.
[0089] In practice, the following formula can be used
[0090] (5)
[0091] The first risk metric value corresponding to the target transaction node is calculated. is the weight corresponding to the target transaction node, is the weight corresponding to the upstream transaction node, is the kth transaction node included in the upstream transaction node, is the first risk metric, is the number of transaction nodes included in the upstream transaction node. The first term of the above formula (5) is the basic money laundering risk measurement value of the transaction node itself, and the second term is the average basic money laundering risk measurement value of the upstream transaction nodes. In practical applications, Can be , at this time, if If the value of is 0.5, it means that the target transaction node and the upstream transaction node have equal weights.
[0092] In step A4, if the first risk metric value corresponding to the target transaction node meets a preset risk condition, it is determined that the target transaction node has a transaction risk.
[0093] Method 2: The following steps B2 to B6 may be included:
[0094] In step B2, based on the weight corresponding to the amount of resources transferred by each transaction node in the downstream transaction nodes that receive the resources transferred by the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the downstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the downstream transaction nodes and the balance between the resources received by each transaction node in the downstream transaction nodes and the transferred resources, a weighted sum is performed on the amount of resources transferred by each transaction node in the downstream transaction nodes and the balance between the resources received by each transaction node in the downstream transaction nodes and the transferred resources to obtain a third result corresponding to each transaction node in the downstream transaction nodes.
[0095] In implementation, in order to enhance the measurement accuracy of whether a transaction node is a transaction node in a money laundering transaction, the information of the transaction node itself, the information of the upstream neighboring nodes and the information of the downstream neighboring nodes can be integrated. Based on this, the third result corresponding to each transaction node in the downstream transaction node can be calculated respectively by the above formula (4). For details, please refer to the above related content, which will not be repeated here.
[0096] In step B4, based on the first result, the second result, the third result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, the weight corresponding to the downstream transaction node, the number of transaction nodes included in the upstream transaction node, and the number of transaction nodes included in the downstream transaction node, the second risk measurement value corresponding to the target transaction node is determined.
[0097] In practice, the following formula can be used
[0098] (6)
[0099] The second risk metric value corresponding to the target transaction node is calculated. is the weight corresponding to the target transaction node, is the weight corresponding to the upstream transaction node, is the weight corresponding to the upstream transaction node, is the kth transaction node included in the upstream transaction node, is the Lth transaction node included in the downstream transaction node, is the second risk metric, is the number of transaction nodes included in the upstream transaction node, is the number of transaction nodes included in the downstream transaction node. The first term of the above formula (6) is the basic money laundering risk measurement value of the transaction node itself, the middle term is the average basic money laundering risk measurement value of the upstream transaction node, and the last term is the average basic money laundering risk measurement value of the downstream transaction node.
[0100] In step B6, if the second risk metric value corresponding to the target transaction node meets the preset risk condition, it is determined that the target transaction node has a transaction risk.
[0101] It should be noted that the above-mentioned target transaction node, upstream transaction node and downstream transaction node are set in an online streaming framework. In addition, for the processing of the above-mentioned steps A2 and A4, in the online streaming computing framework, the above-mentioned formula (5) can be executed once every time corresponding to the detection cycle, so as to accumulate the number of transferred-in and transferred-out resources of the node, and then the update of the upstream transaction node can be transmitted to the downstream transaction node, thereby forming a streaming dynamic update effect. In addition, in the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles (which can be beneficial to the backup of the calculation result, so as to carry out the subsequent rollback processing of the calculation result, etc.), and the measurement value of the upstream transaction node is continuously accumulated to the downstream transaction node, so that if the upstream transaction node and the target transaction node both meet the characteristics of the money laundering height measurement value, they are superimposed on each other to enhance the discrimination signal.
[0102] The embodiments of the present specification provide a method for detecting transaction risks, which obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold, and then, based on the first quantity and the second quantity, determines the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period, respectively; if within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and is able to comprehensively consider three major characteristics, namely, resource flow, resource transfer velocity, and resource inflow and resource outflow balance, to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0103] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0104] Embodiment 4
[0105] like Figure 5A and Figure 5B As shown, the embodiment of this specification provides a method for detecting transaction risks. The execution subject of the method can be a blockchain system, and the blockchain system can be composed of terminal devices or servers, etc., wherein the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, etc., and can also be a device such as a personal computer. The server can be an independent server, or a server cluster composed of multiple servers. The method can specifically include the following steps:
[0106] In step S502, risk identification rule information corresponding to the money laundering risk of the transaction node is received, and a smart contract corresponding to the risk identification rule information is deployed to the blockchain system. The risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk.
[0107] Among them, a smart contract can be a computer protocol designed to disseminate, verify or execute a contract in an information-based manner. A smart contract allows for trusted interaction without a third party, and the above-mentioned interaction process is traceable and irreversible. The smart contract includes an agreement on which the contract participants can execute the rights and obligations agreed by the contract participants. A smart contract can include triggering conditions for the execution of the smart contract, as well as the results corresponding to the triggering conditions. A smart contract can include one or more triggering conditions, and each triggering condition can correspond to a result. For example, if condition A is met, the transaction node has a money laundering risk, and if condition B is met, the transaction node does not have a money laundering risk, etc.
[0108] In implementation, the conditions that need to be met for a transaction node to have a money laundering risk can be set according to the three characteristics of the money laundering transaction described in the above embodiment, and the risk identification rule information corresponding to the money laundering risk of the transaction node can be constructed based on the condition. In order to make the traceability of transaction node identification better, a designated blockchain system can be created or added. In this way, the money laundering risk of the transaction node can be identified based on the blockchain system. Specifically, a corresponding application can be installed in the blockchain node. The application can be used to identify the money laundering risk of the transaction node or detect whether each transaction node has a money laundering risk. The application can be provided with an input box and / or a selection box for the risk identification rule information corresponding to the money laundering risk, and the corresponding information can be set in the above input box and / or selection box. Then, the blockchain system can receive the risk identification rule information corresponding to the money laundering risk. The blockchain system can generate a corresponding smart contract based on the risk identification rule information corresponding to the money laundering risk, and can deploy the smart contract corresponding to the risk identification rule information corresponding to the money laundering risk to the blockchain system. In this way, the blockchain system stores the risk identification rule information corresponding to the money laundering risk and the corresponding smart contract, and other users cannot tamper with the risk identification rule information corresponding to the money laundering risk and the corresponding smart contract. Moreover, the blockchain system detects transaction nodes through smart contracts.
[0109] In step S504, when the preset detection cycle is reached, the first quantity of resources received by the target transaction node within the preset detection cycle is obtained, and the second quantity of resources transferred by the target transaction node within the detection cycle is obtained, and the duration corresponding to the detection cycle is less than the preset duration threshold.
[0110] In step S506, based on the smart contract, the quantity of resources transferred through the target transaction node during the above detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period are determined respectively by the first quantity and the second quantity.
[0111] In step S508, if within the above detection cycle, the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, the judgment result of whether the target transaction node has transaction risks is determined based on the smart contract.
[0112] Among them, the trigger condition can be a condition that triggers the smart contract to execute a certain result. The smart contract can include one or more different trigger conditions, which can be set according to actual conditions. The embodiments of this specification do not limit this.
[0113] In implementation, after the blockchain system obtains the amount of resources transferred through the target transaction node during the above-mentioned detection period and the balance between the resources received by the target transaction node and the transferred resources during the detection period, it can match or compare them with the trigger conditions in the smart contract. If the amount of resources transferred through the target transaction node during the above-mentioned detection period and the balance between the resources received by the target transaction node and the transferred resources during the detection period can trigger a trigger condition in the smart contract, it indicates that the account information meets the result corresponding to the trigger condition. At this time, the smart contract can obtain the result corresponding to the triggered trigger condition. If the amount of resources transferred through the target transaction node during the above-mentioned detection period and the balance between the resources received by the target transaction node and the transferred resources during the detection period cannot match any trigger condition in the smart contract, it indicates that the target transaction node does not meet the trigger condition of the smart contract.
[0114] The embodiments of this specification provide a method for detecting transaction risks, receiving risk identification rule information corresponding to money laundering risks for transaction nodes, and deploying a smart contract corresponding to the risk identification rule information to a blockchain system. When a preset detection period is reached, a first quantity of resources received by a target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained. Based on the smart contract, the first quantity and the second quantity are used to respectively determine the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period. If within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, then a judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and being able to comprehensively consider three major characteristics, namely, the flow rate of resources, the flow rate of resource transfer, and the balance between resource inflow and resource outflow, to generate strong interpretability from the risk essence level, and to take into account both the accuracy of risk prevention and control and compliance interpretability.
[0115] Embodiment 5
[0116] like Figure 6 As shown, the embodiment of this specification provides a method for detecting transaction risks. The execution subject of the method can be a blockchain system, and the blockchain system can be composed of terminal devices or servers, etc., wherein the terminal device can be a mobile terminal device such as a mobile phone, a tablet computer, etc., and can also be a device such as a personal computer. The server can be an independent server, or a server cluster composed of multiple servers. The method can specifically include the following steps:
[0117] In step S602, risk identification rule information corresponding to the money laundering risk of the transaction node is received, and a smart contract corresponding to the risk identification rule information is deployed to the blockchain system. The risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk.
[0118] In step S604, an information chain request from a transaction node is received, wherein the information chain request includes relevant information of a transaction node for performing resource transfer processing to be uploaded to the blockchain system, wherein the transaction node for performing resource transfer processing includes a target transaction node.
[0119] Among them, the relevant information of the transaction nodes performing resource transfer processing may include the identification of each transaction node, the number of resources received, the receiving time, and the number of resources sent to other transaction nodes, the sending time, etc. In addition, other information related to each transaction node may also be included, which can be set according to actual conditions, and the embodiments of this specification do not limit this.
[0120] In step S606, it is determined whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules.
[0121] Among them, the information verification rules can be rules that can be used to verify the information to be uploaded to the chain. The information verification rules can be set in a variety of different ways. For example, they can be set based on pre-set information tamper-proof rules, or based on the identity of the user who uploads the information to the blockchain system. Corresponding information verification rules can also be set for different business categories to which the information to be uploaded to the chain belongs. Different information verification rules can be set for information to be uploaded to the chain of different business categories, and the specific information verification rules can be set according to actual conditions.
[0122] In implementation, the specific information verification process may include multiple optional processing methods, which may include: verification rules for information verification on the information to be uploaded to the chain may be pre-set, and relevant information of the transaction nodes performing resource transfer processing may be analyzed. For example, the business category corresponding to the relevant information of the transaction nodes performing resource transfer processing may be determined, or the relevant information of the organization or institution corresponding to the relevant information of the transaction nodes performing resource transfer processing may be determined. Then, the corresponding information verification rules may be obtained based on the determined business category or the determined relevant information of the organization or institution. The information related to the transaction node that performs resource transfer processing is verified using the acquired information verification rules, wherein the information verification of the relevant information of the transaction node that performs resource transfer processing may include multiple methods, for example, an encrypted tag may be pre-set in the relevant information of the transaction node that performs resource transfer processing, and the tag may pre-record a verification value (such as a hash value, etc.) of the relevant information of the transaction node that performs resource transfer processing. In addition, the entire relevant information of the transaction node that performs resource transfer processing may be encrypted or part of the relevant information of the transaction node that performs resource transfer processing may be encrypted. In this way, based on the acquired information verification rules, the tag set in the relevant information of the transaction node that performs resource transfer processing may be decrypted to obtain the original content of the tag, and the original content of the tag may be decrypted. The content is decrypted to obtain the relevant information of the transaction node that performs resource transfer processing. Then, the verification value (such as hash value, etc.) corresponding to the relevant information of the transaction node that performs resource transfer processing can be calculated, and the calculated verification value can be compared with the verification value recorded in the tag. If the two verification values are the same, it can be determined that the verification result of the relevant information of the transaction node that performs resource transfer processing is credible, that is, it can be determined that the relevant information of the transaction node that performs resource transfer processing has not been tampered with. If the two verification values are different, it can be determined that the verification result of the relevant information of the transaction node that performs resource transfer processing is unreliable. In addition, if the relevant information of the transaction node that performs resource transfer processing does not contain the encrypted label, it can also be determined that the verification result of the relevant information of the transaction node that performs resource transfer processing is unreliable. In actual applications, the verification method for on-chain data does not only include the above-mentioned method, but also includes many other achievable methods, which will not be repeated here.
[0123] The above-mentioned process of verifying the relevant information of the transaction node performing resource transfer processing is only one feasible processing method. In actual applications, the relevant information of the transaction node performing resource transfer processing can also be verified through other various processing methods. According to different information verification rules, different processing methods can be adopted to verify the relevant information of the transaction node performing resource transfer processing. Moreover, different information verification rules may have different specific processing procedures for verifying the relevant information of the transaction node performing resource transfer processing. The specific process can be set according to actual conditions, and the embodiments of this specification do not limit this.
[0124] The specific processing method of the above step S606 can be varied. An optional processing method is provided below, which may specifically include the following: if the information on-chain request also includes a verifiable statement of relevant information of the transaction node performing the resource transfer process, the validity of the verifiable statement is verified; if the verification result is valid, it is determined whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules.
[0125] Among them, a verifiable statement can be a normative information used to describe certain attributes of entities such as individuals and organizations. A verifiable statement can achieve evidence-based trust, and can prove to other entities that certain attributes of the current entity are credible through a verifiable statement. A verifiable statement can include multiple different fields and corresponding field values. For example, the field is the holder of the information to be uploaded to the chain, and the corresponding field value can be organization A. The field is the generation time of the information to be uploaded to the chain, and the corresponding field value can be January 10, 2021, etc.
[0126] In implementation, the verifiable statement can be verified first to determine whether the verifiable statement is valid. If the verifiable statement is determined to be valid, corresponding processing can be performed based on the verifiable statement to further ensure the security of data processing. Specifically, the verification of the verifiable statement can include a variety of methods. For example, the field value contained in the verifiable statement can be calculated by a predetermined algorithm (for example, the hash value of the field value contained in the verifiable statement can be calculated by a hash algorithm, etc.), and the corresponding calculation result can be obtained. The verifiable statement also includes a reference value of the above calculation result. The obtained calculation result can be compared with the reference value in the verifiable statement. If the two are the same, the verification passes, that is, the verifiable statement is valid. If the two are not the same, the verification fails, that is, the verifiable statement is invalid.
[0127] In addition to the above methods, multiple methods may be included. For example, the verifiable statement may include the verification value of the verifiable statement. After the verifiable statement is included in the TEE in the terminal device, the verification value of the verifiable statement may be determined by a predetermined verification algorithm. Then, the calculated verification value may be compared with the verification value in the verifiable statement. If the two are the same, the verification passes, that is, the verifiable statement is valid. If the two are not the same, the verification fails, that is, the verifiable statement is invalid, etc. In actual applications, the methods for verifying the validity of the verifiable statement include not only the above two methods, but also other various implementable methods, which may be set according to actual conditions, and the embodiments of this specification do not limit this.
[0128] When the verification result is determined through the above process to be that the verifiable declaration is invalid, the relevant information of the transaction node that performs the resource transfer process can be determined to be untrustworthy information. At this time, a notification message of failure to upload the information to the chain can be sent to the initiator of the information upload request. If the verification result is that the verifiable declaration is valid, the relevant information of the transaction node that performs the resource transfer process can be determined to be credible information. After that, it can be determined whether the relevant information of the transaction node that performs the resource transfer process meets the preset information verification rules.
[0129] In addition, if the verification result is valid, the above-mentioned process of determining whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules can also be implemented in the following way: If the verification result is valid, the information verification rules corresponding to the holder of the verifiable declaration are obtained; and it is determined whether the relevant information of the transaction node performing the resource transfer process complies with the information verification rules corresponding to the holder.
[0130] In implementation, if the verification result is that the verifiable statement is valid, it indicates that the relevant information of the transaction node that performs resource transfer processing is information published or provided by the holder of the verifiable statement. In order to further verify the information uploaded to the blockchain by the holders of different verifiable statements and ensure the security of the information, information verification rules can be set for the holders of different verifiable statements, or the holder of the verifiable statement can pre-set the information verification rules for the information uploaded by the holder to prevent other organizations or users from misappropriating the verifiable statement of the holder of the verifiable statement and uploading false information to the blockchain. After determining that the verifiable statement is valid, the information verification rules corresponding to the holder of the verifiable statement are obtained from the blockchain system, and it is determined whether the relevant information of the transaction node that performs resource transfer processing complies with the information verification rules corresponding to the holder.
[0131] In addition, in actual applications, the above-mentioned information chain request may include a digital identity information file of the information provider, and the digital identity information of the information provider is recorded in the digital identity information file. The specific processing of the above-mentioned step S606 can also be implemented in the following way: search whether there is a digital identity information file recording the digital identity information of the information provider in the digital identity information files pre-stored in the blockchain system; if so, determine whether the relevant information of the transaction node performing resource transfer processing complies with the preset information verification rules.
[0132] Among them, digital identity information can refer to information that can be used to identifiably characterize a user through digital information, that is, to condense the real identity information into a digital code so as to bind, query and verify the user's real-time behavior information. Digital identity information can not only include the user's birth information, individual description, biometrics and other identity coding information, but also involve personal behavior information of various attributes (such as transaction information or entertainment information, etc.). Digital identity information can be presented in a variety of ways, such as DID (Decentralized Identity). In the case where the digital identity information is DID, in actual applications, the user's DID can include a DID file (such as DID Document), and the user can pre-set the user's digital identity information in the DID file.
[0133] In implementation, after the blockchain system obtains the information on-chain request, it can obtain the digital identity information file of the information provider in the blockchain system, and can extract the digital identity information of the information provider from the digital identity information file. For example, if the digital identity information of the information provider is DID, the digital identity information file can be a DID Document. The blockchain system can obtain the DID Document of the information provider, which records the DID of the information provider. At this time, the blockchain system can extract the DID of the information provider from the DID Document. The DID of the information provider can be extracted from the DID Document of the information on-chain request. If the above two DIDs are the same, it is determined whether the relevant information of the transaction node performing the resource transfer processing meets the preset information verification rules. The specific processing process can refer to the above-mentioned related content, which will not be repeated here.
[0134] In step S608, if the relevant information of the transaction node performing the resource transfer process meets the preset information verification rules, the relevant information of the transaction node performing the resource transfer process is uploaded to the chain.
[0135] In step S610, when the preset detection cycle is reached, the first quantity of resources received by the target transaction node within the preset detection cycle is obtained from the blockchain system based on the smart contract, and the second quantity of resources transferred by the target transaction node within the above detection cycle is obtained, and the duration corresponding to the detection cycle is less than the preset duration threshold.
[0136] In actual applications, the relevant information of the transaction node performing resource transfer processing does not need to be uploaded to the blockchain system, but can be stored in a designated database outside the blockchain system. Based on this, the specific processing of the above step S506 can also be implemented in the following way: when the preset detection cycle is reached, the first quantity of resources received by the target transaction node within the preset detection cycle is obtained from the predetermined database, and the second quantity of resources transferred by the target transaction node within the detection cycle is obtained.
[0137] In step S612, based on the smart contract, the quantity of resources transferred through the target transaction node during the above-mentioned detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period are determined respectively by the first quantity and the second quantity.
[0138] In step S614, if within the above detection cycle, the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, the judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract.
[0139] It should be noted that, in actual applications, the specific processing methods of the above step S614 can be varied. In this embodiment, it can be implemented with the help of smart contracts and based on the methods described in the above embodiments. For example, based on smart contracts, as well as the weight corresponding to the number of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources are weighted and summed to obtain the corresponding first result; based on smart contracts, as well as the number of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources are weighted and summed to obtain the corresponding first result. The weight corresponding to the amount, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction node and the resources transferred out, the amount of resources transferred through each transaction node in the upstream transaction node and the balance between the resources received by each transaction node in the upstream transaction node and the resources transferred out, the weighted sum of the amount of resources transferred through each transaction node in the upstream transaction node and the balance between the resources received by each transaction node in the upstream transaction node and the resources transferred out, and obtain the second result corresponding to each transaction node in the upstream transaction node; based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node; if the risk measurement value meets the triggering condition of the smart contract, determine the judgment result of whether the target transaction node has transaction risk based on the smart contract. Wherein, based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node, which may include: based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node and the number of transaction nodes contained in the upstream transaction node.
[0140] Correspondingly, other processing methods involved in the above embodiments (such as relevant content about the third result, etc.) can also be processed accordingly in combination with smart contracts, and can be processed accordingly in combination with the above content, and the embodiments of this specification will not be repeated here.
[0141] The embodiments of this specification provide a method for detecting transaction risks, receiving risk identification rule information corresponding to money laundering risks for transaction nodes, and deploying a smart contract corresponding to the risk identification rule information to a blockchain system. When a preset detection period is reached, a first quantity of resources received by a target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained. Based on the smart contract, the first quantity and the second quantity are used to respectively determine the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period. If within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, then a judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and being able to comprehensively consider three major characteristics, namely, the flow rate of resources, the flow rate of resource transfer, and the balance between resource inflow and resource outflow, to generate strong interpretability from the risk essence level, and to take into account both the accuracy of risk prevention and control and compliance interpretability.
[0142] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0143] Embodiment 6
[0144] The above is a transaction risk detection method provided in the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a transaction risk detection device, such as Figure 7 shown.
[0145] The transaction risk detection device includes: a quantity acquisition module 701, a parameter determination module 702 and a risk determination module 703, wherein:
[0146] The quantity acquisition module 701 acquires a first quantity of resources received by a target transaction node within a preset detection period, and acquires a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold;
[0147] A parameter determination module 702 determines, based on the first quantity and the second quantity, respectively the quantity of resources transferred by the target transaction node during the detection period and the balance between the resources received and the resources transferred by the target transaction node during the detection period;
[0148] The risk determination module 703 determines that the target transaction node has a transaction risk if, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the resources transferred out meet a preset risk condition.
[0149] In the embodiment of this specification, the parameter determination module 702 includes:
[0150] A comparison unit, which compares the values of the first number and the second number to obtain the number with the smallest value;
[0151] The first parameter determination unit determines the quantity of resources transferred through the target transaction node within the detection period based on the obtained minimum quantity.
[0152] In the embodiment of this specification, the parameter determination module 702 includes:
[0153] The second parameter determination unit calculates the difference between the first quantity and the second quantity, and determines the balance between the resources received and the transferred resources by the target transaction node during the detection period based on the calculated difference and a preset coefficient indicating the tolerance of the party with the right to use the resources to retain the resources at the target transaction node.
[0154] In the embodiment of this specification, the risk determination module 703 includes:
[0155] The first result determination unit performs weighted summation of the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources based on the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, and the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding result;
[0156] The first risk determination unit determines that the target transaction node has a transaction risk if the obtained result meets a preset risk condition.
[0157] In the embodiment of this specification, the risk determination module 703 includes:
[0158] The second result determination unit performs weighted summation of the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources based on the weight corresponding to the number of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, and the number of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result;
[0159] a third result determination unit, based on the weight corresponding to the amount of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, performing weighted summation on the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, to obtain a second result corresponding to each transaction node in the upstream transaction nodes;
[0160] The second risk determination unit determines that the target transaction node has a transaction risk if it is determined that the target transaction node meets a preset risk condition based on the first result, the second result and the information of the upstream transaction node.
[0161] In an embodiment of the present specification, the second risk determination unit determines a first risk measurement value corresponding to the target transaction node based on the first result, the second result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, and the number of transaction nodes included in the upstream transaction node; if the first risk measurement value corresponding to the target transaction node meets a preset risk condition, it is determined that the target transaction node has a transaction risk.
[0162] In an embodiment of the present specification, the second risk determination unit performs weighted summation of the number of resources transferred by each transaction node in the downstream transaction nodes and the balance between the resources received by each transaction node in the downstream transaction nodes and the transferred resources based on the weight corresponding to the number of resources transferred by each transaction node in the downstream transaction nodes that receive the resources transferred by the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the downstream transaction nodes and the transferred resources, the number of resources transferred by each transaction node in the downstream transaction nodes and the balance between the resources received by each transaction node in the downstream transaction nodes and the transferred resources, to obtain a third result corresponding to each transaction node in the downstream transaction nodes; determines a second risk measurement value corresponding to the target transaction node based on the first result, the second result, the third result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, the weight corresponding to the downstream transaction node, the number of transaction nodes included in the upstream transaction node, and the number of transaction nodes included in the downstream transaction node; if the second risk measurement value corresponding to the target transaction node meets a preset risk condition, it is determined that the target transaction node has a transaction risk.
[0163] In the embodiment of this specification, the target transaction node, the upstream transaction node and the downstream transaction node are arranged in an online streaming framework.
[0164] The embodiment of the present specification provides a transaction risk detection device, which obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, and the duration corresponding to the detection period is less than a preset duration threshold, and then, based on the first quantity and the second quantity, respectively determines the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period; if within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and can comprehensively consider three major characteristics, namely, resource flow, resource transfer speed, and resource inflow and resource outflow balance, to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0165] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0166] Embodiment 7
[0167] Based on the same idea, the embodiment of this specification also provides a transaction risk detection device, which is a device in the blockchain system, such as Figure 8 shown.
[0168] The transaction risk detection device includes: a contract deployment module 801, a quantity acquisition module 802, a parameter determination module 803 and a risk judgment module 804, wherein:
[0169] The contract deployment module 801 receives risk identification rule information corresponding to the money laundering risk of the transaction node, and deploys a smart contract corresponding to the risk identification rule information to the blockchain system, wherein the risk identification rule information includes conditions that need to be met if the transaction node has money laundering risk;
[0170] The quantity acquisition module 802 acquires a first quantity of resources received by the target transaction node within the preset detection period, and acquires a second quantity of resources transferred by the target transaction node within the detection period, when a preset detection period is reached, and the duration corresponding to the detection period is less than a preset duration threshold;
[0171] A parameter determination module 803 determines, based on the smart contract, the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the transferred resources by the target transaction node within the detection period by using the first quantity and the second quantity;
[0172] The risk judgment module 804 determines whether there is a transaction risk at the target transaction node based on the smart contract if, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering condition of the smart contract.
[0173] In the embodiment of the present specification, the quantity acquisition module 802, when reaching a preset detection cycle, obtains from a predetermined database a first quantity of resources received by the target transaction node within a preset detection cycle, and obtains a second quantity of resources transferred by the target transaction node within the detection cycle.
[0174] In the embodiment of this specification, the device further includes:
[0175] An on-chain request module receives an on-chain information request from a transaction node, wherein the on-chain information request includes relevant information of a transaction node for resource transfer processing to be uploaded to the blockchain system, wherein the transaction node for resource transfer processing includes the target transaction node;
[0176] A judgment module, for judging whether the relevant information of the transaction node performing resource transfer processing complies with a preset information verification rule;
[0177] The on-chain processing module is configured to process the relevant information of the transaction node performing resource transfer processing on the chain if the relevant information of the transaction node performing resource transfer processing meets the preset information verification rules;
[0178] The quantity acquisition module 802, when reaching a preset detection period, obtains a first quantity of resources received by the target transaction node within the preset detection period from the blockchain system based on the smart contract, and obtains a second quantity of resources transferred by the target transaction node within the detection period.
[0179] In the embodiment of this specification, the information on-chain request also includes a verifiable statement of relevant information of the transaction node performing the resource transfer process, and the judgment module includes:
[0180] A verification unit, which verifies the validity of the verifiable claim;
[0181] The first judgment unit judges whether the relevant information of the transaction node performing the resource transfer process complies with a preset information verification rule if the verification result is valid.
[0182] In the embodiment of the present specification, the first judgment unit, if the verification result is valid, obtains the information verification rules corresponding to the holder of the verifiable declaration; and judges whether the relevant information of the transaction node performing resource transfer processing complies with the information verification rules corresponding to the holder.
[0183] In the embodiment of this specification, the information uplink request includes a digital identity information file of the information provider, and the digital identity information of the information provider is recorded in the digital identity information file. The judgment module includes:
[0184] An information search unit searches for whether there is a digital identity information file that records the digital identity information of the information provider in the digital identity information files pre-stored in the blockchain system;
[0185] The second judgment unit, if present, judges whether the relevant information of the transaction node performing the resource transfer process complies with a preset information verification rule.
[0186] In the embodiment of this specification, the risk determination module 804 includes:
[0187] The first result determination unit performs weighted summation of the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources based on the smart contract, the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, and the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result;
[0188] The second result determination unit is based on the smart contract, the weight corresponding to the amount of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, and performs weighted summation on the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources to obtain a second result corresponding to each transaction node in the upstream transaction nodes;
[0189] A risk measurement unit, based on the smart contract, determines a risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node;
[0190] The risk determination unit determines, based on the smart contract, a judgment result of whether the target transaction node has a transaction risk if the risk metric value meets the triggering condition of the smart contract.
[0191] In an embodiment of the present specification, the risk measurement unit determines the risk measurement value corresponding to the target transaction node based on the smart contract through the first result, the second result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, and the number of transaction nodes included in the upstream transaction node.
[0192] The embodiment of the present specification provides a transaction risk detection device, which receives risk identification rule information corresponding to the money laundering risk of a transaction node, and deploys a smart contract corresponding to the risk identification rule information to a blockchain system. When a preset detection period is reached, a first quantity of resources received by a target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained. Based on the smart contract, the first quantity and the second quantity are used to respectively determine the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period. If within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering condition of the smart contract, then a judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and being able to comprehensively consider three major characteristics, namely, the flow rate of resources, the flow rate of resource transfer, and the balance between resource inflow and resource outflow, so as to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0193] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0194] Embodiment 8
[0195] The above is a transaction risk detection device provided in the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a transaction risk detection device, such as Fig. 9 shown.
[0196] The transaction risk detection device may be the server provided in the above embodiment or a device in the blockchain system, etc.
[0197] The transaction risk detection device may have relatively large differences due to different configurations or performances, and may include one or more processors 901 and memory 902, and the memory 902 may store one or more storage applications or data. Among them, the memory 902 may be a short-term storage or a persistent storage. The application stored in the memory 902 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the transaction risk detection device. Furthermore, the processor 901 may be configured to communicate with the memory 902, and execute a series of computer executable instructions in the memory 902 on the transaction risk detection device. The transaction risk detection device may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input and output interfaces 905, and one or more keyboards 906.
[0198] Specifically in this embodiment, the transaction risk detection device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the transaction risk detection device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0199] Acquire a first quantity of resources received by a target transaction node within a preset detection period, and acquire a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold;
[0200] Based on the first quantity and the second quantity, respectively determining the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the resources transferred by the target transaction node within the detection period;
[0201] If, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the resources transferred out meet a preset risk condition, it is determined that the target transaction node has a transaction risk.
[0202] For other processing methods and processes, please refer to the above Figure 1 and Figure 6 The relevant contents of the method shown will not be repeated here.
[0203] In addition, specifically in this embodiment, the transaction risk detection device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the transaction risk detection device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0204] Receive risk identification rule information corresponding to the money laundering risk of the transaction node, and deploy a smart contract corresponding to the risk identification rule information in the blockchain system, wherein the risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk;
[0205] When a preset detection period is reached, a first quantity of resources received by the target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold;
[0206] Based on the smart contract, determining the quantity of resources transferred through the target transaction node during the detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period respectively through the first quantity and the second quantity;
[0207] If, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, the judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract.
[0208] For other processing methods and processes, please refer to the above Figure 1 and Figure 6 The relevant contents of the method shown will not be repeated here.
[0209] The embodiments of the present specification provide a transaction risk detection device, which obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold, and then, based on the first quantity and the second quantity, determines the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period, respectively; if within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and is able to comprehensively consider three major characteristics, namely, resource flow, resource transfer velocity, and resource inflow and resource outflow balance, to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0210] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0211] Embodiment 9
[0212] Furthermore, based on the above Figure 1 and Figure 6 In one embodiment, the present specification further provides a storage medium for storing computer executable instruction information. In a specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, the following process can be implemented:
[0213] Acquire a first quantity of resources received by a target transaction node within a preset detection period, and acquire a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold;
[0214] Based on the first quantity and the second quantity, respectively determining the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the resources transferred by the target transaction node within the detection period;
[0215] If, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the resources transferred out meet a preset risk condition, it is determined that the target transaction node has a transaction risk.
[0216] For other processing methods and processes, please refer to the above Figure 1 and Figure 6 The relevant contents of the method shown will not be repeated here.
[0217] In another specific embodiment, the storage medium may be a USB flash drive, an optical disk, a hard disk, etc. When the computer executable instruction information stored in the storage medium is executed by the processor, the following process can be implemented:
[0218] Receive risk identification rule information corresponding to the money laundering risk of the transaction node, and deploy a smart contract corresponding to the risk identification rule information in the blockchain system, wherein the risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk;
[0219] When a preset detection period is reached, a first quantity of resources received by the target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold;
[0220] Based on the smart contract, determining the quantity of resources transferred through the target transaction node during the detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period respectively through the first quantity and the second quantity;
[0221] If, within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the triggering conditions of the smart contract, the judgment result of whether the target transaction node has a transaction risk is determined based on the smart contract.
[0222] For other processing methods and processes, please refer to the above Figure 1 and Figure 6 The relevant contents of the method shown will not be repeated here.
[0223] The embodiment of this specification provides a storage medium, which obtains a first quantity of resources received by a target transaction node within a preset detection period, and obtains a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold, and then, based on the first quantity and the second quantity, respectively determines the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received by the target transaction node and the transferred resources within the detection period; if within the detection period, the quantity of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources meet the preset risk conditions, it is determined that the target transaction node has a transaction risk, thereby proposing a measurement mechanism for determining the probability of money laundering of an account, and being able to comprehensively consider three major characteristics, namely, resource flow, resource transfer velocity, and resource inflow and resource outflow balance, to generate strong interpretability from the risk essence level, and take into account both the accuracy of risk prevention and control and compliance interpretability.
[0224] At the same time, combined with the characteristics of online streaming computing, the information of upstream transaction nodes is superimposed on the measurement of the transaction node itself, which can more accurately determine the money laundering risk probability of the account node. In addition, under the online streaming framework, each transaction node calculates its own money laundering probability measurement value, and the calculation result is retained for at least 2 detection cycles. The information of upstream transaction nodes is continuously accumulated to downstream transaction nodes, so that if the upstream transaction node and itself both meet the characteristics of high money laundering measurement value, they are superimposed on each other to enhance the discrimination signal.
[0225] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0226] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0227] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0228] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0229] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0230] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0231] The embodiments of this specification are described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable fraud case serial and parallel device to produce a machine, so that the instructions executed by the processor of the computer or other programmable fraud case serial and parallel device generate instructions for implementing the processes in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0232] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable fraud case serial and parallel device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0233] These computer program instructions may also be loaded onto a computer or other programmable device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0234] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0235] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0236] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0237] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0238] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, one or more embodiments of this specification may be in the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Furthermore, one or more embodiments of this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0239] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0240] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0241] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A method for detecting transaction risk, the method comprising: Acquire a first quantity of resources received by a target transaction node within a preset detection period, and acquire a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold; Based on the first quantity and the second quantity, respectively determining the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the resources transferred by the target transaction node within the detection period; Based on the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, a weighted sum is performed on the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result; Based on the weight corresponding to the amount of resources transferred by each of the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each of the upstream transaction nodes; If it is determined that the target transaction node meets a preset risk condition based on the first result, the second result and the information of the upstream transaction node, it is determined that the target transaction node has a transaction risk.
2. The method according to claim 1, determining the amount of resources transferred through the target transaction node within the detection period based on the first amount and the second amount, comprising: Compare the values of the first quantity and the second quantity to obtain the quantity with the smallest value; The amount of resources transferred through the target transaction node within the detection period is determined based on the minimum amount of the acquired values.
3. The method according to claim 1 or 2, determining the balance between the resources received and the resources transferred by the target transaction node within the detection period based on the first quantity and the second quantity, comprising: Calculate the difference between the first quantity and the second quantity, and determine the balance between the resources received and the resources transferred out by the target transaction node during the detection period based on the calculated difference and a preset coefficient indicating the tolerance of the party with the right to use the resources to retain the resources at the target transaction node.
4. The method according to claim 1, wherein if within the detection period, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the resources transferred out meet a preset risk condition, then determining that the target transaction node has a transaction risk comprises: Based on the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, a weighted sum is performed on the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding result; If the obtained result meets the preset risk condition, it is determined that the target transaction node has a transaction risk.
5. The method according to claim 1, if it is determined based on the first result, the second result and the information of the upstream transaction node that the target transaction node meets a preset risk condition, then determining that the target transaction node has a transaction risk comprises: Determine a first risk metric value corresponding to the target transaction node based on the first result, the second result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, and the number of transaction nodes included in the upstream transaction node; If the first risk metric value corresponding to the target transaction node meets a preset risk condition, it is determined that the target transaction node has a transaction risk.
6. The method according to claim 1, if it is determined based on the first result, the second result and the information of the upstream transaction node that the target transaction node meets a preset risk condition, then determining that the target transaction node has a transaction risk comprises: Based on the weight corresponding to the amount of resources transferred by each of the downstream transaction nodes that receive the resources transferred by the target transaction node, the weight corresponding to the balance between the resources received by each of the downstream transaction nodes and the transferred resources, the amount of resources transferred by each of the downstream transaction nodes and the balance between the resources received by each of the downstream transaction nodes and the transferred resources, a weighted sum is performed on the amount of resources transferred by each of the downstream transaction nodes and the balance between the resources received by each of the downstream transaction nodes and the transferred resources to obtain a third result corresponding to each of the downstream transaction nodes; Determine a second risk metric value corresponding to the target transaction node based on the first result, the second result, the third result, the weight corresponding to the target transaction node, the weight corresponding to the upstream transaction node, the weight corresponding to the downstream transaction node, the number of transaction nodes included in the upstream transaction node, and the number of transaction nodes included in the downstream transaction node; If the second risk metric value corresponding to the target transaction node meets a preset risk condition, it is determined that the target transaction node has a transaction risk. 7 . The method according to claim 6 , wherein the target transaction node, the upstream transaction node and the downstream transaction node are arranged in an online streaming framework.
8. A transaction risk detection method, applied to a blockchain system, comprising: Receive risk identification rule information corresponding to the money laundering risk of the transaction node, and deploy a smart contract corresponding to the risk identification rule information in the blockchain system, wherein the risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk; When a preset detection period is reached, a first quantity of resources received by the target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold; Based on the smart contract, determining the quantity of resources transferred through the target transaction node during the detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period respectively through the first quantity and the second quantity; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources are weightedly summed to obtain a corresponding first result; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each transaction node in the upstream transaction nodes; Based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node; If the risk measurement value meets the triggering conditions of the smart contract, the judgment result of whether the target transaction node has transaction risk is determined based on the smart contract.
9. The method according to claim 8, wherein when a preset detection period is reached, obtaining a first quantity of resources received by the target transaction node within the preset detection period, and obtaining a second quantity of resources transferred by the target transaction node within the detection period, comprises: When the preset detection cycle is reached, a first quantity of resources received by the target transaction node within the preset detection cycle is obtained from a predetermined database, and a second quantity of resources transferred by the target transaction node within the detection cycle is obtained.
10. The method according to claim 8, further comprising: Receiving an information upload request from a transaction node, wherein the information upload request includes relevant information of a transaction node that performs resource transfer processing and is to be uploaded to the blockchain system, wherein the transaction node that performs resource transfer processing includes the target transaction node; Determining whether the relevant information of the transaction node performing the resource transfer process complies with a preset information verification rule; If the relevant information of the transaction node performing the resource transfer process meets the preset information verification rules, the relevant information of the transaction node performing the resource transfer process is uploaded to the chain; When a preset detection period is reached, obtaining a first quantity of resources received by the target transaction node within the preset detection period, and obtaining a second quantity of resources transferred by the target transaction node within the detection period, includes: When a preset detection cycle is reached, a first quantity of resources received by the target transaction node within the preset detection cycle is obtained from the blockchain system based on the smart contract, and a second quantity of resources transferred by the target transaction node within the detection cycle is obtained.
11. According to the method of claim 10, the information on-chain request also includes a verifiable statement of the relevant information of the transaction node performing the resource transfer process, and the determination of whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules includes: Verifying the validity of the verifiable claim; If the verification result is valid, it is determined whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules.
12. The method according to claim 11, if the verification result is valid, determining whether the relevant information of the transaction node performing the resource transfer process complies with a preset information verification rule comprises: If the verification result is valid, obtaining the information verification rules corresponding to the holder of the verifiable statement; Determine whether the relevant information of the transaction node performing the resource transfer process complies with the information verification rules corresponding to the holder.
13. According to the method of claim 10, the information on-chain request includes a digital identity information file of the information provider, and the digital identity information file records the digital identity information of the information provider, and the determination of whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules includes: Searching whether there is a digital identity information file pre-stored in the blockchain system that records the digital identity information of the information provider; If so, it is determined whether the relevant information of the transaction node performing the resource transfer process complies with the preset information verification rules.
14. A transaction risk detection device, the device comprising: A quantity acquisition module, which acquires a first quantity of resources received by a target transaction node within a preset detection period, and acquires a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold; a parameter determination module, which determines, based on the first quantity and the second quantity, respectively the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the resources transferred by the target transaction node within the detection period; a risk determination module, based on the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, performing weighted summation on the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, to obtain a corresponding first result; Based on the weight corresponding to the amount of resources transferred by each of the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each of the upstream transaction nodes; If it is determined that the target transaction node meets a preset risk condition based on the first result, the second result and the information of the upstream transaction node, it is determined that the target transaction node has a transaction risk.
15. A transaction risk detection device, the device being a device in a blockchain system, the device comprising: A contract deployment module receives risk identification rule information corresponding to the money laundering risk of the transaction node, and deploys a smart contract corresponding to the risk identification rule information to the blockchain system, wherein the risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk; A quantity acquisition module, when a preset detection cycle is reached, acquires a first quantity of resources received by a target transaction node within a preset detection cycle, and acquires a second quantity of resources transferred by the target transaction node within the detection cycle, wherein the duration corresponding to the detection cycle is less than a preset duration threshold; a parameter determination module, based on the smart contract, determining the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the transferred resources by the target transaction node within the detection period respectively through the first quantity and the second quantity; The risk judgment module performs weighted summation of the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources based on the smart contract, the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, and the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each transaction node in the upstream transaction nodes; Based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node; If the risk measurement value meets the triggering conditions of the smart contract, the judgment result of whether the target transaction node has transaction risk is determined based on the smart contract.
16. A transaction risk detection device, the transaction risk detection device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Acquire a first quantity of resources received by a target transaction node within a preset detection period, and acquire a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold; Based on the first quantity and the second quantity, respectively determining the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the resources transferred by the target transaction node within the detection period; Based on the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, a weighted sum is performed on the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result; Based on the weight corresponding to the amount of resources transferred by each of the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each of the upstream transaction nodes; If it is determined that the target transaction node meets a preset risk condition based on the first result, the second result and the information of the upstream transaction node, it is determined that the target transaction node has a transaction risk.
17. A transaction risk detection device, the device being a device in a blockchain system, the transaction risk detection device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receive risk identification rule information corresponding to the money laundering risk of the transaction node, and deploy a smart contract corresponding to the risk identification rule information in the blockchain system, wherein the risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk; When a preset detection period is reached, a first quantity of resources received by the target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold; Based on the smart contract, determining the quantity of resources transferred through the target transaction node during the detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period respectively through the first quantity and the second quantity; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources are weightedly summed to obtain a corresponding first result; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each transaction node in the upstream transaction nodes; Based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node; If the risk measurement value meets the triggering conditions of the smart contract, the judgment result of whether the target transaction node has transaction risk is determined based on the smart contract.
18. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Acquire a first quantity of resources received by a target transaction node within a preset detection period, and acquire a second quantity of resources transferred by the target transaction node within the detection period, wherein the duration corresponding to the detection period is less than a preset duration threshold; Based on the first quantity and the second quantity, respectively determining the quantity of resources transferred through the target transaction node within the detection period and the balance between the resources received and the resources transferred by the target transaction node within the detection period; Based on the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, a weighted sum is performed on the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources to obtain a corresponding first result; Based on the weight corresponding to the amount of resources transferred by each of the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources, the amount of resources transferred by each of the upstream transaction nodes and the balance between the resources received by each of the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each of the upstream transaction nodes; If it is determined that the target transaction node meets a preset risk condition based on the first result, the second result and the information of the upstream transaction node, it is determined that the target transaction node has a transaction risk.
19. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Receive risk identification rule information corresponding to the money laundering risk of the transaction node, and deploy a smart contract corresponding to the risk identification rule information in the blockchain system, wherein the risk identification rule information includes conditions that need to be met for the transaction node to have money laundering risk; When a preset detection period is reached, a first quantity of resources received by the target transaction node within the preset detection period is obtained, and a second quantity of resources transferred by the target transaction node within the detection period is obtained, and the duration corresponding to the detection period is less than a preset duration threshold; Based on the smart contract, determining the quantity of resources transferred through the target transaction node during the detection period and the balance between the resources received and the transferred resources by the target transaction node during the detection period respectively through the first quantity and the second quantity; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred through the target transaction node, the weight corresponding to the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources, the amount of resources transferred through the target transaction node and the balance between the resources received by the target transaction node and the transferred resources are weightedly summed to obtain a corresponding first result; Based on the smart contract, as well as the weight corresponding to the amount of resources transferred by each transaction node in the upstream transaction nodes that transfer resources to the target transaction node, the weight corresponding to the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources, the amount of resources transferred by each transaction node in the upstream transaction nodes and the balance between the resources received by each transaction node in the upstream transaction nodes and the transferred resources are weightedly summed to obtain a second result corresponding to each transaction node in the upstream transaction nodes; Based on the smart contract, determine the risk measurement value corresponding to the target transaction node through the first result, the second result and the information of the upstream transaction node; If the risk measurement value meets the triggering conditions of the smart contract, the judgment result of whether the target transaction node has transaction risk is determined based on the smart contract.
Citation Information
Patent Citations
Anti-money laundering identification method and device
CN111476662A
Resource circulation method and device based on blockchain
CN111639125A
Financial transaction supervision model, system and equipment based on intelligent contract data lake
CN113011973A
Method and system for identifying online money-laundering customer groups
US20200394707A1
