A cross-modal deepfake detection method based on adaptive fusion of visual artifact features in time and frequency domains

By adopting an adaptive fusion method of time-frequency domain visual artifact features in deep forgery detection, combining Dobesi wavelet transform and convolutional neural network to extract features, and using gated convolution for adaptive fusion, the existing technology is solved. It solves the problems of reduced detection accuracy and insufficient frequency domain features, and achieves higher detection accuracy and robustness.

CN114898438BActive Publication Date: 2024-09-17DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210586444.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-09-17
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

The detection accuracy of existing deep forgery detection methods decreases when processing images that have been compressed twice, and fixed frequency domain features are not enough to deal with the changeable forgery-generated images, making them easily attacked by new methods.

Method used

An adaptive fusion method based on time-frequency domain visual artifact features is adopted, including a spatial domain feature extraction module and two frequency domain feature extraction modules. Shallow low-frequency features and deep frequency domain features are extracted through Dobesi wavelet transform and convolutional neural network. features, and uses gated convolution for adaptive feature fusion, combining spatiotemporal and frequency domain features for cross-modal detection.

Benefits of technology

It improves the accuracy and robustness of deep forgery detection, can show higher detection accuracy on different data sets, and effectively cope with changeable forgery-generated images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898438B
    Figure CN114898438B
Patent Text Reader

Abstract

A cross-modal deep fake detection method based on adaptive fusion of visual artifact features in time and frequency domains belongs to the field of deep fake detection technology, and includes the following steps: S1, extracting image color features that can represent the overall pattern of the original image from the spatial domain; S2, extracting two different frequency domain features, one is shallow low-frequency features, directly extracting shallow low-frequency features from the original input image, and using shallow low-frequency features to expand the original RGB image to the frequency domain; the other is deep frequency domain features, extracting the residual map of the input image, and using a convolution extractor to extract high-frequency features. S3, using an adaptive feature fusion module composed of gated convolutions to fuse shallow low-frequency features and deep frequency domain features, so that the features of different branches are fully expressed in the classification stage. The present invention has conducted a large number of experiments on many data sets, and the experimental results have proved the effectiveness and robustness of our method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of deep fake detection, and specifically relates to a cross-modal deep fake detection method based on adaptive fusion of time-frequency domain visual artifact features. Background Art

[0002] Deepfake, or AI face-swapping, has set off a wave of craze on the Internet in recent years. Deepfake is an intelligent processing technology that uses artificial intelligence technology to forge digital content such as audio, images or videos. It generally refers to the tampering of the face area, which can imitate a specific person or make a specific person look like doing a specific thing, and to human visual effects, it can be so realistic that it is indistinguishable from the real thing.

[0003] With the development of Generative Adversarial Networks (GAN) and Autoencoders in deep learning technology, data-driven deep fake generation technology will leave almost no trace on the fake image. Technology is often a double-edged sword. While enriching our entertainment methods and facilitating our lives, it may also quietly affect us. Criminals use deep fake technology to generate defamatory images to defame others, generate false news images, and forge the speeches of public figures, which greatly harms personal reputation, social trust and national stability. Therefore, we start from the image forgery technology with the greatest harm, face forgery, and study preventive measures that can quickly and accurately detect forged images. We call it Deepfake Detection.

[0004] The images or video content generated by deep fakes usually contain human faces and use the face as the main content, based on which some multimedia information is generated for the purpose of defamation, slander and rumor-mongering.

[0005] Since the term deepfake appeared in 2018, with people's awareness of the harm caused by deepfakes and the introduction of relevant laws by the state to restrict the spread of deepfake content, deepfake detection technology has also ushered in a very rapid development. Although these methods can achieve an accuracy of 90% or even higher on public data sets, they generally have the following problems: First, most methods try to find visual artifacts left on the image when deepfakes are synthesized, but the changes to the original image pattern made by the images synthesized by the generative adversarial network are very small and can even be repaired, especially for the color mode of the image; second, in real scenes, most of the images circulated on the Internet are compressed twice, and many classifiers with high detection accuracy for original resolution images will significantly reduce their accuracy when applied to heavily compressed images; in addition, although many methods take the frequency domain features of the image into consideration, they have some defects, that is, they all use fixed filters to extract frequency domain features, which are often insufficient to cope with the variable fake generated images and GAN network generators, and are very easy to be attacked by new methods. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes: a cross-modal deep fake detection method based on adaptive fusion of time-frequency domain visual artifact features, including a spatial domain feature extraction module and two frequency domain feature extraction modules, and using an adaptive cross-domain fusion module to fuse the features of each module; it includes the following steps:

[0007] S1, extracting image color features that can represent the overall pattern of the original image from the spatial domain;

[0008] S2. Extract two different frequency domain features. One is shallow low-frequency features, which are directly extracted from the original input image, and the original RGB image is expanded to the frequency domain using the shallow low-frequency features. The other is deep frequency domain features, which extract the residual map of the input image and use the convolution extractor to extract high-frequency features. The residual transformation map of the image represents the fused edge information of the face in the original image, while reducing the impact of color differences in the smooth part of the image.

[0009] S3. Use an adaptive feature fusion module composed of gated convolution to fuse shallow low-frequency features and deep frequency domain features, so that the features of different branches can be fully expressed in the classification stage.

[0010] Furthermore, the step S1 is specifically as follows: in the feature extraction stage, it is divided into two branches, a shallow composite feature extraction branch and a deep frequency domain feature extraction branch, and the model uses a ResNet network as a basic backbone network;

[0011] Firstly, a convolutional neural network is used to extract the color domain features of the image, and Dobesi wavelet transform is selected as the filtering method. Dobesi wavelet transform uses a short time window to analyze long signals and adapts to the local and smooth changes of the image by finding a tightly supported orthogonal set to achieve the purpose of scaling.

[0012] The Dobesi wavelet transform consists of an integer L and a series of wavelet filter coefficients {a i , i=0,1,2,...,L-1}, and the following two relations are stipulated:

[0013]

[0014]

[0015] Where ρ(x) is the amplitude function, ψ(x) is the mother function of wavelet transform, L is the order of Dobesi wavelet transform, and x is the step size in the time domain. As shown in the formula, there are L orthogonal conditions in the wavelet transform, and the wavelet coefficient a is obtained. l , the frequency domain expansion A(w) with orthogonality can be expressed as:

[0016]

[0017] Where C is a constant term, and the fourth-order coefficient h(l) can be obtained as follows:

[0018]

[0019]

[0020] After fusing the Dobesi wavelet features and color features, they are input into the convolutional neural network to obtain a composite feature map, and simple dimensional splicing is used in the composite stage.

[0021] Furthermore, the residual map is taken as the basic input, the residual map is obtained through the filter, and the deep frequency domain feature extraction method is used to obtain the deep frequency domain information;

[0022] The frequency domain features combined with colors extracted from the original image can reflect the facial details, while the deep frequency domain features extracted from the residual image reflect the edge information of the face image.

[0023] First, a residual map reflecting the mixed boundary information is extracted, and the residual map is mapped from the original narrow channel information to a high-dimensional space, and a neural network is used to extract deep frequency domain features;

[0024] The noise residual is expressed as follows:

[0025]

[0026] Among them, Xij It represents the pixel value of the currently calculated pixel point, N ij represents the neighborhood pixels, It is defined in N ij cX ij The predicted value; c is the residual order, which is a variable and changes according to the filter type. The three selected filters are: local linear predictor, 3*3 translation-invariant linear pixel predictor, and a filter based on the Nelder-Nead algorithm with a kernel of 5*5.

[0027] Furthermore, the two feature maps of shallow low-frequency features and deep frequency domain features have the same output dimension. Assuming that the dimensions are C*H*W, gated convolution is used to ensure the adaptive characteristics of the fusion module. In the gated convolution, a learnable dynamic feature selection mechanism is adopted, and all positions of each layer of each channel are selected one by one. Visual artifacts are always fixed on some fixed adjacent pixels, which are adjacent both in space and in frequency domain. Gated convolution is used to capture and locate these key pixels. In addition, the two feature maps mentioned above are used to locate the most discriminative area of ​​the face. First, the C input channels are mapped to the 2C-dimensional feature latent space, and then half of them are used as gates to constrain the weight size of the feature points, and the other half are used as features. Sigmoid and relu are used as activation functions to constrain their results; finally, point-to-point matrix multiplication is performed, and the implementation formula is as follows:

[0028]

[0029] Output y,x Represents the output of gated convolution, and the sigmoid expression is: The Relu expression is: ReLu(x) = max(0,x), C represents the mapping dimension, W represents the model parameter; the fusion layer adaptive feature extraction module has two branches of input F mixture represents the output of the composite feature extraction module, F residual Represents the output of the residual feature extraction module, which comes from the previous composite feature extraction and residual feature extraction modules respectively.

[0030] The beneficial effects of the present invention are as follows: the present invention proposes a cross-domain method, combining the spatiotemporal domain and frequency domain features, extracting the color pattern of the original image in the spatial domain; in the frequency domain, extracting two frequency domain feature maps from the shallow frequency domain features and the deep frequency domain features, respectively, the shallow frequency domain features are extracted from the original input image, and the deep frequency domain features are extracted from the residual map; an adaptive feature fusion module is proposed, so that the features of different branches can be fully expressed in the classification stage. A large number of experiments have been conducted on many data sets, and the experimental results have proved the effectiveness and robustness of the method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a principle block diagram of the overall algorithm of the present invention;

[0032] Figure 2 Comparison of color and frequency domain features between the real image and the forged image of the present invention;

[0033] Figure 3 A filter used in extracting a residual image of the present invention;

[0034] Figure 4 It is the adaptive fusion module of the present invention. DETAILED DESCRIPTION

[0035] A cross-modal deepfake detection method based on adaptive fusion of visual artifact features in time and frequency domains, such as Figure 1 As shown, it includes the following steps:

[0036] It includes a spatial domain feature extraction part and two frequency domain feature extraction modules, and uses an adaptive cross-domain fusion module to fuse the features of each part; it includes the following steps:

[0037] S1, extracting image color features that can represent the overall pattern of the original image from the spatial domain;

[0038] S2, extract two different frequency domain features, one is shallow low-frequency features, which are directly extracted from the original input image and used to expand the original RGB image to the frequency domain, and the other is deep frequency domain features, which extract the residual map of the input image and use the convolution extractor to extract high-frequency features. The residual map attenuates the smooth part of the image and emphasizes the edge information of the image;

[0039] S3. An adaptive feature fusion module composed of gated convolution is used to fuse shallow low-frequency features and deep frequency domain features, so that the features of different branches can be fully expressed in the classification stage.

[0040] The deepfake methods proposed in recent years have very rigorous image post-processing engineering, including blurring of mixed boundaries and pixel interpolation, making the fusion boundary almost invisible. Especially in the RGB color domain, that is, the spatial domain directly observed by the human eye, which is also the area of ​​concern for most deepfake detection methods. However, Figure 2As shown in Figure 1, we found that although there is almost no difference between the real image and the forged image in the color domain, their statistical characteristics have very obvious differences when they are mapped to the frequency domain, especially in the high-frequency area, which reflects the fusion information when the image is tampered. Therefore, the face forgery detection method in this paper focuses on the fusion of color domain and frequency domain features. We use a filter with dynamic characteristics to extract the frequency domain features of the input image, and then use three filters to combine to obtain the image residual map, and extract deep frequency domain features based on it. In addition, we also use an adaptive feature fusion module composed of gated convolution to fuse these two parts of features.

[0041] Among them, the step S1 is specifically as follows: in the feature extraction stage, it is divided into two branches, a shallow composite feature extraction branch and a deep frequency domain feature extraction branch, and the model uses the ResNet network as the basic backbone network.

[0042] Firstly, a convolutional neural network is used to extract the color domain features of the image, and the Dobesi wavelet transform is selected as the filtering method. The Dobesi wavelet transform uses a short time window to analyze long signals, and its scaling of a tightly supported orthogonal set is adapted to local and smooth changes.

[0043] The Dobesi wavelet transform consists of an integer L and a series of wavelet filter coefficients {a i , i=0,1,2,...,L-1}, and the following two relations are stipulated:

[0044]

[0045]

[0046] Where ρ(x) is the amplitude function, ψ(x) is the mother function of wavelet transform, L is the order of Dobesi wavelet transform, and x is the step size in the time domain. As shown in the formula, there are L orthogonal conditions in the wavelet transform, and the wavelet coefficient a is obtained. l , the frequency domain expansion A(w) with orthogonality can be expressed as:

[0047]

[0048] Where C is a constant term, and the fourth-order coefficient h(l) can be obtained as follows:

[0049]

[0050]

[0051] After fusing the Dobesi wavelet features and color features, they are input into the convolutional neural network to obtain a composite feature map, and simple dimensional splicing is used in the composite stage.

[0052] Among them, the residual map is taken as the basic input, the residual map is obtained through the filter, and the deep frequency domain feature extraction method is used to obtain the deep frequency domain information. The deep and shallow frequency domain features we are talking about should be distinguished from high-frequency and low-frequency features. The former is divided according to the position of the latent space level of feature extraction, while the latter is distinguished according to the frequency band range.

[0053] The frequency domain features combined with colors extracted from the original image can reflect facial details, while the deep frequency domain features extracted from the residual image reflect the edge information of the face image.

[0054] First, a residual map reflecting the mixed boundary information is extracted, and the residual map is mapped from the original narrow channel information to a high-dimensional space, and a neural network is used to extract deep frequency domain features;

[0055] First we use Figure 3 The filter shown is used to capture different types of dependencies between adjacent pixels. The advantage of using the residual map is that the image content is greatly compressed, giving the image a more compatible and generalized representation. The following formula represents the noise residual:

[0056]

[0057] Among them, X ij It represents the pixel value of the pixel we are currently calculating, N ij represents the neighborhood pixels, It is defined in N ij cX ij The predicted value of . c is the residual order, which is a variable that changes according to the filter type. The three filters selected are: local linear predictor, 3*3 translation-invariant linear pixel predictor, and a filter based on the Nelder-Nead algorithm with a kernel of 5*5. Experiments show that this combination of three filters has the best performance for our face task.

[0058] In addition, we truncate the calculated residual value to limit the residual range, and quantize it to make the residual more sensitive to image edges and discontinuities. Based on the kernel size, we select the quantization coefficients as 4, 12, and 2. We use HardTanh to perform truncation calculations to constrain the residual between 0 and 1.

[0059] Among them, the shallow low-frequency features and deep frequency domain features have the same output dimension, assuming that the dimensions are C*H*W. In order to fuse the two parts and achieve higher deepfake detection performance, we propose an adaptive feature fusion module with the following structure: Figure 4 shown.

[0060] Gated convolution is used to ensure the adaptive characteristics of the fusion module. In gated convolution, a learnable dynamic feature selection mechanism is adopted and all positions of each layer of each channel are selected one by one, while conventional convolution only treats each pixel as equivalent. In forgery detection, the generated image will undergo a series of preprocessing, such as cropping and affine transformation. Finally, the image is represented by the face area occupying most of the pixel area of ​​the image (more than 90%). Moreover, visual artifacts are always fixed on a fixed number of adjacent pixels, whether we are adjacent in space or frequency domain. We use gated convolution to capture and locate these key pixels. In addition, we also use the two feature maps mentioned above to locate the most discriminative areas in the face. First, the C input channels are mapped to the 2C-dimensional feature latent space, and then half of them are used as gates to constrain the weight size of the feature points, and the other half are used as features. Sigmoid and relu are used as activation functions to constrain their results respectively; finally, point-to-point matrix multiplication is performed, and the implementation formula is as follows:

[0061]

[0062] Output y,x Represents the output of gated convolution, and the sigmoid expression is: The Relu expression is: ReLu(x) = max(0,x), C represents the mapping dimension, and W represents the model parameter. The fusion layer adaptive feature extraction module has two branches of input F as shown in the figure. mixture represents the output of the composite feature extraction module, F residual Represents the output of the residual feature extraction module, which come from the previous composite feature extraction and residual feature extraction modules respectively.

[0063] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A cross-modal deepfake detection method based on adaptive fusion of visual artifact features in time and frequency domains, It is characterized in that It includes a spatial domain feature extraction module and two frequency domain feature extraction modules, and uses an adaptive cross-domain fusion module to fuse the features of each module; It includes the following steps: S1, extracting image color features that can represent the overall pattern of the original image from the spatial domain; S2. Extract two different frequency domain features. One is shallow low-frequency features. The shallow low-frequency features are directly extracted from the original input image. The original RGB image is expanded to the frequency domain using the shallow low-frequency features. The other is deep frequency domain features. The residual map of the input image is extracted. The high-frequency features are extracted using a convolution extractor. The residual transformation map of the image represents the fused edge information of the face in the original image, while reducing the influence of color differences in the smooth part of the image. S3, using an adaptive feature fusion module composed of gated convolution to fuse shallow low-frequency features and deep frequency domain features, so that the features of different branches can be fully expressed in the classification stage; The two feature maps of shallow low-frequency features and deep frequency domain features have the same output dimensions. Assume that the dimensions are C*H*W. Use gated convolution to ensure the adaptive characteristics of the fusion module. In gated convolution, a learnable dynamic feature selection mechanism is adopted, and all positions of each layer of each channel are selected one by one. Visual artifacts are always fixed on some fixed adjacent pixels, which are adjacent both in space and frequency domain. Use gated convolution to capture and locate these key pixels. In addition, use the two feature maps mentioned above to locate the most discriminative area of ​​the face. First, map the C input channels to the 2C-dimensional feature latent space, and then use half of them as gates to constrain the weight size of the feature points, and the other half as features. Use sigmoid and relu as activation functions to constrain their results; finally, perform point-to-point matrix multiplication, and the implementation formula is as follows: Output y,x Represents the output of gated convolution, and the sigmoid expression is: The Relu expression is: ReLu(x) = max(0,x), C represents the mapping dimension, W represents the model parameter; the gated convolution weight, feature weight, fusion layer adaptive feature extraction module has two branch inputs, W gates represents the output of the composite feature extraction module, W features Represents the output of the residual feature extraction module, which comes from the previous composite feature extraction and residual feature extraction modules respectively.

2. According to claim 1, the cross-modal deep fake detection method based on adaptive fusion of visual artifact features in time and frequency domains, It is characterized in that The step S1 is specifically as follows: in the feature extraction stage, it is divided into two branches, a shallow composite feature extraction branch and a deep frequency domain feature extraction branch, and the model uses the ResNet network as the basic backbone network; Firstly, a convolutional neural network is used to extract the color domain features of the image, and Dobesi wavelet transform is selected as the filtering method. Dobesi wavelet transform uses a short time window to analyze long signals and adapts to the local and smooth changes of the image by finding a tightly supported orthogonal set to achieve the purpose of scaling. The Dobesi wavelet transform consists of an integer L and a series of wavelet filter coefficients {a i , i=0,1,2,...,L-1}, and the following two relations are stipulated: Where ρ(x) is the amplitude function, ψ(x) is the mother function of wavelet transform, L is the order of Dobesi wavelet transform, and x is the step size in the time domain. As shown in the formula, there are L orthogonal conditions in the wavelet transform, and the wavelet coefficient a is obtained. l , the frequency domain expansion A(w) with orthogonality can be expressed as: Where C is a constant term, and the fourth-order coefficient h(l) can be obtained as follows: After fusing the Dobesi wavelet features and color features, they are input into the convolutional neural network to obtain a composite feature map, and simple dimensional splicing is used in the composite stage.

3. According to claim 1, the cross-modal deep fake detection method based on adaptive fusion of visual artifact features in time and frequency domains, It is characterized in that The residual image is used as the basic input, the residual image is obtained through the filter, and the deep frequency domain feature extraction method is used to obtain the deep frequency domain information; The frequency domain features combined with colors extracted from the original image can reflect facial details, while the deep frequency domain features extracted from the residual image reflect the edge information of the face image. First, a residual map reflecting the mixed boundary information is extracted, and the residual map is mapped from the original narrow channel information to a high-dimensional space, and a neural network is used to extract deep frequency domain features; The noise residual is expressed as follows: Among them, X ij It represents the pixel value of the currently calculated pixel point, N ij represents the neighborhood pixels, It is defined in N ij cX ij The predicted value; c is the residual order, which is a variable and changes according to the filter type. The three selected filters are: local linear predictor, 3*3 translation-invariant linear pixel predictor, and a filter based on the Nelder-Nead algorithm with a kernel of 5*5.