Camera Trace Erasing

Chang Chen, Zhiwei Xiong, Xiaoming Liu, Feng Wu

Abstract

Camera trace is a unique noise produced in digital imaging process. Most existing forensic methods analyze camera trace to identify image origins. In this paper, we address a new low-level vision problem, camera trace erasing, to reveal the weakness of trace-based forensic methods. A comprehensive investigation on existing anti-forensic methods reveals that it is non-trivial to effectively erase camera trace while avoiding the destruction of content signal. To reconcile these two demands, we propose Siamese Trace Erasing (SiamTE), in which a novel hybrid loss is designed on the basis of Siamese architecture for network training. Specifically, we propose embedded similarity, truncated fidelity, and cross identity to form the hybrid loss. Compared with existing anti-forensic methods, SiamTE has a clear advantage for camera trace erasing, which is demonstrated in three representative tasks.

Introduction

Every digital camera leaves a unique, invisible mark on the photos it captures. This "camera trace" is a combination of sensor pattern noise (imperfections in the silicon) and artifacts from the internal processing pipeline, such as compression and sharpening. Forensic researchers leverage these traces to identify camera models, detect tampering, or verify the source of leaked documents.

However, these traces are deeply embedded in the image data. Traditional anti-forensic methods, like heavy median filtering or aggressive JPEG compression, often act as a "sledgehammer," removing the trace but simultaneously destroying fine details and introducing visual artifacts. The challenge lies in erasing the trace surgically—neutralizing the forensic signal while preserving the "content signal" (the actual image).

Siamese Trace Erasing (SiamTE)

The authors propose Siamese Trace Erasing (SiamTE), a neural network approach designed to "cloak" images from forensic classifiers. SiamTE utilizes a Siamese network architecture—two identical branches sharing weights—trained with a specialized hybrid loss function.

The hybrid loss consists of three key components:

  1. Embedded Similarity ($L_{es}$): Forces images from different camera models to appear similar in a learned feature space, effectively neutralizing distinguishable traces.
  2. Truncated Fidelity ($L_{tf}$): Ensures the output remains visually close to the original input. It uses a threshold to ignore microscopic changes (allowing trace erasure) while penalizing large deviations that degrade image quality.
  3. Cross Identity ($L_{ci}$): An adversarial-style component where the network extracts a trace from one camera and attempts to mix it with the content of another. Success is achieved when a forensic classifier can no longer distinguish the source.

Experimental Evaluation

The researchers evaluated SiamTE using the KCMI (Kaggle Camera Model Identification) dataset and the VISION dataset. SiamTE treats an image as the sum of signal and trace ($im = sig + trs$), aiming to isolate and remove $trs$.

Key Results

SiamTE outperformed existing anti-forensic methods across three major tasks:

  • Classification: On the KCMI test set, SiamTE reduced the accuracy of a state-of-the-art ResNet50 classifier from 99.8% to 20.4%. As shown in Figure 1, while traditional filtering and denoising fail to fully suppress the correct camera logit (GalaxyN3), SiamTE successfully confuses the classifier.
  • Clustering: On the VISION dataset, SiamTE effectively confused K-means clustering, demonstrating its ability to generalize to unseen camera models.
  • Verification: It significantly reduced the Peak-to-Correlation Energy (PCE)—a standard metric for sensor fingerprint matching—from 1307.1 to 156.1, breaking the link between the image and its source device.
Comparison of SiamTE against traditional methods. (a) Original image and its high classification logit for GalaxyN3. (b, c) Traditional filtering and denoising fail to fully erase the trace. (d) SiamTE successfully confuses the classifier while maintaining visual fidelity.

Conclusion

SiamTE represents a significant advancement in anti-forensics, offering a gradient-free adversarial approach that learns to erase the concept of a camera trace. While specialized adversarial attacks might be more effective against specific classifiers, they often introduce more artifacts. SiamTE provides a robust balance between forensic cloaking and visual quality, serving as a "wake-up call" regarding the fragility of hardware-based trust in digital imaging.

Summary updated

BibTeX
@inproceedings{chen2020camera,
  author = {Chang Chen and Zhiwei Xiong and Xiaoming Liu and Feng Wu},
  title = {{Camera Trace Erasing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=H3hghHe1-9B},
}
Figure