Transaction risk real-time early warning method and device
By generating transaction characteristic data and risk prediction models in real time, calculating transaction risk coefficients and conducting intelligent early warnings, it solves the problem of real-time transaction risk early warning and blocking in the banking industry, improves the timeliness and concurrency of risk early warnings, and enhances business peak periods. processing capabilities.
Patent Information
- Application Number
- CN202410701491.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology is difficult to achieve real-time transaction risk warning and blocking in low-latency, high-concurrency, and large-scale real-time transaction risk scenarios in the banking industry, and manual customer service processing efficiency is insufficient.
By generating transaction characteristic data in real time based on preset different risk scenario feature templates and business platform database logs, using the pre-generated transaction risk prediction model library to generate risk transaction information, calculating transaction risk coefficients, and matching intelligent interaction scenarios for intelligent risk warning, Real-time risk warning and blocking.
It improves the timeliness, concurrency and scalability of risk warnings, enhances parallel service capabilities and response efficiency during peak business periods, can discover hidden risky transaction behaviors, and reduces the occupation of big data computing resources.
Smart Images

Figure CN118537014A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a real-time early warning method and device for transaction risks. Background Art
[0002] The current customer service system in the banking industry is mainly composed of intelligent robots and manual customer service. With the development of artificial intelligence, voice recognition ASR and semantic understanding NLP technology, the business scenarios supported by intelligent robot customer service have become very rich. Using intelligent robot customer service as the main body to warn and block users' potential abnormal transaction risks can greatly reduce the pressure on manual customer service, and the warning timeliness is higher.
[0003] On the other hand, with the widespread and in-depth application of the Internet, mobile Internet and the Internet of Things, mankind has officially entered the era of big data. It is crucial to quickly identify and block possible abnormal transaction behaviors from large-scale, high-concurrency, and multi-dimensional business data. In the wave of big data technology, many excellent products and solutions have emerged, among which spark streaming and storm are more influential. However, the characteristics of these products are essentially micro-batch operations, and there is still latency, which cannot meet the low-latency, high-concurrency, large-scale real-time transaction risk business scenarios of the banking industry.
[0004] In the existing technology, it is possible to obtain a relatively reliable transaction risk prediction model by processing massive data and combining business experience. Inputting the processed transaction information data into the transaction risk prediction model can analyze and obtain a high-precision abnormal transaction identification result. However, this analysis result is often a subsequent supplementary screening operation that can only be performed after the transaction is completely completed. It can only be used to discover abnormal transaction behaviors that have already occurred and try to make up for the impact caused by abnormal transactions. It is difficult to achieve real-time transaction risk warnings, let alone block abnormal transactions. At the same time, when the system needs to face a large number of concurrent transaction requests at the same time, relying on manual customer service processing cannot provide matching processing efficiency. Summary of the invention
[0005] In view of the problems in the prior art, the embodiments of the present application provide a method and device for real-time early warning of transaction risks, which can at least partially solve the problems in the prior art.
[0006] In a first aspect, the present application provides a real-time early warning method for transaction risks, comprising:
[0007] Generate corresponding transaction feature data in real time based on the preset feature templates of different risk scenarios and the database logs of the business platform;
[0008] Generate risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library;
[0009] Generate a transaction risk coefficient using the risk transaction information and match the corresponding intelligent interaction scenario;
[0010] An intelligent risk warning is performed based on the transaction risk coefficient and the intelligent interaction scenario.
[0011] Furthermore, the corresponding transaction feature data is generated in real time according to the preset feature templates of different risk scenarios and the database log of the business platform, including:
[0012] Read transaction change records from the business platform's database log in real time;
[0013] The feature templates of different risk scenarios are used to extract features from the change records to obtain corresponding transaction feature data.
[0014] Furthermore, generating risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library includes:
[0015] According to the risk scenario to which the transaction feature data belongs, matching a transaction risk prediction model corresponding to the risk scenario from the transaction risk prediction model library;
[0016] Generate risky transaction information based on the transaction feature data and the transaction risk prediction model of the corresponding risk scenario.
[0017] Furthermore, generating risky transaction information according to the transaction feature data and the transaction risk prediction model corresponding to the risk scenario includes:
[0018] Converting the transaction feature data into a format according to the input data format required by the transaction risk prediction model;
[0019] Inputting the transaction feature data after format conversion into the transaction risk prediction model to obtain a transaction risk prediction result;
[0020] Generate risk transaction information based on the transaction risk prediction result and the transaction characteristic data.
[0021] Further, the risky transaction information includes a transaction amount and a transaction number; and the step of generating a transaction risk coefficient using the risky transaction information includes:
[0022] Calculate the transaction amount risk factor based on the transaction amount;
[0023] Calculate the transaction number risk factor based on the transaction number;
[0024] A transaction risk coefficient is generated according to the transaction amount risk coefficient and the transaction number risk coefficient.
[0025] Furthermore, the risky transaction information also includes the number of logins in various places; and the use of the risky transaction information to generate a transaction risk coefficient also includes:
[0026] When the risk scenario to which the risky transaction information belongs is a remote login scenario, a remote login risk coefficient is calculated according to the number of logins in each location;
[0027] A transaction risk coefficient is generated according to the transaction amount risk coefficient, the transaction number risk coefficient and the remote login risk coefficient.
[0028] Furthermore, the intelligent risk warning is performed according to the transaction risk coefficient and the intelligent interaction scenario, including:
[0029] Determine the transaction risk level according to the transaction risk coefficient and the preset risk threshold;
[0030] Intelligent risk warning is performed according to the transaction risk level and the intelligent interaction scenario.
[0031] Furthermore, after performing intelligent risk warning according to the transaction risk level and the intelligent interaction scenario, it also includes:
[0032] Calculate the risk identification rate based on the intelligent risk warning results;
[0033] The risk threshold is adjusted according to the risk identification rate.
[0034] In a second aspect, the present application provides a real-time early warning device for transaction risks, comprising:
[0035] A real-time data generation unit, used to generate corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform;
[0036] A risky transaction information generating unit, configured to generate risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library;
[0037] A transaction risk coefficient generating unit, used to generate a transaction risk coefficient using the risk transaction information and match the corresponding intelligent interaction scenario;
[0038] An intelligent risk warning unit is used to perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0039] In a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any one of the above embodiments when executing the computer program.
[0040] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0041] In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0042] The real-time early warning method and device for transaction risks provided in the present application generate corresponding transaction feature data in real time according to the preset feature templates of different risk scenarios and the database log of the business platform; generate risky transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library; use the risky transaction information to generate a transaction risk coefficient and match the corresponding intelligent interaction scenario; perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario, thereby realizing real-time intelligent risk warning, further realizing risky transaction blocking, and improving the timeliness, concurrency and scalability of risk warning.
[0043] Among them, streaming computing is used to improve the efficiency of data processing while avoiding the large amount of resource occupation caused by big data computing; by generating corresponding transaction feature data in real time based on the preset feature templates of different risk scenarios and the database logs of the business platform, cross-business data integration is achieved, and risk prediction can be made using global data, which improves the accuracy of prediction results and is conducive to discovering hidden risky transaction behaviors; intelligent risk warnings are used to improve parallel service capabilities and response efficiency during business peak periods. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0046] Figure 2 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0047] Figure 3 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0048] Figure 4It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0049] Figure 5 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0050] Figure 6 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0051] Figure 7 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0052] Figure 8 It is a flowchart of a real-time early warning method for transaction risks provided by an embodiment of the present application;
[0053] Fig. 9 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0054] Fig.10 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0055] Fig.11 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0056] Fig.12 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0057] Fig.13 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0058] Fig.14 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0059] Fig.15 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0060] Fig.16 It is a structural diagram of a real-time early warning device for transaction risks provided by an embodiment of the present application;
[0061] Fig.17 is a schematic diagram of the physical structure of an electronic device provided in one embodiment of the present application;
[0062] Fig.18 This is a flow chart of intelligent early warning of transaction risks provided by one embodiment of the present application. DETAILED DESCRIPTION
[0063] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present application and their descriptions are used to explain the present application, but are not intended to limit the present application. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
[0064] It should be noted that the real-time early warning method and device for transaction risks disclosed in this application can be used in the field of artificial intelligence technology, and can also be used in any field outside the field of artificial intelligence technology. The application field of the real-time early warning method and device for transaction risks disclosed in this application is not limited.
[0065] The following uses the server as an example of the execution entity to illustrate the specific implementation process of the real-time early warning method for transaction risks provided in the embodiment of the present application.
[0066] Figure 1 FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 1 As shown, the real-time early warning method for transaction risks provided by this application includes:
[0067] S101: Generate corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform;
[0068] S102: Generate risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library;
[0069] S103: Generate a transaction risk coefficient using the risk transaction information and match it with a corresponding intelligent interaction scenario;
[0070] S104: Perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0071] from Figure 1 As can be seen from the illustrated process, the transaction risk real-time warning method and device provided in the present application generates corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform; generates risky transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library; generates a transaction risk coefficient using the risky transaction information and matches the corresponding intelligent interaction scenario; performs intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario, thereby realizing real-time intelligent risk warning, further realizing risk transaction blocking, and improving the timeliness, concurrency and scalability of risk warning.
[0072] It should be noted that the information collected in the technical solution of this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0073] Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0074] Each step is explained in detail below.
[0075] S101: Generate corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform;
[0076] Specifically, the server performs streaming computing on the transaction data of the transaction parties in real time to provide real-time intelligent risk warnings for risky transactions. Stream computing is real-time computing for unbounded data streams, and the calculation results are quickly output or corrected. In the traditional data processing process, data is always collected first, and then put into the database. When people need it, they query the data through the database to get answers or perform related processing; streaming computing can well analyze large-scale flow data in real time during the ever-changing movement process, capture potentially useful information, and send the results to the next computing node.
[0077] The server obtains transaction data from the database log of the business platform, processes the transaction data in real time using preset feature templates for different risk scenarios, and obtains transaction feature data for risk prediction.
[0078] In one embodiment, the server implements stream computing using Flink, which is an open source distributed, high-performance, readily available stream processing framework built by accurate stream processing applications. Its core is a distributed stream data flow engine written in Java and Scala. Flink executes any stream data program in a data parallel and pipeline manner. Flink's pipeline runtime system can execute batch and stream processing programs. In addition, Flink's runtime itself also supports the execution of iterative algorithms.
[0079] In one embodiment, the server may obtain transaction data from multiple business platforms (eg, a credit card platform or a debit card platform, etc.) to provide a rich data basis for risk prediction.
[0080] Figure 2FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 2 As shown, S101 includes:
[0081] S201: Read transaction change records from the database log of the business platform in real time;
[0082] Specifically, the server builds a data source table to receive the transaction data of the transaction party. To ensure timeliness, the transaction data is pushed to the server through KAFKA. When receiving the transaction data of the transaction party, the transaction party does not need to actively send the transaction log. After obtaining the transaction party's authorization, the server obtains the transaction data by reading the transaction party's database log and monitoring the binlog log changes of the target table in the transaction party's database.
[0083] In one embodiment, the server generates a KAFKA message in drp-json format for each data change record in the target table, and the message content is the change result and change method of the data, where the change method includes adding or updating.
[0084] In one embodiment, in a credit card consumption transaction scenario, after a user adds a new consumption, the user consumption record table adds data to record the consumption details, the user credit card limit information table updates the user's remaining limit information, and the server obtains a KAFKA message containing the above information.
[0085] S202: Extract features from the change record using preset feature templates for different risk scenarios to obtain corresponding transaction feature data.
[0086] Specifically, the server parses the KAFKA message to obtain transaction data and automatically obtains transaction data. After obtaining the transaction data, the server processes the transaction data to input the transaction risk prediction model for risk prediction. The server filters the transaction data horizontally to remove incomplete data logs and logs that do not need to be paid attention to (for example, in the case of corporate transactions, personal business does not need to be paid attention to). The server also filters the transaction data vertically to extract fields with business value in the log according to the preset feature templates (preset SQL) of different risk scenarios.
[0087] In one embodiment, the fields with business value obtained through vertical filtering include transaction time, transaction type, customer information and transaction amount, etc. The server stores the fields specified in the preset SQL into the data source table according to the update method in the transaction data, and aggregates the customer transaction information from each transaction party according to the customer number, and summarizes the customer's transaction status on the day, within ten days, and in the month according to time, wherein the summary operation includes adding or averaging (for example, adding the transaction amounts of the day to obtain the daily transaction total, averaging the transaction amounts of the day to obtain the daily average transaction amount, etc.).
[0088] S102: Generate risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library;
[0089] Specifically, the server obtains a pre-generated transaction risk prediction model library, which contains multiple transaction risk prediction models for different risk scenarios and can perform risk predictions for different risk scenarios respectively. The server inputs the transaction feature data obtained after data processing into the corresponding transaction risk prediction model to generate corresponding risk transaction information, which is whether there is a risk in the transaction feature data under the risk scenario.
[0090] In one embodiment, the server supports multiple types of data output, such as database, distributed messaging (KAFKA), distributed data cache, online interface (HTTP), etc.
[0091] Figure 3 FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 3 As shown, S102 includes:
[0092] S301: matching a transaction risk prediction model corresponding to a risk scenario from the transaction risk prediction model library according to the risk scenario to which the transaction feature data belongs;
[0093] Specifically, the transaction feature data is obtained by the server based on preset feature templates (preset SQL) of different risk scenarios, and the server obtains the transaction risk prediction model of the same risk scenario in the transaction risk prediction model library according to the risk scenario of the feature template.
[0094] In one embodiment, the risk scenario may be a large transaction scenario or a remote login scenario, but the present application is not limited thereto.
[0095] In one embodiment, the transaction risk prediction model may be a neural network-based bank card transaction risk prediction model and a multimodal transaction risk prediction model, etc., but the present application is not limited thereto.
[0096] S302: Generate risky transaction information according to the transaction feature data and the transaction risk prediction model of the corresponding risk scenario.
[0097] Specifically, the transaction feature data is input into the transaction risk prediction model corresponding to the risk scenario, and the transaction risk prediction model outputs the risk prediction result of the current transaction. If the risk prediction result exceeds a preset threshold, it means that the current transaction has transaction risk under the risk scenario.
[0098] Figure 4 FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 4 As shown, S302 includes:
[0099] S401: Converting the transaction feature data into a format according to the input data format required by the transaction risk prediction model;
[0100] Specifically, different transaction risk prediction models require different input data formats. The server processes the transaction feature data and converts its format into the input data format required by its corresponding transaction risk prediction model, so as to input the transaction feature data into the corresponding transaction risk prediction model for risk prediction.
[0101] In one embodiment, the input data format required by the transaction risk prediction model may be in text format or json format, etc., and the present application is not limited thereto.
[0102] S402: Inputting the transaction feature data after format conversion into the transaction risk prediction model to obtain a transaction risk prediction result;
[0103] Specifically, the server converts the transaction feature data into a suitable format and inputs it into the corresponding transaction risk prediction model to conduct a real-time risk assessment of the current transaction behavior and output transaction information that exceeds the risk threshold.
[0104] S403: Generate risk transaction information according to the transaction risk prediction result and the transaction characteristic data.
[0105] Specifically, if the transaction behavior involves transaction risks, the risk scenario label involved is added to the transaction information to obtain risky transaction information.
[0106] In one embodiment, a transaction behavior may hit one transaction risk scenario, or may hit multiple transaction risk scenarios. When multiple transaction risk scenarios are hit, the server will generate multiple risk transaction information for the transaction behavior.
[0107] S103: Generate a transaction risk coefficient using the risk transaction information and match it with a corresponding intelligent interaction scenario;
[0108] Specifically, an intelligent interaction scenario corresponding to the anti-fraud prediction model is pre-established in the server. For the risky transaction information received, the server automatically matches the appropriate intelligent interaction scenario according to the card type, transaction type and the region to which the user account belongs, and evaluates the risk factor of the risky transaction based on the current transaction amount and the user's historical transaction status.
[0109] Figure 5 FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 5 As shown, S103 includes:
[0110] S501: Calculating a transaction amount risk coefficient according to the transaction amount;
[0111] Specifically, for transactions involving risks, the server calculates a transaction amount risk coefficient based on the transaction amount and transaction times in the transaction information. The transaction amount risk coefficient can indicate the level of risk for the transaction amount.
[0112] In one embodiment, the transaction amount risk coefficient includes a first coefficient and a second coefficient. The server determines the first coefficient according to the ratio of the current transaction amount to the historical average transaction amount, and the first coefficient is expressed as: current transaction amount / historical average transaction amount; the server determines the second coefficient according to the ratio of the number of times the historical transaction amount is less than the current transaction amount to the number of historical valid transactions, and the second coefficient is expressed as: the number of times the historical transaction amount is less than the current transaction amount / the number of historical valid transactions.
[0113] S502: Calculating a transaction number risk coefficient according to the transaction number;
[0114] Specifically, for transactions involving risks, the server calculates a transaction number risk coefficient according to the transaction number in the transaction information. The transaction number risk coefficient can indicate the level of risk for the transaction number.
[0115] In one embodiment, the server determines the transaction number risk coefficient according to the ratio of the number of transactions on the current day to the historical average number of transactions on the current day. The transaction number risk coefficient is expressed as: the number of transactions on the current day / the historical average number of transactions on the current day.
[0116] S503: Generate a transaction risk coefficient according to the transaction amount risk coefficient and the transaction number risk coefficient.
[0117] Specifically, the server calculates the transaction risk coefficient based on the transaction amount risk coefficient and the transaction number risk coefficient.
[0118] In one embodiment, the server can calculate the transaction risk coefficient based on the transaction amount risk coefficient, the transaction number risk coefficient and the preset weights, and set the weight of the first coefficient in the transaction amount risk coefficient to 30%, the weight of the second coefficient in the transaction amount risk coefficient to 40%, and the weight of the transaction number risk coefficient to 30%. The transaction risk coefficient can be expressed as: (current transaction amount / historical average transaction amount*30%+number of times the historical transaction amount is less than the current transaction amount / historical valid transaction number*40%+number of transactions on the day / historical average daily transaction number*30%) / 100. This application is not limited to the above weights.
[0119] Figure 6 FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 6As shown, S103 also includes:
[0120] S601: When the risk scenario to which the risky transaction information belongs is a remote login scenario, a remote login risk coefficient is calculated according to the number of logins in each location;
[0121] Specifically, when the risk scenario to which the risk transaction information belongs is a remote login scenario, the server calculates the remote login risk coefficient for transactions involving remote login risk scenarios based on the number of location logins in the transaction information. The remote login risk coefficient can indicate the risk level for the login location.
[0122] In one embodiment, the server determines the remote login risk coefficient based on the ratio of the total number of logins at the current location to the total number of valid logins of the user. The remote login risk coefficient is expressed as: the total number of logins at the current location / the total number of valid logins of the user.
[0123] S602: Generate a transaction risk coefficient according to the transaction amount risk coefficient, the transaction number risk coefficient and the remote login risk coefficient.
[0124] Specifically, when the risk scenario to which the risk transaction information belongs is a remote login scenario, the server calculates the transaction risk coefficient for the transaction involving the remote login risk scenario based on the transaction amount risk coefficient, the transaction number risk coefficient and the remote login risk coefficient.
[0125] In one embodiment, the server can calculate the transaction risk coefficient based on the transaction amount risk coefficient, the transaction number risk coefficient, the remote login risk coefficient and the preset weights. For example, the weight of the transaction amount risk coefficient is set to 40%, the weight of the transaction number risk coefficient is set to 30%, and the weight of the remote login risk coefficient is set to 30%. The transaction risk coefficient can be expressed as: (current transaction amount risk coefficient*40%+transaction number risk coefficient*30%+remote login risk coefficient*30%) / 100. This application is not limited to the above weights.
[0126] S104: Perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0127] Specifically, the server triggers an intelligent risk warning based on the obtained transaction risk coefficient and the corresponding intelligent interaction scenario, and promptly verifies and warns the transaction parties to block risky transactions.
[0128] In one embodiment, the intelligent interaction scenarios may include account remote login confirmation scenarios, high-value transaction verification scenarios, or personal loan approval, but the present application is not limited thereto.
[0129] Figure 7FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 7 As shown, S104 includes:
[0130] S701: Determine the transaction risk level according to the transaction risk coefficient and a preset risk threshold;
[0131] Specifically, the server presets a risk threshold to compare with the transaction risk coefficient, thereby determining the risk level of the risky transaction.
[0132] In one embodiment, the server presets a low-risk basic threshold value of 20% and a medium-risk basic threshold value of 50%. If the transaction risk coefficient is less than the low-risk basic threshold value, the risk level of the transaction is low risk; if the transaction risk coefficient is greater than the low-risk basic threshold value and less than the medium-risk basic threshold value, the risk level of the transaction is medium risk; if the transaction risk coefficient is greater than the medium-risk basic threshold value, the risk level of the transaction is high risk.
[0133] S702: Perform intelligent risk warning according to the transaction risk level and the intelligent interaction scenario.
[0134] Specifically, the server's intelligent risk warning operation for low-risk transactions is to send SMS to remind users to verify transactions in a timely manner; the intelligent risk warning operation for medium-risk transactions is to initiate a real-time outbound call and send SMS to inform customers of transaction risks and verify information; the intelligent risk warning operation for high-risk transactions is to initiate a real-time outbound call and send SMS to inform customers of transaction risks and verify information. Fig.18 As shown, the customer's personal identity information and transaction information are verified through real-time intelligent voice interaction. If the verification is consistent, the downstream transaction is notified to proceed normally. Otherwise, the customer is assisted in terminating or canceling the transaction.
[0135] In one embodiment, the server compares the customer's personal identity information with the customer information reserved in the bank system through real-time intelligent voice interaction, and compares transaction information such as transaction amount, transaction category and transaction purpose with the transaction log to verify the customer information.
[0136] In one embodiment, if the real-time intelligent voice is not connected, a text message is sent first, and an intelligent outbound call is initiated again after 5 minutes. In addition, if the same account triggers risky transactions three or more times in the same day, an outbound call is also initiated in real time and a text message is sent to inform the customer of the transaction risk and verify the information.
[0137] Figure 8 FIG. 1 is a flow chart of a real-time early warning method for transaction risk provided by an embodiment of the present application. Figure 8 As shown, after S702, the following steps are also included:
[0138] S801: Calculate the risk identification rate based on the intelligent risk warning results;
[0139] Specifically, the server optimizes the basic risk threshold parameters according to the intelligent voice verification results in the intelligent risk warning. The server counts the outbound call verification results and calculates the risk identification rate based on the actual number of abnormal transactions and the number of transactions that trigger the intelligent outbound call verification and the customer connects.
[0140] In one embodiment, the risk identification rate can be expressed as the actual number of abnormal transactions in the scenario / the number of transactions that trigger the intelligent interactive outbound call and are connected by the customer.
[0141] S802: Adjust the risk threshold according to the risk identification rate.
[0142] Specifically, if the risk identification rate is greater than 50%, the risk threshold parameter is lowered; if the risk identification rate is less than 50%, the risk threshold parameter is raised.
[0143] In one embodiment, the risk threshold parameter is adjusted as follows: risk threshold parameter = actual number of abnormal transactions in the scenario / number of transactions that trigger the smart interactive outbound call and are connected by customers * 2 * basic threshold parameter.
[0144] The real-time early warning method for transaction risks provided by the present application generates corresponding transaction feature data in real time according to the preset feature templates of different risk scenarios and the database logs of the business platform; generates risky transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library; generates a transaction risk coefficient using the risky transaction information and matches the corresponding intelligent interaction scenario; performs intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario, thereby realizing real-time intelligent risk warning, further realizing risky transaction blocking, and improving the timeliness, concurrency and scalability of risk warning.
[0145] Among them, streaming computing is used to improve the efficiency of data processing while avoiding the large amount of resource occupation caused by big data computing; by generating corresponding transaction feature data in real time based on the preset feature templates of different risk scenarios and the database logs of the business platform, cross-business data integration is achieved, and risk prediction can be made using global data, which improves the accuracy of prediction results and is conducive to discovering hidden risky transaction behaviors; intelligent risk warnings are used to improve parallel service capabilities and response efficiency during business peak periods.
[0146] Based on the same inventive concept, the embodiments of the present application also provide a real-time early warning device for transaction risks, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the real-time early warning device for transaction risks is similar to that of the real-time early warning method for transaction risks, the implementation of the real-time early warning device for transaction risks can refer to the implementation of the method for determining the software performance benchmark, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0147] Fig. 9 : is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig. 9 As shown, the device comprises:
[0148] The real-time data generation unit 901 is used to generate corresponding transaction feature data in real time according to the preset feature templates of different risk scenarios and the database log of the business platform;
[0149] Specifically, the server performs streaming computing on the transaction data of the transaction parties in real time to provide real-time intelligent risk warnings for risky transactions. Stream computing is real-time computing for unbounded data streams, and the calculation results are quickly output or corrected. In the traditional data processing process, data is always collected first, and then put into the database. When people need it, they query the data through the database to get answers or perform related processing; streaming computing can well analyze large-scale flow data in real time during the ever-changing movement process, capture potentially useful information, and send the results to the next computing node.
[0150] The real-time data generation unit 901 obtains transaction data from the database log of the business platform, processes the transaction data in real time using preset feature templates of different risk scenarios, and obtains transaction feature data for risk prediction.
[0151] A risky transaction information generating unit 902 is used to generate risky transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library;
[0152] Specifically, the risk transaction information generation unit 902 obtains a pre-generated transaction risk prediction model library, which contains transaction risk prediction models for multiple risk scenarios and can perform risk predictions for different risk scenarios respectively. The risk transaction information generation unit 902 inputs the transaction feature data obtained after data processing into the corresponding transaction risk prediction model to generate corresponding risk transaction information, which is whether there is a risk in the transaction feature data under the risk scenario.
[0153] A transaction risk coefficient generating unit 903, configured to generate a transaction risk coefficient using the risk transaction information and match the corresponding intelligent interaction scenario;
[0154] Specifically, an intelligent interaction scenario corresponding to the anti-fraud prediction model is pre-established in the transaction risk coefficient generation unit 903. For the received risky transaction information, the transaction risk coefficient generation unit 903 automatically matches the appropriate intelligent interaction scenario according to the card type, transaction type and the region to which the user account belongs, and evaluates the risk coefficient of the risky transaction based on the current transaction amount and the user's historical transaction status.
[0155] The intelligent risk warning unit 904 is used to perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0156] Specifically, the intelligent risk warning unit 904 triggers an intelligent risk warning according to the obtained transaction risk coefficient and the corresponding intelligent interaction scenario, and verifies and warns the transaction parties in a timely manner to block risky transactions.
[0157] Fig.10 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig. 9 Based on the embodiment, further, Fig.10 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0158] The change record real-time reading module 1001 is used to read the transaction change record from the database log of the business platform in real time;
[0159] The transaction feature data generating module 1002 is used to extract features from the change records using preset feature templates of different risk scenarios to obtain corresponding transaction feature data.
[0160] Fig.11 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig. 9 Based on the embodiment, further, Fig.11 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0161] A transaction risk prediction model acquisition module 1101 is used to match a transaction risk prediction model of a corresponding risk scenario from the transaction risk prediction model library according to the risk scenario to which the transaction feature data belongs;
[0162] The risky transaction information generating module 1102 is used to generate risky transaction information according to the transaction characteristic data and the transaction risk prediction model of the corresponding risk scenario.
[0163] Fig.12 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig.11 Based on the embodiment, further, Fig.12 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0164] The data format conversion submodule 1201 is used to convert the format of the transaction feature data according to the input data format required by the transaction risk prediction model;
[0165] The prediction result generating submodule 1202 is used to input the transaction feature data after format conversion into the transaction risk prediction model to obtain the transaction risk prediction result;
[0166] The risky transaction information generating submodule 1203 is used to generate risky transaction information according to the transaction risk prediction result and the transaction characteristic data.
[0167] Fig.13 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig. 9 Based on the embodiment, further, Fig.13 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0168] A first risk coefficient calculation module 1301, used to calculate a transaction amount risk coefficient according to the transaction amount;
[0169] A second risk coefficient calculation module 1302, used to calculate a transaction number risk coefficient according to the transaction number;
[0170] The first transaction risk coefficient generating module 1303 is used to generate a transaction risk coefficient according to the transaction amount risk coefficient and the transaction number risk coefficient.
[0171] Fig.14 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig.13 Based on the embodiment, further, Fig.14 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0172] The third risk coefficient calculation module 1401 is used to calculate the remote login risk coefficient according to the number of logins in various places when the risk scenario to which the risk transaction information belongs is a remote login scenario;
[0173] The second transaction risk coefficient generating module 1402 is used to generate a transaction risk coefficient according to the transaction amount risk coefficient, the transaction number risk coefficient and the remote login risk coefficient.
[0174] Fig.15 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig. 9 Based on the embodiment, further, Fig.15 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0175] The transaction risk level determination module 1501 is used to determine the transaction risk level according to the transaction risk coefficient and a preset risk threshold;
[0176] The intelligent risk warning module 1502 is used to perform intelligent risk warning according to the transaction risk level and the intelligent interaction scenario.
[0177] Fig.16 is a schematic diagram of the structure of a real-time early warning device for transaction risks provided by an embodiment of the present application. Fig.15 Based on the embodiment, further, Fig.16 As shown, the transaction risk real-time warning device provided by the present application also includes:
[0178] The risk identification rate calculation unit 1601 is used to calculate the risk identification rate according to the intelligent risk warning result;
[0179] The risk threshold adjustment unit 1602 is used to adjust the risk threshold according to the risk identification rate.
[0180] The real-time early warning method and device for transaction risks provided in the present application generate corresponding transaction feature data in real time according to the preset feature templates of different risk scenarios and the database log of the business platform; generate risky transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library; use the risky transaction information to generate a transaction risk coefficient and match the corresponding intelligent interaction scenario; perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario, thereby realizing real-time intelligent risk warning, further realizing risky transaction blocking, and improving the timeliness, concurrency and scalability of risk warning.
[0181] Among them, streaming computing is used to improve the efficiency of data processing while avoiding the large amount of resource occupation caused by big data computing; by generating corresponding transaction feature data in real time based on the preset feature templates of different risk scenarios and the database logs of the business platform, cross-business data integration is achieved, and risk prediction can be made using global data, which improves the accuracy of prediction results and is conducive to discovering hidden risky transaction behaviors; intelligent risk warnings are used to improve parallel service capabilities and response efficiency during business peak periods.
[0182] Fig.17 is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, such as Fig.17 As shown, the electronic device may include: a processor 1701, a communication interface 1702, a memory 1703 and a communication bus 1704, wherein the processor 1701, the communication interface 1702 and the memory 1703 communicate with each other through the communication bus 1704. The processor 1701 may call the logic instructions in the memory 1703 to execute the following method: generating corresponding transaction feature data in real time according to the preset feature templates of different risk scenarios and the database log of the business platform; generating risk transaction information according to the transaction feature data and the pre-generated transaction risk prediction model library; generating a transaction risk coefficient using the risk transaction information and matching the corresponding intelligent interaction scenario; and performing intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0183] In addition, the logic instructions in the above-mentioned memory 1703 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0184] The present embodiment discloses a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: generating corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform; generating risk transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library; generating a transaction risk coefficient using the risk transaction information and matching the corresponding intelligent interaction scenario; and performing intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0185] The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: generating corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform; generating risk transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library; generating a transaction risk coefficient using the risk transaction information and matching the corresponding intelligent interaction scenario; and performing intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
[0186] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0187] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0188] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0189] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0190] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0191] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A real-time early warning method for transaction risks, characterized in that: include: Generate corresponding transaction feature data in real time based on the preset feature templates of different risk scenarios and the database logs of the business platform; Generate risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library; Generate a transaction risk coefficient using the risk transaction information and match the corresponding intelligent interaction scenario; An intelligent risk warning is performed based on the transaction risk coefficient and the intelligent interaction scenario.
2. The real-time early warning method for transaction risks according to claim 1, characterized in that: The corresponding transaction feature data is generated in real time according to the preset feature templates of different risk scenarios and the database log of the business platform, including: Read transaction change records from the business platform's database log in real time; The feature templates of different risk scenarios are used to extract features from the change records to obtain corresponding transaction feature data.
3. The real-time early warning method for transaction risks according to claim 1, characterized in that: The generating risky transaction information according to the transaction feature data and a pre-generated transaction risk prediction model library includes: According to the risk scenario to which the transaction feature data belongs, matching a transaction risk prediction model corresponding to the risk scenario from the transaction risk prediction model library; Generate risky transaction information based on the transaction feature data and the transaction risk prediction model of the corresponding risk scenario.
4. The real-time early warning method for transaction risks according to claim 3 is characterized in that: The generating risky transaction information according to the transaction feature data and the transaction risk prediction model corresponding to the risk scenario includes: Converting the transaction feature data into a format according to the input data format required by the transaction risk prediction model; Inputting the transaction feature data after format conversion into the transaction risk prediction model to obtain a transaction risk prediction result; Generate risk transaction information based on the transaction risk prediction result and the transaction characteristic data.
5. The real-time early warning method for transaction risks according to claim 1 is characterized in that: The risky transaction information includes transaction amount and transaction number; The step of generating a transaction risk coefficient by using the risky transaction information includes: Calculate the transaction amount risk factor based on the transaction amount; Calculate the transaction number risk factor based on the transaction number; A transaction risk coefficient is generated according to the transaction amount risk coefficient and the transaction number risk coefficient.
6. The real-time early warning method for transaction risks according to claim 5 is characterized in that: The risky transaction information also includes the number of logins in various places; and the step of generating a transaction risk coefficient using the risky transaction information also includes: When the risk scenario to which the risky transaction information belongs is a remote login scenario, a remote login risk coefficient is calculated according to the number of logins in each location; A transaction risk coefficient is generated according to the transaction amount risk coefficient, the transaction number risk coefficient and the remote login risk coefficient.
7. The real-time early warning method for transaction risks according to claim 1, characterized in that: The intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario includes: Determine the transaction risk level according to the transaction risk coefficient and the preset risk threshold; Intelligent risk warning is performed according to the transaction risk level and the intelligent interaction scenario.
8. The real-time early warning method for transaction risks according to claim 7 is characterized in that: After performing intelligent risk warning according to the transaction risk level and the intelligent interaction scenario, it also includes: Calculate the risk identification rate based on the intelligent risk warning results; The risk threshold is adjusted according to the risk identification rate.
9. A real-time early warning device for transaction risks, characterized in that: include: A real-time data generation unit, used to generate corresponding transaction feature data in real time according to preset feature templates of different risk scenarios and database logs of the business platform; A risky transaction information generating unit, configured to generate risky transaction information based on the transaction feature data and a pre-generated transaction risk prediction model library; A transaction risk coefficient generating unit, used to generate a transaction risk coefficient using the risk transaction information and match the corresponding intelligent interaction scenario; An intelligent risk warning unit is used to perform intelligent risk warning according to the transaction risk coefficient and the intelligent interaction scenario.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Digital currency data processing system and method based on block chain
CN119850211A
Transaction risk early warning method and system based on big data and storage medium
CN120198218A
