Skip to content

HighwayWu/CameraTraceOSN

Repository files navigation

Robust Camera Trace

An official implementation code for paper "Robust Camera Model Identification over Online Social Network Shared Images via Multi-Scenario Learning"

Table of Contents

Background

Camera model identification (CMI) can be widely used in image forensics such as authenticity determination, copyright protection, forgery detection, etc. Meanwhile, with the vigorous development of the Internet, online social networks (OSNs) have become the dominant channels for image sharing and transmission. However, the inevitable lossy operations on OSNs, such as compression and post-processing, impose great challenges to the existing CMI schemes, as they severely destroy the camera traces left in the images under investigation. In this work, we propose a novel CMI method that is robust against the lossy operations of various OSN platforms. It is observed that the camera trace extractor can be easily trained on a single degradation scenario (e.g., one specific OSN platform); while much more difficult on mixed degradation scenarios (e.g., multiple OSN platforms). Inspired by this observation, we design a new multi-scenario learning (MSL) strategy, enabling us to extract robust camera traces across different OSNs. Furthermore, noticing that image smooth regions incur less distortions by OSN and less interference by image signal itself, we suggest a SmooThness-Aware Trace Extractor (STATE) that can adaptively extract camera traces according to the smoothness of the input image.

Framework of the proposed method.

The superiority of our method is verified by comparative experiments with four state-of-the-art methods Kuzin (ICBD'18), NoiPri (TIFS'19), ForSim (TIFS'19), and PCN (SPL'20), especially under various OSN transmission scenarios. Particularly, for the open-set camera model verification task, we greatly surpass the second-place by 15.30% AUC on the FODB dataset; while for the close-set camera model classification task, we are significantly ahead of the second-place with 34.51% F1 score on the SIHDR dataset.

Performance on open-set verification task of our proposed method, compared with four state-of-the-art schemes. It should be noted that both the test dataset FODB and the considered OSN platforms (Twitter, Wechat, QQ, Telegram, and Dingding) are *unknown* at training time, mimicking a practical situation.

Besides, we build new OSN-transmitted datasets over 9 popular OSNs (Twitter, Telegram, Whatsapp, Instagram, Facebook, Weibo, QQ, Dingding, and Wechat) based on the existing camera datasets FODB and SIHDR, for not only evaluating the robustness of existing CMI algorithms, but also beneficial different applications in the forensic community. The OSN-transmitted datasets can be downloaded from: FODB (Google Drive) or FODB (Baidu Pan), SIHDR (Google Drive) or SIHDR (Baidu Pan).

Dependency

  • torch 1.11.0

Usage

  1. Preparation: Download the train/test dataset and put in the data/. Then run:
python preprocess.py
  1. Train:
python train.py
  1. To test the model for Trace Extraction:
python test_TraceExtraction.py
  1. To test the model for Open-set Verification:
python test_OpenSetVerification.py

Citation

If you use this code/dataset for your research, please consider citing:

@article{wu2023robust,
  title={Robust Camera Model Identification over Online Social Network Shared Images via Multi-Scenario Learning},
  author={H. Wu and J. Zhou and X. Zhang and J. Tian and W. Sun},
  journal={IEEE Transactions on Information Forensics and Security},
  year={2023},
  publisher={IEEE}
}

Please also consider citing the references of the original dataset FODB and SIHDR:

@inproceedings{fodb2021,
  title={The Forchheim image database for camera identification in the wild},
  author={B. Hadwiger and C. Riess},
  booktitle={Proc. Int. Conf. Pattern Recognit.},
  pages={500--515},
  year={2021},
  organization={Springer}
}

@article{sihdr2018,
  title={A new dataset for source identification of high dynamic range images},
  author={O. Shaya and P. Yang and R. Ni and Y. Zhao and A. Piva},
  journal={Sensors},
  volume={18},
  number={11},
  pages={3801},
  year={2018},
  publisher={MDPI}
}

Acknowledgments

  • Part of the codes are based on the FaceX-Zoo and the LibMTL.
  • Alibaba Innovative Research Program

About

Robust Camera Trace Extraction (TIFS'23)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages