Image fraud detection method, device, equipment, storage medium and program product
Through multi-dimensional feature matching and feature extraction, combined with preset models and clustering processing, it solves the problem of insufficient depth of fraud detection caused by a single image analysis method in the existing technology, and achieves accurate identification of fraud and improved detection accuracy. .
Patent Information
- Application Number
- CN202410800386.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The image analysis method in the existing technology is single and cannot accurately detect images with fraudulent behaviors, resulting in insufficient depth of fraud detection.
Fraud detection is comprehensively carried out through multi-dimensional feature matching of image samples to be detected, including feature matching and feature extraction based on pixel information, combined with preset feature extraction models and clustering processing.
It achieves more accurate and comprehensive identification of fraud, reduces detection misjudgment rates, and improves the accuracy and reliability of fraud detection.
Smart Images

Figure CN118379560B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image detection technology, and in particular to an image fraud detection method, device, equipment, storage medium and program product. Background Art
[0002] With the rapid development of financial technology, online fraud has become one of the focuses of social attention. Especially in the financial field, gang fraud has caused huge losses to financial institutions and users. Traditional anti-fraud technology has a single image analysis method and the fraud detection is not deep enough, which makes it impossible to accurately detect images with fraudulent behavior. Therefore, traditional anti-fraud technology can no longer meet the growing fraud methods and complexity. Summary of the invention
[0003] The main purpose of the present invention is to provide an image fraud detection method, device, equipment, storage medium and program product, aiming to solve the technical problem that the existing technology has a single image analysis method, the fraud detection is not in-depth enough, and it is impossible to accurately detect images containing fraudulent behavior.
[0004] To achieve the above object, the present invention provides an image fraud detection method, which comprises the following steps:
[0005] Performing feature matching on a plurality of image samples to be detected according to pixel point information of the image samples to be detected, to obtain a first feature matching result;
[0006] Inputting the image sample to be detected into a preset feature extraction model to perform feature extraction and obtain a feature extraction result;
[0007] Performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result;
[0008] Fraud detection is performed on the image sample to be detected according to the first feature matching result and the second feature matching result.
[0009] Optionally, before performing feature matching on a plurality of the image samples to be detected according to pixel point information of the image samples to be detected and obtaining a first feature matching result, the method further includes:
[0010] Obtaining original collected image data;
[0011] Preprocessing the original collected image data to obtain an initial image sample;
[0012] Extracting background features from the initial image sample to obtain initial background feature information of the initial image sample;
[0013] The initial image samples are screened based on the initial background feature information to determine image samples to be detected in the initial image samples.
[0014] Optionally, screening the initial image samples based on the initial background feature information to determine the image samples to be detected in the initial image samples includes:
[0015] Acquire initial background elements in each initial image sample based on the initial background feature information;
[0016] Get the whitelist background feature library;
[0017] Comparing the initial background element with the whitelist background elements in the whitelist background feature library;
[0018] Determine the background similarity of each initial image sample according to the comparison result;
[0019] The initial image samples are screened based on the background similarity to determine image samples to be detected in the initial image samples, wherein the background similarity of the image samples to be detected is less than or equal to a preset similarity threshold.
[0020] Optionally, performing feature matching on a plurality of the image samples to be detected according to pixel point information of the image samples to be detected to obtain a first feature matching result includes:
[0021] Performing scale space extreme value detection on the image sample to be detected according to the pixel point information of the image sample to be detected, and obtaining pixel extreme value information of the image sample to be detected;
[0022] Extracting a first feature point in each to-be-detected image sample based on the pixel extreme value information;
[0023] Describing the first feature point to obtain first description information;
[0024] Determine distance information between first feature points based on the first description information;
[0025] Feature matching is performed on the plurality of image samples to be detected according to the distance information to obtain a first feature matching result.
[0026] Optionally, performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result includes:
[0027] Acquire a second feature point in each image to be detected based on the feature extraction result;
[0028] Describing the second feature point to obtain second description information;
[0029] Performing clustering processing on the second feature points according to the second description information to obtain at least one feature cluster;
[0030] Based on the feature cluster, feature matching is performed on the plurality of image samples to be detected to obtain a second feature matching result.
[0031] Optionally, performing fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result includes:
[0032] Determine a weight configuration parameter according to the first feature matching result and the second feature matching result;
[0033] Based on the weight configuration parameters, weights are respectively assigned to the first feature matching result and the second feature matching result;
[0034] Determine the risk level of each image sample to be detected according to the weight distribution result, the first feature matching result and the second feature matching result;
[0035] Fraud detection is performed on the image sample to be detected based on the risk level.
[0036] In addition, to achieve the above-mentioned purpose, the present invention further proposes an image fraud detection device, the image fraud detection device comprising:
[0037] A first feature matching module, used for performing feature matching on a plurality of image samples to be detected according to pixel point information of the image samples to be detected, to obtain a first feature matching result;
[0038] A feature extraction module is used to input the image sample to be detected into a preset feature extraction model to perform feature extraction and obtain a feature extraction result;
[0039] A second feature matching module, used for performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result;
[0040] A fraud detection module is used to perform fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes an image fraud detection device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image fraud detection method described above.
[0042] In addition, to achieve the above objectives, the present application also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the image fraud detection method described above are implemented.
[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the image fraud detection method described above are implemented.
[0044] The present invention performs feature matching on multiple image samples to be detected based on pixel point information of the image samples to be detected to obtain a first feature matching result, inputs the image samples to be detected into a preset feature extraction model for feature extraction to obtain a feature extraction result, performs feature matching on multiple image samples to be detected based on the feature extraction result to obtain a second feature matching result, and performs fraud detection on the image samples to be detected based on the first feature matching result and the second feature matching result; since the present invention performs feature matching on the image samples to be detected from two dimensions respectively, the problem of a single feature matching method is effectively avoided, and fraud behavior detection is comprehensively performed on the image samples to be detected based on the feature matching results of the two dimensions, thereby accurately identifying the similarities between the image samples to be detected, thereby achieving more accurate and comprehensive identification of fraud behavior, greatly reducing the detection misjudgment rate, and effectively improving the accuracy and reliability of fraud detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0047] Figure 1 It is a structural diagram of an image fraud detection device in a hardware operating environment involved in an embodiment of the present invention;
[0048] Figure 2 This is a flow chart of a first embodiment of the image fraud detection method of the present invention;
[0049] Figure 3 This is a flow chart of a second embodiment of the image fraud detection method of the present invention;
[0050] Figure 4Schematic diagram of the fraud detection process in the second embodiment of the image fraud detection method of the present invention;
[0051] Figure 5 A schematic diagram of a flow chart of a third embodiment of the image fraud detection method of the present invention;
[0052] Figure 6 FIG. 4 is a structural block diagram of the first embodiment of the image fraud detection device of the present invention.
[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0055] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of an image fraud detection device in the hardware operating environment involved in the embodiment of the present invention.
[0056] like Figure 1 As shown, the image fraud detection device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0057] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the image fraud detection device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0058] like Figure 1As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and an image fraud detection program.
[0059] exist Figure 1 In the image fraud detection device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the image fraud detection device of the present invention can be set in the image fraud detection device, and the image fraud detection device calls the image fraud detection program stored in the memory 1005 through the processor 1001, and executes the image fraud detection method provided by the embodiment of the present invention.
[0060] The present invention provides an image fraud detection method, referring to Figure 2 , Figure 2 FIG. 4 is a flow chart of a first embodiment of an image fraud detection method according to the present invention.
[0061] In this embodiment, the image fraud detection method includes the following steps:
[0062] Step S10: performing feature matching on a plurality of image samples to be detected according to pixel information of the image samples to be detected, to obtain a first feature matching result.
[0063] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes an image fraud detection device (referred to as the detection device) as an example to illustrate this embodiment and the following embodiments.
[0064] It should be noted that the image sample to be detected can be an on-site image of a newly registered user or an image of the user's remote face-to-face interview. For example, the image sample to be detected can be a photo of the user holding his or her ID card, a video screenshot, or other images required for identity verification.
[0065] It should be understood that the detection device may perform image acquisition in advance to obtain image samples to be detected for fraud detection, and then perform feature matching on the image samples to be detected to determine the feature similarity between the image samples to be detected.
[0066] It can be understood that the pixel information may be relevant parameter information of the pixels of the image sample to be detected in the multi-scale space. For example, the pixel information may include extreme value information and spatial distribution information of the pixels in the image sample to be detected.
[0067] In a specific implementation, the detection device can detect key points in an image through a nonlinear scale-invariant feature detector, describe these key points, obtain description information, and then perform feature matching on multiple images to be detected based on the description information to determine the similarity between each image sample to be detected.
[0068] It can be understood that feature matching may include feature point matching. The detection device can extract key feature points in the image samples to be detected based on pixel point information, and then match the feature points between the image samples to be detected to determine mutually matching feature point pairs, thereby achieving feature similarity between the image samples to be detected.
[0069] In some embodiments, the detection device may perform feature extraction on the image sample to be detected based on the AKAZE algorithm, and then perform feature matching on multiple image samples to be detected based on the feature extraction result to obtain a first feature matching result, wherein the AKAZE algorithm is a nonlinear scale-invariant feature detector.
[0070] In some embodiments, the detection device can obtain initial image samples to be detected through image acquisition. Since the initial image sample data volume is huge, in order to improve processing efficiency, the detection device can perform coarse matching on the initial image samples, thereby filtering and screening out normal image samples without abnormalities, retaining image samples to be detected that are suspected of fraud, and then performing a subsequent fine matching stage on the image samples to be detected.
[0071] Furthermore, in order to accurately perform feature matching on the image sample to be detected, the above step S10 may include:
[0072] Performing scale space extreme value detection on the image sample to be detected according to the pixel point information of the image sample to be detected, and obtaining pixel extreme value information of the image sample to be detected;
[0073] Extracting a first feature point in each to-be-detected image sample based on the pixel extreme value information;
[0074] Describing the first feature point to obtain first description information;
[0075] Determine distance information between first feature points based on the first description information;
[0076] Feature matching is performed on the plurality of image samples to be detected according to the distance information to obtain a first feature matching result.
[0077] It should be noted that the detection device can construct an image pyramid through a nonlinear diffusion equation, which helps to remove noise and retain important structural information such as edges. In the constructed pyramid, the first feature point is detected by finding the extreme value of each pixel point in the scale space, that is, the maximum response value at different scales, ensuring that the first feature point is scale invariant.
[0078] In some embodiments, the detection device may use a nonlinear diffusion equation to construct an image pyramid. This process smoothes the image while keeping the edges sharp by continuously applying nonlinear filters. The nonlinear diffusion equation is as follows:
[0079]
[0080] Where I is the image function, t is the diffusion time, and are the first-order and second-order gradients of the image, is the diffusion coefficient. The detection device can dynamically adjust the diffusion coefficient according to the size of the image gradient to ensure that the edge is protected and the noise is suppressed.
[0081] After building the pyramid, the detection device can find extreme points in each scale space, that is, detect local maxima or minima in both the image domain and the scale domain, thereby improving the accuracy of the detection. Once the first feature point is detected, the detection device can accurately locate the first feature point and refine the position and scale of the key point by fitting a polynomial model. In addition, a main direction is assigned to each first feature point to achieve rotation invariance. This step usually involves calculating the gradient direction distribution of the area around the key point and finding the peak direction as the main direction.
[0082] For each keypoint, the detection device can generate a descriptor, which is an important part of feature matching. The detection device can use binary descriptors to generate a series of binary tests by comparing the intensity of pixel pairs in the neighborhood of the keypoint. These test results are combined into a descriptor vector, which is compact and computationally efficient, and has good discrimination and robustness, thereby obtaining the first description information.
[0083] It can be understood that the detection device can use a binary descriptor based on pixel intensity comparison to generate a compact descriptor vector by comparing pixel pairs in the area around the feature point; the detection device can also calculate the distance between different feature points to find matching feature point pairs, thereby determining the closest matching point to each first feature point, and then perform feature matching on the image samples to be detected based on the matched feature point pairs to determine the similarity between the image samples to be detected.
[0084] It should be noted that the first description information may be a first feature point descriptor or a description vector, and the first description information may be local image information capturing the area around the first feature point.
[0085] It should be noted that the detection equipment can extract features from the same picture from two different dimensions. These features include repeated specific objects or structures, similar lighting and shadow patterns, and repeated landmarks or background elements, which may indicate that the pictures were taken under the same background. In this case, there is a risk of fraud.
[0086] In some embodiments, the detection device may perform feature matching on the image sample to be detected based on the BFMatcher algorithm. The BFMatcher algorithm may be used to calculate the distance between each first feature point, thereby finding a matching pair of feature points.
[0087] Step S20: inputting the image sample to be detected into a preset feature extraction model to perform feature extraction and obtain a feature extraction result.
[0088] It should be noted that the preset feature extraction model can be an image feature detection and description model based on deep learning (such as the D2-Net model). The above preset feature extraction model can be used to detect and describe local features in the image. The preset feature extraction model can provide richer and more robust image features through the feature representation learned by the deep convolutional neural network.
[0089] In some embodiments, the detection device may pre-process the image to be detected before inputting the image sample to be detected into a preset feature extraction model for feature extraction to improve feature processing efficiency. The pre-processing may include but is not limited to the following methods:
[0090] Grayscale the image samples to be detected, and convert the color image into a grayscale image;
[0091] Scale the image samples to be detected to a fixed size, especially when the sizes of the image samples to be detected vary greatly;
[0092] Normalize the pixel values of the image samples to be detected to a preset range to ensure numerical stability and accelerate algorithm convergence;
[0093] Perform enhancement processing on the image samples to be detected, for example, histogram equalization, contrast adjustment, sharpening, etc. can be used on the image samples to be detected, so as to improve the quality of the image samples to be detected and enhance the visibility of details;
[0094] Perform noise reduction processing on the image samples to be detected, such as performing median filtering, Gaussian filtering, etc. on the image samples to be detected, so as to reduce the noise of the image samples to be detected and avoid interfering with feature extraction;
[0095] Perform edge detection or contour extraction on the image samples to be detected, so as to highlight the boundary or contour information in the image samples to be detected and improve the efficiency of feature extraction;
[0096] The orientation is geometrically corrected, for example, geometric transformations such as perspective transformation and affine transformation may be applied to correct the tilt or deformation of the image sample to be detected.
[0097] Step S30: performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result.
[0098] It should be noted that feature matching may include feature clustering and feature grouping, etc. The second feature matching result may be a grouping result of feature points or a clustering cluster of feature points.
[0099] It is understandable that the detection device clusters and groups the image feature points of the image sample to be detected based on the feature extraction result to find repeated patterns or structures in the image. More significant and representative features can be extracted through clustering, thereby improving the accuracy of matching.
[0100] Furthermore, in order to improve the feature matching accuracy of different dimensions and thus improve the detection accuracy, the above step S30 may include:
[0101] Acquire a second feature point in each image to be detected based on the feature extraction result;
[0102] Describing the second feature point to obtain second description information;
[0103] Performing clustering processing on the second feature points according to the second description information to obtain at least one feature cluster;
[0104] Based on the feature cluster, feature matching is performed on the plurality of image samples to be detected to obtain a second feature matching result.
[0105] It can be understood that the detection device can perform feature matching on the image samples to be detected based on the two dimensions of distance matching and cluster matching, thereby accurately detecting specific objects or structures that appear repeatedly in the image samples to be detected, similar lighting and shadow patterns, and repeated landmarks and / or background elements, thereby accurately detecting and processing fraud in the image samples to be detected.
[0106] In a specific implementation, the detection device can extract the second feature point and descriptor from the image sample to be detected, cluster all the extracted descriptors into at least one feature cluster, and the centers (centroids) of these clusters form a visual dictionary, that is, a vocabulary of image features. For each image, the clustering result of K-Means is used to encode each descriptor as the index of the nearest cluster center, and the feature points are grouped based on the index to find repeated patterns or structures in the image. Clustering can extract more significant and representative features, thereby improving the accuracy of matching.
[0107] In some embodiments, in order to improve the accuracy of feature matching, the detection device uses a K-Means clustering algorithm to group feature points to find repeated patterns or structures in the image. More significant and representative features can be extracted through clustering, thereby improving the accuracy of matching.
[0108] In some embodiments, the combined use of the BFMatcher algorithm and the K-Means clustering algorithm can significantly improve the accuracy and efficiency of feature matching. By taking advantage of the simplicity and effectiveness of the BFMatcher algorithm, potential matching feature point pairs can be quickly found; while the K-Means clustering algorithm can further optimize the grouping of feature points and extract more representative features, thereby improving the accuracy and reliability of matching.
[0109] Step S40: performing fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result.
[0110] It should be noted that this embodiment extracts and matches features from two different dimensions for the image samples to be detected, thereby effectively improving the detection accuracy. These features include repeated specific objects or structures, similar lighting and shadow patterns, and repeated landmarks or background elements, which may indicate that the pictures were taken under the same background. In this case, there is a risk of fraud.
[0111] It should be noted that the first feature matching result and the second feature matching result may include feature matching results between each image sample to be detected, feature key point matching results, background feature matching results, etc., so as to determine high-risk image samples that are similar, have similar backgrounds and / or similar features in the image samples to be detected based on the first feature matching result and the second feature matching result.
[0112] It is understandable that the detection device outputs fraud detection results. If a newly registered user's image is judged to be high risk, the user will be marked and corresponding security measures will be taken, such as further identity verification or denial of service. If the image is judged to be low risk or no risk, the user can continue with subsequent operations. In addition, the detection device can also provide intermediate detection results for manual review by security experts, or input the detection results into a pre-built expert model for detection. The expert model can be a deep learning model pre-built based on expert detection experience data.
[0113] In some embodiments, in order to ensure security and privacy protection, the detection device may use an encrypted transmission protocol to protect the security of user data and comply with relevant laws and regulations to handle personal privacy information. In addition, the detection device also provides an anonymization function for user data to further reduce the risk of privacy leakage.
[0114] In some embodiments, during the precise matching stage, the detection device may use the AKAZE algorithm and the D2-Net model algorithm to extract features from the same image from two different dimensions, thereby achieving the accuracy of feature extraction and effectively improving the efficiency of fraud detection.
[0115] In some embodiments, the detection device may evaluate the first feature matching result and the second feature matching result, determine the accuracy scores corresponding to the first feature matching result and the second feature matching result, assign weights to the first feature matching result and the second feature matching result based on the accuracy scores, and then generate a fraud detection decision rule based on the weights. Based on the fraud detection decision rule, fraud detection is performed on the image samples to be detected to determine the risk level of each image sample to be detected, that is, determine the probability of fraud in each image sample to be detected, and further identity authenticate the uploading user corresponding to the high-risk image samples or deny service.
[0116] This embodiment performs feature matching on multiple image samples to be detected based on pixel point information of the image samples to be detected to obtain a first feature matching result, inputs the image samples to be detected into a preset feature extraction model for feature extraction to obtain a feature extraction result, performs feature matching on multiple image samples to be detected based on the feature extraction result to obtain a second feature matching result, and performs fraud detection on the image samples to be detected based on the first feature matching result and the second feature matching result. Since this embodiment performs feature matching on the image samples to be detected from two dimensions respectively, the problem of a single feature matching method is effectively avoided, and fraud behavior detection is comprehensively performed on the image samples to be detected based on the feature matching results of the two dimensions, thereby accurately identifying the similarities between the image samples to be detected, thereby achieving more accurate and comprehensive identification of fraud behavior, greatly reducing the detection misjudgment rate, and effectively improving the accuracy and reliability of fraud detection.
[0117] refer to Figure 3 , Figure 3 FIG. 4 is a flow chart of a second embodiment of an image fraud detection method according to the present invention.
[0118] Based on the first embodiment above, in this embodiment, before step S10, the following steps are further included:
[0119] Step S101: Acquire original captured image data.
[0120] It should be noted that the original image acquisition data can be the original image obtained by the detection equipment. For example, the original image acquisition data can be an on-site image captured when the user registers, or it can be an image of the user's remote face-to-face interview. The above images may include photos of the user holding his or her ID card, video screenshots, or other images required for other identity verification.
[0121] It is understood that in this embodiment, the detection device can collect raw image data through a secure upload protocol, and these images may include photos of the user holding the ID card, video screenshots, or other images required for identity verification. In order to ensure the validity and authenticity of the image, the detection device can use a high-resolution camera and combine it with real-time image processing technology to ensure that the image is clear, unobstructed, and truly reflects the user's on-site environment.
[0122] Step S102: pre-processing the original collected image data to obtain initial image samples.
[0123] It should be noted that the preprocessing may include image enhancement processing, image noise reduction processing, image cropping processing, image smoothing processing, image sharpening processing, etc. of the original collected image data.
[0124] It is understandable that the detection device pre-processes the original collected image data to ensure that the initial image samples obtained after processing are clear, unobstructed, and truly reflect the user's on-site environment.
[0125] Step S103: extracting background features from the initial image sample to obtain initial background feature information of the initial image sample.
[0126] It can be understood that this embodiment reduces the scope of subsequent processing by rough matching of images and improves the efficiency of overall fraud detection by quickly eliminating dissimilar images.
[0127] It should be noted that the coarse matching algorithm may include color histogram comparison, texture analysis, etc., and the above methods are used to quickly extract the background information features of the image and store them in the background similarity database.
[0128] It should be noted that the above-mentioned initial background feature information may include background features such as color, texture, shape and / or spatial layout of the initial image sample.
[0129] In some embodiments, the detection device may segment the initial image sample into foreground and background areas, for example, by training or using a pre-trained segmentation model, segmenting the image, obtaining a background mask, and based on the obtained background mask, retaining only pixels in the background area and ignoring the foreground portion.
[0130] In some embodiments, the detection device may extract initial background feature information in the following ways: calculate the color distribution of the background area to obtain a color histogram of the background area; extract local texture information of the background area to obtain texture features of the background area; calculate the gradient direction distribution of the background area; extract deep features of the background area through a pre-trained CNN model (such as VGG, ResNet, etc.).
[0131] In some embodiments, the detection device may integrate the extracted features of each initial image sample into a feature vector, thereby obtaining a background feature vector of each initial pattern sample (i.e., obtaining the initial background feature information of the initial image sample). For example, all features may be spliced together, or dimension reduction techniques such as PCA and t-SNE may be used to reduce the feature dimension.
[0132] In some embodiments, the detection device may use wavelet transform to quickly extract multi-scale features of the initial image sample; or it may construct an image pyramid of the initial image sample to extract background features from different scales, which helps to quickly process large images.
[0133] Step S104: screening the initial image samples based on the initial background feature information to determine the image samples to be detected in the initial image samples.
[0134] It should be noted that the image samples to be detected may be images suspected of fraud in the initial image samples.
[0135] It can be understood that the detection device determines the background features in each initial image sample based on the initial background feature information, and then filters the initial image samples based on the background features to filter out samples with no abnormalities in the background features of the initial image samples, and only retains the image samples to be detected that have abnormalities or suspected abnormalities for the subsequent precise matching stage, thereby effectively improving the efficiency of fraud detection.
[0136] In some embodiments, the detection device may obtain an initial image sample through image acquisition, perform a rough match on the initial image sample, obtain an image sample to be detected based on the rough matching result, and then perform a precise match on the image sample to be detected, and perform fraud detection based on the precise matching result, referring to Figure 4 , Figure 4 This is a schematic diagram of the fraud detection process. The detection equipment performs fraud detection through a combination of coarse matching and fine matching, thereby reducing the amount of processing and improving detection efficiency. At the same time, it can more accurately identify group fraud behavior, reduce misjudgments, and improve the reliability and security of the system.
[0137] Furthermore, in order to accurately screen the initial image samples, the above step S104 may include:
[0138] Acquire initial background elements in each initial image sample based on the initial background feature information;
[0139] Get the whitelist background feature library;
[0140] Comparing the initial background element with the whitelist background elements in the whitelist background feature library;
[0141] Determine the background similarity of each initial image sample according to the comparison result;
[0142] The initial image samples are screened based on the background similarity to determine image samples to be detected in the initial image samples, wherein the background similarity of the image samples to be detected is less than or equal to a preset similarity threshold.
[0143] It should be noted that the initial background elements may be background feature elements in each initial image sample, for example, the background feature elements may include color features, texture features, pixel distribution features, background object features, etc. The above-mentioned whitelist background feature library may be a pre-built database containing multiple frequently occurring background features, for example, the whitelist background feature library may include white wall background, car interior background, etc.
[0144] It can be understood that the detection device can extract the initial background elements in each initial image sample by performing background feature analysis on the initial image samples. For example, the background features can be extracted through color histogram analysis, texture analysis, etc. The background information features in the initial image samples can be quickly extracted through the above analysis methods and stored in the background similarity database.
[0145] It should be noted that the background similarity can be the similarity between the initial background elements contained in the initial image sample and the whitelist background elements in the whitelist background feature library. For example, the higher the degree of match between the initial background elements in the initial image sample and the whitelist background elements, the higher the similarity of the initial image sample. If the similarity is greater than a threshold, the background in the initial image sample is considered to be the background in the whitelist, and the initial image sample is determined to be free of fraud.
[0146] This embodiment obtains original collected image data, preprocesses the original collected image data, obtains initial image samples, extracts background features from the initial image samples, obtains initial background feature information of the initial image samples, screens the initial image samples based on the initial background feature information, and determines image samples to be detected in the initial image samples; since this embodiment obtains initial image samples by preprocessing the original collected image data, the validity and authenticity of the image are effectively improved, and the subsequent detection efficiency is improved; by roughly screening the initial image samples before feature matching, the data volume of the image samples is effectively reduced, the processing scope of the subsequent feature matching is narrowed, and normal image samples that do not need to be detected are effectively pre-filtered, thereby improving the accuracy and efficiency of fraud detection.
[0147] refer to Figure 5 , Figure 5 Schematic diagram of the process of the third embodiment of the image fraud detection method of the present invention.
[0148] Based on the above embodiments, in this embodiment, in step S40, the method further includes:
[0149] Step S401: determining a weight configuration parameter according to the first feature matching result and the second feature matching result;
[0150] Step S402: assigning weights to the first feature matching result and the second feature matching result respectively based on the weight configuration parameter;
[0151] Step S403: determining the risk level of each to-be-detected image sample according to the weight distribution result, the first feature matching result and the second feature matching result;
[0152] Step S404: performing fraud detection on the image sample to be detected based on the risk level.
[0153] It is understandable that this embodiment uses a weighted voting mechanism to determine the fraud risk level of an image based on feature matching results of different dimensions. The weighted voting mechanism considers the accuracy and reliability of different feature matching results and assigns different weights to each algorithm.
[0154] For example, if the matching results provided by model feature extraction and cluster feature matching are more accurate, a higher weight is assigned in the decision-making process.
[0155] It should be noted that, in this embodiment, by comprehensively considering the results of multiple feature matching algorithms, the decision rules can more accurately identify gang fraud behavior.
[0156] It can be understood that the present embodiment uses weighted voting to make decisions, which can effectively reduce the misjudgment rate and improve the efficiency and stability of the anti-fraud system.
[0157] It should be noted that the risk level may be the risk level of fraud in the image samples to be detected. The higher the feature similarity between the image samples to be detected, the higher the risk level.
[0158] It should be noted that the detection device determines the decision rule based on the weight distribution result, and then determines the risk level of each image sample to be detected based on the decision rule, the first feature matching result and the second feature matching result. If the image of a newly registered user is judged to be high risk, the user will be marked and corresponding security measures will be taken, such as further identity verification or denial of service. If the image is judged to be low risk or no risk, the user can continue with subsequent operations. In addition, the detection device can also provide intermediate detection results for manual review by security experts, or input the detection results into a pre-built expert model for detection. The expert model can be a deep learning model pre-built based on expert detection experience data.
[0159] This embodiment determines weight configuration parameters according to the first feature matching result and the second feature matching result, respectively assigns weights to the first feature matching result and the second feature matching result based on the weight configuration parameters, determines the risk level of each image sample to be detected according to the weight assignment result, the first feature matching result and the second feature matching result, and performs fraud detection on the image samples to be detected based on the risk level, thereby effectively considering the accuracy and reliability of feature matching in different dimensions, and assigning feature matching results in different dimensions to groups, thereby improving the accuracy of the matching results and achieving more accurate identification of fraudulent behavior.
[0160] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an image fraud detection program is stored. When the image fraud detection program is executed by a processor, the steps of the image fraud detection method described above are implemented.
[0161] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0162] The computer-readable storage medium may be included in the image fraud detection device; or may exist independently without being assembled into the image fraud detection device.
[0163] In addition, an embodiment of the present invention further provides a computer program product, including an image fraud detection program, which implements the steps of the above-mentioned image fraud detection method when executed by a processor.
[0164] The specific implementation methods of the computer program product of the present invention are basically the same as the above-mentioned embodiments of the image fraud detection method, and will not be repeated here.
[0165] Reference Figure 6 , Figure 6 FIG. 4 is a structural block diagram of the first embodiment of the image fraud detection device of the present invention.
[0166] like Figure 6 As shown, the image fraud detection device proposed in the embodiment of the present invention includes:
[0167] A first feature matching module 10 is used to perform feature matching on a plurality of image samples to be detected according to pixel point information of the image samples to be detected, to obtain a first feature matching result;
[0168] The feature extraction module 20 is used to input the image sample to be detected into a preset feature extraction model to perform feature extraction and obtain a feature extraction result;
[0169] A second feature matching module 30 is used to perform feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result;
[0170] The fraud detection module 40 is used to perform fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result.
[0171] Furthermore, the image fraud detection device further includes:
[0172] The image coarse matching module 50 is used to obtain original collected image data; pre-process the original collected image data to obtain initial image samples; extract background features from the initial image samples to obtain initial background feature information of the initial image samples; screen the initial image samples based on the initial background feature information to determine the image samples to be detected in the initial image samples.
[0173] Furthermore, the image coarse matching module 50 is also used to obtain the initial background elements in each initial image sample based on the initial background feature information; obtain a whitelist background feature library; compare the initial background elements with the whitelist background elements in the whitelist background feature library; determine the background similarity of each initial image sample based on the comparison result; screen the initial image samples based on the background similarity, and determine the image samples to be detected in the initial image samples, and the background similarity of the image samples to be detected is less than or equal to a preset similarity threshold.
[0174] Furthermore, the first feature matching module 10 is also used to perform scale space extreme value detection on the image samples to be detected based on the pixel point information of the image samples to be detected, and obtain the pixel extreme value information of the image samples to be detected; extract the first feature points in each image sample to be detected based on the pixel extreme value information; describe the first feature points to obtain first description information; determine the distance information between each first feature point based on the first description information; perform feature matching on multiple image samples to be detected according to the distance information to obtain a first feature matching result.
[0175] Furthermore, the second feature matching module 30 is also used to obtain second feature points in each image to be detected based on the feature extraction result; describe the second feature points to obtain second description information; cluster the second feature points according to the second description information to obtain at least one feature cluster; and perform feature matching on multiple samples of the image to be detected based on the feature cluster to obtain a second feature matching result.
[0176] Further, the fraud detection module 40 is further used to determine a weight configuration parameter according to the first feature matching result and the second feature matching result; assign weights to the first feature matching result and the second feature matching result respectively based on the weight configuration parameter; determine a risk level of each image sample to be detected according to the weight assignment result, the first feature matching result and the second feature matching result; determine the weight configuration parameter according to the first feature matching result and the second feature matching result;
[0177] Based on the weight configuration parameters, weights are respectively assigned to the first feature matching result and the second feature matching result;
[0178] Determine the risk level of each image sample to be detected according to the weight distribution result, the first feature matching result and the second feature matching result;
[0179] Perform fraud detection on the image sample to be detected based on the risk level. Perform fraud detection on the image sample to be detected based on the risk level.
[0180] This embodiment performs feature matching on multiple image samples to be detected based on pixel point information of the image samples to be detected to obtain a first feature matching result, inputs the image samples to be detected into a preset feature extraction model for feature extraction to obtain a feature extraction result, performs feature matching on multiple image samples to be detected based on the feature extraction result to obtain a second feature matching result, and performs fraud detection on the image samples to be detected based on the first feature matching result and the second feature matching result. Since this embodiment performs feature matching on the image samples to be detected from two dimensions respectively, the problem of a single feature matching method is effectively avoided, and fraud behavior detection is comprehensively performed on the image samples to be detected based on the feature matching results of the two dimensions, thereby accurately identifying the similarities between the image samples to be detected, thereby achieving more accurate and comprehensive identification of fraud behavior, greatly reducing the detection misjudgment rate, and effectively improving the accuracy and reliability of fraud detection.
[0181] The image fraud detection device provided by the present application adopts the image fraud detection method in the above embodiment, which can solve the technical problem of image fraud detection. Compared with the prior art, the beneficial effects of the image fraud detection device provided by the present application are the same as the beneficial effects of the image fraud detection method provided by the above embodiment, and the other technical features in the image fraud detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0182] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0183] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0184] In addition, for technical details that are not described in detail in this embodiment, reference can be made to the energy-saving method provided in any embodiment of the present invention, and will not be repeated here.
[0185] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0186] 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.
[0187] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0188] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting image fraud, characterized in that: The image fraud detection method comprises: Performing feature matching on a plurality of image samples to be detected according to pixel point information of the image samples to be detected, to obtain a first feature matching result; Input the image sample to be detected into a preset feature extraction model for feature extraction to obtain a feature extraction result, wherein the preset feature extraction model is an image feature detection and description model based on deep learning, and the preset feature extraction model is used to detect and describe local features in the image sample to be detected, and the preset feature extraction model is a feature representation learned by a deep convolutional neural network; Performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result; Perform fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result; The performing feature matching on a plurality of the image samples to be detected according to the pixel point information of the image samples to be detected to obtain a first feature matching result includes: Performing scale space extreme value detection on the image sample to be detected according to the pixel point information of the image sample to be detected, and obtaining pixel extreme value information of the image sample to be detected; Extracting a first feature point in each to-be-detected image sample based on the pixel extreme value information; Describing the first feature point to obtain first description information; Determine distance information between first feature points based on the first description information; Performing feature matching on the plurality of image samples to be detected according to the distance information to obtain a first feature matching result; The performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result includes: Acquire a second feature point in each image to be detected based on the feature extraction result; Describing the second feature point to obtain second description information; Performing clustering processing on the second feature points according to the second description information to obtain at least one feature cluster; Based on the feature cluster, feature matching is performed on the plurality of image samples to be detected to obtain a second feature matching result.
2. The image fraud detection method according to claim 1, characterized in that: Before performing feature matching on a plurality of the image samples to be detected according to the pixel point information of the image samples to be detected and obtaining a first feature matching result, the method further includes: Obtaining original collected image data; Preprocessing the original collected image data to obtain an initial image sample; Extracting background features of the initial image sample to obtain initial background feature information of the initial image sample; The initial image samples are screened based on the initial background feature information to determine image samples to be detected in the initial image samples.
3. The image fraud detection method according to claim 2, characterized in that: The screening of the initial image samples based on the initial background feature information to determine the image samples to be detected in the initial image samples includes: Acquire initial background elements in each initial image sample based on the initial background feature information; Get the whitelist background feature library; Comparing the initial background element with the whitelist background elements in the whitelist background feature library; Determine the background similarity of each initial image sample according to the comparison result; The initial image samples are screened based on the background similarity to determine image samples to be detected in the initial image samples, wherein the background similarity of the image samples to be detected is less than or equal to a preset similarity threshold.
4. The image fraud detection method according to any one of claims 1 to 3, characterized in that: The performing fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result includes: Determine a weight configuration parameter according to the first feature matching result and the second feature matching result; Based on the weight configuration parameters, weights are respectively assigned to the first feature matching result and the second feature matching result; Determine the risk level of each image sample to be detected according to the weight distribution result, the first feature matching result and the second feature matching result; Fraud detection is performed on the image sample to be detected based on the risk level.
5. An image fraud detection device, characterized in that: The image fraud detection device comprises: A first feature matching module, used for performing feature matching on a plurality of image samples to be detected according to pixel point information of the image samples to be detected, to obtain a first feature matching result; A feature extraction module is used to input the image sample to be detected into a preset feature extraction model for feature extraction to obtain a feature extraction result, wherein the preset feature extraction model is an image feature detection and description model based on deep learning, and the preset feature extraction model is used to detect and describe local features in the image sample to be detected, and the preset feature extraction model is a feature representation learned by a deep convolutional neural network; A second feature matching module, used for performing feature matching on the plurality of image samples to be detected based on the feature extraction result to obtain a second feature matching result; a fraud detection module, configured to perform fraud detection on the image sample to be detected according to the first feature matching result and the second feature matching result; The first feature matching module is further used to perform scale space extreme value detection on the image samples to be detected according to the pixel point information of the image samples to be detected, and obtain the pixel extreme value information of the image samples to be detected; extract the first feature points in each image sample to be detected based on the pixel extreme value information; describe the first feature points to obtain first description information; determine the distance information between each first feature point based on the first description information; perform feature matching on multiple image samples to be detected according to the distance information to obtain a first feature matching result; The second feature matching module is also used to obtain second feature points in each image to be detected based on the feature extraction result; describe the second feature points to obtain second description information; cluster the second feature points according to the second description information to obtain at least one feature cluster; and perform feature matching on multiple samples of the image to be detected based on the feature cluster to obtain a second feature matching result.
6. An image fraud detection device, characterized in that: The image fraud detection device comprises: a memory, a processor, and an image fraud detection program stored in the memory and executable on the processor, wherein the image fraud detection program is configured to implement the image fraud detection method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an image fraud detection program, and when the image fraud detection program is executed by the processor, the image fraud detection method according to any one of claims 1 to 4 is implemented.
8. A computer program product, characterized in that The computer program product comprises an image fraud detection program, and when the image fraud detection program is executed by a processor, the steps of the image fraud detection method according to any one of claims 1 to 4 are implemented.
