Notes

Novelty Detection

Novelty detection is about recognizing something new because you already have a solid picture of what “normal” looks like. Instead of learning categories like spam vs. not spam, the model learns the usual pattern of the data and then flags observations that fall outside that pattern.

How it works

In practice, novelty detection is trained on data that is assumed to be mostly or entirely normal. The model builds a boundary, density estimate, or compact representation of that normal region. When a new point arrives, it asks: does this point fit inside the learned normal structure, or is it too far away, too isolated, or too unlikely? Common approaches include:

  • One-Class SVM, which learns a boundary around normal data.
  • Kernel density estimation, which scores how probable a point is under the normal distribution.
  • Autoencoders, where high reconstruction error suggests the input does not resemble training data.
Why it matters

Novelty detection is different from plain outlier detection in one important way: it assumes the training set represents normal behavior, and the goal is to catch new abnormal cases at prediction time. That makes it useful in fraud monitoring, equipment health, network intrusion detection, and medical screening. If this distinction is ignored and the training data already contains many anomalies, the model can absorb them as normal and stop detecting what matters.

Practical examples

A bank can train on legitimate transaction patterns and flag a purchase sequence that does not match a customer’s usual behavior. In manufacturing, sensor readings from healthy machines define normal operation; a new vibration pattern can signal an emerging fault. In Python, scikit-learn exposes this directly through tools like sklearn.svm.OneClassSVM and sklearn.neighbors.LocalOutlierFactor with novelty mode enabled.

Novelty Detection is the task of identifying new observations that differ from the normal patterns learned from training data, assuming the training set contains only or mainly normal examples. Unlike general outlier detection, it focuses on recognizing previously unseen but meaningful departures at prediction time. Novelty detection matters because it enables reliable monitoring, fault discovery, fraud screening, and change awareness when labeled abnormal cases are unavailable or rare.

Imagine a store security guard who knows what normal shopping looks like. Most people browse, pick items, and pay. If someone suddenly behaves in a very unusual way, the guard notices because it does not match the usual pattern.

That is the idea behind Novelty Detection. It is a way for AI to learn what “normal” looks like and then spot something new or unexpected. This matters when the unusual thing could be important, like a strange machine vibration, a new kind of fraud, or a medical reading that does not fit past cases. It helps systems notice fresh, unfamiliar events instead of only recognizing what they have already seen.