Skip to content

Defeating Image Obfuscation with Deep LearningDefeating Image Obfuscation with Deep Learning

arXiv· arXiv:1609.00408· Richard McPherson, Reza Shokri, Vitaly ShmatikovThe University of Texas at Austin; Cornell TechIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors train CNNs to recognize images that have been mosaicked, YouTube-blurred, and P3 partially encrypted, achieving a Top-1 accuracy of 97.50% on the AT&T face dataset for P3 with threshold 20.

Threat modelThe attacker holds a set of obfuscated images, and the goal is to recognize the faces, objects, or handwritten digits hidden in them; the attacker also has a set of unobfuscated images for training, knows the obfuscation algorithm and its parameters (mosaic window size, P3 threshold) but does not know the encryption key; for YouTube blur there is only black-box access, and the attacker can only observe the algorithm's output on self-created videos.

Questions
Image obfuscation techniques such as mosaic, blur, and P3 partial encryption use "unrecognizable to the human eye" as their privacy basis and lack a clearly defined privacy guarantee. The authors argue that the human eye is no longer the "gold standard" for visual information extraction, and that it is necessary to test whether neural networks can break through these protections.
Methods
A separate CNN is trained for each combination of obfuscation technique and recognition task: the attacker applies the obfuscation algorithm to unobfuscated images they hold to generate a training set, performs supervised learning, and then measures Top-1/Top-5 accuracy on the obfuscated test set, with the training set and test set disjoint.
Experiments and results
On the four datasets MNIST, CIFAR-10, AT&T, and FaceScrub, the recognition accuracy after obfuscation is in all cases far above random guessing: on AT&T, P3 threshold 20 reaches 97.50%, and YouTube blur reaches 57.75%; on FaceScrub, P3 threshold 1 still has 17.42% (random 0.19%).
Limitations and future work
The authors state that switching to stronger network architectures may achieve higher accuracy, and that the numbers in this paper are a lower bound. The experiments cover only three CNN architectures, four datasets, and three obfuscation techniques, and do not report the variance of multiple repeated trainings; the authors propose as a future direction the design of new protection techniques that balance privacy and image utility.
Experimental setupMNIST neural network、Zagoruyko's CIFAR-10 neural network et al. · MNIST、CIFAR-10 et al. · Top-1 accuracy、Top-5 accuracy
Evaluated models
MNIST neural networkZagoruyko's CIFAR-10 neural networkAT&T neural networkFaceScrub neural network
Benchmarks
MNISTCIFAR-10AT&T database of facesFaceScrub
Metrics
Top-1 accuracyTop-5 accuracy
AI summaryThe researchers show that an artificial neural network-based image recognition method can recover hidden information from images protected by obfuscation. The techniques involved include pixelation (mosaicing), the blurring used by YouTube, and the recently proposed privacy photo-sharing system P3, which makes images unrecognizable to humans by encrypting important JPEG coefficients. The authors experimentally train neural networks that successfully recognize faces, objects and handwritten digits even when images are protected by any of the above obfuscation techniques.

The researchers show that an artificial neural network-based image recognition method can recover hidden information from images protected by obfuscation. The techniques involved include pixelation (mosaicing), the blurring used by YouTube, and the recently proposed privacy photo-sharing system P3, which makes images unrecognizable to humans by encrypting important JPEG coefficients. The authors experimentally train neural networks that successfully recognize faces, objects and handwritten digits even when images are protected by any of the above obfuscation techniques.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Test whether CNNs can recover sensitive information such as faces, objects, and digits from images protected by mosaic, blur, and P3 partial encryption.

    Core question: whether image obfuscation techniques (mosaic, blur, P3 partial encryption) that rely on the basis of "the human eye cannot recognize it" can be broken by modern neural network image recognition methods.

    • Problem scenario: Photos and videos that users upload to social networks and video sites often leak sensitive information such as faces, text, and license plates; full encryption would destroy the usability of images (cannot compress, store, or process), so techniques such as mosaic, YouTube face blur, and P3 hide only the sensitive parts.
    • Shortcomings of existing techniques (according to the authors): These techniques have no clearly defined privacy guarantees, and their privacy arguments are informal, appealing to the human eye's inability to recognize the transformed image; P3 uses signal-processing tests such as edge detection, face detection, and SIFT as privacy metrics, and does not evaluate human recognition rates.
    • Core observation: The authors believe humans may no longer be the "gold standard" for visual information extraction, and that neural networks need no pre-specified features and can automatically discover correlations between hidden information and visible information (such as correlations between significant and "insignificant" coefficients in JPEG).
    • Contributions of the paper: The authors state that this paper is the first to show that modern neural networks can be used for adversarial inference, training CNNs on four benchmark datasets (MNIST, CIFAR-10, AT&T, FaceScrub) to recognize images processed by three obfuscation techniques.
    • Threat model (Section 4):
      • Goal: Recognize objects, faces, and/or handwritten digits from obfuscated images, for example, a storage service operator wanting to know which users appear in a given obfuscated photo.
      • Knowledge: The attacker knows the obfuscation algorithm itself but not the encryption key; for P3 the attacker knows the threshold, and for mosaic the attacker knows the window size.
      • Capability: The attacker has a set of unobfuscated images for training (in the face scenario, the authors consider most users' faces on social networks to be public, making this assumption realistic); for YouTube blur the attacker has only black-box access and can only observe the algorithm's output on videos the attacker provides.
      • Victim systems: Online social networks, video services, and photo-sharing sites that use the above obfuscation techniques to protect images.
  2. What related research exists?

    Related work falls into two groups: existing research showing that mosaic/blur is insufficient to protect privacy, and applications of neural networks in the security and privacy domain.

    Image obfuscation and its shortcomings

    • Face/Off, YouTube, Google Street View—Face/Off uses facial blur to prevent Facebook "restricted" photos from being recognized; YouTube supports blurring of faces in videos (2012) and arbitrary objects (2016); Google Street View blurs license plates and faces. These are the deployment scenarios targeted by the attacks in this paper.
    • Lander et al. (2001), Neustaedter et al. (2006)—the former had participants recognize blurred/pixelated familiar faces to evaluate the effectiveness of obfuscation; the latter analyzes how, in remote video, blur and pixelation cannot simultaneously satisfy privacy and perceptibility.
    • Newton et al. (2005), Gross et al. (2006), Cavedon et al. (2011), Wilber et al. (2016)—Newton et al. achieved a 99% recognition rate with a face de-identification technique that obscures only a small region around the eyes; Gross et al. performed algorithmic attacks based on the similarity between the obfuscated image and the original image; Cavedon et al. reconstructed pixelated video using pixel-block changes between video frames; Wilber et al. treated the Facebook face-tagging system as a black-box tool to test whether obfuscated faces can still be recognized.
    • Venkatraman (2014), Hill et al. (2016), Gopalan et al. (2012), Punnappurath et al. (2015)—Venkatraman used a brute-force attack to reconstruct pixelated check numbers; Hill et al. used hidden Markov models to reconstruct obfuscated text, but relied on known font, font size, and mosaic block size; Gopalan et al. and Punnappurath et al. studied face recognition under non-uniform blur.

    Applications of neural networks in security and privacy

    • Image and recognition categories: Golomb et al. (1990) used neural networks to recognize the sex of faces; Korayem et al. (2016) detected computer screens in images; Tran et al. (2016) used deep neural networks to detect privacy-sensitive photos.
    • Other security scenarios: Cannady (1998) and Ryan et al. (1998) used neural networks for intrusion detection; Dahl et al. (2013), Pascanu et al. (2015), and Yuan et al. (2014) performed malware classification; Sivakorn et al. (2016) broke Google image CAPTCHAs; Melicher et al. (2016) modeled password guessability.

    Parallel work and the positioning of this paper

    • Oh et al. (2016, parallel work)—used neural networks to recognize untagged people in social media images. The paper points out the differences between this paper and that work: this paper handles wholly obfuscated images (including the background), does not exploit unobfuscated body cues and context, covers more obfuscation types (including P3 partial encryption and the blur deployed by YouTube), and evaluates on four datasets; on the most comparable result (their unigram model for blurred faces vs. this paper's AT&T blurred faces), the authors state that this paper's model accuracy is 18% higher.
    • Baselines and benchmarks: this paper has no external baseline method; the comparisons are the random-guessing baseline (10% for MNIST/CIFAR-10, 2.5% for AT&T, 0.19% for FaceScrub) and the recognition accuracy on original unobfuscated images; the benchmarks are the four datasets MNIST, CIFAR-10, AT&T, and FaceScrub.
  3. How does the paper address this problem?

    For each "obfuscation technique × recognition task" combination, a separate CNN classifier is trained on the obfuscated images, and then its accuracy is measured on the obfuscated test set.

    Overall approach: the attacker processes images they hold, which are unobfuscated, with the target obfuscation technique once to obtain a labeled obfuscated training set, supervises training of a CNN, and performs standard classification directly on obfuscated images. The method does not presuppose features; it lets the network automatically learn the correlation between information remaining after obfuscation and the class.

    Attack pipeline (Section 5.1)

    • Training set construction: for each combination of obfuscation technique and recognition task, apply the obfuscation algorithm to unobfuscated images (e.g., upload a face video to YouTube and use Video Manager to blur it automatically).
    • Training and evaluation: supervised training on obfuscated images yields an obfuscated-image recognition model; Top-1 and Top-5 accuracy are measured; in all experiments the training set and test set are disjoint.
    • Same-architecture control: original images and obfuscated images use the same network architecture; the authors state that accuracy could be higher with a stronger network or task-specific customization.

    Implementation of three obfuscation techniques (Section 5.3)

    • Mosaic: a Python/NumPy script computes the average color of each pixel block and fills the whole block; window sizes are 2×2, 4×4, 8×8, 16×16.
    • P3: modify the Independent JPEG Group's JPEG compression software (version 9a) to replace JPEG coefficients whose absolute value exceeds a threshold with the threshold, yielding the same results as P3's public images; thresholds are 1, 10, 20, where 10 and 20 are the privacy-utility balance points recommended by the P3 designers, and 1 is the strongest privacy setting P3 allows.
    • YouTube blur: use ffmpeg to make videos from AT&T faces (1 second per face, separated by 1-second white frames, resolution 1280×720), upload them, apply YouTube automatic blur, then download and extract frames; the same unblurred frame produces different blur results at different frame positions (Figure 5), so the middle 5 frames of each image's video are taken, the training/test sets are expanded to 1,600/400 images, and the center 184×224 pixels are cropped and then rescaled back to 92×112.

    Networks and training (Sections 5.4–5.5, Appendix A)

    • MNIST: based on the Torch template network, convolutional layers followed by LeakyReLU and pooling, fully connected layers plus softmax at the end, with dropout of probability 0.5 between the linear layer and softmax (Appendix A.1).
    • CIFAR-10: Zagoruyko's CIFAR-10 network, 13 convolutional layers, with batch normalization and ReLU after each convolutional layer and linear layer (Appendix A.2).
    • AT&T and FaceScrub: similar to the MNIST network with one additional round of convolution; FaceScrub images are uniformly converted to grayscale and resized to 224×224 (Appendices A.3, A.4).
    • Training parameters: MNIST uses learning rate 0.01, learning rate decay 10⁻⁷, momentum 0.9, weight decay 5×10⁻⁴; CIFAR-10 uses initial learning rate 1, halved every 25 epochs; AT&T and FaceScrub use the same as MNIST; all experiments train for 100–200 epochs, implemented in Torch, with large networks trained on Amazon AWS g2.8xlarge (GRID K520).

    Success determination

    • Metrics: Top-1 and Top-5 classification accuracy on the obfuscated test set, compared with the random-guess baseline and accuracy on original images; test accuracy is recorded once per epoch (Figures 6–9).
  4. What experiments did the paper conduct?

    CNNs were trained separately on four datasets to recognize images under seven obfuscated versions, and accuracy in all settings was far above the random-guess baseline.

    Experimental setup

    • Models tested: three CNNs—the MNIST network (Torch template), Zagoruyko's CIFAR-10 network, and the face network (AT&T and FaceScrub share the structure, with output layers of 40 classes and 530 classes respectively); for each dataset, 8 models are trained separately with the same architecture (original + 7 obfuscations), and AT&T additionally has a 9th YouTube blur model.
    • Datasets: MNIST (60,000 training/10,000 test, padded to 32×32); CIFAR-10 (50,000/10,000); AT&T (40 people × 10 images, 8 randomly for training and 2 for testing); FaceScrub (530 people, downloaded to 66,033 images, 10 test images per person and the remaining 60,733 for training).
    • Obfuscation settings: mosaic windows 2×2/4×4/8×8/16×16; P3 thresholds 20/10/1; YouTube automatic face blur (AT&T only).
    • Baselines and metrics: random-guessing baseline (Top-1 is 10.00% for MNIST/CIFAR-10, 2.50% for AT&T, 0.19% for FaceScrub); metrics are Top-1 and Top-5 accuracy.
    • Training scale: each model is trained for 100–200 epochs; the paper does not report repeated training runs or variance.

    Main results

    Top-1 accuracy (%, from Table 2; Baseline is random guessing):

    Swipe horizontally to read the table

    DatasetBaselineOriginal2×24×48×816×16P3-20P3-10P3-1
    MNIST10.0098.7198.4996.1783.4252.1379.9374.1958.54
    CIFAR-1010.0089.5781.7670.2153.9531.8174.5665.9833.21
    AT&T2.5095.0095.0096.2595.0096.2597.5093.7583.75
    FaceScrub0.1975.4971.5369.9165.2557.5640.0231.2117.42
    • The authors' interpretation (MNIST/CIFAR-10): 8×8 and 16×16 mosaics compress MNIST images to 4×4 and 2×2 unique pixels, and the authors state that 52.13% under 16×16 is still far above the 10% random baseline; the 16×16 mosaic on CIFAR-10 compresses the image to four colors, and the authors state that 31.81% accuracy in this case is impressive.
    • The authors' interpretation (faces): on AT&T, accuracy for the original and all mosaic versions exceeds 95%, and the authors consider that a 16×16 mosaic face still has 6×7 resolution, with sufficient information; on FaceScrub, the P3 results are the lower ones among all experiments, but the authors point out that 17.42% at threshold 1 is still nearly two orders of magnitude higher than the random baseline (0.19%).
    • Relationship between P3 and mosaic: the authors point out that on MNIST, the accuracy at P3 threshold 20 is close to that of the 8×8 mosaic, because P3 follows the JPEG specification and processes 8×8 pixel blocks separately.

    YouTube blur experiment (Table 3)

    • What was measured: recognition of AT&T faces after YouTube automatic blur, with training/test expanded to 1,600/400 frames respectively.
    • Results: Top-1 is 57.75%, Top-5 is 85.75% (original images are 95.00%/100%, random baseline 2.50%/12.50%).
    • The authors' interpretation: the authors state that they themselves are completely unable to recognize these blurred faces by eye, while a simple neural network reaches 57.75%; the Figure 2 caption states that recognition of YouTube-blurred faces on the 40-person gallery exceeds 50% accuracy.

    Relationship between resolution and obfuscation strength (Section 6.3–6.4)

    • What was measured: the difference in the effect of the same window size on datasets of different resolutions.
    • Results: a 16×16 window compresses 32×32 MNIST/CIFAR-10 to 2×2 pixels, whereas 224×224 FaceScrub still retains 14×14 pixels; the corresponding Top-1 values are 52.13%, 31.81%, and 57.56% respectively (Table 2).
    • The authors' interpretation: the authors state that image resolution must be considered when analyzing mosaic window size; the Figure 1 caption states that under a 16×16 window, the recognition accuracy for 530 people is 57%, rising to 72% for Top-5.

    Other ablations and analyses

    • Top-5 accuracy (Table 2): MNIST P3-20 is 98.91%, CIFAR-10 P3-20 is 96.98%, AT&T P3-20 is 100%, FaceScrub P3-20 is 58.38%.
    • P3 threshold effect (Table 2): as the threshold drops from 20 to 1, Top-1 decreases across the board: MNIST 79.93→58.54, CIFAR-10 74.56→33.21, AT&T 97.50→83.75, FaceScrub 40.02→17.42.
    • Training curves (Figure 6–9): the captions state that each figure gives the test accuracy per epoch under a different obfuscation technique (two subfigures for Top-1 and Top-5); the main text states that the original MNIST model exceeds 90% within 10 epochs.
    • Exceptions: the P3-1 accuracy for CIFAR-10 and FaceScrub (33.21%, 17.42%) is close to or below the results of their respective 16×16 mosaics, and the authors give no further explanation.
  5. What are some points that can be further explored?

    The authors propose that future work needs to design new protection techniques that balance privacy and image utility; the experiments cover four datasets and three obfuscation techniques.

    Limitations and future directions noted by the authors

    • Stronger models (Section 5.4): the authors state that if more accurate neural network models or networks specifically customized for recognizing obfuscated images were used, higher accuracy than that reported in this paper might be achieved, i.e., the numbers in this paper are a lower bound for simple networks.
    • Direction for privacy technology design (Section 8): the authors propose that designers of visual data privacy techniques should measure how much information state-of-the-art image recognition algorithms can reconstruct or infer from obfuscated images; as machine learning capabilities grow, the privacy-utility trade-off will tilt toward the attacker's side.
    • Future research topic (Section 8): how to design privacy protection techniques that protect faces in photos and videos while preserving their news value; the authors state that this is an important future research direction.

    Scope of the experiments

    • Models tested: three CNN architectures (the MNIST network, Zagoruyko's CIFAR-10 network, and the face network); the paper does not report model parameter counts.
    • Datasets: four in total—MNIST, CIFAR-10, AT&T (40 people), and FaceScrub (530 people, 66,033 images); YouTube blur is evaluated only on AT&T.
    • Obfuscation techniques: mosaic (4 window sizes), P3 (3 thresholds), and YouTube automatic blur (1), for 8 settings in total; other obfuscation algorithms are not covered.
    • Training and evaluation: each setting is trained for 100–200 epochs, with disjoint training and test sets; the paper does not report the mean or variance over repeated training runs, nor a controlled experiment on human recognition rates (only the authors' own statement that they cannot recognize blurred faces).
    • Attacker resources: the training data assume the attacker holds unobfuscated images; the paper does not evaluate the effect when the training data distribution differs from the target images.
  6. Summarize the main content of the paper

    CNNs can recover sensitive information from mosaic, YouTube blur, and P3 partially encrypted images, with accuracy far above random guessing.

    An attack paper on the failure of image privacy protection: techniques such as mosaic, blur, and P3 partial encryption use "unrecognizable to the human eye" as their privacy basis, and the authors test whether neural networks can break through this assumption.

    • Method: the attacker holds unobfuscated images and knows the obfuscation algorithm but not the key (for YouTube blur, only black-box access); the obfuscation algorithm is applied to the attacker's own images to generate a training set, a separate CNN is trained for each "obfuscation technique × task" combination, and Top-1/Top-5 accuracy is measured on a disjoint obfuscated test set.
    • AT&T faces (40 people): at P3 threshold 20, Top-1 reaches 97.50%, exceeds 95% under all mosaic windows, and is 57.75% under YouTube blur (random baseline 2.50%, Tables 2, 3).
    • FaceScrub (530 people): under 16×16 mosaic, Top-1 is 57.56%, at P3 threshold 20 it is 40.02%, and even the strongest P3 threshold 1 still has 17.42% (random baseline 0.19%, Table 2).
    • MNIST/CIFAR-10: MNIST is 79.93% at P3 threshold 20, and exceeds 80% for 8×8 and smaller mosaics; CIFAR-10 is 74.56% at P3 threshold 20 (random baseline is 10% for both, Table 2).
    • The authors' conclusion: the information remaining in obfuscated images is correlated with the hidden content, and deep learning can exploit it without pre-specifying features; the authors state that informal privacy arguments based on human eye recognition ability are no longer sufficient, that privacy technology design should be measured by the inferability of state-of-the-art recognition algorithms, and that designing new techniques that balance privacy and utility is an important future direction.

Related papers

Read originalarxiv.org