Skip to main content
QUICK REVIEW

[Paper Review] Anomaly Detection in Images

Manpreet Singh Minhas, John Zelek|arXiv (Cornell University)|May 9, 2019
Anomaly Detection Techniques and ApplicationsComputer Science15 references14 citations
TL;DR

This paper proposes a novel network-based deep transfer learning approach using pre-trained convolutional neural networks (CNNs) for anomaly detection in images, treating it as a supervised binary classification problem. By fine-tuning models like DenseNet-169, ResNet-152, and Inception-V4 on limited normal data, the method achieves state-of-the-art performance, with an average AUC of 0.99 across benchmarks, outperforming prior methods by up to 41% on CIFAR10.

ABSTRACT

Visual defect assessment is a form of anomaly detection. This is very relevant in finding faults such as cracks and markings in various surface inspection tasks like pavement and automotive parts. The task involves detection of deviation/divergence of anomalous samples from the normal ones. Two of the major challenges in supervised anomaly detection are the lack of labelled training data and the low availability of anomaly instances. Semi-supervised methods which learn the underlying distribution of the normal samples and then measure the deviation/divergence from the estimated model as the anomaly score have limitations in their overall ability to detect anomalies. This paper proposes the application of network-based deep transfer learning using convolutional neural networks (CNNs) for the task of anomaly detection. Single class SVMs have been used in the past with some success, however we hypothesize that deeper networks for single class classification should perform better. Results obtained on established anomaly detection benchmarks as well as on a real-world dataset, show that the proposed method clearly outperforms the existing state-of-the-art methods, by achieving a staggering average area under the receiver operating characteristic curve value of 0.99 for the tested data-sets which is an average improvement of 41% on the CIFAR10, 20% on MNIST and 16% on Cement Crack data-sets.

Motivation & Objective

  • Address the challenge of low availability of anomalous training samples in image anomaly detection.
  • Overcome the limitations of semi-supervised and unsupervised methods by leveraging transfer learning with deep CNNs.
  • Demonstrate that fine-tuning pre-trained CNNs on small sets of normal images can achieve superior anomaly detection performance.
  • Establish a new state-of-the-art benchmark for anomaly detection in images using transfer learning.
  • Validate the method on both standard benchmarks and a real-world asphalt pavement distress dataset.

Proposed method

  • Select pre-trained CNN architectures (e.g., DenseNet-169, ResNet-152, Inception-V4) as source models from ImageNet for transfer learning.
  • Use the feature extraction backbone of the pre-trained network as a fixed encoder to extract deep features from normal images.
  • Fine-tune the final classification head of the network on a small, balanced dataset of normal and anomalous images.
  • Train the model using binary cross-entropy loss to distinguish between normal and anomalous samples.
  • Use the final layer’s logits or feature representations to compute anomaly scores via a learned threshold.
  • Apply a threshold to the anomaly score to classify test samples as normal or anomalous.

Experimental results

Research questions

  • RQ1Can network-based deep transfer learning with pre-trained CNNs outperform existing state-of-the-art methods in image anomaly detection?
  • RQ2How does the performance of different CNN architectures (e.g., DenseNet-169, ResNet-152, Inception-V4) compare in anomaly detection under low-data regimes?
  • RQ3To what extent can transfer learning mitigate the challenge of scarce anomalous training samples in image anomaly detection?
  • RQ4Does the proposed method generalize well to real-world datasets beyond standard benchmarks?
  • RQ5How does fine-tuning on limited normal data affect the model’s ability to detect diverse anomaly types?

Key findings

  • The proposed method achieves an average area under the ROC curve (AUC) of 0.99 across all tested datasets, significantly outperforming prior state-of-the-art methods.
  • On the CIFAR10 dataset, the method improves AUC by 41% compared to the previous SOTA (GANomaly), with DenseNet-169 achieving 0.9989 AUC for the 'car' class.
  • On the MNIST dataset, the method achieves AUC values above 0.99 for all digits, with DenseNet-169 reaching 0.999386 for digit '9', a 41% improvement over GANomaly.
  • On the real-world Cement Crack dataset, DenseNet-169 achieves an AUC of 0.999998 and an F1 score of 95%, with a near-perfect confusion matrix showing only 7 false negatives out of 4,000 anomalies.
  • ResNet-152 and Inception-V4 also achieve near-perfect performance on the Cement Crack dataset, with AUCs of 0.999986 and 0.998462, respectively.
  • Even with only 2,000 normal images per class, the method maintains high performance, demonstrating robustness to low-data regimes.

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.