A Database for Digital Image Forensics of Recaptured Document

Changsheng Chen, Shuzheng Zhang, Fengbo Lan

TL;DR

This paper introduces a novel deep learning approach for detecting document recapturing attacks, a common method for forging digital documents. By employing a Siamese network trained with a custom forensic loss function and a sophisticated triplet sampling strategy, the method achieves robust performance across diverse document types, printing devices, and capture methods, outperforming existing state-of-the-art techniques.

What Problem Does This Paper Address?

The increasing reliance on digital documents for e-commerce and e-government applications has created a critical need for robust authentication methods. A significant security loophole arises from "recapturing attacks," where a forged document is printed and then re-scanned or photographed. This process can make digitally altered documents appear more authentic, as the forgery traces are obscured by the print-and-scan cycle. Existing methods for detecting such attacks often struggle with domain generalization, meaning they perform poorly when faced with variations in printing/imaging devices, substrates, recapturing channels (e.g., print-and-scan vs. display-and-capture), and document types. This paper aims to address this challenge by developing a system that can reliably detect recaptured documents even under these diverse and practical conditions.

Methods

The core of the proposed solution is a Siamese network architecture designed for document authentication. Unlike traditional approaches that rely on simple Euclidean distance, this network utilizes a trainable forensic similarity subnet to measure the distance between features extracted from document images. The key innovation lies in the custom loss function, which combines a triplet loss with a normalized softmax loss. This loss function is optimized to cluster genuine document samples close to a reference sample while pushing recaptured (forged) samples further away in the feature embedding space.

A crucial aspect of their method is the triplet sampling strategy. Instead of random sampling, they employ a semi-hard triplet mining strategy that focuses on representative triplets. These triplets consist of a genuine document, a recaptured document, and a high-quality genuine document as a reference. This strategy is inspired by how human forensic experts compare questioned documents with known authentic samples. The network is trained to extract distinctive features that capture "forensic traces" like halftoning and color degradation, making it robust to variations in imaging conditions.

Datasets

The authors introduce a newly captured and curated document image database for evaluating recapturing detection. This database consists of two main datasets, D1 and D2, collected using various combinations of phones, scanners, and printers. They also created additional datasets for specific challenging scenarios:

  • D3: High-quality recaptured samples on glossy photo paper.
  • D4: Recaptured samples from a display-and-capture channel (e.g., screen to camera).
  • D5: Samples of different document types (certificates) to test cross-domain generalization.

These datasets are designed to cover a wide range of practical variations that attackers might employ.

Key Insights and Ideas

  • Forensic Similarity over Euclidean Distance: The paper highlights that standard Euclidean distance is insufficient for capturing the subtle forensic traces in recaptured documents, especially under domain shifts. A trainable forensic similarity function is crucial for effective detection.
  • Siamese Network with Reference Sample: Mimicking human experts, the Siamese network uses a high-quality genuine document as a reference to compare against questioned documents, providing a more intuitive authentication process.
  • Sophisticated Triplet Mining is Essential: Randomly sampling triplets for training leads to significant performance degradation. A carefully designed triplet mining strategy that selects representative and informative triplets is key to achieving robust generalization.
  • Domain Generalization is the Major Hurdle: The most significant challenge in document recapturing detection is achieving consistent performance across diverse printing devices, substrates, and capture methods. The proposed method demonstrates a strong ability to generalize.
  • Display-and-Capture is a Distinct Threat: Recapturing through a display-and-capture channel introduces different artifacts (more color distortion, less printing noise) compared to print-and-scan, requiring specialized handling.

Key Results

The proposed method consistently outperforms existing approaches, including popular off-the-shelf machine learning models and a state-of-the-art document recapture detection scheme (CRC+Attn).

  • Intra-dataset: Achieved near-perfect performance (EER = 0.01%, AUC = 1.0000) on datasets D1 and D2 when training and testing on the same device combinations.
  • Cross-dataset: Demonstrated strong generalization, with APCERs generally below 5% even when training on one set of devices and testing on another.
  • Challenging Scenarios:
    • On high-quality glossy paper (D3), the proposed scheme achieved APCERs below 10% with BPCERs set at 5% and 10%.
  • For display-and-capture channels (D4), the proposed method achieved very low APCERs (as low as 0.00% with BPCER=5% for ResNeXt101+Proposed), significantly outperforming generic CNNs which struggled to generalize.
  • In the most challenging scenario of different document types (D5), the proposed scheme with ResNeXt101 backbone achieved less than 5.00% APCER and 5.56% BPCER at a 5% BPCER decision threshold.

Limitations and Future Work

  • Fine-tuning for New Document Types: While the proposed method shows promise, it still requires some fine-tuning with a few samples from new document types to achieve optimal performance. The authors suggest reducing or eliminating this fine-tuning requirement in future work.
  • Reference Image Availability: The current approach relies on having a reference genuine document image. Future work could explore scenarios where this reference is not available.
  • Computational Cost: While not explicitly detailed as a limitation, the use of deep Siamese networks and sophisticated loss functions implies a certain computational overhead for training and inference.

The authors also highlight the need for further investigation into scenarios with different document types and the elimination of the need for a reference image in the target domain.

Summary updated

BibTeX
@misc{chen2021database,
  author = {Changsheng Chen and Shuzheng Zhang and Fengbo Lan},
  title = {{A Database for Digital Image Forensics of Recaptured Document}},
  year = {2021},
  eprint = {2101.01404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.01404},
}
Figure