A method and device for determining abnormal transactions
By forming a related transaction sequence and using a neural network model to determine transaction feature vectors, combined with account and customer attribute information, the problem of low accuracy in manually identifying abnormal transactions in the existing technology is solved, and rapid and accurate identification of financial transactions is achieved.
Patent Information
- Application Number
- CN201910579378.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-06-28
AI Technical Summary
When determining abnormal transactions, the existing technology requires a large amount of manual collection of information and low accuracy, making it difficult to quickly identify abnormal transactions in massive transaction data.
By obtaining the transfer-out or transfer-in transactions of the transactions to be identified, a sequence of related transactions is formed, and the neural network model is used to determine whether it is an abnormal transaction based on the transaction feature vector, and the accuracy of the judgment is improved by combining account and customer attribute information.
It achieves comprehensive and accurate identification of abnormal transactions, improves the speed and accuracy of judgment, and meets the financial industry's need for rapid identification of abnormal transactions.
Smart Images

Figure CN110276620B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of financial technology (Fintech), and in particular to a method and device for determining abnormal transactions. Background Art
[0002] With the development of computer technology, more and more technologies are being applied in the financial field. The traditional financial industry is gradually transforming to financial technology (Fintech), and the processing technology for determining abnormal transactions is no exception. However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on the technology.
[0003] In recent years, with the rapid development of the financial industry, especially with the help of mobile Internet technology, the transaction volume of financial services has grown rapidly. Financial services are one of the important pillars of modern economic development, and the transaction scenarios of financial services have become more diverse. Financial transaction institutions such as banks process millions or even tens of millions of transactions every day, which greatly facilitates economic crimes hidden in financial networks. Abnormal financial transactions include financial transactions involved in illegal and criminal activities such as money laundering, pyramid schemes, credit card fraud, and illegal fundraising. These financial transactions disrupt economic and social order and cause harm to public security.
[0004] In the prior art, when determining whether a transaction is an abnormal transaction, the investigator usually determines the characteristics of the abnormal transaction based on the experience of abnormal transactions, and then uses the rule model to determine whether it is an abnormal transaction. However, the prior art requires manual collection of multiple information, which is labor-intensive, and the method of manually identifying features is prone to omission of features, resulting in low accuracy in the final determination of whether it is an abnormal transaction, which is difficult to meet the need in the prior art to quickly determine abnormal transactions from massive transaction data.
[0005] Therefore, how to accurately and comprehensively identify abnormal transactions has become a technical problem that needs to be solved urgently and a research focus for those skilled in the art. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a method and device for determining abnormal transactions, which at least solves the problem that abnormal transactions cannot be fully and accurately determined in the prior art.
[0007] On the one hand, an embodiment of the present invention provides a method for determining abnormal transactions, comprising:
[0008] After obtaining the transaction to be identified, determining, according to the transaction to be identified, an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified;
[0009] Determine a sequence of associated transactions according to an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified;
[0010] Determine whether the transaction to be identified is an abnormal transaction according to the associated transaction sequence and the transaction to be identified.
[0011] In the embodiment of the present invention, when judging an abnormal transaction for a transaction, the related transactions of the transaction are grouped into a transaction sequence, that is, the incoming transaction of the transaction or the outgoing transaction of the transaction forms a transaction sequence. Since the characteristics of abnormal transactions are often that multiple transactions are transferred into one transaction and transferred out, or a large transaction is received and then transferred out through multiple transactions, it is possible to comprehensively determine whether an abnormal transaction exists through the transaction relationship between the transaction and the transactions in the transaction sequence. Compared with the prior art, it is possible to comprehensively and accurately determine whether an abnormal transaction exists.
[0012] Optionally, determining, according to the transaction to be identified, an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified, includes:
[0013] If it is determined that the transaction to be identified is a transfer-in transaction, determining the transfer-out transaction corresponding to the transaction to be identified according to the amount transfer-out transaction of the transfer-in amount of the transaction to be identified;
[0014] If it is determined that the transaction to be identified is an outgoing transaction, the incoming transaction corresponding to the transaction to be identified is determined according to the amount source transaction of the outgoing amount of the transaction to be identified.
[0015] In the embodiment of the present invention, for a single transaction, the transaction is either an incoming transaction or an outgoing transaction. Therefore, for an incoming transaction, it is necessary to know which outgoing transactions are the final ones of the incoming transaction; for an outgoing transaction, it is necessary to know which transactions are aggregated into the outgoing transaction.
[0016] Optionally, determining the associated transaction sequence according to the outgoing transaction corresponding to the transaction to be identified or the incoming transaction corresponding to the transaction to be identified includes:
[0017] The outgoing transactions corresponding to the transaction to be identified or the incoming transactions corresponding to the transaction to be identified are sorted in time series to form the associated transaction sequence.
[0018] In the embodiment of the present invention, since financial transactions have time characteristics, it is necessary to sort the transactions according to time and then form a sequence.
[0019] Optionally, determining whether the transaction to be identified is an abnormal transaction according to the associated transaction sequence and the transaction to be identified includes:
[0020] Traversing the transactions according to the arrangement order of the transactions in the associated transaction sequence;
[0021] Determine a transaction feature vector according to the traversed transactions and the transactions to be identified;
[0022] Determine whether the transaction to be identified is an abnormal transaction based on the transaction feature vector and a neural network model, wherein the neural network model is determined based on historical abnormal transactions.
[0023] In the embodiment of the present invention, a feature vector is determined for any transaction in the associated transaction sequence together with the transaction to be identified, and whether it is an abnormal transaction can be determined through all the feature vectors and the neural network model. The training of the neural network model is determined through historical abnormal transactions, and the training accuracy is high, so the judgment result obtained is also of high precision.
[0024] Optionally, determining the transaction feature vector according to the traversed transactions and the to-be-identified transactions includes:
[0025] Determine the account attribute information corresponding to the transaction to be identified and the customer attribute information corresponding to the transaction to be identified;
[0026] A transaction feature vector is determined according to the traversed transactions, the transactions to be identified, the account attribute information corresponding to the transactions to be identified, and the customer attribute information corresponding to the transactions to be identified.
[0027] In the embodiment of the present invention, in addition to focusing on the characteristics of the transaction itself, the verticality of the account to which the transaction belongs and the customer attributes corresponding to the transaction are also considered together, thereby increasing the accuracy of the judgment result.
[0028] In one aspect, an embodiment of the present invention provides a device for determining abnormal transactions, including:
[0029] An acquisition unit, configured to, after acquiring the transaction to be identified, determine, according to the transaction to be identified, an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified;
[0030] An associated transaction sequence determination unit, configured to determine an associated transaction sequence according to an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified;
[0031] The abnormal transaction determination unit is used to determine whether the transaction to be identified is an abnormal transaction according to the associated transaction sequence and the transaction to be identified.
[0032] Optionally, the acquiring unit is specifically used for:
[0033] If it is determined that the transaction to be identified is a transfer-in transaction, determining the transfer-out transaction corresponding to the transaction to be identified according to the amount transfer-out transaction of the transfer-in amount of the transaction to be identified;
[0034] If it is determined that the transaction to be identified is an outgoing transaction, the incoming transaction corresponding to the transaction to be identified is determined according to the amount source transaction of the outgoing amount of the transaction to be identified.
[0035] Optionally, the associated transaction sequence determination unit is specifically used to:
[0036] The outgoing transactions corresponding to the transaction to be identified or the incoming transactions corresponding to the transaction to be identified are sorted in time series to form the associated transaction sequence.
[0037] Optionally, the abnormal transaction determination unit is specifically used to:
[0038] Traversing the transactions according to the arrangement order of the transactions in the associated transaction sequence;
[0039] Determine a transaction feature vector according to the traversed transactions and the transactions to be identified;
[0040] Determine whether the transaction to be identified is an abnormal transaction based on the transaction feature vector and a neural network model, wherein the neural network model is determined based on historical abnormal transactions.
[0041] Optionally, the abnormal transaction determination unit is specifically used to:
[0042] Determine the account attribute information corresponding to the transaction to be identified and the customer attribute information corresponding to the transaction to be identified;
[0043] A transaction feature vector is determined according to the traversed transactions, the transactions to be identified, the account attribute information corresponding to the transactions to be identified, and the customer attribute information corresponding to the transactions to be identified.
[0044] On the one hand, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of the method for determining abnormal transactions implemented by the computer program.
[0045] On the one hand, an embodiment of the present invention provides a computer-readable storage medium storing a computer program executable by a computer device, which, when executed on the computer device, enables the computer device to perform the steps of the method for determining abnormal transactions. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A flow chart of a method for determining abnormal transactions provided by an embodiment of the present invention;
[0047] Figure 2 A schematic diagram of the structure of an account pool provided by an embodiment of the present invention;
[0048] Figure 3 A schematic diagram of a process for determining a backward sequence provided by an embodiment of the present invention;
[0049] Figure 4 A schematic diagram of a process for determining a forward sequence provided by an embodiment of the present invention;
[0050] Figure 5 A flowchart of a method for determining abnormal transactions based on an attention neural network provided by an embodiment of the present invention;
[0051] Figure 6 A flow chart of a method for determining abnormal transactions provided by an embodiment of the present invention;
[0052] Figure 7 A schematic diagram of the structure of a device for determining abnormal transactions provided by an embodiment of the present invention;
[0053] Figure 8 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and beneficial effects of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] Based on the problems existing in the prior art, the embodiment of the present invention provides a method for determining abnormal transactions, specifically, Figure 1 As shown, the following steps are included:
[0056] Step S101, after obtaining the transaction to be identified, determining the transfer-out transaction corresponding to the transaction to be identified or the transfer-in transaction corresponding to the transaction to be identified according to the transaction to be identified.
[0057] Specifically, in the embodiment of the present invention, for a transaction institution, such as a bank or other transaction institution, such as a mobile payment platform, if only the preceding transaction or the following transaction of the transaction is concerned, it can be considered that there is a large account pool in the transaction institution, and only the transactions flowing into and out of the account pool are concerned. For example, Figure 2 As shown, each transfer-in account is injected into the account pool, and the funds in the account pool flow out to each transfer-out account. In other words, only the transfer-out transaction corresponding to the transaction to be identified or the transfer-in transaction corresponding to the transaction to be identified is concerned.
[0058] Optionally, in an embodiment of the present invention, if it is determined that the transaction to be identified is a transfer-in transaction, the transfer-out transaction corresponding to the transaction to be identified is determined based on the amount transfer-out transaction of the transfer-in amount of the transaction to be identified; if it is determined that the transaction to be identified is a transfer-out transaction, the transfer-in transaction corresponding to the transaction to be identified is determined based on the amount source transaction of the transfer-out amount of the transaction to be identified.
[0059] For example, the transaction to be identified is an entry transaction, that is, a deposit of 100 yuan is made, 100 yuan flows into the account pool, and then 100 yuan is transferred out in two transactions, then these two transactions are the transfer-out transactions of the transaction to be identified; the transaction to be identified is an exit transaction, that is, a withdrawal of 100 yuan is made, 100 yuan flows out of the account pool, and then for this transfer-out transaction, 100 yuan is transferred into the account pool through two transactions, then these two transactions are the transfer-in transactions of the transaction to be identified.
[0060] Step S102: determining a sequence of associated transactions according to an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified.
[0061] In an embodiment of the invention, in order to be able to form an associated transaction sequence based on the characteristic relationship between the transaction to be identified and the transfer-out transaction corresponding to the transaction to be identified, or based on the characteristic relationship between the transaction to be identified and the transfer-in transaction corresponding to the transaction to be identified, the transfer-out transaction corresponding to the transaction to be identified or the transfer-in transaction corresponding to the transaction to be identified.
[0062] Optionally, in the embodiment of the present invention, since transactions have time characteristics, outgoing transactions corresponding to the transaction to be identified or incoming transactions corresponding to the transaction to be identified are sorted in time series to form a sequence of associated transactions.
[0063] If there are a few transactions in the account pool, it is relatively easy to determine the associated transaction sequence of each transaction. The associated transaction sequence can be determined manually. However, in existing financial transactions, there are a large amount of transaction data, so it is not possible to use such an inefficient method as manual method to determine the associated transaction sequence. In the embodiment of the present invention, the associated transaction sequence can be determined by the following embodiments.
[0064] Embodiment 1
[0065] In the embodiment of the present invention, the sequence of related transactions determined by the outgoing transaction corresponding to the transaction to be identified can be defined as a backward sequence. The backward sequence focuses on which subsequent outgoing transactions the funds of the incoming transaction are used in. The outgoing transaction in the backward sequence must be traded after the incoming transaction.
[0066] Specifically, the backward sequence of transactions in the account pool is determined through the following steps: Figure 3 As shown:
[0067] Step S301, initializing the backward sequence seq;
[0068] Step S302, arranging the incoming transactions in chronological order, and recording them as the incoming transaction set L_IN;
[0069] Step S303, arranging the outgoing transactions in chronological order, recorded as the outgoing transaction set L_OUT. In an account pool, it can be considered that the total amount of funds transferred into the account pool by the incoming transaction set L_IN is the same as the total amount of funds transferred out of the account pool by the incoming transaction set L_OUT.
[0070] Step S304, traverse L_IN, record the current transfer transaction as t_in; record the remaining amount amt_remain = the transaction amount of t_in, t_in_id = the transaction sequence number of t_in;
[0071] Step S305, traverse the set L_OUT and record the current transfer-out transaction as t_out;
[0072] Step S306, calculating the amount of amt_remain=amt_remain-t_out;
[0073] Step S307, if amt_remain>0, delete t_out from L_OUT and put it into list seq, and continue to step S305;
[0074] Step S308, if it is determined that amt_remain=0, delete t_out from L_OUT and put it into the list seq, and return to step S304;
[0075] Step S309, if it is determined that amt_remain<0, copy the record t_out'=t_out, set the amount of t_out'=the absolute value of amt_remain, add t_out' to the queue seq, set the t_out amount=the absolute value of t_out amount-amt_remain result, and return to step S304.
[0076] Specifically, take the transfer-in transaction 1 in the account pool, the transfer-in transaction amount is 100; the transfer-out transaction 1, the transfer-out transaction amount is 50, the transfer-out transaction 2, the transfer-out transaction amount is 20, and the transfer-out transaction 3, the transfer-out transaction amount is 30 as an example for explanation.
[0077] The set of incoming transactions is incoming transaction 1, and the set of outgoing transactions is outgoing transaction 1, outgoing transaction 2, and outgoing transaction 3. For incoming transaction 1, record the remaining amount amt_remain = 100, obtain outgoing transaction 1 in the set L_OUT, calculate amt_remain = amt_remain – t_out = 50, amt_remain>0, delete t_out from L_OUT and put it in the list seq for incoming transaction 1, then obtain outgoing transaction 2 in the set L_OUT, calculate amt_remain ain=amt_remain–t_out=50-20=30,amt_remain>0,delete t_out from L_OUT and put it into the list seq for transfer-in transaction 1. At this time, there are already transfer-out transaction 1 and transfer-out transaction 2 in seq; then get transfer-out transaction 3 in set L_OUT, calculate amt_remain=amt_remain–t_out=30-30=0,amt_remain=0,delete t_out from L_OUT and put it into the list seq. Therefore, in the backward sequence for transfer-in transaction 1, transfer-out transaction 1, transfer-out transaction 2 and transfer-out transaction 3 are arranged in order.
[0078] The above embodiment is described with only one transfer-in transaction in the account pool. When there are two transfer-in transactions and two transfer-out transactions in the account pool, for example, transfer-in transaction 1 in the account pool has an transfer-in transaction amount of 100, transfer-in transaction 2 has an transfer-in transaction amount of 50; transfer-out transaction 1 has an transfer-out transaction amount of 50, transfer-out transaction 2 has an transfer-out transaction amount of 20, and transfer-out transaction 3 has an transfer-out transaction amount of 80.
[0079] The set of incoming transactions is incoming transaction 1 and incoming transaction 2, and the set of outgoing transactions is outgoing transaction 1, outgoing transaction 2, and outgoing transaction 3. For incoming transaction 1, record the remaining amount amt_remain = 100, obtain outgoing transaction 1 in the set L_OUT, calculate amt_remain = amt_remain-t_out = 50, amt_remain>0, delete t_out from L_OUT and put it into the list seq for incoming transaction 1, then obtain outgoing transaction 2 in the set L_OUT, calculate amt_remain = amt_remain-t_out = 50-20 = 30, amt_remain>0, delete t_out from L_OUT and put it into For the list seq of transfer-in transaction 1, there are already transfer-out transaction 1 and transfer-out transaction 2 in seq at this time; then obtain transfer-out transaction 3 in set L_OUT, calculate amt_remain = amt_remain-t_out = 30-80 = -50, determine amt_remain<0, then copy record t_out' = t_out, set t_out' amount = absolute value of amt_remain = 50, add t_out' to queue seq, set t_out amount = t_out amount-absolute value of amt_remain result, that is, t_out amount = 50; then determine that transfer-out transaction 1, transfer-out transaction 2 and transfer-out transaction 3 are arranged in order in the backward sequence for transfer-in transaction 1.
[0080] For incoming transaction 2, t_out in set L_OUT is obtained again, amt_remain = amt_remain - t_out = 50 - 50 = 0 is calculated, amt_remain = 0, t_out is deleted from L_OUT and put into list seq for incoming transaction 2. In the backward sequence for incoming transaction 2, outgoing transaction 3 is arranged in order.
[0081] Embodiment 2
[0082] In the embodiment of the present invention, the sequence of related transactions determined by the incoming transactions corresponding to the transaction to be identified can be defined as a forward sequence, and the forward sequence focuses on which incoming transactions the funds of the outgoing transaction come from. The time of the incoming transaction in the forward sequence must be earlier than the outgoing transaction.
[0083] Specifically, the forward sequence of transactions in the account pool is determined through the following steps: Figure 4 As shown:
[0084] Step S401, initializing the forward sequence;
[0085] Step S402, arranging the outgoing transactions in chronological order, and recording them as an outgoing transaction set L_OUT;
[0086] Step S403, arranging the incoming transactions in chronological order, and recording them as the incoming transaction set L_IN;
[0087] Step S404, traverse L_OUT, record the current transfer-out transaction as t_out; record the remaining amount amt_remain = the transaction amount of t_out, t_out_id = the transaction sequence number of t_out;
[0088] Step S405, traverse the set L_IN and record the current transfer-in transaction as t_in;
[0089] Step S406, calculating the amount of amt_remain=amt_remain-t_in;
[0090] Step S407, if it is determined that amt_remain>0, delete t_in from L_IN and put it into the list seq, and return to step S405;
[0091] Step S408, if it is determined that amt_remain<0, copy the record t_in'=t_in, set the amount of t_in'=amt_remain, add t_in' to the queue seq, set the amount of t_in=t_in amount-amt_remain, and return to step S404;
[0092] Step S409: If it is determined that amt_remain=0, delete t_in from L_IN and put it into the list seq, and return to step S404.
[0093] Step S103: determining whether the transaction to be identified is an abnormal transaction according to the associated transaction sequence and the transaction to be identified.
[0094] Specifically, in the embodiment of the present invention, after the forward transaction sequence or the backward transaction sequence is determined, whether it is an abnormal transaction is determined based on the feature association between the transaction in the sequence and the transaction to be identified.
[0095] Optionally, traverse transactions according to the arrangement order of each transaction in the associated transaction sequence; determine transaction feature vectors based on the traversed transactions and the transactions to be identified; determine whether the transaction to be identified is an abnormal transaction based on the transaction feature vector and a neural network model, wherein the neural network model is determined based on historical abnormal transactions.
[0096] That is, firstly, the transaction feature vectors corresponding to the two transactions are determined by the association between the transactions in the sequence and the transactions to be identified, and then the neural network model is used to determine whether the output value of the transaction feature vector is an abnormal transaction. In an embodiment of the present invention, the neural network model can be trained by historical abnormal transactions.
[0097] In an embodiment of the present invention, a transaction feature direction can be determined by a recurrent neural network model or an attention neural network model, and a result of whether it is an abnormal transaction can be output.
[0098] Specifically, we take the attention neural network model as an example. Figure 5 As shown, in Figure 5 In the process, for any transaction Xt to be identified, the transactions Xs1, Xs2, Xs3, ..Xsn in the forward sequence or backward sequence of the transaction to be identified are calculated in sequence, and the transaction features O1, O2, O3, ..On are calculated by formula 1, and then whether it is an abnormal transaction is determined according to the output result of the attention neural network model. That is to say, after the attention neural network model is determined by the historical abnormal transaction features, whether the transaction to be identified is an abnormal transaction can be determined according to the output result of the attention neural network model, abnormal transaction or non-abnormal transaction.
[0099] Specifically, Formula 1 is:
[0100]
[0101] s is the length of the forward sequence or the backward sequence; σ is the sigmoid function. Xsi is any transaction in the sequence, w it For x t The weight, w is For x si The weight of b ti and b si As parameters, after determining the attention neural network model through historical abnormal transaction characteristics, w it 、w is , b ti , b si The value of can be determined.
[0102] Then calculate o t After that, t Input to one or more hidden layers to get the final hidden layer output r t The output of this step is used to determine whether the feature formed between the transaction to be identified and the related transaction is the probability of an abnormal transaction. The calculation formula 2 is as follows:
[0103] r t =σ(W2σ(W1O t +b1)+b2) Formula 2
[0104] Among them, W1 is the weight of the first hidden layer, b1 is the parameter of the first hidden layer, W2 is the weight of the second hidden layer, and b2 is the parameter of the first hidden layer.
[0105] The above formula 2 is explained by taking the calculation result of two hidden layers as an example, and the network with more layers can be deduced accordingly.
[0106] In order to better determine the probability of abnormal transactions, r t Normalized to the interval [0, 1], according to the normalized value r t To determine whether it is an abnormal transaction.
[0107] Optionally, in an embodiment of the present invention, for multiple transactions to be identified, after obtaining the associated sequence of each transaction to be identified, the transaction features can be calculated in parallel. Similarly, when performing model training, the transaction features can also be calculated in parallel, which is beneficial to improving the efficiency of model calculation and model training.
[0108] For example, in an embodiment of the present invention, the backward sequence of transfer-in transaction 1 includes transfer-out transaction 1 and transfer-out transaction 2; when calculating the transaction features for transfer-in transaction 1, the transaction features for transfer-out transaction 1 and transfer-out transaction 2 are also calculated.
[0109] Optionally, in an embodiment of the present invention, whether it is an abnormal transaction is also related to the account to which the transaction belongs, the customer to which the account belongs, and other information. For example, although there are multiple transactions transferred in for a transaction, which are then merged into a large transaction for transfer out, it complies with general rules for abnormal transactions. However, since the account to which the transaction belongs is an education account, the school will summarize the tuition fees and pay them at the beginning of the school year, so the transaction is not an abnormal transaction.
[0110] Therefore, in the embodiment of the present invention, the account attribute information corresponding to the transaction to be identified and the customer attribute information corresponding to the transaction to be identified are determined; the transaction feature vector is determined according to the traversed transactions, the transactions to be identified, the account attribute information corresponding to the transactions to be identified, and the customer attribute information corresponding to the transactions to be identified. That is, in Formula 1, Xt and Xsi are sets of customer attributes, account attributes, and transaction attributes.
[0111] In summary, the present invention provides a method for determining abnormal transactions, such as Figure 6 As shown in the figure, the original input data includes customer data, account data, and transaction data, which are represented by P / A / T respectively. After preprocessing, forward and backward sequences are obtained, corresponding to outgoing and incoming transactions respectively. The sorted sequence data is combined with the customer data and account data input, and input into the attention neural network model for prediction to obtain the prediction result.
[0112] Based on the same technical concept, the embodiment of the present application provides a device for determining abnormal transactions, such as Figure 7 As shown, the device 700 includes:
[0113] An acquisition unit 701 is configured to, after acquiring a transaction to be identified, determine an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified according to the transaction to be identified;
[0114] An associated transaction sequence determining unit 702, configured to determine an associated transaction sequence according to an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified;
[0115] The abnormal transaction determining unit 703 is configured to determine whether the transaction to be identified is an abnormal transaction according to the associated transaction sequence and the transaction to be identified.
[0116] Furthermore, the acquisition unit 701 is specifically used for:
[0117] If it is determined that the transaction to be identified is a transfer-in transaction, determining the transfer-out transaction corresponding to the transaction to be identified according to the amount transfer-out transaction of the transfer-in amount of the transaction to be identified;
[0118] If it is determined that the transaction to be identified is an outgoing transaction, the incoming transaction corresponding to the transaction to be identified is determined according to the amount source transaction of the outgoing amount of the transaction to be identified.
[0119] Furthermore, the associated transaction sequence determination unit 702 is specifically configured to:
[0120] The outgoing transactions corresponding to the transaction to be identified or the incoming transactions corresponding to the transaction to be identified are sorted in time series to form the associated transaction sequence.
[0121] Furthermore, the abnormal transaction determination unit 703 is specifically used to:
[0122] Traversing the transactions according to the arrangement order of the transactions in the associated transaction sequence;
[0123] Determine a transaction feature vector according to the traversed transactions and the transactions to be identified;
[0124] Determine whether the transaction to be identified is an abnormal transaction based on the transaction feature vector and a neural network model, wherein the neural network model is determined based on historical abnormal transactions.
[0125] Furthermore, the abnormal transaction determination unit 703 is specifically used to:
[0126] Determine the account attribute information corresponding to the transaction to be identified and the customer attribute information corresponding to the transaction to be identified;
[0127] A transaction feature vector is determined according to the traversed transactions, the transactions to be identified, the account attribute information corresponding to the transactions to be identified, and the customer attribute information corresponding to the transactions to be identified.
[0128] Based on the same technical concept, the embodiment of the present application provides a computer device, such as Figure 8 As shown, it includes at least one processor 801 and a memory 802 connected to the at least one processor. The specific connection medium between the processor 801 and the memory 802 is not limited in the embodiment of the present application. Figure 8 For example, the processor 801 and the memory 802 are connected via a bus. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0129] In the embodiment of the present application, the memory 802 stores instructions that can be executed by at least one processor 801. The at least one processor 801 can execute the steps included in the aforementioned method for determining abnormal transactions by executing the instructions stored in the memory 802.
[0130] Among them, the processor 801 is the control center of the computer device, which can use various interfaces and lines to connect various parts of the terminal device, and obtain the client address by running or executing instructions stored in the memory 802 and calling data stored in the memory 802. Optionally, the processor 801 may include one or more processing units, and the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801. In some embodiments, the processor 801 and the memory 802 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on independent chips.
[0131] Processor 801 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware processor for execution, or can be executed by a combination of hardware and software modules in the processor.
[0132] The memory 802 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 802 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 802 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0133] Based on the same technical concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program executable by a computer device. When the program runs on the computer device, the computer device executes the steps of the method for determining abnormal transactions.
[0134] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.
[0135] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining abnormal transactions, characterized in that: The method comprises: After obtaining the transaction to be identified, determining, according to the transaction to be identified, an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified; Sort the outgoing transactions corresponding to the transaction to be identified or the incoming transactions corresponding to the transaction to be identified in time series to form a sequence of associated transactions; Traversing the transactions according to the arrangement order of the transactions in the associated transaction sequence; Determine a transaction feature vector according to the traversed transactions and the transactions to be identified; Determine whether the transaction to be identified is an abnormal transaction based on the transaction feature vector and the attention neural network model, wherein the attention neural network model is determined based on historical abnormal transactions.
2. The method according to claim 1, characterized in that The determining, according to the transaction to be identified, an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified, includes: If it is determined that the transaction to be identified is a transfer-in transaction, determining the transfer-out transaction corresponding to the transaction to be identified according to the amount transfer-out transaction of the transfer-in amount of the transaction to be identified; If it is determined that the transaction to be identified is an outgoing transaction, the incoming transaction corresponding to the transaction to be identified is determined according to the amount source transaction of the outgoing amount of the transaction to be identified.
3. The method according to claim 1, characterized in that The determining of the transaction feature vector according to the traversed transactions and the to-be-identified transactions includes: Determine the account attribute information corresponding to the transaction to be identified and the customer attribute information corresponding to the transaction to be identified; A transaction feature vector is determined according to the traversed transactions, the transactions to be identified, the account attribute information corresponding to the transactions to be identified, and the customer attribute information corresponding to the transactions to be identified.
4. A device for determining abnormal transactions, characterized in that: The device comprises: An acquisition unit, configured to, after acquiring the transaction to be identified, determine, according to the transaction to be identified, an outgoing transaction corresponding to the transaction to be identified or an incoming transaction corresponding to the transaction to be identified; an associated transaction sequence determining unit, configured to sort the outgoing transactions corresponding to the transaction to be identified or the incoming transactions corresponding to the transaction to be identified in a time series to form an associated transaction sequence; An abnormal transaction determination unit is used to traverse transactions in the order of arrangement of each transaction in the associated transaction sequence; determine a transaction feature vector based on the traversed transactions and the transactions to be identified; and determine whether the transaction to be identified is an abnormal transaction based on the transaction feature vector and an attention neural network model, wherein the attention neural network model is determined based on historical abnormal transactions.
5. The device according to claim 4, characterized in that The acquisition unit is specifically used for: If it is determined that the transaction to be identified is a transfer-in transaction, determining the transfer-out transaction corresponding to the transaction to be identified according to the amount transfer-out transaction of the transfer-in amount of the transaction to be identified; If it is determined that the transaction to be identified is an outgoing transaction, the incoming transaction corresponding to the transaction to be identified is determined according to the amount source transaction of the outgoing amount of the transaction to be identified.
6. The device according to claim 4, characterized in that The abnormal transaction determination unit is specifically used for: Determine the account attribute information corresponding to the transaction to be identified and the customer attribute information corresponding to the transaction to be identified; A transaction feature vector is determined according to the traversed transactions, the transactions to be identified, the account attribute information corresponding to the transactions to be identified, and the customer attribute information corresponding to the transactions to be identified.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
8. A computer-readable storage medium, characterized in that: The computer stores a computer program executable by a computer device. When the program is run on the computer device, the computer executes the method according to any one of claims 1 to 3.
