Abstract
Video Anomaly Detection (VAD) is a critical task in automated surveillance, yet it remains challenging due to the ill-defined nature of "abnormal" events and the scarcity of anomalous training data. This paper introduces STC-Net, a novel framework designed to capture the evolution regularity of video sequences by unifying spatial and temporal features. By employing a bidirectional Spatiotemporal Long Short-Term Memory (ST-LSTM) architecture with a "zigzag" update mechanism and a unique error accumulation strategy, the model significantly improves the ability to distinguish between normal patterns and unexpected events. Experimental results on standard benchmarks demonstrate that STC-Net achieves state-of-the-art performance.
Introduction
The primary goal of Video Anomaly Detection is to automatically identify unusual events—such as a vehicle on a pedestrian walkway or a physical altercation—within complex surveillance footage. This task is inherently difficult because anomalies are diverse and unpredictable, meaning models must typically learn from "normal" data and identify deviations from those learned patterns.
Existing deep learning approaches often suffer from two major limitations:
- Fragmented Information: Many models treat spatial appearance (what objects look like) and temporal motion (how objects move) as separate entities. Furthermore, reliance on optical flow often limits the model to capturing motion only between adjacent frames, missing long-term evolution.
- Spatial-Temporal Inconsistency: Models frequently fail to capture the contextual relationship between an object's appearance and its location. For instance, while a person walking is a normal occurrence, a person walking on a high-speed motorway is an anomaly.
STC-Net addresses these gaps by learning the holistic "evolution regularity" of video sequences, ensuring that appearance and motion are processed in a unified manner.
Methodology
ST-LSTM with Zigzag Updates
Standard Convolutional LSTMs (ConvLSTMs) often utilize layer-independent memory, where higher-level layers do not communicate effectively with lower-level layers in subsequent time steps. STC-Net introduces a zigzag update mechanism within the ST-LSTM architecture. In this setup, spatial features from the top layer are delivered to the bottom layer of the next time step. This unifies spatial and temporal representations within a single memory cell, allowing the model to better understand the relationship between an object's identity and its movement path.
Bidirectional Prediction
Rather than relying solely on past frames to predict the future, STC-Net utilizes a bidirectional approach. The model analyzes both the past (forward) and the future (backward) to predict "inter-frames." This provides a much richer context for what should occur in the middle of a sequence, making deviations from the norm more apparent.
Adversarial Training
The ST-LSTM framework functions as a generator within a Generative Adversarial Network (GAN) structure. A discriminator is trained to distinguish between real frames and those predicted by the generator. This adversarial pressure forces the generator to produce high-quality, sharp, and realistic predictions for normal data, ensuring that any blurriness or inaccuracy in the prediction is a strong indicator of an anomaly.
Error Accumulation Strategy
A key innovation of STC-Net is the "snowballing" error accumulation strategy used during the testing phase. Instead of predicting a single frame in isolation, the model uses its own previous predictions as inputs for subsequent frames. If an event is abnormal, the initial prediction error is compounded or "snowballed" over time. This makes the anomaly significantly easier to detect compared to standard single-frame prediction methods, which might inadvertently generalize too well to unusual data.
Experiments and Results
Datasets
The model was evaluated on three standard VAD benchmarks:
- UCSD Ped2: Focused on pedestrian walkways with anomalies like bikers or skaters.
- CUHK Avenue: Contains 30,000 frames featuring anomalies such as people running or throwing objects.
- ShanghaiTech: A large-scale dataset with 13 different scenes and complex anomalies like fighting and robbery.
Performance Metrics
STC-Net achieved highly competitive results across all benchmarks, measured by the Area Under the Curve (AUC):
| Dataset | AUC |
|---|---|
| UCSD Ped2 | 96.7% |
| CUHK Avenue | 87.8% |
| ShanghaiTech | 73.1% |
Ablation Studies
Ablation studies confirmed the value of each architectural choice. On the Avenue dataset, adding adversarial training improved the AUC by 1%, bidirectional prediction added 0.5%, and the error accumulation strategy provided a final 0.7% boost. To prevent the two types of memory (standard temporal and spatial-temporal) from becoming redundant, the authors implemented a decouple loss, which encourages the learning of separate, complementary features.
Conclusion
STC-Net demonstrates that unifying appearance and motion within a single memory cell allows for a more sophisticated understanding of spatial-temporal consistency. The "snowball effect" created by the error accumulation strategy effectively addresses the over-generalization problem common in deep learning models. While the model is highly effective, future work may involve integrating these insights into two-stream models or refining the detection of subtle, slow-moving anomalies that may not trigger immediate high prediction errors.
Summary updated