← Latest papers
🤖 AI

Strictly Causal Streaming Video Anomaly Detection with a Theoretically-Grounded State-Space Core

This paper introduces a strictly causal, O(1) streaming video anomaly detector based on a theoretically-grounded state-space model with an input-dependent decay gate, which achieves ultra-low latency on edge hardware while demonstrating that its responsiveness is governed by event boundaries rather than base decay, though it currently trails non-causal baselines in accuracy on smaller datasets.

Original authors: Yogesh Kumar

Published 2026-08-26
📖 6 min read🧠 Deep dive

Original authors: Yogesh Kumar

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the quiet hum of a security camera's lens, a constant stream of images arrives, second by second. For decades, computers have struggled to watch this stream in real time, looking for the single moment when something goes wrong—a fall, a fight, a theft. The challenge is not just seeing the event, but seeing it the instant it happens, without waiting to look back at a recording or buffering a chunk of video to analyze later. This is the realm of video anomaly detection, a field where machines must learn the rhythm of normal behavior and instantly flag the beat that breaks. Traditionally, systems have relied on looking at groups of frames at once, like reading a paragraph to understand a sentence, which creates a delay between the event and the alert. But for cameras mounted on robots or mobile devices with limited power, that delay is too long, and the memory required to hold those chunks of video is too heavy. The goal is a system that processes every single frame the moment it arrives, using a tiny, fixed amount of memory, and reacts immediately.

Researchers at the Indian Institute of Technology Jodhpur have built a new kind of detector designed to meet this strict requirement. Instead of storing clips of video, their system treats the incoming stream as a continuous flow, updating its internal understanding with every new picture it receives. At the heart of this system is a mathematical structure that remembers the past but forgets the distant past quickly, unless something important happens. The team trained this system using only videos of normal activity, teaching it to predict what the next frame should look like based on what came before. When the actual frame arrives and does not match the prediction, the system raises an alarm. What makes this work unique is that it does not just work in theory; the researchers proved mathematically how the system's memory settings control its reaction speed, and they tested it on real hardware found in consumer devices, not just powerful supercomputers.

The core of their invention is a mechanism that acts like a gatekeeper for memory. Under normal circumstances, the system holds onto information for a while, smoothing out small changes. However, the researchers designed a specific gate that can slam shut instantly if the incoming image clashes with what the system expects. When this happens, the system effectively resets its memory in a fraction of a second, allowing it to react to an anomaly almost immediately. To understand how fast this should be, the team derived a rule that links the system's memory settings to its reaction time. They found that if the system were to rely only on its standard memory settings, it would take nearly sixty frames to fully react to a sudden change. Yet, when they watched the system in action, it reacted in far less time—sometimes as quickly as one or two frames. This discrepancy revealed that the gate mechanism was doing the heavy lifting, overriding the slow memory settings the moment an irregularity appeared.

The researchers tested their system on two standard datasets used for training security cameras: one featuring a university campus walkway and another showing a busy avenue. They ran the software on an Apple M3 Pro chip, a processor found in modern laptops, to measure how fast it could actually run in the real world. The results were striking for their speed. The system processed each frame in less than one millisecond, achieving a speed of over 1,300 frames per second. This is far faster than the speed of a standard video feed, meaning the system has a massive margin of safety and could easily run on much weaker hardware. However, the accuracy of the system was not perfect. In its initial, un-tuned state, it correctly identified anomalies about 68% of the time on the campus dataset and 70% on the avenue dataset. While this is lower than the 90% or higher scores often seen in other studies, those other studies typically use methods that look at video clips after the fact or require powerful graphics cards that cannot run on edge devices. The author was careful to report these numbers honestly, noting that their method is a first step toward a strictly real-time solution rather than a final, perfected product.

A deeper look at the results revealed a surprising nuance about how the system learns. The researchers tested whether the special "gate" that allows for instant memory resets was always helpful. On the smaller dataset with fewer training videos, removing the gate actually improved the system's accuracy, suggesting the gate was causing the system to over-learn the few examples it had. But on the larger dataset with many more videos, the gate became essential, and removing it caused the accuracy to drop sharply. This suggests that the gate is a powerful tool, but it requires enough data to learn how to use it correctly without getting confused. The team also tested different sizes for the system's internal memory and found that on the smaller dataset, a smaller memory worked better, while on the larger one, a bigger memory helped slightly. These findings indicate that the system's design is not a one-size-fits-all solution; its components interact with the amount of data available in complex ways.

The study concludes that while the system is not yet the most accurate detector available, it successfully bridges a critical gap between theory and practice. It proves that a strictly causal system—one that never looks ahead and never buffers clips—can run on consumer hardware with incredible speed. The researchers acknowledge that their work is incomplete; they have not yet tested the system on a third, larger dataset, and they have not yet optimized the system's settings to close the gap in accuracy with older methods. They also note that their current evaluation of exactly where an anomaly happens in a video is an approximation, and a more precise test would require different tools. Nevertheless, the work provides a clear blueprint for how to build video understanding systems that are fast, efficient, and truly real-time, moving the field away from heavy, delayed processing toward a future where cameras can think and react the instant something unusual occurs.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →