[Paper Review] CNN-Based Detection of Generic Constrast Adjustment with JPEG Post-processing
This paper proposes a patch-based CNN detector for generic contrast adjustments that is robust to JPEG post-processing, trained on diverse contrast adjustments and multiple JPEG Quality Factors (QFs). The method achieves high AUC (>90%) across various unseen tonal adjustments and QFs down to 80, outperforming prior SVM-based methods under laundering attacks.
Detection of contrast adjustments in the presence of JPEG postprocessing is known to be a challenging task. JPEG post processing is often applied innocently, as JPEG is the most common image format, or it may correspond to a laundering attack, when it is purposely applied to erase the traces of manipulation. In this paper, we propose a CNN-based detector for generic contrast adjustment, which is robust to JPEG compression. The proposed system relies on a patch-based Convolutional Neural Network (CNN), trained to distinguish pristine images from contrast adjusted images, for some selected adjustment operators of different nature. Robustness to JPEG compression is achieved by training the CNN with JPEG examples, compressed over a range of Quality Factors (QFs). Experimental results show that the detector works very well and scales well with respect to the adjustment type, yielding very good performance under a large variety of unseen tonal adjustments.
Motivation & Objective
- Address the challenge of detecting contrast adjustments in images subjected to JPEG post-processing, a common laundering attack that erases forensic traces.
- Develop a generic detector that generalizes across various contrast adjustment types, including brightness, contrast, and tonal curve manipulations.
- Ensure robustness to JPEG compression across a wide range of Quality Factors (QFs), including unseen QFs during training.
- Design a system that maintains high detection performance even when the contrast adjustment type or QF differs from training conditions (processing mismatch).
Proposed method
- Use a patch-based Convolutional Neural Network (CNN) that processes 64×64 non-overlapping image patches directly from pixel inputs without pre-processing.
- Train the CNN on a dataset combining pristine images and contrast-adjusted images, both compressed at multiple QFs (from 80 to 100), to simulate JPEG laundering.
- Apply end-to-end training with cross-entropy loss to learn discriminative features for distinguishing pristine vs. contrast-adjusted patches under JPEG compression.
- Make global image-level decisions by aggregating patch-level soft scores (CNN outputs) via normalized sum, leveraging the fact that all patches from the same image share the same hypothesis.
- Do not specialize the model per QF to avoid vulnerability to QF changes; instead, train a single multi-QF robust model.
- Use the known or estimated QF to adjust the decision threshold dynamically, ensuring consistent false alarm rates across QFs.
Experimental results
Research questions
- RQ1Can a deep learning-based detector achieve robust detection of contrast adjustments under varying JPEG Quality Factors, including unseen QFs?
- RQ2How well does the detector generalize to unseen contrast adjustment types (e.g., gamma correction, CLAHE, Photoshop tone curves) not present in the training data?
- RQ3To what extent does JPEG compression degrade detection performance, and can a CNN be trained to mitigate this effect?
- RQ4Does joint training on multiple contrast adjustment types improve generalization and robustness compared to single-type training?
- RQ5Can the detector maintain high performance in the absence of JPEG compression, indicating it is not solely dependent on compression artifacts?
Key findings
- The detector achieves an average AUC of 99.6% on pristine images (no JPEG), confirming strong baseline performance without compression.
- For CLAHE and HS adjustments, AUC remains above 98% even at QF 80, demonstrating strong robustness to JPEG compression.
- The most challenging case is gamma correction (γ Corr), where AUC drops below 90% at QF ≤ 95, but improves to >97% when trained only on γ=1.5 (expansion), showing the importance of training data composition.
- Performance remains above 90% AUC for most Photoshop-based adjustments (e.g., AutoTone, Curve_S, HistEq) across all QFs from 80 to 100.
- The detector generalizes well to processing mismatch: stronger adjustments yield better performance than matched cases, while weaker ones degrade slightly.
- The threshold for a 5% false alarm rate varies across QFs (0.56–0.71), but this variability is manageable since QF is known or estimable from image headers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.