Audio-visual temporal deepfake localization method based on joint modeling of time domain, space domain, frequency domain and acoustic modal
By employing a joint modeling approach encompassing the temporal, spatial, frequency, and acoustic modal domains, this method addresses the shortcomings in frequency domain artifact capture and the incomplete fusion of multimodal features in existing technologies. It enables precise temporal localization of deepfake videos, thereby improving localization accuracy and robustness.
Patent Information
- Application Number
- CN202610984362.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for localizing deepfake videos in high-fidelity, complex scenarios suffer from insufficient capture of frequency domain artifacts, lack of long-term time modeling capabilities, and imperfect multimodal feature fusion, resulting in limited localization accuracy.
By jointly modeling temporal, spatial, frequency, and acoustic modes, multi-band components of video frames are extracted using discrete cosine transform and learnable filter banks. Spatiotemporal-frequency features are constructed by combining 3DCNN and ResNet, audiovisual features are enhanced using a multi-scale pyramid attention network, and cross-modal fusion is performed through a bidirectional cross-attention mechanism, ultimately generating a refined temporal boundary map.
It achieves precise temporal localization of deepfake segments, improving the localization accuracy and robustness in complex audio and video tampering scenarios.
Smart Images

Figure CN123161005A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of digital media forgery location technology, and in particular relates to an audiovisual temporal depth forgery location method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality. Background Technology
[0002] With the rapid development of generative artificial intelligence, technologies such as variational autoencoders, generative adversarial networks, and diffusion models have significantly lowered the technical threshold for producing high-fidelity synthetic media. Through face swapping, voice cloning, or lip-syncing, realistic deepfake videos can be easily created, posing a serious threat to information security, the integrity of evidence, and social trust. Researchers have developed detection methods to identify tampered content. Early solutions primarily focused on the visual modality, identifying deepfakes by analyzing features such as inconsistencies in facial expressions, unnatural eye movements, or lip-syncing deviations, or by identifying specific flaws in the deepfake generation process, such as mixing errors, inconsistent lighting, or spatial domain anomalies. Subsequently, detection methods for tampered audio emerged; however, these methods have inherent limitations due to their focus on specific modalities, which are particularly pronounced in real-world scenarios where both visual and audio modalities can be tampered with. Many studies have attempted to leverage the inconsistencies between audiovisual modalities, achieving significant results in binary classification problems.
[0003] While current detection and localization methods have made some progress in the field of audiovisual forgery, significant technical shortcomings remain when it comes to accurately locating temporal boundaries in high-fidelity, complex deepfakes. First, existing methods rely excessively on spatial domain features, failing to effectively capture fine-grained frequency domain artifacts. Most existing forgery localization methods are limited to capturing tampering artifacts in the spatial domain. With the iterative upgrades of deepfake technology, advanced forgery algorithms can largely eliminate unnatural traces visible to the naked eye or shallow networks in the spatial domain. However, the forgery process inevitably introduces abnormal spectral fluctuations in the low, mid, and high frequency bands of the image. Existing methods focus on extracting macroscopic global semantic features of the image, ignoring fine-grained frequency domain forgery traces, thus limiting the localization accuracy of highly concealed forged videos. Second, existing methods lack long-range temporal modeling capabilities, resulting in limitations in spatiotemporal feature extraction. Existing video feature extraction algorithms generally employ 3D convolutional neural networks to extract local spatiotemporal features. However, limited by the local receptive field of convolutional operations, these methods struggle to establish effective long-range temporal dependencies over longer time series, easily overlooking temporal forgery clues spanning long time spans in video sequences and failing to handle complex temporal domain manipulations. Third, audio-visual modalities lack deep interaction, and multimodal feature fusion mechanisms are inadequate. Existing audiovisual deep forgery localization algorithms often fail to establish effective dynamic audio-visual fusion mechanisms. Visual and auditory modal features are typically extracted in isolation or only superficially stitched together, lacking a deep fusion network that allows video and audio modalities to perceive and interact dynamically. When generating forgery boundary maps, they fail to fully exploit and utilize the guiding potential of cross-modal fusion features. Due to the lack of robust multimodal feature interaction and alignment mechanisms, the generated boundary maps have poor robustness, making it difficult to achieve accurate forged segment localization in complex real-world scenarios involving combined audio-visual manipulation. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention proposes an audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modalities, thereby resolving the issues present in the prior art.
[0005] In a first aspect, to achieve the above objectives, the present invention provides an audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modalities, comprising the following steps:
[0006] The video to be detected is acquired, the video frame sequence is converted to the frequency domain and different frequency band components are separated by multiple sets of learnable filters, and then inversely transformed back to the spatial domain to generate spatial features with multi-channel and multi-frequency band information.
[0007] The spatiotemporal features of the video frames and the spatial features of the multi-channel multi-band information are extracted and fused to obtain enhanced visual features, while the acoustic features of the audio signal are extracted.
[0008] The enhanced visual features and the acoustic features are respectively input into a multi-scale pyramid attention network for local temporal cue enhancement to obtain refined visual features and refined audio features;
[0009] The refined visual features and the refined audio features are interactively fused using a bidirectional cross-attention mechanism to generate audiovisual fusion features;
[0010] Based on the audiovisual fusion features, the refined visual features, and the refined audio features, the start probability and termination probability of the forged segment are predicted by the boundary localization network, and the temporal boundary localization result is output.
[0011] Secondly, the present invention also provides an audiovisual temporal depth spoofing localization system based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modality, for implementing an audiovisual temporal depth spoofing localization method based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modality, the system comprising:
[0012] The multi-frequency band information spatial feature extraction module is used to convert the video frame sequence of the video to be detected to the frequency domain and separate different frequency band components through multiple sets of learnable filters, and then inversely transform it back to the spatial domain to generate multi-channel multi-frequency band information spatial features.
[0013] The audiovisual feature encoding module is used to extract the spatiotemporal features of the video frame and the spatial features of the multi-channel multi-band information respectively, and fuse them to obtain enhanced visual features, while extracting the acoustic features of the audio signal.
[0014] The multi-scale feature enhancement module is used to input the enhanced visual features and the acoustic features into a multi-scale pyramid attention network for local temporal cue enhancement, thereby obtaining refined visual features and refined audio features.
[0015] The multimodal fusion module is used to interactively fuse the refined visual features and the refined audio features using a bidirectional cross-attention mechanism to generate audiovisual fusion features;
[0016] The boundary localization module is used to predict the start and end probabilities of the forged segment through the boundary localization network based on the audiovisual fusion features, the refined visual features, and the refined audio features, and output the temporal boundary localization result.
[0017] Thirdly, the present invention also provides a computer terminal device, comprising:
[0018] One or more processors;
[0019] A memory, coupled to the processor, for storing one or more programs;
[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the steps of the audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality in the first aspect above.
[0021] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, it implements the steps of the audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality in the first aspect described above.
[0022] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality in the first aspect described above.
[0023] Compared with the prior art, the present invention has the following advantages and technical effects:
[0024] This invention provides a method for locating deepfake audiovisual segments based on joint modeling of temporal, spatial, frequency, and acoustic modalities. This method fully mines frequency-domain forgery clues and audio-visual interaction information in videos to achieve accurate temporal localization of deepfake segments. By extracting low-frequency, mid-frequency, high-frequency, and full-band components of video frames through discrete cosine transform and learnable filter banks, it can capture frequency-domain forgery traces at a fine-grained scale, overcoming the limitation of existing methods in locating highly concealed forged videos. By introducing a local window multi-scale pyramid attention network to enhance audiovisual features, it can establish effective long-range temporal dependencies and capture temporal forgery clues spanning long time spans. By integrating cross-modal information through gating mechanisms and cascaded fusion algorithms, it achieves mutual perception and dynamic interaction between video and audio modalities, improving the robustness of the boundary map. Finally, a refined temporal boundary map is generated through the boundary localization module, enabling accurate localization of forged segments in complex audio-visual joint tampering scenarios. Attached Figure Description
[0025] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings:
[0026] Figure 1 This is a flowchart of an embodiment of the present invention;
[0027] Figure 2 This is a structural diagram of the spatial and frequency domain fusion module according to an embodiment of the present invention;
[0028] Figure 3This is a structural diagram of the video / frequency domain front-end network module according to an embodiment of the present invention;
[0029] Figure 4 This is a structural diagram of the audio feature extraction module according to an embodiment of the present invention;
[0030] Figure 5 This is a structural diagram of the multi-scale local window pyramid attention module according to an embodiment of the present invention;
[0031] Figure 6 This is a structural diagram of the audio-video fusion feature module according to an embodiment of the present invention;
[0032] Figure 7 This is a structural diagram of the fusion boundary map generation module according to an embodiment of the present invention;
[0033] Figure 8 This is a schematic diagram illustrating the final localization effect of an embodiment of the present invention on the entire LAV-DF test set. Detailed Implementation
[0034] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0035] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0036] To address the shortcomings of existing methods, this invention proposes a method and system for deep temporal forgery localization in audiovisual media based on joint modeling of temporal, spatial, frequency, and acoustic modalities. This method extracts low-frequency, mid-frequency, high-frequency, and full-band components of video frames using discrete cosine transform and learnable filter banks, and constructs spatiotemporal-frequency joint features by combining 3DCNN and ResNet; simultaneously, it utilizes SE-ResNet to extract Mel-frequency cepstrum features from the audio. Furthermore, it enhances the audiovisual features through a local window multi-scale pyramid attention network, and integrates cross-modal information using gating mechanisms and cascaded fusion algorithms. Finally, a refined temporal boundary map is generated through a boundary localization module, thereby achieving accurate identification of audiovisual temporal forgeries.
[0037] Example 1
[0038] like Figure 1 As shown, this embodiment provides a method for audiovisual temporal depth forgery localization based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modalities, including:
[0039] The video to be detected is acquired, the video frame sequence is converted to the frequency domain and different frequency band components are separated by multiple sets of learnable filters, and then inversely transformed back to the spatial domain to generate spatial features with multi-channel and multi-frequency band information.
[0040] The video to be detected is a digital video containing deepfake tampering features, including but not limited to deepfake face swapping (such as FaceSwap face swapping method), voiceprint cloning + lip-syncing forged video, audio and video dual-modal joint tampering video, and suspected deepfake audio-visual videos for social media dissemination.
[0041] The spatiotemporal features of the video frames and the spatial features of the multi-channel multi-band information are extracted and fused to obtain enhanced visual features, while the acoustic features of the audio signal are extracted.
[0042] Regarding the aforementioned video to be tested, the audio data specifically includes:
[0043] For deepfake videos generated by deepfake face swapping and facial texture / expression alteration, the audio data is the original human voice and ambient background audio time-domain signal synchronized with facial lip movements in the video;
[0044] For audio-visual lip-sync mismatch forgery videos generated by voiceprint cloning, speech synthesis and lip-sync tampering, the audio data is the time-domain signal of the forged speech audio generated by text-to-speech synthesis, or the time-domain signal of the target speech audio after overall replacement.
[0045] For deepfake videos that are jointly tampered with by visual and audio modalities or independently tampered with by a single modality, the audio data is an audio time-domain signal that has been tampered with by a single modality or by dual modality collaborative tampering;
[0046] For suspected deepfake audiovisual videos circulating on social media platforms, short video platforms, and news media, the audio data is a time-domain signal of voice, background noise, and mixed sound effects that has been compressed and encoded online and edited.
[0047] The enhanced visual features and the acoustic features are respectively input into a multi-scale pyramid attention network for local temporal cue enhancement to obtain refined visual features and refined audio features;
[0048] The refined visual features and the refined audio features are interactively fused using a bidirectional cross-attention mechanism to generate audiovisual fusion features;
[0049] Based on the audiovisual fusion features, the refined visual features, and the refined audio features, the start probability and termination probability of the forged segment are predicted by the boundary localization network, and the temporal boundary localization result is output.
[0050] The specific process includes:
[0051] S1. Multimodal data preprocessing and spatial feature extraction of multi-band information: Different frequency band components of video frames are separated by discrete cosine transform and learnable filters to generate spatial features of multi-channel multi-band information.
[0052] S2. Audiovisual features are independently encoded. Feature extraction is performed by constructing visual streams and frequency streams containing 3D convolutions and TCNs, and acoustic modal features are extracted using SE-ResNet.
[0053] S3. Multi-scale feature enhancement: The enhanced audiovisual features are input into a multi-scale pyramid attention network, and the local window mechanism is used to capture temporal forgery clues at multiple resolutions.
[0054] S4, Multimodal Cross-fusion, achieves deep interaction and dynamic fusion of audiovisual features through a two-way multi-head cross-attention mechanism.
[0055] S5. Boundary localization: Utilize the fusion feature and proposal relationship module to predict the start and end probabilities of forged fragments, generating the final temporal boundary map.
[0056] Specifically, by fully exploring the frequency domain forgery clues and deep interaction information between audio and video in the video, it is possible to achieve precise temporal positioning of complex deepfake segments.
[0057] As one implementation method in this embodiment, the process of converting a video frame sequence to the frequency domain and separating different frequency band components using multiple sets of learnable filters includes:
[0058] Perform a discrete cosine transform on each video frame to obtain the frequency domain spectrum.
[0059] Construct a set of learnable frequency band mask matrices containing low-pass, medium-pass, high-pass, and all-pass filters, and perform element-wise multiplication filtering on the frequency domain spectrogram respectively;
[0060] The inverse discrete cosine transform is performed on each of the filtered frequency domain responses. The four spatial feature maps obtained after the transformation are then stitched together along the channel dimension to form the spatial feature map of the multi-channel multi-band information.
[0061] Furthermore, the processing steps of the S1 data preprocessing and frequency domain feature extraction module include:
[0062] like Figure 2As shown, during data preprocessing, zero vectors are used to pad the video frame sequence and audio signal at the end of the time dimension, aligning them to a preset fixed frame length, such as 512 frames. The video frames are then cropped to a preset size, such as 96×96. The audio signal is then converted into a Mel spectrogram. Subsequently, a Discrete Cosine Transform (DCT) is performed sequentially along the spatial dimension of the video frame sequence to transform the pixel domain to the frequency domain, as shown in the following formula:
[0063]
[0064] in, Indicates the first Frame in spatial coordinates Pixel value at that location, This represents the corresponding frequency domain spectrum.
[0065] Next, four band-masked filters with learnable parameters are constructed, corresponding to low-pass, mid-pass, high-pass, and full-pass filters, respectively, to perform feature separation on the spectrogram, as shown in the following formula:
[0066]
[0067] in, Indicates the first A learnable frequency band mask matrix, It represents the Hadamah accumulation. This represents the corresponding frequency domain spectrum. Subsequently, the spatial features of the filtered multi-band information are remapped back to the spatial domain using the inverse discrete cosine transform (IDCT), and then concatenated along the channel dimension to obtain the spatial features of multi-channel, multi-band information containing specific tampering artifacts. :
[0068]
[0069] in, This represents the concatenation and aggregation of multiple feature vectors obtained through inverse discrete cosine transform along the channel dimension. This means that performing an inverse discrete cosine transform on the low-frequency components obtained after passing through a low-pass filter yields a spatial feature map containing low-frequency information emphasizing illumination, color, and the main structure. This indicates that performing an inverse discrete cosine transform on the mid-frequency components yields a spatial feature map containing mid-frequency information such as texture and edges. This means that performing an inverse discrete cosine transform on the high-frequency components yields a spatial feature map containing high-dimensional, high-frequency information such as subtle textures, noise, or sharp edges. This means that by performing a discrete cosine inverse transform on the full-band components, a complete spatial feature map containing full-band information can be reconstructed.
[0070] As one implementation method in this embodiment, the process of extracting the spatiotemporal features of the video frames and the spatial features of the multi-channel multi-band information and fusing them includes:
[0071] The original video frames are input into the first feature extraction branch, and then pass through the three-dimensional convolutional layer, the residual network module and the time-series convolutional network in sequence to obtain the spatiotemporal features.
[0072] The spatial feature map of the multi-channel multi-band information is input into the second feature extraction branch, and then passes through a three-dimensional convolutional layer, a residual network module, and a time-series convolutional network in sequence to obtain time-frequency features.
[0073] The spatiotemporal features and the time-frequency features are concatenated along the channel dimension and then input into a one-dimensional convolutional layer for channel compression and feature fusion, outputting the enhanced visual features.
[0074] As one implementation method in this embodiment, the process of extracting the acoustic features of the audio signal includes:
[0075] Perform a short-time Fourier transform on the input audio signal and extract the Mel frequency cepstral coefficients;
[0076] The Mel frequency cepstral coefficients are input into the residual network embedded in the compressed excitation module. The residual network uses ResNet34 as its backbone architecture and outputs frame-level acoustic feature vectors. The temporal resolution of these acoustic feature vectors is aligned with the temporal resolution of the enhanced visual features.
[0077] Furthermore, the processing steps of the S2 audiovisual feature independent encoding module include:
[0078] The visual encoder comprises a 3D convolutional layer, a residual network module (ResNet18), and a temporal convolutional network (TCN) module containing depthwise separable convolutions (DS-CNN), rectified linear units (ReLU), and batch normalization (BN) connected in sequence.
[0079] The spatial-temporal features and the spatial features of multi-channel multi-band information are extracted by the visual encoder with the same structure but independent number of channels. Then, the output features of the two are compressed in channel dimension and fused by a one-dimensional convolutional layer (1D CNN) to generate the enhanced visual features.
[0080] The audio encoder employs a residual network variant (based on ResNet34) with an embedded squeeze-excitation module (SE-Net), using Mel frequency cepstral coefficients generated by short-time Fourier transform (STFT) as input to extract frame-level acoustic features to match the temporal resolution of visual features.
[0081] like Figure 3As shown, in the spatial feature encoding stage of visual and multi-band information, backbone networks with identical structures are constructed respectively. Spatial features of spatial RGB video frames and multi-band information are also represented. Spatiotemporal modeling is performed using their respective network branches, as shown in the following formula:
[0082]
[0083]
[0084] in, This represents the spatiotemporal features extracted after the original video feature vector is sequentially passed through a 3D convolutional layer, a residual network, and a temporal local settlement network. Indicates the above The network consists of independent 3D convolutional layers, residual networks (with identical structural parameters), and temporal convolutional networks (with identical structural parameters), all of which are identical except for the number of input channels.
[0085] Subsequently, one-dimensional convolution is used to perform channel dimensionality reduction and fusion of the information from both sources to obtain enhanced visual features. :
[0086]
[0087] like Figure 4 As shown, in the audio processing section, the short-time Fourier transform (STFT) of the preprocessed audio signal is calculated and a Mel-frequency cepstrum is generated. This cepstrum is then input into the residual network SE-ResNet34 with an embedded squeeze-excitation module to extract frame-level audio features. This ensures that it is strictly aligned with visual features in terms of temporal resolution.
[0088] As one implementation method in this embodiment, the process of inputting the enhanced visual features and the acoustic features into a multi-scale pyramid attention network for local temporal cue enhancement includes:
[0089] Multiple downsampling operations are performed on the input features to generate multiple scale feature layers with different temporal resolutions; on each scale feature layer, the time series is divided into non-overlapping local windows of fixed size, and self-attention weights are calculated within each window;
[0090] After feature aggregation within each window is completed, timing information is transmitted between different windows through a cross-window interaction mechanism;
[0091] Finally, an upsampling operation is performed on the processed features at each scale to restore them to the original temporal resolution, and the refined visual features and the refined audio features are output respectively.
[0092] Furthermore, the processing steps of the S3 multi-scale feature enhancement module include:
[0093] like Figure 5 As shown, the multi-scale pyramid attention network contains multiple pre-defined feature pyramid structures. To capture local forgery cues across different time spans, the multi-scale pyramid network is used to... and Perform downsampling to generate temporal resolution. A multi-scale feature set is used. At each scale level, a local window self-attention mechanism is employed to reduce the computational complexity of long sequences and focus on local micro-expression anomalies. The temporal resolution is... The number of feature channels is Input scale features According to a fixed window size Divided into A non-overlapping local time window is reshaped into a window feature tensor. In the first Within each independent time window, a query matrix is generated using a linear projection matrix. Key matrix Sum matrix :
[0094]
[0095] in, This represents the query weight matrix. Represents the key weight matrix. Represents the value weight matrix.
[0096] Subsequently, self-attention weights are calculated only within the local window, and the value vectors are weighted and fused:
[0097]
[0098] in, This is a scaling factor used to prevent gradient vanishing from affecting model convergence. After completing the local feature aggregation for each window, [the following is applied]: The features of each window are reassembled. Then, a cross-window interaction mechanism is introduced to transmit long-range messages, and the time step is restored to the initial time step through upsampling, ultimately outputting refined visual features. and refined audio features .
[0099] As one implementation method in this embodiment, the process of interactively fusing the refined visual features and the refined audio features using a bidirectional cross-attention mechanism includes:
[0100] The refined visual features are linearly mapped to a first query vector, and the refined audio features are linearly mapped to a first key vector and a first value vector. The first cross attention is then calculated to obtain the audio-guided visual features.
[0101] The refined audio features are linearly mapped to a second query vector, and the refined visual features are linearly mapped to a second key vector and a second value vector. The second cross-attention is then calculated to obtain the visually guided audio features.
[0102] The audio-guided visual features and the visual-guided audio features are concatenated along the channel dimension, and then subjected to feature dimensionality reduction and deep fusion through a one-dimensional convolutional layer to output the audiovisual fusion features.
[0103] Further explanation:
[0104] Calculate the dot product similarity between the key vector of the first modality and the query vector of the second modality, and generate a cross-modal cross-attention weight map after activation by the Softmax function;
[0105] By using the cross-modal cross-attention weight map to perform a weighted summation of the value vector of the first modality, the fusion features of "visual-guided audio" and "audio-guided visual" are obtained respectively.
[0106] Finally, the two fused features are concatenated along the channel dimension and then subjected to feature dimensionality reduction and deep fusion through a 1×1 convolutional layer to output the audiovisual fusion features.
[0107] This will be explained in detail based on the above description of the process of obtaining audiovisual fusion features:
[0108] S4. The processing steps of the multimodal feature fusion module include:
[0109] like Figure 6 As shown, interactive features between video and audio, and between audio and video, are generated based on a bidirectional multi-head cross-attention mechanism. Video is used to guide audio feature generation. For example, using visual features as query vectors Audio features are key vectors Sum value vector The formula is as follows:
[0110]
[0111]
[0112] in, This represents the query weight matrix used for video features. This represents the key weight matrix used for audio features. This represents the value weight matrix used for audio features. This represents the scaling factor.
[0113] Similarly, using audio as the query vector and visual information as the key and value vectors, audio-guided visual features can be calculated. Finally, the two cross-modal response features are spliced along the channel, and then... Convolutional layers are fused to obtain audiovisual fusion features for subsequent localization. :
[0114]
[0115] As one implementation method in this example, the process of predicting the start and end probabilities of a forged segment using a boundary localization network based on the audiovisual fusion features, the refined visual features, and the refined audio features includes:
[0116] The refined visual features and the refined audio features are input into a cross-modal gating attention mechanism for redundancy filtering, and then input into the proposal relation block to generate visual boundary maps and audio boundary maps respectively.
[0117] The visual boundary map, the refined visual features, the refined audio features, and the audiovisual fusion features are concatenated and then passed through a one-dimensional convolutional layer to calculate the visual modality adaptive weights.
[0118] Similarly, calculate the audio modality adaptive weights;
[0119] The normalized visual modality adaptive weights and audio modality adaptive weights are weighted and summed with their corresponding boundary maps to generate a fusion boundary map, and the start and end times of the forged segment are output.
[0120] Furthermore, the process includes:
[0121] By introducing a cross-modal gating attention mechanism, redundant information is filtered from the refined visual and audio features to obtain pure single-modal features; and a boundary matching algorithm module (BSN++) is used to generate pure visual and audio boundary maps, specifically including:
[0122] (1) The filtered single-modal features are added to their corresponding frame-level predicted labels and input into the proposal relation block (PRB) to generate modality-specific position-aware boundary maps and channel-aware boundary maps respectively. After feature aggregation through a convolutional layer with a kernel size of 2×2, the aggregated features are added to the original mapping map by residual addition to obtain the final visual boundary map and audio boundary map respectively.
[0123] (2) The visual boundary map, visual features, audio features and audiovisual fusion features are spliced together, and the adaptive weight coefficients of the visual modality are calculated through a set of continuous 1×1 convolutional layers.
[0124] (3) Similarly, the visual features, audio-visual fusion features, audio features and audio boundary map are concatenated and the adaptive weight coefficients of the audio modality are calculated through another set of 1×1 convolutional layers.
[0125] (4) After normalizing the adaptive weight coefficients of the visual modality and the adaptive weight coefficients of the audio modality, they are multiplied by the corresponding single-modality boundary maps respectively, and finally the elements are added together to generate a comprehensive fusion boundary map, thus completing the accurate positioning of the deepfake segment.
[0126] To elaborate further on the four steps described above, the processing procedure of the S5 and fake boundary positioning module includes:
[0127] like Figure 7 As shown, in the boundary localization stage, a proposal relation block (PRB) is introduced to process the features to generate a clean boundary mapping for a single modality.
[0128] First, cross-modal gating is used to filter out redundant information. Then, position-aware boundary maps for each single modality are extracted. Mapping with channel-sensing boundaries ,pass The convolutional aggregation is added to the original mapping residual to obtain the visual boundary map. With audio boundary map .
[0129] To generate the final fusion boundary map, using Dynamic computation of video modality adaptive weights using convolution and audio modality adaptive weights The formula is as follows:
[0130]
[0131]
[0132] The normalized weights are then summed element-wise with the corresponding boundary graphs to obtain the final fused forged boundary graph. :
[0133]
[0134] The network ultimately passed the evaluation. By determining the start and end probabilities at each time point, the temporal boundaries of one or more deepfake segments can be precisely located.
[0135] S6, Model Joint Loss Function Construction Module:
[0136] To achieve high-precision localization of deepfake fragments and temporal alignment of multimodal features, this embodiment constructs a multi-task joint optimization loss function, which specifically includes three parts: cross-modal contrast loss, frame-level classification loss, and boundary matching loss.
[0137] (1) Cross-modal contrast loss:
[0138] To constrain the temporal synchronization between audiovisual modalities, audiovisual features from real videos are used as positive sample pairs, and audiovisual features containing forgeries or modifications are used as negative sample pairs. A contrastive loss is used to bring the feature distributions of positive samples closer together, while ensuring the distance between negative samples is greater than a preset threshold. :
[0139]
[0140]
[0141] in, Indicates cross-modal contrast loss. For the sample size, The number of feature channels, This represents the number of time frames. For sample labels, Representing refined visual features With refined audio features The Euclidean distance between them.
[0142] (2) Frame-level classification loss:
[0143] To enable the encoder to extract more discriminative forgery flaws, binary classifiers are constructed for single-modal frame-level features. Single-modal classification is supervised using real frame-level tampering labels and a cross-entropy loss function.
[0144]
[0145] in, Representing visual or audio modalities, The model predicts the first The first sample The probability distribution of whether a frame is real or fake. This corresponds to the frame-level real label.
[0146] (3) Boundary matching loss:
[0147] For the 2D boundary confidence map generated by the boundary localization module, mean squared error loss is used to constrain the consistency between the model-predicted proposal confidence and the actual time intersection-over-union ratio. The fusion boundary map matching loss is calculated separately. Matching loss with single-modal boundary graph :
[0148]
[0149]
[0150] in, The maximum duration of the candidate forged fragment. The timing length is fixed at 512. and These represent the predicted fusion boundary map and the actual fusion boundary mapping map, respectively. and This is the corresponding single-modal prediction and reality mapping diagram.
[0151] The weighted summation of the losses from the above sub-tasks yields the overall joint optimization objective function for end-to-end training of the system. :
[0152]
[0153] in, , , , All of these are pre-defined hyperparameter weights. Through the collaborative supervision of this joint loss function, the system not only achieves deep alignment of multimodal features, but also accurately generates temporal boundary maps indicating the start and end states of forged fragments.
[0154] This invention simulated and tested the positioning performance on the LAV-DF test set for three thresholds: IoU 0.5, 0.75, and 0.95. The actual results are shown in Table 1.
[0155] Table 1
[0156]
[0157] The qualitative results of BA-TFD and the method proposed in this invention are as follows: Figure 8 As shown, this invention selects the boundary proposal with the highest confidence score in the predicted boundary graph to demonstrate its performance. It can be seen that the boundary proposals predicted by the method of this invention not only have better accuracy in timestamps, but also higher confidence than the baseline method.
[0158] Based on this, this invention provides an audiovisual temporal deepfake localization method based on joint modeling of temporal, spatial, frequency, and acoustic modalities. It extracts low-frequency, mid-frequency, high-frequency, and full-band components of video frames through discrete cosine transform and learnable filter banks, and constructs spatiotemporal-frequency joint features using 3DCNN and ResNet. Simultaneously, it extracts Mel-frequency cepstrum features from the audio using SE-ResNet. Subsequently, a local window multi-scale pyramid attention network is introduced to enhance the audiovisual features, and a gating mechanism and cascaded fusion algorithm are used to integrate cross-modal information. Finally, a refined temporal boundary map is generated through a boundary localization module. Based on this, this invention can fully exploit frequency-domain forgery clues and audio-visual interaction information in videos, achieving accurate temporal localization of deepfake segments.
[0159] Example 2
[0160] In this embodiment, a computer terminal device is provided, including:
[0161] One or more processors;
[0162] A memory, coupled to the processor, for storing one or more programs;
[0163] When the one or more programs are executed by the one or more processors, the one or more processors implement the steps of the above-described audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality.
[0164] In this embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the above-described audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality.
[0165] In this embodiment, an electronic device is also provided, including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to perform the steps of the above-described audiovisual temporal depth spoofing localization method based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality.
[0166] In this embodiment, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the above-described audiovisual temporal depth forgery localization method based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modalities.
[0167] The aforementioned program can run on a processor or be stored in memory (or a computer-readable medium). Computer-readable media includes both permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0168] These computer programs may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes can be implemented by different modules for different steps.
[0169] This embodiment provides such a device or system. The system, referred to as an audiovisual temporal depth spoofing localization system based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modalities, includes:
[0170] The multi-frequency band information spatial feature extraction module is used to convert the video frame sequence of the video to be detected to the frequency domain and separate different frequency band components through multiple sets of learnable filters, and then inversely transform it back to the spatial domain to generate multi-channel multi-frequency band information spatial features.
[0171] The audiovisual feature encoding module is used to extract the spatiotemporal features of the video frame and the spatial features of the multi-channel multi-band information respectively, and fuse them to obtain enhanced visual features, while extracting the acoustic features of the audio signal.
[0172] The multi-scale feature enhancement module is used to input the enhanced visual features and the acoustic features into a multi-scale pyramid attention network for local temporal cue enhancement, thereby obtaining refined visual features and refined audio features.
[0173] The multimodal fusion module is used to interactively fuse the refined visual features and the refined audio features using a bidirectional cross-attention mechanism to generate audiovisual fusion features;
[0174] The boundary localization module is used to predict the start and end probabilities of the forged segment through the boundary localization network based on the audiovisual fusion features, the refined visual features, and the refined audio features, and output the temporal boundary localization result.
[0175] As one implementation method in this embodiment, the spatial feature extraction module of multi-band information includes a frequency domain transformation unit, a learnable filtering unit, and an inverse transformation splicing unit.
[0176] The frequency domain transformation unit is used to perform a discrete cosine transform on each video frame to obtain a frequency domain spectrum.
[0177] The learnable filtering unit is used to construct a set of learnable frequency band mask matrices containing low-pass, medium-pass, high-pass, and all-pass filters, and to perform element-wise multiplication filtering on the frequency domain spectrum respectively.
[0178] The inverse transform splicing unit is used to perform discrete cosine inverse transform on each frequency domain response after filtering, and splice the four spatial feature maps obtained after the transform on the channel dimension to form the spatial feature map of the multi-channel multi-band information.
[0179] As one implementation method in this embodiment, the audiovisual feature coding module includes a visual spatiotemporal coding unit, a visual frequency domain coding unit, and a visual feature fusion unit.
[0180] The visual spatiotemporal coding unit is used to sequentially pass the original video frames through a three-dimensional convolutional layer, a residual network module, and a temporal convolutional network to obtain spatiotemporal features.
[0181] The visual frequency domain coding unit is used to sequentially pass the spatial feature map of the multi-channel multi-frequency band information through a three-dimensional convolutional layer, a residual network module, and a time-series convolutional network to obtain time-frequency features.
[0182] The visual feature fusion unit is used to concatenate the spatiotemporal features and the time-frequency features in the channel dimension and then input them into a one-dimensional convolutional layer for channel compression and feature fusion, and output the enhanced visual features.
[0183] As one implementation method in this embodiment, the audiovisual feature encoding module further includes an audio feature extraction unit;
[0184] The audio feature extraction unit is used to perform a short-time Fourier transform on the input audio signal and extract the Mel frequency cepstral coefficients. The Mel frequency cepstral coefficients are then input into the residual network of the embedded compression excitation module. The residual network uses ResNet34 as its backbone architecture and outputs frame-level acoustic feature vectors. The temporal resolution of these acoustic feature vectors is aligned with the temporal resolution of the enhanced visual features.
[0185] As one implementation method in this embodiment, the multi-scale feature enhancement module includes a downsampling unit, a local window attention unit, a cross-window interaction unit, and an upsampling unit.
[0186] The downsampling unit is used to perform multiple downsampling operations on the input features to generate multiple scale feature layers with different time resolutions;
[0187] The local window attention unit is used to divide the time series into non-overlapping local windows of fixed size at each scale feature layer, and to calculate self-attention weights within each window;
[0188] The cross-window interaction unit is used to transmit timing information between different windows after feature aggregation within each window;
[0189] The upsampling unit is used to perform upsampling operations on the processed features at each scale to restore them to the original temporal resolution, and output the refined visual features and the refined audio features respectively.
[0190] As one implementation method in this embodiment, the multimodal fusion module includes a first cross-attention unit, a second cross-attention unit, and a fusion output unit;
[0191] The first cross-attention unit is used to linearly map the refined visual features to a first query vector, linearly map the refined audio features to a first key vector and a first value vector, and calculate the first cross-attention to obtain audio-guided visual features;
[0192] The second cross-attention unit is used to linearly map the refined audio features to a second query vector, linearly map the refined visual features to a second key vector and a second value vector, and calculate the second cross-attention to obtain the visually guided audio features;
[0193] The fusion output unit is used to concatenate the audio-guided visual features and the visual-guided audio features in the channel dimension, and then perform feature dimensionality reduction and deep fusion through a one-dimensional convolutional layer to output the audiovisual fusion features.
[0194] The system or apparatus is used to implement the functions of the methods in the above embodiments. Each module in the system or apparatus corresponds to each step in the method, as has been described in the method and will not be repeated here.
[0195] As one implementation method in this embodiment, the boundary localization module includes a single-modal boundary generation unit, an adaptive weight calculation unit, and a fused boundary output unit;
[0196] The single-modal boundary generation unit is used to input the refined visual features and the refined audio features into a cross-modal gating attention mechanism for redundancy filtering, and input them into the proposal relation block to generate visual boundary maps and audio boundary maps respectively;
[0197] The adaptive weight calculation unit is used to concatenate the visual boundary map, the refined visual features, the refined audio features and the audiovisual fusion features, and then calculate the visual modality adaptive weight through a one-dimensional convolutional layer. Similarly, the audio modality adaptive weight is calculated.
[0198] The fusion boundary output unit is used to perform weighted summation of the normalized visual modality adaptive weights and the audio modality adaptive weights with the corresponding boundary maps to generate a fusion boundary map and output the start and end times of the forged segment.
[0199] The above implementation method solves the problem of audiovisual temporal depth spoofing localization based on joint modeling of time domain, spatial domain, frequency domain and acoustic modality in related technologies, thereby ensuring that the problems existing in the prior art are solved.
[0200] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for audiovisual temporal depth forgery localization based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modalities, characterized in that, Includes the following steps: The video to be detected is acquired, the video frame sequence is converted to the frequency domain and different frequency band components are separated by multiple sets of learnable filters, and then inversely transformed back to the spatial domain to generate spatial features with multi-channel and multi-frequency band information. The spatiotemporal features of the video frames and the spatial features of the multi-channel multi-band information are extracted and fused to obtain enhanced visual features, while the acoustic features of the audio signal are extracted. The enhanced visual features and the acoustic features are respectively input into a multi-scale pyramid attention network for local temporal cue enhancement to obtain refined visual features and refined audio features; The refined visual features and the refined audio features are interactively fused using a bidirectional cross-attention mechanism to generate audiovisual fusion features; Based on the audiovisual fusion features, the refined visual features, and the refined audio features, the start probability and termination probability of the forged segment are predicted by the boundary localization network, and the temporal boundary localization result is output.
2. The method according to claim 1, characterized in that, The process of converting a video frame sequence to the frequency domain and separating different frequency band components using multiple sets of learnable filters includes: Perform a discrete cosine transform on each video frame to obtain the frequency domain spectrum. Construct a set of learnable frequency band mask matrices containing low-pass, medium-pass, high-pass, and all-pass filters, and perform element-wise multiplication filtering on the frequency domain spectrogram respectively; The inverse discrete cosine transform is performed on each of the filtered frequency domain responses. The four spatial feature maps obtained after the transformation are then stitched together along the channel dimension to form the spatial feature map of the multi-channel multi-band information.
3. The method according to claim 1, characterized in that, The process of extracting the spatiotemporal features of video frames and the spatial features of the multi-channel, multi-frequency band information and then fusing them includes: The original video frames are input into the first feature extraction branch, and then pass through the three-dimensional convolutional layer, the residual network module and the time-series convolutional network in sequence to obtain the spatiotemporal features. The spatial feature map of the multi-channel multi-band information is input into the second feature extraction branch, and then passes through a three-dimensional convolutional layer, a residual network module, and a time-series convolutional network in sequence to obtain time-frequency features. The spatiotemporal features and the time-frequency features are concatenated along the channel dimension and then input into a one-dimensional convolutional layer for channel compression and feature fusion, outputting the enhanced visual features.
4. The method according to claim 1, characterized in that, The process of extracting acoustic features from audio signals includes: Perform a short-time Fourier transform on the input audio signal and extract the Mel frequency cepstral coefficients; The Mel frequency cepstral coefficients are input into the residual network embedded in the compressed excitation module. The residual network uses ResNet34 as its backbone architecture and outputs frame-level acoustic feature vectors. The temporal resolution of these acoustic feature vectors is aligned with the temporal resolution of the enhanced visual features.
5. The method according to claim 1, characterized in that, The process of inputting the enhanced visual features and the acoustic features into a multi-scale pyramid attention network for local temporal cue enhancement includes: Multiple downsampling operations are performed on the input features to generate multiple scale feature layers with different temporal resolutions; on each scale feature layer, the time series is divided into non-overlapping local windows of fixed size, and self-attention weights are calculated within each window; After feature aggregation within each window is completed, timing information is transmitted between different windows through a cross-window interaction mechanism; Finally, an upsampling operation is performed on the processed features at each scale to restore them to the original temporal resolution, and the refined visual features and the refined audio features are output respectively.
6. The method according to claim 1, characterized in that, The process of interactively fusing the refined visual features and the refined audio features using a bidirectional cross-attention mechanism includes: The refined visual features are linearly mapped to a first query vector, and the refined audio features are linearly mapped to a first key vector and a first value vector. The first cross attention is then calculated to obtain the audio-guided visual features. The refined audio features are linearly mapped to a second query vector, and the refined visual features are linearly mapped to a second key vector and a second value vector. The second cross-attention is then calculated to obtain the visually guided audio features. The audio-guided visual features and the visual-guided audio features are concatenated along the channel dimension, and then subjected to feature dimensionality reduction and deep fusion through a one-dimensional convolutional layer to output the audiovisual fusion features.
7. An audiovisual temporal depth spoofing localization system based on joint modeling of time domain, spatial domain, frequency domain, and acoustic modes, characterized in that, The system for implementing the method of any one of claims 1-6 comprises: The multi-frequency band information spatial feature extraction module is used to convert the video frame sequence of the video to be detected to the frequency domain and separate different frequency band components through multiple sets of learnable filters, and then inversely transform it back to the spatial domain to generate multi-channel multi-frequency band information spatial features. The audiovisual feature encoding module is used to extract the spatiotemporal features of the video frame and the spatial features of the multi-channel multi-band information respectively, and fuse them to obtain enhanced visual features, while extracting the acoustic features of the audio signal. The multi-scale feature enhancement module is used to input the enhanced visual features and the acoustic features into a multi-scale pyramid attention network for local temporal cue enhancement, thereby obtaining refined visual features and refined audio features. The multimodal fusion module is used to interactively fuse the refined visual features and the refined audio features using a bidirectional cross-attention mechanism to generate audiovisual fusion features. The boundary localization module is used to predict the start and end probabilities of the forged segment through the boundary localization network based on the audiovisual fusion features, the refined visual features, and the refined audio features, and output the temporal boundary localization result.
8. A computer terminal device, characterized in that, include: One or more processors; A memory, coupled to the processor, for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors perform the steps of the method as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.
