A Comprehensive Study on Temporal Modeling for Online Action Detection

Wen Wang, Xiaojiang Peng, Yu Qiao, Jian ChengarXiv 2020

Abstract

Online Action Detection (OAD) is the task of recognizing actions in real-time from streaming video without access to future frames. This paper provides a systematic evaluation of various temporal modeling techniques, including temporal pooling, convolutions, Recurrent Neural Networks (RNNs), and attention mechanisms. By identifying the unique strengths of each approach, the authors propose novel hybrid architectures. Their findings demonstrate that combining dilated causal convolutions with Transformers or LSTMs achieves state-of-the-art performance on the TVSeries and THUMOS-14 benchmarks.

The Challenge of Online Action Detection

Traditional action recognition often operates offline, where the model processes an entire video clip before making a prediction. In contrast, Online Action Detection (OAD) requires identifying an action as it occurs. This is significantly more difficult because the system must rely solely on historical and current frames, with zero knowledge of the future.

Overview of the Online Action Detection (OAD) pipeline, illustrating the transition from observed frames to real-time classification.

While Long Short-Term Memory (LSTM) networks have been the dominant choice for aggregating temporal context in OAD, there has been a lack of rigorous comparison against alternative sequence modeling techniques. This study fills that gap by evaluating four primary meta-types of temporal models and exploring how their fusion can improve detection accuracy.

Methods: Evaluating Temporal Modeling Meta-Types

The authors utilize a standard two-stream CNN (capturing appearance and optical flow) to extract frame-level features. The core of the research focuses on how these features are aggregated over time using four distinct strategies:

  1. Temporal Pooling: Simple average or max pooling over a sequence of frames.
  2. Temporal Convolution: 1D convolutions, including Pyramid Dilated Convolutions (PDC) and Dilated Causal Convolutions (DCC).
  3. Recurrent Neural Networks (RNNs): Comparing LSTMs and GRUs with different output strategies.
  4. Temporal Attention: Naive self-attention, non-local blocks, and a specialized Transformer that uses the current frame as a query to attend to the past.
The four meta-types of temporal modeling evaluated: (A) Temporal Pooling, (B) Temporal Convolution, (C) RNN, and (D) Temporal Attention.

Beyond individual models, the authors introduce Hybrid Models that chain these techniques. For instance, a DCC can capture local temporal dependencies, which are then passed to a Transformer to weigh the most relevant historical context globally.

Key Insights and Findings

  • Temporal Dependency is Crucial: Models that respect the chronological order of frames (RNNs and Convolutions) significantly outperform order-independent methods like simple pooling or standard self-attention.
  • Optimal Context Length: The study found that a sequence length of $L=4$ (approximately 1 second of context) is the "sweet spot." Providing too much history introduces noise, particularly in datasets like TVSeries where actions are brief.
  • LSTMs vs. GRUs: LSTMs consistently outperformed GRUs. The separate memory cell in LSTMs appears better at filtering out the heavy background noise typical of untrimmed video streams.
  • Querying the Past: For Transformers, using the current frame feature as the query against historical keys/values proved more effective than standard self-attention. This forces the model to prioritize past information that is relevant to the present moment.
  • Hybrid Synergy: The best results came from fusing a strong temporal-dependent model (DCC) with a smart aggregator (Transformer). The DCC handles sequence mechanics, while the Transformer acts as an intelligent pooling layer.

Results and Performance

The Dilated Causal Convolution (DCC) emerged as the strongest standalone model. However, the proposed hybrid architectures set new benchmarks:

  • Model M2 (DCC + Transformer): Achieved 84.3% cAP on the TVSeries dataset.
  • Model M4 (DCC + LSTM + Transformer): Achieved 48.6% mAP on the THUMOS-14 dataset.

These hybrids outperformed previous state-of-the-art methods, such as Temporal Recurrent Networks (TRN), by a notable margin. The results suggest that while deep RNNs often suffer from overfitting in OAD tasks, hybridizing them with convolutional and attention layers provides a more robust and accurate solution for real-time action recognition.

Summary updated

BibTeX
@misc{wang2020comprehensive,
  author = {Wen Wang and Xiaojiang Peng and Yu Qiao and Jian Cheng},
  title = {{A Comprehensive Study on Temporal Modeling for Online Action Detection}},
  year = {2020},
  eprint = {2001.07501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07501},
}
Figure