Efficient privacy preserving Viola-Jones type object detection via random base image representation

Xin Jin, Peng Yuan, Xiaodong Li, Chenggen Song, Shiming Ge, Geng Zhao, Yingya Chen

Introduction

Cloud-based AI offers powerful tools for object and face detection, but it creates a "privacy paradox." Clients want to use these tools without uploading sensitive photos—such as home surveillance footage—to a third-party server. Conversely, companies providing these services want to protect their proprietary models, including the specific parameters and weights of their trained detectors, from being stolen or reverse-engineered by clients.

Existing solutions, notably the "Blind Vision" framework introduced in 2006, rely on heavy cryptographic tools like Oblivious Transfer (OT). While secure, these methods are prohibitively slow, often requiring hours to scan a single image. This inefficiency stems from their inability to utilize the "integral image" technique—the fundamental optimization that makes the standard Viola-Jones (VJ) algorithm fast. This paper introduces Random Base Image (RBI) Representation, a novel method that bridges the gap between security and performance, achieving dramatic speedups over previous methods while maintaining 100% of the original algorithm's accuracy.

The Random Base Image (RBI) Framework

The core innovation of this work is the decomposition of a private image into a set of random binary base images. Instead of sending a raw image $X$ to the server (Bob), the client (Alice) factors each pixel into a sum of random numbers distributed across $M$ (typically 256) binary base images.

Figure 2: The RBI process decomposes a detection window into a set of binary base images with associated weights.

Alice keeps the weights of these base images secret and shuffles their order before transmission. To Bob, the resulting base images appear as random noise, providing probabilistic security based on the astronomical number of possible permutations ($256!$).

Because the base images are binary, Bob can still utilize integral images to compute features rapidly across the set. The final classification step is handled via a "secure Millionaire protocol," a cryptographic method that allows the parties to compare feature values against model thresholds without revealing the underlying numbers. To further protect the model, Bob can obfuscate his detector by adding "fake" weak classifiers to hide the true complexity of the model.

Experimental Results

The researchers evaluated the RBI method across several standard computer vision benchmarks, including the FDDB (Face Detection Dataset and Benchmark), Face96, FEI Face Database, and the INRIA Person dataset.

Figure 4: Performance comparison of the RBI method against standard Viola-Jones (VJ) and the previous Blind Vision approach across various datasets.

The primary breakthrough is in computational efficiency. As shown in the results table, while the original "Blind Vision" approach took hours per image, the RBI method processed images in roughly 80–170 seconds for local computation. Even when accounting for communication delays, total processing time remained within a few minutes (roughly 224–477 seconds).

Crucially, because the RBI representation is a mathematically exact decomposition of the original image, the detection accuracy is identical to running the detector on a plain, unencrypted image. The method proved robust across different object types, including faces, eyes, noses, and full bodies, matching OpenCV's performance exactly in every case.

Discussion and Future Work

While RBI significantly reduces computation time, it introduces a new challenge: communication overhead. Sending 256 base images creates a substantial data transfer burden, as evidenced by the fact that network latency more than doubles the total processing time.

Furthermore, the current security model assumes a "semi-honest" environment where parties follow the protocol but are curious. Future research is needed to harden the protocol against actively malicious attackers. The authors also suggest exploring "blind training," which would allow servers to train models on private data without ever seeing the raw content. Despite these remaining hurdles, the transition from hours to minutes marks a major step toward making privacy-preserving object detection viable for real-world applications.

Summary updated

Abstract

A cloud server spent a lot of time, energy and money to train a Viola-Jones type object detector [1] with high accuracy. Clients can upload their photos to the cloud server to find objects. However, the client does not want the leakage of the content of his/her photos. In the meanwhile, the cloud server is also reluctant to leak any parameters of the trained object detectors. 10 years ago, Avidan & Butman introduced Blind Vision, which is a method for securely evaluating a ViolaJones type object detector. Blind Vision uses standard cryptographic tools and is painfully slow to compute, taking a couple of hours to scan a single image. The purpose of this work is to explore an efficient method that can speed up the process. We propose the Random Base Image (RBI) Representation. The original image is divided into random base images. Only the base images are submitted randomly to the cloud server. Thus, the content of the image can not be leaked. In the meanwhile, a random vector and the secure Millionaire protocol are leveraged to protect the parameters of the trained object detector. The RBI makes the integral-image enable again for the great acceleration. The experimental results reveal that our method can retain the detection accuracy of that of the plain vision algorithm and is significantly faster than the traditional blind vision, with only a very low probability of the information leakage theoretically.
BibTeX
@inproceedings{jin2017efficient,
  author = {Xin Jin and Peng Yuan and Xiaodong Li and Chenggen Song and Shiming Ge and Geng Zhao and Yingya Chen},
  title = {{Efficient privacy preserving Viola-Jones type object detection via random base image representation}},
  booktitle = {ICME},
  year = {2017},
  url = {https://openreview.net/forum?id=KdHMEHnN0NT},
}
Figure