W-TALC: Weakly-Supervised Temporal Activity Localization and Classification

Sujoy Paul, Sourya Roy, Amit K. Roy-Chowdhury

Abstract

Most activity localization methods in the literature suffer from the burden of frame-wise annotation requirement. Learning from weak labels may be a potential solution towards reducing such manual labeling effort. Recent years have witnessed a substantial influx of tagged videos on the Internet, which can serve as a rich source of weakly-supervised training data. Specifically, the correlations between videos with similar tags can be utilized to temporally localize the activities. Towards this goal, we present W-TALC, a Weakly-supervised Temporal Activity Localization and Classification framework using only video-level labels. The proposed network can be divided into two sub-networks, namely the Two-Stream based feature extractor network and a weakly-supervised module, which we learn by optimizing two complimentary loss functions. Qualitative and quantitative results on two challenging datasets - Thumos14 and ActivityNet1.2, demonstrate that the proposed method is able to detect activities at a fine granularity and achieve better performance than current state-of-the-art methods.

Introduction

Temporal Activity Localization is the task of identifying the start and end times of specific actions within long, untrimmed videos. Traditionally, training these models requires "strong supervision," where human annotators must mark exact sub-second timestamps for every action. This process is incredibly labor-intensive and does not scale to the massive amounts of video data available today.

In contrast, the internet is full of "weakly labeled" videos—content tagged with a category (e.g., "Cricket Bowling") but lacking temporal boundaries. W-TALC addresses this by learning to find the exact boundaries of an action using only these vague, video-level tags. By leveraging correlations between different videos sharing the same tags, the framework can pinpoint activities without frame-by-frame manual work.

Overview of the W-TALC training and testing pipeline.

Methodology

The W-TALC framework consists of two main components: a feature extractor and a weakly-supervised module.

Feature Extraction

The system uses pre-trained networks (such as I3D or UntrimmedNets) to extract visual features from both raw RGB frames and Optical Flow (which captures motion). To maintain efficiency, these massive backbone networks are not fine-tuned, saving significant computational resources.

The Weakly-Supervised Module

This core component processes features through a fully connected layer and a "Label Projection" layer to generate class-wise activations over time. To train this module without frame-level labels, the authors introduce two complementary loss functions:

  1. Multiple Instance Learning (MIL) Loss: This ensures the model correctly identifies the overall presence of an activity. It uses a "k-max-mean" strategy to select the most likely temporal segments and verify if they match the video-level tag.
  2. Co-Activity Similarity Loss (CASL): This is the framework's primary innovation. It operates on the principle that if two different videos share the same tag, the regions identified as that activity should look similar to each other and different from background (non-activity) regions. This similarity acts as a proxy for ground-truth timestamps.
Detailed architecture of the W-TALC framework, highlighting the dual-stream feature extraction and the two loss functions.

Experimental Results

The researchers evaluated W-TALC on two primary benchmarks: Thumos14 (known for many action instances per video) and ActivityNet 1.2 (a larger dataset with 100 categories).

  • Thumos14: At an Intersection over Union (IoU) threshold of 0.5, W-TALC achieved a mean Average Precision (mAP) of 40.1% using I3D features, significantly outperforming previous weakly-supervised methods like UntrimmedNets (28.2%) and STPN (35.5%).
  • ActivityNet 1.2: The model achieved an average mAP of 18.0%, establishing a strong baseline for the dataset.
  • Classification: Even without frame-level training, the model's ability to classify overall video content reached 85.6% mAP on Thumos14.

Conclusion

W-TALC demonstrates that similarity between videos can serve as a powerful supervisor for temporal localization. By forcing the model to find commonalities between different videos of the same class, it naturally learns to ignore background noise and zero in on the actual activity. Future work may involve applying the Co-Activity Similarity Loss to other weakly-supervised tasks such as semantic segmentation or object detection.

Summary updated

BibTeX
@inproceedings{paul2018w,
  author = {Sujoy Paul and Sourya Roy and Amit K. Roy-Chowdhury},
  title = {{W-TALC: Weakly-Supervised Temporal Activity Localization and Classification}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=BkZWZ5WObS},
}
Figure