Multi-modal face manipulation video detection method and detector training method

By employing a multimodal face tampering video detection method, and utilizing multimodal feature extraction and knowledge distillation to optimize detector parameters, the low detection accuracy problem in existing technologies is solved, achieving higher detection accuracy and generalization ability.

CN118097798BActive Publication Date: 2026-11-20UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410202737.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2026-11-20
Estimated Expiration
2044-02-23

AI Technical Summary

Technical Problem

Existing methods for detecting face tampering in videos based on deep neural networks are easily affected by image content features, have limited generalization ability, and thus have low detection accuracy.

Method used

A multimodal face tampering video detection method is adopted. The video to be detected is decoded into multiple frame images, and temporal modality, spatial modality and audio modality features are extracted by a multimodal feature extractor. The probability of the video being a real face or a tampered face is determined by a classifier. The detector parameters are optimized by combining knowledge distillation and classification loss function.

Benefits of technology

It improves the accuracy and generalization ability of face tampering video detection. The detection results are not easily affected by image content features, and the trained detector can be directly applied to video and social media platforms without post-processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097798B_ABST
    Figure CN118097798B_ABST
Patent Text Reader

Abstract

The disclosure provides a multi-modal face tampered video detection method and a multi-modal face tampered video detector training method, which can be applied to the field of artificial intelligence technology. The multi-modal face tampered video detection method comprises: decoding a to-be-detected video into a plurality of frame images to obtain a frame image set of the to-be-detected video; inputting the frame image set into a pre-trained multi-modal face tampered video detector to obtain a first classification probability that the to-be-detected video is a real face video and a second classification probability that the to-be-detected video is a tampered face video, wherein the multi-modal face tampered video detector comprises a multi-modal feature extractor and a classifier, the multi-modal feature extractor is used to extract multi-modal features of the to-be-detected video based on the frame image set, and the classifier is used to determine the first classification probability and the second classification probability based on the multi-modal features; and determining a face tampered video detection result of the to-be-detected video based on the first classification probability and the second classification probability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, specifically to the field of face tampering video detection, and more specifically to a multimodal face tampering video detection method and a multimodal face tampering video detector training method. Background Technology

[0002] With the rapid development of face tampering technology, the face tampering videos obtained through this technology have a high degree of simulation. However, the false information in the face tampering videos can mislead viewers. Therefore, how to detect face tampering videos is an urgent problem to be solved.

[0003] In existing technologies, deep neural networks are typically used to detect face tampering in videos. However, existing deep neural network-based methods are easily affected by image content features and have limited generalization ability, resulting in low accuracy of existing deep neural network-based face tampering detection methods. Summary of the Invention

[0004] In view of the above problems, this disclosure provides a method for detecting multimodal face tampering videos and a method for training a multimodal face tampering video detector.

[0005] According to a first aspect of this disclosure, a multimodal face tampering video detection method is provided, comprising: decoding a video to be detected into multiple frame images to obtain a set of frame images of the video to be detected, wherein the multiple frame images in the set of frame images are sequentially continuous; inputting the set of frame images into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video, wherein the multimodal face tampering video detector includes a multimodal feature extractor and a classifier, the multimodal feature extractor is used to extract multimodal features of the video to be detected based on the set of frame images, and the classifier is used to determine the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video based on the multimodal features; and determining a face tampering video detection result of the video to be detected based on the first classification probability and the second classification probability.

[0006] A second aspect of this disclosure provides a training method for a multimodal face tampering video detector, comprising: decoding each sample face video in a sample face video dataset into multiple sample face frame images to obtain a set of sample face frame images for each of the sample face videos, wherein the multiple sample face frame images in the set of sample face frame images are temporally consecutive, the sample face video dataset includes sample face videos and face tampering labels for the sample face videos, the face tampering labels being used to characterize face tampering information in the sample face videos; and inputting the set of sample face frame images into an initial multimodal face tampering video detector to obtain the aforementioned sample face tampering video detector. The first classification probability of the sample face video being a real face video and the second classification probability of the sample face video being a tampered face video are given, along with the sample multimodal feature sequence output by the initial multimodal feature extractor of the initial multimodal face tampering video detector. The initial multimodal face tampering video detector includes an initial multimodal feature extractor and an initial classifier. The initial multimodal feature extractor is used to extract multimodal features of the sample face video based on the set of sample face frame images. The initial multimodal feature extractor is pre-trained from a spatiotemporal modality feature extractor. The initial classifier is used to determine the sample face based on the multimodal features. The sample face video is classified into two categories: a first-class probability of a real face video and a second-class probability of a tampered face video. For each sample face video, the set of sample face frame images is input into a pre-trained teacher network to obtain the sample audio modal semantic features corresponding to the sample face video. The teacher network consists of a multimodal memory module and a deep residual network with a three-dimensional convolutional layer. The teacher network is pre-trained from an initial teacher network through a lip-reading task. A knowledge distillation loss value is determined based on the sample multimodal feature sequence and the sample audio modal semantic features to guide the multimodal... The feature extractor's ability to represent audio semantic information; the first classification probability of the sample, the second classification probability of the sample, and the value of the face tampering label matching the face video of the sample are input into the classification loss function to determine the classification loss value; the knowledge distillation loss value and the classification loss value are input into the overall network loss function to obtain the overall network loss function value; based on the overall network loss function value, the parameters in the initial multimodal face tampering video detector are updated; if the training stopping condition is met in the current training cycle, the initial multimodal face tampering video detector in the current training cycle is determined to be the multimodal face tampering video detector.

[0007] A third aspect of this disclosure provides a multimodal face tampering video detection device, comprising: a first decoding module for decoding a video to be detected into multiple frame images to obtain a set of frame images of the video to be detected, wherein the multiple frame images in the set of frame images are sequentially continuous; a first classification module for inputting the set of frame images into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video, wherein the multimodal face tampering video detector includes a multimodal feature extractor and a classifier, the multimodal feature extractor for extracting multimodal features of the video to be detected based on the set of frame images, and the classifier for determining the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video based on the multimodal features; and a result determination module for determining the face tampering video detection result of the video to be detected based on the first classification probability and the second classification probability.

[0008] A fourth aspect of this disclosure provides a training apparatus for a multimodal face tampering video detector, comprising: a second decoding module for decoding each sample face video in a sample face video dataset into multiple sample face frame images, obtaining a set of sample face frame images for each sample face video, wherein the multiple sample face frame images in the sample face frame image set are temporally consecutive, the sample face video dataset includes sample face videos and face tampering labels for the sample face videos, the face tampering labels being used to characterize face tampering information in the sample face videos; and a second classification module for inputting the set of sample face frame images into an initial multimodal face tampering video detector to obtain sample... The dataset includes the first classification probability of a sample face video being a genuine face video and the second classification probability of a sample face video being a tampered face video, as well as the sample multimodal feature sequence output by the initial multimodal feature extractor of the initial multimodal face tampering video detector. The initial multimodal face tampering video detector includes an initial multimodal feature extractor and an initial classifier. The initial multimodal feature extractor is used to extract multimodal features from the sample face video based on a set of sample face frame images. The initial multimodal feature extractor is pre-trained from a spatiotemporal modality feature extractor. The initial classifier is used to determine the first classification probability of a sample face video being a genuine face video based on the multimodal features. The sample face video is used as the second classification probability of the tampered face video; the teacher module is used to input the set of sample face frame images into the pre-trained teacher network for each sample face video to obtain the sample audio modality semantic features corresponding to the sample face video. The teacher network consists of a multimodal memory module and a deep residual network with one three-dimensional convolutional layer. The teacher network is obtained by pre-training the initial teacher network through a lip-reading task; the distillation module is used to determine the knowledge distillation loss value based on the sample multimodal feature sequence and the sample audio modality semantic features through knowledge distillation, so as to guide the multimodal feature extractor's ability to represent audio semantic information; classification loss The loss determination module is used to input the first classification probability of the sample, the second classification probability of the sample, and the value of the face tampering label matching the sample face video into the classification loss function to determine the classification loss value; the overall loss determination module is used to input the knowledge distillation loss value and the classification loss value into the network overall loss function to obtain the network overall loss function value; the parameter update module is used to update the parameters in the initial multimodal face tampering video detector based on the network overall loss function value; the detector determination module is used to determine the initial multimodal face tampering video detector of the current training period as the multimodal face tampering video detector if the training stopping condition is met in the current training period.

[0009] A fifth aspect of this disclosure provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors perform the above-described multimodal face tampering video detection method.

[0010] A sixth aspect of this disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the above-described multimodal face tampering video detection method.

[0011] A seventh aspect of this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described multimodal face tampering video detection method.

[0012] According to embodiments of this disclosure, by extracting features of different modalities from the video to be detected and determining the face tampering detection result based on the consistency between the features of different modalities, the detection is less susceptible to the influence of image content features, exhibits strong generalization ability, and improves the accuracy of face tampering detection. Furthermore, the trained multimodal face tampering video detector is end-to-end, requiring no post-processing of the output results, and can be directly applied to video, social media, and other platforms. Attached Figure Description

[0013] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0014] Figure 1 The illustration schematically depicts application scenarios of the multimodal face tampering video detection method, apparatus, device, medium, and program product according to embodiments of the present disclosure;

[0015] Figure 2 A flowchart illustrating a multimodal face tampering video detection method according to an embodiment of the present disclosure is shown schematically.

[0016] Figure 3 A flowchart illustrating a multimodal face tampering video detection method according to an embodiment of the present disclosure is shown schematically.

[0017] Figure 4 This illustration schematically shows a model structure diagram of a multimodal feature extractor according to a specific embodiment of the present disclosure;

[0018] Figure 5 The flowchart illustrating the training of a spatiotemporal modality feature extractor according to a specific embodiment of the present disclosure is shown in the schematic diagram.

[0019] Figure 6The schematic diagram illustrates a model structure of a teacher network according to an embodiment of the present disclosure;

[0020] Figure 7 This illustration schematically shows a flowchart of knowledge distillation of an initial multimodal feature extractor using a teacher network according to a specific embodiment of the present disclosure;

[0021] Figure 8 This schematic diagram illustrates the structural block diagram of a multimodal face tampering video detection apparatus according to an embodiment of the present disclosure;

[0022] Figure 9 This schematically illustrates a structural block diagram of a training apparatus for a multimodal face tampering video detector according to an embodiment of the present disclosure; and

[0023] Figure 10 A block diagram schematically illustrates an electronic device suitable for implementing a multimodal face tampering video detection method according to an embodiment of the present disclosure. Detailed Implementation

[0024] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0025] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0026] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0027] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).

[0028] In the technical solution of this invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws, regulations, and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse.

[0029] To detect tampered face videos, deep neural network-based tampered face video detectors are typically used to extract forgery clues from image content features. However, this method does not fully utilize the inconsistencies between different modalities of tampered face videos, such as temporal modality, spatial modality, and audio modality. It is easily affected by image content features, has limited generalization ability, and results in low accuracy of the detection results.

[0030] This disclosure provides a multimodal face tampering video detection method, comprising: decoding a video to be detected into multiple frame images to obtain a set of frame images of the video to be detected, wherein the multiple frame images in the set of frame images are sequentially continuous; inputting the set of frame images into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video, wherein the multimodal face tampering video detector includes a multimodal feature extractor and a classifier, the multimodal feature extractor is used to extract multimodal features of the video to be detected based on the set of frame images, and the classifier is used to determine the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video based on the multimodal features; and determining the face tampering video detection result of the video to be detected based on the first classification probability and the second classification probability.

[0031] Figure 1 The illustration shows an application scenario of the multimodal face tampering video detection method according to an embodiment of the present disclosure.

[0032] like Figure 1 As shown, application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 serves as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0033] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0034] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0035] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0036] It should be noted that the multimodal face tampering video detection method provided in this disclosure embodiment can generally be executed by server 105. Correspondingly, the multimodal face tampering video detection device provided in this disclosure embodiment can generally be located in server 105. The multimodal face tampering video detection method provided in this disclosure embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the multimodal face tampering video detection device provided in this disclosure embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.

[0037] According to an embodiment of this disclosure, server 105 can decode the video to be detected into multiple frame images to obtain a set of frame images of the video to be detected. The set of frame images is input into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video. Based on the first classification probability and the second classification probability, the face tampering video detection result of the video to be detected is determined, and the face tampering video detection result is sent to the user's first terminal device 101, second terminal device 102, and third terminal device 103 through network 104.

[0038] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0039] The following will be based on Figure 1 The described scene, through Figures 2-6 The multimodal face tampering video detection method of the disclosed embodiments is described in detail.

[0040] Figure 2 A flowchart illustrating a multimodal face tampering video detection method according to an embodiment of the present disclosure is shown.

[0041] like Figure 2 As shown, the face tampering video detection method of this embodiment includes operations S210 to S230.

[0042] In operation S210, the video to be detected is decoded into multiple frame images to obtain a set of frame images of the video to be detected.

[0043] In operation S220, the set of frame images is input into a pre-trained multimodal face tampering video detector to obtain the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video.

[0044] In operation S230, based on the first classification probability and the second classification probability, the result of face tampering detection in the video to be detected is determined.

[0045] According to embodiments of this disclosure, the video to be detected can be a tampered face video or a real face video, and the face video to be detected contains the facial region of a person.

[0046] According to embodiments of this disclosure, a video to be detected can be decoded into multiple frame images by a general face detector, and the multiple frame images are sequential in time.

[0047] According to embodiments of this disclosure, a multimodal face tampering video detector includes a multimodal feature extractor and a classifier. The multimodal feature extractor is used to extract multimodal features of the video to be detected based on a set of frame images. The classifier is used to determine a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video based on the multimodal features.

[0048] According to embodiments of this disclosure, multimodal features may include temporal modality features, spatial modality features, and audio modality features. Since face-tampering videos exhibit inconsistencies across temporal, spatial, and audio modalities, determining whether a video to be detected is a face-tampering video based on multimodal features can improve the accuracy of deep neural network-based face-tampering video detection methods.

[0049] According to embodiments of this disclosure, by extracting features of different modalities from the video to be detected and determining the face tampering detection result based on the consistency between the features of different modalities, the detection is less susceptible to the influence of image content features, exhibits strong generalization ability, and improves the accuracy of face tampering detection. Furthermore, the trained multimodal face tampering video detector is end-to-end, requiring no post-processing of the output results, and can be directly applied to video, social media, and other platforms.

[0050] According to embodiments of this disclosure, inputting a set of frame images into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video includes: inputting the set of frame images into a multimodal feature extractor to extract features from the set of frame images to obtain a target classification vector; inputting the target classification vector into a classifier to classify the video to be detected based on the target classification vector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video.

[0051] According to embodiments of this disclosure, a multimodal feature extractor can be obtained by training a disclosed spatiotemporal modal feature extractor (VideoMAE-base network) through knowledge distillation. The spatiotemporal modal feature extractor can extract spatiotemporal modal features of a video. By using a teacher module pre-trained through a lip-reading task to perform knowledge distillation on the spatiotemporal modal feature extractor, the spatiotemporal modal feature extractor is guided to learn semantic information related to audio modalities. Therefore, the spatiotemporal modal feature extractor trained by knowledge distillation has the ability to extract multimodal features of the video to be detected.

[0052] According to embodiments of this disclosure, the target classification vector represents the multimodal feature information of the video to be detected, and therefore can be used to perform subsequent true / false binary classification tasks.

[0053] According to embodiments of this disclosure, the classifier can be used to perform a binary classification task based on multimodal feature information represented by the target classification vector, to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video.

[0054] According to embodiments of this disclosure, a target classification vector is obtained by extracting features from the video to be detected using a multimodal feature extractor, which makes the classification results obtained by the classifier more accurate, thereby improving the accuracy of the multimodal face tampering video detection method.

[0055] According to embodiments of the present disclosure, the multimodal feature extractor includes a spatiotemporal block embedding layer and an encoding layer.

[0056] According to embodiments of this disclosure, a set of frame images is input into a multimodal feature extractor to extract features from the set of frame images to obtain a target classification vector. This includes: inputting the set of frame images into a spatiotemporal block embedding layer; performing a convolution operation on the set of frame images using a joint spatiotemporal cube to embed the set of frame images into the joint spatiotemporal cube; arranging the spatiotemporal embedding vectors based on multiple spatiotemporal positions in the joint spatiotemporal cube that correspond one-to-one with multiple spatiotemporal embedding vectors to obtain an embedding vector sequence; adding an initial classification vector to the beginning of each column of the embedding vector sequence to obtain a target vector sequence; and inputting the target vector sequence into an encoding layer for encoding to obtain a multimodal feature sequence.

[0057] According to embodiments of this disclosure, the frame image set can be a group of consecutive video frames with a size of 16×3×224×224, representing 16 consecutive frames of a 3-channel video segment to be detected with a width and height of 224×224.

[0058] According to embodiments of this disclosure, the joint spatiotemporal cube includes multiple sub-cubes, each sub-cube corresponding to a spatiotemporal embedding vector. Specifically, a set of frame images can be encoded into a token sequence by a joint spatiotemporal cube embedding pipeline (TubeEmbedding). The sequence has a dimension of 1568×768, where 1568 is the number of tokens and 768 is the feature dimension of each token.

[0059] According to embodiments of this disclosure, TubeEmbedding is implemented using three-dimensional convolution with a kernel size of (2, 16, 16), a stride of (2, 16, 16), 3 input channels, and 768 output channels.

[0060] According to embodiments of this disclosure, the dimension of the initial classification vector is the same as the dimension of the spatiotemporal embedding vector, and the initial classification vector is obtained through random initialization.

[0061] According to embodiments of this disclosure, the target classification vector is located at the beginning of the multimodal feature sequence. The target classification vector, encoded by the encoding layer, can include the semantic information of all other feature vectors in the multimodal feature sequence. That is, the target classification vector includes the multimodal global features of the video to be detected, and therefore can be directly used for subsequent binary classification operations without using all feature vectors in the multimodal feature sequence.

[0062] According to embodiments of this disclosure, since the target vector sequence and the multimodal feature sequence include classification vectors, the sequence dimension of the target vector sequence and the multimodal feature sequence is 1569×768. Specifically, 1569 is the number of tokens, and 768 is the feature dimension of each token. The above process is shown in the following formula (1):

[0063] S0 = TubeEmbedding(x) = [x class x1, x2, ..., x 1568 ,] (1)

[0064] Where, x class This represents the initial classification vector.

[0065] According to embodiments of this disclosure, the encoding layer can be an encoder consisting of 12 Transformer encoding layers. The target vector sequence is encoded through the encoding layer to obtain multimodal features S. 12 ∈R 1569×768 The above process is shown in formulas (2) and (3) below:

[0066] S′ l =MSA(LN(S l-1 ))+S l-1 (2)

[0067] S l =MLP(LN(S′) l ))+S′ l (3)

[0068] Here, MSA represents multi-head attention mechanism, LN represents layer normalization, MLP represents multilayer perceptron, which consists of two linear layers. l represents the number of layers in the encoder, l = 12.

[0069] According to embodiments of this disclosure, the target classification vector is used to characterize the multimodal global features of the video to be detected, and the video to be detected is classified based on the target classification vector, making the classification result more accurate.

[0070] According to embodiments of this disclosure, the classifier includes a fully connected layer.

[0071] According to embodiments of this disclosure, a target classification vector is input into a classifier, and the video to be detected is classified based on the target classification vector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video. This includes: inputting the target classification vector into a fully connected layer, classifying the video to be detected based on the target classification vector to obtain a first initial classification probability that the video to be detected is a real face video and a second initial classification probability that the video to be detected is a tampered face video; and inputting the first initial classification probability and the second initial classification probability into a normalized exponential function to obtain the first classification probability and the second classification probability.

[0072] According to an embodiment of this disclosure, the sum of the first classification probability and the second classification probability is 1.

[0073] According to embodiments of this disclosure, a normalized exponential function (softmax function) can be added after the fully connected layer to obtain the first classification probability and the second classification probability of the video to be detected.

[0074] According to embodiments of this disclosure, binary classification of the video to be detected is achieved through a fully connected layer and a normalized exponential function, making the obtained first classification probability and second classification probability more accurate.

[0075] According to embodiments of this disclosure, determining the face tampering video detection result of the video to be detected based on a first classification probability and a second classification probability includes: determining that the video to be detected is a real face video when the value of the first classification probability is greater than the value of the second classification probability; and determining that the video to be detected is a tampered face video when the value of the second classification probability is greater than the value of the first classification probability.

[0076] According to embodiments of this disclosure, the higher of the first classification probability and the second classification probability can be determined as the result of face tampering video detection.

[0077] Figure 3 A flowchart illustrating a multimodal face tampering video detection method according to an embodiment of the present disclosure is shown.

[0078] like Figure 3 As shown, the face tampering video detection method of this embodiment includes operations S310 to S380.

[0079] In operation S310, each sample face video in the sample face video dataset is decoded into multiple sample face frame images, resulting in a set of sample face frame images for each sample face video.

[0080] In operation S320, the set of sample face frame images is input into the initial multimodal face tampering video detector to obtain the first classification probability of the sample face video being a real face video and the second classification probability of the sample face video being a tampered face video, as well as the sample multimodal feature sequence output by the initial multimodal feature extractor of the initial multimodal face tampering video detector.

[0081] In operation S330, for each sample face video, the set of sample face frame images is input into a pre-trained teacher network to obtain the sample audio modal semantic features corresponding to the sample face video.

[0082] In operation S340, the knowledge distillation loss value is determined based on the multimodal feature sequence and audio modal semantic features of the samples through knowledge distillation, so as to guide the multimodal feature extractor's ability to represent audio semantic information.

[0083] In operation S350, the first classification probability of the sample, the second classification probability of the sample, and the value of the face tampering label that matches the sample face video are input into the classification loss function to determine the classification loss value.

[0084] In the S360 operation, the knowledge distillation loss value and classification loss value are input into the overall network loss function to obtain the overall network loss function value.

[0085] In operation S370, the parameters in the initial multimodal face tampering video detector are updated based on the overall network loss function value.

[0086] In operation S380, if the training stopping condition is met in the current training cycle, the initial multimodal face tampering video detector for the current training cycle is determined to be the multimodal face tampering video detector.

[0087] According to embodiments of this disclosure, multiple sample face frame images within a sample face frame image set are sequentially continuous. The sample face video dataset includes sample face videos and face tampering labels for the sample face videos. The face tampering labels are used to characterize face tampering information in the sample face videos. Specifically, the sample face frame image set can be obtained by decoding the video into frame images and using a general face detector, such as the face_alignment library in Python, to crop out the face regions from the images and save them as images.

[0088] According to embodiments of this disclosure, since face cropping is performed frame by frame, the cropped face images may exhibit temporal jitter, affecting the model's ability to detect temporal inconsistencies. Therefore, when cropping face images for each video, all faces can be aligned with the average face size of that video, and face regions with the same area can be cropped from the video.

[0089] According to embodiments of this disclosure, the initial multimodal face tampering video detector includes an initial multimodal feature extractor and an initial classifier. The initial multimodal feature extractor is used to extract multimodal features of sample face videos based on a set of sample face frame images. The initial multimodal feature extractor is pre-trained from a spatiotemporal modality feature extractor. The initial classifier is used to determine the first classification probability of the sample face video as a real face video and the second classification probability of the sample face video as a tampered face video based on the multimodal features.

[0090] According to embodiments of this disclosure, the initial multimodal feature extractor is initialized using pre-trained parameters of the spatiotemporal modality feature extractor on a real face video dataset. The teacher network is initialized and frozen using parameters pre-trained on a lip-reading task. The remaining parts use the default initialization method under the PyTorch framework.

[0091] According to embodiments of this disclosure, the teacher network consists of a multimodal memory module and a deep residual network with one three-dimensional convolutional layer. The teacher network is pre-trained from an initial teacher network through a lip-reading task. Specifically, the teacher network can consist of a ResNet-18 network with one three-dimensional convolutional layer and a multimodal memory module.

[0092] According to embodiments of this disclosure, the initial teacher network is first pre-trained through a lip-reading task (judging the content of speech based on the movement of a person's lips) to learn semantic information related to the audio modality.

[0093] According to embodiments of this disclosure, the classification loss function can be expressed as shown in formula (4):

[0094]

[0095]

[0096] in, The probability of the first classification of the sample. This represents the probability of the sample being classified into the second category.

[0097] According to embodiments of this disclosure, the overall network loss function can be expressed as follows: (5)

[0098] L total =L CE +λ·L KD (5)

[0099] Where λ is a hyperparameter, which can be set to 10. -5 .

[0100] According to embodiments of this disclosure, a teacher network pre-trained on a lip-reading task can obtain audio modal semantic features corresponding to sample face frame images.

[0101] According to embodiments of this disclosure, knowledge distillation is used to guide the multimodal feature extractor's ability to represent audio semantic information, enabling the multimodal feature extractor to simultaneously extract temporal modal features, spatial modal features, and audio modal features of the video, compressing the model size and saving computational resources.

[0102] According to embodiments of this disclosure, the training method for the multimodal face video detector further includes: acquiring a set of multiple real sample face frame images for training a spatiotemporal modality feature extractor based on face tampering labels; masking the set of real sample face frame images along the time dimension according to preset masking parameters to obtain a set of visible face frame images; inputting the set of visible face frame images into the spatiotemporal modality feature extractor to obtain visible face spatiotemporal features; inputting the visible face spatiotemporal features into a decoder corresponding to the spatiotemporal modality features to predict the masked regions in the set of real face frame images to obtain predicted image features; determining the real image features of the masked regions in the set of real face frame images based on the set of real face frame images and the set of visible face frame images; inputting the predicted image features and the real image features into a mean square error function to obtain a mean square error function value; adjusting the parameters of the spatiotemporal modality feature extractor based on the mean square error function value; and determining the spatiotemporal modality feature extractor of the current training period as the initial multimodal feature extractor if the training stopping condition is met in the current training period.

[0103] According to embodiments of this disclosure, the set of real sample face frame images is obtained by decoding real sample face videos, and the real sample face videos are sample face videos whose face tampering labels indicate that the sample face videos are real face videos.

[0104] According to embodiments of this disclosure, when pre-training the spatiotemporal modality feature extractor, it is necessary to use a real face video dataset, thereby introducing prior knowledge of video face motion into the spatiotemporal modality feature extractor to distinguish between real faces and tampered faces.

[0105] According to embodiments of this disclosure, a set of real sample face frame images is masked along the time dimension according to preset masking parameters to obtain a set of visible face frame images. Specifically, the input video clip can be masked along the time dimension in units of a 16×16 grid with a masking ratio of 90%.

[0106] According to embodiments of this disclosure, the predicted image features and the real image features are input into the mean square error function, and the mean square error function value can be obtained by the following formula (6):

[0107]

[0108] in, To predict image features, These are features of a real image.

[0109] According to embodiments of this disclosure, by training the spatiotemporal modal feature extractor, the resulting initial multimodal feature extractor can accurately extract the temporal and spatial modal features of the video.

[0110] According to embodiments of this disclosure, determining the true image features of the masked region in the set of real face frame images based on a set of real face frame images and a set of visible face frame images includes: determining a set of masked face frame images based on the set of real face frame images and the set of visible face frame images; mapping the masked face frame images for each masked face frame image in the set of masked face frame images to obtain masking mapping features; and normalizing the masking mapping features to obtain true image features.

[0111] According to embodiments of this disclosure, based on a set of real face frame images and a set of visible face frame images, the masked portion in the set of real face frame images can be determined, thus obtaining a set of masked face frame images.

[0112] According to embodiments of this disclosure, for each masked face frame image in the masked face frame image set, each pixel in the masked face frame image can be mapped to a mapping feature to obtain a masking mapping feature.

[0113] According to embodiments of this disclosure, normalizing the masking mapping features can make the resulting true image features more accurate when used to calculate the mean squared error.

[0114] According to embodiments of this disclosure, real image features are obtained based on a set of real face frame images, making the obtained real image features more accurate, thereby making the mean square error more accurate and improving the feature extraction capability of the multimodal feature extractor.

[0115] Figure 4 The schematic diagram illustrates a model structure of a multimodal feature extractor according to a specific embodiment of the present disclosure.

[0116] like Figure 4 As shown, the spatiotemporal modality feature extractor includes a spatiotemporal block embedding layer and an encoding layer. The spatiotemporal modality feature extractor embeds the sample face frame image set into a joint spatiotemporal cube and then adds a classification vector x. class Obtain the vector sequence E 0 , the vector sequence E 0 The input is fed into the embedding layer for encoding to obtain the multimodal feature sequence E of the sample. l .

[0117] Figure 5 The flowchart illustrating the training of a spatiotemporal modal feature extractor according to a specific embodiment of the present disclosure is shown.

[0118] like Figure 5 As shown, the set of visible face frames obtained by masking the set of real sample face frames is input into a spatiotemporal modality feature extractor for feature extraction, resulting in the spatiotemporal features of the visible faces. These spatiotemporal features are then input into a decoder corresponding to the spatiotemporal modality features to obtain the predicted image features. The real image features are obtained by mapping and normalizing the set of real sample face images. By calculating predicted image features and real image features The mean square error is used to train the spatiotemporal modality feature extractor.

[0119] According to embodiments of this disclosure, when performing gradient calculation, it is necessary to stop gradient calculation for the normalization module to avoid unnecessary updates to the normalization module.

[0120] According to embodiments of this disclosure, the multimodal memory module includes a video modal memory submodule and an audio modal memory submodule.

[0121] According to embodiments of this disclosure, for each sample face video, a set of sample face frame images is input into a pre-trained teacher network to obtain sample audio modal semantic features corresponding to the sample face video. This includes: cropping the lip region of each sample face frame image in the sample face frame image set to obtain a set of sample lip frame images; inputting the set of sample lip frame images into a deep residual network to encode the set of sample face frame images to obtain video modal features; inputting the video modal features into a video modal memory submodule to obtain a key vector; and fusing the video modal features and audio modal features to obtain sample audio modal semantic features.

[0122] According to embodiments of this disclosure, the key vector is used to characterize the video modal information of the sample face video; the key vector is input to the audio modal memory submodule for querying to obtain the audio modal features corresponding to the key vector.

[0123] According to embodiments of this disclosure, before inputting the sample lip frame image set into the deep residual network, the sample lip frame image set can also be converted into grayscale images. To meet the teacher's online input requirements. Specifically, the above process can be shown in the following formula (7):

[0124]

[0125] According to embodiments of this disclosure, the corresponding sample audio modal semantic features F can be obtained through a teacher network. T ∈R 16×512 This guides the spatiotemporal modality feature extractor's ability to represent audio semantic information. Specifically, the above process can be represented by the following formula (8):

[0126]

[0127] According to embodiments of this disclosure, audio modal semantic features corresponding to a set of sample face frame images are obtained through a teacher network to guide the spatiotemporal modal feature extractor's ability to represent audio semantic information.

[0128] Figure 6 A schematic diagram illustrating a model structure of a teacher network according to an embodiment of the present disclosure is shown.

[0129] like Figure 6 As shown, the teacher network includes a deep residual network and a multimodal memory module, wherein the multimodal memory module includes a video modal memory submodule and an audio modal memory submodule.

[0130] According to embodiments of this disclosure, the lip region of a sample set of face video frames is input into a deep residual network for visual encoding to obtain video modal features F. v The video modal features F v The key vector V is obtained by inputting it into the video modal memory submodule. k , the key vector V k The audio modal features F are obtained by querying the audio modal memory submodule. a The audio modal features F a and video modal features F v Feature fusion is performed to obtain audio modality semantic features.

[0131] According to embodiments of this disclosure, a knowledge distillation loss value is determined based on the multimodal feature sequence of samples and the semantic features of sample audio modality through knowledge distillation, in order to guide the multimodal feature extractor's ability to represent audio semantic information. This includes: inputting the multimodal feature sequence of samples into a feature alignment module to adjust the feature dimensions of the multimodal feature sequence of samples to obtain multimodal semantic features of samples; and inputting the multimodal semantic features of samples and the semantic features of sample audio modality into a knowledge distillation loss function to obtain the knowledge distillation loss value.

[0132] According to embodiments of this disclosure, the feature dimension of the sample multimodal semantic features is the same as the feature dimension of the sample audio modal semantic features.

[0133] According to embodiments of this disclosure, due to the multimodal feature sequence E of the samplel ∈R 1569×768 and sample audio modal semantic features F T ∈R 16×512 The features are inconsistent, so we need to adjust their feature dimensions to perform knowledge distillation.

[0134] According to embodiments of this disclosure, the sample multimodal feature sequence E can typically be adjusted. l ∈R 1569×768 To align the multimodal feature sequences of samples with the semantic features of audio modalities, the classification tokens in the multimodal feature sequences can be removed first. Then, a reshape operation is used to change the dimensions of the multimodal feature sequences to 8×14×14×768. Next, pooling is used to adjust the dimensions to 8×768, and finally, bilinear interpolation is used to upsample the dimensions to... Subsequently, its dimension can be transformed from 768 to 512 using depthwise separable convolution, followed by an LN normalization layer and a ReLU activation layer. Specifically, the above process can be illustrated by the following formulas (9) and (10):

[0135]

[0136] Where Interpolation represents bilinear interpolation, Pool represents pooling, DW-Conv represents depthwise separable convolution (DW-Conv), and F l ∈R 16×512 .

[0137] According to embodiments of this disclosure, the knowledge distillation loss function can be represented by the following formula (11):

[0138] L KD =MSE(F T aligner(S 12 (11)

[0139] Among them, L KD The loss represents the knowledge distillation (KD) loss, MSE represents the mean squared error (MSE), and aligner represents the feature alignment module, used to align the E values. l Feature dimensions adjusted to match F T Maintain consistency.

[0140] According to embodiments of this disclosure, the dimensions of sample multimodal features and sample audio modal features are aligned through feature alignment to enable the teacher network to perform knowledge distillation on the spatiotemporal modal feature extractor.

[0141] Figure 7 The flowchart illustrating knowledge distillation of an initial multimodal feature extractor using a teacher network according to a specific embodiment of the present disclosure is shown.

[0142] like Figure 7 As shown, the sample face video frame image set is input into the initial multimodal feature extractor to obtain the sample multimodal feature sequence E. l For the multimodal feature sequence E of the sample l After feature alignment, the multimodal semantic features F of the samples are obtained. l The lip region of the sample face video frame image set is input into the teacher module to obtain the sample audio modality semantic features F. T The multimodal semantic features F of the samples l and sample audio modal semantic features F T Input the data into the knowledge distillation loss function to calculate the knowledge distillation loss.

[0143] According to embodiments of this disclosure, based on the sample multimodal feature sequence E l You can also obtain step size loss and classification loss.

[0144] According to embodiments of this disclosure, when performing gradient calculation, it is necessary to stop gradient calculation for the teacher network to avoid unnecessary parameter updates to the teacher network.

[0145] Based on the above-described multimodal face tampering video detection method, this disclosure also provides a multimodal face tampering video detection device. The following will be combined with... Figure 8 The device is described in detail.

[0146] Figure 8 A schematic block diagram of a multimodal face tampering video detection apparatus according to an embodiment of the present disclosure is shown.

[0147] like Figure 8 As shown, the multimodal face tampering video detection device 800 of this embodiment includes a first decoding module 810, a first classification module 820, and a result determination module 830.

[0148] The first decoding module 810 is used to decode the video to be detected into multiple frame images, obtaining a set of frame images of the video to be detected, wherein the multiple frame images in the set of frame images are sequentially continuous. In one embodiment, the first decoding module 810 can be used to perform the operation S210 described above, which will not be repeated here.

[0149] The first classification module 820 is used to input a set of frame images into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video. The multimodal face tampering video detector includes a multimodal feature extractor and a classifier. The multimodal feature extractor is used to extract multimodal features of the video to be detected based on the set of frame images, and the classifier is used to determine the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video based on the multimodal features. In one embodiment, the first classification module 820 can be used to perform the operation S220 described above, which will not be repeated here.

[0150] The result determination module 830 is used to determine the face tampering video detection result of the video to be detected based on the first classification probability and the second classification probability. In one embodiment, the result determination module 830 can be used to perform the operation S230 described above, which will not be repeated here.

[0151] According to embodiments of this disclosure, the first classification module 820 includes a feature extraction submodule and a classification submodule.

[0152] The feature extraction submodule is used to input the set of frame images into the multimodal feature extractor, extract features from the set of frame images, and obtain the target classification vector, where the target classification vector represents the multimodal feature information of the video to be detected.

[0153] The classification submodule is used to input the target classification vector into the classifier, and classify the video to be detected based on the target classification vector to obtain the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video.

[0154] According to embodiments of this disclosure, the multimodal feature extractor includes a spatiotemporal block embedding layer and an encoding layer, and the feature extraction submodule includes an embedding unit, an arrangement unit, an augmentation unit, and an encoding unit.

[0155] The embedding unit is used to input the set of frame images into the spatiotemporal block embedding layer. The set of frame images is convolved by the joint spatiotemporal cube to embed the set of frame images into the joint spatiotemporal cube. The joint spatiotemporal cube includes multiple sub-cubes, and each sub-cube corresponds to a spatiotemporal embedding vector.

[0156] The arrangement unit is used to arrange the spatiotemporal embedding vectors based on multiple spatiotemporal positions in the joint spatiotemporal cube that correspond one-to-one with multiple spatiotemporal embedding vectors, so as to obtain an embedding vector sequence.

[0157] The added unit is used to add an initial classification vector to the beginning of the embedded vector sequence to obtain the target vector sequence. The dimension of the initial classification vector is the same as the dimension of the spatiotemporal embedded vector, and the initial classification vector is obtained through random initialization.

[0158] The encoding unit is used to input the target vector sequence into the encoding layer for encoding to obtain a multimodal feature sequence, wherein the target classification vector is located at the beginning of the multimodal feature sequence.

[0159] According to embodiments of this disclosure, the classifier includes a fully connected layer, and the classification submodule includes a classification unit and a normalization unit.

[0160] The classification unit is used to input the target classification vector into the fully connected layer, and classify the video to be detected based on the target classification vector to obtain the first initial classification probability that the video to be detected is a real face video and the second initial classification probability that the video to be detected is a tampered face video.

[0161] The normalization unit is used to input the first initial classification probability and the second initial classification probability into the normalization exponential function to obtain the first classification probability and the second classification probability, wherein the sum of the first classification probability and the second classification probability is 1.

[0162] According to embodiments of this disclosure, the result determination module 840 includes a first determination submodule and a second determination submodule.

[0163] The first determination submodule is used to determine that the video to be detected is a real face video if the value of the first classification probability is greater than the value of the second classification probability.

[0164] The second determination submodule is used to determine that the video to be detected is a video with a tampered face if the value of the second classification probability is greater than the value of the first classification probability.

[0165] According to embodiments of this disclosure, any plurality of modules among the first decoding module 810, the first classification module 820, and the result determination module 830 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules can be combined with at least part of the functionality of other modules and implemented in one module. According to embodiments of this disclosure, at least one of the first decoding module 810, the first classification module 820, and the result determination module 830 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or implemented by any other reasonable means of integrating or packaging circuitry, or implemented in any one of software, hardware, and firmware methods, or in a suitable combination of any of these. Alternatively, at least one of the first decoding module 810, the first classification module 820, and the result determination module 830 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.

[0166] Figure 9 A schematic block diagram of a training apparatus for a multimodal face tampering video detector according to an embodiment of the present disclosure is shown.

[0167] like Figure 9 As shown, the multimodal face tampering video detector training device 900 of this embodiment includes a second decoding module 910, a second classification module 920, a teacher module 930, a distillation module 940, a classification loss determination module 950, an overall loss determination module 960, a parameter update module 970, and a detector determination module 980.

[0168] The second decoding module 910 is used to decode each sample face video in the sample face video dataset into multiple sample face frame images, obtaining a set of sample face frame images for each sample face video. The multiple sample face frame images within the set are sequentially continuous. The sample face video dataset includes sample face videos and face tampering tags for the sample face videos. The face tampering tags are used to characterize face tampering information in the sample face videos. In one embodiment, the second decoding module 910 can be used to perform the operation S310 described above, which will not be repeated here.

[0169] The second classification module 920 is used to input the set of sample face frame images into the initial multimodal face tampering video detector, and obtain the first classification probability that the sample face video is a real face video and the second classification probability that the sample face video is a tampered face video, as well as the sample multimodal feature sequence output by the initial multimodal feature extractor of the initial multimodal face tampering video detector. The initial multimodal face tampering video detector includes an initial multimodal feature extractor and an initial classifier. The initial multimodal feature extractor is used to extract multimodal features of the sample face video based on the set of sample face frame images. The initial multimodal feature extractor is pre-trained from the spatiotemporal modality feature extractor. The initial classifier is used to determine the first classification probability that the sample face video is a real face video and the second classification probability that the sample face video is a tampered face video based on the multimodal features. In one embodiment, the second classification module 920 can be used to perform the operation S320 described above, which will not be repeated here.

[0170] The teacher module 930 is used to input the set of sample face frame images into a pre-trained teacher network for each sample face video to obtain the sample audio modality semantic features corresponding to the sample face video. The teacher network consists of a multimodal memory module and a deep residual network with one three-dimensional convolutional layer. The teacher network is pre-trained from an initial teacher network through a lip-reading task. In one embodiment, the teacher module 930 can be used to perform the operation S330 described above, which will not be repeated here.

[0171] The knowledge distillation module 940 is used to determine the knowledge distillation loss value based on the multimodal feature sequence and audio modal semantic features of the samples through knowledge distillation, so as to guide the multimodal feature extractor's ability to represent audio semantic information. In one embodiment, the distillation module 940 can be used to perform the operation S340 described above, which will not be repeated here.

[0172] The classification loss determination module 950 is used to input the first classification probability of the sample, the second classification probability of the sample, and the value of the face tampering label matching the sample face video into the classification loss function to determine the classification loss value. In one embodiment, the classification loss determination module 950 can be used to perform the operation S350 described above, which will not be repeated here.

[0173] The overall loss determination module 960 is used to input the knowledge distillation loss value and the classification loss value into the network overall loss function to obtain the network overall loss function value. In one embodiment, the overall loss determination module 960 can be used to perform the operation S360 described above, which will not be repeated here.

[0174] The parameter update module 970 is used to update the parameters in the initial multimodal face tampering video detector based on the overall network loss function value. In one embodiment, the parameter update module 970 can be used to perform the operation S370 described above, which will not be repeated here.

[0175] The detector determination module 980 is used to determine the initial multimodal face tampering video detector of the current training cycle as a multimodal face tampering video detector when the training stopping condition is met in the current training cycle. In one embodiment, the detector determination module 980 can be used to perform the operation S380 described above, which will not be repeated here.

[0176] According to embodiments of this disclosure, the multimodal face tampering video detector training device 900 further includes an acquisition module, a mask module, an extraction module, a decoding module, a feature determination module, an error determination module, a parameter adjustment module, and an extractor determination module.

[0177] The acquisition module is used to acquire a set of multiple real sample face frame images for training the spatiotemporal modality feature extractor based on face tampering labels. The set of real sample face frame images is obtained by decoding real sample face videos, and the real sample face videos are sample face videos whose face tampering labels indicate that the sample face videos are real face videos.

[0178] The masking module is used to mask the set of real sample face frames along the time dimension according to preset masking parameters to obtain a set of visible face frames.

[0179] The extraction module is used to input the set of visible face frame images into the spatiotemporal modality feature extractor to obtain the spatiotemporal features of the visible faces.

[0180] The decoding module is used to input the spatiotemporal features of visible faces into the decoder corresponding to the spatiotemporal modal features, and to predict the masked areas in the set of real face frame images to obtain the predicted image features.

[0181] The feature determination module is used to determine the true image features of the masked areas in the set of real face frames based on the set of real face frames and the set of visible face frames.

[0182] The error determination module is used to input the predicted image features and the real image features into the mean square error function to obtain the mean square error function value.

[0183] The parameter adjustment module is used to adjust the parameters of the spatiotemporal modality feature extractor based on the mean square error function value.

[0184] The extractor determination module is used to determine the spatiotemporal modality feature extractor of the current training period as the initial multimodal feature extractor if the training stopping condition is met in the current training period.

[0185] According to embodiments of this disclosure, the feature determination module includes an image set determination submodule, a mapping feature determination submodule, and an image feature determination submodule.

[0186] The image set determination submodule is used to determine the set of masked face frames based on the set of real face frame images and the set of visible face frame images.

[0187] The mapping feature determination submodule is used to map each masked face frame image in the masked face frame image set to obtain masking mapping features.

[0188] The image feature determination submodule is used to normalize the masking mapping features to obtain the true image features.

[0189] According to embodiments of this disclosure, the knowledge distillation module 940 includes a feature alignment submodule and a distillation loss determination submodule.

[0190] The feature alignment submodule is used to input the multimodal feature sequence of the sample into the feature alignment module, adjust the feature dimension of the multimodal feature sequence of the sample, and obtain the multimodal semantic features of the sample. The feature dimension of the multimodal semantic features of the sample is the same as the feature dimension of the audio modality semantic features of the sample.

[0191] The distillation loss determination submodule is used to input the multimodal semantic features and audio modal semantic features of the samples into the knowledge distillation loss function to obtain the knowledge distillation loss value.

[0192] According to embodiments of this disclosure, the multimodal memory module includes a video modal memory submodule and an audio modal memory submodule. The teacher module 930 also includes a cropping submodule, an encoding submodule, a key vector determination submodule, a query submodule, and a feature fusion submodule.

[0193] The cropping submodule is used to crop the lip region of each sample face frame image in the sample face frame image set to obtain a sample lip frame image set.

[0194] The encoding submodule is used to input the sample lip frame image set into the deep residual network, encode the sample face frame image set, and obtain video modal features.

[0195] The key vector determination submodule is used to input the video modal features into the video modal memory submodule to obtain the key vector, wherein the key vector is used to characterize the video modal information of the sample face video.

[0196] The query submodule is used to input the key vector into the audio modality memory submodule for querying, and to obtain the audio modality features corresponding to the key vector.

[0197] The feature fusion submodule is used to fuse the video modal features and the audio modal features to obtain the sample audio modal semantic features.

[0198] Figure 10 A block diagram schematically illustrates an electronic device suitable for implementing a multimodal face tampering video detection method according to an embodiment of the present disclosure.

[0199] like Figure 10 As shown, an electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage portion 1008 into a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1001 may also include onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0200] RAM 1003 stores various programs and data required for the operation of electronic device 1000. Processor 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. Processor 1001 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 1002 and / or RAM 1003. It should be noted that the programs may also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.

[0201] According to embodiments of this disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to a bus 1004. The electronic device 1000 may also include one or more of the following components connected to the I / O interface 1005: an input section 1006 including a keyboard, mouse, etc.; an output section 1007 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 1010 as needed so that computer programs read from it can be installed into the storage section 1008 as needed.

[0202] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0203] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 1002 and / or RAM 1003 and / or one or more memories other than ROM 1002 and RAM 1003 described above.

[0204] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the item recommendation method provided in the embodiments of this disclosure.

[0205] When the computer program is executed by the processor 1001, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0206] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and may be downloaded and installed via the communication section 1009, and / or installed from a removable medium 1011. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0207] In such an embodiment, the computer program can be downloaded and installed from a network via communication section 1009, and / or installed from removable medium 1011. When the computer program is executed by processor 1001, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0208] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0209] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0210] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0211] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A training method for a multimodal face tampering video detector, comprising: Each sample face video in the sample face video dataset is decoded into multiple sample face frame images to obtain a set of sample face frame images for each sample face video. The multiple sample face frame images in the set of sample face frame images are sequential in time. The sample face video dataset includes sample face videos and face tampering tags for the sample face videos. The face tampering tags are used to characterize the face tampering information of the sample face videos. The sample face frame image set is input into an initial multimodal face tampering video detector to obtain a first classification probability that the sample face video is a real face video and a second classification probability that the sample face video is a tampered face video, as well as a sample multimodal feature sequence output by the initial multimodal feature extractor of the initial multimodal face tampering video detector. The initial multimodal face tampering video detector includes an initial multimodal feature extractor and an initial classifier. The initial multimodal feature extractor is used to extract multimodal features of the sample face video based on the sample face frame image set. The initial multimodal feature extractor is pre-trained by a spatiotemporal modality feature extractor. The initial classifier is used to determine the first classification probability that the sample face video is a real face video and the second classification probability that the sample face video is a tampered face video based on the multimodal features. For each of the sample face videos, the set of sample face frame images is input into a pre-trained teacher network to obtain sample audio modal semantic features corresponding to the sample face video. The teacher network consists of a multimodal memory module and a deep residual network with a three-dimensional convolutional layer. The teacher network is pre-trained from an initial teacher network through a lip-reading task. By using knowledge distillation, based on the multimodal feature sequence of the sample and the audio modal semantic features of the sample, a knowledge distillation loss value is determined to guide the multimodal feature extractor's ability to represent audio semantic information. The first classification probability of the sample, the second classification probability of the sample, and the value of the face tampering label that matches the face video of the sample are input into the classification loss function to determine the classification loss value; The knowledge distillation loss value and the classification loss value are input into the overall network loss function to obtain the overall network loss function value; Based on the overall loss function value of the network, the parameters in the initial multimodal face tampering video detector are updated; If the training stop condition is met in the current training cycle, the initial multimodal face tampering video detector in the current training cycle is determined to be a multimodal face tampering video detector. The method of determining a knowledge distillation loss value based on the multimodal feature sequence and the audio modal semantic features of the samples, through knowledge distillation, to guide the multimodal feature extractor's ability to represent audio semantic information, includes: The sample multimodal feature sequence is input into the feature alignment module, and the feature dimension of the sample multimodal feature sequence is adjusted to obtain the sample multimodal semantic features, wherein the feature dimension of the sample multimodal semantic features is the same as the feature dimension of the sample audio modal semantic features; The multimodal semantic features and audio modal semantic features of the samples are input into the knowledge distillation loss function to obtain the knowledge distillation loss value.

2. The method according to claim 1, further comprising: Based on the face tampering label, a set of multiple real sample face frame images is obtained for training the spatiotemporal modality feature extractor. The set of real sample face frame images is obtained by decoding real sample face videos. The real sample face videos are the sample face videos that the face tampering label indicates are real face videos. According to the preset masking parameters, the set of real sample face frame images is masked along the time dimension to obtain the set of visible face frame images. The set of visible face frame images is input into the spatiotemporal modality feature extractor to obtain the spatiotemporal features of the visible faces; The visible face spatiotemporal features are input into the decoder corresponding to the spatiotemporal modality features to predict the masked regions in the set of real sample face frame images, thereby obtaining the predicted image features. Based on the set of real sample face frames and the set of visible face frames, determine the real image features of the masked areas in the set of real sample face frames; The predicted image features and the real image features are input into the mean square error function to obtain the mean square error function value; Based on the mean square error function value, the parameters of the spatiotemporal modality feature extractor are adjusted; If the training stopping condition is met in the current training cycle, the spatiotemporal modal feature extractor of the current training cycle is determined as the initial multimodal feature extractor.

3. The method according to claim 2, wherein, The step of determining the true image features of the masked region in the set of real sample face frames based on the set of real sample face frames and the set of visible face frames includes: Based on the set of real sample face frames and the set of visible face frames, determine the set of masked face frames; For each masked face frame image in the set of masked face frame images, the masked face frame image is mapped to obtain masking mapping features; The masking mapping features are normalized to obtain the true image features.

4. The method according to claim 1, wherein, The multimodal memory module includes a video modal memory submodule and an audio modal memory submodule. For each of the sample face videos, the set of sample face frame images is input into a pre-trained teacher network to obtain sample audio modal semantic features corresponding to the sample face video, including: The lip region of each sample face frame image in the sample face frame image set is cropped to obtain a sample lip frame image set; The sample lip frame image set is input into the deep residual network to encode the sample face frame image set to obtain video modal features; The video modal features are input into the video modal memory submodule to obtain a key vector, wherein the key vector is used to characterize the video modal information of the sample face video; The key vector is input into the audio modality memory submodule for querying to obtain the audio modality feature corresponding to the key vector; The video modal features and the audio modal features are fused to obtain the sample audio modal semantic features.

5. A multimodal method for detecting face tampering in videos, comprising: The video to be detected is decoded into multiple frame images to obtain a set of frame images of the video to be detected, wherein the multiple frame images in the set of frame images are sequential in time; The set of frame images is input into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video. The multimodal face tampering video detector includes a multimodal feature extractor and a classifier. The multimodal feature extractor is used to extract multimodal features of the video to be detected based on the set of frame images. The classifier is used to determine the first classification probability that the video to be detected is a real face video and the second classification probability that the video to be detected is a tampered face video based on the multimodal features. Based on the first classification probability and the second classification probability, the face tampering video detection result of the video to be detected is determined; The multimodal face tampering video detector is obtained using the training method described in any one of claims 1 to 4.

6. The method according to claim 5, wherein, The step of inputting the set of frame images into a pre-trained multimodal face tampering video detector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video includes: The set of frame images is input into the multimodal feature extractor, and features are extracted from the set of frame images to obtain a target classification vector, wherein the target classification vector represents the multimodal feature information of the video to be detected; The target classification vector is input into the classifier, and the video to be detected is classified based on the target classification vector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video.

7. The method according to claim 6, wherein, The multimodal feature extractor includes a spatiotemporal block embedding layer and an encoding layer. The step of inputting the set of frame images into the multimodal feature extractor to extract features from the set of frame images to obtain a target classification vector includes: The set of frame images is input into the spatiotemporal block embedding layer. The set of frame images is convolved by a joint spatiotemporal cube to embed the set of frame images into the joint spatiotemporal cube. The joint spatiotemporal cube includes multiple sub-cubes, and each sub-cube corresponds to a spatiotemporal embedding vector. Based on the multiple spatiotemporal positions in the joint spatiotemporal cube that correspond one-to-one with multiple spatiotemporal embedding vectors, the spatiotemporal embedding vectors are arranged to obtain an embedding vector sequence; An initial classification vector is added to the beginning of the column of the embedded vector sequence to obtain the target vector sequence, wherein the dimension of the initial classification vector is the same as the dimension of the spatiotemporal embedding vector, and the initial classification vector is obtained through random initialization; The target vector sequence is input into the encoding layer for encoding to obtain a multimodal feature sequence, wherein the target classification vector is located at the beginning of the multimodal feature sequence.

8. The method according to claim 6, wherein, The classifier includes a fully connected layer. The step of inputting the target classification vector into the classifier and classifying the video to be detected based on the target classification vector to obtain a first classification probability that the video to be detected is a real face video and a second classification probability that the video to be detected is a tampered face video includes: The target classification vector is input into the fully connected layer, and the video to be detected is classified based on the target classification vector to obtain a first initial classification probability that the video to be detected is a real face video and a second initial classification probability that the video to be detected is a tampered face video. The first initial classification probability and the second initial classification probability are input into the normalized exponential function to obtain the first classification probability and the second classification probability, wherein the sum of the first classification probability and the second classification probability is 1.

9. The method according to claim 5, wherein, The step of determining the face tampering video detection result of the video to be detected based on the first classification probability and the second classification probability includes: If the value of the first classification probability is greater than the value of the second classification probability, the video to be detected is determined to be a real face video; If the value of the second classification probability is greater than the value of the first classification probability, the video to be detected is determined to be a video with a tampered face.