Temporal Action Localization by Structured Maximal Sums

Ze-Huan Yuan, Jonathan C. Stroud, Tong Lu, Jia Deng

Abstract

We address the problem of temporal action localization in videos. We pose action localization as a structured prediction over arbitrary-length temporal windows, where each window is scored as the sum of frame-wise classification scores. Additionally, our model classifies the start, middle, and end of each action as separate components, allowing our system to explicitly model each actions temporal evolution and take advantage of informative temporal dependencies present in that structure. In this framework, we localize actions by searching for the structured maximal sum, a problem for which we develop a novel, provably-efficient algorithmic solution. The frame-wise classification scores are computed using features from a deep Convolutional Neural Network (CNN), which are trained end-to-end to directly optimize for a novel structured objective. We evaluate our system on the THUMOS 14 action detection benchmark and achieve competitive performance.

Introduction

Temporal Action Localization (TAL) involves identifying the precise start and end times of specific actions within untrimmed video streams. Unlike standard video classification, TAL is challenging because relevant activities are often sparse, embedded within long sequences of "background" footage. Existing approaches typically rely on sliding windows, which are computationally expensive, or frame-wise classification, which often lacks the temporal context needed to define sharp boundaries. This paper introduces a framework that models the internal structure of actions to improve both localization accuracy and computational efficiency.

Methods: Modeling Action Anatomy

The core innovation of this work is the Temporal Evolution Model. Rather than assigning a single label to an action, the system decomposes an action into three distinct phases: a start, a middle, and an end. A two-stream Convolutional Neural Network (CNN) processes both RGB frames and optical flow to produce scores for each phase at every frame.

Temporal Evolution Model: An action is decomposed into start, middle, and end components to capture its temporal progression.

The Structured Maximal Sum (SMS) Algorithm

To identify the optimal action window, the model searches for a sequence that maximizes a structured sum:

$$Score = \text{Start Score} + \sum(\text{Middle Scores}) + \text{End Score}$$

While a naive search for the best start and end points in a video of $n$ frames would require $O(n^2)$ time, the authors propose the Structured Maximal Sum (SMS) algorithm. This dynamic programming solution finds the top-$K$ highest-scoring windows in $O(nK)$ time, enabling efficient processing of long, untrimmed videos.

End-to-End Structured Training

The model is trained using a Structured Loss function. Unlike traditional frame-level training, this loss directly optimizes the network to maximize the score of the ground-truth window while penalizing overlapping or incorrect detections. This ensures the CNN learns features specifically tuned for boundary detection.

Results and Discussion

The model was evaluated on the THUMOS ’14 benchmark, which includes 20 sports action classes. The system achieved state-of-the-art performance at the time, particularly at lower overlap thresholds ($\sigma$). For instance, it reached an mAP of 51.0% at $\sigma=0.1$ and 36.5% at $\sigma=0.3$.

Qualitative results on THUMOS '14: The model (red) closely matches ground truth (blue) for complex actions like Basketball Dunk and Pole Vault.

Key Insights

  • Temporal Structure Matters: Explicitly modeling the "anatomy" of an action prevents the fragmentation common in frame-wise methods and enforces logical temporal ordering.
  • Efficiency: Mapping localization to a variation of the "maximum subarray sum" problem transforms a heavy search task into a lightweight linear pass.
  • Middle Frame Contribution: Ablation studies highlighted that accumulating evidence over the "middle" frames is crucial for robust localization.

Conclusion

By framing temporal action localization as a structured prediction problem, this work provides a scalable and accurate solution for untrimmed video analysis. While the system excels at modeling the evolution of long actions, future work may address challenges with very brief actions or rapid successions of the same activity, where frame-wise noise can impact the structural scores.

Summary updated

BibTeX
@inproceedings{yuan2017temporal,
  author = {Ze-Huan Yuan and Jonathan C. Stroud and Tong Lu and Jia Deng},
  title = {{Temporal Action Localization by Structured Maximal Sums}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=BkWHGpZdZB},
}
Figure