CN115545937A - Transaction simulation method and device, electronic equipment and readable storage medium - Google Patents

Transaction simulation method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115545937A
CN115545937A CN202211506398.7A CN202211506398A CN115545937A CN 115545937 A CN115545937 A CN 115545937A CN 202211506398 A CN202211506398 A CN 202211506398A CN 115545937 A CN115545937 A CN 115545937A
Authority
CN
China
Prior art keywords
transaction
virtual
strategy
wind control
virtual platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211506398.7A
Other languages
Chinese (zh)
Other versions
CN115545937B (en
Inventor
魏增艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202211506398.7A priority Critical patent/CN115545937B/en
Publication of CN115545937A publication Critical patent/CN115545937A/en
Application granted granted Critical
Publication of CN115545937B publication Critical patent/CN115545937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a transaction simulation method, a transaction simulation device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: generating a plurality of virtual platforms and a plurality of virtual users; randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; sending a first instruction to each virtual user, and instructing the virtual users to initiate simulated transaction to each virtual platform according to the pre-distributed transaction strategy; sending a second instruction to each virtual platform, and instructing the virtual platforms to process the simulated transaction according to the pre-distributed wind control strategy; detecting whether all the simulated transactions are processed and completed by each virtual platform; and if the detection result is that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining an optimal transaction strategy and an optimal wind control strategy according to the transaction processing results. The invention avoids the huge cost required by manual transaction investigation and adapts to the rapid change of illegal transaction risks.

Description

Transaction simulation method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet finance, in particular to a transaction simulation method, a transaction simulation device, electronic equipment and a readable storage medium.
Background
The internet financial platform faces various and rapidly-changing illegal transaction risks (such as money laundering, credit card embezzlement and the like), so that the internet financial platform invests huge manpower and material resources in the aspect of transaction risk prevention and control.
However, as the transaction amount of the internet financial platform continuously increases, the cost of the existing method for manually checking the transaction risk is huge, and most of the existing methods are used for prevention and control according to the transaction data of the transaction, so that the method is difficult to adapt to the rapid change of the illegal transaction risk after the later knowledge.
Disclosure of Invention
The embodiment of the invention provides a transaction simulation method, a transaction simulation device, electronic equipment and a readable storage medium, which aim to solve the problems that the existing method for checking transaction risks manually has huge cost, mostly carries out prevention and control according to transaction data of transactions, and is difficult to adapt to rapid change of illegal transaction risks due to the fact that a user knows the afterthought.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a transaction simulation method, including:
a generation step: generating a plurality of virtual platforms and a plurality of virtual users;
a distribution step: randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; the transaction strategy is a strategy for initiating normal transactions and deceptive transactions, and the wind control strategy is a strategy for releasing or blocking simulated transactions initiated by the user;
and (3) a circulating transaction step: sending a first instruction to each virtual user, wherein the first instruction is used for instructing the virtual users to initiate simulated transactions for each virtual platform according to pre-distributed transaction strategies; sending a second instruction to each virtual platform, wherein the second instruction is used for instructing the virtual platforms to process the simulated transaction according to the pre-distributed wind control strategy;
a detection step: detecting whether all the simulated transactions are processed by each virtual platform or not to obtain a detection result;
a first execution step: and if the detection result is that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining the optimal transaction strategy and the optimal wind control strategy according to the transaction processing results.
Alternatively,
determining the optimal transaction strategy and the optimal wind control strategy according to the transaction processing result, wherein the determining comprises the following steps:
grading each transaction processing result by adopting a preset transaction model to obtain a grading value;
and determining the optimal transaction strategy and the optimal wind control strategy according to the score, the transaction strategy in the transaction processing result corresponding to the score and the wind control strategy in the transaction processing result corresponding to the score.
Alternatively,
determining the optimal trading strategy and the optimal wind control strategy according to the trading processing result, wherein the steps of:
determining a target transaction processing result in all the transaction processing results according to a preset sampling rule;
grading each target transaction processing result by adopting a preset transaction model to obtain a target grading value;
and determining the optimal transaction strategy and the optimal wind control strategy according to the target score value, the transaction strategy in the target transaction processing result corresponding to the target score value and the wind control strategy in the target transaction processing result corresponding to the target score value.
Alternatively, the first and second liquid crystal display panels may be,
the detecting step, thereafter, comprises:
the second execution step: if the detection result indicates that the virtual platform does not process and complete all the simulated transactions, the step of executing the circular transactions is suspended, whether the virtual platform completes all the simulated transactions in the current metering section is verified, and a verification result is obtained;
the third execution step: if the verification result is that the virtual platform completes all the simulated transactions in the current metering section, acquiring a section transaction processing result of the simulated transactions in the current metering section; obtaining the selected virtual user and the selected virtual platform according to the segmented transaction processing result and a preset selection rule;
the fourth execution step: and continuously executing the circular transaction step by using the virtual user library updated by the selected virtual user and the virtual platform library updated by the selected virtual platform until the detection result is that the virtual platform processes all the simulated transactions.
In a second aspect, an embodiment of the present invention provides a transaction simulation apparatus, including:
a generating module for generating: generating a plurality of virtual platforms and a plurality of virtual users;
an assignment module for assigning steps: randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; the transaction strategy is a strategy for initiating normal transactions and deceptive transactions, and the wind control strategy is a strategy for releasing or blocking simulated transactions initiated by the user;
the circulation trading module is used for circulating trading steps: sending a first instruction to each virtual user, wherein the first instruction is used for instructing the virtual users to initiate simulated transaction to each virtual platform according to a pre-distributed transaction strategy; sending a second instruction to each virtual platform, wherein the second instruction is used for instructing the virtual platforms to process the simulated transaction according to the pre-distributed wind control strategy;
the detection module is also used for detecting the steps: detecting whether all the simulated transactions are processed and completed by each virtual platform or not to obtain a detection result;
a first execution module for performing the first step: and if the detection result indicates that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining the optimal transaction strategy and the optimal wind control strategy according to the transaction processing results.
Alternatively,
the first execution module is further used for scoring each transaction processing result by adopting a preset transaction model to obtain a scoring score;
the first execution module is further configured to determine an optimal transaction strategy and an optimal wind control strategy according to the score, the transaction strategy in the transaction processing result corresponding to the score, and the wind control strategy in the transaction processing result corresponding to the score.
Alternatively,
the first execution module is further used for determining a target transaction processing result in all the transaction processing results according to a preset sampling rule;
the first execution module is further used for scoring each target transaction processing result by adopting a preset transaction model to obtain a target scoring value;
the first execution module is further configured to determine the optimal transaction strategy and the optimal wind control strategy according to the target score value, a transaction strategy in a target transaction processing result corresponding to the target score value, and a wind control strategy in a target transaction processing result corresponding to the target score value.
Alternatively, the first and second liquid crystal display panels may be,
a second execution module for performing the second step: if the detection result indicates that the virtual platform does not process and complete all the simulated transactions, the step of executing the circular transactions is suspended, whether the virtual platform completes all the simulated transactions in the current metering section is verified, and a verification result is obtained;
a third executing module, configured to execute the third step: if the verification result is that the virtual platform completes all the simulated transactions in the current metering subsection, acquiring a subsection transaction processing result of the simulated transactions in the current metering subsection; according to the segmented transaction processing result and a preset selection rule, the selected virtual user and the selected virtual platform are obtained;
a fourth execution module, configured to perform the fourth step: and continuously executing the circular transaction step by using the virtual user library updated by the selected virtual user and the virtual platform library updated by the selected virtual platform until the detection result is that the virtual platform processes all the simulated transactions.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps in the transaction simulation method according to any one of the first aspect.
In a fourth aspect, the present invention provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps in the transaction simulation method according to any one of the first aspect.
In the embodiment of the invention, a plurality of virtual platforms and a plurality of virtual users are generated through the generation step; distributing transaction strategies for each virtual user randomly through a distribution step, and distributing wind control strategies for each virtual platform randomly; further, by circulating the transaction step, the detection step and the first execution step, the simulation of the transaction is realized, and the huge cost required by manually checking the transaction is avoided; even if the transaction does not really occur, the method can also prevent and control through the simulation of the transaction, and can adapt to the rapid change of illegal transaction risks.
Drawings
Various additional advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic flow chart of a transaction simulation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a transaction model;
FIG. 3 is a graph illustrating target score scores;
FIG. 4 is a schematic flow chart illustrating a transaction simulation method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a 1 round transaction;
FIG. 6 is a flow chart illustrating adaptive calculation of a transaction policy;
FIG. 7 is a schematic diagram of an adaptive calculation flow of a wind control strategy;
FIG. 8 is a functional block diagram of a transaction simulation device according to an embodiment of the present invention;
fig. 9 is a functional block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a transaction simulation method, and as shown in fig. 1, fig. 1 is a schematic flow diagram of the transaction simulation method according to the embodiment of the present invention, including:
a generation step 11: generating a plurality of virtual platforms and a plurality of virtual users;
a distribution step 12: randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; the transaction strategy is a strategy for initiating normal transactions and deceptive transactions, and the wind control strategy is a strategy for releasing or blocking simulated transactions initiated by a user;
a circular transaction step 13: sending a first instruction to each virtual user, wherein the first instruction is used for instructing the virtual user to initiate a simulated transaction to each virtual platform according to a pre-distributed transaction strategy; sending a second instruction to each virtual platform, wherein the second instruction is used for instructing the virtual platforms to process the simulated transaction according to the pre-distributed wind control strategy;
a detection step 14: detecting whether all the simulated transactions are processed and completed by each virtual platform or not to obtain a detection result;
the first execution step 15: and if the detection result is that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining an optimal transaction strategy and an optimal wind control strategy according to the transaction processing results.
In some embodiments of the invention, optionally, the transaction policy comprises at least one of the following policies: a random transaction policy, a best-people transaction policy, a worst transaction policy, a first-worst alternate transaction policy, a first-best alternate transaction policy, a first-worst careless transaction policy, and a first-best careless transaction policy.
Wherein the content of the first and second substances,
a random transaction strategy: the virtual user randomly initiates normal transactions and fraudulent transactions regardless of what action (blocking or clearing) the virtual platform takes.
Preferably the human trading strategy: the virtual user only initiates normal transactions no matter what action (blocking or clearing) the virtual platform takes.
The worst person transaction strategy: the virtual user only initiates a spoofed transaction, no matter what action (blocking or clearing) the virtual platform takes.
A head and worship alternative trading strategy: initiating a fraud transaction with a first transaction of the virtual platform; transacting with the virtual platform for the second time, and initiating normal transaction; and carrying out transaction with the virtual platform for the third time, initiating deception transaction, and so on.
A first alternative transaction strategy: initiating a normal transaction with a first transaction of the virtual platform; transacting with the virtual platform for the second time, and initiating deception transaction; carrying out transaction with the virtual platform for the third time, initiating normal transaction, and so on;
first-hearted transaction strategy: initiating a fraud transaction with a first transaction of the virtual platform; if the last transaction is a deceptive transaction and is blocked by the virtual platform, a normal transaction is initiated when the transaction is conducted with the virtual platform; if the transaction is released by the virtual platform, the deception transaction is still initiated; if the last transaction is a normal transaction and is blocked by the virtual platform, initiating a normal transaction when the transaction is conducted with the virtual platform; and if the transaction is released by the virtual platform, the deception transaction is initiated.
The first good careless trading strategy is as follows: initiating a normal transaction with a first transaction of the virtual platform; if the last transaction is a deceptive transaction and is blocked by the virtual platform, a normal transaction is initiated when the transaction is conducted with the virtual platform; if the transaction is released by the virtual platform, the deception transaction is still initiated; if the last transaction is a normal transaction and is blocked by the virtual platform, initiating a normal transaction when the transaction is conducted with the virtual platform; and if the transaction is released by the virtual platform, the deception transaction is initiated.
First care trading strategy: initiating a fraud transaction with a first transaction of the virtual platform; if the last transaction is a deception transaction and is blocked by the virtual platform, a normal transaction is initiated when the transaction is conducted with the virtual platform; if the transaction is released by the virtual platform, the deception transaction is still initiated; if the last transaction is a normal transaction, the normal transaction is initiated at this time.
In some embodiments of the invention, optionally, the wind control policy comprises at least one of the following policies: a random wind control strategy, a loosest wind control strategy, a tightest wind control strategy, a gate clearance wind control strategy, a wide-tolerance gate clearance transaction strategy, a wide-tolerance gate-to-wind control strategy, a gate clearance wind control strategy, a graph-interest wind control strategy, and a deterrent wind control strategy.
Wherein, the first and the second end of the pipe are connected with each other,
and (3) random wind control strategy: no matter what transaction is initiated by the virtual user, the virtual platform randomly releases and blocks the transaction.
The loosest wind control strategy is as follows: the virtual platform only passes no matter what transaction the virtual user initiates.
The most strict wind control strategy is as follows: the virtual platform only blocks whatever transaction the virtual user initiates.
And (3) a customs control strategy: if the transaction is normal, releasing; and blocking if the transaction is deceived.
Tolerance gate-keeping transaction strategy: if the transaction is normal, releasing; if the transaction is deceived and the first deceived transaction of the virtual user is confirmed, the transaction is released, and if the transaction is not the first deceived transaction, the transaction is blocked.
Tolerance is for a wind control strategy: a first transaction with the virtual user is released; starting from the second transaction, if the last time the virtual user initiates the deception transaction, blocking the transaction; and if the virtual user initiates the normal transaction last time, releasing.
The customs control aims at the wind control strategy: blocking the first transaction with the virtual user if the first transaction is a deceptive transaction, and releasing the first transaction if the first transaction is a normal transaction; starting from the second transaction, if the virtual user initiates the deceptive transaction last time, blocking the transaction this time; and if the virtual user initiates the normal transaction last time, releasing.
And (3) graph and interest wind control strategy: passing all normal transactions; the fraudulent transaction is randomly blocked and cleared.
Deterrence wind control strategy: blocking the first three transactions with the virtual user; starting from the fourth transaction, if the virtual user initiates a normal transaction, releasing; and if the virtual user initiates a deception transaction, blocking, and blocking two subsequent transactions with the virtual user.
In the embodiment of the invention, a plurality of virtual platforms and a plurality of virtual users are generated through the generation step; then, randomly distributing a transaction strategy for each virtual user through a distribution step, and randomly distributing a wind control strategy for each virtual platform; further, by circulating the transaction step, the detection step and the first execution step, the simulation of the transaction is realized, and the huge cost required by manually checking the transaction is avoided; even if the transaction does not really occur, the method can also prevent and control through the simulation of the transaction, and can adapt to the rapid change of illegal transaction risks.
In some embodiments of the present invention, optionally, determining the optimal trading strategy and the optimal wind control strategy according to the trading processing result includes:
step a: grading each transaction processing result by adopting a preset transaction model to obtain a grading value;
step b: and determining an optimal transaction strategy and an optimal wind control strategy according to the score, the transaction strategy in the transaction processing result corresponding to the score and the wind control strategy in the transaction processing result corresponding to the score.
In some embodiments of the present invention, optionally, determining the optimal transaction policy and the optimal wind control policy according to the transaction processing result includes:
step c: determining a target transaction processing result in all transaction processing results according to a preset sampling rule;
step d: grading each target transaction processing result by adopting a preset transaction model to obtain a target grading value;
step e: and determining an optimal transaction strategy and an optimal wind control strategy according to the target score value, the transaction strategy in the target transaction processing result corresponding to the target score value and the wind control strategy in the target transaction processing result corresponding to the target score value.
For example, referring to fig. 2, fig. 2 is a schematic diagram of a transaction model, which defines an interaction process between a (virtual) user and a (virtual) platform as a transaction between the (virtual) user and the (virtual) platform.
The (virtual) user may initiate both normal and fraudulent transactions.
For a (virtual) platform, a transaction may take both pass and block actions.
There are 4 combinations, depending on the (virtual) user initiated transaction and the actions taken by the (virtual) platform: normal transaction-release, fraudulent transaction-release, normal transaction-block, and fraudulent transaction-block.
Referring to FIG. 3, FIG. 3 is a graph illustrating target score scores; each time a transaction is made, the (virtual) user and the (virtual) platform may get a certain score. These four transaction behaviors set the score obtainable by the (virtual) user and the (virtual) platform, i.e. the target score. One score setting is as follows:
if the (virtual) user initiates normal transaction, if the (virtual) platform takes a release action, the (virtual) platform and the (virtual) user can obtain 3 points; if the (virtual) platform takes blocking action, the platform gets a score of-3, and the (virtual) user gets a score of 3.
If the (virtual) user initiates a deception transaction, if the (virtual) platform takes a release action, the (virtual) platform is divided into 5 points, and the (virtual) user is divided into 5 points; if the (virtual) platform takes blocking action, the (virtual) platform gets a score of 3, and the (virtual) user gets a score of-3.
In some embodiments of the present invention, optionally, the detecting step 14 is followed by:
the second execution step: if the detection result is that the virtual platform does not process and complete all the simulated transactions, suspending the execution of the cyclic transaction step, and checking whether the virtual platform completes all the simulated transactions in the current metering segment to obtain a checking result;
the third execution step: if the verification result is that the virtual platform completes all simulated transactions in the current metering section, acquiring a sectional transaction processing result of the simulated transactions in the current metering section; obtaining a selected virtual user and a selected virtual platform according to the segmented transaction processing result and a preset selection rule;
the fourth execution step: and continuously executing the circulating transaction step by using the virtual user library updated by the selected virtual user and the virtual platform library updated by the selected virtual platform until the detection result is that the virtual platform processes all the simulated transactions.
Exemplarily, referring to fig. 4, fig. 4 is a schematic flow chart of a transaction simulation method applying an embodiment of the present invention, wherein:
initializing a platform: generating a certain number of (virtual) platforms, for example, 100, and randomly allocating a wind control policy to the (virtual) platforms (which is equivalent to generating a plurality of virtual platforms in the generating step 11 and randomly allocating a wind control policy to each virtual platform in the allocating step 12 in the embodiment of the present invention);
initializing a user: generating a certain number of (virtual) users, for example, 1 million users, and randomly allocating a trading strategy to the (virtual) users (which is equivalent to generating a plurality of virtual users in the generating step 11 and randomly allocating a trading strategy to each virtual user in the allocating step 12 in the embodiment of the present invention);
1 round of transaction: all (virtual) platforms and all (virtual) users respectively carry out one transaction;
referring to fig. 5, fig. 5 is a schematic flow chart of 1 round of transaction, where the (virtual) platform has long-term cooperation with the (virtual) user, that is, the cooperation time is x years, y rounds of transaction are performed every year, and x y rounds of transaction are accumulated, for example, x =30, y =240, and x y =7200 rounds of transaction;
the following operations are performed every time a one-year transaction is completed (one-year transaction, which corresponds to the metering section in the embodiment of the present invention):
transaction supervision: randomly checking all transactions in the past year according to the proportion of one in ten million, in the random check, if the checked result is that the released transaction is a deceptive transaction, setting the transaction as an invalid transaction, and if the checked result is that the released transaction is a normal transaction, setting the transaction as an effective transaction (which is equivalent to determining a target transaction processing result in all transaction processing results according to a preset sampling rule in the embodiment of the invention);
and (3) statistical scoring: counting the effective transaction scores of all (virtual) users, and sorting the scores from high to low; accumulating the scores of all platform-effective transactions and ranking the scores from high to low
And (3) clearing the user: all the (virtual) users scoring the last z% are set as invalid (virtual) users, and do not participate in the later transaction;
and (3) new users: newly generating z% users, and randomly distributing transaction strategies to the newly generated users according to the transaction strategies of the users with the scores of the (virtual) users close to the first z% users;
a clear platform: setting all platforms with the scores of m% later as invalid (virtual) platforms, and not participating in later transactions any more;
a newborn platform: newly generating m% platforms, and randomly distributing wind control strategies to the newly generated platforms according to the wind control strategies of the platforms which score close to the previous m% platforms;
(the transaction supervision, the statistical score, the clearing user, the new user, the clearing platform and the new platform are equivalent to the embodiment of the invention in which the selected virtual user and the selected virtual platform are obtained according to the segmented transaction processing result and the preset selected rule)
And (3) strategy adaptability calculation: identifying a transaction policy that is most helpful to a (virtual) user to obtain a high score and is used by the most (virtual) users; the platform can be helped to obtain high scores and transaction strategies used by the most platforms (the transaction strategies are equivalent to a virtual user base updated by the selected virtual users and a virtual platform base updated by the selected virtual platforms in the embodiment of the invention, the cyclic transaction steps are continuously executed until the detection result is that the virtual platforms process and complete all simulated transactions, if the detection result is that all the simulated transactions are processed and completed by each virtual platform, all transaction processing results of the simulated transactions are obtained, and the optimal transaction strategy and the optimal wind control strategy are determined according to the transaction processing results).
For example, referring to fig. 6, fig. 6 is a schematic diagram of an adaptive calculation flow of a transaction policy, where:
the adaptability of the strategy, namely survival of the fittest, is mainly considered from the following two aspects after a long-term game:
(1) Which policies can help users and platforms get high scores;
(2) Which policies are most widely used by users and platforms.
Specifically, the range of defining the user high score refers to users with the front score of 10%, and the specific implementation steps are as follows (a-1 to a-8):
step a-1: and initializing an h counter, namely using h1, h2, h3, h4, h5, h6, h7, h8 and h9 as counters, wherein h1 represents the number of users using the first transaction strategy in high-ranking users, and the like. Initializing a w counter, namely w1, w2, w3, w4, w5, w6, w7, w8 and w9 are used as counters, wherein w1 represents the number of users using the first transaction strategy;
step a-2: all users are ranked from high to low according to scores;
step a-3: traversing the users, judging whether all the users are traversed or not, and if not, performing the fourth step; if yes, stopping;
step a-4: acquiring a transaction strategy used by a user at the moment;
step a-5: judging whether the number of the traversed users reaches 10% of the total number of the users, and if not, performing the step a-6; if the result is reached, skipping the step a-6 and directly performing the step a-7;
step a-6: b, accumulating the h counter corresponding to the current user transaction strategy acquired in the step a-4 by 1;
step a-7: accumulating the w counter corresponding to the current user transaction strategy acquired in the step a-4 by 1;
step a-8: and (e) jumping to the step c, wherein h1, h2, h3, h4, h5, h6, h7, h8 and h9 are high-score user numbers of each transaction strategy, and w1, w2, w3, w4, w5, w6, w7, w8 and w9 are user numbers of each transaction strategy.
For example, referring to fig. 7, fig. 7 is a schematic diagram of an adaptive computing flow of a wind control strategy, where:
defining the range of plateau high score refers to the plateau with the previous score of 10%, the implementation steps are as follows (a to I):
step A: initializing H counters, namely H1, H2, H3, H4, H5, H6, H7, H8 and H9 are used as counters, wherein H1 represents the number of platforms using the first trading strategy in the high-ranking platforms, and the like. Initializing a W counter, namely using W1, W2, W3, W4, W5, W6, W7, W8 and W9 as the counter, wherein W1 represents the number of platforms using the first transaction strategy;
and B, step B: all platforms are ranked from high to low according to scores;
and C: traversing the platforms, judging whether all the platforms are traversed currently or not, and if not, performing the fourth step; if yes, stopping;
step D: acquiring a wind control strategy used by a current platform;
step E: judging whether the number of the traversed platforms reaches 10% of the total number of the platforms or not, and if not, performing the step F; if yes, skipping step F and directly performing step G;
step F: d, accumulating 1 for the H counter corresponding to the current platform wind control strategy obtained in the step D;
step G: d, accumulating the W counter corresponding to the current platform wind control strategy obtained in the step D by 1;
step I: c, jumping to a step C, wherein H1, H2, H3, H4, H5, H6, H7, H8 and H9 are the number of high-grade platforms of each wind control strategy; w1, W2, W3, W4, W5, W6, W7, W8 and W9 are the platform number of each wind control strategy.
An embodiment of the present invention provides a transaction simulation apparatus, as shown in fig. 8, fig. 8 is a schematic block diagram of the transaction simulation apparatus according to the embodiment of the present invention, and the transaction simulation apparatus 80 includes:
a generating module 81 for generating: generating a plurality of virtual platforms and a plurality of virtual users;
an assignment module 82 for assigning the steps of: randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; the transaction strategy is a strategy for initiating normal transactions and deceptive transactions, and the wind control strategy is a strategy for releasing or blocking simulated transactions initiated by a user;
a round-robin trading module 83 for round-robin trading steps: sending a first instruction to each virtual user, wherein the first instruction is used for instructing the virtual user to initiate a simulated transaction to each virtual platform according to a pre-distributed transaction strategy; sending a second instruction to each virtual platform, wherein the second instruction is used for instructing the virtual platforms to process simulated transactions according to the pre-distributed wind control strategy;
the detection module 84 is further configured to perform the detection step: detecting whether all the simulated transactions are processed and completed by each virtual platform or not to obtain a detection result;
a first executing module 85, configured to perform the first step of: and if the detection result is that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining an optimal transaction strategy and an optimal wind control strategy according to the transaction processing results.
In some embodiments of the present invention, the first and second electrodes are, optionally,
the first execution module 85 is further configured to score each transaction processing result by using a preset transaction model to obtain a score value;
the first executing module 85 is further configured to determine an optimal transaction policy and an optimal wind control policy according to the score, the transaction policy in the transaction processing result corresponding to the score, and the wind control policy in the transaction processing result corresponding to the score.
In some embodiments of the present invention, the first and second electrodes are, optionally,
the first execution module 85 is further configured to determine a target transaction processing result in all transaction processing results according to a preset sampling rule;
the first execution module 85 is further configured to score each target transaction processing result by using a preset transaction model to obtain a target score value;
the first executing module 85 is further configured to determine an optimal transaction policy and an optimal wind control policy according to the target score value, the transaction policy in the target transaction processing result corresponding to the target score value, and the wind control policy in the target transaction processing result corresponding to the target score value.
In some embodiments of the present invention, optionally, further comprising:
a second execution module for performing the second step: if the detection result is that the virtual platform does not process and complete all the simulated transactions, suspending the execution of the cyclic transaction step, and checking whether the virtual platform completes all the simulated transactions in the current metering segment to obtain a checking result;
a third executing module, configured to perform the third executing step: if the verification result is that the virtual platform completes all simulated transactions in the current metering section, acquiring a sectional transaction processing result of the simulated transactions in the current metering section; obtaining a selected virtual user and a selected virtual platform according to the segmented transaction processing result and a preset selection rule;
a fourth execution module, configured to perform the fourth step: and continuously executing the circulating transaction step by using the virtual user library updated by the selected virtual user and the virtual platform library updated by the selected virtual platform until the detection result is that the virtual platform processes all the simulated transactions.
The transaction simulation device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 7, and achieve the same technical effect, and is not described herein again to avoid repetition.
An electronic device 90 is provided in an embodiment of the present invention, referring to fig. 9, fig. 9 is a schematic block diagram of the electronic device 90 in the embodiment of the present invention, and includes a processor 91, a memory 92, and a program or an instruction stored on the memory 92 and executable on the processor 91, and when the program or the instruction is executed by the processor, the steps in any transaction simulation method of the present invention are implemented.
The embodiment of the present invention provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of any one of the embodiments of the transaction simulation method described above, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A transaction simulation method, comprising:
a generation step: generating a plurality of virtual platforms and a plurality of virtual users;
a distribution step: randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; the transaction strategy is a strategy for initiating normal transactions and deceptive transactions, and the wind control strategy is a strategy for releasing or blocking simulated transactions initiated by the user;
and (3) a circulating transaction step: sending a first instruction to each virtual user, wherein the first instruction is used for instructing the virtual users to initiate simulated transaction to each virtual platform according to a pre-distributed transaction strategy; sending a second instruction to each virtual platform, wherein the second instruction is used for instructing the virtual platform to process the simulated transaction according to a pre-distributed wind control strategy;
a detection step: detecting whether all the simulated transactions are processed and completed by each virtual platform or not to obtain a detection result;
a first execution step: and if the detection result indicates that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining the optimal transaction strategy and the optimal wind control strategy according to the transaction processing results.
2. The transaction simulation method of claim 1, wherein:
determining the optimal trading strategy and the optimal wind control strategy according to the trading processing result, wherein the steps of:
grading each transaction processing result by adopting a preset transaction model to obtain a grading value;
and determining the optimal transaction strategy and the optimal wind control strategy according to the score, the transaction strategy in the transaction processing result corresponding to the score and the wind control strategy in the transaction processing result corresponding to the score.
3. The transaction simulation method of claim 1, wherein:
determining the optimal transaction strategy and the optimal wind control strategy according to the transaction processing result, wherein the determining comprises the following steps:
determining a target transaction processing result in all the transaction processing results according to a preset sampling rule;
grading each target transaction processing result by adopting a preset transaction model to obtain a target grading value;
and determining the optimal transaction strategy and the optimal wind control strategy according to the target score value, the transaction strategy in the target transaction processing result corresponding to the target score value and the wind control strategy in the target transaction processing result corresponding to the target score value.
4. The transaction simulation method of claim 1, wherein:
the detecting step, thereafter, comprises:
the second execution step: if the detection result indicates that the virtual platform does not process and complete all the simulated transactions, the step of executing the circular transactions is suspended, whether the virtual platform completes all the simulated transactions in the current metering section is verified, and a verification result is obtained;
the third execution step: if the verification result is that the virtual platform completes all the simulated transactions in the current metering section, acquiring a section transaction processing result of the simulated transactions in the current metering section; obtaining the selected virtual user and the selected virtual platform according to the segmented transaction processing result and a preset selection rule;
the fourth execution step: and continuously executing the circulating transaction step by using the virtual user library updated by the selected virtual user and the virtual platform library updated by the selected virtual platform until the detection result is that the virtual platform processes all the simulated transactions.
5. A transaction simulation device, comprising:
a generating module for generating: generating a plurality of virtual platforms and a plurality of virtual users;
an allocation module for allocating steps: randomly distributing a transaction strategy for each virtual user, and randomly distributing a wind control strategy for each virtual platform; the transaction strategy is a strategy for initiating normal transaction and deception transaction, and the wind control strategy is a strategy for releasing or blocking simulated transaction initiated by the user;
the circulation trading module is used for circulating trading steps: sending a first instruction to each virtual user, wherein the first instruction is used for instructing the virtual users to initiate simulated transactions for each virtual platform according to pre-distributed transaction strategies; sending a second instruction to each virtual platform, wherein the second instruction is used for instructing the virtual platform to process the simulated transaction according to a pre-distributed wind control strategy;
a detection module, further configured to detect: detecting whether all the simulated transactions are processed and completed by each virtual platform or not to obtain a detection result;
a first execution module for performing the first step of: and if the detection result indicates that all the simulated transactions are processed and completed by each virtual platform, acquiring all transaction processing results of the simulated transactions, and determining the optimal transaction strategy and the optimal wind control strategy according to the transaction processing results.
6. The transaction simulation device of claim 5, wherein:
the first execution module is further used for scoring each transaction processing result by adopting a preset transaction model to obtain a scoring score;
the first execution module is further configured to determine an optimal transaction strategy and an optimal wind control strategy according to the score, the transaction strategy in the transaction processing result corresponding to the score, and the wind control strategy in the transaction processing result corresponding to the score.
7. The transaction simulation apparatus according to claim 5, wherein:
the first execution module is further used for determining a target transaction processing result in all the transaction processing results according to a preset sampling rule;
the first execution module is further used for scoring each target transaction processing result by adopting a preset transaction model to obtain a target scoring value;
the first execution module is further configured to determine an optimal transaction strategy and an optimal wind control strategy according to the target score value, a transaction strategy in a target transaction processing result corresponding to the target score value, and a wind control strategy in a target transaction processing result corresponding to the target score value.
8. The transaction simulation device of claim 5, further comprising:
a second execution module for performing the second step: if the detection result indicates that the virtual platform does not process and complete all the simulated transactions, the step of executing the circular transactions is suspended, whether the virtual platform completes all the simulated transactions in the current metering section is verified, and a verification result is obtained;
a third executing module, configured to execute the third step: if the verification result is that the virtual platform completes all the simulated transactions in the current metering section, acquiring a section transaction processing result of the simulated transactions in the current metering section; obtaining the selected virtual user and the selected virtual platform according to the segmented transaction processing result and a preset selection rule;
a fourth execution module, configured to perform the fourth step: and continuously executing the circulating transaction step by using the virtual user library updated by the selected virtual user and the virtual platform library updated by the selected virtual platform until the detection result is that the virtual platform processes all the simulated transactions.
9. An electronic device, characterized in that: comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, implement the steps in the transaction simulation method according to any of claims 1 to 4.
10. A readable storage medium, characterized by: the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps in the transaction simulation method of any of claims 1 to 4.
CN202211506398.7A 2022-11-29 2022-11-29 Transaction simulation method and device, electronic equipment and readable storage medium Active CN115545937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211506398.7A CN115545937B (en) 2022-11-29 2022-11-29 Transaction simulation method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211506398.7A CN115545937B (en) 2022-11-29 2022-11-29 Transaction simulation method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115545937A true CN115545937A (en) 2022-12-30
CN115545937B CN115545937B (en) 2023-02-24

Family

ID=84722077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211506398.7A Active CN115545937B (en) 2022-11-29 2022-11-29 Transaction simulation method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115545937B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798609A (en) * 2017-11-08 2018-03-13 上海宽全智能科技有限公司 Quantify trading strategies generation method and device, equipment and storage medium
CN109002949A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method and device of air control strategy configuration and business air control
CN109934708A (en) * 2017-12-15 2019-06-25 武汉楚鼎信息技术有限公司 A kind of more policy-simulative method of commerce in local and system and device
CN110503557A (en) * 2019-08-28 2019-11-26 中国银行股份有限公司 The monitoring method and device of policy information
CN112017059A (en) * 2020-07-14 2020-12-01 北京淇瑀信息科技有限公司 Hierarchical optimization risk control method and device and electronic equipment
CN114004699A (en) * 2021-10-22 2022-02-01 平安科技(深圳)有限公司 Artificial intelligence based risk management and control method, device, equipment and storage medium
CN114612220A (en) * 2022-03-14 2022-06-10 平安普惠企业管理有限公司 Wind control strategy adjusting method and device, electronic equipment and storage medium
CN114912925A (en) * 2021-01-28 2022-08-16 腾讯科技(深圳)有限公司 Fraud detection method, device, electronic equipment and computer readable medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002949A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method and device of air control strategy configuration and business air control
CN107798609A (en) * 2017-11-08 2018-03-13 上海宽全智能科技有限公司 Quantify trading strategies generation method and device, equipment and storage medium
CN109934708A (en) * 2017-12-15 2019-06-25 武汉楚鼎信息技术有限公司 A kind of more policy-simulative method of commerce in local and system and device
CN110503557A (en) * 2019-08-28 2019-11-26 中国银行股份有限公司 The monitoring method and device of policy information
CN112017059A (en) * 2020-07-14 2020-12-01 北京淇瑀信息科技有限公司 Hierarchical optimization risk control method and device and electronic equipment
CN114912925A (en) * 2021-01-28 2022-08-16 腾讯科技(深圳)有限公司 Fraud detection method, device, electronic equipment and computer readable medium
CN114004699A (en) * 2021-10-22 2022-02-01 平安科技(深圳)有限公司 Artificial intelligence based risk management and control method, device, equipment and storage medium
CN114612220A (en) * 2022-03-14 2022-06-10 平安普惠企业管理有限公司 Wind control strategy adjusting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115545937B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
CN112669138B (en) Data processing method and related equipment
CN111629010B (en) Malicious user identification method and device
CN106357628B (en) The defence method and device of attack
CN109977680A (en) A kind of business datum security risk recognition methods and system
Hu et al. Multiple cyber attacks against a target with observation errors and dependent outcomes: Characterization and optimization
CN104915600A (en) Android application security risk evaluating method and device
CN112365341A (en) Credit agency anti-fraud method, apparatus, device and storage medium
US20240108990A1 (en) Fraud detection system
CN115455435A (en) Intelligent contract fuzzy test method and device, storage medium and electronic equipment
CN115545937B (en) Transaction simulation method and device, electronic equipment and readable storage medium
CN111431910A (en) Network attack scoring computing system and method
Werner et al. Uncle traps: Harvesting rewards in a queue-based ethereum mining pool
CN111881147B (en) Processing method and device of computing task, storage medium and processor
CN109034520A (en) Evaluation of employee method and terminal device
Chacoma et al. Simple mechanism rules the dynamics of volleyball
CN110245985A (en) A kind of information processing method and device
Almashaqbeh et al. ABC: a cryptocurrency-focused threat modeling framework
CN109600361A (en) Identifying code anti-attack method and device based on hash algorithm
US20200389482A1 (en) Software application for continually assessing, processing, and remediating cyber-risk in real time
Henard et al. Flattening or not of the combinatorial interaction testing models?
Tran et al. An approach to select cost-effective risk countermeasures
Xu et al. Did alibaba fake the tmall “double eleven” data? evidence from benford’s law
Li et al. Holistic security requirements analysis: An attacker's perspective
CN115001769B (en) Method, device, computer equipment and medium for evaluating anti-re-identification attack capability
CN116055090B (en) Training method, scoring method, equipment and storage medium for risk scoring model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant