Reasonable Anomaly Detection in Long Sequences

Yalong Jiang, Changkang LiarXiv 2023

TL;DR

This paper tackles the challenge of detecting anomalies in video by proposing a novel Stacked State Machine (SSM) model. The SSM effectively captures long-term temporal dependencies in object motion, enabling more robust and "reasonable" anomaly detection compared to methods relying on short-term observations.

What Problem Does This Paper Address?

Detecting abnormal events in surveillance videos is a difficult task, primarily because anomalies are rare and lack consistent patterns, making supervised learning impractical. Existing unsupervised methods often struggle because they rely on short-term observations. These short sequences can be misleading due to noise, occlusions, or simply not capturing the full context of an action. This can lead to false positives or missed detections, as short-term motion patterns can be similar for both normal and abnormal behaviors. The paper argues that a more comprehensive understanding of human behavior, derived from long-term motion patterns, is crucial for achieving truly "reasonable" anomaly detection that is robust to short-term variations and noise.

Methods

The core of the proposed solution is the Stacked State Machine (SSM) model. This model aims to represent object motion patterns over long sequences. It consists of multiple State Machine (SM) modules stacked together. Each SM module, illustrated as a differential equation, takes object state information (poses and locations) as input and predicts its future state based on learned temporal dependencies. Crucially, the parameters of these state machines (A and B matrices) are not learned from data but are derived from frequency components, inspired by prior work on recurrent memory models. This approach is intended to avoid overfitting to specific training data and to generalize better.

The SSM model works by:

  1. Encoding: Input video frames are processed to extract object states (poses and locations). These states are then encoded into a feature space.
  2. State Machine Prediction: The stacked SM modules predict future states based on past observations.
  3. Anomaly Scoring: The divergence (measured by Mean Squared Error) between the predicted future states and the actual observed future states is used to calculate an anomaly score for each object. Higher divergence indicates a deviation from normal motion patterns.
  4. Frame-level Anomaly Score: The final anomaly score for a frame is the maximum anomaly score among all detected objects in that frame.

The paper also mentions using a pre-trained Yolo [49] model for object detection.

Datasets

The proposed approach is evaluated on two widely used benchmark datasets:

  • CUHK Avenue dataset [47]
  • ShanghaiTech dataset [38] (specifically, the first version, which lacks anomaly annotations in the training set, aligning with the unsupervised nature of the proposed method).

Key Insights and Ideas

  • Long-term dependencies are key: The paper strongly advocates that capturing long-term motion patterns is essential for robust anomaly detection, moving beyond the limitations of short-term sequence analysis.
  • State machines as a principled approach: Using state machines with non-data-driven parameters offers a way to model temporal dependencies without overfitting, potentially leading to better generalization.
  • Reasonable detection: The emphasis on "reasonable" detection implies a desire for fewer false positives and a better alignment with human intuition about what constitutes an anomaly, which is achieved by filtering out short-term noise through long-term consistency.
  • Subject-level detection: The approach facilitates subject-level anomaly detection, which is less susceptible to background clutter and provides more interpretable insights into individual dynamics.

Key Results

The paper reports strong performance on the evaluated datasets. Specifically, the proposed "Ours" method achieves:

  • ShanghaiTech: An AUC of 88.8%
  • CUHK Avenue: An AUC of 91.8%

These results outperform many state-of-the-art methods across various categories, including reconstruction-based, prediction-based, clustering-based, and multi-task approaches, as detailed in Table II. The paper also notes that the approach generalizes to non-human objects like vehicles and bicycles.

Limitations and Future Work

  • Truncation of window size: While the paper mentions truncating the window size ($L_{11}$) to an upper limit of 30 for efficiency, it acknowledges that in early moments when an object appears, the window is smaller. Efficiency decreases if truncation is not used, suggesting a trade-off between computational cost and performance.
  • Generalization to novel circumstances: While the SSM model is designed for generalization, the paper doesn't extensively detail its performance on entirely unseen types of anomalies or scenarios beyond the tested benchmarks.
  • Future work: The paper suggests that coupling pose variations with relative positions between observations of the same object at different moments can provide a more comprehensive representation of movements, hinting at potential extensions. The code for the proposed approach is made publicly available.

Summary updated

BibTeX
@misc{jiang2023reasonable,
  author = {Yalong Jiang and Changkang Li},
  title = {{Reasonable Anomaly Detection in Long Sequences}},
  year = {2023},
  eprint = {2309.03401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.03401},
}

Loading related content...

Figure