NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

One-Class Classification: A Survey

Pramuditha Perera, Poojan Oza, Vishal M. PatelarXiv 2021

Abstract

One-Class Classification (OCC) is a special case of multi-class classification, where data observed during training is from a single positive class. The goal of OCC is to learn a representation and/or a classifier that enables recognition of positively labeled queries during inference. This topic has received considerable amount of interest in the computer vision, machine learning and biometrics communities in recent years. In this article, we provide a survey of classical statistical and recent deep learning-based OCC methods for visual recognition. We discuss the merits and drawbacks of existing OCC approaches and identify promising avenues for research in this field. In addition, we present a discussion of commonly used datasets and evaluation metrics for OCC.

Introduction

In standard multi-class classification, a model learns to draw boundaries between multiple known categories (e.g., "cat" vs. "dog"). However, many real-world scenarios—such as anomaly detection in manufacturing, fraud detection, or biometric authentication—only provide examples of "normal" or "authorized" behavior.

The challenge of OCC is learning a discriminative representation and a decision boundary without ever seeing "negative" examples during training. The model must be "compact" enough to encompass the positive class but "descriptive" enough to exclude everything else in the universe. This distinguishes it from multi-class detection, where negative samples are available during training to help define the boundary.

Comparison of classification paradigms: Multi-class Classification, Multi-class Detection, and One-Class Classification.

Taxonomy of OCC Methods

The authors propose a comprehensive taxonomy for OCC based on three fundamental pillars: data usage, feature learning, and classification algorithms.

A hierarchical taxonomy of OCC approaches categorized by data, features, and algorithms.

1. Data Usage

While pure OCC uses only positive data, some modern methods leverage unlabeled data or "Out-of-Distribution" (OOD) datasets to act as a proxy for the negative class, helping the model learn what the positive class is not.

2. Feature Learning

  • Classical Approaches: These rely on PCA, Kernel PCA, and handcrafted features to reduce dimensionality and find relevant patterns.
  • Deep Learning Approaches: Modern methods use Auto-encoders to find a bottleneck latent space or self-supervision (e.g., training a network to predict which geometric transformation was applied to an image) to learn robust, class-specific features.

3. Classification Algorithms

  • Statistical Methods: One-Class SVM (OCSVM) and Support Vector Data Description (SVDD) are the traditional "gold standards" that find a hyperplane or hypersphere to enclose the data.
  • Deep Discriminative Methods: "Deep SVDD" maps data into a hypersphere using a neural network, minimizing the volume of the sphere to force compactness.
  • Generative Models: Techniques like AnoGAN and ALOCC use GANs to learn the distribution of the positive class. If a test image cannot be accurately reconstructed by the generator, it is flagged as an anomaly.
  • Knowledge Distillation: Newer methods like US-OCL use a "teacher-student" framework where an ensemble of student networks tries to mimic a teacher; the students typically fail to agree on data they haven't seen before, providing a signal for the negative class.

Benchmarks and Datasets

The paper identifies two primary types of benchmarks used in the literature:

  • Adapted Multi-class Datasets: Standard datasets like MNIST, CIFAR-10, and COIL100 are often used by treating one class as "positive" and the rest as "negative" during testing.
  • Specialized Anomaly Datasets:
    • Abnormal 1001: Contains abnormal objects (e.g., a boat on a trailer) compared to normal PASCAL dataset images.
  • MVTec-AD: A high-quality industrial inspection dataset containing images of objects (like screws or transistors) with real-world defects.

A central theme in OCC is the Compactness-Descriptiveness Trade-off. A good OCC feature must be compact (similar images cluster together) but also descriptive (different images within the same class retain unique information). Over-compactness leads to overfitting, while excessive descriptiveness without a tight boundary results in high false acceptance rates.

Furthermore, the survey highlights the power of Self-Supervision. By learning "pretext tasks" (like predicting image rotation) on the positive class, networks naturally learn features highly specific to that class, making it easier to spot anomalies that do not conform to the learned logic.

Future Directions

Despite recent progress, several challenges remain:

  • Adversarial Robustness: OCC models are highly vulnerable to "imperceptible" perturbations that can trick a model into accepting a negative sample as positive.
  • Explainability: Most deep OCC models are "black boxes." In critical fields like medical diagnosis, understanding why a sample was flagged is essential.
  • Complexity: Generalizing from simple datasets like MNIST to complex, cluttered real-world scenes remains a major hurdle for the community.

Summary updated

BibTeX
@misc{perera2021one,
  author = {Pramuditha Perera and Poojan Oza and Vishal M. Patel},
  title = {{One-Class Classification: A Survey}},
  year = {2021},
  eprint = {2101.03064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.03064},
}
Figure