Mamba-OTR: A Mamba-Based Solution for Online Take and Release Detection from Untrimmed Egocentric Video

Alessandro Sebastiano Catinello, Giovanni Maria Farinella, Antonino Furnari

Abstract

Online Take and Release (OTR) detection is a critical task for wearable AI, requiring precise temporal localization of object interactions in streaming egocentric video. While Transformers have dominated video understanding, they struggle with the computational demands and sequence-length constraints of real-time, online processing. We present Mamba-OTR, a specialized architecture leveraging the Mamba state-space model. By combining linear scaling with a novel temporal regularization strategy, Mamba-OTR achieves a significant performance leap, improving mean point-level Average Precision (mp-mAP) from 20.32 to 45.48 on the EPIC-KITCHENS-100 dataset while maintaining the efficiency required for real-time edge deployment.

Introduction

In the context of wearable AI, such as smart glasses, understanding user-object interaction is paramount. A core requirement is the detection of "take" and "release" actions as they occur in real-time. This task, known as Online Take and Release (OTR) detection, is vital for tracking user activities, predicting intentions, and providing assistive feedback. However, OTR detection is notoriously difficult due to extreme class imbalance—where action frames are rare compared to background—and the need for high temporal precision in a streaming environment.

Illustration of the Online Take and Release (OTR) detection task in an untrimmed egocentric video sequence.

Methodology

Mamba-OTR addresses these challenges by utilizing the Mamba architecture, a Selective State Space Model. Unlike the $O(n^2)$ complexity of Transformers, Mamba scales linearly and operates recurrently during inference. This allows the model to maintain a persistent "memory" or hidden state of the video indefinitely, processing frames one-by-one without the need to re-process the entire history.

Beyond the backbone, the authors introduce several key training and design innovations:

  • Focal Loss: This loss function forces the model to prioritize "hard" examples—the rare take/release frames—over the ubiquitous background frames.
  • Fixed Window Regularization ($R_{FW}$): To prevent the model from outputting clusters of high-probability predictions around a single event, this regularization term penalizes multiple detections within a small temporal window, encouraging a single, sharp prediction peak.
  • Action End Prediction: The model is trained to predict the ending frame of an action rather than the start. This reduces ambiguity, as the model has observed the full motion by the time the action concludes.
  • Training-Inference Decoupling: Leveraging Mamba's recurrent nature, the model can be trained on short clips but deployed on full-length, streaming videos without loss of accuracy.

Results and Discussion

The researchers evaluated Mamba-OTR on a subset of the EPIC-KITCHENS-100 dataset. The model achieved a state-of-the-art 45.48 mp-mAP, a substantial improvement over the 20.32 mp-mAP achieved by a vanilla Transformer.

One of the most striking findings was the "Transformer Wall": in a true streaming setup, Transformer performance collapsed to 0.04 mp-mAP because their positional embeddings are tied to specific sequence lengths. In contrast, Mamba-OTR remained robust, maintaining a score of 43.35 mp-mAP. Furthermore, the model is highly efficient, with an inference time of approximately 0.14s per video, or roughly 8 nanoseconds per frame, making it ideal for real-time deployment on edge devices.

Conclusion

Mamba-OTR represents a significant advancement in online action detection for egocentric video. By leveraging the recurrent strengths of state-space models and specialized regularization, it overcomes the limitations of Transformers in streaming contexts. Future research will focus on expanding the vocabulary of detectable actions and developing end-to-end systems that operate directly on raw pixels.

Summary updated

BibTeX
@inproceedings{catinello2025mamba,
  author = {Alessandro Sebastiano Catinello and Giovanni Maria Farinella and Antonino Furnari},
  title = {{Mamba-OTR: A Mamba-Based Solution for Online Take and Release Detection from Untrimmed Egocentric Video}},
  booktitle = {ICIAP},
  year = {2025},
  doi = {10.1007/978-3-032-10185-3\_36},
}
Figure