Image Obfuscation for Privacy-Preserving Machine Learning

Mathilde Raynal, Radhakrishna Achanta, Mathias HumbertarXiv 2020

Abstract

As Machine Learning as a Service (MLaaS) becomes ubiquitous, the conflict between data utility and user privacy has intensified. This paper presents a novel framework for training neural networks on obfuscated image data, offering a computationally efficient alternative to cryptographic methods. By repurposing image quality metrics (IQMs) to quantify visual privacy, the authors demonstrate that specific "noise and mixing" techniques can protect sensitive data while maintaining high model accuracy, incurring only a 2–4% performance drop.

Introduction

The rise of cloud-based machine learning requires clients to upload vast amounts of sensitive data, such as medical imagery or personal photos, to third-party servers. This creates a significant privacy risk. Traditional solutions like Homomorphic Encryption are mathematically robust but suffer from extreme computational overhead and require specialized backend architectures. Conversely, Differential Privacy (DP) often introduces so much noise into raw inputs that the resulting model utility becomes insufficient for practical use.

Original image of a deer used as a baseline for obfuscation experiments.

The core challenge lies in the subjective nature of visual privacy. To address this, the authors propose a framework that treats privacy as a measurable degradation of structural information, ensuring that while a human or an AI cannot recognize the subject, a neural network can still extract enough signal for classification tasks.

Methodology and Obfuscation Schemes

The proposed approach is built upon Mixup, a data augmentation strategy where two images and their corresponding labels are linearly combined. The authors extend this concept into several specialized obfuscation schemes designed to destroy recognizable features:

  • Mixing and Pixel Grafting: A process of replacing a specific proportion of pixels from a primary image with those from a secondary image.
  • Shuffling and Mixing: Pixels are shuffled within local $b \times b$ neighborhoods before the mixing step to disrupt fine-grained textures.
  • Adding Noise and Mixing: Gaussian noise is injected into the images prior to mixing, creating a more robust defense against reconstruction attacks.
  • Pixelizing/Blurring and Mixing: Reducing spatial resolution or applying Gaussian blurs to remove high-frequency details.
Comparison of different image obfuscation techniques proposed in the framework, illustrating the visual impact of each method.

To move beyond subjective assessment, the study repurposes five Full-Reference Image Quality Metrics (IQM) as "privacy metrics": Mean Squared Error (MSE), Frechet Inception Distance (FID), Structural Similarity Index Measure (SSIM), Perceptual Hashing (pHash), and the Haar Wavelet-based Perceptual Similarity Index (HaarPSI).

Experimental Results

The framework was validated using three datasets: Stanford Dogs (fine-grained classification), STL-10 (high-resolution general objects), and Cats vs. Dogs (binary classification).

The Human-Metric Alignment

A key finding was the strong correlation between human recognition rates and dissimilarity metrics, specifically dSSIM and dHaar. The authors established a numerical threshold (e.g., a dSSIM of ~0.63) where recognition for both humans and AI (tested via Google Vision AI) drops to near-random levels. Interestingly, human-centric metrics proved to be a "safe" upper bound; if a human cannot identify the image, an AI is even less likely to succeed.

Utility vs. Privacy Trade-off

The "Noise and Mixing" technique emerged as the most effective strategy. In experiments using a ResNet18 architecture on the Cats vs. Dogs dataset, the model achieved 91.3% accuracy on obfuscated data, compared to a 93.35% baseline on raw images. This negligible 2% loss in utility provides a massive gain in privacy. Furthermore, these linear obfuscation steps take only milliseconds to process, adding no meaningful latency to the training pipeline.

Discussion and Future Work

While the results are promising, the authors noted that "Blurring and Mixing" is vulnerable to off-the-shelf deconvolution (deblurring) tools, which can artificially lower the privacy score. Future research will focus on extending these techniques to more complex spatial tasks like object detection and semantic segmentation. Additionally, the authors plan to conduct surveys with domain experts, such as radiologists, to determine if privacy thresholds differ for specialized medical data where even raw images require expert interpretation.

Summary updated

BibTeX
@misc{raynal2020image,
  author = {Mathilde Raynal and Radhakrishna Achanta and Mathias Humbert},
  title = {{Image Obfuscation for Privacy-Preserving Machine Learning}},
  year = {2020},
  eprint = {2010.10139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.10139},
}
Figure