A real-time anti-fraud data processing method and system based on streaming computing

Through the real-time anti-fraud data processing method based on streaming computing, using technologies such as kafka and Flink, the problem of being unable to achieve low-latency, high-concurrency, and large-scale real-time anti-fraud business scenarios in existing technologies has been solved, achieving fast and accurate The anti-fraud scoring results provide an efficient basis for judgment for the anti-fraud detection system.

CN112862009BActive Publication Date: 2024-10-15CHINA CITIC BANK CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202110333981.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-10-15
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

Existing technology cannot realize low-latency, high concurrency, and large-scale real-time anti-fraud business scenarios. The existing anti-fraud identification system has insufficient processing efficiency and cannot prevent fraudulent transactions in real time.

Method used

Adopting a real-time anti-fraud data processing method based on streaming computing, by obtaining real-time transaction data, parsing legality and validity, querying offline feature data, converting feature data, forming a predictive feature input set, and inputting into a pre-trained anti-fraud prediction model For scoring, Kafka is used as the data source, and technologies such as Flink are used to achieve real-time data processing.

Benefits of technology

It realizes low-latency anti-fraud identification of high-concurrency and large-scale transaction data, provides fast, real-time, and accurate anti-fraud scoring results, and improves processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112862009B_ABST
    Figure CN112862009B_ABST
Patent Text Reader

Abstract

The present invention relates to a real-time anti-fraud data processing method and system based on streaming computing, including obtaining real-time transaction data; analyzing the legitimacy and validity of real-time transaction data; querying associated offline feature data according to real-time transaction data; converting real-time transaction data into multiple input data corresponding to different features and different dimensions under the features according to the offline feature data; aggregating the input data to form a real-time prediction feature input set; inputting the real-time prediction feature input set into a pre-trained anti-fraud prediction model to obtain an anti-fraud score. By connecting to common data sources such as Kafka, processing transaction data through streaming computing and efficiently generating feature sets for anti-fraud judgment, low-latency anti-fraud identification operations can be achieved for high-concurrency, large-scale real-time transaction data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field, and in particular to a real-time anti-fraud data processing method and system based on streaming computing. Background Art

[0002] 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. In view of the complex and diverse network environment, it is crucial to quickly prevent or identify possible fraudulent transactions from large-scale, high-concurrency, and multi-dimensional 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, which cannot meet the low-latency, high-concurrency, large-scale real-time anti-fraud business scenarios.

[0003] Specifically, the existing technology has been able to obtain a relatively reliable anti-fraud prediction model through massive data processing combined with actual experience. Inputting the processed transaction information data into the anti-fraud prediction model can analyze and obtain fraudulent transaction identification results with higher accuracy. 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 fraudulent transactions that have already occurred and try to make up for the impact of fraudulent transactions. It cannot meet real-time anti-fraud business needs or prevent fraudulent business. At the same time, when the system needs to face a large number of concurrent transaction requests at the same time, the data processing methods commonly used in existing anti-fraud identification systems cannot provide matching processing efficiency. Summary of the invention

[0004] In order to address the shortcomings of the prior art, the present invention proposes a real-time anti-fraud data processing method and system based on streaming computing, which connects to common data sources such as Kafka, processes transaction data through streaming computing and efficiently generates feature sets for anti-fraud judgment, thereby realizing low-latency anti-fraud identification operations for high-concurrency, large-scale real-time transaction data.

[0005] To achieve the above objectives, the technical solutions adopted by the present invention include:

[0006] A real-time anti-fraud data processing method based on streaming computing, characterized by comprising:

[0007] Get real-time transaction data;

[0008] Analyze the legitimacy and validity of real-time transaction data;

[0009] Query associated offline feature data based on real-time transaction data;

[0010] According to the offline feature data, the real-time transaction data is converted into multiple input data corresponding to different features and different dimensions under the features;

[0011] Aggregate input data to form a real-time prediction feature input set;

[0012] The real-time prediction feature input set is input into the pre-trained anti-fraud prediction model to obtain the anti-fraud score.

[0013] Furthermore, the obtaining of real-time transaction data includes segmenting the real-time transaction data according to a preset window time to generate formatted real-time transaction data.

[0014] Furthermore, the analysis of the legality and validity of real-time transaction data includes setting filters to perform legality checks and timeliness checks on formatted real-time transaction data; the legality check includes checking whether the transaction meets preset transaction rules; the timeliness check includes checking whether the real-time transaction data has delays and is valid.

[0015] Furthermore, querying the associated offline feature data according to the real-time transaction data includes extracting transaction feature primary key information from the real-time transaction data, and querying the stored offline feature data according to the transaction feature primary key information.

[0016] Furthermore, the converting of real-time transaction data into multiple input data corresponding to different features and different dimensions under the features according to offline feature data includes converting the real-time transaction data into multiple input data according to different features and different dimensions under the features, performing aggregation or accumulation operations on the multiple input data with different features and different dimensions under the features to obtain and store intermediate summary results.

[0017] Furthermore, the aggregating input data to form a real-time prediction feature input set includes integrating intermediate summary results of different features and dimensions with corresponding offline feature data to form a real-time prediction feature input set.

[0018] The present invention also relates to a real-time anti-fraud data processing system based on streaming computing, characterized in that it comprises:

[0019] Real-time feature processing engine for acquiring real-time transaction data;

[0020] Data verification module, used to analyze the legitimacy and validity of real-time transaction data;

[0021] An input set generation module, used to generate a real-time prediction feature input set;

[0022] Cache server, used to store offline feature data;

[0023] The anti-fraud evaluation module is used to call the pre-trained anti-fraud prediction model to perform anti-fraud scoring on real-time transaction data.

[0024] Further, the input set generation module includes an offline feature data query submodule, an input data generation submodule and an input data summary submodule;

[0025] The offline feature data query submodule queries the associated offline feature data according to the real-time transaction data;

[0026] The input data generation submodule converts the real-time transaction data into multiple pieces of input data according to different features and different dimensions under the features, performs aggregation or accumulation operations on the multiple pieces of input data with different features and different dimensions under the features to obtain and store intermediate summary results;

[0027] The input data aggregation submodule integrates the intermediate aggregation results of different features and dimensions with the corresponding offline feature data to form a real-time prediction feature input set.

[0028] The present invention also relates to a computer-readable storage medium, characterized in that a computer program is stored on the storage medium, and the computer program implements the above method when executed by a processor.

[0029] The present invention also relates to an electronic device, characterized in that it comprises a processor and a memory;

[0030] The memory is used to store real-time transaction data;

[0031] The processor is used to execute the above method by calling real-time transaction data.

[0032] The beneficial effects of the present invention are:

[0033] The real-time anti-fraud data processing method and system based on streaming computing described in the present invention uses Kafka as the data source, processes transaction data through streaming computing and efficiently generates feature sets for anti-fraud judgment, efficiently processes massive data, and quickly, real-time and accurately returns scoring results, providing a judgment basis for the anti-fraud detection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 The figure is a flow chart of the real-time anti-fraud data processing method based on streaming computing of the present invention.

[0035] Figure 2 It is a structural schematic diagram of the real-time anti-fraud data processing system based on streaming computing of the present invention. DETAILED DESCRIPTION

[0036] In order to more clearly understand the content of the present invention, it will be described in detail with reference to the drawings and embodiments.

[0037] like Figure 1 The figure shows a flow chart of a real-time anti-fraud data processing method based on streaming computing of the present invention, which mainly includes the following steps:

[0038] Obtain real-time transaction data, split the real-time transaction data according to the preset window time, and generate formatted real-time transaction data; preferably, consume the transaction data of the specified topic of Kafka through the Flink Kafka connector, and use Flink GlobalWindow to form formatted data;

[0039] Parse the legitimacy and validity of real-time transaction data, and set filters to perform legitimacy and timeliness checks on formatted real-time transaction data; the legitimacy check includes checking whether the transaction meets the preset transaction rules; the timeliness check includes checking whether the real-time transaction data has delays and is valid; preferably, use a window evictor filter to perform a legitimacy check on transaction data to check whether the transaction meets the established rules, and perform a timeliness check on transaction data to check whether the transaction data has delayed arrival and is valid;

[0040] Query the associated offline feature data according to the real-time transaction data, extract the transaction feature primary key information from the real-time transaction data, and query the offline feature data stored in the cache server through the arrangement API according to the transaction feature primary key information;

[0041] According to the offline feature data, the real-time transaction data is converted into multiple input data corresponding to different features and different dimensions under the features, and the real-time transaction data is converted into multiple input data according to different features and different dimensions under the features, and aggregation or accumulation operations are performed on the multiple input data of different features and different dimensions under the features to obtain and store the intermediate summary results; preferably, the flink flatMap operator is used to convert the data into multiple data according to different feature dimensions, and operations such as aggregation and accumulation of different feature dimensions are performed in the keystream, and the intermediate summary results are stored in the flink statebackend;

[0042] Aggregate input data to form a real-time prediction feature input set, and integrate intermediate summary results of different features and dimensions with corresponding offline feature data to form a real-time prediction feature input set; preferably, through the flink process operator, aggregate intermediate summary results of different feature dimensions, combine with offline feature data, and form a real-time prediction feature input set;

[0043] The real-time prediction feature input set is input into the pre-trained anti-fraud prediction model to obtain the anti-fraud score.

[0044] The present invention also relates to a Figure 2The real-time anti-fraud data processing system based on streaming computing of the structure shown is used to execute the above method, and mainly includes:

[0045] Real-time feature processing engine for acquiring real-time transaction data;

[0046] Data verification module, used to analyze the legitimacy and validity of real-time transaction data;

[0047] An input set generation module is used to generate a real-time prediction feature input set; further comprising an offline feature data query submodule, an input data generation submodule and an input data summary submodule; the offline feature data query submodule queries the associated offline feature data according to the real-time transaction data; the input data generation submodule converts the real-time transaction data into multiple input data according to different features and different dimensions under the features, performs aggregation or accumulation operations on multiple input data of different features and different dimensions under the features to obtain and store intermediate summary results; the input data summary submodule integrates the intermediate summary results of different features and dimensions with the corresponding offline feature data to form a real-time prediction feature input set;

[0048] Cache server, used to store offline feature data;

[0049] The anti-fraud evaluation module is used to call the pre-trained anti-fraud prediction model to perform anti-fraud scoring on real-time transaction data.

[0050] The present invention also relates to a computer-readable storage medium, on which is stored a computer program for implementing the above method when executed.

[0051] The present invention also relates to an electronic device, comprising a processor for calling real-time transaction data and executing the above method and a memory for storing the real-time transaction data.

[0052] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A real-time anti-fraud data processing method based on streaming computing, It is characterized in that include: Get real-time transaction data; Analyze the legitimacy and validity of real-time transaction data; Query associated offline feature data based on real-time transaction data; Converting the real-time transaction data into multiple pieces of input data corresponding to different features and different dimensions under the features according to the offline feature data, including converting the real-time transaction data into multiple pieces of input data according to different features and different dimensions under the features, performing aggregation or accumulation operations on the multiple pieces of input data with different features and different dimensions under the features to obtain and store intermediate summary results; Aggregating input data to form a real-time prediction feature input set, including integrating intermediate summary results of different features and dimensions with corresponding offline feature data to form a real-time prediction feature input set; The real-time prediction feature input set is input into the pre-trained anti-fraud prediction model to obtain the anti-fraud score.

2. The method according to claim 1, It is characterized in that The obtaining of real-time transaction data includes segmenting the real-time transaction data according to a preset window time to generate formatted real-time transaction data.

3. The method according to claim 2, It is characterized in that The analysis of the legality and validity of real-time transaction data includes setting filters to perform legality checks and timeliness checks on formatted real-time transaction data; the legality check includes checking whether the transaction meets preset transaction rules; the timeliness check includes checking whether the real-time transaction data has delays and is valid.

4. The method according to claim 1, It is characterized in that The querying of the associated offline feature data according to the real-time transaction data includes extracting transaction feature primary key information from the real-time transaction data, and querying the stored offline feature data according to the transaction feature primary key information.

5. A real-time anti-fraud data processing system based on streaming computing, It is characterized in that include: Real-time feature processing engine for acquiring real-time transaction data; Data verification module, used to analyze the legitimacy and validity of real-time transaction data; An input set generation module, used to generate a real-time prediction feature input set; Cache server, used to store offline feature data; The anti-fraud evaluation module is used to call the pre-trained anti-fraud prediction model to perform anti-fraud scoring on real-time transaction data; The input set generation module includes an offline feature data query submodule, an input data generation submodule and an input data summary submodule; The offline feature data query submodule queries the associated offline feature data according to the real-time transaction data; According to the offline feature data, the real-time transaction data is converted into a plurality of input data corresponding to different features and different dimensions under the features, and the input data generation submodule converts the real-time transaction data into a plurality of input data according to different features and different dimensions under the features, and performs aggregation or accumulation operations on the plurality of input data of different features and different dimensions under the features to obtain and store intermediate summary results; The input data aggregation submodule integrates the intermediate aggregation results of different features and dimensions with the corresponding offline feature data to form a real-time prediction feature input set.

6. A computer-readable storage medium, It is characterized in that The 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 4 is implemented.

7. An electronic device, It is characterized in that including a processor and a memory; The memory is used to store real-time transaction data; The processor is used to execute the method according to any one of claims 1 to 4 by calling real-time transaction data.

Citation Information

Patent Citations

  • Real-time anti-fraud system for financial transaction

    CN107103479A

  • Microloan system based on big data intelligent risk control and microloan method thereof

    CN107330785A

  • User behavior data processing method and device, electronic device and storage media

    CN107767168A

  • Real-time anti-fraud method and system based on network data and storage medium

    CN109300028A

  • Method for real-time fusion calculation of offline data and streaming data

    CN110309848A