In traditional anomaly detection, we define "normal" as a statistical distribution of features. If a new data point falls outside this distribution, it is flagged as an anomaly. However, this approach fails in the real world because normality is rarely absolute. Running is normal on a track but suspicious in a mall; a surface crack is a defect in a metal beam but a natural texture in a loaf of bread.
Recent research has shifted from identifying statistical outliers to understanding contextual incongruity. This direction treats anomaly detection as a relational task: an object or event is only abnormal in relation to its environment, its neighbors, or its semantic category.
The Environment as a Blueprint
The most direct form of context is the physical environment. Hui Lv and colleagues address this in Spatio-Temporal Relation Learning for Video Anomaly Detection by explicitly modeling the relationship between objects and their scenes. Instead of just looking at a person's movement, their STRL framework uses Knowledge Graph Embeddings to ask: "Is this object-location pair plausible?" This allows the system to flag a vehicle on a pedestrian walkway even if the vehicle is driving at a "normal" speed.
Similarly, Shuai Lyu demonstrates in MVREC that industrial defect classification improves significantly when models preserve the "region-context"—the background surrounding a scratch or hole. By understanding the material or object type the defect appears on, the model can distinguish between critical failures and benign surface variations.
Relative Normality and the Odd One Out
In dynamic environments, a fixed definition of normality is impossible. If a factory line switches from producing red mugs to blue mugs, a blue mug is no longer an anomaly. Ankan Bhunia proposes a "scene-specific" approach in Odd-One-Out: Anomaly Detection by Comparing with Neighbors. Instead of comparing an object to a training set, the system identifies anomalies by comparing an object to its immediate neighbors in a 3D scene. If five objects share a pattern and the sixth does not, the sixth is the anomaly, regardless of what the model saw during training.
This shift toward Conditional Anomaly Detection is further explored in Looking 3D: Anomaly Detection with 2D-3D Alignment, where defects are identified relative to an object's unique 3D design blueprint. Here, normality isn't a distribution; it's a specific reference standard.
Resolving Semantic Ambiguity
A major challenge in scaling anomaly detection is "semantic ambiguity"—the fact that the same visual feature can be normal or abnormal depending on the object category. Hai Ling highlights this in ADNet, showing that models relying on local texture analysis fail when faced with hundreds of different categories. Their baseline, Dinomaly$^m$, uses a Mixture-of-Experts approach to provide global context-awareness, ensuring the model knows whether it is looking at a hazelnut or a metal component before judging a surface mark.
This need for semantic meaning extends to tabular data. Sanghyu Yoon shows in ReTabAD that restoring textual descriptions to numerical features allows Large Language Models (LLMs) to identify anomalies that statistical methods miss. By understanding that a "high temperature" reading is normal for a furnace but anomalous for a cooling unit, the model uses domain context to resolve ambiguity.
From Detection to Reasoning
The ultimate goal of context-aware systems is to explain why something is anomalous. Mengxue Qu introduces a framework in A Unified Reasoning Framework for Holistic Zero-Shot Video Anomaly Analysis that moves beyond simple anomaly scores. By chaining Vision-Language Models (VLMs) and LLMs, the system performs a "When, Where, and Why" analysis. This transforms anomaly detection from a black-box classification task into a common-sense reasoning process, allowing the system to explain that a person is suspicious not because of their gait, but because they are in a restricted area at an unusual time.
This evolution reflects a broader trend: as anomaly detection moves into complex, real-world deployments, the "context" is no longer a secondary variable—it is the primary signal that defines what is normal.