A Hybrid Attention Mechanism for Weakly-Supervised Temporal Action Localization

Ashraful Islam, Chengjiang Long, Richard Radke
1/3/2021
cs.CVcs.AI
transformer-attention

Official code: asrafulashiq/hamnet (42 stars, Python, last commit 2021-04-20).

Abstract

Weakly supervised temporal action localization is a challenging vision task due to the absence of ground-truth temporal locations of actions in the training videos. With only video-level supervision during training, most existing methods rely on a Multiple Instance Learning (MIL) framework to predict the start and end frame of each action category in a video.

Show full abstract

However, the existing MIL-based approach has a major limitation of only capturing the most discriminative frames of an action, ignoring the full extent of an activity. Moreover, these methods cannot model background activity effectively, which plays an important role in localizing foreground activities. In this paper, we present a novel framework named HAM-Net with a hybrid attention mechanism which includes temporal soft, semi-soft and hard attentions to address these issues. Our temporal soft attention module, guided by an auxiliary background class in the classification module, models the background activity by introducing an "action-ness" score for each video snippet. Moreover, our temporal semi-soft and hard attention modules, calculating two attention scores for each video snippet, help to focus on the less discriminative frames of an action to capture the full action boundary. Our proposed approach outperforms recent state-of-the-art methods by at least 2.2% mAP at IoU threshold 0.5 on the THUMOS14 dataset, and by at least 1.3% mAP at IoU threshold 0.75 on the ActivityNet1.2 dataset. Code can be found at: https://github.com/asrafulashiq/hamnet.

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of AAAI 2021 paper: A Hybrid Attention Mechanism for Weakly-Supervised Temporal Action Localization

4210PythonJan 3, 20215 years ago
activity-recognitionattention-mechanismweak-supervision

Similar Papers

Cite this paper

@article{islam2021hybrid,
  title  = {A Hybrid Attention Mechanism for Weakly-Supervised Temporal Action Localization},
  author = {Ashraful Islam and Chengjiang Long and Richard Radke},
  year   = {2021},
  eprint = {2101.00545},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.00545}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.00545.svg)](https://codeofpaper.com/paper/2101.00545)

Discussion