AI Glossary / Data engineering and architecture / Advanced
Novelty detection
Definition
Novelty detection identifies new observations that differ substantially from a reference pattern learned from data treated as normal. It is commonly used to flag unfamiliar cases for further examination. In scikit-learn's terminology, the training reference is assumed not to contain outliers, whereas outlier detection works with training data that may contain them. A novelty flag does not, by itself, establish an error, failure or harmful event.
What it means
A system learns what familiar observations look like and asks whether a later observation fits that pattern. The answer depends on the reference population and the features used. In an original learning-platform example, a suddenly different pattern of file-processing times could reflect a broken process, a new legitimate file format or an incomplete baseline. Novelty is therefore relative to what the system has seen and how it represents the data. It is not a universal property of a record, nor a judgment that an unfamiliar user or activity is undesirable.
How it works
Select a suitable reference dataset, represent observations with relevant features, fit a detector and score genuinely new cases. A decision threshold turns scores into flags. scikit-learn documents methods including One-Class SVM and a novelty mode for Local Outlier Factor, with method-specific rules for prediction on unseen data. In an original evaluation, keep later cases separate from fitting and review both flagged and unflagged examples. A score's numerical meaning depends on the method. It should not be described as a calibrated probability of failure unless that interpretation has been separately justified.
Three practical examples
- A content-ingestion team flags files whose processing characteristics differ markedly from its reference set of normal jobs.
- An equipment-monitoring prototype highlights a new operating pattern for investigation without automatically labeling the equipment faulty.
- An AI service monitors unfamiliar input patterns and routes selected cases for review when its reference coverage is limited.
Think of it this way
Imagine a receptionist familiar with the usual delivery schedule noticing a parcel arriving at an unusual hour. The timing is unfamiliar, so the receptionist checks it. The parcel may be a valid special delivery rather than a mistake. The analogy illustrates the difference between detecting departure from a pattern and identifying its cause. A broader reference schedule could make the same arrival entirely unsurprising.
Worked example
Consider an original fictional review set of 100 new ingestion jobs scored by a detector fitted on a separate normal reference set. At a chosen threshold, 12 jobs are flagged. Human investigation finds that four flagged jobs have actionable processing problems and eight are legitimate new formats. Among the 88 unflagged jobs, reviewers find two additional processing problems. For the specific operational target of detecting those problems, precision is 4/12, approximately 33.3%, and recall is 4/6, approximately 66.7%. These numbers do not mean the eight legitimate formats were familiar to the detector; they may still be valid novelty flags. The calculation distinguishes novelty from the narrower problem label used for business evaluation. It assumes all 100 jobs were reviewed and the six problem labels are reliable. Reviewing only flagged jobs would not reveal the two missed problems or establish this recall.
Illustrative case study
In a fictional AI publishing pipeline, a novelty detector raises alerts after a new document format is introduced. An initial dashboard labels every alert as a processing failure. Reviewers discover that many files are valid and that the reference data did not include the new format. They revise the dashboard wording, evaluate actual failure detection separately and decide how approved new formats should enter later reference data. They retain a separate evaluation set when assessing the change. The scenario illustrates why reference coverage and alert meaning must be explicit. It does not claim that retraining on every new observation is safe, since doing so could also normalize genuine problems.
Common misconceptions and mistakes
Unusual does not automatically mean wrong, and familiar does not automatically mean safe or correct. A detector can miss a problem that resembles its reference observations. Another mistake is assuming that a high anomaly score has the same meaning across algorithms. Threshold settings and score direction must be understood for the chosen method. Do not evaluate only the alerted cases and then claim a complete detection rate. Finally, a change in alert volume can reflect a changed input population, changed preprocessing or a new threshold, rather than a changed rate of actual failures.
Business use
For an AI monitoring feature, define what should happen after a novelty flag and which outcome the business actually wants to detect. In the fictional ingestion service, unfamiliar formats and processing failures require different responses. Measure review workload, confirmed problems and missed problems on a sufficiently representative evaluation set. Document what the normal reference includes and excludes. Reassess performance when the service's input mix changes. This makes the detector part of a practical investigation process, rather than treating its score as a self-explanatory verdict about every new observation.
People also ask
Is novelty detection identical to outlier detection?
Terminology varies, but a common distinction concerns whether the training reference is assumed clean of outliers.
Does a novelty score identify the cause of an unusual case?
No. Further evidence is needed to explain the departure.
Can valid new behavior trigger alerts?
Yes. It may differ from the reference even when it is acceptable.
Check your understanding
How many jobs are flagged in the toy evaluation?
Answer: Twelve.
How many flagged jobs have the specified actionable problem?
Answer: Four.
Why is recall based on six problems rather than twelve alerts?
Answer: Recall measures the fraction of actual target problems detected.
Why might the eight legitimate new formats still be novelties?
Answer: They can be unfamiliar relative to the training reference.
What would be missing if only flagged jobs were reviewed?
Answer: Evidence about problems among unflagged jobs.
Related terms
- Anomaly detection
- Outlier detection
- one-class classification
- distribution shift
- decision threshold
- precision and recall
Learn next
Define a fictional normal reference and two new cases: one unfamiliar but valid, and one familiar-looking but problematic. Explain which features a detector sees and which business facts it does not. Then design a review sample that includes unflagged cases as well as alerts.
More in Data engineering and architecture
- Nontrivial MVD - A nontrivial multivalued dependency, or nontrivial MVD, is a dependency X multidetermines Y on relation schema R for which Y is not a subset of X and X...
- Normal form - A normal form is a specified set of conditions used to assess the structure of a relational database schema with respect to dependencies and redundancy.
- Normalization Algorithm - A normalization algorithm is a systematic procedure for constructing or decomposing relational schemas to satisfy a specified normal form under stated...
- Null Value - A null value in SQL is a marker representing missing or unknown information rather than an ordinary value such as zero or a text string.
- OAuth - OAuth is an authorization framework through which a client can obtain limited access to a protected service.
- Object Data Model - An object data model represents information through objects with identity, state and, in object-oriented approaches, associated behavior.
Sources
scikit-learn documentation, Novelty and Outlier Detection: https://scikit-learn.org/stable/modules/outlier_detection.html The ingestion-job arithmetic, delivery analogy and AI publishing scenario are original educational illustrations. The example evaluates actionable problems separately from novelty, and no calibrated probability interpretation is assigned to raw scores.
Previous: Nouvelle AI Next: NP-complete