Credit card fraud pre-selection method, device and storage medium based on graph database

By using Spark Graphx to build a credit card fraud monitoring system, it solves the problem of insufficient performance of Neo4j in credit card fraud monitoring, achieves efficient data processing and fraud identification, and improves the monitoring efficiency and accuracy of credit card transaction data.

CN114238702BActive Publication Date: 2024-09-06CHINA CONSTR BANK CORP (DALIAN BRANCH)
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111599387.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-09-06
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

In the current technology, in credit card fraud monitoring, the Neo4j graph database has poor writing performance, cannot keep up with real-time performance, and has poor processing performance for very large nodes, resulting in low efficiency and insufficient utilization of hardware resources when processing massive credit card transaction data.

Method used

Spark Graphx is used to build a graph database. By obtaining credit card, merchant and repayer data, a full graph and a cluster graph are constructed, connectivity grouping and subdivision processing are performed, and the evaluation indicators of credit card consumption data are combined to perform fraud pre-selection, and the output meets the pre-selected requirements. Pre-selection results based on conditions.

Benefits of technology

It improves calculation efficiency, can process more data, shortens calculation time, identifies high-risk fraud customer groups, reduces the verification workload of business personnel, and outputs more accurate results, making it suitable for anti-fraud screening of large-scale credit card transaction data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238702B
    Figure CN114238702B
Patent Text Reader

Abstract

The present invention provides a credit card fraud pre-selection method device and storage medium based on a graph database. The method includes: obtaining data to be processed; using credit card data, merchant data and repayer data as node data, using the relationship data of the credit card data corresponding to the repayer and the relationship data of the credit card data corresponding to the merchant as edge data, thereby constructing a full graph; using credit card data and repayer data as node data, using the relationship data of the credit card data corresponding to the repayer as edge data, thereby constructing a cluster graph; performing grouping processing on the cluster graph based on connectivity, and all nodes connected by edges are classified into a subgraph, thereby obtaining a connectivity grouping result; connecting the large group to the credit card repaid by the repayer as the center point, and further obtaining a subdivided group result; after evaluating each group in the full graph based on an evaluation index, outputting a pre-selection result that meets a preset condition, wherein the evaluation index is obtained based on credit card consumption data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security monitoring technology, and in particular to a credit card fraud pre-selection method device and storage medium based on a graph database. Background Art

[0002] The transaction data volume of bank credit card system is large, and it is impossible to effectively detect fraudulent behavior by manpower alone. Usually, it is necessary to screen customers suspected of fraud through algorithms, and then manually review the risky customers automatically screened out. At present, the massive credit card transaction data is in the transition stage from data warehousing to data mining. The monitoring and mining methods of credit card fraud behavior vary from company to company. It is mainly through building a graph database in NEO4j, and then using the Louvain algorithm to divide the customer groups, sorting by customer size and calculating the average article rank score of the customer groups, the number of overdue customers, the number of suspicious merchants and other indicators to analyze the customer groups. Finally, the large customer groups suspected of fraud are exported for manual investigation. However, Neo4j has poor write performance for graph data structure, cannot keep up with real-time reading and writing, and is troublesome to import large amounts of data. Secondly, Neo4j has poor processing performance for super large nodes. When a node has a lot of edges, the speed of operations related to this node will be greatly reduced. In addition, Neo4j is very slow when processing graph databases. Non-distributed storage has high requirements for hard disk resources. If you want to improve performance and capacity, you can only increase the machine's hard disk, use higher memory and SSD, and the hardware will eventually reach a bottleneck.

[0003] In summary, Neo4j is suitable for storing graph data with small data volume, few modifications, many queries, and no super-large nodes. However, the anti-fraud detection that needs to be completed requires a graph database with large amounts of data, complex node relationships, and a large amount of graph calculations. Summary of the invention

[0004] According to the above-mentioned technical problems of large transaction data volume, large model calculation volume, long time consumption and high hardware requirements, a credit card fraud pre-selection method, device and storage medium based on graph database are provided. The present invention is embedded in the new generation of bank systems, which is convenient for credit card risk warning posts to judge the relationship between customer group-customer-account-merchant, peel off the layers, and assist with the coordination of bills and external data, so as to identify fraudulent customers, thereby timely preventing, controlling and resolving risks.

[0005] The technical means adopted by the present invention are as follows:

[0006] A credit card fraud pre-selection method based on a graph database, comprising:

[0007] Obtaining data to be processed, the data to be processed including credit card data, merchant data, and repayer data, and building a graph database through Spark Graphx;

[0008] The credit card data, merchant data and repayer data are used as node data, and the relationship data between the credit card data and the repayer and the relationship data between the credit card data and the merchant are used as edge data to construct a full graph.

[0009] The credit card data and the repayer data are used as node data, and the relationship data between the credit card data and the repayer is used as edge data to construct a cluster graph;

[0010] The cluster graph is grouped based on connectivity, and all nodes connected by edges are grouped into a subgraph, so as to obtain a connectivity grouping result, and a connectivity grouping id is assigned to each connectivity group. By merging the ids, the group corresponding to the connectivity group id is added to the full graph;

[0011] Based on the connectivity grouping results, a large group with a number of nodes greater than a preset threshold is extracted, and the large group is connected to the credit cards repaid by the repayer as the center point, and further subdivided group results are obtained, and the subdivided group results are sorted according to the number of cards connected by the repayer, and a unique subdivided id is assigned to each subdivided group based on the sorting results, and the groups corresponding to the subdivided ids are added to the full graph through id merging;

[0012] After evaluating each group in the full graph based on the evaluation indicators, the pre-selected results that meet the preset conditions are output, where the evaluation indicators are obtained based on credit card consumption data.

[0013] Further, the credit card data includes the credit card contract number, customer number, blocking code, account status, card type, customer billing address, work unit, expected amount and credit limit;

[0014] The merchant data includes: merchant number and merchant name;

[0015] The repayer data includes the repayer account number.

[0016] Furthermore, the relationship data between the credit card data and the repayer includes the credit card contract number, the repayer account number, the total number of repayments, and the total repayment amount;

[0017] The relationship data between the credit card data and the merchant includes the credit card contract number, the merchant number, the total number of purchases, and the total amount of purchases.

[0018] Furthermore, before constructing the full graph or cluster graph, a step of recoding the credit card contract number is included; accordingly,

[0019] Before outputting the pre-selected result, a step of decoding the credit card contract number is included.

[0020] Furthermore, the evaluation indicators include the number of customers, average consumption amount, average consumption amount of customers whose average consumption is higher than a threshold, the number of customers whose average consumption is higher than a threshold, the proportion of customers whose average consumption is higher than the threshold, and the average number of joint repayment accounts.

[0021] The present invention also discloses a credit card fraud pre-selection device based on a graph database, comprising:

[0022] An acquisition module is used to acquire the data to be processed, wherein the data to be processed includes credit card data, merchant data, and repayer data, and construct a graph database through Spark Graphx;

[0023] A full-graph construction module is used to construct a full-graph by taking credit card data, merchant data, and repayer data as node data, and taking the relationship data between credit card data and repayer, and the relationship data between credit card data and merchant as edge data;

[0024] A clustering graph construction module is used to use the credit card data and the repayer data as node data, and the relationship data between the credit card data and the repayer as edge data, so as to construct a clustering graph;

[0025] A connectivity grouping module is used to perform connectivity-based grouping processing on the cluster graph, and all nodes connected by edges are classified into a subgraph, so as to obtain a connectivity grouping result, assign a connectivity grouping id to each connectivity group, and add the group corresponding to the connectivity group id to the full graph through id merging.

[0026] A subdivision group module is used to extract a large group whose number of nodes is greater than a preset threshold based on the connectivity grouping result, connect the large group to the credit cards repaid by the repayer as the center point, further obtain subdivision group results, and sort the subdivision group results according to the number of cards connected by the repayer, assign a unique subdivision id to each subdivision group based on the sorting result, and add the group corresponding to the subdivision id to the full graph through id merging;

[0027] The output module is used to evaluate each group in the full graph based on the evaluation index and output the pre-selected results that meet the preset conditions, wherein the evaluation index is obtained based on the credit card consumption data.

[0028] The present invention also discloses a storage medium, which includes a stored program, wherein when the program is run, any of the above methods is executed.

[0029] Compared with the prior art, the present invention has the following advantages:

[0030] 1. The present invention uses Spark graphx to perform graph calculations, which can improve the calculation efficiency, allowing us to put more data into the graph database for calculation and get results faster. For example, if the same machine Neo4j can only put in 3 months of data for calculation, then Spark graphx may be able to put in more than 6 months of data for calculation. This can make the graph database better reflect the actual situation and better perform anti-fraud screening.

[0031] 2. The present invention uses cluster graphs (not full graphs) for calculations to speed up the calculation and table merging, calculation, and output speeds, and improves program efficiency. Performing intra-group subdivision operations can avoid deleting transaction edges in the graph, allowing the graph within the subdivided group to better represent the relationship between the repayer and all the credit cards that have been repaid.

[0032] 3. The index system disclosed in the present invention can more efficiently identify high-risk fraud customers and reduce the workload of business personnel in verification. When automatically finding fraud customers, outputting the most representative credit card data instead of directly outputting the full amount of data for business personnel to verify can also improve verification efficiency and reduce the workload of business personnel in verification.

[0033] 4. The present invention has unique processing methods for different groups and can adjust the output well. Determining the output scheme according to the characteristics of each group can make the output result more accurate and the subsequent parameter adjustment will be more convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1 The present invention is a flow chart of a credit card fraud pre-selection method based on a graph database. DETAILED DESCRIPTION

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

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] like Figure 1 As shown, the present invention provides a credit card fraud pre-selection method based on a graph database, comprising:

[0039] S1. Obtain the data to be processed, which includes credit card data, merchant data, and repayer data, and build a graph database through Spark Graphx.

[0040] Specifically, Spark Graphx is used to build a graph database, which contains three nodes: credit card, merchant, and repayer. Two edges: credit card-repayer, credit card-merchant. The credit card data includes: credit card contract number, customer number, blocking code, account status, card type, customer billing address, work unit, expected amount, and credit limit. Merchant data includes: merchant number and merchant name. Repayer data includes: repayer account number. Credit card-repayer edge data includes: credit card contract number, repayer account number, total number of repayments, and total repayment amount. Credit card-merchant edge data includes: credit card contract number, merchant number, total number of consumption, and total consumption amount.

[0041] S2. Take the credit card data, merchant data and repayer data as node data, and the relationship data between the credit card data and the repayer and the relationship data between the credit card data and the merchant as edge data, so as to construct a full graph.

[0042] S3. Use the credit card data and the repayer data as node data, and the relationship data between the credit card data and the repayer as edge data, so as to construct a cluster graph.

[0043] Specifically, Spark graphx needs to use Long type primary keys for connection when building a graph database. Based on the characteristics of credit card data, the credit card contract number will contain letters and cannot be converted into Long type. At this time, you only need to re-encode the credit card contract number and decode it when output. Two graphs are created in the present invention, a full graph (three nodes + 2 edges) and a cluster graph (credit card node, payee node, credit card-payee edge). The full graph is mainly used for query and the cluster graph is mainly used for calculation. The full graph will contain information on all nodes and edges for easy query. The cluster graph only contains the full data of node primary keys and edges necessary for calculation to reduce the scale of the graph and increase the speed of table merging, calculation, and output.

[0044] Spark Graphx used in the present invention is a distributed graph processing framework, which is based on the Spark platform to provide simple, easy-to-use and rich interfaces for graph computing and graph mining, which greatly facilitates the demand for distributed graph processing. When designing GraphX, both point segmentation and GAS were mature, and they were optimized in design and coding, and the best balance between function and performance was found. GraphX ​​saves a lot of computing and io expenses based on the operation of Spark caching rdd, so GraphX ​​is also particularly suitable for computing massive data. In short, Neo4j is more inclined to a graph database system, and is more suitable for graph storage and query. Spark GraphX, on the other hand, is more inclined to a graph computing system, and is good at building a graph-structured data set and calculating some useful things from it. The credit card anti-fraud project designs a large number of node and edge relationship operations, so using Spark GraphX ​​is a better choice.

[0045] S4. Perform grouping processing on the clustering graph based on connectivity, and classify all nodes connected by edges into a subgraph, so as to obtain the connectivity grouping result, assign a connectivity grouping id to each connectivity group, and add the group corresponding to the connectivity group id to the full graph through id merging.

[0046] Specifically, the connectivity grouping in the present invention is connected component clustering. After connecting the nodes, a huge relationship graph is generated. At this time, it needs to be divided into small groups. This method divides the large graph by the connectivity of the graph, and assigns all nodes connected by edges to a subgraph. Because we exclude merchants from the clustering process, the connectivity grouping can already reflect certain fraud characteristics. From a business perspective, a subgraph represents a group (or one) of credit cards and repayers who have repaid for them, as well as repayment-related data. The larger the subgraph, the more credit cards and repayers involved, which means the more complex the repayment relationship is and the greater the suspicion of fraud.

[0047] Furthermore, this step needs to first screen out some independent points (only credit cards without payers or only payers without credit cards), and delete these points in the two graphs according to their IDs. After that, each connectivity group has its unique group ID, and its ID is added to the full graph through the ID table from the clustering graph. Generally, the fraud risk of one-to-one repayment is small, and it can also be excluded in the first step. However, considering that one-to-one repayment may involve a small number of self-owned merchants cashing out, we choose to retain the one-to-one relationship and separately propose it in the subsequent detection for a special step of one-to-one repayment detection.

[0048] Regarding the connected component algorithm, if the merchant data is directly introduced, the connected graph will be too large, because most credit cards will be associated with concentrated consumption places such as large shopping malls or gas stations. Fraudulent relationships will not be reflected in this association. Therefore, we exclude merchant points and only perform connectivity grouping on repayers, credit cards and their connecting edges. This group represents the credit card and all its repayers.

[0049] Regarding the Louvain algorithm, nodes will be divided into smaller groups (relative to connected components) based on the in-and-out degrees. However, this algorithm will delete a large number of edges in order to achieve the purpose of splitting the groups. In actual tests, it was found that the weights of the two edges in the anti-fraud graph were very different. If Louvain clustering was performed on them, the edges connecting the merchant and the card would be almost completely deleted. The Louvain algorithm based only on the identification of co-payers (only the payer, credit card and their connecting edges were substituted) would also result in the repayment relationship edges being deleted. This situation may affect the subsequent steps of judging the fraudulent customer group based on the co-payer, so we changed its secondary clustering method.

[0050] In addition, sorting the list only by customer group size does not show that the higher the customer group, the greater the risk of fraud. Because credit card cash withdrawals will result in frequent large transactions, we are more focused on monitoring abnormal large transactions. We have added new evaluation indicators: average payment amount per customer group, large payment ratio of customer group, average large payment amount per customer group, and fluctuation degree of customer group payment to sort risky customer groups and make business verification more targeted.

[0051] S5. Based on the connectivity grouping results, a large group whose number of nodes is greater than a preset threshold is extracted. The large group is connected to the credit cards repaid by the repayer with the repayer as the center point, and further subdivided group results are obtained. The subdivided group results are sorted according to the number of cards connected by the repayer. A unique subdivision id is assigned to each subdivision group based on the sorting results. By id merging, the groups corresponding to the subdivision ids are added to the full graph.

[0052] Specifically, through connectivity grouping, large groups (the number of cards in the group is greater than 30) may still appear. The output report of this group is too large during subsequent detection, which is very difficult for business verification, but from the perspective of anti-fraud, the fraud risk is very high, so it is further divided to facilitate data analysis. We connect this type of group to the credit card that the repayer repays with the repayer as the center point, and sort it according to the number of cards connected by the repayer. This type of group has two group ids, the first is the connectivity group id, and the other is the segment id. First, sort by the size of the connectivity group, and then sort by the segment id within the group.

[0053] S6. After evaluating each group in the full graph based on the evaluation index, output the pre-selected results that meet the preset conditions, where the evaluation index is obtained based on the credit card consumption data.

[0054] Specifically, through the above steps, three types of groups can be obtained, namely, the first type is a common group, the second type is a large group, and the third type is a one-to-one group.

[0055] First, we analyze the graph structure of the fraudulent customer group, which has the following two characteristics:

[0056] a) Customers in the fraudulent customer group are connected to other customers in the customer group through common repayers and consumer merchants. The relationship between these customers is usually a many-to-many relationship, so the graph presents a dense network structure.

[0057] b) In the relationship map of fraudulent customers, there are usually multiple identical repayers and identical consumer merchants. Customers and repayers, and customers and merchants are usually in a many-to-many relationship.

[0058] Therefore, for each group, the evaluation is constructed according to the following indicators:

[0059] 1. Number of customers (counting the number of credit cards in the group): The more customers there are and the more complex the customer base, the higher the risk of fraud.

[0060] 2. Average consumption amount (total number of consumption within the group / total number of consumption transactions): The higher the average consumption amount, the higher the fraud risk.

[0061] 3. Average consumption > 1,000 yuan, average consumption amount of customers (screen customers with average consumption > 1,000 yuan in the customer base and calculate their average consumption amount): the most important indicator, average consumption per transaction > 1,000 yuan, proves that the credit card is rarely used in daily life. The larger the average consumption amount, the greater the fraud risk.

[0062] 4. Number of customers with average spending > 1,000 yuan (screen out customers with average spending > 1,000 yuan in the customer base and count the number of customers): *Important indicator, such as indicator 3. If the customer base has many users with an average spending of > 1,000 yuan per transaction, then the group has a higher risk of fraud.

[0063] 5. Ratio of customers with average consumption > 1,000 (number of customers with average consumption > 1,000 / total number of customers in the group): This directly represents the problem described in indicator 4. Generally, if it is >= 1 / 2, the group needs manual review.

[0064] 6. Average number of joint repayment accounts (number of credit cards in the group / number of repayers): The average number of cards each repayer in the group repays. The larger the number, the higher the fraud risk.

[0065] 7. Payment fluctuation degree: This item selects customers with an average consumption of >1000 in the group, sums up the absolute value of (consumption amount - average consumption amount) / average consumption amount) of each customer for each consumption, and divides it by the number of consumptions. The sum of this result is then divided by the number of customers with an average consumption of >1000 in the group as the payment fluctuation degree of the group. (Note: For each customer in the group that meets the requirements, their consumption fluctuation is calculated, and then the average of their fluctuations is set as the group fluctuation). It should be noted that this item requires excluding credit cards that have only been consumed once from the calculation, because consumption only once does not meet the fluctuation judgment requirements, and its volatility is calculated as 0, and the group fluctuation attribute will be greatly lowered. If this attribute of the group is >1, the risk can be basically ruled out, and the business performance is basically the purchase of a high-priced product once, and the rest is daily consumption. If this attribute of the group is <0.5, it proves that the consumption amount in the group is high and stable, and the fraud risk is high.

[0066] In this embodiment, the preferred threshold is 1000 yuan, and in fact, this parameter can be adjusted according to each row of data. Because fraudulent accounts frequently cash out large amounts, the overall consumption amount will be high, and if the entire group shows a high consumption amount, then the risk of the group being a fraud group is high.

[0067] Combined with the above indicator system, this implementation provides output methods for different groups:

[0068] General group output method: Sort the connectivity groups according to indicator 3 (average consumption > 1000 customers' average consumption amount) and review other items. Take out the customer ID with average consumption > 1000 in indicator 4, query the consumption and repayment information of this ID in the full map and output the result as an xlsx file for business personnel to screen. Here, because the actual card number and other data are too long, the business personnel may save the long data in scientific notation format after editing and saving the csv file, resulting in the loss of card number and other data. To prevent this from happening, the csv format of the commonly output file is changed to excel format. If fraud features are screened out, use the connectivity group ID to query the group and take out all the credit card IDs involved in the group, query the consumption and repayment information in the full map and output the risk fraud group in the form of a report for business personnel to review.

[0069] Large group output method: Write indicators (1-5) according to the segment ID in the connectivity graph (because indicators 6 and 1 are the same in this group), extract the repayer IDs with customer numbers (indicator 1) > 10 (variable), and output the relevant information of their repayment credit cards in the full scale, so that business personnel can screen them. Then, other segment groups are processed in the same way as ordinary groups.

[0070] One-to-one group output method: One-to-one group means one card corresponds to one payer. The structure is relatively simple. Simply calculate the average consumption amount of the card, sort it, and screen the one-to-one groups with high average payment. The rest of the operation is the same as the ordinary group.

[0071] The present invention also discloses a credit card fraud pre-selection device based on a graph database, comprising:

[0072] An acquisition module is used to acquire the data to be processed, wherein the data to be processed includes credit card data, merchant data, and repayer data, and construct a graph database through Spark Graphx;

[0073] A full-graph construction module is used to construct a full-graph by taking credit card data, merchant data, and repayer data as node data, and taking the relationship data between credit card data and repayer, and the relationship data between credit card data and merchant as edge data;

[0074] A clustering graph construction module is used to use the credit card data and the repayer data as node data, and the relationship data between the credit card data and the repayer as edge data, so as to construct a clustering graph;

[0075] A connectivity grouping module is used to perform connectivity-based grouping processing on the cluster graph, and all nodes connected by edges are classified into a subgraph, so as to obtain a connectivity grouping result, assign a connectivity grouping id to each connectivity group, and add the group corresponding to the connectivity group id to the full graph through id merging.

[0076] A subdivision group module is used to extract a large group whose number of nodes is greater than a preset threshold based on the connectivity grouping result, connect the large group to the credit cards repaid by the repayer as the center point, further obtain subdivision group results, and sort the subdivision group results according to the number of cards connected by the repayer, assign a unique subdivision id to each subdivision group based on the sorting result, and add the group corresponding to the subdivision id to the full graph through id merging;

[0077] The output module is used to evaluate each group in the full graph based on the evaluation index and output the pre-selected results that meet the preset conditions, wherein the evaluation index is obtained based on the credit card consumption data.

[0078] The present invention also discloses a storage medium, which includes a stored program, wherein when the program is run, any of the above methods is executed.

[0079] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0080] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0081] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.

[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0083] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for 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 invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A credit card fraud pre-selection method based on a graph database, characterized in that: include: Obtaining data to be processed, the data to be processed including credit card data, merchant data, and repayer data, and building a graph database through Spark Graphx; The credit card data, merchant data and repayer data are used as node data, and the relationship data between the credit card data and the repayer and the relationship data between the credit card data and the merchant are used as edge data to construct a full graph. The credit card data and the repayer data are used as node data, and the relationship data between the credit card data and the repayer is used as edge data to construct a cluster graph; The cluster graph is grouped based on connectivity, and all nodes connected by edges are grouped into a subgraph, so as to obtain a connectivity grouping result, and a connectivity grouping id is assigned to each connectivity group. By merging the ids, the groups corresponding to the connectivity grouping ids are added to the full graph; Based on the connectivity grouping results, a large group with a number of nodes greater than a preset threshold is extracted, and the large group is connected to the credit cards repaid by the repayer as the center point, and further subdivided group results are obtained, and the subdivided group results are sorted according to the number of cards connected by the repayer, and a unique subdivided id is assigned to each subdivided group based on the sorting results, and the groups corresponding to the subdivided ids are added to the full graph through id merging. After evaluating each group in the full graph based on the evaluation indicators, the pre-selected results that meet the preset conditions are output, where the evaluation indicators are obtained based on credit card consumption data.

2. A credit card fraud pre-selection method based on a graph database according to claim 1, characterized in that: The credit card data includes the credit card contract number, customer number, blocking code, account status, card type, customer billing address, work unit, expected amount and credit limit; The merchant data includes: merchant number and merchant name; The repayer data includes the repayer account number.

3. A credit card fraud pre-selection method based on graph database according to claim 1, characterized in that: The relationship data between the credit card data and the repayer includes the credit card contract number, the repayer account number, the total number of repayments, and the total repayment amount; The relationship data between the credit card data and the merchant includes the credit card contract number, the merchant number, the total number of purchases, and the total amount of purchases.

4. A credit card fraud pre-selection method based on a graph database according to claim 2 or 3, characterized in that: Before constructing the full graph or cluster graph, a step of recoding the credit card contract number is included; accordingly, Before outputting the pre-selected result, a step of decoding the credit card contract number is included.

5. The credit card fraud pre-selection method based on graph database according to claim 1, characterized in that: The evaluation indicators include the number of customers, the average consumption amount, the average consumption amount of customers whose average consumption is higher than a threshold, the number of customers whose average consumption is higher than a threshold, the proportion of customers whose average consumption is higher than the threshold, and the average number of joint repayment accounts.

6. A credit card fraud pre-selection device based on a graph database, characterized in that: include: An acquisition module is used to acquire the data to be processed, wherein the data to be processed includes credit card data, merchant data, and repayer data, and construct a graph database through Spark Graphx; A full-graph construction module is used to construct a full-graph by taking credit card data, merchant data, and repayer data as node data, and taking the relationship data between credit card data and repayer, and the relationship data between credit card data and merchant as edge data; A clustering graph construction module is used to use the credit card data and the repayer data as node data, and the relationship data between the credit card data and the repayer as edge data, so as to construct a clustering graph; A connectivity grouping module is used to perform connectivity-based grouping processing on the cluster graph, and all nodes connected by edges are classified into a subgraph, so as to obtain a connectivity grouping result, assign a connectivity grouping id to each connectivity group, and add the group corresponding to the connectivity group id to the full graph through id merging. A subdivision group module is used to extract a large group whose number of nodes is greater than a preset threshold based on the connectivity grouping result, connect the large group to the credit cards repaid by the repayer as the center point, further obtain subdivision group results, and sort the subdivision group results according to the number of cards connected by the repayer, assign a unique subdivision id to each subdivision group based on the sorting result, and add the group corresponding to the subdivision id to the full graph through id merging; The output module is used to evaluate each group in the full graph based on the evaluation index and output the pre-selected results that meet the preset conditions, wherein the evaluation index is obtained based on the credit card consumption data.

7. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the method according to any one of claims 1 to 5 is executed.

Citation Information

Patent Citations

  • Credit card fraud detection method based on feature extraction

    CN112330328A

  • Multi-rule anti-fraud prediction method and system based on user behavior data

    CN112700321A

  • Systems and methods

    EP3460682A1

  • Method of upgrading third party functionality in an electronic fraud management system

    US8036978B1