Skip to main content
QUICK REVIEW

[Paper Review] Anomaly Detection using One-Class Neural Networks

Raghavendra Chalapathy, Aditya Krishna Menon|arXiv (Cornell University)|Feb 18, 2018
Anomaly Detection Techniques and ApplicationsComputer Science25 references189 citations
TL;DR

The paper introduces OC-NN, a neural network model that integrates a one-class SVM–like objective into deep representations to detect anomalies, demonstrating competitive performance on complex, high-dimensional data without relying on post-hoc feature extraction.

ABSTRACT

We propose a one-class neural network (OC-NN) model to detect anomalies in complex data sets. OC-NN combines the ability of deep networks to extract a progressively rich representation of data with the one-class objective of creating a tight envelope around normal data. The OC-NN approach breaks new ground for the following crucial reason: data representation in the hidden layer is driven by the OC-NN objective and is thus customized for anomaly detection. This is a departure from other approaches which use a hybrid approach of learning deep features using an autoencoder and then feeding the features into a separate anomaly detection method like one-class SVM (OC-SVM). The hybrid OC-SVM approach is sub-optimal because it is unable to influence representational learning in the hidden layers. A comprehensive set of experiments demonstrate that on complex data sets (like CIFAR and GTSRB), OC-NN performs on par with state-of-the-art methods and outperformed conventional shallow methods in some scenarios.

Motivation & Objective

  • Motivation to improve unsupervised anomaly detection in high-dimensional data where OC-SVM struggles.
  • Develop a neural-network-based approach that integrates one-class objectives into representation learning.
  • Enable end-to-end optimization where hidden-layer representations are tailored for anomaly detection.
  • Evaluate OC-NN against shallow and deep baselines on multi-modal datasets (images and sequences).
  • Provide an alternating minimization training procedure and theoretical insight into quantile-based optimization for the OC-NN cutoff.

Proposed method

  • Propose a one-class neural network (OC-NN) that replaces the OC-SVM dot product with a neural network hidden representation: hat{y}_n = w^T g(V x_n).
  • Formulate OC-NN objective as a sum of a standard weight regularization term and a one-class loss term using a hinge-like max(0, r - hat{y}_n) with a bias r.
  • Derive that the optimal r is the nu-quantile of the scores hat{y}_n, enabling an alternating minimization where w and V are learned by backpropagation and r is updated via quantile computation.
  • Allow the encoder weights to be initialized from a pre-trained autoencoder to tailor features for anomaly detection.
  • Compare OC-NN with OC-SVM/SVDD, KDE, Isolation Forest, DCAE, AnoGAN, and RCAE on synthetic and real datasets.
  • Describe network architectures with a single hidden layer and embeddings from transfer learning for complex data.

Experimental results

Research questions

  • RQ1How can one integrate a one-class objective into a neural network to learn task-specific representations for anomaly detection?
  • RQ2Does OC-NN achieve competitive or superior anomaly detection performance on high-dimensional image and sequence data compared to state-of-the-art baselines?
  • RQ3Can the training be efficiently optimized via alternating minimization and a quantile-based update for the decision threshold?
  • RQ4What is the impact of using autoencoder-derived features as inputs to OC-NN on detection accuracy?
  • RQ5How does OC-NN perform in detecting adversarial or boundary-attack anomalies in realistic datasets?

Key findings

  • OC-NN achieves competitive performance with state-of-the-art deep learning approaches on complex image and sequence datasets.
  • OC-NN can outperform conventional shallow methods in certain scenarios, especially on high-dimensional data.
  • The training algorithm uses an alternating minimization where the threshold r equals the nu-quantile of the scores, enabling practical optimization.
  • Using encoder features from a pre-trained autoencoder enhances OC-NN’s anomaly detection capability.
  • OC-NN demonstrates effectiveness in detecting adversarial stop-sign samples in the GTSRB dataset, with comparative results against other deep models.

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.