UntrimmedNets for Weakly Supervised Action Recognition and Detection

Limin Wang, Yuanjun Xiong, Dahua Lin, Luc Van Gool

Abstract

Current action recognition methods heavily rely on trimmed videos for model training. However, it is expensive and time-consuming to acquire a large-scale trimmed video dataset. This paper presents a new weakly supervised architecture, called UntrimmedNet, which is able to directly learn action recognition models from untrimmed videos without the requirement of temporal annotations of action instances. Our UntrimmedNet couples two important components, the classification module and the selection module, to learn the action models and reason about the temporal duration of action instances, respectively. These two components are implemented with feed-forward networks, and UntrimmedNet is therefore an end-to-end trainable architecture. We exploit the learned models for action recognition (WSR) and detection (WSD) on the untrimmed video datasets of THUMOS14 and ActivityNet. Although our UntrimmedNet only employs weak supervision, our method achieves performance superior or comparable to that of those strongly supervised approaches on these two datasets.

Introduction

State-of-the-art action recognition models typically require "trimmed" video clips—short segments manually curated to contain a single, specific action. However, the manual effort required to create such datasets is immense, involving subjective decisions about the precise start and end points of actions. In contrast, real-world video data is "untrimmed," where relevant actions may occupy only a small fraction of the total duration.

UntrimmedNet addresses this challenge by learning to recognize and detect actions directly from untrimmed videos using only video-level labels (e.g., "this video contains basketball"). This approach, known as Weakly Supervised Action Recognition (WSR) and Detection (WSD), significantly reduces the annotation burden while maintaining high performance.

Overview of the UntrimmedNet framework for training and testing on untrimmed videos.

Methodology

The UntrimmedNet architecture is an end-to-end trainable framework consisting of three primary stages: clip sampling, classification, and selection.

Clip Sampling

The input untrimmed video is first decomposed into a sequence of short clips. The authors explored two sampling strategies:

  1. Uniform Sampling: Clips are extracted at fixed temporal intervals.
  2. Shot-based Sampling: Clips are defined by visual scene changes (shot boundaries). Shot-based sampling proved superior as it better aligns with the natural structure of the video.

Classification and Selection Modules

The core of UntrimmedNet lies in the interaction between the classification and selection modules. The classification module processes each clip through a deep network (such as a Two-Stream CNN) to generate class-specific scores.

The selection module acts as a filter to identify which clips are most relevant to the video-level label, effectively ignoring background noise. Two selection strategies were proposed:

  • Hard Selection: Based on Multiple Instance Learning (MIL), this method selects the top-$k$ clips with the highest classification scores.
  • Soft Selection: This mechanism learns an attention weight for each clip, allowing the model to highlight informative segments and suppress irrelevant ones.
Detailed architecture of the classification and selection modules, showing hard (H) and soft (S) selection paths.

The entire architecture is differentiable, allowing for joint optimization of both modules using standard backpropagation based on video-level cross-entropy loss.

Experimental Results

The model was evaluated on the THUMOS14 and ActivityNet (v1.2) benchmarks. During training, the temporal annotations (start/end times) provided by these datasets were ignored to maintain the weakly supervised setting.

Action Recognition (WSR)

On THUMOS14, UntrimmedNet achieved a mean Average Precision (mAP) of 82.2%, outperforming traditional methods like Improved Trajectories (63.1%) and even standard Temporal Segment Networks (78.5%). On ActivityNet, it reached 91.3% accuracy, demonstrating its scalability to large datasets.

Action Detection (WSD)

A key advantage of the soft selection module is that its learned attention weights can be directly used for temporal action detection. Despite the lack of frame-level supervision, UntrimmedNet achieved a 13.7% mAP at an Intersection over Union (IoU) of 0.5 on THUMOS14. While this trails the best strongly supervised models, it represents a significant step forward for weakly supervised detection.

Discussion and Conclusion

UntrimmedNets demonstrate that selection mechanisms not only facilitate localization but also improve recognition by filtering out noise. Interestingly, the model occasionally outperforms strongly supervised counterparts, likely because it learns to leverage the broader temporal context of the entire video.

While highly effective, limitations remain in localization precision, particularly in defining exact action boundaries. Future work may involve more sophisticated proposal methods and post-processing to further bridge the gap between weak and strong supervision.

Summary updated

BibTeX
@inproceedings{wang2017untrimmednets,
  author = {Limin Wang and Yuanjun Xiong and Dahua Lin and Luc Van Gool},
  title = {{UntrimmedNets for Weakly Supervised Action Recognition and Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=B1ZkpA-_bB},
}
Figure