Papers
Topics
Authors
Recent
Search
2000 character limit reached

Capsule-Forensics: Digital Forgery Detection

Updated 14 April 2026
  • Capsule-Forensics is a media forensics technique that uses hierarchical capsule networks and dynamic routing to detect subtle digital forgeries.
  • It processes facial images with convolutional layers and statistical pooling to extract pose vectors for reliable classification of real versus fake content.
  • The method employs optimized training, data augmentation, and multimodal capsule stacks to enhance the detection of replay, deepfake, and CGI forgeries.

Capsule-Forensics denotes a family of media forensics techniques that leverage capsule networks—notably the dynamic routing-by-agreement paradigm—to robustly detect digital forgeries in images and videos. These methods extend capsule networks’ original intent beyond inverse graphics, applying the architecture’s hierarchical feature aggregation to extract the subtle, distributed artifacts characteristic of spoofed media, including replay, print, CGI, deepfake, and instruction-guided edits (Nguyen et al., 2018, Nguyen et al., 2019, Nguyen et al., 27 Apr 2025).

1. Architectural Foundations and Network Design

In its prototypical implementation, Capsule-Forensics processes a pre-cropped facial RGB image (e.g., 128×128128\times128) with the first three convolutional blocks of VGG-19, producing a 16×16×25616\times16\times256 feature tensor (Nguyen et al., 2018). This latent feature map is partitioned across multiple (often three) primary capsule branches, each realized as a lightweight CNN with statistical pooling (mean and variance per channel) to form a pose vector uiu_i for capsule ii. These primary capsules are then dynamically routed to output capsules corresponding to semantic classes, such as “real” and “fake.”

The core component, the dynamic routing algorithm, transfers pose information uiu_i from each primary capsule to high-level capsules vjv_j through trainable transformation matrices WijW_{ij}. Routing proceeds over r=2r=2 iterations as follows:

  • Transformations with added Gaussian noise N(0,0.01)\mathcal{N}(0,0.01) during training augment the weights.
  • Coupling coefficients cijc_{ij} are computed via softmax over output capsules, normalized for each primary capsule.
  • Output capsules aggregate votes as 16×16×25616\times16\times2560, squashed to normalize length.
  • Agreement scores update logits 16×16×25616\times16\times2561 as 16×16×25616\times16\times2562.

Prediction is extracted by dimension-wise softmax across output capsule vectors, followed by averaging:

16×16×25616\times16\times2563

where 16×16×25616\times16\times2564 is the capsule dimension, and 16×16×25616\times16\times2565 denotes the 16×16×25616\times16\times2566th component pair of the “real” and “fake” capsules. Binary cross-entropy loss outperforms the margin loss in this application (Nguyen et al., 2018, Nguyen et al., 2019).

Extensions like CapsFake (Nguyen et al., 27 Apr 2025) increase representational power via multimodal capsule stacks: visual (image-based), textual (caption-based), and frequency (DCT-domain) features, each projected into shared low-dimensional capsule space and routed competitively to class capsules.

2. Training Procedures and Datasets

Standard Capsule-Forensics pipelines utilize Adam or AdamW optimizers, typical learning rates (16×16×25616\times16\times2567 or 16×16×25616\times16\times2568), batch sizes of 32–64, and moderate epoch counts (16×16×25616\times16\times256950). Data augmentation includes random flips and photometric transforms to increase data variety (Nguyen et al., 2018).

Dataset coverage is broad:

  • REPLAY-ATTACK: printed and video replays for anti-spoofing.
  • FaceForensics, FaceForensics++: facial reenactment (Face2Face), deepfakes, face swapping, under variable compression

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Capsule-Forensics.