Inferensys

Glossary

Novelty Detection

A semi-supervised learning task where a model is trained only on a clean dataset of normal instances to learn a decision boundary, identifying whether new, unseen data points deviate from this learned normality.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
SEMI-SUPERVISED LEARNING

What is Novelty Detection?

Novelty detection is a classification task focused on identifying whether new, unseen data points deviate from a previously learned profile of normality.

Novelty detection is a semi-supervised learning task where a model is trained exclusively on a clean, uncontaminated dataset of normal instances to learn a tight decision boundary. The goal is not to recognize known anomalies, but to identify whether new, unseen data points are out-of-distribution and deviate from this learned normality, triggering a flag for a previously unobserved pattern.

Unlike outlier detection, which finds anomalies within a contaminated training set, novelty detection assumes the training data is anomaly-free. The model learns the support of the normal data distribution using algorithms like One-Class SVM or Deep SVDD. At inference time, any instance falling outside this boundary is classified as a novelty, making it critical for detecting zero-day fraud attacks.

SEMI-SUPERVISED LEARNING

Core Characteristics of Novelty Detection

Novelty detection is a specialized machine learning task where a model is trained exclusively on a clean, uncontaminated dataset of normal instances to learn a tight decision boundary. The goal is to identify whether new, unseen data points deviate from this learned normality, making it distinct from outlier detection which must handle contaminated training data.

01

Clean Training Data Requirement

The foundational assumption of novelty detection is that the training set contains zero anomalies. The model learns a precise boundary around only normal instances, making it highly sensitive to any deviation. This contrasts with outlier detection, where the training set may contain some contamination. In financial fraud, this means training on verified legitimate transactions from a known clean period to establish a baseline of normal customer behavior.

02

Decision Boundary Learning

The model constructs a decision function that returns +1 for normal regions and -1 for novel regions. Key approaches include:

  • One-Class SVM: Finds a hyperplane that maximally separates normal data from the origin in kernel space
  • Deep SVDD: Maps normal data into a minimal hypersphere in latent space
  • Gaussian Mixture Models: Fits a probability density to normal data and flags low-density regions
  • Autoencoders: Learn to compress and reconstruct normal patterns, flagging high reconstruction error as novel
03

Novelty vs. Outlier Distinction

This distinction is critical for model selection:

  • Novelty Detection: Training data is pristine (no anomalies). The model learns what is normal and flags anything unfamiliar. Used when you have a verified clean dataset of legitimate transactions.
  • Outlier Detection: Training data may contain anomalies. The model must robustly identify outliers within potentially contaminated data. Used when historical data cannot be guaranteed clean.
  • Key implication: Novelty detection models are more sensitive but less robust to training contamination than outlier detection methods.
04

Reconstruction-Based Scoring

Autoencoder-based novelty detection relies on reconstruction error as the anomaly score. The principle: a model trained only on normal data will reconstruct normal patterns well but fail on novel patterns. Key metrics include:

  • Mean Squared Error (MSE) between input and reconstruction
  • Reconstruction probability from Variational Autoencoders, which is more principled than raw error
  • Mahalanobis distance in the latent space to measure deviation from the normal distribution In fraud detection, a transaction that cannot be well-reconstructed signals a novel fraud pattern not seen during training.
05

Density Estimation Methods

Probabilistic approaches estimate the probability density function of normal data and flag low-density regions as novel. Common techniques:

  • Kernel Density Estimation (KDE) : Non-parametric density estimation where anomaly scores are inversely proportional to estimated density
  • Gaussian Mixture Models (GMM) : Models normal data as a mixture of Gaussian distributions
  • Normalizing Flows: Transforms simple distributions into complex ones through invertible mappings for exact likelihood computation
  • Extreme Value Theory (EVT) : Models the tail of the anomaly score distribution to set mathematically rigorous thresholds
06

Threshold Setting Strategies

Setting the decision threshold is critical and challenging since only normal data is available during training. Approaches include:

  • Extreme Value Theory: Fit a Generalized Pareto Distribution to the tail of anomaly scores on normal data to control false positive rate
  • Percentile-based: Set threshold at the 95th or 99th percentile of anomaly scores on a held-out normal validation set
  • Dynamic Thresholding: Adapt thresholds based on rolling statistics to account for concept drift and seasonality
  • Contamination factor: Estimate the expected proportion of novel instances in production and calibrate accordingly
ANOMALY DETECTION TAXONOMY

Novelty Detection vs. Outlier Detection vs. Out-of-Distribution Detection

A technical comparison of three distinct anomaly detection paradigms based on training data availability, problem formulation, and operational assumptions.

FeatureNovelty DetectionOutlier DetectionOut-of-Distribution Detection

Training Data Composition

Clean normal data only (uncontaminated)

Unlabeled dataset containing both normal and anomalous points

In-distribution data from known classes or domains

Core Objective

Identify if new instances deviate from learned normality

Identify rare instances that differ from the majority

Detect inputs semantically different from training distribution

Supervision Paradigm

Semi-supervised

Unsupervised

Supervised or self-supervised

Assumption About Anomalies

Absent during training

Present but rare in training data

Unknown classes absent during training

Primary Scoring Mechanism

Distance from decision boundary or hypersphere center

Density, distance, or isolation metrics

Softmax confidence, energy score, or density ratio

Handles Contaminated Training Data

Typical Algorithms

One-Class SVM, Deep SVDD, Autoencoder

Isolation Forest, LOF, DBSCAN, HBOS

Mahalanobis Distance, Energy-Based Models, ODIN

Primary Use Case

Fault detection in known operating regimes

Exploratory data cleaning and fraud flagging

Model safety and open-set recognition

NOVELTY DETECTION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about novelty detection, its mechanisms, and its role in identifying unknown fraud patterns.

Novelty detection is a semi-supervised learning task where a model is trained exclusively on a clean, uncontaminated dataset of normal instances to learn a tight decision boundary, and its goal is to identify whether new, unseen data points deviate from this learned normality. The critical distinction from outlier detection lies in the training data: novelty detection assumes the training set is completely free of anomalies, whereas outlier detection expects the training data to be contaminated with outliers that the algorithm must ignore. In practice, novelty detection is used when you have a robust corpus of legitimate transactions and need to flag any future deviation as potentially fraudulent, making it ideal for zero-day fraud pattern identification where no prior examples of the attack exist.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.