Skip to main content
QUICK REVIEW

[Paper Review] Detecting Anomalous Faces with 'No Peeking' Autoencoders

Anand Bhattad, Jason Rock|arXiv (Cornell University)|Feb 15, 2018
Anomaly Detection Techniques and ApplicationsComputer Science21 references7 citations
TL;DR

This paper proposes a novel 'no peeking' autoencoder method that detects anomalous faces by training an autoencoder to inpaint missing image patches using only normal faces, then scoring anomalies based on reconstruction error. The method outperforms strong baselines in both supervised and unsupervised settings, achieving high detection rates even with rare anomalies, and demonstrates robustness across varying dataset sizes.

ABSTRACT

Detecting anomalous faces has important applications. For example, a system might tell when a train driver is incapacitated by a medical event, and assist in adopting a safe recovery strategy. These applications are demanding, because they require accurate detection of rare anomalies that may be seen only at runtime. Such a setting causes supervised methods to perform poorly. We describe a method for detecting an anomalous face image that meets these requirements. We construct a feature vector that reliably has large entries for anomalous images, then use various simple unsupervised methods to score the image based on the feature. Obvious constructions (autoencoder codes; autoencoder residuals) are defeated by a 'peeking' behavior in autoencoders. Our feature construction removes rectangular patches from the image, predicts the likely content of the patch conditioned on the rest of the image using a specially trained autoencoder, then compares the result to the image. High scores suggest that the patch was difficult for an autoencoder to predict, and so is likely anomalous. We demonstrate that our method can identify real anomalous face images in pools of typical images, taken from celeb-A, that is much larger than usual in state-of-the-art experiments. A control experiment based on our method with another set of normal celebrity images - a 'typical set', but nonceleb-A are not identified as anomalous; confirms this is not due to special properties of celeb-A.

Motivation & Objective

  • To address the challenge of detecting rare, visually similar anomalous face images without access to anomaly training data.
  • To develop a feature representation that exaggerates subtle differences between typical and anomalous faces, enabling effective anomaly detection.
  • To evaluate the method on a new benchmark dataset combining real anomalous and typical face images, extending the Celeb-A dataset.
  • To demonstrate effectiveness in both supervised and unsupervised anomaly detection settings using minimal assumptions.

Proposed method

  • The method uses a specially trained autoencoder to predict missing rectangular patches in face images based on the surrounding context, simulating an inpainting task.
  • A 'no peeking' constraint prevents the model from accessing the true patch content during training, ensuring it learns generalizable reconstruction patterns.
  • Anomalies are detected by measuring the reconstruction error (residual) between predicted and actual patch content, with high error indicating anomaly.
  • The residual feature is used with simple unsupervised scoring methods such as Mahalanobis distance and local false discovery rate (lfdr).
  • Feature normalization uses robust estimation of mean and covariance by trimming extreme values, assuming features are approximately independent and identically distributed.
  • The method is evaluated using a new benchmark with real anomalous faces and a typical face set, enabling fair comparison across dataset sizes.

Experimental results

Research questions

  • RQ1Can an autoencoder trained only on normal faces detect anomalous faces that are visually similar but rare?
  • RQ2Does inpainting-based reconstruction error serve as a reliable anomaly score when the model cannot 'peek' at the true patch?
  • RQ3How does the proposed method compare to strong baselines like ResNet-50 with Mahalanobis distance in unsupervised anomaly detection?
  • RQ4Can the method generalize to unseen anomaly types without requiring anomaly examples during training?
  • RQ5Does the performance degrade or remain stable as the number of candidate images per set increases?

Key findings

  • The proposed inpainting autoencoder residual feature significantly outperforms baseline methods, including ResNet-50 with Mahalanobis distance, in detecting anomalies across all dataset sizes.
  • Anomalous images were consistently ranked among the top 10 most anomalous in 128-image sets, while typical images were never ranked in the top 10 in sets larger than 16.
  • The method achieved a recall of 40% for anomalies in a 16-image set, compared to only 20% for typical images, showing a clear performance gap.
  • The method demonstrated robustness to dataset size, maintaining high detection rates even as the number of candidate images increased.
  • A control experiment using a non-Celeb-A typical set confirmed that the method does not rely on dataset-specific properties of Celeb-A.
  • The local false discovery rate (lfdr) estimation on standardized L-infinity scores confirmed that anomalous images are consistently ranked as highly suspicious, while typical images are rarely flagged.

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.