Strictly Causal Streaming Video Anomaly Detection with a Theoretically-Grounded State-Space Core introduces a method for detecting video anomalies in real-time on edge hardware. Unlike existing state-space models (SSMs) that rely on buffering video clips or windows, this approach processes frames one by one, ensuring that predictions depend only on past data. The research, authored by Yogesh Kumar, provides a theoretical framework to explain how a model’s memory relates to its detection speed and validates performance on consumer-grade hardware.
A Strictly Causal Approach
The model uses a diagonal linear state-space recurrence to maintain a fixed-size state that updates in constant time and memory per frame. By using a frozen visual backbone (ResNet-18) to extract embeddings, the system avoids the need for heavy, per-frame training. The core innovation is an "event-boundary gate"—an input- and state-dependent mechanism that allows the model to reset its state quickly when it detects a mismatch between the current input and its memory. This design enables the system to operate with strict causality, meaning it makes no lookahead and requires no clip buffering.
Theoretical Latency Analysis
The paper derives a closed-form relationship between the recurrence’s decay spectrum and its responsiveness. The author defines a "settling-delay bound," which predicts how long a model takes to react to an anomaly based on its base decay rate. Empirical testing on the UCSD Ped2 and CUHK Avenue datasets revealed that the actual detection delay (1.6 to 18.4 frames) is significantly faster than the theoretical bound predicted by the base decay (57 to 59 frames). This suggests that the event-boundary gate, rather than the base decay, is the primary driver of the model's responsiveness to anomalies.
Performance and Hardware Efficiency
The method was evaluated on an Apple M3 Pro, achieving processing speeds of over 1,300 frames per second with a latency of approximately 0.74 to 0.77 ms per frame. In terms of accuracy, the model reached 67.9% frame-level AUC on Ped2 and 70.2% on Avenue. The author notes that these accuracy figures trail prior non-causal SSM baselines, attributing the gap to the use of an untuned, initial configuration rather than a fundamental flaw in the streaming architecture.
Limitations and Future Directions
The research highlights a dependency between the gating mechanism and dataset size. Ablation studies showed that the event-boundary gate improved performance on the larger CUHK Avenue dataset but hindered accuracy on the smaller UCSD Ped2 dataset, suggesting the gate may be prone to overfitting when training data is limited. The author identifies the need to close this accuracy gap and extend evaluations to larger benchmarks, such as ShanghaiTech, as immediate next steps. Additionally, the current implementation uses a simplified frame-overlap criterion for localization, which the author notes should be treated as illustrative until fully aligned with official region- and track-based evaluation protocols.
Comments (0)
to join the discussion
No comments yet
Be the first to share your thoughts!