STM: SpatioTemporal and Motion Encoding for Action Recognition

Boyuan Jiang, Mengmeng Wang, Weihao Gan, Wei Wu, Junjie Yan

Abstract

Video action recognition traditionally relies on computationally expensive 3D convolutions or the pre-computation of optical flow to capture temporal dynamics. This paper introduces the SpatioTemporal and Motion (STM) network, a highly efficient 2D CNN architecture. By integrating novel STM blocks that independently encode spatiotemporal and motion features, the model achieves state-of-the-art performance on major benchmarks while maintaining the efficiency of 2D frameworks.

Introduction: The Challenge of Video Understanding

Action recognition in video requires capturing two distinct types of information: spatiotemporal features (the evolution of scenes over time) and motion features (the displacement between frames). Existing solutions often fall into two categories: 3D CNNs, which are computationally heavy due to volumetric convolutions, and two-stream networks, which require the expensive pre-calculation of optical flow. The STM network aims to bridge this gap by efficiently extracting both feature types within a unified 2D CNN framework, facilitating real-time industrial applications.

Methods: The STM Block

The core innovation is the STM block, a drop-in replacement for standard residual blocks in ResNet-like architectures. It decomposes the learning process into two parallel, lightweight modules:

  1. Channel-wise SpatioTemporal Module (CSTM): Instead of 3D convolutions, CSTM uses 1D channel-wise convolutions along the temporal dimension. This approach treats feature channels independently, allowing the network to learn unique temporal fusion patterns for different semantic objects (e.g., distinguishing a moving hand from a static background).
  2. Channel-wise Motion Module (CMM): This module approximates motion dynamics at the feature level. By applying a 2D channel-wise convolution to adjacent feature maps and calculating their difference ($F_{t+1} - F_t$), CMM captures motion boundaries without the need for explicit optical flow calculation.
Architecture of the CSTM and CMM modules within the STM block.

The outputs of these modules are summed and passed through a 1x1 convolution to restore channel dimensions, creating a powerful yet lightweight representation of video dynamics.

Key Insights: Motion Modeling Without Optical Flow

A significant finding of this work is that explicit optical flow is not strictly necessary for effective motion modeling. The CMM module demonstrates that simple feature-level subtraction between adjacent frames can capture distinct motion edges similar to optical flow, but at a fraction of the computational cost.

Visualization of feature maps from CSTM and CMM compared to RGB and Optical Flow.

Furthermore, the authors found that:

  • Channel-wise temporal fusion is highly efficient: Applying temporal convolutions per channel drastically reduces FLOPs while maintaining representational power.
  • Deep integration matters: STM blocks are most effective when placed in deeper layers of the network where receptive fields are larger and features represent more holistic concepts.

Experimental Results

The STM model was evaluated on both temporal-heavy datasets (Something-Something, Jester) and scene-heavy datasets (Kinetics-400, UCF-101).

  • Accuracy: On the highly temporal Something-Something v1 dataset, a 16-frame STM model achieved 49.8% top-1 accuracy, significantly outperforming heavy 3D models like I3D (41.6%) and ECO (41.4%).
  • Efficiency: The 8-frame variant processes 62.0 videos per second with only 33.3G FLOPs. Compared to the popular I3D model, STM is nearly 10x faster and uses ~10x fewer FLOPs while delivering higher accuracy.
  • Ablation Study: Combining CSTM and CMM leads to significant gains. On Something-Something v1, a baseline 2D network (19.7%) improved to 49.2% when both modules were integrated into an 8-frame setup.

Conclusion and Future Work

STM provides a compelling alternative to 3D CNNs by offering a lightweight, unified architecture for action recognition. While it excels at temporal-related tasks, the performance gap on scene-related datasets is narrower, suggesting that scene-based recognition relies less on fine-grained temporal modeling. Future research could extend these efficient blocks to tasks like action detection, tracking, or video segmentation.

Summary updated

BibTeX
@inproceedings{jiang2019stm,
  author = {Boyuan Jiang and Mengmeng Wang and Weihao Gan and Wei Wu and Junjie Yan},
  title = {{STM: SpatioTemporal and Motion Encoding for Action Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00209},
}
Figure