IP Library Granted Patent US 12,243,290
Granted Patent B2
US 12,243,290 · App. 17/835,453 · Granted Mar 4, 2025

Video transformer for deepfake detection with incremental learning

Inventors: Sohail Ahmed Khan (Abu Dhabi, AE); Hang Dai (Abu Dhabi, AE)
Assignee: Mohamed bin Zayed University of Artificial Intelligence
G06V10/7715G06T7/40G06V10/54G06V10/776G06V10/82G06V20/41G06V20/49G06V20/70G06V40/161G06V40/40H04N21/44008H04N21/637G06T2207/20081G06T2207/20084G06T2207/30201
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,243,290
App. No.
17/835,453
Granted
Mar 4, 2025
Kind
B2
Abstract

A method, apparatus, and system for detecting DeepFake videos, includes an input device for inputting a potential DeepFake video, the input device inputs a sequence of video frames of the video, and processing circuitry. The processing circuitry detects faces frame by frame in the video to obtain consecutive face images, creates UV texture maps from the face images, inputs both face images and corresponding UV texture maps, extracts image feature maps, by a convolution neural network (CNN) backbone, from the input face images and corresponding UV texture maps and forms an input data structure, receives the input data structure, by a video transformer model that includes multiple encoders, and computes, by the video transformer model, a classification of the video as being Real or Fake. A display device plays back the potential DeepFake video and an indication that the video is Real or Fake.

Claims (71)

1. A system for detecting DeepFake videos, comprising:

an input device for inputting a potential DeepFake video, wherein the input device is configured to input a sequence of video frames of the potential DeepFake video;

processing circuitry that

detects faces frame by frame in the potential DeepFake video to obtain consecutive face images,

creates UV texture maps from the face images,

inputs both face images and corresponding UV texture maps,

extracts image feature maps, by a convolution neural network (CNN) backbone, from the input face images and corresponding UV texture maps and forms an input data structure,

receives the input data structure, by a video transformer model that includes multiple encoders,

computes, by the video transformer model, a classification of the video as being Real or Fake; and

a display device that plays back the potential DeepFake video and an indication that the potential DeepFake video is Real or Fake,

the system further comprising:

learnable segment embeddings, wherein the learnable segment embeddings are a fixed token for the face image and a fixed token for the UV texture map, and

wherein the processing circuitry forms the input data structure including the extracted image feature maps and the learnable segment embeddings,

wherein all tokens belonging to the face image are assigned to a first vector (index 0), and all tokens belonging to the UV texture map are assigned to a second vector (index 1), and the first vector and the second vector are concatenated into a single feature vector.

2. The system of claim 1 , further comprising:

a learnable positional embedding, wherein the learnable positional embedding is a position of a raster image within a video frame,

wherein the processing circuitry forms the input data structure including the extracted image feature maps and the learnable positional embedding.

3. The system of claim 1 , the processing circuitry further comprising:

a training module that trains a combination of the CNN backbone and the transformer model using an incremental learning strategy, the incremental learning including

training the combination using a first dataset that is generated using a faceswap technique;

fine-tuning by further training the combination using a second dataset that is different from the first data set, in which the second dataset is generated using a facial re-enactment technique;

fine-tuning by further training the combination using a third image dataset that is different from the first and second datasets;

fine-tuning by further training the combination using a subset of the first dataset; and

fine-tuning by further training the combination using a subset of the third dataset.

4. The system of claim 3 , wherein the training module trains the combination using a loss function, including:

measuring similarity between weights from a current dataset and a previous dataset, and

measuring accuracy of the training of the combination on the current training set.

5. A DeepFake detection system, comprising:

an artificial intelligence (AI) workstation;

a plurality of client computers connected to the AI workstation,

wherein the AI workstation includes program instructions which when executed by processing circuitry having multiple processing cores, each processing core performs a method comprising:

inputting a sequence of video frames of a video;

detecting faces frame by frame in the video to obtain consecutive face images;

creating UV texture maps from the face images;

inputting both the face images and corresponding said UV texture maps;

extracting image feature maps, by a convolution neural network (CNN) backbone, from the face images and corresponding said UV texture maps and forming an input data structure;

receiving the input data structure, by a video transformer model that includes multiple encoders;

computing, by the video transformer model, a classification of the video as being Real or Fake; and

the plurality of client computers each interacting with the AI workstation in parallel to detect whether a video being played in the respective client computer is Real or Fake and display an indication of the detection,

the system further comprising:

learnable segment embeddings, wherein the learnable segment embeddings are a fixed token for the face image and a fixed token for the UV texture map, and

wherein the processing circuitry forms the input data structure including the extracted image feature maps and the learnable segment embeddings,

wherein all tokens belonging to the face image are assigned to a first vector (index 0), and all tokens belonging to the UV texture map are assigned to a second vector (index 1), and the first vector and the second vector are concatenated into a single feature vector.

6. The DeepFake detection system of claim 5 , wherein the plurality of client computers each inserts a label into a video indicating that the video has been detected as being Real or Fake.

7. The DeepFake detection system of claim 5 , wherein the plurality of client computers each stores those videos that have been detected as being Fake into a database of Fake videos.

8. The DeepFake detection system of claim 5 , wherein the plurality of client computers each send a command to an external system to block a video that has been detected as being Fake from being streamed.

9. A non-transitory computer-readable medium that stores program instructions for implementing an embedded DeepFake detector which when executed by processing circuitry having multiple processing cores, each processing core, in parallel with others of the multiple processing cores, performs a method comprising:

receiving a sequence of video frames of a video captured from a streaming service;

detecting faces frame by frame in the video to obtain consecutive face images;

creating UV texture maps from the face images;

inputting both the face images and corresponding created UV texture maps;

extracting image feature maps, by a convolution neural network (CNN) backbone, from the face images and corresponding created UV texture maps and forming an input data structure;

receiving the input data structure, by a video transformer model consisting of multiple encoders;

computing, by the video transformer model, a classification of the video as being Real or Fake; and

performing an action on the video depending on whether the video is detected as being Real or Fake,

the method further comprising:

providing learnable segment embeddings, wherein the learnable segment embeddings are a fixed token for the face image and a fixed token for the UV texture map, and

forming the input data structure including the extracted image feature maps and the learnable segment embeddings,

wherein all tokens belonging to the face image are assigned to a first vector (index 0), and all tokens belonging to the UV texture map are assigned to a second vector (index 1), and the first vector and the second vector are concatenated into a single feature vector.

10. The non-transitory computer-readable medium of claim 9 , wherein the method includes the action of inserting a label into a video indicating that the video has been detected as being Real or Fake.

11. The non-transitory computer-readable medium of claim 9 , wherein the method includes the action of redirecting those videos that have been detected as being Fake into a database of Fake videos.

12. The non-transitory computer-readable medium of claim 9 , wherein the method includes an action of blocking a video that has been detected as being Fake from being streamed by the video streaming service.

13. The non-transitory computer-readable medium of claim 9 , wherein the detector is a mobile application that is installed in a mobile display device.

14. The non-transitory computer-readable medium of claim 9 , wherein the detector is an application that is performed in a server computer.

15. The non-transitory computer-readable medium of claim 9 , wherein the detector is a middleware device connected between the video streaming service and end user display devices.

16. The non-transitory computer-readable medium claim 9 , further comprising an artificial intelligence (AI) workstation that trains the embedded DeepFake detector using an incremental learning strategy, the incremental learning including

training the detector using a first dataset that is generated using a faceswap technique;

fine-tuning by further training the detector using a second dataset that is different from the first data set, in which the second dataset is generated using a facial re-enactment technique;

fine-tuning by further training the detector using a third image dataset that is different from the first and second datasets;

fine-tuning by further training the detector using a subset of the first dataset; and

fine-tuning by further training the detector using a subset of the third dataset.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 8, 2022
From: KHAN, SOHAIL AHMED; DAI, HANG
To: MOHAMED BIN ZAYED UNIVERSITY OF ARTIFICIAL INTELLIGENCE
Reel/Frame 060139/0356 →
Continuity (1)
Related Publication 20230401824A1 · Dec 14, 2023
References Cited (15)
US 11908233B2 · Nagano · 2024 [cited by examiner]
US 20200402284A1 · Saragih · 2020 [cited by examiner]
US 20210097260A1 · Verma et al. · 2021 [cited by applicant]
US 20210334935A1 · Grigoriev · 2021 [cited by examiner]
US 20220004904A1 · Stemmer · 2022 [cited by examiner]
US 20220150068A1 · Streit · 2022 [cited by examiner]
Deressa Wodajo, et al., “Deepfake Video Detection Using Convolutional Vision Transformer”, Computer Science > Computer Vision and Pattern Recognition (cs.CV), arXiv:2102.11126v1 [cs.CV], Feb. 22, 2021, 9 pages (Year: 20… [cited by examiner]
Dolhansky, Brian, et al., “The DeepFake Detection Challenge Dataset”, Computer Science > Computer Vision and Pattern Recognition (cs.CV), arXiv:2006.07397 [cs.CV], Oct. 28, 2020, 13 pages (Year: 2021). [cited by examiner]
Bernhard, Egger, 2020. 3D Morphable Face Models—Past, Present, and Future. ACM Trans. Graph. 39, 5, Article 157 (Oct. 2020), 38 pages. https://doi.org/10.1145/3395208 (Year: 2020). [cited by examiner]
Deressa Wodajo, et al., “Deepfake Video Detection Using Convolutional Vision Transformer”, Computer Science > Computer Vision and Pattern Recognition (cs.CV), arXiv:2102.11126v1 [cs.CV], Feb. 22, 2021, 9 pages (Year: 20… [cited by examiner]
Dolhansky, Brian, et al., “The DeepFake Detection Challenge Dataset”, Computer Science > Computer Vision and Pattern Recognition (cs.CV), arXiv:2006.07397 [cs.CV], Oct. 28, 2020, 13 pages (Year: 2021) (Year: 2021). [cited by examiner]
Bernhard, Egger, 2020. 3D Morphable Face Models—Past, Present, and Future. ACM Trans. Graph. 39, 5, Article 157 (Oct. 2020), 38 pages. https://doi.org/10.1145/3395208 (Year: 2020) (Year: 2020). [cited by examiner]
Deressa Wodajo, et al., “Deepfake Video Detection Using Convolutional Vision Transformer”, Computer Science > Computer Vision and Pattern Recognition (cs.CV), arXiv:2102.11126v1 [cs.CV], Feb. 22, 2021, 9 pages. [cited by applicant]
Aminollah Khormali, et al., “DFDT: An End-to-End DeepFake Detection Framework Using Vision Transformer”, Applied Sciences, vol. 12, No. 6, Mar. 14, 2022, pp. 1-17. [cited by applicant]
Aya Ismail, et al., “A New Deep Learning-Based Methodology for Video Deepfake Detection Using XGBoost”, Sensors, vol. 21, No. 16, Aug. 10, 2021, pp. 1-15. [cited by applicant]