Gabriella: An Online System for Real-Time Activity Detection in Untrimmed Surveillance Videos

Mamshad Nayeem Rizve, Ugur Demir, Praveen Tirupattur, Aayush Jung Rana, Kevin Duarte, Ishan R. Dave, Yogesh S. Rawat, Mubarak Shah

Abstract

Activity detection in security videos is a difficult problem due to multiple factors such as large field of view, presence of multiple activities, varying scales and viewpoints, and its untrimmed nature. The requirement of processing security videos in real-time makes this even more challenging. In this work, we propose Gabriella, a real-time online system to perform activity detection on untrimmed security videos. The proposed method consists of three stages: tubelet extraction, activity classification, and online tubelet merging. For tubelet extraction, we propose a localization network which takes a video clip as input and spatio-temporally detects potential foreground regions at multiple scales to generate action tubelets. We propose a novel Patch-Dice loss to handle large variations in actor size. Our online processing of videos at a clip level drastically reduces the computation time in detecting activities. The detected tubelets are assigned activity class scores by the classification network and merged together using our proposed Tubelet-Merge Action-Split (TMAS) algorithm to form the final action detections. The TMAS algorithm efficiently connects the tubelets in an online fashion to generate action detections which are robust against varying length activities. We perform our experiments on the VIRAT and MEVA (Multiview Extended Video with Activities) datasets and demonstrate the effectiveness of the proposed approach in terms of speed (~100 fps) and performance with state-of-the-art results.

The Challenge of Real-World Surveillance

Detecting activities in real-world surveillance footage is significantly more complex than standard action recognition in trimmed datasets like UCF-101 or HMDB. Security videos are continuous (untrimmed), feature massive fields of view, and often contain multiple actors performing different tasks simultaneously.

Examples of activity detection across various scales and scenes in surveillance footage.

Two major hurdles stand in the way of effective deployment:

  1. Scale Variation: Actors can be extremely small relative to the frame, causing standard loss functions to ignore them in favor of larger objects.
  2. Real-Time Constraints: Processing every frame with heavy object detectors is computationally expensive, making it nearly impossible to run systems in real-time on live feeds.

The Gabriella Pipeline

Gabriella addresses these challenges through a high-speed, three-stage online pipeline designed for both efficiency and accuracy.

The Gabriella system pipeline, featuring the Localization Network with Patch-Dice loss and the TMAS algorithm.

1. Tubelet Extraction (Localization)

Instead of detecting objects frame-by-frame, the system uses a 3D convolutional encoder-decoder (based on I3D) to generate pixel-level foreground masks for short video clips. To ensure the model doesn't ignore small actors, the authors introduced Patch-Dice Loss. This loss function divides the frame into local patches and calculates the Dice loss for each, forcing the network to attend to actions regardless of their size. This local supervision improved the Intersection over Union (IoU) for localization from 62.27% to 63.43% in ablation studies.

2. Activity Classification

Once "tubelets" (spatio-temporal regions of interest) are extracted, an R(2+1)D network performs multi-label classification. This allows the system to recognize if a single actor is performing multiple actions simultaneously, such as "walking" while "talking on a phone."

3. TMAS Algorithm

The Tubelet-Merge Action-Split (TMAS) algorithm serves as the system's temporal logic. It processes clips as they arrive, merging short tubelets into longer "action-agnostic" tubes and then splitting them into specific action instances based on classification scores. This approach is robust against activities of varying lengths and allows for true online processing.

Key Results and Performance

Gabriella was evaluated on the VIRAT and MEVA datasets, both known for their wide variety of activities and challenging "long-tail" distributions.

  • Speed: The system achieves approximately 100 fps on a standard setup, which is 3-4x faster than the standard real-time requirement of 30 fps. Even on a single GPU, it maintains a solid 45 fps.
  • Accuracy: Gabriella achieved state-of-the-art results on the TRECVID-2019 leaderboard for the VIRAT dataset, outperforming other teams in terms of Probability of Missed Detection ($P_{miss}$) and Partial Area Under the DET Curve (AUDC).
  • Efficiency: By utilizing action-agnostic localization first, the system avoids redundant computation, focusing classification efforts only on regions where activity is actually occurring.

Conclusion and Future Work

While Gabriella handles scale and speed exceptionally well, data imbalance remains a significant challenge in real-world surveillance. Rare activities in datasets like MEVA are harder to detect than common ones. Future work will focus on more sophisticated ways to handle the "long-tail" nature of real-world data and further reducing latency to minimize the delay between an action occurring and the system flagging it in high-stakes environments.

Summary updated

BibTeX
@inproceedings{rizve2020gabriella,
  author = {Mamshad Nayeem Rizve and Ugur Demir and Praveen Tirupattur and Aayush Jung Rana and Kevin Duarte and Ishan R. Dave and Yogesh S. Rawat and Mubarak Shah},
  title = {{Gabriella: An Online System for Real-Time Activity Detection in Untrimmed Surveillance Videos}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412791},
}
Figure