Transaction risk detection method, device, equipment, medium and program product
By extracting transaction features and performing long and short-term memory processing, it solves the problem that existing transaction risk detection methods ignore the complex relationship of transaction feature time series, improves the accuracy of transaction risk detection, and can more effectively identify account transaction risks.
Patent Information
- Application Number
- CN202410714716.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
AI Technical Summary
Existing transaction risk detection methods ignore the complex relationship between transaction characteristics in time series, resulting in insufficient detection accuracy.
By obtaining account transaction information, the pre-trained risk assessment model is used to extract target features, and long and short-term memory processing is performed to obtain transaction status information, thereby determining the account's transaction risk based on the transaction status information.
It improves the accuracy of transaction risk detection, can more effectively capture the transaction characteristics of accounts within a specified period of time, and enhances the ability to identify transaction risks.
Smart Images

Figure CN118537016A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of financial technology, and more specifically to a transaction risk detection method, device, equipment, medium and program product. Background Art
[0002] In order to prevent and reduce abnormal trading behavior, financial institutions usually conduct risk trading management on accounts and conduct transaction risk detection on user accounts before transactions to prevent the occurrence of abnormal trading behavior and effectively protect the security of user funds.
[0003] Existing transaction risk detection methods usually only focus on analyzing independent transaction features when performing risk detection, ignoring the complex relationship between transaction features in time series. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a transaction risk detection method, apparatus, device, medium and program product for improving the accuracy of transaction risk detection.
[0005] According to a first aspect of the present disclosure, a transaction risk detection method is provided, comprising: obtaining account transaction information and transmitting the account transaction information to a pre-trained risk assessment model; extracting target features from the account transaction information using the risk assessment model; performing long-term and short-term memory processing on the target features to obtain transaction status information; wherein the transaction status information is used to represent the transaction characteristics of the account within a specified time period; and determining the transaction risk of the account based on the transaction status information.
[0006] According to an embodiment of the present disclosure, account transaction information is obtained and transmitted to a pre-trained risk assessment model, including: in response to receiving a transaction request initiated by a user, obtaining account transaction records within a specified time period; obtaining multiple groups of transaction information based on the account transaction records; and transmitting the multiple groups of transaction information to the pre-trained risk assessment model.
[0007] According to an embodiment of the present disclosure, a risk assessment model is used to extract target features from account transaction information, including: preprocessing multiple groups of transaction information respectively to obtain multiple groups of transaction vectors to be screened; and extracting target features from the multiple groups of transaction vectors to be screened based on transaction types.
[0008] According to an embodiment of the present disclosure, multiple groups of transaction information are preprocessed respectively to obtain multiple groups of transaction vectors to be screened, including: cleaning and filtering the acquired transaction information to remove abnormal values and missing values in the transaction information; based on the data type of the transaction information, selecting a corresponding encoding method to convert the transaction information format to obtain a feature code corresponding to each transaction information; and cross-combining multiple transaction information based on the correlation relationship between the transaction information to obtain a feature combination; converting the feature code and the feature combination into a transaction vector to obtain a transaction vector to be screened.
[0009] According to an embodiment of the present disclosure, target features are extracted from multiple groups of transaction vectors to be screened based on transaction types, including: performing the following operations on each group of transaction vectors to be screened: establishing a connection relationship between the transaction vectors; determining a local representative weight of the transaction vector based on the connection relationship between the transaction vectors; wherein the local representative weight is used to reflect the importance of the transaction vector in the transaction vector group; and determining a transaction vector whose local representative weight is higher than a preset threshold as a target feature.
[0010] According to an embodiment of the present disclosure, long short-term memory processing is performed on the target feature to obtain the transaction status information of the account, including: sorting multiple target features based on transaction time to obtain sequence data; dividing the sequence data into multiple time steps in chronological order; calculating the hidden transaction information in each time step in turn, and using the hidden information of the previous time step as the input of the next time step; and determining the hidden transaction information outputted in the last time step as the transaction status information.
[0011] According to an embodiment of the present disclosure, determining the transaction risk of an account based on transaction status information includes: performing a linear transformation on the transaction status information; performing an exponential operation on the result of the linear transformation based on an objective function to obtain a transaction probability distribution; and determining the transaction risk of the account based on the transaction probability distribution.
[0012] A second aspect of the present disclosure provides a transaction risk detection device, including: an acquisition module, used to acquire account transaction information and transmit the account transaction information to a pre-trained risk assessment model; an extraction module, used to extract target features from the account transaction information using the risk assessment model; a processing module, used to perform long-term and short-term memory processing on the target features to obtain transaction status information; wherein the transaction status information is used to represent the transaction characteristics of the account within a specified time period; and a determination module, which determines the transaction risk of the account based on the transaction status information.
[0013] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned transaction risk detection method.
[0014] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned transaction risk detection method.
[0015] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned transaction risk detection method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0017] Figure 1 A diagram schematically illustrates an application scenario of a transaction risk detection method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;
[0018] Figure 2 A flowchart of a transaction risk detection method according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 3 Schematically illustrates a flow chart of obtaining account transaction information and inputting the account transaction information into a pre-trained risk assessment model according to an embodiment of the present disclosure;
[0020] Figure 4 The structure diagram of the risk assessment model in the embodiment of the present disclosure is schematically shown;
[0021] Figure 5 A flowchart schematically illustrates a method of extracting target features from account transaction information using a risk assessment model according to an embodiment of the present disclosure;
[0022] Figure 6 A flowchart schematically shows how to pre-process multiple groups of transaction information to obtain multiple groups of feature vectors to be screened according to an embodiment of the present disclosure;
[0023] Figure 7 A flowchart schematically shows how to extract target features from multiple groups of feature vectors to be screened based on transaction types according to an embodiment of the present disclosure;
[0024] Figure 8 A flowchart schematically shows how to perform long short-term memory processing on target information to obtain hidden state information of an account according to an embodiment of the present disclosure;
[0025] Fig. 9 A flowchart of determining the transaction risk of an account based on hidden transaction information according to an embodiment of the present disclosure is schematically shown;
[0026] Fig.10 A schematic diagram of a structure of a transaction risk detection device according to an embodiment of the present disclosure is shown; and
[0027] Fig.11 A block diagram of an electronic device suitable for implementing a transaction risk detection method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0030] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0031] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0032] It should be noted that the transaction risk detection method and device provided by the present disclosure can be used in the field of financial technology, and can also be used in any field other than the financial field. The application field of the transaction risk detection method and device provided by the present disclosure is not limited.
[0033] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0034] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present invention provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0035] An embodiment of the present disclosure provides a transaction risk detection method, including: obtaining account transaction information and transmitting the account transaction information to a pre-trained risk assessment model; extracting target features from the account transaction information using the risk assessment model; performing long-term and short-term memory processing on the target features to obtain hidden state information; and determining the transaction risk of the account based on the hidden state information.
[0036] Figure 1 The application scenario diagram of the transaction risk detection method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0037] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a terminal device 101, a terminal device 102, a terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0038] The user can use the terminal device 101, the terminal device 102, and the terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, the terminal device 102, and the terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0039] Terminal device 101, terminal device 102, and terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0040] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0041] It should be noted that the transaction risk detection method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the transaction risk detection device provided in the embodiment of the present disclosure can generally be set in the server 105. The transaction risk detection method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, the terminal device 102, the terminal device 103 and / or the server 105. Accordingly, the transaction risk detection device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal device 101, the terminal device 102, the terminal device 103 and / or the server 105.
[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0043] The following will be based on Figure 1 The scene described by Figure 2~Figure 9 The transaction risk detection method of the disclosed embodiment is described in detail.
[0044] Figure 2 The flowchart of the transaction risk detection method according to the embodiment of the present disclosure is schematically shown.
[0045] like Figure 2As shown, the transaction risk detection of this embodiment includes operations S210 to S240.
[0046] In operation S210, account transaction information is obtained and input into a pre-trained risk assessment model.
[0047] In some embodiments, in response to a transaction request initiated by a user, historical transaction information of the user within a specified time period is obtained. The specified time period may include, for example, three days, one week, or one month. The historical transaction information may include, for example, transaction time, transaction amount, payee information, payee information, transaction method, transaction amount, etc.
[0048] In operation S220, target features are extracted from the account transaction information using a risk assessment model.
[0049] In some embodiments, the acquired account transaction information is passed into a risk assessment model, and the risk assessment model processes the account transaction information to obtain target features.
[0050] During the specific implementation process, the risk assessment model will perform cleaning, screening, and extraction operations on the received transaction information, convert the transaction information into feature vectors, and screen out target features with a high correlation with transaction risk detection from multiple transaction features based on the Layer-wise Relevance Propagation (LRP) algorithm.
[0051] In operation S230, long short-term memory processing is performed on the target feature to obtain transaction status information; wherein the transaction status information is used to represent the transaction characteristics of the account within a specified time period.
[0052] In some embodiments, the target features are processed in the long and short term to effectively capture the long-term dependencies in the account transaction data and obtain the correlation information between the user's transactions over a period of time.
[0053] In operation S240, a transaction risk of the account is determined based on the transaction status information.
[0054] In some embodiments, the hidden state information is further processed using a softmax function to obtain a detection result of the current transaction risk, wherein the transaction risk detection result may include, for example, a normal transaction, a suspicious transaction, and a high-risk transaction.
[0055] If the detection result is a normal transaction, the current transaction request is executed. If the detection result is a transaction that can be traded or a high-risk transaction, the current transaction request is interrupted and the corresponding operation is performed.
[0056] Figure 3A flowchart of obtaining account transaction information and inputting the account transaction information into a pre-trained risk assessment model according to an embodiment of the present disclosure is schematically shown.
[0057] like Figure 3 As shown, the embodiment of obtaining account transaction information and transmitting the account transaction information to pre-training includes operations S310 to S330.
[0058] In operation S310, in response to receiving a transaction request initiated by a user, an account transaction record within a specified time period is obtained.
[0059] In operation S320, multiple groups of transaction information are obtained based on the account transaction records.
[0060] In operation S330 , multiple sets of transaction information are transmitted to a pre-trained risk assessment model.
[0061] In some embodiments, after receiving a transaction request sent by a user, multiple transaction records T={x1, x2, ..., x n}, where n represents the customer's n account transaction records within a specified time period. Each account transaction record contains m account transaction information, where the account transaction information may include, for example, transaction time, transaction amount, payee information, payee information, transaction method, etc., that is, x i ={c i1 , c i2 , c i3 , …, c im}. Furthermore, the transaction information may also include cumulative information within a specified time period, such as the daily cumulative number of transactions, daily cumulative transaction amount, monthly cumulative number of transactions, monthly cumulative transaction amount, etc. After obtaining the transaction information, the transaction information is transmitted to the pre-trained risk assessment model, and the transaction information is processed using the risk assessment model to obtain the transaction risk detection result of the user.
[0062] Figure 4 The structure diagram of the risk assessment model in the embodiment of the present disclosure is schematically shown.
[0063] like Figure 4As shown in the figure, the risk assessment model includes an encoding layer, a vector layer, a long short-term memory layer, and a function layer. The encoding layer is used to encode the incoming transaction information and convert the transaction information into a transaction vector; the vector layer is used to filter the transaction vector to extract the target features; the long short-term memory (LSTM) layer is used to perform long short-term memory processing on the target features to obtain transaction status information; the function layer is used to determine the transaction risk of the account based on the transaction status information and output the transaction risk detection result. Figure 4 The transaction risk detection method provided in the embodiment of the present disclosure is further explained.
[0064] Figure 5 The flowchart of extracting target features from account transaction information using a risk assessment model according to an embodiment of the present disclosure is schematically shown.
[0065] like Figure 5 As shown, this embodiment uses a risk assessment model to extract target features from account transaction information, including operations S510 to S520.
[0066] In operation S510, multiple groups of transaction information are preprocessed respectively to obtain multiple groups of transaction vectors to be screened.
[0067] In some embodiments, multiple groups of transaction information are respectively transmitted to the encoding layer, and the encoding layer processes the transaction information. Specifically, the transaction information is filtered to ensure the validity of the transaction information. The filtered transaction information is encoded and converted into a transaction vector so that the model can better understand and process the input data. For example, the transaction time can be unified in the form of a timestamp, the payee information can be in the form of a bank's internal customer number, and the transaction method can be represented by a unified serial number.
[0068] In operation S520 , target features are extracted from the plurality of groups of transaction vectors to be screened based on the transaction types.
[0069] In some embodiments, target features with high correlation with risk detection are extracted from multiple groups of transaction vectors to be screened. Screening transaction vectors can, on the one hand, reduce the interference of irrelevant features on the risk assessment model, reduce the impact of data noise, and improve the accuracy and reliability of risk detection. On the other hand, screening transaction vectors can reduce the dimension of feature space, reduce the computational overhead and complexity of the model, and enhance the interpretability of the model. Among them, the target features extracted from different transaction types may be different.
[0070] Figure 6 The flowchart schematically shows a method of preprocessing multiple groups of transaction information respectively to obtain multiple groups of transaction vectors to be screened according to an embodiment of the present disclosure.
[0071] like Figure 6 As shown, this embodiment pre-processes multiple groups of transaction information respectively to obtain multiple groups of feature vectors to be screened, including operations S610 to S640.
[0072] In operation S610, the acquired transaction information is cleaned and filtered to remove abnormal values and missing values in the transaction information.
[0073] In some embodiments, the acquired transaction information is cleaned and filtered to remove irrelevant information and abnormal data to ensure the quality and accuracy of the transaction data.
[0074] In operation S620, based on the data type of the transaction information, a corresponding encoding method is selected to convert the transaction information format to obtain a feature code corresponding to each transaction information.
[0075] In some embodiments, for different types of transaction data, a suitable encoding method is selected for conversion. For example, for categorical data, one-hot encoding or label encoding can be used for conversion, and for numerical features, normalization or standardization can be performed.
[0076] In the specific implementation process, different types of transaction data correspond to different encoding methods. For example, the transaction time can be unified in the form of a timestamp, the payee information can be represented based on the bank's internal customer number, and the transaction method of the transaction can be represented based on a unified serial number (such as: the corresponding serial number for online payment is 1, and the corresponding serial number for offline remittance is 2).
[0077] In operation S630, a plurality of transaction information is cross-combined based on association relationships between the transaction information to obtain a feature combination.
[0078] In some embodiments, there may be certain correlations between different transaction information. Therefore, in addition to independently encoding each transaction information, transaction features with correlations may also be cross-combined to improve the expressiveness and prediction effect of the features.
[0079] In operation S640, the feature code and the feature combination are converted into a transaction vector to obtain a transaction vector to be screened.
[0080] In some embodiments, the encoded and combined transaction information is converted into a transaction vector to obtain a transaction vector to be screened, wherein each transaction record corresponds to a transaction vector group, and each transaction vector group includes multiple transaction vectors.
[0081] Figure 7 The flowchart of extracting target features from multiple groups of transaction vectors to be screened based on transaction types according to an embodiment of the present disclosure is schematically shown.
[0082] like Figure 7 As shown, this embodiment extracts target features from multiple groups of feature vectors to be screened based on transaction types, including operations S710 to S730. Operations S710 to S730 are performed on each group of transaction vectors to be screened.
[0083] In operation S710, a connection relationship between transaction vectors is established.
[0084] In operation S720, a local representative weight of the transaction vector is determined based on the connection relationship between the transaction vectors; wherein the local representative weight is used to reflect the importance of the transaction vector in the transaction vector group.
[0085] In operation S730 , a transaction vector having a local representative weight higher than a preset threshold is determined as a target feature.
[0086] In some embodiments, the transaction vector is transmitted to the vector layer, and the vector layer extracts target features from multiple groups of transaction vectors to be screened based on the LRP algorithm.
[0087] The following operations are performed for each transaction vector group to be screened: First, each transaction vector is regarded as a node, and a connection relationship is established between the nodes to construct a transaction network. The connection relationship can be determined based on the similarity or correlation between the transaction vectors. The local representative weight of the transaction vector is determined based on the connection relationship of each transaction vector, wherein the local representative weight refers to the importance of the node corresponding to the feature vector in the feature network, and the local representative weight can be calculated based on factors such as the degree of the node and the weight of the adjacent nodes. The target feature is screened from the multiple transaction vectors based on the local representative weight of the transaction vector.
[0088] Figure 8 The flowchart schematically shows a method of performing long-short term memory processing on target features to obtain transaction status information of an account according to an embodiment of the present disclosure.
[0089] like Figure 8 As shown, this embodiment performs long short-term memory processing on the target feature to obtain the transaction status information of the account, including operations S810 to S840.
[0090] In operation S810, a plurality of target features are sorted based on transaction time to obtain sequence data.
[0091] In operation S820, the sequence data is divided into a plurality of time steps in time order.
[0092] In operation S830, the hidden transaction information in each time step is calculated in sequence, and the hidden information of the previous time step is used as input of the next time step.
[0093] In operation S840, the hidden information output at the last time step is determined as hidden state information.
[0094] In some embodiments, the target feature is passed into the LSTM layer, and the LSTM layer processes the target feature to extract the hidden state information in the target feature. The LSTM layer includes multiple processing modules, each of which includes a forget gate, an input gate, and an output gate. Each processing module corresponds to a time step, and the target feature of the same time step is passed into the corresponding processing module. After being processed by the processing module, the hidden transaction information is obtained, and the hidden transaction information is passed into the next processing module, and the next processing module processes based on the hidden transaction information at the previous moment and the target feature of the time step.
[0095] In the specific implementation process, multiple target features are sorted based on transaction time to obtain sequence data, which are then divided according to time steps to obtain hidden information corresponding to the transaction information in each time step. The hidden information calculated for each time step is used as the input for the next time step, and finally the hidden information output at the last time step is determined as the hidden state information.
[0096] The forget gate is used to control which information in the hidden state of the previous time step needs to be forgotten.
[0097] By receiving the hidden state of the previous moment and the input information of the current time step, a value between 0 and 1 is output. The closer the value is to 0, the more information is forgotten. The role of the forget gate is to selectively retain or discard relevant historical transaction information based on the current input and past context.
[0098] The input gate is used to control which parts of the input information of the current time step will affect the current hidden information. It outputs a value between 0 and 1 by receiving the hidden state of the previous moment and the input information of the current time step, and multiplies the value by the input information of the current time step element-wise. The role of the input gate is to selectively update the information in the hidden state based on the current input and past context.
[0099] The output gate is used to control which information in the hidden state of the current time step needs to be output to the hidden state of the next moment and the final hidden state information. It outputs a value between 0 and 1 by receiving the hidden state of the previous moment and the input information of the current time step, and multiplies the value by the hidden state of the current time step at the element level. The function of the output gate is to selectively output the information in the hidden state based on the current input and past context.
[0100] The specific calculation formula of the LSTM layer is as follows:
[0101]
[0102]
[0103]
[0104]
[0105]
[0106]
[0107] Among them, f t represents the forget gate, i t represents the input gate, o t represents the output gate, and the input is the hidden state h of the previous time step t-1 and current information x t , represents the input gate state update mechanism, where W and b are related network parameters. Finally, the hidden state h at time node t is returned. t .
[0108] Will Input into the long short-term memory network (LSTM) in sequence to obtain the hidden state at each time point in sequence , the final obtained Hidden state information as the output of the LSTM layer.
[0109] Fig. 9 The flowchart of determining the transaction risk of an account based on transaction status information according to an embodiment of the present disclosure is schematically shown.
[0110] like Fig. 9 As shown, the method of determining the transaction risk of an account based on the transaction status information in this embodiment includes operations S910 to S930.
[0111] In operation S910, a linear transformation is performed on the transaction status information.
[0112] In operation S920, an exponential operation is performed on the result of the linear transformation based on the objective function to obtain a transaction probability distribution.
[0113] In operation S930, a transaction risk of the account is determined based on the transaction probability distribution.
[0114] In some embodiments, the hidden state information is transmitted to a function layer that determines the account transaction risk from the hidden state information based on a softmax function.
[0115] In the specific implementation process, the hidden state information is linearly transformed to map the hidden state information to a new vector space, the state hidden information is exponentially operated through the softmax function, and the exponential operation result is normalized to obtain the probability distribution of each element in the transaction state information in different transaction risk categories, and the current transaction risk of the account is determined based on the probability distribution of each element.
[0116] Among them, the specific calculation formula of the function layer is as follows:
[0117]
[0118] in and are all trainable parameters, and Y is the final predicted transaction risk result.
[0119] Further, in Figure 2 Based on the transaction risk detection method described above, the transaction risk detection method in this embodiment may further include operation S250. Operation S250 is performed after operations S210 to S240 are completed.
[0120] In operation S250 , corresponding measures are performed on the transaction request based on the transaction risk result.
[0121] In some embodiments, the transaction risk results may include, for example, normal transactions, suspicious transactions, and high-risk transactions.
[0122] If the transaction risk result is a normal transaction, the user's current transaction request is executed.
[0123] If the transaction risk result is a suspicious transaction, the transaction request will be rejected and the user account will be locked for a second time. The second time lock is a lock for a preset lock time. When the lock time ends, the user account will be automatically unlocked.
[0124] If the transaction risk result is a high-risk transaction, the transaction request will be rejected and the user account will be locked at level 1. The user needs to go to the counter to unlock the account offline for level 1 lock.
[0125] In operation S250 , corresponding measures are performed on the transaction request based on the transaction risk result.
[0126] In the embodiment of the present disclosure, a corresponding operation entry may be provided for the user to choose to agree or reject the automated decision result. That is, before the corresponding operation is performed on the user account based on the transaction risk result, the user's consent or rejection of the operation instruction input through the corresponding operation entry may be obtained. If the user agrees to perform the processing / decision, the corresponding operation is performed on the user account, that is, operation S250 is executed. If the user refuses to perform the processing / decision, the expert decision process is entered.
[0127] Based on the above transaction risk detection method, the present disclosure also provides a transaction risk detection device. Fig.10 The device is described in detail.
[0128] Fig.10 The structural block diagram of the transaction risk detection device according to an embodiment of the present disclosure is schematically shown.
[0129] like Fig.10 As shown, the transaction risk detection device 1000 of this embodiment includes an acquisition module 1010 , an extraction module 1020 , a processing module 1030 and a determination module 1040 .
[0130] The acquisition module 1010 is used to acquire account transaction information and input the account transaction information into the pre-trained risk assessment model. In one embodiment, the acquisition module 1010 can be used to perform the operation S210 described above, which will not be repeated here.
[0131] The extraction module 1020 is used to extract target features from the account transaction information using the risk assessment model. In one embodiment, the extraction module 1020 can be used to perform the operation S220 described above, which will not be described in detail here.
[0132] The processing module 1030 is used to perform long-term and short-term memory processing on the target feature to obtain transaction status information; wherein the transaction status information is used to represent the transaction characteristics of the account within a specified time period. In one embodiment, the processing module 1030 can be used to perform the operation S230 described above, which will not be repeated here.
[0133] The determination module 1040 is used to determine the transaction risk of the account based on the transaction status information. In one embodiment, the determination module 1040 can be used to perform the operation S240 described above, which will not be described in detail here.
[0134] According to an embodiment of the present disclosure, any multiple modules of the acquisition module 1010, the extraction module 1020, the processing module 1030 and the determination module 1040 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 1010, the extraction module 1020, the processing module 1030 and the determination module 1040 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 1010 , the extraction module 1020 , the processing module 1030 , and the determination module 1040 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0135] Fig.11 A block diagram of an electronic device suitable for implementing a transaction risk detection method according to an embodiment of the present disclosure is schematically shown.
[0136] like Fig.11 As shown, the electronic device 1100 according to an embodiment of the present disclosure includes a processor 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 to a random access memory (RAM) 1103. The processor 1101 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 1101 may also include an onboard memory for caching purposes. The processor 1101 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0137] In RAM 1103, various programs and data required for the operation of electronic device 1100 are stored. Processor 1101, ROM 1102 and RAM 1103 are connected to each other through bus 1104. Processor 1101 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1102 and / or RAM 1103. It should be noted that the program can also be stored in one or more memories other than ROM 1102 and RAM 1103. Processor 1101 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0138] According to an embodiment of the present disclosure, the electronic device 1100 may further include an input / output (I / O) interface 1105, which is also connected to the bus 1104. The electronic device 1100 may further include one or more of the following components connected to the I / O interface 1105: an input portion 1106 including a keyboard, a mouse, etc.; an output portion 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1108 including a hard disk, etc.; and a communication portion 1109 including a network interface card such as a LAN card, a modem, etc. The communication portion 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed, so that a computer program read therefrom is installed into the storage portion 1108 as needed.
[0139] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0140] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1102 and / or RAM 1103 described above and / or one or more memories other than ROM 1102 and RAM 1103.
[0141] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the transaction risk detection method provided by the embodiment of the present disclosure.
[0142] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1101. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0143] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1109, and / or installed from a removable medium 1111. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0144] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1109, and / or installed from the removable medium 1111. When the computer program is executed by the processor 1101, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0145] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0146] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0147] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0148] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A transaction risk detection method, It is characterized in that The method comprises: Acquiring account transaction information and inputting the account transaction information into a pre-trained risk assessment model; extracting target features from the account transaction information using the risk assessment model; Performing long-short term memory processing on the target feature to obtain transaction status information; wherein the transaction status information is used to represent the transaction characteristics of the account within a specified time period; A transaction risk of the account is determined based on the transaction status information.
2. The transaction risk detection method according to claim 1, It is characterized in that The obtaining of account transaction information and inputting the account transaction information into a pre-trained risk assessment model includes: In response to receiving a transaction request initiated by a user, obtaining account transaction records within a specified time period; Acquire multiple groups of transaction information based on the account transaction records respectively; The multiple sets of transaction information are transmitted to a pre-trained risk assessment model.
3. The transaction risk detection method according to claim 1 or 2, It is characterized in that The extracting target features from the account transaction information using the risk assessment model includes: Preprocessing the multiple groups of transaction information respectively to obtain multiple groups of transaction vectors to be screened; Target features are extracted from multiple groups of transaction vectors to be screened based on transaction types.
4. The transaction risk detection method according to claim 3, It is characterized in that The preprocessing of the plurality of groups of transaction information respectively to obtain a plurality of groups of transaction vectors to be screened includes: Clean and filter the acquired transaction information to remove abnormal values and missing values in the transaction information; Based on the data type of the transaction information, a corresponding encoding method is selected to convert the transaction information into a form, and a feature code corresponding to each transaction information is obtained; and Based on the correlation between the transaction information, multiple transaction information are cross-combined to obtain a feature combination; The feature code and the feature combination are converted into a transaction vector to obtain a transaction vector to be screened.
5. The transaction risk detection method according to claim 3, It is characterized in that The step of extracting target features from multiple groups of transaction vectors to be screened based on transaction types includes: For each set of transaction vectors to be screened, perform the following operations: Establishing connection relationships between transaction vectors; Determine the local representative weight of the transaction vector based on the connection relationship between the transaction vectors; wherein the local representative weight is used to reflect the importance of the transaction vector in the transaction vector group; The transaction vectors whose local representative weights are higher than a preset threshold are determined as target features.
6. The transaction risk detection method according to claim 1, It is characterized in that The performing long-short term memory processing on the target feature to obtain the transaction status information of the account includes: Sort multiple target features based on transaction time to obtain sequence data; Dividing the sequence data into a plurality of time steps in chronological order; Calculate the hidden transaction information in each time step in turn, and use the hidden information of the previous time step as the input of the next time step; The hidden transaction information outputted in the last time step is determined as the transaction status information.
7. The transaction risk detection method according to claim 1, It is characterized in that The determining the transaction risk of the account based on the transaction status information includes: Performing a linear transformation on the transaction status information; Based on the objective function, the result of the linear transformation is exponentially operated to obtain the transaction probability distribution; A transaction risk of the account is determined based on the transaction probability distribution.
8. A transaction risk detection device, It is characterized in that The device comprises: An acquisition module, used to acquire account transaction information and input the account transaction information into a pre-trained risk assessment model; An extraction module, used to extract target features from the account transaction information using the risk assessment model; a processing module, configured to perform long-short term memory processing on the target feature to obtain transaction status information; wherein the transaction status information is used to represent the transaction characteristics of the account within a specified time period; and A determination module is used to determine the transaction risk of the account based on the transaction status information.
9. An electronic device, include: one or more processors; a storage device for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program / instructions stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
