Transaction risk determination method and device and server

By using multi-channel data collection in financial transactions and combining the joint use of front-end and target risk detection models, the efficiency and accuracy problems of transaction risk detection in existing technologies are solved, and efficient and accurate risk identification and data security are achieved. Protect.

CN118644341APending Publication Date: 2024-09-13INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410678531.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing technology is difficult to detect financial transaction risks efficiently and accurately, resulting in threats to the security of user transaction data and the problem of repeated feature data processing.

Method used

By receiving target transaction data processing requests, we collect related data from multiple channels, and use the preset pre-risk detection model to conduct preliminary risk detection. If there are potential risks, use the target risk detection model to conduct refined detection and avoid repeated feature data processing. .

Benefits of technology

It achieves efficient and accurate transaction risk detection, protects the security of user transaction data, improves data processing efficiency, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644341A
    Figure CN118644341A
Patent Text Reader

Abstract

The invention provides a transaction risk determination method and apparatus, and a server, and can be used in the technical field of artificial intelligence. Based on the method, a pre-risk detection model with relatively good generalization and a refined target risk detection model for a target risk scene can be obtained through training according to a preset protocol rule. In specific implementation, the method comprises the following steps: firstly, carrying out generalization pre-risk detection by utilizing a pre-risk detection model to determine whether a potential transaction risk exists or not; meanwhile, first feature data which is relatively comprehensive and has relatively good applicability and is obtained after primary feature processing of the model is obtained; and under the condition that the existence of the potential transaction risk is determined, performing refined and targeted target risk detection for a target risk scene by processing the pre-risk detection result and the first feature data by using a target risk detection model. Therefore, related transaction risk detection can be efficiently and accurately realized, and detection errors are effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification belongs to the field of artificial intelligence technology, and in particular to a method, device and server for determining transaction risks. Background Art

[0002] In financial transaction scenarios, due to the differences in transaction businesses, there are often various transaction risks that threaten the security of users' transaction data. However, based on existing methods, it is often impossible to achieve relevant transaction risk detection efficiently and accurately.

[0003] To address the above problems, no effective solution has been proposed yet. Summary of the invention

[0004] This specification provides a method, device and server for determining transaction risks, which can realize relevant transaction risk detection more efficiently and accurately, and effectively protect the transaction data security of users; at the same time, it can also avoid repeated feature data processing and improve the overall data processing efficiency.

[0005] This specification provides a method for determining transaction risk, which is applied to a server and includes:

[0006] Receive a target transaction data processing request initiated by a target user;

[0007] According to the target transaction data processing request, relevant target-related data is collected through multiple channels;

[0008] Processing the target-related data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate a corresponding pre-risk detection result according to the first feature data;

[0009] According to the pre-risk detection result, when it is determined that there is a potential transaction risk, the pre-risk detection result and the first feature data are processed using a target risk detection model to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario;

[0010] According to the target risk detection result, when it is determined that there is no target transaction risk based on the target risk scenario, corresponding target transaction data processing is performed according to the target transaction data processing request.

[0011] In one embodiment, the target transaction data processing request carries at least a user identifier of a target user and a terminal identifier of a target user terminal used by the target user;

[0012] Accordingly, relevant target-related data is collected through multiple channels, including:

[0013] According to the user identifier of the target user, query the user database to obtain multiple user indication information indicating the target user;

[0014] According to multiple user indication information of the target user, multiple dynamic behavior data and multiple static attribute data associated with the target user are collected through multiple channels;

[0015] According to the terminal identification of the target user terminal, a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user terminal are acquired through multiple channels;

[0016] The target associated data is obtained by combining a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user, and a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user terminal.

[0017] In one embodiment, after collecting relevant target-related data from multiple channels according to the target transaction data processing request, the method further includes:

[0018] According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user for feature cross processing to obtain first-category feature cross data;

[0019] According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross processing to obtain second-category feature cross data;

[0020] According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user and multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross processing to obtain third type of feature cross data;

[0021] The target associated data is updated according to the first type of feature intersection data, the second type of feature intersection data, and the third type of feature intersection data.

[0022] In one embodiment, the preset pre-risk detection model at least includes a model input layer, a primary feature processing layer, a classification layer, and a model output layer connected in sequence; wherein the primary feature processing layer is provided with a feature data interface, and the feature data interface is connected to the model output layer;

[0023] Accordingly, the target association data is processed using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data, including:

[0024] The target associated data is preprocessed using the model input layer to obtain the corresponding target intermediate data; and the target intermediate data is sent to the primary feature processing layer;

[0025] Performing primary feature processing on the target intermediate data using the primary feature processing layer to obtain corresponding first feature data; sending the first feature data to the classification layer, and sending the first feature data to the model output layer through the feature data interface;

[0026] Using the classification layer to process the first feature data, a corresponding potential risk prediction value is calculated; and the potential risk prediction value is sent to the model output layer;

[0027] The model output layer is used to generate corresponding pre-risk detection results according to the potential risk prediction value; and the pre-risk detection results and the first feature data are output.

[0028] In one embodiment, after processing the target association data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and the first feature data, the method further includes:

[0029] Based on the pre-risk detection results, when it is determined that there is no potential transaction risk, the corresponding target transaction data processing is performed according to the target transaction data processing request.

[0030] In one embodiment, the target risk scenario includes multiple target risk scenarios; correspondingly, the target risk detection model includes multiple target risk detection models; wherein one target risk detection model corresponds to one target risk scenario.

[0031] In one embodiment, the target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result, including:

[0032] Using multiple target risk detection models to process the pre-risk detection result and the first feature data respectively to obtain corresponding multiple risk detection results;

[0033] Based on multiple risk detection results, risk detection results that meet preset conditions are screened out to generate corresponding target risk detection results.

[0034] In one embodiment, after the target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result, the method further includes:

[0035] According to the target risk detection results, if it is determined that there is a target transaction risk based on the target risk scenario, suspend the target transaction data processing request and generate a corresponding target risk prompt;

[0036] Deliver targeted risk warnings to target users.

[0037] In one embodiment, the method further comprises:

[0038] Initiate a joint training request for a preset pre-risk detection model to the first partner server;

[0039] When it is determined that the first partner server responds, encrypt the held first sample data according to a preset protocol rule to obtain ciphertext data of the corresponding first sample data;

[0040] Using the ciphertext data of the first sample data to train an initial pre-risk detection model to obtain a first intermediate pre-risk detection model;

[0041] The first intermediate pre-risk detection model is sent to the first partner server through a preset secure data channel; wherein the first partner server encrypts the second sample data held by it according to the preset protocol rules to obtain the corresponding ciphertext data of the second sample data; and the ciphertext data of the second sample data is used to train the first intermediate pre-risk detection model to obtain the second intermediate pre-risk detection model;

[0042] Receiving a second intermediate front-end risk detection model through a preset secure data channel;

[0043] Check whether the second intermediate front-end risk detection model meets the preset requirements;

[0044] When it is determined that the second intermediate pre-risk detection model meets the preset requirements, the second intermediate pre-risk detection model is determined as the preset pre-risk detection model.

[0045] In one embodiment, after detecting whether the second intermediate pre-risk detection model meets the preset requirements, the method further includes:

[0046] In the case where it is determined that the second intermediate pre-risk detection model does not meet the preset requirements, initiating a joint training request for the preset pre-risk detection model to the second partner server;

[0047] When it is determined that the second partner server responds, the second intermediate pre-risk detection model is sent to the second partner server through a preset secure data channel; wherein the second partner server encrypts the third sample data held according to the preset protocol rules to obtain the corresponding ciphertext data of the third sample data; and uses the ciphertext data of the third sample data to train the second intermediate pre-risk detection model to obtain the third intermediate pre-risk detection model;

[0048] The third intermediate front-end risk detection model is received through a preset secure data channel.

[0049] In one embodiment, the method further comprises:

[0050] Construct an initial target risk detection model for target risk scenarios;

[0051] Filtering data associated with a target risk scenario from the held first sample data as target sample data;

[0052] The preset pre-risk detection model is used to process the target sample data to obtain the corresponding sample risk detection results and sample feature data;

[0053] Combine the sample risk detection results and sample feature data to obtain target training data;

[0054] The target training data is used to train the initial target risk detection model to obtain the corresponding target risk detection model.

[0055] This specification also provides a transaction risk determination device, which is applied to a server and includes:

[0056] A receiving module, used for receiving a target transaction data processing request initiated by a target user;

[0057] The collection module is used to collect relevant target-related data through multiple channels according to the target transaction data processing request;

[0058] A pre-risk detection module, used to process the target-related data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate a corresponding pre-risk detection result according to the first feature data;

[0059] A target risk detection module is used to process the pre-risk detection result and the first feature data using a target risk detection model according to the pre-risk detection result, when it is determined that there is a potential transaction risk, to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario;

[0060] The processing module is used to perform corresponding target transaction data processing according to the target transaction data processing request based on the target risk detection result and when it is determined that there is no target transaction risk based on the target risk scenario.

[0061] The present specification also provides a server, comprising a processor and a memory for storing processor executable instructions, wherein the processor implements the relevant steps of the method for determining transaction risk when executing the instructions.

[0062] The present specification also provides a computer-readable storage medium having computer instructions stored thereon, and when the instructions are executed by a processor, the relevant steps of the method for determining transaction risk are implemented.

[0063] The present specification also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the relevant steps of the method for determining transaction risk are implemented.

[0064] Based on the transaction risk determination method, device and server, device and server provided in this specification, before specific implementation, it is possible to first cooperate with the partner server to conduct joint training according to the preset protocol rules to obtain a preset pre-risk detection model with good generalization and the ability to extract relatively comprehensive initial feature data that can cover multiple different risk scenarios; then use the preset pre-risk detection model to train a target risk detection model with strong pertinence and refinement for specific target risk scenarios. In specific implementation, after receiving the target transaction data processing request, relevant relatively comprehensive target association data can be collected from multiple channels; then use the preset pre-risk detection model to perform relatively generalized pre-risk detection that can cover multiple different risk scenarios by processing the target association data to determine whether there is a potential transaction risk; at the same time, obtain the first feature data that is relatively comprehensive and has good applicability after the primary feature processing of the model; when it is determined that there is a potential transaction risk, use the target risk detection model to process the pre-risk detection results and the first feature data to perform refined and targeted target risk detection for the target risk scenario; when it is determined that there is no target transaction risk, the corresponding target transaction data processing is performed. This enables more efficient and accurate detection of relevant transaction risks, reduces detection errors, and effectively protects the security of users' transaction data; at the same time, it can also avoid repeated feature data processing, improve overall data processing efficiency, and reduce overall data processing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. The drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0066] Figure 1It is a flowchart of a method for determining transaction risk provided by an embodiment of this specification;

[0067] Figure 2 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example;

[0068] Figure 3 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example;

[0069] Figure 4 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example;

[0070] Figure 5 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example;

[0071] Figure 6 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example;

[0072] Figure 7 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example;

[0073] Figure 8 It is a schematic diagram of the structure of a server provided by an embodiment of this specification;

[0074] Fig. 9 It is a schematic diagram of the structure of a device for determining transaction risk provided by an embodiment of this specification;

[0075] Fig.10 It is a schematic diagram of an embodiment of a method for determining transaction risk provided by an embodiment of this specification, in a scenario example. DETAILED DESCRIPTION

[0076] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0077] It should be noted that the user-related information and data involved in the embodiments of this specification are all information and data authorized by the user or fully authorized by relevant 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 or relevant parties to choose to authorize or refuse.

[0078] It should also be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0079] See also Figure 1 As shown, the embodiment of this specification provides a method for determining transaction risk, wherein the method is specifically applied to the server side. When implemented specifically, the method may include the following contents:

[0080] S101: receiving a target transaction data processing request initiated by a target user;

[0081] S102: According to the target transaction data processing request, relevant target association data is collected through multiple channels;

[0082] S103: Processing the target-related data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate a corresponding pre-risk detection result according to the first feature data;

[0083] S104: Based on the pre-risk detection result, when it is determined that there is a potential transaction risk, the pre-risk detection result and the first feature data are processed using a target risk detection model to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario;

[0084] S105: According to the target risk detection result, when it is determined that there is no target transaction risk based on the target risk scenario, corresponding target transaction data processing is performed according to the target transaction data processing request.

[0085] Among them, the above-mentioned preset pre-risk detection model does not correspond to a specific risk scenario. It can be specifically understood as a neural network model that is pre-trained using a large amount of sample data based on different risk scenarios and can cover a variety of transaction risks based on different risk scenarios in a relatively comprehensive manner.

[0086] The above-mentioned risk scenarios may specifically include at least one of the following: cross-regional business risk scenarios, financial management risk scenarios, membership risk scenarios, shopping risk scenarios, etc.

[0087] It should be noted that in different risk scenarios, there are often differences in risk behaviors and transaction risks, which leads to large differences in the extracted and used feature data, the way the feature data is used, or the processing logic of the model when conducting refined identification of transaction risks based on different risk scenarios.

[0088] The above potential transaction risks can be specifically understood as the possibility of transaction risks occurring. For example, when the potential transaction risk is large, it can be considered that the possibility of transaction risks occurring is relatively high and needs to be paid attention to; and further refined transaction risk identification is required to determine whether the transaction risk actually exists. On the contrary, when the potential transaction risk is small, it can be considered that the possibility of transaction risks occurring is relatively low and can be ignored, and no further refined identification is required.

[0089] Specifically, on the one hand, the above-mentioned preset pre-risk detection model has good generalization. First, it will perform relatively generalized and comprehensive primary feature processing on the input data to extract relatively comprehensive and rich primary feature data (which can be recorded as the first feature data) that will be used in the refined identification of transaction risks under different risk scenarios; then, the preset pre-risk detection model can use the above feature data to predict the possibility of transaction risks, determine the corresponding potential transaction risks, and obtain and output the corresponding pre-risk detection results. In this way, the preset pre-risk detection model can be used to accurately identify and discover potential transaction risks based on different risk scenarios to avoid omissions or errors.

[0090] On the other hand, the above-mentioned preset pre-risk detection model can also output the first feature data extracted by the primary feature processing at the same time as the pre-risk detection result through the corresponding model structure. In this way, when other models for specific risk scenarios are used for refined identification later, it is not necessary to repeat the above-mentioned primary feature processing, but directly use the first feature data for refined transaction risk identification under the corresponding risk scenario, thereby simplifying the data processing process, improving data processing efficiency, and reducing the overall data processing cost.

[0091] Specifically, the above-mentioned preset pre-risk detection model can be a big data model obtained by jointly training with partners based on preset protocol rules using a large amount of sample data based on different risk scenarios held by each party.

[0092] The above-mentioned target risk detection model corresponds to the target risk scenario, and can be specifically understood as a neural network model that is pre-trained using sample data based on the target risk scenario and is capable of performing refined detection and identification of transaction risks under the target risk scenario.

[0093] Specifically, the above-mentioned target risk scenario may include multiple different risk scenarios; accordingly, the above-mentioned target risk detection model may include multiple target risk detection models corresponding to the multiple different risk scenarios respectively.

[0094] Specifically, the target risk detection model may be a model trained using a pre-trained preset pre-risk detection model.

[0095] Correspondingly, the above-mentioned target risk detection model can directly receive and obtain the first feature data provided by the preset front risk detection model, and filter out the feature data that is compatible with the target risk scenario from the first feature data, without repeating the primary feature processing; then based on the filtered feature data, further advanced feature processing is performed to obtain the required advanced feature data; and based on the above-mentioned advanced feature data, refined detection and identification of transaction risks based on the target risk scenario is performed to ultimately determine whether there is a transaction risk based on the target risk scenario.

[0096] Based on the above embodiments, firstly, through multi-channel collection, more comprehensive and rich target-related data can be obtained; then, by using a preset pre-risk detection model with good generalization to process the target-related data, while accurately judging whether there is a potential transaction risk and outputting the corresponding pre-risk detection result, the first feature data extracted by the primary feature processing can also be output; then, when it is determined that there is a potential transaction risk, the pre-risk detection result and the first feature data are processed by using a target risk detection model with strong pertinence, so as to perform refined detection and identification of transaction risks based on target risk scenarios, without the need to repeat the primary feature processing, thereby enabling more efficient and accurate detection of relevant transaction risks.

[0097] In some embodiments, after receiving a target transaction data processing request, the target transaction data processing indicated by the target transaction data processing request can be determined through data analysis; then, by querying a transaction data processing template, it is detected whether the target transaction data processing involves key transaction data such as funds; when it is determined that the above-mentioned key transaction data is involved, the transaction risk determination method provided in this specification is triggered to execute.

[0098] In some embodiments, the transaction risk determination method can be applied to a server. The server can be connected to a user terminal via a wired or wireless method to perform specific data interaction.

[0099] The server may specifically include a background server applied to a transaction service platform and capable of realizing functions such as data transmission and data processing. Specifically, the server may be, for example, an electronic device having data calculation, storage and network interaction functions. Alternatively, the server may also be a software program running in the electronic device to provide support for data processing, storage and network interaction. In this embodiment, the number of the servers is not specifically limited. The server may specifically be one server, or several servers, or a server cluster formed by several servers.

[0100] The user terminal may specifically include a front end applied to the user side and capable of realizing functions such as data collection and data transmission. Specifically, the user terminal may be, for example, an electronic device such as a desktop computer, a tablet computer, a laptop computer, a smart phone, etc. Alternatively, the user terminal may also be a software application that can run in the above electronic devices.

[0101] In specific implementation, when a user wants to request the transaction service platform to perform a specific transaction data processing (for example, account transfer processing), the user terminal held by the user can initiate a target transaction data processing request to the server.

[0102] After receiving the target transaction data processing request, the server can trigger the transaction risk determination method provided in this specification, and perform specific transaction risk detection by combining the preset pre-risk detection model and the target risk detection model; only when it is determined that there is no relevant transaction risk, will it respond to the target transaction data processing request and perform corresponding target transaction data processing, thereby better protecting the user's transaction data security and reducing the risks on the user side.

[0103] In some embodiments, the target transaction data processing request carries at least a user identifier of the target user (eg, user number, etc.) and a terminal identifier of the target user terminal used by the target user (eg, MAC address, etc.). Figure 2 As shown above

[0104] S1: querying a user database according to a user identifier of a target user, and obtaining a plurality of user indication information indicating the target user;

[0105] S2: According to multiple user indication information of the target user, multiple dynamic behavior data and multiple static attribute data associated with the target user are collected through multiple channels;

[0106] S3: According to the terminal identifier of the target user terminal, a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user terminal are collected through multiple channels;

[0107] S4: Combining a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user, and a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user terminal, to obtain the target associated data.

[0108] Based on the above embodiments, more comprehensive and rich target association data can be obtained through multi-channel collection.

[0109] In a specific implementation, the user identifier of the target user may be the account name (or account number, etc.) of the primary account registered and used by the target user on the transaction service platform.

[0110] Correspondingly, the above-mentioned multiple user indication information indicating the target user may specifically include one or more of the following: the account name of the secondary account registered and used by the target user on the transaction service platform, the account name of the associated account of the target user bound to the main account or secondary account on the transaction service platform (including personal account, corporate account, etc.), and the account name of the target user's main account on the partner platform, the account name of the secondary account, the account name of the associated account, etc.

[0111] Of course, it should be noted that the user indication information listed above is at least one schematic description. In specific implementation, according to the specific transaction business scenario, the user indication information may also include other user indication information related to the target user determined based on documents disclosed by a third-party data source (for example, a list of dishonest persons, judgments, etc.).

[0112] The dynamic behavior data associated with the target user may specifically include the target user's transfer records, collection records, business processing records, account login records of the transaction service platform, etc. within a specified time period (for example, the last month).

[0113] The static attribute data associated with the target user may specifically include the target user's occupation, education background, work location, residence, job level, etc.

[0114] During specific implementation, the server can query the historical records within the transaction service platform through internal information channels according to the target user's account indication information, and obtain dynamic data and behavioral data of the target user based on the transaction service platform; at the same time, through external information channels, according to the target user's account indication information, query and obtain the target user's dynamic data and behavioral data based on the partner platform.

[0115] The terminal identification of the target user terminal may be specifically understood as indication information corresponding one-to-one to the target user terminal, for example, the MAC address of the target user terminal, the terminal number of the target user terminal, and the like.

[0116] The above-mentioned dynamic behavior data associated with the target user terminal includes the target user terminal's access records to the transaction service platform within a specified time period, the target user terminal's access records to the partner platform, the target user terminal's restart records, the target user terminal's local login account change records, the target user terminal's GPS positioning records, etc.

[0117] The static attribute data associated with the target user terminal includes the version number of the client of the transaction service platform installed on the target user terminal, the device information of the target user terminal, the network information of the network to which the target user terminal is connected, and the like.

[0118] In specific implementation, the server can actively collect data through the collection program built into the target user terminal, perform data parsing and analysis on historical access records initiated by the target user terminal, and obtain multiple channels such as the configuration parameters about the target user terminal actively input and provided by the target user according to prompt information, to obtain multiple dynamic behavior data and multiple static attribute data associated with the target user terminal.

[0119] In some embodiments, see Figure 3 As shown, after collecting relevant target-related data through multiple channels according to the target transaction data processing request, the method may further include the following contents when implemented:

[0120] S1: According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user for feature cross processing to obtain first-category feature cross data;

[0121] S2: According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross processing to obtain second type of feature cross data;

[0122] S3: According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user and multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross processing to obtain third type of feature cross data;

[0123] S4: Update the target association data according to the first type of feature intersection data, the second type of feature intersection data, and the third type of feature intersection data.

[0124] Based on the above embodiment, according to the preset processing rules, by utilizing multiple dynamic behavior data and multiple static attribute data associated with the target user, as well as multiple dynamic behavior data and multiple static attribute data associated with the target user terminal, corresponding feature cross-processing can be performed, and hidden information hidden in the complex interaction relationship between different data can be further mined as feature cross-data; and then the above feature cross-data can be used to supplement and update the target-related data, so that the obtained target-related data can be relatively richer and more comprehensive, and have a higher reference value.

[0125] In specific implementation, according to preset processing rules, corresponding multiple data are screened out from multiple dynamic behavior data and multiple static attribute data associated with the target user, multiple dynamic behavior data and multiple static attribute data associated with the target user terminal, or multiple dynamic behavior data and multiple static attribute data associated with the target user, multiple dynamic behavior data and multiple static attribute data associated with the target user terminal, and corresponding feature cross-processing is performed through methods such as data statistics and data mining to obtain first-category feature cross-data, second-category feature cross-data, or third-category feature cross-data that meet the requirements.

[0126] Specifically, for example, multiple data can be screened out from multiple dynamic behavior data and multiple static attribute data associated with the target user, and multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for data statistics, to obtain the total frequency of the target user using the target user terminal to log in to the transaction service platform in a specified time period, as well as the frequency of using the main account to log in to the transaction service platform, the frequency of using the sub-account to log in to the transaction service platform, etc.

[0127] In specific implementation, after the server obtains the target associated data, the method may also include: first filtering and deleting data with obvious errors in the target associated data; then converting the target associated data into a unified field format; and using a smoothing function to smooth the target associated data based on the unified field format; and then using a default value (for example, 0) to fill in missing or incomplete data to obtain target associated data that meets the requirements.

[0128] In some embodiments, see Figure 4 As shown, the above-mentioned preset pre-risk detection model may at least include a model input layer, a primary feature processing layer, a classification layer, a model output layer and other structures connected in sequence; wherein the primary feature processing layer is provided with a feature data interface, which is connected to the model output layer.

[0129] Accordingly, see Figure 5As shown, based on the above-preset pre-risk detection model, the above-preset pre-risk detection model is used to process the target association data to obtain the corresponding pre-risk detection result and the first feature data. When specifically implemented, it may include the following contents:

[0130] S1: Use the model input layer to preprocess the target associated data to obtain the corresponding target intermediate data; and send the target intermediate data to the primary feature processing layer;

[0131] S2: Performing primary feature processing on the target intermediate data using the primary feature processing layer to obtain corresponding first feature data; and sending the first feature data to the classification layer, and sending the first feature data to the model output layer through the feature data interface;

[0132] S3: Utilizing the classification layer to process the first feature data, calculate a corresponding potential risk prediction value; and send the potential risk prediction value to the model output layer;

[0133] S4: Generate a corresponding pre-risk detection result according to the potential risk prediction value using the model output layer; and output the pre-risk detection result and the first feature data.

[0134] The above preprocessing may specifically include encoding processing, vector conversion, etc.

[0135] Based on the above embodiment, the preset pre-risk detection model can be used to process the target association data to perform generalized detection and identification of potential transaction risks, accurately determine the corresponding pre-risk detection results, and simultaneously output the corresponding first feature data.

[0136] In some embodiments, after the target association data is processed using a preset pre-risk detection model to obtain the corresponding pre-risk detection result and the first feature data, the method may further include the following when implemented:

[0137] According to the pre-risk detection results, when it is determined that there is no potential transaction risk, the corresponding target transaction data processing can be performed according to the target transaction data processing request.

[0138] In specific implementation, it is possible to detect whether the potential risk prediction value is greater than or equal to the preset potential risk threshold value based on the pre-risk detection result. When it is determined that it is greater than or equal to the preset potential risk threshold value, it can be judged that there is a potential transaction risk, which will trigger the use of the target risk detection model for the target risk scenario for further refined detection and identification. The above-mentioned preset potential risk threshold value can be obtained in advance based on the statistics of simulation test records.

[0139] On the contrary, when it is determined that the potential risk is less than the preset threshold, it can be judged that there is no potential transaction risk, and thus there is no need to waste processing resources and processing time to call the target risk detection model for further refined detection and identification. Instead, the target transaction data processing request can be directly responded to normally to perform corresponding target transaction data processing.

[0140] Based on the above embodiments, different situations can be distinguished according to the pre-risk detection results to perform corresponding data processing, thereby further improving the overall data processing efficiency and reducing the overall data processing cost.

[0141] In some embodiments, the target risk detection model may include at least a model input layer, a first classification layer, an advanced feature processing layer, a second classification layer, a model output, and other structures connected in sequence;

[0142] Correspondingly, based on the above target risk detection model, the above target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result. When specifically implemented, it may include the following contents:

[0143] S1: Using the model input layer to process the pre-risk detection result and the first feature data, to obtain the pre-risk detection result and the first feature data that meet the processing requirements of the target risk detection model;

[0144] S2: Process the first feature data using the first classification layer to screen out feature data closely related to the target risk scenario as target feature data; and combine the target feature data with the pre-risk detection result to obtain a corresponding target feature data combination;

[0145] S3: Performing high-level feature processing on the target feature data combination using the high-level feature processing layer to obtain corresponding second feature data; and sending the second feature data to the second classification layer;

[0146] S4: Calculate a risk prediction value of the transaction risk under the target risk scenario by processing the second feature data using the second classification layer;

[0147] S5: Use the model output layer to generate and output corresponding risk detection results based on the above risk prediction values.

[0148] In some embodiments, the above-mentioned target risk scenario may specifically include multiple target risk scenarios; accordingly, the target risk detection model includes multiple target risk detection models; wherein one target risk detection model corresponds to one target risk scenario.

[0149] Based on the above embodiments, multiple target risk detection models can be used to accurately implement refined detection and identification of transaction risks for multiple different target risk scenarios.

[0150] In some embodiments, the above-mentioned use of the target risk detection model to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result may include the following contents during specific implementation:

[0151] S1: using multiple target risk detection models to process the pre-risk detection results and the first feature data respectively to obtain corresponding multiple risk detection results;

[0152] S2: Based on the multiple risk detection results, filter out the risk detection results that meet the preset conditions to generate corresponding target risk detection results.

[0153] In a specific implementation, it can be detected based on multiple risk detection results whether there is at least one risk detection result whose risk prediction value is greater than or equal to a corresponding preset risk prediction threshold.

[0154] When it is determined that a plurality of risk prediction values ​​based on a plurality of risk detection results are all less than corresponding preset risk prediction thresholds, a target risk detection result regarding no transaction risk may be generated.

[0155] When it is determined that at least one of the multiple risk prediction values ​​based on multiple risk detection results is greater than or equal to a preset risk prediction threshold, the target risk scenario corresponding to the risk prediction value can be determined; and a target risk detection result regarding the transaction risk based on the target risk scenario is generated.

[0156] It is also possible to determine a risk threshold with the largest value from multiple risk prediction values ​​based on multiple risk detection results, and determine a target risk scenario corresponding to the risk prediction value; and generate a target risk detection result regarding the transaction risk based on the target risk scenario.

[0157] Based on the above embodiments, the target risk detection model can be efficiently utilized to perform refined detection and identification by processing the pre-risk detection result and the first feature data, so as to obtain a target risk detection result with higher accuracy and smaller error.

[0158] In some embodiments, during specific implementation, one or more matching target risk detection models can be determined from multiple target risk detection models based on the target transaction data processing indicated by the target transaction data processing request; and then the above-mentioned matching target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result.

[0159] In some embodiments, after the target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result, the method may further include the following when it is specifically implemented:

[0160] S1: According to the target risk detection result, if it is determined that there is a target transaction risk based on the target risk scenario, a suspension operation on the target transaction data processing request is performed, and a corresponding target risk prompt is generated;

[0161] S2: Deliver targeted risk warnings to target users.

[0162] Based on the above embodiment, when it is determined that there is a target transaction risk based on a target risk scenario, the relevant transaction data processing can be suspended in time and the target user can be prompted to effectively protect the transaction data security of the target user.

[0163] In some embodiments, when the target transaction risk based on the target risk scenario is determined according to the target risk detection result, the method may further include: querying a preset processing strategy set to determine a preset processing strategy that matches the target risk scenario as the target processing strategy; and performing corresponding target risk processing according to the target processing strategy. In this way, different target risk scenarios can be distinguished, and differentiated and targeted risk processing can be performed.

[0164] The preset processing strategy set includes multiple preset processing strategies, and each preset processing strategy corresponds to a target risk scenario. Before specific implementation, a large number of historical risk processing records corresponding to different target risk scenarios can be collected; then the historical risk processing records are clustered based on the risk scenarios to obtain risk processing rule groups for multiple different target risk scenarios; multiple risk processing rule groups are adjusted and configured in combination with expert experience to construct multiple preset processing strategies corresponding to multiple different target risk scenarios.

[0165] In some embodiments, see Figure 6 As shown, when the method is implemented specifically, it may also include the following contents:

[0166] S1: Initiate a joint training request for a preset pre-risk detection model to the first partner server;

[0167] S2: When it is determined that the first partner server responds, encrypt the first sample data held according to a preset protocol rule to obtain ciphertext data of the corresponding first sample data;

[0168] S3: Using the ciphertext data of the first sample data to train an initial pre-risk detection model to obtain a first intermediate pre-risk detection model;

[0169] S4: sending the first intermediate pre-risk detection model to the first partner server through a preset secure data channel; wherein the first partner server encrypts the second sample data held according to a preset protocol rule to obtain the corresponding ciphertext data of the second sample data; and uses the ciphertext data of the second sample data to train the first intermediate pre-risk detection model to obtain the second intermediate pre-risk detection model;

[0170] S5: receiving a second intermediate front-end risk detection model through a preset secure data channel;

[0171] S6: Detect whether the second intermediate pre-risk detection model meets the preset requirements;

[0172] S7: When it is determined that the second intermediate pre-risk detection model meets the preset requirements, the second intermediate pre-risk detection model is determined as the preset pre-risk detection model.

[0173] The preset protocol rules may specifically include protocol rules based on federated learning and multi-party secure computing. The first sample data may specifically include sample data of different risk scenarios.

[0174] In specific implementation, the server can use the encrypted data of the first sample data to train the initial pre-risk detection model locally to obtain the first intermediate pre-risk detection model. In this way, it can be ensured that the first sample data held does not leave the local during the joint training process, thereby more effectively preventing data leakage.

[0175] Based on the above embodiments, the server can cooperate with the partner server according to the preset protocol rules to obtain and use a large amount of sample data of different risk scenarios, and train a preset pre-risk detection model with good generalization; at the same time, it can also effectively avoid the leakage of the sample data of the participants during the training process, and better protect the data security of the participants.

[0176] Among them, the above-mentioned initial pre-risk detection model at least includes an initial model input layer, an initial primary feature processing layer, an initial classification layer, and an initial model output layer connected in sequence; wherein, the initial primary feature processing layer is provided with a feature data interface, and the feature data interface is connected to the initial model output layer.

[0177] The first partner server may be specifically understood as a server deployed on the first partner side. The first partner may be specifically understood as a resource party that has corresponding data interaction cooperation with the transaction service platform according to the relevant cooperation agreement.

[0178] During specific implementation, the server may use the test sample data to calculate the loss function value of the second intermediate pre-risk detection model; and then detect whether the loss function value is less than a preset loss function threshold.

[0179] In the case where it is determined that the loss function value is less than the preset loss function threshold, it is determined that the second intermediate pre-risk detection model meets the preset requirements; then the model training can be terminated, and the second intermediate pre-risk detection model is determined as the preset pre-risk detection model. On the contrary, in the case where it is determined that the loss function value is greater than or equal to the preset loss function threshold, it is determined that the second intermediate pre-risk detection model does not meet the preset requirements; then the participating party can be switched (for example, from the previous first partner server to the second partner server), and the second intermediate pre-risk detection model is used as the initial pre-risk detection model, and the model training is continued until a preset pre-risk detection model that meets the requirements is obtained.

[0180] In some embodiments, after detecting whether the second intermediate pre-risk detection model meets the preset requirements, the method may further include the following when implemented:

[0181] S1: when it is determined that the second intermediate pre-risk detection model does not meet the preset requirements, initiating a joint training request for the preset pre-risk detection model to the second partner server;

[0182] S2: When it is determined that the second partner server responds, the second intermediate pre-risk detection model is sent to the second partner server through a preset secure data channel; wherein the second partner server encrypts the third sample data held according to the preset protocol rules to obtain the corresponding ciphertext data of the third sample data; and uses the ciphertext data of the third sample data to train the second intermediate pre-risk detection model to obtain the third intermediate pre-risk detection model;

[0183] S3: Receive the third intermediate front-end risk detection model through a preset secure data channel.

[0184] The second partner server can be specifically understood as a server deployed on the second partner side. The second partner can be specifically understood as a resource party that has corresponding data interaction cooperation with the transaction service platform according to the relevant cooperation agreement. The second partner and the first partner are different resource parties.

[0185] In specific implementation, after receiving the third intermediate pre-risk detection model through a preset secure data channel, the method further includes: detecting whether the third intermediate pre-risk detection model meets the preset requirements; if it is determined that the third intermediate pre-risk detection model meets the preset requirements, the third intermediate pre-risk detection model is determined as the preset pre-risk detection model. On the contrary, if it is determined that the third intermediate pre-risk detection model does not meet the preset requirements, it can be switched to a new third partner server, or switched back to the first partner server, and the model training can be continued based on the third intermediate pre-risk detection model.

[0186] Based on the above embodiments, the data resources of different participants can be fully utilized more efficiently and accurately to train a preset pre-risk detection model that meets preset requirements.

[0187] In some embodiments, after training the preset pre-risk detection model, refer to Figure 7 As shown, when the method is implemented specifically, it may also include the following contents:

[0188] S1: Construct an initial target risk detection model for the target risk scenario;

[0189] S2: Filtering data associated with the target risk scenario from the first sample data held as target sample data;

[0190] S3: Using the preset pre-risk detection model to process the target sample data, the corresponding sample risk detection results and sample feature data are obtained;

[0191] S4: Combine the sample risk detection results and sample feature data to obtain target training data;

[0192] S5: Use the target training data to train the initial target risk detection model to obtain the corresponding target risk detection model.

[0193] Among them, the above-mentioned initial target risk detection model can at least include the initial model input layer, the initial first classification layer, the advanced feature processing layer, the initial second classification layer, the initial model output and other structures connected in sequence.

[0194] Based on the above embodiments, a preset pre-risk detection model that has been trained can be used to efficiently train a target risk detection model with high accuracy, which is suitable for performing refined detection and identification of transaction risks in target risk scenarios.

[0195] As can be seen from the above, based on the transaction risk determination method provided by the embodiment of this specification, before specific implementation, it can be firstly carried out according to the preset protocol rules, through cooperation with the partner server for joint training, to obtain a preset pre-risk detection model with good generalization and capable of extracting relatively comprehensive initial feature data; then use the preset pre-risk detection model to train a target risk detection model with strong pertinence and refinement for specific target risk scenarios. In specific implementation, after receiving the target transaction data processing request, relevant relatively comprehensive target association data can be collected from multiple channels; then use the preset pre-risk detection model to perform a relatively generalized pre-risk detection by processing the target association data to determine whether there is a potential transaction risk; at the same time, extract the relatively comprehensive and better applicable first feature data obtained after the primary feature processing of the model; when it is determined that there is a potential transaction risk, then use the target risk detection model to process the pre-risk detection results and the first feature data to perform a refined and targeted target risk detection for the target risk scenario; when it is determined that there is no target transaction risk, the corresponding target transaction data processing is performed. This enables more efficient and accurate detection of relevant transaction risks and effectively protects the security of users' transaction data; at the same time, it can also avoid repeated feature data processing, improve overall data processing efficiency, and reduce overall data processing costs.

[0196] This specification embodiment provides a server, referring to Figure 8 The server includes a network communication port 801, a processor 802 and a memory 803, and the above structures are connected through internal cables so that each structure can perform specific data interaction.

[0197] The network communication port 801 may be specifically used to receive a target transaction data processing request initiated by a target user.

[0198] The processor 802 can be specifically used to collect relevant target-related data from multiple channels according to a target transaction data processing request; use a preset pre-risk detection model to process the target-related data to obtain corresponding pre-risk detection results and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate corresponding pre-risk detection results according to the first feature data; according to the pre-risk detection results, when it is determined that there is a potential transaction risk, use the target risk detection model to process the pre-risk detection results and the first feature data to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario; according to the target risk detection results, when it is determined that there is no target transaction risk based on the target risk scenario, perform corresponding target transaction data processing according to the target transaction data processing request.

[0199] The memory 803 may be specifically used to store corresponding instruction programs, and cache intermediately acquired target association data, pre-risk detection results, target risk detection results and other data.

[0200] Based on the above method, the relevant structural performance of the server can be effectively utilized, the data processing speed of the electronic device can be improved, and the data processing for determining the transaction risk can be efficiently realized.

[0201] In this embodiment, the network communication port 801 can be a virtual port that is bound to different communication protocols so that different data can be sent or received. For example, the network communication port can be a port responsible for web data communication, a port responsible for FTP data communication, or a port responsible for email data communication. In addition, the network communication port can also be a physical communication interface or communication chip. For example, it can be a wireless mobile network communication chip, such as GSM, CDMA, etc.; it can also be a Wifi chip; it can also be a Bluetooth chip.

[0202] In this embodiment, the processor 802 may be implemented in any appropriate manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc. This specification does not limit this.

[0203] In this embodiment, the memory 803 may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function but no physical form is also called a memory, such as RAM, FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, TF card, etc.

[0204] The embodiments of the present specification also provide a computer-readable storage medium based on the above-mentioned transaction risk determination method, wherein the computer-readable storage medium stores computer program instructions, which, when executed, implement the following steps: receiving a target transaction data processing request initiated by a target user; collecting relevant target-related data through multiple channels according to the target transaction data processing request; processing the target-related data using a preset pre-risk detection model to obtain corresponding pre-risk detection results and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate corresponding pre-risk detection results according to the first feature data; according to the pre-risk detection results, when it is determined that there is a potential transaction risk, processing the pre-risk detection results and the first feature data using the target risk detection model to obtain corresponding target risk detection results; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario; according to the target risk detection results, when it is determined that there is no target transaction risk based on the target risk scenario, performing corresponding target transaction data processing according to the target transaction data processing request.

[0205] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD), or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.

[0206] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer-readable storage medium can be explained in comparison with other implementations and will not be described in detail here.

[0207] The embodiments of the present specification also provide a computer program product, which at least includes a computer program, and when the computer program is executed by a processor, it implements the following method steps: receiving a target transaction data processing request initiated by a target user; collecting relevant target-related data through multiple channels according to the target transaction data processing request; processing the target-related data using a preset pre-risk detection model to obtain corresponding pre-risk detection results and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate corresponding pre-risk detection results according to the first feature data; according to the pre-risk detection results, when it is determined that there is a potential transaction risk, processing the pre-risk detection results and the first feature data using the target risk detection model to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario; according to the target risk detection results, when it is determined that there is no target transaction risk based on the target risk scenario, performing corresponding target transaction data processing according to the target transaction data processing request.

[0208] See also Fig. 9 As shown, the embodiment of this specification also provides a device for determining transaction risk, which may specifically include the following structural modules:

[0209] The receiving module 901 may be specifically configured to receive a target transaction data processing request initiated by a target user;

[0210] The collection module 902 may be specifically used to collect relevant target-related data through multiple channels according to the target transaction data processing request;

[0211] The pre-risk detection module 903 may be specifically used to process the target-related data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate a corresponding pre-risk detection result according to the first feature data;

[0212] The target risk detection module 904 may be specifically configured to process the pre-risk detection result and the first feature data using a target risk detection model according to the pre-risk detection result, when it is determined that there is a potential transaction risk, to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario;

[0213] The processing module 905 may be specifically configured to perform corresponding target transaction data processing according to the target transaction data processing request based on the target risk detection result when it is determined that there is no target transaction risk based on the target risk scenario.

[0214] In some embodiments, the target transaction data processing request may carry at least a user identifier of a target user and a terminal identifier of a target user terminal used by the target user;

[0215] Accordingly, when the above-mentioned acquisition module 902 is implemented, the relevant target-associated data can be collected through multiple channels in the following manner: based on the user identifier of the target user, query the user database to obtain multiple user indication information indicating the target user; based on the multiple user indication information of the target user, collect multiple dynamic behavior data and multiple static attribute data associated with the target user through multiple channels; based on the terminal identifier of the target user terminal, collect multiple dynamic behavior data and multiple static attribute data associated with the target user terminal through multiple channels; combine the multiple dynamic behavior data and multiple static attribute data associated with the target user, as well as the multiple dynamic behavior data and multiple static attribute data associated with the target user terminal, to obtain the target-associated data.

[0216] In some embodiments, after collecting relevant target-related data through multiple channels according to a target transaction data processing request, the device, when implemented specifically, can also be used to: according to preset processing rules, select multiple data from multiple dynamic behavior data and multiple static attribute data associated with the target user for feature cross-processing to obtain first-category feature cross-data; according to preset processing rules, select multiple data from multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross-processing to obtain second-category feature cross-data; according to preset processing rules, select multiple data from multiple dynamic behavior data and multiple static attribute data associated with the target user, and multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross-processing to obtain third-category feature cross-data; update the target-related data according to the first-category feature cross-data, the second-category feature cross-data, and the third-category feature cross-data.

[0217] In some embodiments, the preset pre-risk detection model may include at least a model input layer, a primary feature processing layer, a classification layer, a model output layer and other structures connected in sequence; wherein the primary feature processing layer is provided with a feature data interface, and the feature data interface is connected to the model output layer;

[0218] Correspondingly, when the above-mentioned pre-risk detection module 903 is implemented, the preset pre-risk detection model can be used to process the target-related data in the following manner to obtain the corresponding pre-risk detection result and the first feature data: use the model input layer to pre-process the target-related data to obtain the corresponding target intermediate data; and send the target intermediate data to the primary feature processing layer; use the primary feature processing layer to perform primary feature processing on the target intermediate data to obtain the corresponding first feature data; and send the first feature data to the classification layer, and send the first feature data to the model output layer through the feature data interface; use the classification layer to process the first feature data to calculate the corresponding potential risk prediction value; and send the potential risk prediction value to the model output layer; use the model output layer to generate the corresponding pre-risk detection result according to the potential risk prediction value; and output the pre-risk detection result and the first feature data.

[0219] In some embodiments, after using a preset pre-risk detection model to process the target-related data to obtain the corresponding pre-risk detection result and the first characteristic data, the device, when implemented, can also be used to: based on the pre-risk detection result, when it is determined that there is no potential transaction risk, perform corresponding target transaction data processing based on the target transaction data processing request.

[0220] In some embodiments, the target risk scenario may specifically include multiple target risk scenarios; accordingly, the target risk detection model may include multiple target risk detection models; wherein one target risk detection model corresponds to one target risk scenario.

[0221] In some embodiments, when the above-mentioned target risk detection module 904 is implemented, the target risk detection model can be used to process the pre-risk detection results and the first feature data in the following manner to obtain the corresponding target risk detection results: use multiple target risk detection models to process the pre-risk detection results and the first feature data respectively to obtain corresponding multiple risk detection results; based on the multiple risk detection results, filter out the risk detection results that meet the preset conditions to generate the corresponding target risk detection results.

[0222] In some embodiments, after using the target risk detection model to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result, the device can also be used when it is implemented to: based on the target risk detection result, when it is determined that there is a target transaction risk based on the target risk scenario, suspend the target transaction data processing request and generate a corresponding target risk prompt; and deliver the target risk prompt to the target user.

[0223] In some embodiments, when the device is implemented, it can also be used to: initiate a joint training request for a preset pre-risk detection model to the first partner server; when it is determined that the first partner server responds, encrypt the first sample data held according to the preset protocol rules to obtain the corresponding ciphertext data of the first sample data; use the ciphertext data of the first sample data to train the initial pre-risk detection model to obtain the first intermediate pre-risk detection model; send the first intermediate pre-risk detection model to the first partner server through a preset secure data channel; wherein the first partner server encrypts the second sample data held according to the preset protocol rules to obtain the corresponding ciphertext data of the second sample data; and uses the ciphertext data of the second sample data to train the first intermediate pre-risk detection model to obtain the second intermediate pre-risk detection model; receive the second intermediate pre-risk detection model through the preset secure data channel; detect whether the second intermediate pre-risk detection model meets the preset requirements; when it is determined that the second intermediate pre-risk detection model meets the preset requirements, determine the second intermediate pre-risk detection model as the preset pre-risk detection model.

[0224] In some embodiments, after detecting whether the second intermediate pre-risk detection model meets the preset requirements, the device can also be used when it is implemented to: initiate a joint training request for the preset pre-risk detection model to the second partner server when it is determined that the second intermediate pre-risk detection model does not meet the preset requirements; send the second intermediate pre-risk detection model to the second partner server through a preset secure data channel when it is determined that the second partner server responds; wherein the second partner server encrypts the third sample data held according to preset protocol rules to obtain the corresponding ciphertext data of the third sample data; and uses the ciphertext data of the third sample data to train the second intermediate pre-risk detection model to obtain a third intermediate pre-risk detection model; and receives the third intermediate pre-risk detection model through a preset secure data channel.

[0225] In some embodiments, when the device is implemented, it can also be used to: construct an initial target risk detection model for a target risk scenario; filter out data associated with the target risk scenario from the first sample data held as target sample data; use a preset pre-risk detection model to process the target sample data to obtain corresponding sample risk detection results and sample feature data; combine the sample risk detection results and sample feature data to obtain target training data; and use the target training data to train the initial target risk detection model to obtain a corresponding target risk detection model.

[0226] It should be noted that the units, devices or modules described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described separately by functions divided into various modules. Of course, when implementing this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the modules that implement the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0227] It can be seen from the above that the transaction risk determination device provided in the embodiments of this specification can realize relevant transaction risk detection more efficiently and accurately, and effectively protect the user's transaction data security; at the same time, it can also avoid repeated feature data processing, improve the overall data processing efficiency, and reduce the overall data processing cost.

[0228] In a specific scenario example, the transaction risk determination method provided in this specification can be applied to implement machine learning-based anti-fraud pre-user behavior assessment for bank risk scenarios. For the specific implementation process, please refer to the following content.

[0229] In this scenario example, most existing methods are rule-based detection methods, which detect whether there are abnormal risk behaviors (i.e., whether there are transaction risks) by defining a series of rules, such as the user's daily transaction amount, frequency, number of times, and proportion. Alternatively, corresponding models are specially trained for detection in different scenarios. However, with the diversification of fraud crime methods, anti-fraud models, rules, and technologies are gradually increasing, and the targeted subdivided scenarios are gradually refined, resulting in a decrease in the generalization of the model; and when each refined model is established, feature calculations are required, and different models may repeatedly calculate the same features, resulting in computational redundancy and a large waste of computing resources.

[0230] In response to the above problems and in combination with the root causes of the above problems, the present application considers that if a pre-model for user anti-fraud behavior evaluation can be established before all refined models (for example, a preset pre-risk detection model), it can be used to extract features that may be used in all subsequent subtasks and reduce the time for repeated feature calculations of subsequent sub-models; and the pre-model can be used to obtain a pre-evaluation and identification of user risk behavior so that subsequent sub-models (for example, target risk detection models) can further perform anti-fraud specific scenario identification based on the pre-model results, which can help improve model recognition accuracy and better protect customer funds security.

[0231] Based on the above ideas, for specific implementation, please refer to Fig.10 As shown, including the following.

[0232] 1) Obtain user transaction behavior information (e.g., multiple dynamic behavior data and multiple static attribute data associated with the target user), including transaction volume, number of large transactions, transaction frequency, number of high-risk transactions, amount of deposits and withdrawals, etc., as well as user basic attribute information, such as gender, age, customer star rating, asset rating, etc.

[0233] 2) Obtain user device information (for example, multiple dynamic behavior data and multiple static attribute data associated with the target user terminal), including: the number of devices used by the user recently, the time spent on visited pages, transaction channels, device GPS location, etc.

[0234] 3) All of the above features need to be calculated separately within 8 weeks, 4 weeks, 1 week, 3 days, and 1 day. After calculating all the above features, they need to be combined for feature cross-calculation, for example: the proportion of short-term transactions in long-term transactions, changes in device access, etc.

[0235] 4) Use the preset telecommunications fraud-related record accounts and randomly selected white samples to train the model. The model can choose random forest, Xgboost and other models to train the corresponding pre-model (for example, the preset pre-risk detection model).

[0236] 5) After the model is trained, the above-mentioned pre-model is used to calculate all the above features for the new user transaction data information, and then generalization detection is performed. During the specific detection, the calculated features can be input into the pre-trained pre-model for scoring. If the score exceeds the threshold (for example, there is a potential transaction risk), the previously calculated features of the user are provided to the subsequent refinement model (for example, the target risk detection model) for refined risk detection and evaluation.

[0237] Based on the above scenario examples, the transaction risk determination method provided in this manual has been verified. Before all refined models, all features such as transaction behavior, customer information, and device information can be extracted to train the pre-model to conduct a preliminary assessment and detection of user behavior, and provide calculated features for subsequent more refined anti-fraud scenarios, thereby reducing redundant calculations and improving the recognition accuracy of subsequent models for various fraud scenarios.

[0238] Although the present specification provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps, and does not represent a unique execution order. When the device or client product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. The first, second, etc. words are used to represent the name, and do not represent any particular order.

[0239] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0240] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer-readable storage media including storage devices.

[0241] Through the description of the above embodiments, it can be known that those skilled in the art can clearly understand that the present specification can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present specification can essentially be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.

[0242] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. This specification can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0243] Although the present specification is described through embodiments, those skilled in the art will appreciate that there are many modifications and changes to the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these modifications and changes without departing from the spirit of the present specification.

Claims

1. A method for determining transaction risk, characterized in that: Applicable to servers, including: Receive a target transaction data processing request initiated by a target user; According to the target transaction data processing request, relevant target-related data is collected through multiple channels; Processing the target-related data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate a corresponding pre-risk detection result according to the first feature data; According to the pre-risk detection result, when it is determined that there is a potential transaction risk, the pre-risk detection result and the first feature data are processed using a target risk detection model to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario; According to the target risk detection result, when it is determined that there is no target transaction risk based on the target risk scenario, corresponding target transaction data processing is performed according to the target transaction data processing request.

2. The method according to claim 1, characterized in that The target transaction data processing request carries at least a user identifier of a target user and a terminal identifier of a target user terminal used by the target user; Accordingly, relevant target-related data is collected through multiple channels, including: According to the user identifier of the target user, query the user database to obtain multiple user indication information indicating the target user; According to multiple user indication information of the target user, multiple dynamic behavior data and multiple static attribute data associated with the target user are collected through multiple channels; According to the terminal identification of the target user terminal, a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user terminal are acquired through multiple channels; The target associated data is obtained by combining a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user, and a plurality of dynamic behavior data and a plurality of static attribute data associated with the target user terminal.

3. The method according to claim 2, characterized in that After collecting relevant target-related data through multiple channels according to the target transaction data processing request, the method further includes: According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user for feature cross processing to obtain first-category feature cross data; According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross processing to obtain second-category feature cross data; According to a preset processing rule, multiple data are selected from multiple dynamic behavior data and multiple static attribute data associated with the target user and multiple dynamic behavior data and multiple static attribute data associated with the target user terminal for feature cross processing to obtain third type of feature cross data; The target associated data is updated according to the first type of feature intersection data, the second type of feature intersection data, and the third type of feature intersection data.

4. The method according to claim 1, characterized in that: The preset pre-risk detection model at least includes a model input layer, a primary feature processing layer, a classification layer, and a model output layer connected in sequence; wherein the primary feature processing layer is provided with a feature data interface, and the feature data interface is connected to the model output layer; Accordingly, the target association data is processed using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data, including: The target associated data is preprocessed using the model input layer to obtain the corresponding target intermediate data; and the target intermediate data is sent to the primary feature processing layer; Performing primary feature processing on the target intermediate data using the primary feature processing layer to obtain corresponding first feature data; sending the first feature data to the classification layer, and sending the first feature data to the model output layer through the feature data interface; Using the classification layer to process the first feature data, a corresponding potential risk prediction value is calculated; and the potential risk prediction value is sent to the model output layer; The model output layer is used to generate corresponding pre-risk detection results according to the potential risk prediction value; and the pre-risk detection results and the first feature data are output.

5. The method according to claim 1, characterized in that After processing the target associated data using the preset pre-risk detection model to obtain the corresponding pre-risk detection result and the first feature data, the method further includes: Based on the pre-risk detection results, when it is determined that there is no potential transaction risk, the corresponding target transaction data processing is performed according to the target transaction data processing request.

6. The method according to claim 1, characterized in that The target risk scenario includes multiple target risk scenarios; accordingly, the target risk detection model includes multiple target risk detection models; wherein one target risk detection model corresponds to one target risk scenario.

7. The method according to claim 6, characterized in that The target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result, including: Using multiple target risk detection models to process the pre-risk detection result and the first feature data respectively to obtain corresponding multiple risk detection results; Based on multiple risk detection results, risk detection results that meet preset conditions are screened out to generate corresponding target risk detection results.

8. The method according to claim 1, characterized in that After the target risk detection model is used to process the pre-risk detection result and the first feature data to obtain the corresponding target risk detection result, the method further includes: According to the target risk detection results, if it is determined that there is a target transaction risk based on the target risk scenario, suspend the target transaction data processing request and generate a corresponding target risk prompt; Deliver targeted risk warnings to target users.

9. The method according to claim 1, characterized in that: The method further comprises: Initiate a joint training request for a preset pre-risk detection model to the first partner server; When it is determined that the first partner server responds, encrypt the held first sample data according to a preset protocol rule to obtain ciphertext data of the corresponding first sample data; Using the ciphertext data of the first sample data to train an initial pre-risk detection model to obtain a first intermediate pre-risk detection model; The first intermediate pre-risk detection model is sent to the first partner server through a preset secure data channel; wherein the first partner server encrypts the second sample data held by it according to the preset protocol rules to obtain the corresponding ciphertext data of the second sample data; and the ciphertext data of the second sample data is used to train the first intermediate pre-risk detection model to obtain the second intermediate pre-risk detection model; Receiving a second intermediate front-end risk detection model through a preset secure data channel; Check whether the second intermediate front-end risk detection model meets the preset requirements; When it is determined that the second intermediate pre-risk detection model meets the preset requirements, the second intermediate pre-risk detection model is determined as the preset pre-risk detection model.

10. The method according to claim 9, characterized in that After detecting whether the second intermediate pre-risk detection model meets the preset requirements, the method further includes: In the case where it is determined that the second intermediate pre-risk detection model does not meet the preset requirements, initiating a joint training request for the preset pre-risk detection model to the second partner server; When it is determined that the second partner server responds, the second intermediate pre-risk detection model is sent to the second partner server through a preset secure data channel; wherein the second partner server encrypts the third sample data held according to the preset protocol rules to obtain the corresponding ciphertext data of the third sample data; and uses the ciphertext data of the third sample data to train the second intermediate pre-risk detection model to obtain the third intermediate pre-risk detection model; The third intermediate front-end risk detection model is received through a preset secure data channel.

11. The method according to claim 9, characterized in that The method further comprises: Construct an initial target risk detection model for target risk scenarios; Filtering data associated with a target risk scenario from the held first sample data as target sample data; The preset pre-risk detection model is used to process the target sample data to obtain the corresponding sample risk detection results and sample feature data; Combine the sample risk detection results and sample feature data to obtain target training data; The target training data is used to train the initial target risk detection model to obtain the corresponding target risk detection model.

12. A device for determining transaction risk, characterized in that: Applicable to servers, including: A receiving module, used for receiving a target transaction data processing request initiated by a target user; The collection module is used to collect relevant target-related data through multiple channels according to the target transaction data processing request; A pre-risk detection module, used to process the target-related data using a preset pre-risk detection model to obtain a corresponding pre-risk detection result and first feature data; wherein the preset pre-risk detection model is used to extract the first feature data from the target-related data, and generate a corresponding pre-risk detection result according to the first feature data; A target risk detection module is used to process the pre-risk detection result and the first feature data using a target risk detection model according to the pre-risk detection result, when it is determined that there is a potential transaction risk, to obtain a corresponding target risk detection result; wherein the target risk detection model is a classification model constructed and trained for a target risk scenario; The processing module is used to perform corresponding target transaction data processing according to the target transaction data processing request based on the target risk detection result and when it is determined that there is no target transaction risk based on the target risk scenario.

13. A server, characterized in that: The method comprises a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of the method according to any one of claims 1 to 11 when executing the instructions.

14. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

15. A computer program product, characterized in that The invention comprises a computer program, which implements the steps of the method according to any one of claims 1 to 11 when being executed by a processor.