Skip to main content
QUICK REVIEW

[Paper Review] Detecting Photoshopped Faces by Scripting Photoshop

Sheng-Yu Wang, Oliver Wang|arXiv (Cornell University)|Jun 13, 2019
Digital Media Forensic DetectionComputer Science38 references28 citations
TL;DR

This paper proposes a deep learning method that detects and reverses facial warping in images by training a CNN on fake images automatically generated using Photoshop's Face-Aware Liquify tool. The model outperforms humans in detecting subtle manipulations, localizes edits with high accuracy, and can reconstruct original images by 'undoing' warps, even on real artist-created fakes.

ABSTRACT

Most malicious photo manipulations are created using standard image editing tools, such as Adobe Photoshop. We present a method for detecting one very popular Photoshop manipulation -- image warping applied to human faces -- using a model trained entirely using fake images that were automatically generated by scripting Photoshop itself. We show that our model outperforms humans at the task of recognizing manipulated images, can predict the specific location of edits, and in some cases can be used to "undo" a manipulation to reconstruct the original, unedited image. We demonstrate that the system can be successfully applied to real, artist-created image manipulations.

Motivation & Objective

  • To detect subtle facial warping manipulations in images, a common but hard-to-detect form of image forgery.
  • To address the scarcity of labeled training data for image forensics by generating realistic fake images automatically using Photoshop scripting.
  • To develop a model that not only detects manipulations but also predicts the local deformation field and enables image reconstruction.
  • To evaluate robustness against real-world post-processing, such as social media compression.
  • To extend forensic detection beyond GAN-based deepfakes to common, subtle edits made with standard tools like Photoshop.

Proposed method

  • The method uses a large dataset of real face images scraped from Flickr and Open Images as source material.
  • Photoshop's Face-Aware Liquify tool is scripted to apply random, high-level semantic warping operations (e.g., increase nose width, reduce eye distance) to generate realistic fake training images.
  • A CNN is trained on paired real-fake image sets to detect global manipulation and predict local warping fields using a combination of flow warping, relative warp preservation, and pixel-wise reconstruction losses.
  • The local prediction model uses a multi-loss objective to improve spatial accuracy in identifying warped regions.
  • The system generates visualization overlays highlighting detected edits and attempts to reconstruct original images by applying inverse warping.
  • The model is evaluated on real-world manipulations, including those made with Facetune and Snapchat Lens Studio, demonstrating generalization beyond the training tool.

Experimental results

Research questions

  • RQ1Can a deep learning model trained exclusively on auto-generated fake images detect facial warping with high accuracy, even without human-annotated training data?
  • RQ2Can the model localize the precise regions of facial warping with sufficient precision to enable image reconstruction?
  • RQ3How does the model perform on real, artist-created manipulations not seen during training?
  • RQ4How robust is the model to post-processing operations like JPEG compression and social media re-uploads?
  • RQ5Can the model generalize to warping performed by other editing tools, such as Facetune and Snapchat Lens Studio?

Key findings

  • The model achieves 67.0% accuracy and 79.6% average precision on a low-resolution test set with data augmentation, significantly outperforming human performance (53.5% accuracy).
  • The local prediction model achieves a mean EPE (End-Point Error) of 0.91, indicating high spatial accuracy in predicting deformation fields.
  • On Facebook-postprocessed images, the model with data augmentation maintains strong performance (67.0% accuracy, 79.6% AP), while the high-res model fails to generalize.
  • The model can successfully reconstruct original images with an average PSNR improvement of +2.21 dB on the artist test set, demonstrating partial but meaningful recovery.
  • Even when tested on edits from non-Photoshop tools like Facetune and Snapchat Lens Studio, the model produces reasonable 'undo' predictions, indicating generalization beyond the training tool.
  • The model fails on extreme out-of-distribution edits (e.g., generic Liquify tool on hair or body), but still performs above chance (64.0% accuracy, 85.6% AP), suggesting some robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.