A highly robust deepfake detection method based on adaptive learning

The adaptive learning method is used to generate degraded face images and coordinated learning signals, which solves the performance degradation problem of existing deep forgery detection algorithms in low-quality image detection, improves detection performance and robustness, and supplements the quality diversity of the data set. sex.

CN118379608BActive Publication Date: 2024-10-18ZHEJIANG UNIV +1

Patent Information

Application Number
CN202410834314.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-18
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The performance of existing deepfake detection algorithms decreases when detecting low-quality face images, and they are unable to adapt to changes in the quality of different face images, and public data sets cannot cover a variety of degradation operations, resulting in poor detection accuracy.

Method used

A highly robust deep forgery detection method based on adaptive learning is used to generate degraded face images of different qualities through a quality degradation generation algorithm. It is combined with an adaptive sampling network to coordinate learning signals to dynamically capture the forgery features of unknown quality images and improve detection performance. .

Benefits of technology

It improves the detection performance of low-quality forged images, enhances the robustness to face images of different qualities, supplements the quality diversity of the data set, and effectively captures the differences in forged features and degraded noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379608B_ABST
    Figure CN118379608B_ABST
Patent Text Reader

Abstract

The present invention discloses a highly robust deep fake detection method based on adaptive learning. First, based on a quality degradation generation algorithm, degraded face images of different qualities are adaptively generated to supplement the quality diversity of existing deep fake face image data sets. At the same time, an adaptive sampling network is combined to coordinate the learning signals of face images of different qualities, and the forged features of face images of unknown quality are dynamically captured, thereby improving the detection performance of the deep fake detection model for low-quality forged images. The present invention helps the adaptive deep fake detection algorithm to better learn the difference between forged features and degraded noise, improves the robustness of the adaptive deep fake detection algorithm for face images of unknown quality, and dynamically trains the algorithm based on the quality of face images, guides the adaptive deep fake detection algorithm to be optimized, and improves the balance between the accuracy of the adaptive deep fake detection algorithm for original face images and degraded face images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image classification based on artificial intelligence (AI), and in particular to a highly robust deep fake detection method based on adaptive learning. Background Art

[0002] With the development of deep fake technology, deep fake technology has become a tool for malicious users to spread false content due to the convenience and authenticity of forged facial images. In order to prevent malicious users from abusing deep fake facial technology, deep fake detection algorithms are designed to identify whether the input facial image is a deep fake facial image.

[0003] Most of the existing deep fake detection algorithms are aimed at high-quality fake face images. However, in order to ensure transmission efficiency, they will undergo compression, cropping, downsampling and other degradation operations that reduce the quality of face images during the transmission process. These degradation operations that damage the quality of face images can effectively improve the transmission speed, but at the same time introduce subtle noise into the face image, interfering with the identifiable fake features in the fake face image, resulting in the inability of the existing deep fake detection algorithm to identify the degraded deep fake face image. The present invention studies the impact of the facial image degradation operations suffered by deep fake images during the transmission process on the robustness of deep fake detection, focusing on the various unknown and complex quality degradation operations experienced by deep fake face images on different platforms. The research results show that when the existing deep fake detection algorithm detects fake face images, if the face image has been subjected to facial image degradation operations, then when the deep fake detection algorithm extracts the features of the face image, the extracted facial features are easily mixed with degradation noise, resulting in a significant decrease in the performance of the deep fake detection algorithm when detecting low-quality deep fake face images. Therefore, there is an urgent need for a deep fake detection method that is highly robust and progressively adaptive to face image quality for degraded images, so as to improve the detection performance of the deep fake detection model for low-quality images.

[0004] The present invention has the following technical problems:

[0005] 1) The effectiveness of existing deep fake detection algorithms depends on their ability to distinguish subtle differences between real and fake face images. However, the face image quality degradation operation will introduce noise similar to the forged features, thereby interfering with the identification of subtle differences between the real and the fake, and ultimately affecting the effectiveness of the deep fake detection algorithm;

[0006] 2) The public deep fake face image datasets used by existing deep fake detection algorithms cannot cover a variety of face image quality degradation. Although the data enhancement technology used by existing algorithms in the training process can alleviate this problem, there is a significant gap between the diversity of data enhancement and the complex and diverse degradation operations in the real world, resulting in poor accuracy of existing deep fake detection algorithms for degraded face images;

[0007] 3) Existing deep fake detection algorithms use random sampling methods to train models, which makes it difficult to balance inconsistent feedback from facial images of different qualities, resulting in the inability of deep fake detection algorithms to adapt to different changes in facial image quality. Summary of the invention

[0008] In view of the shortcomings of the prior art, the present invention provides a highly robust deep fake detection method based on adaptive learning. The method first adaptively generates degraded face images of different qualities based on the quality degradation generation algorithm to supplement the quality diversity of the existing deep fake face image dataset. At the same time, it combines the adaptive sampling network to coordinate the learning signals of face images of different qualities, dynamically captures the forgery features of face images of unknown quality, and thus improves the detection performance of the deep fake detection model for low-quality forged images.

[0009] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0010] The present invention discloses a highly robust deep fake detection method based on adaptive learning, comprising: an algorithm training phase and an algorithm reasoning phase, specifically:

[0011] Algorithm training phase:

[0012] Get an original face image and the corresponding labels ;

[0013] Generate Algorithms by Quality Degradation Generate a degenerate setup ;

[0014] Quality degradation generation algorithm According to the degradation setting And the original face image obtained Generate original face image The corresponding degraded face image , get the face image pair and the corresponding true label pair ;

[0015] According to the face image , Adaptive Deep Fake Detection Algorithm Perform the dual tasks of image quality assessment and deep fake detection to obtain the original face images and degraded face images Two output pairs of: image quality label pairs for evaluating image quality and the detection label pair for judging the authenticity of the image ;

[0016] According to the image quality label and detection label pair , adaptive sampling network Get face image quality feedback through calculation and algorithm performance feedback ;

[0017] Adaptive Sampling Network Based on algorithm performance feedback and face image quality feedback Calculate the face image pair The training weight , training weights It is used to calculate the weighted loss, and finally the weighted loss is used to help the quality degradation generation algorithm and adaptive deep fake detection algorithms Update algorithm parameters;

[0018] Algorithm reasoning stage:

[0019] Get the face image to be tested ;

[0020] Feed it into the trained adaptive deepfake detection algorithm , Adaptive Deep Fake Detection Algorithm Calculate the classification results of deep fake detection .

[0021] As a further improvement, the algorithm for generating the quality degradation described in the present invention Generate a degenerate setup , specifically:

[0022] Quality degradation generation algorithm Four classic degradation algorithms, namely Gaussian noise, Gaussian blur, downsampling and JPEG compression, are used to simulate the degradation operations suffered by images during propagation. Medium constrained Gaussian blur kernel , downsampling size , Gaussian noise size , JPEG compression ratio The value range of quality degradation generation algorithm Backbone network Mainly used to predict degradation settings middle , , , The value size:

[0023] .

[0024] As a further improvement, the quality degradation generation algorithm described in the present invention According to the degradation setting And the original face image obtained Generate original face image The corresponding degraded face image , get the face image pair , specifically:

[0025] Quality degradation generation algorithm According to the backbone network Predicted degradation settings , for the original face image Perform degradation operation to generate degraded face image :

[0026] ;

[0027] in, represents the convolution operation, Represents the scale factor The downsampling operation, express Compression ratio.

[0028] As a further improvement, the present invention provides , Adaptive Deep Fake Detection Algorithm Perform the dual tasks of image quality assessment and deep fake detection to obtain the original face images and degraded face images Two output pairs of : image quality labels for evaluating image quality and the detection label pair for judging the authenticity of the image , specifically:

[0029] Adaptive Deep Fake Detection Algorithm From the original face image and the corresponding degraded face image Extracting image representation and , characterization input to the adaptive deepfake detection algorithm Backbone network Get the quality label pair for evaluating image quality and the detection label pair for judging the authenticity of the image , according to the quality label , Adaptive Deep Fake Detection Algorithm The quality order loss function is introduced in the image quality assessment task:

[0030] ;

[0031] in, represents the number of face images, and They are The predicted quality labels of the original face image and the degraded face image, is a hyperparameter, and the loss function of the deep fake detection task can be expressed as:

[0032] L c l s = − ∑ i = 1 N [ y i l o g ( y ^ i ) + ( 1 − y i ) l o g ( 1 − y ^ i ) ] ;

[0033] in, Indicates The true label of the face image, Indicates The predicted probability of a forged face image corresponding to an original face image.

[0034] As a further improvement, the present invention provides and the detection label pair for judging the authenticity of the image , adaptive sampling network Get face image quality feedback through calculation and algorithm performance feedback , specifically:

[0035] Adaptive sampling network based on image quality label Compute image quality feedback , to represent the backbone network Predicted image quality score, the higher the score, the better the image quality:

[0036] ;

[0037] in, Represents Gaussian distribution, and at the same time, adaptive sampling network Calculate the true label based on the detection label and predicted labels Feedback on algorithm performance .

[0038] As a further improvement, the training weights described in the present invention It is used to calculate the weighted loss, and finally the weighted loss is used to help the quality degradation generation algorithm and adaptive deep fake detection algorithms Update algorithm parameters, specifically:

[0039] Based on adaptive sampling network is the original face image and the corresponding degraded face image The corresponding weights generated adaptively and , quality degradation generation algorithm and adaptive deep fake detection algorithms The training loss function is as follows:

[0040] ,

[0041] ,

[0042] in, Represents the weights of training face images, including the original face images and the corresponding degraded face image , is a non-negative hyperparameter of the balanced loss function;

[0043] Adaptive Sampling Network A local optimal strategy is used to predict the weights of each face image in the current training iteration, and the adaptive sampling network The optimization function is as follows:

[0044] ,

[0045] in, is a hyperparameter.

[0046] The beneficial effects of the present invention are as follows:

[0047] 1) The present invention generates an algorithm through quality degradation Generate a degenerate setup , the degenerate setting Four classic degradation algorithms, Gaussian noise, Gaussian blur, downsampling, and JPEG compression, are used to generate quality degradation algorithms. Provides a variety of degradation methods to accurately fit the image degradation operations in real-world scenarios including WeChat, Weibo, Facebook, Twitter and other platforms.

[0048] 2) Quality degradation generation algorithm of the present invention According to the degradation setting And the original face image obtained Generate original face image The corresponding degraded face image , get the face image pair . Quality degradation generation algorithm According to the degradation setting and the original face image Adaptive generation of degraded face images of different qualities , which solves the problem that the existing public deep fake face image datasets cannot cover the quality degradation of various face images, supplements the quality diversity of the existing deep fake face image datasets, helps the adaptive deep fake detection algorithm to better learn the difference between fake features and degraded noise, and provides support for the adaptive deep fake detection algorithm to effectively capture fake features;

[0049] 3) The present invention is based on the face image , Adaptive Deep Fake Detection Algorithm Perform the dual tasks of image quality assessment and deep fake detection to obtain the original face images and degraded face images Two output pairs of: face image quality label pair for evaluating face image quality and the detection label pair for judging the authenticity of deep fake face images The adaptive deep fake detection algorithm distinguishes the feature differences between original face images and degraded face images based on contrastive learning, effectively characterizes the feature distribution of face images of different qualities, and performs the dual tasks of face image quality assessment and deep fake detection, improving the robustness of the adaptive deep fake detection algorithm for face images of unknown quality;

[0050] 4) Adaptive sampling network of the present invention Based on face image quality feedback and algorithm performance feedback Calculate the face image pair The training weight , the training weights It is used to calculate the weighted loss, and finally the weighted loss is used to help the quality degradation generation algorithm and adaptive deep fake detection algorithms Update algorithm parameters. The present invention adopts a progressive weighting and optimization method, based on the quality feedback of the training image. and algorithm performance feedback The corresponding weights of the training images are gradually adjusted to achieve deep fake detection that is adaptive to the quality of face images, and the algorithm is dynamically trained based on the quality of face images. The adaptive deep fake detection algorithm is optimized according to the inconsistent feedback generated by face images of different qualities, thereby improving the balance between the accuracy of the adaptive deep fake detection algorithm for original face images and degraded face images. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a training diagram of a highly robust deep fake detection method based on adaptive learning in the present invention;

[0052] Figure 2It is a reasoning diagram of the highly robust deep fake detection method based on adaptive learning in the present invention. DETAILED DESCRIPTION

[0053] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0054] The purpose of the present invention is to address the problem that the existing deep fake detection methods have poor robustness and cannot adapt to changes in the quality of facial images, which ultimately leads to a decrease in the accuracy of degraded facial images. A highly robust deep fake detection method based on adaptive learning is proposed. Figure 1 is a training diagram of a highly robust deep fake detection method based on adaptive learning in the present invention;

[0055] The specific implementation method of the present invention is as follows:

[0056] Algorithm training phase:

[0057] Step 1: Get an original face image and the corresponding labels ;

[0058] Step 2: Quality degradation generation algorithm Generate a degenerate setup . Quality degradation generation algorithm According to the degree of degradation suffered by the face image during the propagation process, the degradation setting Gaussian noise kernel size in Constraints Medium, downsampling size s ∈ [ 0 . 5 , 1 ] , noise level α ∈ [ 0 , 10 ] , compression ratio c ∈ [ 10 , 100 ] At the same time, a small-scale normal distribution is used to initialize the quality degradation generation algorithm with a relatively low value. Backbone network , ensuring that the initial output value of the backbone network approaches 0, making the quality degradation generation algorithm Generate non-degraded face images in the initial stage. Backbone network Mainly used to predict degradation settings middle , , , The value size:

[0059] ;

[0060] Step 3: Quality degradation generation algorithm According to the degradation setting And the original face image obtained Generate original face image The corresponding degraded face image , get the face image pair and the corresponding true label pair Specifically, the quality degradation generation algorithm Backbone network Predicted degradation settings , for the original face image Perform degradation operation to generate degraded face image :

[0061] ,

[0062] in, represents the convolution operation, Represents the scale factor The downsampling operation, express Quality factor of the compression.

[0063] Step 4: Based on the face image , Adaptive Deep Fake Detection Algorithm Perform the dual tasks of image quality assessment and deep fake detection to obtain the original face images and degraded face images Two output pairs of: face image quality label pair for evaluating face image quality and the detection label pair for judging the authenticity of deep fake face images Specifically, the adaptive deep fake detection algorithm Backbone neural network From the original face image and generated by quality degradation algorithm Generate the corresponding degraded face image Extracting facial image representation from and After extracting the representation, the representation and Will be input into the backbone network The image quality assessment branch and the deep fake detection branch are used to obtain the face image quality label pair for evaluating the face image quality. And the detection label pair for judging the authenticity of deep fake face images In order to constrain the face image quality relationship between the original face image and the degraded face image, an adaptive deep fake detection algorithm The face image quality order loss function needs to be introduced during the training process:

[0064] ,

[0065] in, represents the number of face images, and They are The predicted quality labels of the original face image and the degraded face image, is a hyperparameter that defines the minimum difference between two predicted quality labels required to obtain zero loss. The loss function for the deep fake detection task can be expressed as:

[0066] L c l s = − ∑ i = 1 N [ y i l o g ( y ^ i ) + ( 1 − y i ) l o g ( 1 − y ^ i ) ] ,

[0067] in, Indicates The true label of the face image, Indicates The predicted probability of a forged face image corresponding to an original face image.

[0068] Step 5: Based on the face image quality label and detection label pair , adaptive sampling network Get face image quality feedback through calculation and algorithm performance feedback Specifically, according to the face image quality label, an image quality score needs to be introduced , to represent the backbone network Predicted image quality score, the higher the score, the better the image quality:

[0069] ,

[0070] in, represents Gaussian distribution. At the same time, the adaptive sampling network Calculate the true label based on the detection label and predicted labels Feedback on algorithm performance The algorithm performance feedback result provides the algorithm performance prediction error for each face image, and the smaller the error, the higher the confidence.

[0071] Step 6: Adaptive Sampling Network Based on face image quality feedback and algorithm performance feedback Calculate the face image pair The training weight , the training weights It is used to calculate the weighted loss, and finally the weighted loss is used to help the quality degradation generation algorithm and adaptive deep fake detection algorithms Update algorithm parameters. Specifically, the adaptive sampling network Based on face image quality feedback and algorithm performance feedback , adaptive sampling network is the original face image and the corresponding degraded face image Adaptively generate corresponding weights and Based on the training face image weights , quality degradation generation algorithm and adaptive deep fake detection algorithms The training loss function is as follows:

[0072] ,

[0073] ,

[0074] in, represents the training face image weights, is a non-negative hyperparameter of the balanced loss function.

[0075] Adaptive Sampling Network A local optimal strategy is used to predict the weight of each face image in the current training iteration, and the training weight of each face image is adaptively adjusted. Adaptive Sampling Network The optimization function is as follows:

[0076] ,

[0077] in, is a hyperparameter.

[0078] Algorithm reasoning stage:

[0079] Step 1: Get a face image to be tested ;

[0080] Step 2: Take the face image to be tested Input to the trained adaptive deepfake detection algorithm , the adaptive deep fake detection algorithm Calculate the face image to be tested Deep fake detection results .

[0081] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.

Claims

1. A highly robust deep fake detection method based on adaptive learning, It is characterized in that include: Algorithm training phase and algorithm reasoning phase, specifically: Algorithm training phase: Get an original face image x and the corresponding label y; Generate a degradation setting S through the quality degradation generation algorithm G; The quality degradation generation algorithm G generates a degraded face image x′ corresponding to the original face image x according to the degradation setting S and the obtained original face image x, and obtains a face image pair {x, x′} and a corresponding true label pair {y, y′}; Based on the face image pair {x, x′}, the adaptive deep fake detection algorithm F performs the dual tasks of image quality assessment and deep fake detection, and obtains two output pairs corresponding to the original face image x and the degraded face image x′: the image quality label pair for evaluating the image quality and the detection label pair for judging the authenticity of the image The adaptive deep fake detection algorithm F extracts image representation f from the original face image x and the corresponding degraded face image x′ respectively. θ (x) and f θ (x′), represents the backbone network f input to the adaptive deep fake detection algorithm F θ Get the quality label pair for evaluating image quality and the detection label pair for judging the authenticity of the image According to the quality label The adaptive deep fake detection algorithm F introduces a quality order loss function in the image quality assessment task: Where N represents the number of face images, and are the predicted quality labels of the i-th original face image and the degraded face image, respectively, m is a hyperparameter, and the loss function of the deep fake detection task can be expressed as: Among them, y i represents the true label of the i-th face image, represents the predicted probability of the forged face image corresponding to the i-th original face image; According to the image quality label and detection label pair Adaptive Sampling Network The face image quality feedback s is obtained by calculation q And algorithm performance feedback Δy, according to the image quality label, adaptive sampling network Calculate image quality feedbacks q , to represent the backbone network f θ Predicted image quality score, the higher the score, the better the image quality: s q =p(1|q); Among them, p represents Gaussian distribution, and at the same time, the adaptive sampling network Calculate the true label y and predicted label based on the detection label Feedback on algorithm performance Adaptive Sampling Network Based on the algorithm performance feedback Δy and the face image quality feedback s q Calculate the training weights {w,w′} for the face image pair {x,x′}, the training weights {w,w′} are used to calculate the weighted loss, and finally use the weighted loss to help the quality degradation generation algorithm G and the adaptive deep fake detection algorithm F update the algorithm parameters based on the adaptive sampling network The corresponding weights w and w′ adaptively generated for the original face image x and the corresponding degraded face image x′, the training loss functions of the quality degradation generation algorithm G and the adaptive deep fake detection algorithm F are as follows: L G =w x L cls , L F =w x (L cls +λL order ), Among them, w x represents the training face image weights, including the original face image x and the corresponding degraded face image x′, λ is a non-negative hyperparameter of the balanced loss function, Adaptive Sampling Network A local optimal strategy is used to predict the weights of each face image in the current training iteration, and the adaptive sampling network The optimization function is as follows: Among them, M is a hyperparameter; Algorithm reasoning stage: Get the face image x to be tested; It is input into the trained adaptive deep fake detection algorithm F, and the adaptive deep fake detection algorithm F calculates the classification result y of deep fake detection.

2. The highly robust deep fake detection method based on adaptive learning according to claim 1, It is characterized in that The quality degradation generation algorithm G is used to generate a degradation setting S, specifically: The quality degradation generation algorithm G uses four classic degradation algorithms: Gaussian noise, Gaussian blur, downsampling, and JPEG compression to simulate the degradation operations suffered by images during the dissemination process on social media platforms, and constrains the Gaussian blur kernel k, downsampling size s, Gaussian noise size α, and the value range of JPEG compression ratio c in the degradation setting S. The backbone network f of the quality degradation generation algorithm G φ It is mainly used to predict the values ​​of k, s, α, and c in the degradation setting S: S=(k,s,α,c).

3. The highly robust deep fake detection method based on adaptive learning according to claim 1, It is characterized in that The quality degradation generation algorithm G generates a degraded face image x′ corresponding to the original face image x according to the degradation setting S and the obtained original face image x, and obtains a face image pair {x, x′}, which is specifically: The quality degradation generation algorithm G is based on the backbone network f φ The predicted degradation setting S performs a degradation operation on the original face image x to generate a degraded face image x′: in, represents the convolution operation, ↓s represents the downsampling operation with a scale factor s, and c represents the JPEG compression ratio.

Citation Information

Patent Citations

  • Distributed AIGC forgery detection method based on deep fusion network

    CN118015715A

  • Multi-view 3D target detection method based on sampling adaptive continuous NeRF

    CN118071999A

Cited By

  • Pluggable forged face detection method based on test time domain adaptation

    CN120048008A

  • A method for detecting a pluggable fake face based on test time domain adaptation

    CN120048008B