Transaction restriction parameter setting method and device based on smart contract
By obtaining the historical transaction data of bank customers and using blockchain smart contracts to determine transaction restriction parameters, the problem of high risks and poor experience caused by fixed value settings is solved, achieving more accurate risk assessment and demand satisfaction, and improving customer satisfaction. experience and risk prevention.
Patent Information
- Application Number
- CN202110848425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing bank transaction parameter settings use fixed values, resulting in high customer risks or poor experience, and cannot meet the actual needs of different customers.
By obtaining the customer's historical transaction data, the customer's risk acceptance value and transaction limit parameters are determined based on the blockchain smart contract, and transaction control processing is performed.
It achieves more accurate risk assessment and demand satisfaction, improves customer experience, and effectively prevents risks.
Smart Images

Figure CN113487326B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain and artificial intelligence technology, and in particular to a method and device for setting transaction restriction parameters based on smart contracts. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] At present, banks basically set a fixed value for customers' transaction parameters. The setting of this value often lacks the support of actual data. If it is set too high, it may lead to higher risk for customers, while if it is set too low, it may lead to a bad customer experience. In actual transactions, different customers have different transaction needs and risk requirements. The current method of setting a fixed value obviously cannot meet the actual needs of bank customers. Summary of the invention
[0004] The embodiment of the present invention provides a method for setting transaction restriction parameters based on smart contracts, which is used to solve the problem that fixed values are used for parameter settings, resulting in high risks or poor experience for customers. The method includes:
[0005] Acquire historical transaction data of the customer at the bank, and acquire multiple attribute values of the customer based on the historical transaction data;
[0006] Determine the risk acceptance value of the customer based on multiple attribute values of the customer;
[0007] Determine the transaction limit parameters for the customer based on the blockchain’s smart contract, the customer’s risk tolerance, and the customer’s resources at the bank;
[0008] Perform corresponding transaction control processing based on transaction restriction parameters.
[0009] The embodiment of the present invention further provides a transaction restriction parameter setting device based on a smart contract, which is used to solve the problem that the parameter setting adopts a fixed value, resulting in a high risk or a bad experience for the customer. The device includes:
[0010] A data and attribute acquisition module, used to acquire the historical transaction data of the customer in the bank, and based on the historical transaction data, acquire multiple attribute values of the customer;
[0011] A risk acceptance value determination module, used to determine the risk acceptance value of the customer based on multiple attribute values of the customer;
[0012] A transaction limit parameter determination module, which is used to determine the transaction limit parameters of the customer based on the smart contract of the blockchain, the risk acceptance value of the customer, and the number of resources of the customer in the bank;
[0013] The transaction control processing module is used to perform corresponding transaction control processing based on the transaction restriction parameters.
[0014] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for setting transaction restriction parameters based on smart contracts when executing the computer program.
[0015] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the above-mentioned method for setting transaction restriction parameters based on smart contracts are implemented.
[0016] In the embodiments of the present invention, compared with the technical solution in which customer parameters are set to fixed values in the prior art, historical transaction data of the customer in the bank is obtained, and multiple attribute values of the customer are obtained based on the historical transaction data; the risk acceptance value of the customer is determined based on the multiple attribute values of the customer; the transaction restriction parameters of the customer are determined according to the smart contract of the blockchain, the risk acceptance value of the customer and the number of resources of the customer in the bank; corresponding transaction control processing is performed based on the transaction restriction parameters. The present invention can set transaction restriction parameters based on historical transaction data and smart contracts of the blockchain, and can achieve more accurate assessment of risks and actual needs, which can not only improve customer experience but also effectively prevent risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0018] Figure 1 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 1 ;
[0019] Figure 2 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 2 ;
[0020] Figure 3 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 3 ;
[0021] Figure 4 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 4 ;
[0022] Figure 5 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 5 ;
[0023] Figure 6 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 6 ;
[0024] Figure 7 The structure frame of the transaction restriction parameter setting device based on the smart contract in the embodiment of the present invention is Figure 1 ;
[0025] Figure 8 The structure frame of the transaction restriction parameter setting device based on the smart contract in the embodiment of the present invention is Figure 2 ;
[0026] Fig. 9 The structure frame of the transaction restriction parameter setting device based on the smart contract in the embodiment of the present invention is Figure 3 . DETAILED DESCRIPTION
[0027] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0028] Terminology explanation:
[0029] Transaction restriction parameters: These are the transaction restriction parameters that the bank sets for customers when they make transactions. The setting of these parameters can control the transaction risks of customers.
[0030] Figure 1 The transaction restriction parameter setting method based on smart contract in the embodiment of the present invention is as follows Figure 1 ,like Figure 1 As shown, the method includes:
[0031] Step 101: Obtain historical transaction data of a customer at a bank, and obtain multiple attribute values of the customer based on the historical transaction data;
[0032] Step 102: Determine the risk acceptance value of the customer based on multiple attribute values of the customer;
[0033] Step 103: Determine the transaction restriction parameters of the customer based on the smart contract of the blockchain, the risk acceptance value of the customer, and the number of resources of the customer in the bank;
[0034] Step 104: Perform corresponding transaction control processing based on the transaction restriction parameters.
[0035] Specifically, step 101 is to obtain the historical transaction data of the customer in a certain channel of the bank (such as mobile banking, bank intelligent terminal, ATM), which may include the transaction time, transaction type, transaction location, transaction channel (such as mobile banking), transaction amount, the amount of funds of the customer in the bank at the time of the transaction, identity verification method (such as face recognition), transaction status (successful or failed), and transaction information selected or filled in by the customer during the transaction, etc. The multiple attribute values of the customer include multiple financial attributes and risk attributes of the customer.
[0036] Specifically, the risk acceptance value is used to indicate the degree to which a customer can accept risk. For example, the risk acceptance value is set to an integer value between 0 and 100. Different integer values indicate different degrees of risk acceptance by the customer, and the larger the value, the stronger the customer's risk acceptance ability. Different customers correspond to different risk acceptance values, and different customer sets correspond to different risk acceptance value ranges. For example, 10 preset customer sets can be set, and each customer set corresponds to a risk value interval, such as a closed interval of 51 to 60.
[0037] Specifically, the number of resources a customer has in a bank can be the amount of funds the customer has in the bank. Under different resource numbers, the transaction behavior of the same customer is different. And when the number of resources of two customers is close and the risk requirements are roughly similar, the transaction behavior of the customers is roughly the same. As the saying goes, the economic base determines the superstructure. In order to quantify the above relationship, a table can be established to record the one-to-one correspondence between the risk acceptance value, the total number of resources, and the transaction parameters, and the corresponding relationship of this table is stored in the smart contract, that is, the smart contract determines the transaction parameters based on the customer's risk acceptance value and the total number of resources in the bank.
[0038] Specifically, the transaction restriction parameters are intended to control transaction risks. The transaction restriction parameters may be transaction limits at corresponding time points and locations (e.g., the maximum transaction amount at a bank branch at 12 noon, the maximum transaction amount online at 3 a.m. (customers at 3 a.m. are at higher risk, such as the risk of account theft, while transaction risks at bank branches are lower because of the involvement of bank personnel)), maximum waiting time for transactions at corresponding time points and locations, identity verification methods at corresponding time points and locations, and so on.
[0039] In the embodiment of the present invention, Figure 2 As shown, step 102 determines the risk acceptance value of the customer based on multiple attribute values of the customer, including:
[0040] Step 201: obtaining a structure of a Bayesian network based on dependency relationships between multiple attributes;
[0041] Step 202: Determine the parameters of the Bayesian network based on the transaction data of the bank's customer set;
[0042] Step 203: Based on the structure and parameters of the Bayesian network, determine the conditional probability distribution that the risk acceptance value is equal to the second preset value under the condition that the attribute value is the first preset value;
[0043] Step 204: Based on the multiple attribute values of the customer and the conditional probability distribution, determine the probability that the customer belongs to each risk acceptance value, and then determine the risk acceptance value of the customer.
[0044] Specifically, the structure of the Bayesian network is obtained based on the dependency relationship between the attributes that have been obtained. In practice, many attributes of customers are external reflections of their internal needs, and the attributes are often not independent of each other, that is, there is a dependency relationship between the attributes. For example, financial attribute 1 depends on financial attribute 2, risk attribute 1 depends on risk attribute 2 and financial attribute 2, risk acceptance value depends on financial attribute 1 and risk attribute 1, and so on. The dependency relationship between these attributes can be obtained in advance. After obtaining the dependency relationship between customer attributes, a graphical structure about the customer is obtained. Each node corresponds to a certain attribute of the customer. There is an edge connection between two nodes if and only if there is a dependency relationship between the two nodes, and the direction of the edge reflects the dependency relationship between the nodes.
[0045] Specifically, the parameters of the Bayesian network are determined based on the transaction data of the bank's customer set. In fact, the transaction data of the bank's customers can generate sample data for the Bayesian network's conditional probability. Banks usually serve thousands of customers, and the data generated is also quite large. A large amount of transaction data means that there are enough sample data for the conditional probability. Based on enough sample data, we can obtain an accurate estimate of a conditional probability according to the law of large numbers. For example, a large number of samples of risk attribute 2 being a certain value and financial attribute 2 being a certain value can be generated from the transaction data of the bank's customer set. When there are enough samples, we can obtain a probability estimate that risk attribute 1 is a certain value under the condition that risk attribute 2 is a certain value and financial attribute 2 is a certain value. After determining each conditional probability value corresponding to the Bayesian network, the parameters of the Bayesian network are all determined.
[0046] Based on the Bayesian network structure and parameters determined above, the conditional probability distribution that the risk acceptance value is equal to a certain value (second preset value) under the condition that the attribute value is a certain value (first preset value) is determined. The first preset value and the second preset value can be the same value or different values. After the Bayesian network structure and parameters, that is, the conditional probability value is determined, the required conditional probability can be calculated based on the basic probability calculation formula, such as the conditional probability distribution that the risk acceptance value is equal to a certain value under the condition that the attribute value is a certain value.
[0047] Based on the attribute values of the customer and the conditional probability distribution determined above, the probability of the customer belonging to each risk acceptance value is determined, and then the risk acceptance value of the customer is determined. After the conditional probability distribution and the preconditional probability are determined, the required probability distribution is also determined, such as the probability of the customer belonging to each risk acceptance value.
[0048] In the embodiment of the present invention, Figure 3 As shown, step 102 determines the risk acceptance value of the customer based on multiple attribute values of the customer, including:
[0049] Step 301: based on multiple attribute values of a customer, estimating the probability that the customer belongs to each of multiple preset customer sets;
[0050] Step 302: Determine the risk acceptance value of the customer according to the probability and the risk acceptance value corresponding to each preset customer set.
[0051] In the embodiment of the present invention, Figure 4 As shown, step 301 estimates the probability that the customer belongs to each of the multiple preset customer sets based on the multiple attribute values of the customer, including:
[0052] Step 401: Setting the attribute set of the customer based on multiple attribute values of the customer;
[0053] Step 402: Calculate the distance between the customer and each preset customer set based on a preset distance measurement method, the customer's attribute set, and the attribute set of each customer in each preset customer set;
[0054] Step 403: Based on the distance between the customer and each preset customer set, obtain the probability that the customer belongs to each preset customer set in multiple preset customer sets.
[0055] Specifically, the customer transaction attributes of the customer may include multiple independent financial attributes and multiple independent risk attributes of the customer, and the attribute set of each customer in the preset customer set is consistent with the element attributes contained in the customer attribute set of the customer. To obtain the customer attribute set of the customer, each customer corresponds to a point in a geometric space (such as Euclidean space), so that the distance between the two points is used to represent the similarity between the customers. The closer the distance between the two points, the closer the attribute values of the two customers are, that is, the more similar the two customers are. Correspondingly, the distance can be converted into the probability that a customer belongs to the preset customer set. From a geometric intuitive point of view, the greater the probability that a customer belongs to the preset customer set, the closer the "distance" between the customer and the preset customer set. Since the usual preset distance measurement method estimates the distance between two equivalent points, such as the distance between the points in the Euclidean space corresponding to the two customers, in the scenario of the present invention, the "distance between the customer and each preset customer set" that needs to be calculated is an optimization of the preset distance measurement method, so that the distance between a point and a point set can be estimated. Specifically, the distance between a point and a point set can be a function of the distance between a point and each point in the point set, such as the average value or minimum value of the distance; the distance between a point and a point set can also be the distance between the point and the corresponding special point of the point set, such as the distance to the set mean point. According to the above description, the closer the distance, the greater the probability that the customer belongs to the preset customer set. In this way, a monotonically decreasing function can be established with the distance as the independent variable and the probability as the dependent variable to represent the corresponding relationship between the distance and the probability. In this way, the probability that the customer belongs to each preset customer set in multiple preset customer sets can be obtained based on the above distance.
[0056] In the embodiment of the present invention, Figure 5 As shown, it also includes:
[0057] Step 501: After determining the transaction restriction parameters of a client, adjust the client's risk acceptance value according to the client's actual transaction data, and then adjust the transaction restriction parameters.
[0058] Step 501 includes:
[0059] Step 5011: if the difference between the actual transaction data and the transaction limit parameter is less than the preset threshold, and the situation of being less than the preset threshold occurs for a first preset number of times in a row, then the risk acceptance value of the customer is adjusted upward to the minimum value among multiple preset customer sets whose risk acceptance values are greater than the current risk acceptance value of the customer (i.e., the risk acceptance value obtained in step 102, that is, the current risk acceptance value is not adjusted);
[0060] Step 5012: If the difference between the actual transaction data and the transaction restriction parameter is greater than the preset threshold, and the situation where the difference is greater than the preset threshold occurs for a second preset number of times in a row, the customer's risk acceptance value is lowered to the maximum value among multiple preset customer sets whose risk acceptance values are less than the customer's current risk acceptance value (i.e., the risk acceptance value obtained in step 102, that is, the current risk acceptance value has not been adjusted).
[0061] Specifically, the parameters previously set may be too large or too small. For example, when the transaction restriction parameter is the transaction limit at a specific time point, the transaction limit corresponding to customer A is 10,000 yuan, and the actual transaction value for multiple consecutive times is 9,000 to 9,800 yuan, and the difference with 10,000 yuan is less than the preset threshold of 2,000 yuan. This indicates that the customer has a demand to increase the transaction amount, and the limit value needs to be adjusted upward, which corresponds to an increase in the risk acceptance value to a certain customer set of n customers whose risk value is closest to the customer. For example, the increased risk acceptance value increases the limit value corresponding to the customer to 15,000 yuan; when the actual transaction value of the customer is 6,000 to 6,600 yuan for multiple consecutive times, and the difference with 10,000 yuan is greater than the preset threshold of 2,000 yuan, this indicates that the current limit value of the customer has exceeded the actual limit demand of the customer, and the limit value needs to be adjusted downward, which corresponds to a reduction in the risk acceptance value to a certain customer set of n customers whose risk value is closest to the customer. For example, the reduced risk acceptance value reduces the limit value corresponding to the customer to 8,000 yuan.
[0062] In the embodiment of the present invention, Figure 6 As shown, before executing step 104, the method further includes:
[0063] Step 601: Obtain low-risk transaction data of the bank (record data of a customer set);
[0064] Step 602: Obtain transaction restriction parameters, risk acceptance values, and the number of resources of the customer in the bank at the corresponding transaction time point of different customers in the customer set corresponding to each transaction data from each transaction data in the low-risk transaction data;
[0065] Step 603: establishing a correspondence table based on the transaction restriction parameters, risk acceptance values and the number of resources of the customer in the bank at the corresponding transaction time point of different customers in the customer set corresponding to each transaction data, wherein the one-to-one correspondence between the risk acceptance value, the number of resources and the transaction restriction parameters is recorded in the correspondence table;
[0066] Step 604: Store the correspondence table in the smart contract of the blockchain.
[0067] Specifically, this correspondence table reflects the intrinsic relationship between transaction risk and transaction limit parameters, and has nothing to do with specific customers. The current customer set only provides a large amount of sample data to show the intrinsic relationship between transaction risk and transaction limit parameters.
[0068] Here, we emphasize that the data source for establishing the corresponding relationship is low-risk transaction data, because low-risk data originally implies that the risk of the transaction corresponding to the transaction element is relatively low, and can objectively reflect the real needs of customers. At the same time, based on this data source, it can be guaranteed that the subsequent transaction risk is likely to be relatively low.
[0069] The embodiment of the present invention also provides a device for setting transaction restriction parameters based on a smart contract, as described in the following embodiment. Since the principle of solving the problem by the device is similar to the method for setting transaction restriction parameters based on a smart contract, the implementation of the device can refer to the implementation of the method for setting transaction restriction parameters based on a smart contract, and the repeated parts will not be repeated.
[0070] Figure 7 The structure frame of the transaction restriction parameter setting device based on the smart contract in the embodiment of the present invention is Figure 1 ,like Figure 7 As shown, the device comprises:
[0071] The data and attribute acquisition module 02 is used to acquire the historical transaction data of the customer in the bank, and based on the historical transaction data, acquire multiple attribute values of the customer;
[0072] The risk acceptance value determination module 04 is used to determine the risk acceptance value of the customer based on multiple attribute values of the customer;
[0073] The transaction restriction parameter determination module 06 is used to determine the transaction restriction parameters of the customer based on the smart contract of the blockchain, the risk acceptance value of the customer and the number of resources of the customer in the bank;
[0074] The transaction control processing module 08 is used to perform corresponding transaction control processing based on the transaction restriction parameters.
[0075] In the embodiment of the present invention, the risk acceptance value determination module 04 is specifically used for:
[0076] Obtain the structure of the Bayesian network based on the dependencies between multiple attributes;
[0077] Determine the parameters of the Bayesian network based on the transaction data of the bank's customer set;
[0078] Based on the structure and parameters of the Bayesian network, determine the conditional probability distribution that the risk acceptance value is equal to the second preset value under the condition that the attribute value is the first preset value;
[0079] Based on the multiple attribute values of the customer and the conditional probability distribution, the probability that the customer belongs to each risk acceptance value is determined, and then the risk acceptance value of the customer is determined.
[0080] In the embodiment of the present invention, the risk acceptance value determination module 04 is specifically used for:
[0081] Based on multiple attribute values of the customer, estimating the probability that the customer belongs to each of multiple preset customer sets;
[0082] The risk acceptance value of the customer is determined according to the probability and the risk acceptance value corresponding to each preset customer set.
[0083] In the embodiment of the present invention, the risk acceptance value determination module 04 is specifically used for:
[0084] Setting a set of attributes for a customer based on multiple attribute values of the customer;
[0085] Based on a preset distance measurement method, the attribute set of the customer and the attribute set of each customer in each preset customer set, calculating the distance between the customer and each preset customer set;
[0086] Based on the distance between the customer and each preset customer set, a probability that the customer belongs to each preset customer set in the plurality of preset customer sets is obtained.
[0087] In the embodiment of the present invention, Figure 8 As shown, it also includes: a parameter adjustment module 10, which is used to: after determining the transaction limit parameters of the customer, adjust the risk acceptance value of the customer according to the actual transaction data of the customer, and then adjust the transaction limit parameters;
[0088] Specifically used for:
[0089] If the difference between the actual transaction data and the transaction limit parameter is less than the preset threshold, and the situation of being less than the preset threshold occurs for a first preset number of times in a row, the risk acceptance value of the customer is increased to a minimum value among multiple preset customer sets whose risk acceptance values are greater than the current risk acceptance value of the customer;
[0090] If the difference between the actual transaction data and the transaction limit parameter is greater than the preset threshold, and the situation of being greater than the preset threshold occurs for a second preset number of times in a row, the customer's risk acceptance value will be lowered to a maximum value among multiple preset customer sets whose risk acceptance values are less than the customer's current risk acceptance value.
[0091] In the embodiment of the present invention, Fig. 9 As shown, it also includes: a corresponding relationship establishing module 12, which is used to:
[0092] Obtain the bank’s low-risk transaction data before determining the client’s transaction limit parameters based on the blockchain’s smart contract, the client’s risk tolerance and the client’s number of resources at the bank;
[0093] Obtaining, from each piece of transaction data in the low-risk transaction data, transaction restriction parameters, risk acceptance values, and the number of resources of the customer in the bank at the corresponding transaction time point for different customers in the customer set corresponding to each piece of transaction data;
[0094] A corresponding relationship table is established based on the transaction restriction parameters, risk acceptance values and the number of resources of the customer in the bank at the corresponding transaction time point of different customers in the customer set corresponding to each transaction data, wherein the one-to-one correspondence between the risk acceptance value, the number of resources and the transaction restriction parameters is recorded in the corresponding relationship table;
[0095] The corresponding relationship table is stored in the smart contract of the blockchain.
[0096] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for setting transaction restriction parameters based on smart contracts when executing the computer program.
[0097] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the above-mentioned method for setting transaction restriction parameters based on smart contracts are implemented.
[0098] In the embodiments of the present invention, compared with the technical solution in which customer parameters are set to fixed values in the prior art, historical transaction data of the customer in the bank is obtained, and multiple attribute values of the customer are obtained based on the historical transaction data; the risk acceptance value of the customer is determined based on the multiple attribute values of the customer; the transaction restriction parameters of the customer are determined according to the smart contract of the blockchain, the risk acceptance value of the customer and the number of resources of the customer in the bank; corresponding transaction control processing is performed based on the transaction restriction parameters. The present invention can set transaction restriction parameters based on historical transaction data and smart contracts of the blockchain, and can achieve more accurate assessment of risks and actual needs, which can not only improve customer experience but also effectively prevent risks.
[0099] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention 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 code.
[0100] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.
[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0103] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for setting transaction restriction parameters based on smart contracts, characterized in that: include: Obtain the historical transaction data of the customer in the bank, and based on the historical transaction data, obtain multiple attribute values of the customer; wherein the historical transaction data includes the transaction time, transaction type, transaction location, transaction channel, transaction amount, the amount of funds of the customer in the bank at the transaction time, identity verification method, transaction status, and transaction information selected or filled in by the customer during the transaction, and the multiple attribute values of the customer include multiple financial attributes and risk attributes of the customer; Determine the risk acceptance value of the customer based on multiple attribute values of the customer; Determine the transaction limit parameters for the customer based on the blockchain’s smart contract, the customer’s risk tolerance, and the customer’s resources at the bank; Perform corresponding transaction control processing based on transaction restriction parameters; wherein the transaction restriction parameters are used to control transaction risks, and the transaction restriction parameters are transaction limits at corresponding time points and corresponding locations, maximum transaction waiting times at corresponding time points and corresponding locations, and identity verification methods at corresponding time points and corresponding locations; Before determining the transaction limit parameters for the customer based on the blockchain smart contract, the customer's risk acceptance value and the number of resources the customer has in the bank, it also includes: Obtain low-risk transaction data from banks; Obtaining, from each piece of transaction data in the low-risk transaction data, transaction restriction parameters, risk acceptance values, and the number of resources of the customer in the bank at the corresponding transaction time point for different customers in the customer set corresponding to each piece of transaction data; A corresponding relationship table is established based on the transaction restriction parameters, risk acceptance values and the number of resources of the customer in the bank at the corresponding transaction time point of different customers in the customer set corresponding to each transaction data, wherein the one-to-one correspondence between the risk acceptance value, the number of resources and the transaction restriction parameters is recorded in the corresponding relationship table; Storing the corresponding relationship table in a smart contract of the blockchain; The method further includes: after determining the transaction limit parameters of the customer, adjusting the risk acceptance value of the customer according to the actual transaction data of the customer, and then adjusting the transaction limit parameters, including: If the difference between the actual transaction data and the transaction limit parameter is less than the preset threshold, and the situation of being less than the preset threshold occurs for a first preset number of times in a row, the risk acceptance value of the customer is increased to a minimum value among multiple preset customer sets whose risk acceptance values are greater than the current risk acceptance value of the customer; If the difference between the actual transaction data and the transaction limit parameter is greater than the preset threshold, and the situation of being greater than the preset threshold occurs for a second preset number of times in a row, the customer's risk acceptance value will be lowered to a maximum value among multiple preset customer sets whose risk acceptance values are less than the customer's current risk acceptance value.
2. The method for setting transaction restriction parameters based on smart contracts according to claim 1, characterized in that: Determine the risk acceptance value of the customer based on multiple attribute values of the customer, including: Obtain the structure of the Bayesian network based on the dependencies between multiple attributes; Determine the parameters of the Bayesian network based on the transaction data of the bank's customer set; Based on the structure and parameters of the Bayesian network, determine the conditional probability distribution that the risk acceptance value is equal to the second preset value under the condition that the attribute value is the first preset value; Based on the multiple attribute values of the customer and the conditional probability distribution, the probability that the customer belongs to each risk acceptance value is determined, and then the risk acceptance value of the customer is determined.
3. The method for setting transaction restriction parameters based on smart contracts according to claim 1, characterized in that: Determine the risk acceptance value of the customer based on multiple attribute values of the customer, including: Based on multiple attribute values of the customer, estimating the probability that the customer belongs to each of multiple preset customer sets; The risk acceptance value of the customer is determined according to the probability and the risk acceptance value corresponding to each preset customer set.
4. The method for setting transaction restriction parameters based on smart contracts according to claim 3, characterized in that: Based on multiple attribute values of the customer, the probability that the customer belongs to each of multiple preset customer sets is estimated, including: Setting a set of attributes for a customer based on multiple attribute values of the customer; Based on a preset distance measurement method, the attribute set of the customer and the attribute set of each customer in each preset customer set, calculating the distance between the customer and each preset customer set; Based on the distance between the customer and each preset customer set, a probability that the customer belongs to each preset customer set in the plurality of preset customer sets is obtained.
5. A transaction restriction parameter setting device based on smart contracts, characterized in that: include: The data and attribute acquisition module is used to acquire the historical transaction data of the customer in the bank, and based on the historical transaction data, acquire multiple attribute values of the customer; wherein the historical transaction data includes the transaction time, transaction type, transaction location, transaction channel, transaction amount, the amount of funds of the customer in the bank at the transaction time, identity verification method, transaction status, and transaction information selected or filled in by the customer during the transaction, and the multiple attribute values of the customer include multiple financial attributes and risk attributes of the customer; A risk acceptance value determination module, used to determine the risk acceptance value of the customer based on multiple attribute values of the customer; A transaction limit parameter determination module, which is used to determine the transaction limit parameters of the customer based on the smart contract of the blockchain, the risk acceptance value of the customer, and the number of resources of the customer in the bank; A transaction control processing module, used to perform corresponding transaction control processing based on transaction restriction parameters; wherein the transaction restriction parameters are used to control transaction risks, and the transaction restriction parameters are transaction limits at corresponding time points and corresponding locations, maximum transaction waiting times at corresponding time points and corresponding locations, and identity verification methods at corresponding time points and corresponding locations; The device further includes: a corresponding relationship establishing module, which is used to: Obtain the bank’s low-risk transaction data before determining the client’s transaction limit parameters based on the blockchain’s smart contract, the client’s risk tolerance and the client’s number of resources at the bank; Obtaining, from each piece of transaction data in the low-risk transaction data, transaction restriction parameters, risk acceptance values, and the number of resources of the customer in the bank at the corresponding transaction time point for different customers in the customer set corresponding to each piece of transaction data; A corresponding relationship table is established based on the transaction restriction parameters, risk acceptance values and the number of resources of the customer in the bank at the corresponding transaction time point of different customers in the customer set corresponding to each transaction data, wherein the one-to-one correspondence between the risk acceptance value, the number of resources and the transaction restriction parameters is recorded in the corresponding relationship table; Storing the corresponding relationship table in a smart contract of the blockchain; The device further includes: a parameter adjustment module, which is used to: after determining the transaction limit parameters of the customer, adjust the risk acceptance value of the customer according to the actual transaction data of the customer, and then adjust the transaction limit parameters; The parameter adjustment module is specifically used for: If the difference between the actual transaction data and the transaction limit parameter is less than the preset threshold, and the situation of being less than the preset threshold occurs for a first preset number of times in a row, the risk acceptance value of the customer is increased to a minimum value among multiple preset customer sets whose risk acceptance values are greater than the current risk acceptance value of the customer; If the difference between the actual transaction data and the transaction limit parameter is greater than the preset threshold, and the situation of being greater than the preset threshold occurs for a second preset number of times in a row, the customer's risk acceptance value will be lowered to a maximum value among multiple preset customer sets whose risk acceptance values are less than the customer's current risk acceptance value.
6. The transaction restriction parameter setting device based on smart contract according to claim 5, characterized in that: The risk acceptance value determination module is specifically used for: Obtain the structure of the Bayesian network based on the dependencies between multiple attributes; Determine the parameters of the Bayesian network based on the transaction data of the bank's customer set; Based on the structure and parameters of the Bayesian network, the conditional probability distribution of the risk acceptance value being equal to the preset value is determined under the condition that the attribute value is the preset value; Based on the multiple attribute values of the customer and the conditional probability distribution, the probability that the customer belongs to each risk acceptance value is determined, and then the risk acceptance value of the customer is determined.
7. The transaction restriction parameter setting device based on smart contract according to claim 5, characterized in that: The risk acceptance value determination module is specifically used for: Based on multiple attribute values of the customer, estimating the probability that the customer belongs to each of multiple preset customer sets; The risk acceptance value of the customer is determined according to the probability and the risk acceptance value corresponding to each preset customer set.
8. The transaction restriction parameter setting device based on smart contract according to claim 7, characterized in that: The risk acceptance value determination module is specifically used for: Setting a customer attribute set for a customer based on multiple attribute values of the customer; Based on a preset distance measurement method, a customer attribute set of the customer and an attribute set of each customer in each preset customer set, calculating the distance between the customer and each preset customer set; Based on the distance between the customer and each preset customer set, a probability that the customer belongs to each preset customer set in the plurality of preset customer sets is obtained.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for setting transaction restriction parameters based on a smart contract according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for setting transaction restriction parameters based on a smart contract according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Method and device for determining risk rank of user and computer equipment
CN107203939A
User business preference assessing method, user investment risk preference assessing method and user business preference assessing device
CN107240019A
Cited By
Bank intelligent risk control system based on block chain and multi-modal artificial intelligence
CN120258955A
