An anti-fraud system and anti-fraud method based on image technology
Through the combination of image collection, background scene classification and similarity comparison modules, combined with the anti-fraud decision-making module, the existing technology solves the problems of insufficient recognition and low similarity comparison efficiency in complex scenes, and achieves a high level of user operation scenarios. Accuracy analysis and fraud identification improve the real-time and scalability of the system.
Patent Information
- Application Number
- CN202311453728.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-11-03
AI Technical Summary
The existing anti-fraud system has insufficient recognition accuracy in complex scenarios and cannot adapt to various complex scenarios and environments. The image background similarity is relatively inefficient, making it difficult to identify and classify fraud risks, affecting the comprehensiveness and real-time performance of the system.
Using the image acquisition module, image background scene classification module and image background similarity comparison module, through portrait model segmentation, image morphology expansion, generative network recovery and pooling processing, feature vector sets are obtained for comparison, combined with the anti-fraud decision-making module , achieving comprehensive analysis and high-accuracy identification of scenes.
It improves the accuracy and reliability of the anti-fraud system, can efficiently identify user operation scenarios, reduces misjudgments and missed judgments, improves the real-time and scalability of the system, and can effectively detect similar backgrounds and repeated submission behaviors.
Smart Images

Figure CN117523369B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information identification technology, and in particular to an anti-fraud system and method based on image technology. Background Art
[0002] Internet transactions are widely used in various financial scenarios due to their high efficiency and convenience. In reality, the theft of customer identity information and user financial accounts occurs frequently, resulting in fraud risks in transactions between the two parties.
[0003] Anti-fraud technology refers to the technology that identifies fraudulent behaviors such as transaction deception and information theft and then issues early warnings. Existing anti-fraud systems are usually based on the recognition of scene images and compare them with pre-stored anti-fraud recognition rules to identify fraudulent behaviors. The existing technology has the following shortcomings: (1) The accuracy of existing background recognition algorithms in complex scenes needs to be improved. For example, in the presence of complex lighting, occlusion or blur, the background recognition algorithm may not be able to accurately extract and recognize background information, resulting in misjudgment or missed judgment; (2) Existing background classification models can often only cover a part of common background types, and cannot adapt to various complex scenes and environments. This limits the system's ability to recognize and classify uncommon background types, affecting the comprehensiveness and applicability of the anti-fraud system. (3) The image background similarity comparison module may be inefficient when processing large-scale image databases. For example, for each input image, it is necessary to perform a similarity comparison with all images in the database, which may lead to long calculation time and high resource consumption, limiting the real-time and scalability of the system. (4) Existing image anti-fraud systems focus more on the main objects in the image, while the refinement and in-depth analysis of background features need to be strengthened. The accuracy and reliability of the anti-fraud system need to be improved.
[0004] Therefore, in view of the problem that online applications for personal retail loans cannot fully utilize the customer's background image data and cannot compare with the historical image library, resulting in incomplete analysis of the customer's scenario and causing fraud risks when applying for credit, it is urgent to develop an anti-fraud system and method with high accuracy and reliability. Summary of the invention
[0005] The present invention provides an anti-fraud system based on image technology, including an image acquisition module, an image background scene classification module, an image background similarity comparison module and an anti-fraud decision module;
[0006] The image acquisition module is used to acquire human and background images to obtain an original data set;
[0007] The image background scene classification module is used to identify and classify the original data set collected by the image acquisition module to obtain a classified data set;
[0008] The image background similarity comparison module includes a fraud sample database, a data conversion unit and a data comparison unit. The data conversion unit is used to perform vector conversion on the classified data set to obtain a feature vector set; the data comparison unit is used to compare the fraud sample database with the feature vector set to obtain a comparison result;
[0009] The anti-fraud decision module is used to identify the comparison results and output the anti-fraud results.
[0010] The anti-fraud system adopted by the present invention includes an image acquisition module, an image background scene classification module, an image background similarity comparison module and an anti-fraud decision module, wherein the image acquisition module is used to acquire characters and background images to obtain an original data set; the image background scene classification module is used to identify and classify the original data set acquired by the image acquisition module to obtain a classified data set; the image background similarity comparison module includes a fraud sample database, a data conversion unit and a data comparison unit, wherein the data conversion unit is used to perform vector conversion on the classified data set to obtain a feature vector set; the data comparison unit is used to compare the fraud sample database with the feature vector set to obtain a comparison result; the anti-fraud decision module is used to identify the comparison result and output an anti-fraud result. The combination of the image background scene classification module and the image background similarity comparison module is adopted to make full use of the background image data of the customer and efficiently compare it with the historical image library, so that the scene of the user performing loan operations and the like can be efficiently and accurately identified and comprehensively analyzed, and the anti-fraud result can be output with high accuracy and reliability in combination with the anti-fraud decision module.
[0011] The present invention provides an anti-fraud method, which is implemented by using the above-mentioned anti-fraud system based on image technology. The anti-fraud method specifically includes:
[0012] Step 1: Use the image acquisition module to collect the characters and background images in the scene to obtain the original data set;
[0013] Step 2: Use the image background scene classification module to classify the original data set to obtain a classified data set;
[0014] Step 3: Using the image background similarity comparison module to process the classified data set, including the following steps:
[0015] A data conversion unit is used to obtain a feature vector set, including:
[0016] Step 3.1, using a data conversion unit to segment the portraits in each image in the original data set using a model to obtain a portrait mask data set;
[0017] Step 3.2, obtain a mask image set by performing an image morphological dilation operation on the portrait mask dataset;
[0018] Step 3.3, put the mask image set into the model, and restore the damaged background information after segmentation through the generative network to obtain an image data set with restored background information;
[0019] Step 3.4, input the image data set with restored background information into the classifier to obtain a feature image set;
[0020] Step 3.5, the feature image set is processed by pooling to obtain a feature vector set;
[0021] The data comparison unit is used for comparison, specifically: the fraud sample database is compared with the feature vector set by the data comparison unit to obtain a comparison result;
[0022] Step 4: Input the comparison result obtained in step 3 into the anti-fraud decision module, and the anti-fraud decision module identifies the comparison result and outputs the anti-fraud result.
[0023] The anti-fraud method of the present invention obtains the feature vector set through the steps of portrait model segmentation, image morphology-based dilation operation, generative network recovery, input into a classifier for classification, and pooling of the feature image set, so that similar backgrounds and repeated submissions can be identified with high accuracy.
[0024] Preferably, the comparison using the data comparison unit is as follows: each feature vector in the feature vector set uses the HNSW recommendation algorithm to retrieve K similar vectors in the fraud sample database, and the number of similar feature points between the feature vector and the similar vector in the feature vector set is obtained. When the number of similar feature points is greater than or equal to a threshold, the feature vector and the similar vector are determined to be similar images, which is the comparison result.
[0025] Preferably, the image background scene classification module in step 2 includes transportation, workplace, home, shopping mall, outdoor, business outlets, no background and other eight scenes, and no background includes blurred background, solid color background or background with few scene features.
[0026] Preferably, the segformer model is used for segmentation in step 3.1, and the formula used by the segformer model is:
[0027]
[0028] Where: Attention(Q, K, V) represents the attention calculation formula; Q is the query vector sequence, which is the input layer output of the model; K is the key vector sequence, which is the output of the previous layer, with a value range of [-∞, +∞], and is normalized when used to obtain a distribution with a mean of 0 and a variance of 1; V is the value vector sequence, with a value of [64, 16, 4, 1]; T represents the number of vector dimensions; D head Represents each set of vectors after linear projection.
[0029] In step 3.3, the LAMA algorithm model is used to restore the damaged background information after segmentation; the optimized formula is:
[0030] L final =δL adv +αL HRFPL +βL DiscPL +γR1;
[0031] Where: L final Indicates the final overall loss; δL adv represents adversarial loss; α, β, and γ represent constant values, ranging from [0, 1]; L HRFPL Indicates high receptive field perceptual loss; L DiscPL represents the perceptual discriminator network, R1 is used for gradient penalty, and its value is [31, 38, 7].
[0032] In the step 3.4, a swin-transformer classifier is used to obtain a feature image set; in the step 3.5, the feature image set is subjected to a global average pooling layer to obtain a feature vector set.
[0033] Preferably, the classification process in step 2 is specifically:
[0034] Step 2.1, label the original data set to obtain a labeled data set;
[0035] Step 2.2, classify the labeled data set according to the strict-loose principle to obtain a classified data set. Further preferably, the strict-loose principle is: the data in the labeled data set are entered into a strict data set S(X) and a loose data set L(X) according to the strict division and the loose division standards, and finally the strict data set S(X) and the loose data set L(X) are taken as a union.
[0036] The anti-fraud method of the present invention adopts the strict-loose principle for classification processing, specifically: (1) The strict data set contains images that are very likely or even certain to have a certain label, and the possibility of belonging to a certain label is generally determined by the features in the image that clearly point to the scene; (2) The loose data set is for image samples that are not included in the strict data set. According to the principle of mandatory labeling, each sample is labeled as possibly belonging to a certain label. The image samples in this data set may be adapted to multiple labels, such as a sample may be a workplace or a home. This operation can accurately improve the accuracy of character segmentation, and can identify the situation where there are more than one person in the image, thereby improving the accuracy of anti-fraud.
[0037] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0039] Figure 1 It is a schematic diagram of the structure of the anti-fraud system in the preferred embodiment of the present invention. DETAILED DESCRIPTION
[0040] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.
[0041] See also Figure 1 , an anti-fraud system based on image technology, including an image acquisition module, an image background scene classification module, an image background similarity comparison module and an anti-fraud decision module;
[0042] The image acquisition module is used to acquire human and background images to obtain an original data set;
[0043] The image background scene classification module is used to identify and classify the original data set collected by the image acquisition module to obtain a classified data set;
[0044] The image background similarity comparison module includes a fraud sample database, a data conversion unit and a data comparison unit. The data conversion unit is used to perform vector conversion on the classified data set to obtain a feature vector set; the data comparison unit is used to compare the fraud sample database with the feature vector set to obtain a comparison result;
[0045] The anti-fraud decision module is used to identify the comparison results and output the anti-fraud results.
[0046] The above anti-fraud system is applied to anti-fraud, and the anti-fraud method specifically includes:
[0047] Step 1: Use an image acquisition module to collect images of people and background in the scene (such as a camera to collect data) to obtain an original data set;
[0048] Step 2: Use the image background scene classification module to classify the original data set to obtain a classified data set;
[0049] Step 3: Using the image background similarity comparison module to process the classified data set, including the following steps:
[0050] A data conversion unit is used to obtain a feature vector set, including:
[0051] Step 3.1, using a data conversion unit to segment the portraits in each image in the original data set using a model to obtain a portrait mask data set;
[0052] Step 3.2, obtain a mask image set by performing an image morphological dilation operation on the portrait mask dataset;
[0053] Step 3.3, put the mask image set into the model, and restore the damaged background information after segmentation through the generative network to obtain an image data set with restored background information;
[0054] Step 3.4, input the image data set with restored background information into the classifier to obtain a feature image set;
[0055] Step 3.5, the feature image set is processed by pooling to obtain a feature vector set;
[0056] The data comparison unit is used for comparison, specifically: the fraud sample database is compared with the feature vector set by the data comparison unit to obtain a comparison result;
[0057] Step 4: Input the comparison result obtained in step 3 into the anti-fraud decision module, and the anti-fraud decision module identifies the comparison result and outputs the anti-fraud result.
[0058] The present invention determines whether the credit application corresponding to the image involves fraudulent behavior, so as to dig out hidden individual fraud and fraud gangs, and effectively identify the potential fraud risk of credit applications. It generates corresponding anti-fraud alerts or takes further measures (such as directly approving the loan application, transferring it to manual case investigation, or directly rejecting it, etc.) to deal with fraudulent behavior.
[0059] Preferably, the image background scene classification module in step 2 includes transportation, workplace, home, shopping mall, outdoor, business outlets, no background and other eight scenes, and no background includes blurred background, solid color background or background with few scene features (specifically how to determine that scene features are scarce can be determined according to needs); scenes other than transportation, workplace, home, shopping mall, outdoor, business outlets and no background are classified as other scenes.
[0060] Steps 3.1-3.3 are equivalent to: using the segmented image background as the reference image (the subtracted face part is black), using the segmented face as the expansion shape, filling the real part of the background, obtaining a pure background, and eliminating more interference from the portrait information.
[0061] It is further preferred that the classification process in step 2 is specifically as follows: step 2.1, labeling the original data set to obtain a data set with labels; step 2.2, classifying the data set with labels according to the strict-loose principle to obtain a classified data set. The strict-loose principle is specifically:
[0062] 1) Define the strictly defined formula as follows:
[0063] S(X)={item i, item j, item k, ...}
[0064] Here, S(X) represents the set of objects identified by strict definition, and X represents the input data.
[0065] Meaning of strict definition: According to the strict definition, only those items from the input data set X that strictly meet certain conditions or characteristics are included in the set S(X). These specific conditions can include specific scenes, logos, locations, etc. Only when items meet these conditions, they are included in the set S(X). Items i, j, k can be a background wall with a bank logo, a house number, a car seat, a car seat belt, etc.
[0066] 2) The formula for defining the loose definition is as follows:
[0067] L(X)={item A, item B, item C, ...}
[0068] Among them, L(X) represents the set of objects identified by loose definition, and X represents the input data.
[0069] According to the loose definition, the set L(X) includes those items from the input dataset X that appear widely in different scenes, without being restricted by specific conditions or features. These items can include desks, bookcases, and other items that appear widely in a variety of daily scenes. The loose definition allows a variety of items to be included without requiring them to meet specific conditions or features. Items A, B, and C can be desks, bookcases without logos, ceilings made of ordinary materials with white color, etc.
[0070] The data in the labeled dataset are entered into a strict dataset S(X) and a loose dataset L(X) according to the strict and loose division standards. Finally, the strict dataset S(X) and the loose dataset L(X) are taken as the union (S(X)∪L(X)) for classification.
[0071] In this embodiment:
[0072] In step 3.1, the segformer model is used for segmentation. Here, based on the original self-attention, the operator value vector in softmax is optimized to obtain the following optimized formula, which improves the final segmentation efficiency and accuracy;
[0073]
[0074] Among them: Attention(Q, K, V) represents the attention calculation formula; Q is the query vector sequence, which is the input layer output of the model; K is the key vector sequence, which is the output of the previous layer, and its value range is [-∞, +∞]. It is normalized when used to obtain a distribution with a mean of 0 and a variance of 1; V is the value vector sequence, and its value range is [64, 16, 4, 1]; the inner product of Q and K is used to generate the attention score, which is then normalized by the softmax function to generate the attention weight. These attention weights are used to weight the value of V (numeric vector). The value range is defined as the first layer vector of the image input, and an aggregate representation is generated; T represents the number of vector dimensions; D head Represents each set of vectors after linear projection.
[0075] In step 3.3, the LAMA algorithm model is used to restore the damaged background information after segmentation, the final loss function is optimized, and the operator R1 is adjusted so that more image information can be retained. The optimized formula is as follows:
[0076] L final =δL adv +αL HRFPL +βL DiscPL +γR1;
[0077] Where: L final Indicates the final overall loss; δLadv represents adversarial loss; α, β, and γ represent constant values, ranging from [0, 1]; L HRFPL Indicates high receptive field perceptual loss; L DiscPL represents the perceptual discriminator network, R1 is used for gradient penalty, and its value is [31, 38, 7].
[0078] In step 3.4, the swin-transformer classifier is used to obtain a feature image set; in step 3.5, the feature image set is subjected to a global average pooling layer to obtain a feature vector set, which reduces the number of convolution layers and improves the overall computational efficiency. The feature vectors in the feature vector set are preferably one-dimensional vectors for more efficient storage (storing images as vectors can not only avoid the privacy issues of storing complete images, but also save storage space. Storing images as vectors saves more than 60% of space than storing them as original images).
[0079] Preferably, the comparison is performed using a data comparison unit as follows: each feature vector in the feature vector set is used with the HNSW recommendation algorithm to retrieve K similar vectors (such as a value of 100) in the fraud sample database, and the number of similar feature points between the feature vector and the similar vector in the feature vector set is obtained. When the number of similar feature points is greater than or equal to a threshold value, the feature vector and the similar vector are determined to be similar images, which is the comparison result.
[0080] The technical solution of the present invention is applied to carry out verification in a certain area. The image background similarity comparison module includes 10,000+ pictures from the five major districts of a certain city. The collected and restored images are compared with the 10,000+ pictures. Currently, 100 pictures are initially screened, and then fine screening is carried out on the basis of the 100 pictures, and 10 pictures are precisely screened out. Combined with the scene and GPS information, if there are pictures from different angles of the same location, it is a fixed-point fraud; if the GPS information is located in different locations in the five major districts, it is a group fraud. Currently, through business case investigation and analysis, 25 cases have been confirmed to be intermediary submissions, and the amount involved is over one million yuan.
[0081] By applying the technical solution of the present invention, the image of the current customer can be matched with the historical full-volume images in a one-to-many manner, and the most similar image can be found in the massive images. On the basis of the traditional technology of graphic analysis of the background, the detection of feature points is added to finely screen the key parts of the image (for example, if the background contains the same object, the same billboard, etc., even if the angle is different, a timely warning will be issued). This helps to expand anti-fraud prevention and control measures and improve the prevention and control effect, and can achieve the following effects:
[0082] 1. Detection of similar backgrounds: Background similarity comparison can effectively detect facial images with similar backgrounds to the input image in the historical image library. It is not just a one-to-one comparison, but a one-to-many directional comparison based on scene classification results, GPS positioning information, etc., and feature point identification of some background objects that cannot be distinguished by the human eye for further verification and judgment by investigators. The number of similar feature points between the image (feature vector in the feature vector set) and the similarity vector is obtained. When the number of similar feature points is greater than or equal to the threshold, the feature vector and the similarity vector are determined to be similar images. The system can quickly find facial images with the same or similar background in the historical database, thereby identifying potential fraud gangs or repeated submissions by the same person.
[0083] 2. Detection of duplicate submissions: By comparing the background similarity between face images, duplicate submissions can be effectively detected. If the same person submits multiple face images at different times or in different scenes, and the backgrounds of these images are highly similar, the system can identify this duplicate submission behavior and take corresponding measures or issue an alarm.
[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An anti-fraud method based on image technology, characterized in that: The anti-fraud system is used, and the anti-fraud system includes an image acquisition module, an image background scene classification module, an image background similarity comparison module, and an anti-fraud decision module; The image acquisition module is used to acquire human and background images to obtain an original data set; The image background scene classification module is used to identify and classify the original data set collected by the image acquisition module to obtain a classified data set; The image background similarity comparison module includes a fraud sample database, a data conversion unit and a data comparison unit. The data conversion unit is used to perform vector conversion on the classified data set to obtain a feature vector set; the data comparison unit is used to compare the fraud sample database with the feature vector set to obtain a comparison result; The anti-fraud decision module is used to identify the comparison results and output the anti-fraud results; The anti-fraud method specifically includes: Step 1: Use the image acquisition module to collect the characters and background images in the scene to obtain the original data set; Step 2: Use the image background scene classification module to classify the original data set to obtain a classified data set; Step 3: Using the image background similarity comparison module to process the classified data set, including the following steps: A data conversion unit is used to obtain a feature vector set, including: Step 3.1, using a data conversion unit to segment the portraits in each image in the original data set using a model to obtain a portrait mask data set; Step 3.2, obtain a mask image set by performing an image morphological dilation operation on the portrait mask dataset; Step 3.3, put the mask image set into the model, and restore the damaged background information after segmentation through the generative network to obtain an image data set with restored background information; Step 3.4, input the image data set with restored background information into the classifier to obtain a feature image set; Step 3.5, the feature image set is processed by pooling to obtain a feature vector set; The data comparison unit is used for comparison, specifically: the fraud sample database is compared with the feature vector set by the data comparison unit to obtain a comparison result; Step 4: input the comparison result obtained in step 3 into the anti-fraud decision module, and the anti-fraud decision module identifies the comparison result and outputs the anti-fraud result; In step 3.1, the segformer model is used for segmentation, and the formula used by the segformer model is: Where: Attention(Q,K,V) represents the attention calculation formula; Q is the query vector sequence, which is the input layer output of the model; K is the key vector sequence, which is the output of the previous layer, with a value range of [-∞,+∞], and is normalized when used to obtain a distribution with a mean of 0 and a variance of 1; V is the value vector sequence, with a value of [64,16,4,1]; T represents the number of vector dimensions; D head Represents each set of vectors after linear projection; In step 3.3, the LAMA algorithm model is used to restore the damaged background information after segmentation; the formula used in the LAMA algorithm model is: L final =δL adv +αL HRFPL +βL DiscPL +γR1; Where: L final Indicates the final overall loss; δL adv represents adversarial loss; α, β, and γ represent constant values, ranging from [0, 1]; L HRFPL Indicates high receptive field perceptual loss; L DiscPL represents the perceptual discriminator network, R1 is used for gradient penalty, and its value is [31,38,7].
2. The anti-fraud method according to claim 1, characterized in that: The specific steps of using the data comparison unit for comparison are as follows: each feature vector in the feature vector set uses the HNSW recommendation algorithm to retrieve K similar vectors in the fraud sample database, and the number of similar feature points between the feature vector and the similar vector in the feature vector set is obtained. When the number of similar feature points is greater than or equal to a threshold, the feature vector and the similar vector are determined to be similar images, which is the comparison result.
3. The anti-fraud method according to claim 1, characterized in that: The image background scene classification module in step 2 includes eight scenes: transportation, workplace, home, shopping mall, outdoor, business outlets, no background and others. No background includes blurred background, solid color background or background with few scene features.
4. The anti-fraud method according to any one of claims 1 to 3, characterized in that: In the step 3.4, a swin-transformer classifier is used to obtain a feature image set; in the step 3.5, the feature image set is subjected to a global average pooling layer to obtain a feature vector set.
5. The anti-fraud method according to claim 1, characterized in that: The classification process in step 2 is specifically as follows: Step 2.1, label the original data set to obtain a labeled data set; Step 2.2: Classify the labeled data set according to the strict-loose principle to obtain a classified data set.
6. The anti-fraud method according to claim 5, characterized in that: The strict-loose principle is specifically: the data in the labeled data set are entered into a strict data set S(X) and a loose data set L(X) according to the strict division and loose division standards, and finally the strict data set S(X) and the loose data set L(X) are taken as the union.
