False face detection method and system based on counterfeited representation adversarial mining

By using the adversarial mining method to generate fake salient areas and random masks, and adversarially training the network, we solve the problems of low recognition accuracy and poor data enhancement generalization performance of deep learning face recognition models in fake face detection, achieving high accuracy. and robust face recognition effects.

CN118609223APending Publication Date: 2024-09-06THE FIRST RES INST OF MIN OF PUBLIC SECURITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410788108.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing deep learning face recognition models have low recognition accuracy when faced with attacks from fake face pictures or fake head models, which threatens security, and the generalization performance and discriminant ability of data enhancement methods are low.

Method used

Using a method based on counterfeit representation adversarial mining, the counterfeit significant area is generated through gradient backpropagation, erasure masks are randomly generated, and face images and masks are input into the adversarial enhancement network for adversarial training to improve the recognition ability of the discriminant network.

Benefits of technology

It improves the detection accuracy and generalization performance of the face recognition model, enhances the robustness of the model, and narrows the difference between enhanced data and original data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609223A
    Figure CN118609223A
Patent Text Reader

Abstract

The invention discloses a false face detection method and system based on counterfeited representation adversarial mining. The method comprises the following steps: inputting a face image in a training data set into a detection network for detection, and outputting the true and false probability of the face image; the detection network generates a counterfeit salient region of the face image through a gradient back propagation method; randomly generating an erasure mask based on the face image and the counterfeit salient region; inputting the face image and the erasure mask into an adversarial enhancement network to generate an enhanced face image, and performing adversarial training to improve the recognition capability of the discrimination network; in the adversarial training process of the adversarial enhancement network, when the loss defined by the loss function does not decrease any more, adversarial training is completed; and taking the trained discrimination network as a face recognition model, and carrying out efficient detection and recognition on a face image in practical application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a fake face detection method and a data enhancement method based on forged representation adversarial mining, and also relates to a corresponding fake face detection system, belonging to the technical field of face recognition. Background Art

[0002] With the continuous development of deep learning technology, face recognition performance has been brought to a new level. The academic community has verified through large-scale face recognition test sets that the recognition accuracy of face recognition models based on deep learning has exceeded human visual inspection. At present, face recognition based on deep learning has been widely used in many technical fields related to people's daily lives, such as urban security, financial transactions, and transportation. At the same time, the widespread application of face recognition based on deep learning has also posed a huge challenge to the security of face recognition applications. If there are security risks in face recognition, it will cause personal economic property losses at the least, and social public safety will be threatened at the most. Therefore, the accuracy of face recognition based on deep learning is a very important model performance indicator.

[0003] In the existing technology, face recognition systems based on deep learning may be attacked by malicious fake face images or fake head models, that is, face images and videos are synthesized or tampered with through GAN technology or DeepFake network, which is very likely to make the face recognition model unable to make correct recognition, resulting in the security of face recognition being threatened. At present, most improvements to the performance of face recognition models focus on the network structure of deep learning, that is, by improving the network structure to extract more discriminative features from the input image to improve the recognition accuracy. In addition, there is also a data-enhanced face recognition improvement method, such as the paper "Representative Forgery Mining for Fake Face Detection" (published in the 2021 Conference on Computer Vision and Pattern Recognition (CVPR)). The method proposed in this paper is to block the area that has the greatest impact on the model's discrimination results, forcing the model to dig out more fake details, thereby improving the model's discrimination ability. However, the paper uses a simple data enhancement method, which makes the synthesized data and the original data have obvious data domain differences, resulting in low generalization performance and discrimination ability of the recognition model.

[0004] In the Chinese invention patent with patent number ZL 202010589398.2, a fake face detection method is disclosed. The method includes the following steps: obtaining a target image of a fake face to be detected; inputting the target image into a network model to output a fake face detection result; the network model includes a U-net subnetwork and an EfficientNet subnetwork connected in sequence, which are trained according to multiple sample images and the annotation information corresponding to each sample image; the annotation information includes a facial difference map representing the difference between the sample image and the corresponding reference image; any sample image is a positive sample image or a negative sample image; the reference image corresponding to the positive sample image is itself; the negative sample image is an image constructed by simulating deep fakes of the face in the positive sample image. Summary of the invention

[0005] The primary technical problem to be solved by the present invention is to provide a fake face detection method based on forged representation adversarial mining.

[0006] Another technical problem to be solved by the present invention is to provide a data enhancement method based on forged representation adversarial mining.

[0007] Another technical problem to be solved by the present invention is to provide a fake face detection system based on forged representation adversarial mining.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] According to a first aspect of an embodiment of the present invention, a fake face detection method based on forged representation adversarial mining is provided, comprising the following steps:

[0010] (1) Inputting the face images in the training data set into the detection network for detection, and outputting the true or false probability of the face images;

[0011] (2) The detection network generates a fake salient area of ​​the face image by using a gradient back propagation method;

[0012] (3) randomly generating an erasure mask based on the face image and the fraudulent salient area;

[0013] (4) inputting the face image and the erasure mask into an adversarial enhancement network to generate an enhanced face image, and performing adversarial training to improve the recognition ability of the discriminant network;

[0014] (5) during the adversarial training of the adversarial enhanced network, the adversarial training is completed when the loss defined by the loss function no longer decreases;

[0015] (6) The trained discriminant network is used as a face recognition model to efficiently detect and recognize face images in practical applications.

[0016] Preferably, in step (2), the fraud-significant area Map is represented by the following formula:

[0017]

[0018]

[0019] Among them, max(·) means taking the maximum value; abs(·) means getting the absolute value of each pixel; fake represents the probability that the input image is judged to be false by the detection network; real Represents the probability that the input image is judged to be true by the detection network; Indicates the gradient of the input; It means the gradient of the probability that the input image is fake with respect to the input image; It represents the gradient of the probability that the input image is real with respect to the input image.

[0020] Preferably, in step (3), the erasure mask is generated by a mask algorithm, the input data of the mask algorithm is a face image and its width and height, a fake significant area map, the number of erasures, the probability of erasure, and the maximum erasure width and height; the output is the erasure mask.

[0021] Preferably, in step (4), the adversarial training of the adversarial enhancement network includes the following sub-steps:

[0022] (41) an enhancement network generates the enhanced face image based on the face image and the erasure mask;

[0023] (42) Inputting the facial image and the enhanced facial image into a discriminant network for recognition and judgment.

[0024] Preferably, the enhanced network is composed of a basic architecture including convolution, convolution module, deconvolution module, activation function and residual convolution; wherein,

[0025] The convolution module consists of a convolution with a step size of 2, a BN and a PRELU activation function;

[0026] The deconvolution module consists of a deconvolution with a step size of 2, a BN and a PRELU activation function.

[0027] Preferably, the enhancement network includes an image feature extraction part, a mask region enhancement feature generation part and a synthetic enhanced image part; wherein,

[0028] The input of the image feature extraction part is the face image, and the output is the image features of downsampling by 2 times and downsampling by 4 times;

[0029] The input of the mask area enhanced feature generating part is the image feature output by the image feature extracting part and the erasure mask, and the output is a mask area image containing enhanced features;

[0030] The input of the synthetic enhanced image part is the non-erased mask area image in the face image and the mask area image containing enhanced features, and the output is an enhanced face image.

[0031] Preferably, in step (41),

[0032] The enhancement network performs enhancement operations only on regions where the erasure mask is true, and the remaining regions where the erasure mask is false and non-salient regions remain unchanged.

[0033] Preferably, in step (5), the loss function of adversarial training is expressed by the following formula:

[0034]

[0035] in, represents adversarial training, express The optimization is to make the loss function larger. express The optimization is to make the loss function smaller; train Represents the distribution of training data; I real represents a real face image; p G Represents the generated data distribution; I fakel Represents enhanced face image; I real ~p train (I real ) indicates I real The distribution of the real data is p train ;I fake ~p G (I fake ) indicates I fake The distribution of augmented data is p G (I fake ); It represents the probability that the discriminant network judges that the image is a real face image; It indicates that the discriminator discriminates the input image, which may be real face data or fake face data distribution; represents a synthesizer; Indicates the use of the network to generate fake face data; Represents the expected loss under the corresponding distribution data set.

[0036] According to a second aspect of an embodiment of the present invention, a data enhancement method based on forged representation adversarial mining is provided, comprising the following steps:

[0037] (1) Inputting the face images in the training data set into the detection network for detection, and outputting the true or false probability of the face images;

[0038] (2) The detection network generates a fake salient area of ​​the face image by using a gradient back propagation method;

[0039] (3) randomly generating an erasure mask based on the face image and the fraudulent salient area;

[0040] (4) inputting the face image and the erasure mask into an adversarial enhancement network to generate an enhanced face image, and performing adversarial training to improve the synthesis capability of the enhancement network;

[0041] (5) during the adversarial training of the adversarial enhanced network, the adversarial training is completed when the loss defined by the loss function no longer decreases;

[0042] (6) Using the trained enhancement network to generate enhancement samples for model training or performance testing of other detection networks.

[0043] According to a third aspect of an embodiment of the present invention, a fake face detection system based on forged representation adversarial mining is provided, comprising a processor and a memory, wherein the processor and the memory are coupled; wherein:

[0044] The memory is used to store computer programs;

[0045] The processor is used to run the computer program stored in the memory to execute the above-mentioned fake face detection method based on forged representation adversarial mining.

[0046] Compared with the prior art, the fake face detection method based on forged representation adversarial mining provided by the present invention starts from the perspective of improving enhanced data, by randomly generating erasure masks for forged significant areas and using an adversarial enhancement network for adversarial training, thereby reducing the difference between enhanced data and original data, thereby achieving the purpose of improving the discrimination ability of the face recognition model. Therefore, the fake face detection method based on forged representation adversarial mining provided by the present invention has the beneficial effects of high detection accuracy, good generalization performance and high model robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A flowchart of a fake face detection method based on forged representation adversarial mining provided by the present invention;

[0048] Figure 2 A structural block diagram of a fake face detection system based on forged representation adversarial mining provided by the present invention;

[0049] Figure 3This is a schematic diagram of the overall architecture of an enhanced network in an embodiment of the present invention;

[0050] Figure 4 A flow chart of a data enhancement method based on forged representation adversarial mining provided by the present invention;

[0051] Figure 5 This is a comparison diagram of the effects of generating enhanced samples in an embodiment of the present invention and generating enhanced samples in the prior art;

[0052] Figure 6 A structural schematic diagram of a fake face detection system based on forged representation adversarial mining provided by the present invention. DETAILED DESCRIPTION

[0053] The technical content of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0054] like Figure 1 and Figure 2 As shown, the present invention provides a fake face detection method based on forged representation adversarial mining, which at least includes the following steps:

[0055] S1: Input the face images in the training data set into the detection network for detection, and output the true or false probability of the face images.

[0056] S2: The detection network generates fake salient areas of face images through gradient back propagation method.

[0057] S3: Randomly generate an erasure mask based on the face image and the fake salient area.

[0058] S4: The face image and the erasure mask are input into the adversarial enhancement network to generate an enhanced face image, and adversarial training is performed to improve the recognition ability of the discriminative network.

[0059] S5: During the adversarial training of the adversarial enhanced network, the adversarial training is completed when the loss defined by the loss function no longer decreases.

[0060] S6: Use the trained discriminant network as a face recognition model to efficiently detect and recognize face images in practical applications.

[0061] The specific processes of steps S1 to S5 in the fake face detection method are described in detail below.

[0062] In step S1, the face images in the training data set are input into the detection network for detection, and the detection results are used to obtain the true or false probability of the face images. The process is as follows: Figure 2As shown in the annotation ① in the figure. The detection network can use an image classification network based on deep learning, such as a ResNet or EfficientNet network, to perform fake face detection on the input face image, and the output detection result is the probability that the face image is a real image.

[0063] In step S2, for an input face image data, the detection network uses the gradient back propagation method to calculate which areas of the input image are used to determine the authenticity of the input image. Among them, the area that has a greater impact on the judgment result is called the fake significant area. The process is as follows Figure 2 As shown on the right side of the annotation ② in . For the input face image I, the generated fake salient area Map can be expressed as:

[0064]

[0065] Among them, max(·) means taking the maximum value; abs(·) means getting the absolute value of each pixel; fake represents the probability that the input image is judged to be false by the detection network; real Represents the probability that the input image is judged to be true by the detection network; Indicates the gradient of the input; It means the gradient of the probability that the input image is fake with respect to the input image; It represents the gradient of the probability that the input image is real with respect to the input image.

[0066] In step S3, an erasure mask Mask is randomly generated based on the face image and the fake salient area Map. The mask is generated using the following algorithm:

[0067]

[0068] First, a face image I is received, as well as the image width W and height H. At the same time, a fake salient area map Map is required, which indicates which areas in the image have a greater impact on image recognition after being erased. In addition, the algorithm also receives the number of erasures N, which indicates the total number of erased areas that need to be generated; the erasure probability p, which is used to determine whether to perform the erasure operation at each iteration; and the maximum size of the erased area, that is, the maximum width W_max and height H_max.

[0069] Next, a random number generator is used to check whether the erasure condition is met, that is, if the generated random number is less than p, the erasure process begins. During the erasing process, the algorithm first initializes a counter cnt to 0 and creates a Mask with the same size as the image, with an initial value of 0. Then, the algorithm enters a loop until the number of erased areas cnt reaches N. In each loop, the algorithm finds the coordinate point [i, j] from the Map that has not been erased and has the greatest impact on fraud. If the point has not been erased in the Mask, the algorithm will randomly determine the size of the erased area, that is, the upper boundary height H_t and the left boundary width W_t, and calculate the lower boundary height H_b and the right boundary width W_b based on this. Subsequently, the algorithm sets the area centered on [i, j] in the Mask to 0, indicating that the area has been erased. Finally, the counter cnt is increased by 1 and continues to the next iteration.

[0070] When the number of erased areas reaches N, or there are no more unerased points in the Map, the loop ends. Finally, the algorithm outputs the generated erasure Mask, which indicates which areas in the image have been erased. This Mask can be used for subsequent image processing or data enhancement tasks.

[0071] Through the above algorithm, an erasure mask can be randomly generated from the fake salient area Map. The process is as follows: Figure 2 As shown on the left side of the annotation ② in the figure. t :i+H b ;jW t :j+W b ]=0;" means that the enhancement operation is performed on the specified image part, and the other parts of the image remain unchanged.

[0072] In step S4, the face image and the erasure mask are input into the adversarial enhancement network to generate an enhanced face image, and adversarial training is performed to improve the recognition ability of the discriminant network. The process is as follows: Figure 2 As shown in the annotation ③ in . Among them, the adversarial enhancement network is a network model that uses GAN technology for adversarial training, including an enhancement network and a discriminant network. The enhancement network is used to generate enhanced samples similar to the input training image data, and the discriminant network is used to determine whether the input image data is an enhanced sample from the enhancement network or real training image data. The adversarial training of the adversarial enhancement network specifically includes the following sub-steps:

[0073] S41: The enhancement network generates an enhanced face image based on the face image and the erasure mask Mask.

[0074] In the face image, the enhancement network only performs enhancement operations on the areas where the erasure mask Mask is true (i.e., the mask value is 1), and the other areas where the erasure mask Mask is false (i.e., the mask value is 0) and the non-salient areas remain unchanged, that is, the integrity of the non-salient areas is guaranteed, thereby generating enhanced samples similar to the original image, namely enhanced face images.

[0075] In one embodiment of the present invention, since the enhancement network only performs enhancement operations on the erasure mask area, it is necessary to fully design the enhancement network architecture. Figure 3 As shown in the figure, the enhanced network consists of basic architectures such as convolution, convolution module, deconvolution module, activation function and residual convolution. Among them, the convolution module consists of convolution with a step size of 2, BN and PRELU activation function; the deconvolution module consists of deconvolution with a step size of 2, BN and PRELU activation function.

[0076] The overall architecture of the enhancement network is divided into image feature extraction part, mask region enhancement feature generation part and synthetic enhanced image part according to its function. Figure 3 As shown in the dashed box on the left, the input is a face image, and the output is the image features of downsampled 2 times and downsampled 4 times. The mask area enhancement feature generation part is shown in Figure 3 As shown in the middle dotted box, the input image features are first deconvolved with a 2x step length to obtain image features that are downsampled by 2x, and then concatenated with the downsampled by 2x features output by the first part, making full use of image features at different network stages. At the same time, the learning focus of the network is ensured to be in the mask area, and masks are added at different stages of the network. The mask area enhancement feature generation part outputs a mask area image containing enhanced features. The synthetic enhanced image part is shown in Figure 3 As shown in the dotted box on the right, the non-erased mask area in the input original image and the newly generated mask area containing the enhanced features are added to obtain the final enhanced face image.

[0077] The enhancement network is used to generate enhanced samples that are similar to the original image and deceptive based on the input face image and the erasure mask Map, and provide adversarial training to the adversarial enhancement network to improve the recognition ability of the discriminant network.

[0078] S42: Input the face image and the enhanced face image into the discriminant network for recognition and judgment.

[0079] The discriminant network recognizes and judges the input face image and the enhanced face image, and outputs the probability of the real image as the judgment result.

[0080] The discriminant network can adopt the conventional discriminator architecture in the prior art, which is usually constructed by a deep learning network. The input of the network is an image and the output is a category. The output of this embodiment is true or false, so the network architecture belongs to a two-category network architecture.

[0081] In one embodiment of the present invention, the discriminant network can adopt the discriminator architecture proposed in the conference paper "Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network" (DOI: 10.1109 / CVPR.2017.19) in the prior art, and the discriminator is composed of basic deep learning components such as convolution and activation functions.

[0082] During the adversarial training process in step S5, when the loss defined by the loss function no longer decreases, the adversarial enhancement network completes the adversarial training.

[0083] The loss function expression of adversarial training is as follows:

[0084]

[0085] in, represents adversarial training, express The optimization is to make the loss function larger. express The optimization is to make the loss function smaller; train Represents the distribution of training data; I real represents a real face image; p G Represents the generated data distribution; I fakel Represents enhanced face image; I real ~p train (I real ) indicates I real The distribution of the real data is p train ;I fake ~p G (I fake ) indicates I fake The distribution of augmented data is p G (I fake ); It represents the probability that the discriminant network judges that the image is a real face image; It indicates that the discriminator discriminates the input image, which may be real face data or fake face data distribution; represents a synthesizer; Indicates the use of the network to generate fake face data; Represents the expected loss under the corresponding distribution data set.

[0086] The adversarial enhancement network is undergoing adversarial training. and The optimization is iterated, first optimizing Re-optimization The optimization is iterated repeatedly until the loss function no longer changes.

[0087] In step S6, the trained discriminant network is used as a face recognition model to efficiently detect and recognize face images in practical applications. The practical application scenarios of the face recognition model may include scenarios that require face recognition, such as urban security, financial transactions, and transportation.

[0088] The above is a detailed description of the specific steps in the fake face detection method based on forged representation adversarial mining provided by the present invention. The focus of the technical solution of the present invention is to improve the recognition accuracy of the face recognition model through the data enhancement method. At the same time, through steps S1 to S5 in the fake face detection method, after the adversarial enhancement network finally completes the adversarial training, the enhancement network can also be used to generate an enhanced face image based on the face image and the erasure mask Mask for model training or performance testing of other detection networks. This process is as follows Figure 2 Therefore, the embodiment of the present invention further provides a data enhancement method based on forged representation adversarial mining, such as Figure 4 As shown, the data enhancement method includes the following steps:

[0089] S1: Input the face images in the training data set into the detection network for detection, and output the true or false probability of the face images.

[0090] S2: The detection network generates fake salient areas of face images through gradient back propagation method.

[0091] S3: Randomly generate an erasure mask based on the face image and the fake salient area.

[0092] S4: Input the face image and the erasure mask into the adversarial enhancement network to generate an enhanced face image, and perform adversarial training to improve the synthesis ability of the enhancement network.

[0093] S5: During the adversarial training of the adversarial enhanced network, the adversarial training is completed when the loss defined by the loss function no longer decreases.

[0094] S6: Use the trained enhancement network to generate enhanced samples for model training or performance testing of other detection networks.

[0095] In order to evaluate the actual effects of a fake face detection method and a data enhancement method based on forged representation adversarial mining provided by the present invention, the inventors conducted comparative tests on fake face detection and data enhancement on the method of the present invention and the method provided in the paper “Representative Forgery Mining for Fake Face Detection” in the prior art (hereinafter referred to as the SFE method). The specific test processes and evaluation results are described below.

[0096] First, the generated enhanced samples are compared, such as Figure 5 As shown, the first example is the original face image, the second column is the enhanced face image generated by the SFE method, and the third column is the enhanced face image generated by the method of the present invention. By comparison, it can be seen that there are significant differences between the enhanced face images generated by the SFE method and the enhanced face images generated by the method of the present invention. From the effect of enhanced synthesis, the enhanced face images generated by the SFE method have obvious occlusion marks, which will simplify the recognition pressure of the discriminant network, thereby reducing the generalization performance of the model. The enhanced face image generated by the method of the present invention is synthesized by filling the mask area with a texture similar to the original image, so that the enhanced face image is very similar to the original image. Using the enhanced sample for adversarial training can increase the recognition pressure of the discriminant network, thereby improving the generalization performance and discrimination ability of the model.

[0097] Secondly, the effectiveness and accuracy of the proposed method and the SFE method are quantitatively evaluated by testing on two well-known fake face datasets, DFFD and Celeb-DF.

[0098] In order to compare the test results fairly, the detection network in step S1 uses Xception as the backbone network. The evaluation indicators are the area under the ROC curve (AUC), the true detection rate (TDR) when the false detection rate (FDR) is 0.01%, and the 0.01% ) and the true detection rate (TDR) when the false detection rate is 0.1% 0.1% ) is used to evaluate the detection performance of the model. The test results on the fake face dataset DFFD are shown in Table 1; the test results on the fake face dataset Celeb-DF are shown in Table 2.

[0099] Table 1

[0100] method AUC <![CDATA[TDR 0.1% ]]> <![CDATA[TDR 0.01% ]]> Xception 99.94 94.47 87.17 SFE 99.97 98.35 95.50 The present invention 99.98 98.71 95.62

[0101] Table 2

[0102] method AUC <![CDATA[TDR 0.1% ]]> <![CDATA[TDR 0.01% ]]> Xception 99.85 89.11 84.22 SFE 99.94 93.88 87.08 The present invention 99.96 94.01 98.22

[0103] It can be seen from the comparative test results of Table 1 and Table 2 that the model performance of the fake face detection method based on forged representation adversarial mining provided by the invention is better than the model performance of the SFE method of the prior art. This proves the effectiveness and accuracy of the fake face detection method based on forged representation adversarial mining and the data enhancement method provided by the invention.

[0104] Based on the above-mentioned fake face detection method based on forged representation adversarial mining, the embodiment of the present invention further provides a fake face detection system based on forged representation adversarial mining, such as Figure 6 As shown, the fake face detection system includes one or more processors and a memory. The memory is coupled to the processor and is used to store one or more computer programs. When the one or more computer programs are executed by the one or more processors, the one or more processors implement the fake face detection method based on forged representation adversarial mining in the above embodiment.

[0105] Among them, the processor is used for the overall operation of the fake face detection system based on forged representation adversarial mining to complete all or part of the steps of the fake face detection method based on forged representation adversarial mining. The processor module can be a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a digital signal processing (DSP) chip, etc. The memory is used to store various types of data to support operations on the fake face detection system based on forged representation adversarial mining, and these data can, for example, include instructions for any application or method for operating the fake face detection system based on forged representation adversarial mining, as well as application-related data. The memory module can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, etc.

[0106] In summary, compared with the prior art, the fake face detection method based on forged representation adversarial mining provided by the present invention starts from the perspective of improving enhanced data, by randomly generating erasure masks for forged significant areas and using adversarial enhancement networks for adversarial training, thereby reducing the difference between enhanced data and original data, thereby achieving the purpose of improving the discrimination ability of face recognition models. Therefore, the fake face detection method based on forged representation adversarial mining provided by the present invention has the beneficial effects of high detection accuracy, good generalization performance and high model robustness.

[0107] It should be noted that the directions or positional relationships indicated by the terms "left, right", etc. are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, it should not be understood as a limitation on the present invention.

[0108] The above is a detailed description of the fake face detection method and system based on forged representation adversarial mining provided by the present invention. For those skilled in the art, any obvious changes made to it without departing from the essence of the present invention will constitute an infringement of the patent right of the present invention and will bear corresponding legal responsibilities.

Claims

1. A fake face detection method based on forged representation adversarial mining, Features The steps include: (1) Inputting the face images in the training data set into the detection network for detection, and outputting the true or false probability of the face images; (2) The detection network generates a fake salient area of ​​the face image by using a gradient back propagation method; (3) randomly generating an erasure mask based on the face image and the fraudulent salient area; (4) inputting the face image and the erasure mask into an adversarial enhancement network to generate an enhanced face image, and performing adversarial training to improve the recognition ability of the discriminant network; (5) during the adversarial training of the adversarial enhanced network, the adversarial training is completed when the loss defined by the loss function no longer decreases; (6) The trained discriminant network is used as a face recognition model to efficiently detect and recognize face images in practical applications.

2. The fake face detection method based on forged representation adversarial mining as claimed in claim 1, Features In step (2), the fraud-significant area Map is expressed by the following formula: Among them, max(·) means taking the maximum value; abs(·) means getting the absolute value of each pixel; fake represents the probability that the input image is judged to be false by the detection network; real Represents the probability that the input image is judged to be true by the detection network; Indicates the gradient of the input; It means the gradient of the probability that the input image is fake with respect to the input image; It represents the gradient of the probability that the input image is real with respect to the input image.

3. The fake face detection method based on forged representation adversarial mining as claimed in claim 1, Features In step (3), the erasure mask is generated by a mask algorithm, and the input data of the mask algorithm are the face image and the image width and height, the fraud-significant area map, the number of erasures, the probability of erasure, and the maximum erasure width and height; The output is the erasure mask.

4. The fake face detection method based on forged representation adversarial mining as claimed in claim 1, Features The adversarial training of the adversarial enhancement network in step (4) includes the following sub-steps: (41) an enhancement network generates the enhanced face image based on the face image and the erasure mask; (42) Inputting the facial image and the enhanced facial image into a discriminant network for recognition and judgment.

5. The fake face detection method based on forged representation adversarial mining as claimed in claim 4, Features: The enhanced network consists of basic structures such as convolution, convolution module, deconvolution module, activation function and residual convolution; wherein, The convolution module consists of a convolution with a step size of 2, a BN and a PRELU activation function; The deconvolution module consists of a deconvolution with a step size of 2, a BN and a PRELU activation function.

6. The fake face detection method based on forged representation adversarial mining as claimed in claim 4, Features: The enhancement network includes an image feature extraction part, a mask region enhancement feature generation part and a synthetic enhanced image part; wherein, The input of the image feature extraction part is the face image, and the output is the image features of downsampling by 2 times and downsampling by 4 times; The input of the mask area enhanced feature generating part is the image feature output by the image feature extracting part and the erasure mask, and the output is a mask area image containing enhanced features; The input of the synthetic enhanced image part is the non-erased mask area image in the face image and the mask area image containing enhanced features, and the output is an enhanced face image.

7. The fake face detection method based on forged representation adversarial mining as claimed in claim 4, Features In step (41), the enhancement network performs enhancement operations only on the areas where the erasure mask is true, and the remaining areas where the erasure mask is false and the non-salient areas remain unchanged.

8. The fake face detection method based on forged representation adversarial mining as claimed in claim 1, Features In step (5), the loss function of adversarial training is expressed by the following formula: in, represents adversarial training, express The optimization is to make the loss function larger. express The optimization is to make the loss function smaller; train Represents the distribution of training data; I real represents a real face image; p G Represents the generated data distribution; I fakel Represents enhanced face image; I real ~p train (I real ) indicates I real The distribution of the real data is p train ;I fake ~p G (I fake ) indicates I fake The distribution of augmented data is p G (I fake ); It represents the probability that the discriminant network judges that the image is a real face image; It indicates that the discriminator discriminates the input image, which may be real face data or fake face data distribution; represents a synthesizer; Indicates the use of the network to generate fake face data; Represents the expected loss under the corresponding distribution data set.

9. A data enhancement method based on forged representation adversarial mining, Features The steps include: (1) Inputting the face images in the training data set into the detection network for detection, and outputting the true or false probability of the face images; (2) The detection network generates a fake salient area of ​​the face image by using a gradient back propagation method; (3) randomly generating an erasure mask based on the face image and the fraudulent salient area; (4) inputting the face image and the erasure mask into an adversarial enhancement network to generate an enhanced face image, and performing adversarial training to improve the synthesis capability of the enhancement network; (5) during the adversarial training of the adversarial enhanced network, the adversarial training is completed when the loss defined by the loss function no longer decreases; (6) Using the trained enhancement network to generate enhancement samples for model training or performance testing of other detection networks.

10. A fake face detection system based on forged representation adversarial mining, Features It includes a processor and a memory, wherein the processor and the memory are coupled; wherein, The memory is used to store computer programs; The processor is used to run the computer program stored in the memory to execute the fake face detection method based on forged representation adversarial mining as described in any one of claims 1 to 8.