Abnormal transaction identification method, device and system and computer readable storage medium
By obtaining and processing individual and group transaction information of bank transaction data, and using pre-trained models to identify abnormal transactions, it solves the problem of difficulty in identifying abnormal transfers with existing technology and achieves automated and accurate identification of abnormal transactions.
Patent Information
- Application Number
- CN202310466396.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for existing anti-fraud models in the banking industry to identify abnormal transfers, especially the operating mode that cultivates user trust for a long time and then commits property infringement in a short period of time, making it difficult to capture abnormal transactions in abnormal transfer scenarios.
By obtaining individual and group transaction information of target transaction data, combined with historical transaction data, individual and group transaction characteristics are extracted, and the pre-trained abnormal transaction identification model is used to evaluate transaction types and identify abnormal transactions.
It effectively identifies abnormal transfers and sudden abnormal transfers hidden in normal transactions, realizes the automatic identification of abnormal transactions such as abnormal transfers, and improves the accuracy of abnormal transaction identification in financial scenarios.
Smart Images

Figure CN118569867A
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of telecommunication transactions, and more specifically, to an abnormal transaction identification method, device, system and computer-readable storage medium. Background Art
[0002] At present, abnormal transfers are frequent, infringing on the property safety of many people. In order to cooperate with the state in cracking down on abnormal transfers, the banking industry has assumed the responsibility of ensuring the safety of account funds. Abnormal transfers have existed for a certain period of time, and the form of transactions has gradually changed in the process of development, making it more difficult to identify. At the same time, the state's supervision of bank accounts has become increasingly strict, and a number of response measures have been introduced, from limiting account types to limiting account transaction amounts. However, the implementers of abnormal transfers (hereinafter referred to as implementers) usually mix related abnormal transfer transactions with normal transactions, such as using other people's accounts as intermediary accounts for transactions and using public accounts as implementation accounts to conceal their whereabouts and evade supervision.
[0003] Although there are some anti-fraud models in the banking industry, most of these models are scorecard models or rule models for overdue fraud identification in credit scenarios. The data time period they use ranges from 90 days to 30 days. They are not suitable for abnormal transfers, which take a long time to cultivate user trust and harvest assets in a short time. This makes it difficult for conventional scorecard models and rule models in the banking industry to capture abnormal transactions in abnormal transfer scenarios. Summary of the invention
[0004] The present disclosure provides an abnormal transaction identification method and an abnormal transaction identification device, which are used to at least solve the above-mentioned problem, or may not solve the above-mentioned problem.
[0005] According to one aspect of the present disclosure, there is provided an abnormal transaction identification method, the abnormal transaction identification method comprising: acquiring target transaction data; wherein the transaction data comprises individual transaction information and group transaction information; acquiring historical transaction data consistent with the individual transaction information of the target transaction data as individual reference transaction data; acquiring historical transaction data consistent with the group transaction information of the target transaction data as group reference transaction data; processing the individual reference transaction data to obtain individual transaction features of the target transaction data; processing the group reference transaction data to obtain group transaction features of the target transaction data; inputting the individual transaction features and the group transaction features into a pre-trained abnormal transaction identification model to determine an estimated transaction type of the target transaction data based on the degree to which the individual transaction features deviate from the group transaction features, the estimated transaction type comprising abnormal transactions and normal transactions.
[0006] Optionally, the transaction data also includes transaction time; the obtaining of historical transaction data consistent with individual transaction information of the target transaction data as individual reference transaction data includes: obtaining historical transaction data consistent with the individual reference information of the target transaction data within a period of a set time period from the transaction time of the target transaction data, as the individual reference transaction data; the obtaining of historical transaction data consistent with group transaction information of the target transaction data as group reference transaction data includes: obtaining historical transaction data consistent with the group reference information of the target transaction data within a period of the set time period from the transaction time of the target transaction data, as the group reference transaction data.
[0007] Optionally, the transaction data also includes a transaction amount; the processing of the individual reference transaction data to obtain the individual transaction characteristics of the target transaction data includes: performing statistical processing on the transaction amount and transaction time of the individual reference transaction data to obtain the individual transaction characteristics; the processing of the group reference transaction data to obtain the group transaction characteristics of the target transaction data includes: performing statistical processing on the transaction amount and transaction time of the group reference transaction data to obtain the group transaction characteristics.
[0008] Optionally, the statistical processing of the transaction amount and transaction time of the individual reference transaction data to obtain the individual transaction characteristics includes: according to different transaction rules followed by the transaction amount and transaction time, extracting individual data groups that conform to the corresponding transaction rules from the individual reference transaction data to obtain a set of individual data groups for each transaction rule; wherein the different transaction rules include continuous outgoing, continuous incoming, continuous outgoing followed by continuous incoming, and continuous incoming followed by continuous outgoing, the positive and negative of the transaction amount is used to characterize the incoming and outgoing, the transaction time is used to determine the continuous operation in combination with the transaction amount, and each individual data group includes at least one individual reference transaction data that occurs continuously; for each transaction rule, The statistical processing of the set of group data groups is performed to obtain the transaction rule characteristics of each transaction rule, and the individual transaction characteristics are obtained by summarizing; the statistical processing of the transaction amount and transaction time of the group reference transaction data is performed to obtain the group transaction characteristics, including: according to different transaction rules followed by the transaction amount and transaction time, extracting group data groups that conform to the corresponding transaction rules from the group reference transaction data to obtain a set of group data groups for each transaction rule; wherein each group data group includes at least one group reference transaction data that occurs continuously; the statistical processing of the set of group data groups for each transaction rule is performed to obtain the transaction rule characteristics of each transaction rule, and the group transaction characteristics are obtained by summarizing.
[0009] Optionally, the transaction rule characteristics of each transaction rule include at least one of the number of data groups, maximum outgoing amount, maximum incoming amount, maximum balance, average single transaction amount, transaction amount per unit time, maximum number of continuous transactions, average continuous transaction time, and average single transaction time; the average single transaction amount is the ratio of the total transaction amount to the total number of transactions; the transaction amount per unit time is the ratio of the total transaction amount to the total transaction time, the total transaction time is the sum of the transaction times of each individual data group or each group data group, and the transaction time of each individual data group or each group data group is determined according to the transaction time within the group; the maximum number of continuous transactions is the maximum value among the transaction numbers of each individual data group or each group data group; the average continuous transaction time is the average value of the transaction times of each individual data group or each group data group; the average single transaction time is the average value of the time intervals between two adjacent transaction data.
[0010] Optionally, the individual transaction information includes at least one of a master account and a counterparty account, and the group transaction information includes at least one of a transaction device, a transaction location, and a transaction channel.
[0011] Optionally, the abnormal transaction identification method also includes a training step of the pre-trained abnormal transaction identification model, the training step including: obtaining first historical transaction data, the first historical transaction data carrying a transaction label, the transaction label including an abnormal transaction label or a normal transaction label; determining multiple transaction data associated with the historical abnormal transaction data from the first historical transaction data as historical associated transaction data, wherein the historical abnormal transaction data is the first historical transaction data carrying the abnormal transaction label; determining sample labels of the historical associated transaction data based on the historical associated transaction data and the transaction labels of the historical associated transaction data, the sample labels including an abnormal sample label or a normal sample label; determining sample transaction data from the historical associated transaction data; using the sample transaction data and the sample labels of the sample transaction data as training samples, training the abnormal transaction identification model, and obtaining the pre-trained abnormal transaction identification model.
[0012] Optionally, the first historical transaction data includes a main account and a counterparty account; the determining of multiple transaction data associated with the historical abnormal transaction data from the first historical transaction data as historical associated transaction data includes: determining the main account and the counterparty account of the historical abnormal transaction data as the first account and the reference account, respectively; determining all transaction data of the first account in a first reference period from the first historical transaction data to obtain first transaction data; based on the first historical transaction data, determining all accounts that have traded with the reference account within a preset period as second accounts; determining all transaction data of the second account in a second reference period from the first historical transaction data to obtain second transaction data; and determining the first transaction data and the second transaction data as the historical associated transaction data.
[0013] Optionally, the first historical transaction data also includes a transaction date; the determining of multiple transaction data associated with the historical abnormal transaction data from the first historical transaction data as historical associated transaction data also includes: determining the transaction date of the historical abnormal transaction data as the first transaction date; based on the first historical transaction data, determining a primary account that has performed normal transactions on the first transaction date as a third account; determining all transaction data of the third account in a third reference period from the first historical transaction data to obtain third transaction data; and adding the third transaction data to the historical associated transaction data.
[0014] Optionally, the first reference period is a period of a first reference time length from the first transaction date; the second reference period is a period of a second reference time length from the second transaction date, the second transaction date being the transaction date between the second account and the reference account within the preset period; the third reference period is a period of a third reference time length from the first transaction date; the preset period is a period of a preset time length before and after the first transaction date.
[0015] Optionally, the determining of the sample labels of the historical associated transaction data based on the historical associated transaction data and the transaction labels of the historical associated transaction data includes: recording the historical associated transaction data carrying abnormal transaction labels as historical black data; recording the historical associated transaction data carrying normal transaction labels as historical white data; for each historical black data, determining that the sample label is an abnormal sample label; for each historical white data, judging whether the historical white data satisfies a preset approximation condition with at least one historical black data; if so, determining that the sample label of the historical white data is an abnormal sample label; if not, determining that the sample label of the historical white data is a normal sample label.
[0016] Optionally, the first historical transaction data includes a primary account, a counterparty account, and a transaction date; and the preset approximate condition includes that at least two of the primary account, the counterparty account, and the transaction date of the two compared historical associated transaction data are the same.
[0017] Optionally, determining the sample transaction data from the historical associated transaction data includes: based on the main account, transaction date, and transaction amount of the historical associated transaction data, for each main account, if it is determined that the main account first has a small transaction and then a large transaction within a preset time window, the main account is recorded as a candidate account; the small transaction is a transaction with a transaction amount less than a first preset amount, and the large transaction is a transaction with a transaction amount greater than a second preset amount, and the first preset amount is less than the second preset amount; from the historical associated transaction data, determining the outgoing transaction data of the candidate account that occurs after the small transaction and has a transaction amount greater than the second preset amount as the sample transaction data.
[0018] Optionally, determining the sample transaction data from the historical associated transaction data includes: using a random sampling method, with the ratio of black samples to white samples reaching a preset ratio as the goal, to determine the sample transaction data from the historical associated transaction data; wherein the black sample is sample transaction data whose sample label is an abnormal sample label, and the white sample is sample transaction data whose sample label is a normal sample label.
[0019] Optionally, the training step also includes: acquiring second historical transaction data, which is different from the first historical transaction data and carries the transaction label; using the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model; in response to a test failure instruction, determining spare sample transaction data that is not used as the sample transaction data from the historical associated transaction data, adding the spare sample transaction data to the sample transaction data to update the training sample, re-training the abnormal transaction identification model, and updating the pre-trained abnormal transaction identification model; repeatedly performing the steps of using the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model and determining spare sample transaction data that is not used as the sample transaction data from the historical associated transaction data in response to a test failure instruction, adding the spare sample transaction data to the sample transaction data to update the training sample, re-training the abnormal transaction identification model, and updating the pre-trained abnormal transaction identification model until a test success instruction is received.
[0020] According to another aspect of the present disclosure, an abnormal transaction identification device is provided, the identification device comprising: an acquisition unit, configured to acquire target transaction data; wherein the transaction data comprises individual transaction information and group transaction information; the acquisition unit is further configured to acquire historical transaction data consistent with the individual transaction information of the target transaction data as individual reference transaction data; the acquisition unit is further configured to acquire historical transaction data consistent with the group transaction information of the target transaction data as group reference transaction data; a processing unit, configured to process the individual reference transaction data to obtain individual transaction features of the target transaction data; the processing unit is further configured to process the group reference transaction data to obtain group transaction features of the target transaction data; a determination unit, configured to input the individual transaction features and the group transaction features into a pre-trained abnormal transaction identification model to determine an estimated transaction type of the target transaction data based on the degree to which the individual transaction features deviate from the group transaction features, the estimated transaction type comprising abnormal transactions and normal transactions.
[0021] Optionally, the transaction data also includes transaction time; the acquisition unit is further configured to: acquire historical transaction data that is consistent with the individual reference information of the target transaction data within a period of a set time period traced back from the transaction time of the target transaction data, as the individual reference transaction data; acquire historical transaction data that is consistent with the group reference information of the target transaction data within a period of the set time period traced back from the transaction time of the target transaction data, as the group reference transaction data.
[0022] Optionally, the transaction data also includes a transaction amount; the processing unit is further configured to: perform statistical processing on the transaction amount and transaction time of the individual reference transaction data to obtain the individual transaction characteristics; perform statistical processing on the transaction amount and transaction time of the group reference transaction data to obtain the group transaction characteristics.
[0023] Optionally, the processing unit is further configured to: extract individual data groups that conform to the corresponding transaction rules from the individual reference transaction data according to different transaction rules followed by the transaction amount and the transaction time, and obtain a set of individual data groups for each transaction rule; wherein the different transaction rules include continuous outgoing, continuous incoming, continuous outgoing followed by continuous incoming, and continuous incoming followed by continuous outgoing, the positive and negative values of the transaction amount are used to characterize the incoming and outgoing, the transaction time is used to determine the continuous operation in combination with the transaction amount, and each individual data group includes at least one continuously occurring individual reference transaction data; perform statistical processing on the set of individual data groups for each transaction rule to obtain the transaction rule characteristics of each transaction rule, and summarize to obtain the individual transaction characteristics; extract group data groups that conform to the corresponding transaction rules from the group reference transaction data according to different transaction rules followed by the transaction amount and the transaction time, and obtain a set of group data groups for each transaction rule; wherein each group data group includes at least one continuously occurring group reference transaction data; perform statistical processing on the set of group data groups for each transaction rule to obtain the transaction rule characteristics of each transaction rule, and summarize to obtain the group transaction characteristics.
[0024] Optionally, the transaction rule characteristics of each transaction rule include at least one of the number of data groups, maximum outgoing amount, maximum incoming amount, maximum balance, average single transaction amount, transaction amount per unit time, maximum number of continuous transactions, average continuous transaction time, and average single transaction time; the average single transaction amount is the ratio of the total transaction amount to the total number of transactions; the transaction amount per unit time is the ratio of the total transaction amount to the total transaction time, the total transaction time is the sum of the transaction times of each individual data group or each group data group, and the transaction time of each individual data group or each group data group is determined according to the transaction time within the group; the maximum number of continuous transactions is the maximum value among the transaction numbers of each individual data group or each group data group; the average continuous transaction time is the average value of the transaction times of each individual data group or each group data group; the average single transaction time is the average value of the time intervals between two adjacent transaction data.
[0025] Optionally, the individual transaction information includes at least one of a master account and a counterparty account, and the group transaction information includes at least one of a transaction device, a transaction location, and a transaction channel.
[0026] Optionally, the abnormal transaction identification device also includes a training unit for training the pre-trained abnormal transaction identification model, and the training unit is configured to: obtain first historical transaction data, the first historical transaction data carries a transaction label, and the transaction label includes an abnormal transaction label or a normal transaction label; determine multiple transaction data associated with the historical abnormal transaction data from the first historical transaction data as historical associated transaction data, wherein the historical abnormal transaction data is the first historical transaction data carrying the abnormal transaction label; determine sample labels of the historical associated transaction data based on the historical associated transaction data and the transaction labels of the historical associated transaction data, the sample labels include abnormal sample labels or normal sample labels; determine sample transaction data from the historical associated transaction data; use the sample transaction data and the sample labels of the sample transaction data as training samples, train the abnormal transaction identification model, and obtain the pre-trained abnormal transaction identification model.
[0027] Optionally, the first historical transaction data includes a main account and a counterparty account; the training unit is further configured to: determine the main account and the counterparty account of the historical abnormal transaction data as the first account and the reference account, respectively; determine all transaction data of the first account in the first reference period from the first historical transaction data to obtain first transaction data; based on the first historical transaction data, determine all accounts that have traded with the reference account within a preset period as second accounts; determine all transaction data of the second account in the second reference period from the first historical transaction data to obtain second transaction data; and determine the first transaction data and the second transaction data as the historical associated transaction data.
[0028] Optionally, the first historical transaction data also includes a transaction date; the training unit is further configured to: determine the transaction date of the historical abnormal transaction data as the first transaction date; based on the first historical transaction data, determine a primary account that has performed normal transactions on the first transaction date as a third account; determine all transaction data of the third account in a third reference period from the first historical transaction data to obtain third transaction data; and add the third transaction data to the historical associated transaction data.
[0029] Optionally, the first reference period is a period of a first reference time length from the first transaction date; the second reference period is a period of a second reference time length from the second transaction date, the second transaction date being the transaction date between the second account and the reference account within the preset period; the third reference period is a period of a third reference time length from the first transaction date; the preset period is a period of a preset time length before and after the first transaction date.
[0030] Optionally, the training unit is further configured to: record historical associated transaction data carrying abnormal transaction labels as historical black data; record historical associated transaction data carrying normal transaction labels as historical white data; for each historical black data, determine that the sample label is an abnormal sample label; for each historical white data, determine whether the historical white data meets a preset approximation condition with at least one historical black data; if so, determine that the sample label of the historical white data is an abnormal sample label; if not, determine that the sample label of the historical white data is a normal sample label.
[0031] Optionally, the first historical transaction data includes a primary account, a counterparty account, and a transaction date; and the preset approximate condition includes that at least two of the primary account, the counterparty account, and the transaction date of the two compared historical associated transaction data are the same.
[0032] Optionally, the training unit is further configured to: based on the main account, transaction date, and transaction amount of the historical associated transaction data, for each main account, if it is determined that the main account first has a small transaction and then a large transaction within a preset time window, record the main account as a candidate account; the small transaction is a transaction with a transaction amount less than a first preset amount, and the large transaction is a transaction with a transaction amount greater than a second preset amount, and the first preset amount is less than the second preset amount; from the historical associated transaction data, determine the outgoing transaction data of the candidate account that occurs after the small transaction and has a transaction amount greater than the second preset amount as the sample transaction data.
[0033] Optionally, the training unit is further configured to: use a random sampling device, with the goal of achieving a preset ratio between black samples and white samples, to determine the sample transaction data from the historical associated transaction data; wherein the black sample is sample transaction data whose sample label is an abnormal sample label, and the white sample is sample transaction data whose sample label is a normal sample label.
[0034] Optionally, the training unit is further configured to: obtain second historical transaction data, which is different from the first historical transaction data and carries the transaction label; use the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model; in response to a test failure instruction, determine spare sample transaction data that is not used as the sample transaction data from the historical associated transaction data, add the spare sample transaction data to the sample transaction data to update the training sample, re-train the abnormal transaction identification model, and update the pre-trained abnormal transaction identification model; repeat the steps of using the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model and determining spare sample transaction data that is not used as the sample transaction data from the historical associated transaction data in response to a test failure instruction, add the spare sample transaction data to the sample transaction data to update the training sample, re-train the abnormal transaction identification model, and update the pre-trained abnormal transaction identification model until a test success instruction is received.
[0035] According to another aspect of the present disclosure, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the abnormal transaction identification method as described above.
[0036] According to another aspect of the present disclosure, a system is provided comprising at least one computing device and at least one storage device storing instructions, wherein when the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the abnormal transaction identification method as described above.
[0037] According to the abnormal transaction identification method, device, system and computer-readable storage medium of the exemplary embodiment of the present disclosure, by taking the individual transaction information and group transaction information of the target transaction data as reference, the individual reference transaction data and group reference transaction data are obtained from the historical transaction data, and then the individual transaction characteristics and group transaction characteristics are processed to describe the target transaction data from the individual and group levels. Then, the individual transaction characteristics and group transaction characteristics are used as input data, and the difference between the two is evaluated using the pre-trained abnormal transaction identification model, which can clarify whether the individual transaction characteristics obviously deviate from the group transaction characteristics, and then determine the transaction data of the individual deviating from the group as abnormal transactions, which can effectively identify abnormal transfer transactions hidden under normal transactions and sudden abnormal transfer transactions, and realize the automatic identification of abnormal transactions such as abnormal transfers.
[0038] In addition, this disclosure also proposes a comprehensive solution from three aspects: feature system, sample selection, and model training. In the process of implementation in actual financial scenarios, this solution has achieved certain results.
[0039] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] These and / or other aspects and advantages of the present disclosure will become clear and more easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0041] Figure 1 is a flow chart illustrating a method for identifying abnormal transactions according to an exemplary embodiment of the present disclosure;
[0042] Figure 2 is a flow chart showing the training steps of a pre-trained abnormal transaction identification model according to an exemplary embodiment of the present disclosure;
[0043] Figure 3 is a schematic diagram showing a flow chart of sample selection according to a specific embodiment of the present disclosure;
[0044] Figure 4 is a schematic diagram showing a flow chart of model training according to a specific embodiment of the present disclosure;
[0045] Figure 5a and Figure 5b is a graph showing a comparison of loss values of a pre-trained abnormal transaction recognition model before and after adding spare sample transaction data according to a specific embodiment of the present disclosure;
[0046] Figure 6 is a block diagram illustrating an abnormal transaction identification apparatus according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the present invention as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, one of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0048] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0049] Refer to the following Figures 1 to 6 The abnormal transaction identification method, device, system and computer-readable storage medium according to exemplary embodiments of the present disclosure are described in detail.
[0050] Figure 1 is a flow chart showing an abnormal transaction identification method according to an exemplary embodiment of the present disclosure. The abnormal transaction identification method according to an exemplary embodiment of the present disclosure can be implemented in a computing device with sufficient computing power.
[0051] Reference Figure 1 In step S101, target transaction data is obtained; wherein the transaction data includes individual transaction information and group transaction information. The target transaction data is the transaction data that needs to be identified as abnormal transactions. As the names imply, the individual transaction information and the group transaction information are the information related to individuals and groups in the transaction data, respectively.
[0052] Optionally, the individual transaction information includes at least one of a main account and a counterparty account, describing the accounts of both parties involved in the transaction. Among them, the abnormal transaction identification method of the exemplary embodiment of the present disclosure is often applied to a single bank, the main account is an account opened in the bank, and the counterparty account may be an account opened in the bank (that is, the transaction corresponding to the target transaction data belongs to the same bank transfer), or it may be an account opened in other banks (that is, the transaction corresponding to the target transaction data belongs to an inter-bank transfer), and for a same bank transfer transaction, the bank system will use the transaction parties as the main account and record two transaction data. The main account and the counterparty account both describe the individuals involved in this transaction. By using at least one of the main account and the counterparty account as individual transaction information, it is possible to directly and effectively extract information related to the individual in the transaction data, thereby characterizing the individual's transaction status.
[0053] Optionally, the group transaction information includes at least one of the transaction device, transaction location, and transaction channel. The transaction device is the device used to complete this transaction, such as but not limited to the device number of the ATM, the device number of the POS machine, etc. The transaction location is the location where the transaction occurs, specifically, it can be the location of the transaction device; the transaction channel is the transfer channel selected for this transaction, such as but not limited to transfer through an ATM, over-the-counter transfer, mobile banking payment, etc. This information often overlaps with transactions conducted by other users. By using at least one of these information as group transaction information, it can reflect the group-level information associated with this transaction, thereby characterizing the current status of group transactions related to this transaction.
[0054] In step S102, historical transaction data that is consistent with the individual transaction information of the target transaction data is obtained as individual reference transaction data.
[0055] In step S103, historical transaction data consistent with the group transaction information of the target transaction data is obtained as group reference transaction data.
[0056] Step S102 and step S103 respectively use the individual transaction information and group transaction information of this transaction as references to obtain individual reference transaction data and group reference transaction data from historical transaction data. It should be understood that when obtaining individual reference transaction data, in the case where the individual transaction information includes both the master account and the counterparty account, the historical transaction data consistent with the master account of the target transaction data can be obtained as the master account reference transaction data, and the historical transaction data consistent with the counterparty account of the target transaction data can be obtained as the counterparty account reference transaction data. At this time, the individual reference transaction data includes the master account reference transaction data and the counterparty account reference transaction data. Similarly, when obtaining group reference transaction data, if the group transaction information includes the three items of information of transaction equipment, transaction location, and transaction channel at the same time, the historical transaction data consistent with the transaction equipment of the target transaction data can be obtained as the transaction equipment reference transaction data, and the historical transaction data consistent with the transaction location of the target transaction data can be obtained as the transaction location reference transaction data. The historical transaction data consistent with the transaction channel of the target transaction data can also be obtained as the transaction channel reference transaction data. At this time, the group reference transaction data includes the transaction equipment reference transaction data, the transaction location reference transaction data, and the transaction channel reference transaction data. The situation where the group transaction information includes two of the information of transaction equipment, transaction location, and transaction channel at the same time is similar, and will not be repeated here.
[0057] Optionally, the transaction data also includes the transaction time. Accordingly, step S102 includes: obtaining historical transaction data consistent with the individual reference information of the target transaction data within a period of a set time period from the transaction time of the target transaction data, as individual reference transaction data; step S103 includes: obtaining historical transaction data consistent with the group reference information of the target transaction data within a period of a set time period from the transaction time of the target transaction data, as group reference transaction data. By obtaining historical transaction data within a period of a set time period from the transaction time of this transaction, only historical transactions that have occurred recently can be considered. On the one hand, the amount of data processed can be reduced, and on the other hand, the characteristics of this transaction at the individual level and the group level can be more reliably reflected, which helps to improve the efficiency and reliability of abnormal transaction identification. As an example, the time period is set to one week, that is, 7 days, so that abnormal transaction identification can be achieved using historical transaction data within a shorter time period.
[0058] In step S104, the individual reference transaction data is processed to obtain individual transaction features of the target transaction data.
[0059] In step S105, the group reference transaction data is processed to obtain the group transaction features of the target transaction data.
[0060] Step S104 and step S105 process the transaction data obtained in step S102 and step S103 respectively, and obtain the individual transaction characteristics and group transaction characteristics of this transaction, which involves the aforementioned characteristic system. It should be understood that in the case where the individual reference transaction data includes the master account reference transaction data and the counterparty account reference transaction data, the master account reference transaction data and the counterparty account reference transaction data can be processed separately to obtain the master account transaction characteristics and the counterparty account transaction characteristics, and the individual transaction characteristics include the master account transaction characteristics and the counterparty account transaction characteristics; it is also possible to directly process all the individual reference transaction data uniformly to obtain the individual transaction characteristics, and the present disclosure does not limit this. Similarly, in the case where the group reference transaction data includes the transaction equipment reference transaction data, the transaction location reference transaction data, and the transaction channel reference transaction data, the three can be processed separately to obtain the transaction equipment transaction characteristics, the transaction location transaction characteristics, and the transaction channel transaction characteristics, and the group transaction characteristics include the transaction equipment transaction characteristics, the transaction location transaction characteristics, and the transaction channel transaction characteristics; it is also possible to directly process all the group reference transaction data uniformly to obtain the group transaction characteristics, and the present disclosure does not limit this either. The same applies to the case where the group reference transaction data includes any two of the transaction equipment reference transaction data, the transaction location reference transaction data and the transaction channel reference transaction data, which will not be elaborated here.
[0061] Optionally, the transaction data also includes the transaction amount; accordingly, step S104 includes: statistically processing the transaction amount and transaction time of the individual reference transaction data to obtain individual transaction characteristics; step S105 includes: statistically processing the transaction amount and transaction time of the group reference transaction data to obtain group transaction characteristics. For abnormal transactions such as abnormal transfers, after a large number of case analyses, it is found that before formal implementation, the implementer often tests the validity of an account, generally using small-amount transactions to test whether the account is available. After confirming that it is available, a large-amount abnormal transfer transaction is started. Based on the characteristics of abnormal transfers that first conduct small-amount transactions and then large-amount transactions, the present disclosure uses the transaction amount and transaction time as the benchmark to perform statistical processing on the transaction data obtained in steps S102 and S103, respectively, and can more accurately extract the common characteristics of these transaction data, thereby obtaining individual transaction characteristics and group transaction characteristics used to describe this transaction. The following will further introduce how to perform statistical processing (i.e., the construction of the feature system), which will not be expanded here for the time being.
[0062] In step S106, the individual transaction features and group transaction features are input into the pre-trained abnormal transaction identification model to determine the estimated transaction type of the target transaction data based on the degree to which the individual transaction features deviate from the group transaction features, and the estimated transaction type includes abnormal transactions and normal transactions. By using the individual transaction features and group transaction features of this transaction as input data and using the pre-trained abnormal transaction identification model to evaluate the difference between the two, it is possible to determine whether the individual transaction features obviously deviate from the group transaction features, and then determine the transaction data of the individual deviating from the group as abnormal transactions, which can effectively identify abnormal transfer transactions hidden under normal transactions and sudden abnormal transfer transactions, and realize the automatic identification of abnormal transactions such as abnormal transfers.
[0063] Next, the feature system is further introduced.
[0064] Optionally, step S104 includes: according to different transaction rules followed by transaction amounts and transaction times, extracting individual data groups that conform to corresponding transaction rules from individual reference transaction data, and obtaining a set of individual data groups for each transaction rule; wherein the different transaction rules include continuous outgoing, continuous incoming, continuous outgoing followed by continuous incoming, and continuous incoming followed by continuous outgoing, the positive and negative values of the transaction amounts are used to characterize the incoming and outgoing, the transaction time is used to determine continuous operations in combination with the transaction amount, and each individual data group includes at least one continuously occurring individual reference transaction data; performing statistical processing on the set of individual data groups for each transaction rule, obtaining transaction rule characteristics for each transaction rule, and summarizing to obtain individual transaction characteristics; step S105 includes: according to different transaction rules followed by transaction amounts and transaction times, extracting group data groups that conform to corresponding transaction rules from group reference transaction data, and obtaining a set of group data groups for each transaction rule; wherein each group data group includes at least one continuously occurring group reference transaction data; performing statistical processing on the set of group data groups for each transaction rule, obtaining transaction rule characteristics for each transaction rule, and summarizing to obtain group transaction characteristics. It should be understood that the statistical processing method for individual reference transaction data and the statistical processing method for group reference transaction data are the same, so that the individual transaction characteristics and group transaction characteristics obtained thereby are comparable. Here, individual reference transaction characteristics are used as an example for specific explanation, and the group reference transaction data is the same and will not be described in detail.
[0065] Specifically, based on the aforementioned characteristics of abnormal transfers that first conduct small transactions and then conduct large transactions, different transaction rules can be constructed in advance, including continuous outgoing transactions, continuous incoming transactions, continuous outgoing transactions followed by continuous incoming transactions, and continuous incoming transactions followed by continuous outgoing transactions. The common feature of these transaction rules is that they describe continuous transactions. For each transaction rule, continuous transaction data that conforms to the rule can be extracted from the individual reference transaction data, and each group of continuous transaction data constitutes an individual data group, and all individual data groups extracted for each transaction rule can constitute an individual data group set, so that the individual reference transaction data can be sorted according to the transaction rule. By statistically processing the sorted individual data group set, the transaction rule characteristics of the corresponding transaction rule can be obtained, and the transaction rule characteristics of different transaction rules are aggregated together to obtain individual transaction characteristics. Since the individual data group set itself is information sorted according to the transaction rule, its statistical data can effectively reflect the characteristics of the corresponding transaction rule, thereby effectively reflecting the characteristics of the target transaction data at the individual level. Correspondingly, the group transaction characteristics obtained by statistical processing in this way can also effectively reflect the characteristics of the target transaction data at the group level. The feature construction scheme of the exemplary embodiment of the present disclosure can provide a reliable data basis for the effective identification of abnormal transactions.
[0066] Optionally, the transaction rule characteristics of each transaction rule include at least one of the number of data groups, the maximum outgoing amount, the maximum incoming amount, the maximum balance, the average single transaction amount, the transaction amount per unit time, the maximum number of continuous transactions, the average continuous transaction time, and the average single transaction time. Among them, the number of data groups is the number of data groups in the corresponding data group set, which can reflect the frequency of occurrence of the transaction rule. The maximum outgoing amount, the maximum incoming amount, and the maximum balance are the maximum values of the outgoing amount, the incoming amount, and the balance in the corresponding data group set, which can concisely reflect the transaction amount characteristics of the corresponding transaction rule from an extreme perspective. The average single transaction amount is the ratio of the total transaction amount to the total number of transactions, reflecting the average transaction amount level of the corresponding data group set, wherein the total transaction amount is the sum of the transaction amounts of all transaction data in the corresponding data group set, and the total number of transactions is the number of transaction data contained in the corresponding data group set. The transaction amount per unit time is the ratio of the total transaction amount to the total transaction time. The total transaction time is the sum of the transaction time of each individual data group or each group data group. The transaction time of each individual data group or each group data group is determined according to the transaction time in the group. Specifically, it can be the time from the transaction time of the first transaction data in the corresponding data group to the transaction time of the last transaction data. Since the transaction amount per unit time is affected by both the total transaction amount and the total transaction time, the information of the time span can be introduced on the basis of the amount, which can reflect the abnormal situation of large-amount transactions or frequent transactions in a short period of time. The maximum number of continuous transactions is the maximum value of the number of transactions in each individual data group or each group data group. Since each data group contains continuous transactions of the same type (i.e., with the same capital flow), the maximum number of continuous transactions can simply reflect whether there are unusual continuous operations from an extreme perspective. The average continuous transaction time is the average value of the transaction time of each individual data group or each group data group, so it can reflect the average level of continuous transaction time. The average single transaction duration is the average of the time intervals between two adjacent transaction data, which characterizes the average interval duration of continuous transactions. The average of the time intervals between two adjacent transaction data in each data group (referred to as the average duration within the group) can be calculated first, and then the average of the average duration within the group of each data group in the corresponding data group set is calculated as the average single transaction duration of the corresponding transaction pattern. In general, abnormal transfer transactions are often characterized by immediacy, high frequency, and large amounts. The above-mentioned transaction pattern characteristics reflect the characteristic points related to transaction frequency and transaction amount. By constructing the above-mentioned characteristic system and comparing these characteristics at the individual level and the group level, it is helpful to accurately identify the transaction data of individuals that deviate from the group and ensure the reliability of abnormal transaction identification.
[0067] In a specific embodiment of feature extraction disclosed in the present invention, the individual transaction information of the transaction data includes the main account and the counterparty account, and the group transaction information includes the transaction equipment, transaction location, and transaction channel. In addition, the transaction data also includes the transaction amount and transaction time (including the transaction date and transaction time). After step S101 obtains the target transaction data, steps S102 and S103 respectively obtain historical transaction data consistent with the target transaction data from the five dimensions of the main account, counterparty account, transaction equipment, transaction location, and transaction channel for a period of 7 days from the transaction date of the target transaction data, and obtain reference transaction data for each of the five dimensions. Steps S104 and S105 continue to start from each of these five dimensions. For each dimension, first extract the data groups with different transaction rules to form a data group set of the corresponding transaction rules, then extract the transaction rule features of the data group set, summarize the transaction rule features, and obtain the transaction features of the current dimension.
[0068] Specifically, taking the dimension of the main account as an example, assuming that the main account of the target transaction data is A, the following Table 1 lists all transaction data of account A as the main account in the previous 7 days obtained in step S102.
[0069] Table 1
[0070] Transaction flow Master Account Trading Hours Transaction amount Counterparty Account 1 A t1 100 B 2 A t2 -40 C 3 A t3 200 D 4 A t4 30 C 5 A t5 180 E 6 A t6 -110 E 7 A t7 -33 B2
[0071] Table 1
[0072] Transaction flow Master Account Trading Hours Transaction amount Counterparty Account 8 A t8 -44 B1 9 A t9 56 C2 10 A t10 55 C3 11 A t11 130 E 12 A t12 -230 D
[0073] When extracting features, we first determine whether the funds flow is in or out based on the positive or negative value of the transaction amount, and expand Table 1 into the following Table 2.
[0074] Table 2
[0075] Transaction flow Master Account Trading Hours Transaction amount Counterparty Account Fund Flows 1 A t1 100 B Credit 2 A t2 -40 C Billing 3 A t3 200 D Credit 4 A t4 30 C Credit 5 A t5 180 E Credit 6 A t6 -110 E Billing 7 A t7 -33 B2 Billing 8 A t8 -44 B1 Billing 9 A t9 56 C2 Credit 10 A t10 55 C3 Credit 11 A t11 130 E Credit 12 A t12 -230 D Billing
[0076] Then, based on Table 2, according to the transaction rules of continuous entry, continuous withdrawal, continuous withdrawal after continuous entry, and continuous entry after continuous withdrawal, four main account data group sets are extracted from the transaction data in Table 2, as shown in Table 3, where the transaction serial number is used to represent each transaction data.
[0077] Table 3
[0078] Trading rules Master Account Data Group Collection Continuous Accounting [1],[3,4,5],[9,10,11] Continuous payment [2],[6,7,8],
[12] Continuous deposits followed by continuous withdrawals [1,2],[3,4,5,6,7,8],[9,10,11,12] Continuous deposits followed by continuous withdrawals [2,3,4,5],[6,7,8,9,10,11],
[12]
[0079] Finally, by extracting features from each set of main account data for each transaction rule, we can obtain the transaction rule features of the corresponding transaction rule. The four sets of transaction rule features are combined to obtain the main account transaction features. After obtaining the counterparty account transaction features in a similar way, we can obtain the individual transaction features consisting of the main account transaction features and the counterparty account transaction features.
[0080] The extraction of group transaction characteristics is similar to the extraction of individual transaction signs, which will not be elaborated here.
[0081] In some embodiments, the abnormal transaction identification method of the exemplary embodiment of the present disclosure further includes a training step of a pre-trained abnormal transaction identification model. Figure 2 , the process of this training step is as follows:
[0082] In step S201, first historical transaction data is obtained, where the first historical transaction data carries a transaction tag, and the transaction tag includes an abnormal transaction tag or a normal transaction tag.
[0083] It should be noted that the "first" in the first historical transaction data is for the purpose of distinguishing it from the second historical transaction data in the following text, which is essentially historical transaction data. As an example, all transaction data records within a specified historical period can be selected as the first historical transaction data, and the present disclosure does not restrict how to select the first historical transaction data.
[0084] The transaction label can be a label determined after manually analyzing the transaction data. Specifically, there are risk management departments in the banking industry, whose function is to monitor the daily transactions of customers. After a long period of active hits on abnormal transactions or customers actively reporting abnormal transactions, risky transactions can be screened out. After these transactions are confirmed by bank business personnel to belong to abnormal types (such as abnormal transfer transactions, overdue credit transactions, etc.), they will be stored in the bank data system. After step S201 selects the first historical transaction data, the transaction labels of each first historical transaction data can be determined according to the abnormal types stored in the bank data system. For example, for abnormal transfers, if a certain first historical transaction data belongs to abnormal transfer transaction data, it is assigned an abnormal transaction label, otherwise it is assigned a normal transaction label. Of course, if the method disclosed in the present invention is to be applied to identify transactions of other abnormal types, the first historical transaction data belonging to the corresponding abnormal type is assigned an abnormal transaction label, and the first historical transaction data of other abnormal types or normal is assigned a normal transaction label. It should be understood that the transaction label belongs to a binary classification label. As an example, the abnormal transaction label can be 1 and the normal transaction label can be 0.
[0085] In step S202, multiple transaction data associated with historical abnormal transaction data are determined from the first historical transaction data as historical associated transaction data, wherein the historical abnormal transaction data is the first historical transaction data carrying an abnormal transaction label. Since banks generate a large number of transactions every day, most of which are normal transactions, abnormal transactions account for a small proportion, and abnormal transactions of a specific type (such as abnormal transfers) account for an even smaller proportion. The present disclosure determines clear historical abnormal transaction data (i.e., the first historical transaction data carrying an abnormal transaction label) from the first historical transaction data, and then based on the historical abnormal transaction data, historical associated transaction data related to it are screened out from the first historical transaction data. These transaction data are closely related to the historical abnormal transaction data, so compared with other transaction data, the difference between the historical associated transaction data and the historical abnormal transaction data is smaller, and the historical associated transaction data often has a normal transaction label, so it is more difficult to correctly identify whether these transactions belong to abnormal transactions. Therefore, the historical associated transaction data is the transaction data that the abnormal transaction recognition model needs to focus on learning to analyze and identify. By screening out historical related transaction data to provide a data basis for subsequent model training, it is possible to use more meaningful training samples in the training of the abnormal transaction identification model, which helps to improve the recognition ability of the trained model and thus enhance the model's ability to capture abnormal transactions.
[0086] Optionally, the first historical transaction data includes a main account and a counterparty account; step S202 includes: determining the main account and the counterparty account of the historical abnormal transaction data as the first account and the reference account respectively; determining all transaction data of the first account in the first reference period from the first historical transaction data to obtain the first transaction data; based on the first historical transaction data, determining all accounts that have traded with the reference account in a preset period as the second account; determining all transaction data of the second account in the second reference period from the first historical transaction data to obtain the second transaction data; determining the first transaction data and the second transaction data as the historical associated transaction data. The first account is the main account of the historical abnormal transaction data, and thus has a close association with the historical abnormal transaction data. By selecting the first transaction data that occurred in the first reference period of the first account, a part of the historical associated transaction data can be obtained conveniently and accurately. However, the number of first transaction data is limited, and is limited to the transaction data of the first account, and the influencing factors are relatively single. The second account is an account that has traded with the counterparty account (i.e., the reference account) in the historical abnormal transaction data in a preset period, and thus has an indirect association with the historical abnormal transaction data. By selecting the second transaction data that occurred in the second reference period of the second account, a part of the historical associated transaction data can be further obtained, which is helpful to enrich the content of the historical associated transaction data, improve the data quality used for training, and improve the training effect of the model. It should be understood that if the historical abnormal transaction data belongs to inter-bank transfer, the reference account is the account of other banks, and there will be no transaction data between other banks in the first historical transaction data, so the second account must be the account of the current bank; if the historical abnormal transaction data belongs to inter-bank transfer, the reference account is the account of the current bank, and the second account may contain accounts of other banks, and the second transaction data is the transaction data of the second account selected from the first historical transaction data of the current bank, so for the accounts of other banks in the second account, only the transaction data of these accounts and the current bank can be selected. As an example, in order to simplify the complexity of data processing, when screening the second account, only the reference account can be selected as the transaction data of the counterparty account. At this time, the screened second account must be the main account, which is necessarily the account of the current bank. The accounts of other banks that have had transactions with the reference account are discarded. Since this part of the data is often not much, it has little effect on the data volume of the historical associated transaction data.
[0087] The first historical transaction data also includes the transaction date. The first reference period used to determine the first transaction data can be a period of the first reference time length traced back from the transaction date of the historical abnormal transaction data (recorded as the first transaction date), that is, the most recent period before the occurrence of the historical abnormal transaction data, which can ensure that the first transaction data extracted thereby is closely related to the historical abnormal transaction data. As an example, the first reference time length is 30 days.
[0088] Similarly, for determining the second reference period used for the second transaction data, since the second transaction data is the transaction data of the second account, and there are often multiple second accounts, the transaction date between each second account and the reference account within the preset period (recorded as the second transaction date) can be determined first, and then for each second account, the period of the second reference time length traced back from the corresponding second transaction date is used as its second reference period, so that the second reference period is selected for each second account, which can ensure that the second transaction data extracted from this is closely associated with the corresponding second account and the reference account, and improve the strength of the association between the second transaction data and the historical abnormal transaction data. As an example, the second reference period can also be 30 days, and the first reference period and the second reference period can be equal or unequal, and the present disclosure does not limit this. It should be understood that the same second account may have transactions with the reference account multiple times within the preset period, and each transaction can determine a corresponding second reference period, so the multiple second reference periods corresponding to the same second account can be merged first, and then the second transaction data can be determined based on the merged period, so as to achieve deduplication of repeated periods and repeated transaction data.
[0089] The preset time period may be a preset time period before and after the first transaction date, thereby providing a clear time range for the selection of the second account, and facilitating the determination of a second account and second transaction data with more reference value. As an example, the preset time period is 1 day.
[0090] Further optionally, step S202 also includes: determining the transaction date of the historical abnormal transaction data as the first transaction date; determining the main account that has performed normal transactions on the first transaction date as the third account based on the first historical transaction data; determining all transaction data of the third account in the third reference period from the first historical transaction data to obtain the third transaction data; and adding the third transaction data to the historical associated transaction data. By further screening out the transaction data that occurred on the transaction date of the historical abnormal transaction data and whose transaction label is a normal transaction label from the first historical transaction data, and recording the main account of these transaction data as the third account, and then drawing on the determination method of the first transaction data and the second transaction data, based on the third account and the third reference period, determining the third transaction data and adding it to the historical associated transaction data, it is possible to extract transaction data that may be implicitly associated with the historical abnormal transaction data, thereby further broadening the coverage of the historical associated transaction data, improving the data quality used for training, and improving the training effect of the model.
[0091] The third reference period may be a period of the third reference time period from the first transaction date, thereby providing a clear time range for determining the third transaction data. As an example, the third reference time period may be equal to the first reference time period, so that the third reference period is the same as the first reference period, and the present disclosure does not limit this.
[0092] In step S203, based on the historical associated transaction data and the transaction labels of the historical associated transaction data, the sample labels of the historical associated transaction data are determined, and the sample labels include abnormal sample labels or normal sample labels. The historical associated transaction data itself is taken from the first historical transaction data, and thus it has a transaction label itself. However, considering that in the historical associated transaction data, the amount of data with abnormal transaction labels is often much less than the amount of data with normal transaction labels, the ratio of black and white samples is unbalanced, which may affect the training effect of the model. By determining the sample labels based on the transaction labels, the transaction labels can be appropriately adjusted to obtain the sample labels used for training, which helps to provide a reasonable ratio of black and white samples for model training, thereby ensuring the training effect of the model. It should be understood that when the amount of data with abnormal transaction labels in the historical associated transaction data is sufficient, the transaction labels can be directly used as sample labels. When the amount of data with abnormal transaction labels in the historical associated transaction data is insufficient, the transaction labels can be further processed to obtain sample labels, and the present disclosure does not limit this.
[0093] Optionally, step S203 includes: recording the historical associated transaction data carrying abnormal transaction labels as historical black data; recording the historical associated transaction data carrying normal transaction labels as historical white data; for each historical black data, determining that the sample label is an abnormal sample label; for each historical white data, judging whether the historical white data and at least one historical black data meet a preset approximation condition, if so, determining that the sample label of the historical white data is an abnormal sample label, if not, determining that the sample label of the historical white data is a normal sample label. In view of the extremely low proportion of historical black data in historical associated transaction data, which is not convenient for model training, the present disclosure directly converts abnormal transaction labels into abnormal sample labels, but for normal transaction labels, by means of preset approximation conditions, according to whether the corresponding historical white data is similar to the historical black data, the normal transaction labels are selectively converted into abnormal sample labels or normal sample labels, which can increase the proportion of abnormal samples, achieve black sample expansion, and help improve the model training effect.
[0094] Among them, the preset approximation condition may include that at least two of the main account, counterparty account, and transaction date of the two historical related transaction data being compared are the same. By configuring the preset approximation condition, on the one hand, it can ensure that the preset approximation condition is strict enough, so as to find historical white data that is sufficiently similar to the historical black data, perform reasonable black sample expansion, and reduce the risk that the trained model identifies normal transactions as abnormal transactions. On the other hand, it can ensure that the preset approximation condition is not too strict, so as to ensure that a sufficient number of black samples appear after expansion, and achieve effective black sample expansion.
[0095] In step S204, sample transaction data is determined from the historical associated transaction data. This step is used to select sample transaction data from the historical associated transaction data for final training. It should be understood that all historical associated transaction data can be used as sample transaction data, and filtering conditions can be further configured to filter out sample transaction data.
[0096] Optionally, step S204 includes: based on the main account, transaction date, and transaction amount of the historical associated transaction data, for each main account, if it is determined that the main account first has a small transaction and then a large transaction within a preset time window, the main account is recorded as a candidate account; a small transaction is a transaction with a transaction amount less than a first preset amount, and a large transaction is a transaction with a transaction amount greater than a second preset amount, and the first preset amount is less than the second preset amount; from the historical associated transaction data, the outgoing transaction data of the candidate account that occurs after the small transaction and the transaction amount is greater than the second preset amount is determined as sample transaction data. As mentioned above, implementers often conduct small transactions on an account to test the validity of the account, and then conduct large transactions after confirming that it is valid. Based on this, by configuring a preset time window and performing a sliding window analysis on the historical associated transaction data, suspicious accounts that first have small transactions and then large transactions within any preset time window can be screened out and recorded as candidate accounts. In the historical related transaction data, the large-amount outgoing transaction data that occurs after the small-amount transaction of the candidate account is likely to be the abnormal transfer transaction of the implementer, that is, the abnormal transaction to be identified by the present disclosure, so such data is the data that the model needs to focus on learning to analyze. By using such historical related transaction data as the sample transaction data finally used for model training, it is possible to further screen out training samples with more learning significance, so that the trained model can more accurately identify abnormal transactions, fully improve the model's abnormal transaction capture accuracy, and reduce the risk of false capture and false alarms. It should be noted that since the implementer may conduct transactions of account entry or account exit during the preliminary trial, when screening candidate accounts and analyzing small-amount transactions in the process of determining sample transaction data, only the transaction amount can be considered, regardless of whether the transaction is an account entry transaction or an outgoing transaction; when identifying abnormal transactions, it is necessary to focus on outgoing transactions because of the need to prevent capital flight, so when determining sample transaction data, large-amount outgoing transactions are targeted. As an example, as mentioned above, the positive and negative values of the transaction amount can be used to represent the incoming and outgoing transactions respectively. At this time, when discussing the transaction amount, we can only focus on the absolute value of the transaction amount. When discussing the outgoing transaction, we can determine the direction of the funds based on the positive and negative values of the transaction amount.
[0097] It should be understood that the length of the preset time window reflects the implementer's trial account cycle. It is found through statistics that abnormal transfer transactions have the phenomenon of rapid transactions and rapid silence. The trial cycles of historical abnormal transfer transactions can be counted, and the trial cycle of the preset quantile is used as the length of the preset time window, for example, the trial cycle of the 80% lower quantile is used as the length of the preset time window. In addition, the trial cycle tends to be gradually shortened as the pre-trained abnormal transaction identification model disclosed in the present invention is put into use, because in order to avoid being identified, the implementer may shorten the trial cycle and transfer a large amount of money faster, so the trial cycle can be re-counted regularly and the length of the preset time window can be updated accordingly.
[0098] Optionally, step S204 includes: using a random sampling method, with the goal of achieving a preset ratio between black samples and white samples, to determine sample transaction data from historical associated transaction data; wherein black samples are sample transaction data whose sample labels are abnormal sample labels, and white samples are sample transaction data whose sample labels are normal sample labels. When selecting sample transaction data from historical associated transaction data, by configuring a preset ratio and selecting black samples and white samples according to the preset ratio, the ratio of samples that will eventually participate in the training can be appropriate, which is convenient for improving the model training effect and the recognition ability of the trained model. Furthermore, according to the previous embodiment, data screening can be performed based on candidate accounts in the historical associated transaction data, and then according to the current embodiment, a preset ratio of sample transaction data can be determined from the screened data using a random sampling method. As an example, the preset ratio is 1:100.
[0099] The above steps S201 to S204 involve the aforementioned sample selection.
[0100] In step S205, the sample transaction data and the sample labels of the sample transaction data are used as training samples to train the abnormal transaction recognition model, thereby obtaining a pre-trained abnormal transaction recognition model. It should be understood that this step can be based on the training samples with sample labels, and a supervised learning method can be used to train the abnormal transaction recognition model. The specific training process is a mature technology in this field and will not be elaborated here. It should also be understood that the individual transaction features and group transaction features of the sample transaction data are input into the model during training. The specific feature extraction scheme is referred to above and will not be elaborated here.
[0101] Optionally, the training step of the pre-trained abnormal transaction identification model of the exemplary embodiment of the present disclosure also includes: acquiring second historical transaction data, the second historical transaction data is different from the first historical transaction data and carries a transaction label; using the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model; in response to a test failure instruction, determining spare sample transaction data that is not used as sample transaction data from the historical associated transaction data, adding the spare sample transaction data to the sample transaction data to update the training sample, training the abnormal transaction identification model again, and updating the pre-trained abnormal transaction identification model; repeatedly performing the steps of using the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model and, in response to a test failure instruction, determining spare sample transaction data that is not used as sample transaction data from the historical associated transaction data, adding the spare sample transaction data to the sample transaction data to update the training sample, training the abnormal transaction identification model again, and updating the pre-trained abnormal transaction identification model, until a test pass instruction is received. As mentioned above, in step S204, by applying various strategies, the data that the model needs to focus on analyzing can be determined from the historical related transaction data as sample transaction data. These strategies can improve the recognition accuracy of the model, but may cause the model to be too strict and have overfitting problems. Other transaction data in the historical related transaction data that are not used as sample transaction data are relatively more likely to be normal transaction data. Adding these data to the sample transaction data can help improve the generalization ability of the model and reduce overfitting, but if the number of added data is too large, it may affect the recognition accuracy of the model. In this regard, the present disclosure obtains second historical transaction data different from the first historical transaction data as training test data, which can test whether the pre-trained anomaly recognition model has an overfitting problem. On this basis, when the test fails (i.e., it is determined that overfitting exists), some of the other transaction data mentioned above are selected as spare sample transaction data, and added to the sample transaction data, the model is retrained, and the updated model is tested again. In this way, the spare sample transaction data can be gradually added, and when the test passes (i.e., it is determined that there is no overfitting or the degree of overfitting is acceptable), the training is terminated, thereby reasonably controlling the number of spare sample transaction data, taking into account the generalization ability and recognition accuracy of the model. As an example, the second historical transaction data can select all transaction data in another historical period different from the period in which the first historical transaction data is located, so as to conveniently distinguish between the two. Specifically, for example, a historical period after the period in which the first historical transaction data is located can be selected to test whether the model trained using the "past" transaction data can effectively identify abnormal transactions in the "future".
[0102] It should be understood that the specific test implementation can be performed manually or by a computer. Accordingly, the test failure instruction and the test pass instruction can be instructions manually input after manual testing, or can be instructions automatically generated after computer testing, and the present disclosure does not limit this. As an example, multiple epochs are often performed when training a model. An epoch represents a process of training once using all training samples. During testing, the model can be tested once after each epoch is completed, and the corresponding training loss value and test loss value can be calculated, so that the training loss value curve and the test loss value curve can be obtained when the training is completed (for example, the training is terminated when the change in the loss value tends to be stable). Whether it is a manual test or a computer test, whether the test is passed can be determined by evaluating the degree to which the test loss value curve is lower than the training loss value curve. The present disclosure does not limit the specific evaluation strategy of the degree of proximity.
[0103] As an example, regarding the selection of spare sample transaction data, quantitative selection can be performed each time, for example but not limited to, first determining the number of initial sample transaction data, and then using the set ratio of the number as the number of spare sample transaction data selected each time. Regarding the sample labels of the spare sample transaction data, the transaction labels can be used directly, or the black sample expansion can be performed with reference to the previous embodiment, which is equivalent to selecting spare sample transaction data from the historical associated transaction data with sample labels obtained in step S203. It should be understood that for the embodiment in which the sample transaction data follows the preset ratio of black samples and white samples, the preset ratio also needs to be followed when selecting spare sample transaction data. As an example, the other transaction data that are not used as sample transaction data in the historical associated transaction data can be first selected using a random sampling method, with the goal of achieving a preset ratio of black samples and white samples, and a spare data set can be determined from these other transaction data, and then each time the spare sample transaction data needs to be selected, data can be randomly selected from the spare data set in quantity as spare sample transaction data. It should be noted that the above is an exemplary description of the selection of spare sample transaction data, and is not a limitation.
[0104] Figure 3 It is a schematic diagram showing a flow chart of sample selection according to a specific embodiment of the present disclosure.
[0105] Reference Figure 3 In a specific embodiment of sample selection disclosed in the present invention, the whole process of sample selection can be summarized as abnormal transfer type abnormal transaction extraction (the previous article did not construct a separate step to describe this stage), original data set selection (corresponding to Figure 2 Step S202 in the above example, determining historical associated transaction data), generating a sample data set (corresponding to Figure 2 Step S203 in the above example performs black sample expansion), training data set generation (corresponding to Figure 2Step S204 in the above example, screening sample transaction data) and preparing a backup data set ( Figure 2 Not shown in the figure, corresponding to the 5 stages of backup sample transaction data in the previous embodiment.
[0106] First, in the stage of extracting abnormal transactions such as abnormal transfers, all abnormal transaction data of the current bank from January 1, 2020 to June 1, 2022 are obtained. The data format is shown in Table 4.
[0107] Table 4
[0108]
[0109] Specifically, these abnormal transaction data are obtained by the bank's risk management department after analyzing all transaction data (i.e., the first historical transaction data) during this historical period, and the abnormal type is confirmed by the business personnel. According to the abnormal type of these abnormal transaction data, abnormal transactions with abnormal types of abnormal transfers can be screened out as original black samples (i.e., the historical abnormal transaction data described in step S202 in the exemplary embodiment of the present disclosure). The number of abnormal transactions of abnormal transfer type in this specific embodiment is exactly one. For the case where there are no abnormal transactions of abnormal transfer type in the specified historical period, the specified historical period can be appropriately widened; for the case where there are multiple abnormal transactions of abnormal transfer type in the specified historical period, the specified historical period can be appropriately shortened to retain one abnormal transaction of abnormal transfer type, or the multiple abnormal transactions of abnormal transfer type screened out can be used as original black samples to execute subsequent stages together.
[0110] Second, the original data set selection stage.
[0111] In this stage, the historical associated transaction data associated with the original black sample is first extracted. Specifically, the main account, transaction date and counterparty account of the transaction are extracted from the original black sample, and then the historical transaction data of all bank accounts from January 1, 2020 to June 1, 2022 (i.e., the first historical transaction data) are divided into three parts: the main account historical transaction data D1, the counterparty account historical transaction data D2, and the historical transaction data not in D1 and D2 (i.e., the historical transaction data of non-main account and non-counterparty account) D3 according to the main account and counterparty account. The format of the historical transaction data is shown in Table 5.
[0112] Table 5
[0113]
[0114] Table 5
[0115]
[0116] Next, based on Figure 3According to the extraction logic, the main account of the original black sample is extracted as the first account. According to the transaction date of the original black sample, the period of 1 day before and after the transaction date (3 days in total) is taken as the preset period, and the main account of the transaction data within the preset period is extracted from D2, recorded as the second account, and the transaction date of the extracted transaction data is obtained. The main account of the normal transaction that occurred on the transaction date of the original black sample is extracted from D3 and recorded as the third account. The extracted first account, second account, third account and their corresponding transaction dates are summarized. It should be understood that the transaction dates corresponding to the first account and the third account are the transaction dates of the original black sample, and the transaction date corresponding to the second account is at least one date within the preset period. Then, in the first historical transaction data, the transaction data of the first account, the second account, and the third account in the last 30 days before their respective corresponding transaction dates are extracted, and the repeated transaction data are removed to obtain the historical associated transaction data.
[0117] After the data extraction is completed, the transaction labels of the historical associated transaction data are matched according to the abnormal type of the abnormal transfer. So far, a data set containing multiple binary classification labels is obtained, where label 1 indicates that the data entry is an abnormal transfer transaction, called historical black data, and label 0 indicates that the data entry is a normal transaction, called historical white data, recorded as the original data set. It should be understood that the historical black data is essentially the original black sample extracted in the first stage.
[0118] Third, the sample data set generation stage. This stage is used to further process the original data set.
[0119] In the field of anti-fraud in the banking industry, historical black data is very scarce, while historical white data is huge. If the original data set is used directly to train the model, it may result in very few black samples and too many white samples in the training samples of the model. In order to obtain more black samples to fully train the model, it is necessary to expand the black samples. In this example, the following method is used to expand the black samples: based on the original data set, the main account, transaction date, and counterparty account of the historical black data (i.e., the transaction data with the label 1) are taken. Matching is performed on the original data set. If at least two of the main account, transaction date, and counterparty account of a historical white data are the same as the historical black data, the historical white data is marked as 1, otherwise it is marked as 0. Specifically, if the main account and transaction date of a historical white data are the same as the main account and transaction date of the historical black data, it is marked as 1; if the main account and counterparty account of a historical white data are the same as the main account and counterparty account of the historical black data, it is also marked as 1; if the transaction date and counterparty account of a historical white data are the same as the transaction date and counterparty account of the historical black data, it is also marked as 1; if the first three conditions are not met, it is marked as 0. For the historical black data in the original data set, the original label 1 is directly used. The resulting data set is recorded as the sample data set.
[0120] Fourth, the training data set generation stage. This stage further screens data from the sample data set.
[0121] In order to deal with abnormal transfers in a targeted manner, after a large number of case analyses, it was found that there is a very significant pattern in abnormal transfers: before formal implementation, a test of the validity of an account will be conducted, and generally a small amount of transaction will be used to test whether the account is available. When the account is confirmed to be available, large-amount transactions will be conducted. Since banks need to prevent capital flight, they need to focus on outbound transactions. Therefore, samples are selected according to the following rules: For the same main account, a sliding time window is used to roll to determine whether there is a transaction less than 20 yuan first and then a transaction greater than 1,000 yuan within 3 days (preset time window). If so, this main account is used as a candidate account. Then, from the transaction data of the candidate accounts, transaction data with a transaction time later than the transaction time less than 20 yuan and an outbound transaction amount greater than 1,000 yuan are selected as sample transaction data. The sample labels are matched according to the sample data set labels, and the sampling method is used to ensure that the black-white sample ratio is equal to 1:100 after sampling. Finally, 32,687 black samples and 3,268,997 white samples are obtained, totaling 3,301,684 samples, which are recorded as the training data set.
[0122] Fifth, in the preparation stage of the backup data set, a batch of data that did not appear in the training data set was selected from the sample data set according to the black-white sample ratio of 1:100, totaling 1,680,842 backup samples, which were recorded as the backup data set.
[0123] The samples selected according to the above rules can, on the one hand, meet the transaction rules in abnormal transfer scenarios, and on the other hand, meet the needs of preventing capital flight.
[0124] Figure 4 It is a flowchart showing the model training according to a specific embodiment of the present disclosure.
[0125] Reference Figure 4 In a specific embodiment of model training disclosed in the present invention, model training adopts the method of gradually adding spare sample transaction data to reduce model overfitting and improve model generalization ability. The whole process of model training includes multiple model trainings and output model tests that are executed in a loop. If the model fails each time, the spare sample transaction data is added to reduce overfitting.
[0126] Specifically, after obtaining the training data set from January 1, 2020 to June 1, 2022 according to the aforementioned specific embodiment, the feature extraction method introduced above is used to calculate the individual transaction features and group transaction features of each transaction data in the training data set to obtain the input training set. The model is trained with this input training set, and after the model is produced, it is used to predict the transaction data from June 1, 2022 to August 1, 2022 (i.e., the second historical transaction data, constituting the test data set) to obtain the prediction score. The abnormal transaction data of the abnormal transfer type from June 1, 2022 to August 1, 2022 is used to determine the true label of the second historical transaction data. Finally, the predicted score and the true label are used to calculate the test loss value of the model, and by comparing the loss value curve of the observed model on the training data set with the loss value curve on the test data set, it is determined whether the model is overfitting in the test data set. This specific embodiment uses the GBDT (Gradient Boosting Decision Tree) algorithm to train the model, and in the first round, the following is obtained: Figure 5a The loss value comparison chart shown in the figure shows epoch. It can be seen that compared with the training data set, the loss value on the test data set decreases significantly faster, and there is a certain degree of overfitting. Figure 4In the model training process in , the data in the backup dataset is added to the original training dataset. The 10% data volume of the training dataset is 330168, so 330168 backup samples are randomly selected from the backup dataset and added to the training dataset. The merged training dataset has a total of 3631852 samples. After re-extracting features, the model is trained again, and the loss value is recalculated on the test set, and the following is obtained: Figure 5b The loss value comparison chart is shown in Figure 1. It can be seen that the loss value curve at this time is Figure 5a There is a significant improvement in the performance, and the overfitting phenomenon basically does not occur, so the model training is stopped and the model obtained at this time is used as the final result model. After statistics, the effect of the model on the test data set is shown in Table 6.
[0127] Table 6
[0128] month Recall Accuracy June 2022 30% 28.2% August 2022 30% 32.5%
[0129] Figure 6 is a block diagram illustrating an abnormal transaction identification apparatus according to an exemplary embodiment of the present disclosure.
[0130] Reference Figure 6 The abnormal transaction identification device includes an acquisition unit 601, a processing unit 602, and a determination unit 603.
[0131] The acquisition unit 601 can acquire target transaction data; wherein the transaction data includes individual transaction information and group transaction information.
[0132] Optionally, the individual transaction information includes at least one of a master account and a counterparty account, and the group transaction information includes at least one of a transaction device, a transaction location, and a transaction channel.
[0133] The acquisition unit 601 may also acquire historical transaction data that is consistent with the individual transaction information of the target transaction data as individual reference transaction data.
[0134] The acquisition unit 601 may also acquire historical transaction data that is consistent with the group transaction information of the target transaction data as group reference transaction data.
[0135] Optionally, the transaction data also includes the transaction time; the acquisition unit 601 can also: acquire historical transaction data that is consistent with the individual reference information of the target transaction data within a period of a set time period traced back from the transaction time of the target transaction data, as individual reference transaction data; acquire historical transaction data that is consistent with the group reference information of the target transaction data within a period of a set time period traced back from the transaction time of the target transaction data, as group reference transaction data.
[0136] The processing unit 602 may process the individual reference transaction data to obtain the individual transaction features of the target transaction data.
[0137] The processing unit 602 may also process the group reference transaction data to obtain the group transaction features of the target transaction data.
[0138] Optionally, the transaction data also includes the transaction amount; the processing unit 602 can also: perform statistical processing on the transaction amount and transaction time of the individual reference transaction data to obtain individual transaction characteristics; perform statistical processing on the transaction amount and transaction time of the group reference transaction data to obtain group transaction characteristics.
[0139] Optionally, the processing unit 602 may further: extract individual data groups that conform to the corresponding transaction rules from the individual reference transaction data according to different transaction rules followed by the transaction amount and the transaction time, and obtain a set of individual data groups for each transaction rule; wherein the different transaction rules include continuous outgoing, continuous incoming, continuous outgoing followed by continuous incoming, and continuous incoming followed by continuous outgoing, the positive and negative values of the transaction amount are used to characterize the incoming and outgoing, the transaction time is used to determine the continuous operation in combination with the transaction amount, and each individual data group includes at least one continuously occurring individual reference transaction data; perform statistical processing on the set of individual data groups for each transaction rule to obtain the transaction rule characteristics of each transaction rule, and summarize to obtain the individual transaction characteristics; extract group data groups that conform to the corresponding transaction rules from the group reference transaction data according to the different transaction rules followed by the transaction amount and the transaction time, and obtain a set of group data groups for each transaction rule; wherein each group data group includes at least one continuously occurring group reference transaction data; perform statistical processing on the set of group data groups for each transaction rule to obtain the transaction rule characteristics of each transaction rule, and summarize to obtain the group transaction characteristics.
[0140] Optionally, the transaction rule characteristics of each transaction rule include at least one of the number of data groups, maximum outgoing amount, maximum incoming amount, maximum balance, average single transaction amount, transaction amount per unit time, maximum number of continuous transactions, average continuous transaction time, and average single transaction time; the average single transaction amount is the ratio of the total transaction amount to the total number of transactions; the transaction amount per unit time is the ratio of the total transaction amount to the total transaction time, the total transaction time is the sum of the transaction times of each individual data group or each group data group, and the transaction time of each individual data group or each group data group is determined based on the transaction time within the group; the maximum number of continuous transactions is the maximum value among the transaction numbers of each individual data group or each group data group; the average continuous transaction time is the average value of the transaction times of each individual data group or each group data group; the average single transaction time is the average value of the time intervals between two adjacent transaction data.
[0141] The determination unit 603 may input individual transaction features and group transaction features into a pre-trained abnormal transaction identification model to determine an estimated transaction type of the target transaction data based on the degree to which the individual transaction features deviate from the group transaction features, wherein the estimated transaction type includes abnormal transactions and normal transactions.
[0142] Optionally, the abnormal transaction identification device 600 also includes a training unit (not shown in the figure) for training a pre-trained abnormal transaction identification model, and the training unit can: obtain first historical transaction data, the first historical transaction data carries a transaction label, and the transaction label includes an abnormal transaction label or a normal transaction label; determine multiple transaction data associated with the historical abnormal transaction data from the first historical transaction data as historical associated transaction data, wherein the historical abnormal transaction data is the first historical transaction data carrying the abnormal transaction label; determine sample labels of the historical associated transaction data based on the historical associated transaction data and the transaction labels of the historical associated transaction data, the sample labels include abnormal sample labels or normal sample labels; determine sample transaction data from the historical associated transaction data; use the sample transaction data and the sample labels of the sample transaction data as training samples, train the abnormal transaction identification model, and obtain the pre-trained abnormal transaction identification model.
[0143] Optionally, the first historical transaction data includes a main account and a counterparty account; the training unit may also: determine the main account and the counterparty account of the historical abnormal transaction data as the first account and the reference account, respectively; determine all transaction data of the first account in the first reference period from the first historical transaction data to obtain the first transaction data; based on the first historical transaction data, determine all accounts that have traded with the reference account within a preset period as the second account; determine all transaction data of the second account in the second reference period from the first historical transaction data to obtain the second transaction data; and determine the first transaction data and the second transaction data as historical associated transaction data.
[0144] Optionally, the first historical transaction data also includes a transaction date; the training unit may also: determine the transaction date of the historical abnormal transaction data as the first transaction date; based on the first historical transaction data, determine a main account that has performed normal transactions on the first transaction date as a third account; determine all transaction data of the third account in a third reference period from the first historical transaction data to obtain third transaction data; and add the third transaction data to the historical associated transaction data.
[0145] Optionally, the first reference period is a period of a first reference time length from the first trading date; the second reference period is a period of a second reference time length from the second trading date, where the second trading date is a trading date between the second account and the reference account within a preset period; the third reference period is a period of a third reference time length from the first trading date; the preset period is a period of a preset time length before and after the first trading date.
[0146] Optionally, the training unit may also: record the historical associated transaction data carrying abnormal transaction labels as historical black data; record the historical associated transaction data carrying normal transaction labels as historical white data; for each historical black data, determine that the sample label is an abnormal sample label; for each historical white data, determine whether the historical white data meets a preset approximation condition with at least one historical black data; if so, determine that the sample label of the historical white data is an abnormal sample label; if not, determine that the sample label of the historical white data is a normal sample label.
[0147] Optionally, the first historical transaction data includes a primary account, a counterparty account, and a transaction date; and the preset approximate condition includes that at least two of the primary account, the counterparty account, and the transaction date of the two compared historical associated transaction data are the same.
[0148] Optionally, the training unit may also: based on the main account, transaction date, and transaction amount of the historical associated transaction data, for each main account, if it is determined that the main account first has a small transaction and then a large transaction within a preset time window, the main account will be recorded as a candidate account; a small transaction is a transaction with a transaction amount less than a first preset amount, and a large transaction is a transaction with a transaction amount greater than a second preset amount, and the first preset amount is less than the second preset amount; from the historical associated transaction data, determine the outgoing transaction data of the candidate account that occurs after the small transaction and has a transaction amount greater than the second preset amount as sample transaction data.
[0149] Optionally, the training unit may also: use a random sampling device to determine sample transaction data from historical related transaction data with the goal of achieving a preset ratio between black samples and white samples; wherein black samples are sample transaction data whose sample labels are abnormal sample labels, and white samples are sample transaction data whose sample labels are normal sample labels.
[0150] Optionally, the training unit may also: obtain second historical transaction data, which is different from the first historical transaction data and carries a transaction label; use the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model; in response to a test failure instruction, determine spare sample transaction data that is not used as sample transaction data from the historical associated transaction data, add the spare sample transaction data to the sample transaction data to update the training sample, train the abnormal transaction identification model again, and update the pre-trained abnormal transaction identification model; repeat the steps of using the second historical transaction data as training test data to test the pre-trained abnormal transaction identification model, and in response to a test failure instruction, determine spare sample transaction data that is not used as sample transaction data from the historical associated transaction data, add the spare sample transaction data to the sample transaction data to update the training sample, train the abnormal transaction identification model again, and update the pre-trained abnormal transaction identification model, until a test pass instruction is received.
[0151] The above has been referred to Figures 1 to 6 An abnormal transaction identification method and apparatus according to exemplary embodiments of the present disclosure are described.
[0152] Figure 6 Each unit in the abnormal transaction identification device shown can be configured as software, hardware, firmware or any combination of the above items to perform a specific function. For example, each unit can correspond to a dedicated integrated circuit, or a pure software code, or a module that combines software and hardware. In addition, one or more functions implemented by each unit can also be uniformly executed by components in a physical entity device (e.g., a processor, a client or a server, etc.).
[0153] In addition, refer to Figure 1 The abnormal transaction identification method described can be implemented by a program (or instruction) recorded on a computer-readable storage medium. For example, according to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions can be provided, wherein when the instructions are executed by at least one computing device, the at least one computing device is prompted to perform the abnormal transaction identification method according to the present disclosure.
[0154] The computer program in the computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. It should be noted that the computer program can also be used to perform additional steps in addition to the above steps or perform more specific processing when performing the above steps. The contents of these additional steps and further processing have been described in reference to Figure 1 It is mentioned in the description of the related method, so it will not be repeated here to avoid repetition.
[0155] It should be noted that each unit in the abnormal transaction identification device according to the exemplary embodiment of the present disclosure can completely rely on the operation of the computer program to realize the corresponding function, that is, each unit corresponds to each step in the functional architecture of the computer program, so that the entire system is called through a special software package (for example, lib library) to realize the corresponding function.
[0156] on the other hand, Figure 6 The various units shown may also be implemented by hardware, software, firmware, middleware, microcode, or any combination thereof. When implemented by software, firmware, middleware, or microcode, the program code or code segment for performing the corresponding operation may be stored in a computer-readable medium such as a storage medium, so that the processor may perform the corresponding operation by reading and running the corresponding program code or code segment.
[0157] For example, an exemplary embodiment of the present disclosure may also be implemented as a computing device, which includes a storage component and a processor, wherein a set of computer executable instructions is stored in the storage component, and when the set of computer executable instructions is executed by the processor, the abnormal transaction identification method according to the exemplary embodiment of the present disclosure is executed.
[0158] Specifically, the computing device can be deployed in a server or client, or can be deployed on a node device in a distributed network environment. In addition, the computing device can be a PC, a tablet device, a personal digital assistant, a smart phone, a web application, or other device capable of executing the above instruction set.
[0159] Here, the computing device is not necessarily a single computing device, but may also be any device or circuit collection that can execute the above instructions (or instruction sets) individually or jointly. The computing device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that is interconnected with a local or remote (e.g., via wireless transmission) interface.
[0160] In a computing device, a processor may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, a processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0161] According to the exemplary embodiment of the present disclosure, some operations described in the abnormal transaction identification method can be implemented by software, some operations can be implemented by hardware, and in addition, these operations can also be implemented by a combination of software and hardware.
[0162] The processor may execute instructions or codes stored in one of the storage components, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.
[0163] The storage component may be integrated with the processor, for example, RAM or flash memory is arranged within an integrated circuit microprocessor, etc. In addition, the storage component may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The storage component and the processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the storage component.
[0164] In addition, the computing device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the computing device may be connected to each other via a bus and / or a network.
[0165] The abnormal transaction identification method according to the exemplary embodiment of the present disclosure can be described as various interconnected or coupled functional blocks or functional diagrams. However, these functional blocks or functional diagrams can be equally integrated into a single logical device or operate according to non-exact boundaries.
[0166] Therefore, refer to Figure 1 The described abnormal transaction identification method may be implemented by a system including at least one computing device and at least one storage device storing instructions.
[0167] According to an exemplary embodiment of the present disclosure, at least one computing device is a computing device for executing the abnormal transaction identification method according to an exemplary embodiment of the present disclosure, and a computer executable instruction set is stored in the storage device. When the computer executable instruction set is executed by the at least one computing device, the execution reference Figure 1 The described abnormal transaction identification method.
[0168] The above describes various exemplary embodiments of the present disclosure, and it should be understood that the above description is only exemplary and not exhaustive, and the present disclosure is not limited to the disclosed exemplary embodiments. Without departing from the scope and spirit of the present disclosure, many modifications and changes are obvious to those of ordinary skill in the art. Therefore, the scope of protection of the present disclosure should be based on the scope of the claims.
Claims
1. A method for identifying abnormal transactions, characterized in that: The identification method comprises: Acquire target transaction data; wherein the transaction data includes individual transaction information and group transaction information; Acquire historical transaction data that is consistent with individual transaction information of the target transaction data as individual reference transaction data; Acquire historical transaction data that is consistent with the group transaction information of the target transaction data as group reference transaction data; Processing the individual reference transaction data to obtain individual transaction features of the target transaction data; Processing the group reference transaction data to obtain group transaction features of the target transaction data; The individual transaction features and the group transaction features are input into a pre-trained abnormal transaction recognition model to determine an estimated transaction type of the target transaction data based on the degree to which the individual transaction features deviate from the group transaction features, wherein the estimated transaction type includes abnormal transactions and normal transactions.
2. The abnormal transaction identification method according to claim 1, characterized in that: The transaction data also includes transaction time; The acquiring of historical transaction data consistent with the individual transaction information of the target transaction data as individual reference transaction data includes: Acquire historical transaction data that is consistent with the individual reference information of the target transaction data within a period of a set time period traced back from the transaction time of the target transaction data, as the individual reference transaction data; The step of acquiring historical transaction data that is consistent with the group transaction information of the target transaction data as group reference transaction data includes: Historical transaction data that is consistent with the group reference information of the target transaction data and is traced back to the set time period from the transaction time of the target transaction data is obtained as the group reference transaction data.
3. The abnormal transaction identification method according to claim 2, characterized in that: The transaction data also includes the transaction amount; The processing of the individual reference transaction data to obtain the individual transaction features of the target transaction data includes: Performing statistical processing on the transaction amount and transaction time of the individual reference transaction data to obtain the individual transaction characteristics; The processing of the group reference transaction data to obtain the group transaction features of the target transaction data includes: Statistical processing is performed on the transaction amount and transaction time of the group reference transaction data to obtain the group transaction characteristics.
4. The abnormal transaction identification method according to claim 3, characterized in that: The statistical processing of the transaction amount and transaction time of the individual reference transaction data to obtain the individual transaction characteristics includes: According to different transaction rules followed by transaction amounts and transaction times, individual data groups that conform to corresponding transaction rules are extracted from the individual reference transaction data to obtain a set of individual data groups for each transaction rule; wherein the different transaction rules include continuous outgoing transactions, continuous incoming transactions, continuous outgoing transactions followed by continuous incoming transactions, and continuous incoming transactions followed by continuous outgoing transactions; the positive and negative values of the transaction amounts are used to characterize incoming transactions and outgoing transactions; the transaction time is used to determine continuous operations in combination with the transaction amount; and each individual data group includes at least one continuously occurring individual reference transaction data; Performing statistical processing on the individual data set of each transaction rule to obtain the transaction rule characteristics of each transaction rule, and summarizing to obtain the individual transaction characteristics; The statistical processing of the transaction amount and transaction time of the group reference transaction data to obtain the group transaction characteristics includes: According to different transaction rules followed by transaction amounts and transaction times, group data groups that conform to corresponding transaction rules are extracted from the group reference transaction data to obtain a set of group data groups for each transaction rule; wherein each group data group includes at least one group reference transaction data that occurs continuously; Statistical processing is performed on the group data set of each transaction rule to obtain the transaction rule characteristics of each transaction rule, and the group transaction characteristics are summarized to obtain the group transaction characteristics.
5. The abnormal transaction identification method according to claim 4, characterized in that: The transaction rule characteristics of each transaction rule include at least one of the number of data groups, the maximum outgoing amount, the maximum incoming amount, the maximum balance, the average single transaction amount, the transaction amount per unit time, the maximum number of continuous transactions, the average continuous transaction time, and the average single transaction time; The average single transaction amount is the ratio of the total transaction amount to the total number of transactions; The transaction amount per unit time is the ratio of the total transaction amount to the total transaction time. The total transaction time is the sum of the transaction time of each individual data group or each group data group. The transaction time of each individual data group or each group data group is determined according to the transaction time within the group. The maximum number of consecutive transactions is the maximum value among the transaction numbers of each individual data set or each group data set; The average continuous transaction duration is the average transaction duration of each individual data group or each group data group; The average single transaction duration is the average value of the time intervals between two adjacent transaction data.
6. The abnormal transaction identification method according to claim 1, characterized in that: The individual transaction information includes at least one of a master account and a counterparty account, and the group transaction information includes at least one of a transaction device, a transaction location, and a transaction channel.
7. The abnormal transaction identification method according to any one of claims 1 to 6, characterized in that: The abnormal transaction identification method further comprises a training step of the pre-trained abnormal transaction identification model, wherein the training step comprises: Acquire first historical transaction data, where the first historical transaction data carries a transaction tag, where the transaction tag includes an abnormal transaction tag or a normal transaction tag; Determining a plurality of transaction data associated with the historical abnormal transaction data from the first historical transaction data as the historical associated transaction data, wherein the historical abnormal transaction data is the first historical transaction data carrying an abnormal transaction tag; Determine, based on the historical associated transaction data and the transaction labels of the historical associated transaction data, a sample label of the historical associated transaction data, wherein the sample label includes an abnormal sample label or a normal sample label; Determining sample transaction data from the historical associated transaction data; The sample transaction data and the sample labels of the sample transaction data are used as training samples to train an abnormal transaction recognition model to obtain the pre-trained abnormal transaction recognition model.
8. An abnormal transaction identification device, characterized in that: The identification device comprises: An acquisition unit is configured to acquire target transaction data; wherein the transaction data includes individual transaction information and group transaction information; The acquisition unit is further configured to acquire historical transaction data consistent with individual transaction information of the target transaction data as individual reference transaction data; The acquisition unit is further configured to acquire historical transaction data consistent with the group transaction information of the target transaction data as group reference transaction data; a processing unit configured to process the individual reference transaction data to obtain individual transaction features of the target transaction data; The processing unit is further configured to process the group reference transaction data to obtain group transaction features of the target transaction data; A determination unit is configured to input the individual transaction feature and the group transaction feature into a pre-trained abnormal transaction recognition model to determine an estimated transaction type of the target transaction data based on the degree to which the individual transaction feature deviates from the group transaction feature, wherein the estimated transaction type includes an abnormal transaction and a normal transaction.
9. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the abnormal transaction identification method according to any one of claims 1 to 7.
10. A system comprising at least one computing device and at least one storage device storing instructions, characterized in that: When the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the abnormal transaction identification method according to any one of claims 1 to 7.
