Introduction
Video Anomaly Detection (VAD) remains a significant challenge in computer vision due to the inherent rarity and diversity of anomalous events, such as accidents or physical altercations. Traditionally, this is framed as a One-Class Classification (OCC) problem, where models are trained exclusively on "normal" data. A common approach involves teaching a model to predict future frames or reconstruct current ones; a high prediction error then serves as a proxy for an anomaly.
However, human motion is inherently multimodal. A person standing still might choose to walk left, walk right, or sit down—all of which are perfectly normal behaviors. Traditional deterministic models often struggle with this variety, attempting to predict a single "average" future that may not correspond to any real-world action. This leads to high false-positive rates when a subject performs a valid but unexpected movement. To address this, we present MoCoDAD (Multimodal Motion Conditioned Diffusion Model), a generative approach that embraces the uncertainty of human motion.
Methodology
MoCoDAD is the first diffusion-based generative model specifically designed for skeleton-based video anomaly detection. Instead of predicting a single trajectory, it generates a distribution of many plausible future pose sequences.
Diffusion on Trajectories
The model utilizes a Diffusion Probabilistic Model to learn the underlying distribution of normal human motion. It operates by reversing a process that incrementally adds Gaussian noise to future pose sequences. By learning to denoise these trajectories, the model can sample a wide variety of potential futures from the learned distribution.
Conditioning and Architecture
To ensure the generated futures are contextually relevant, the diffusion process is conditioned on the observed past motion. The authors utilize an AE-embedding—an Autoencoder that reconstructs and embeds the past motion sequence—to provide the necessary context. The core denoising network is built using a U-Net-shaped stack of Spatio-Temporal Space-Time Separable Graph Convolutional Network (STS-GCN) layers. These layers are optimized for the graph-based structure of skeletal data, ensuring both spatial and temporal dependencies are captured efficiently.
Inference and Statistical Aggregation
During inference, MoCoDAD generates a set of $m$ (typically 50) possible future sequences for a given past observation. The anomaly score is determined by the "best-fit" logic: the model calculates the reconstruction error between the actual observed future and the closest match among the $m$ generated samples. If the actual motion does not resemble any of the diverse, plausible futures generated by the model, it is flagged as an anomaly.
Experimental Setup
The model was evaluated on four major human-centric anomaly detection benchmarks:
- UBnormal: A large-scale synthetic dataset featuring diverse anomaly types.
- HR-UBnormal: A human-related filtered version of the UBnormal dataset.
- HR-STC (ShanghaiTech): A real-world benchmark filtered for human-centric events.
- HR-Avenue: A dataset of campus videos focused on human-related anomalies.
Results and Key Insights
MoCoDAD demonstrates that diffusion models are uniquely suited for VAD because they avoid the "mode collapse" common in GANs, where a model might only learn to predict the most frequent behaviors. By covering the entire spectrum of normal motion, MoCoDAD significantly reduces false positives.
Performance and Efficiency
- State-of-the-Art Accuracy: MoCoDAD outperformed existing skeleton-based methods, notably achieving a 5.1% improvement in AUC on the UBnormal dataset.
- Model Efficiency: Despite its generative power, the model is remarkably lightweight, consisting of only 142K parameters. This makes it approximately 852x smaller than heavy supervised models like TimeSformer, facilitating deployment on edge devices such as security cameras.
- Privacy Preservation: By operating on skeletal joint data rather than raw pixels, the model inherently protects the privacy of individuals in the video stream.
Limitations and Future Work
While MoCoDAD sets a new standard for skeleton-based VAD, it is dependent on the quality of the underlying pose estimator. In scenarios with extreme crowding or poor lighting where skeletons cannot be accurately extracted, performance may degrade. Additionally, the current iteration processes actors individually; future work could explore modeling complex multi-person interactions or utilizing latent diffusion techniques to further enhance computational speed.
Summary updated