Source-linked AI summary

Temporal Segment Networks for Action Recognition in Videos

Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaoou Tang, Luc Van Gool

arXiv:1705.02953v1cs.CV

TL;DR

Deep ConvNets have been highly successful for images, but their advantage is less evident for video action recognition, especially when long-range structure and limited training data matter. The paper introduces Temporal Segment Networks, which sparsely sample and aggregate snippets across whole videos, and extends them to trimmed and untrimmed recognition with practical training strategies. TSN achieves state-of-the-art results on four benchmarks and wins the ActivityNet 2016 video-classification track among 24 teams.

  • Problem

    Deep ConvNets have been highly successful for images, but their advantage is less evident for video action recognition, where long-range structure and limited training data remain important challenges.

  • Method

    Temporal Segment Networks sparsely sample and aggregate short snippets across whole videos, with hierarchical aggregation for untrimmed videos and practical training strategies.

  • Results

    TSN achieves state-of-the-art performance on four action-recognition benchmarks and wins the ActivityNet 2016 video-classification track among 24 teams.

  • Takeaways & Limitations

    The segmental architecture and good practices provide an effective and efficient way to capture long-range temporal structure and train deep networks on limited data.

  • Takeaways & Limitations

    The aggregation function assumes that actions can be decomposed into phases whose importance can be learned separately.

Abstract

from arXiv · show

Deep convolutional networks have achieved great success for image recognition. However, for action recognition in videos, their advantage over traditional methods is not so evident. We present a general and flexible video-level framework for learning action models in videos. This method, called temporal segment network (TSN), aims to model long-range temporal structures with a new segment-based sampling and aggregation module. This unique design enables our TSN to efficiently learn action models by using the whole action videos. The learned models could be easily adapted for action recognition in both trimmed and untrimmed videos with simple average pooling and multi-scale temporal window integration, respectively. We also study a series of good practices for the instantiation of TSN framework given limited training samples. Our approach obtains the state-the-of-art performance on four challenging action recognition benchmarks: HMDB51 (71.0%), UCF101 (94.9%), THUMOS14 (80.1%), and ActivityNet v1.2 (89.6%). Using the proposed RGB difference for motion models, our method can still achieve competitive accuracy on UCF101 (91.0%) while running at 340 FPS. Furthermore, based on the temporal segment networks, we won the video classification track at the ActivityNet challenge 2016 among 24 teams, which demonstrates the effectiveness of TSN and the proposed good practices.

1 INTRODUCTION

The paper introduces TSN to capture long-range temporal structure while addressing untrimmed-video deployment and limited-data training challenges. It combines segment-based video modeling, hierarchical aggregation, and practical training strategies, achieving strong benchmark performance and first place in ActivityNet 2016.

  • Motivation: Video action recognition must combine appearance and temporal dynamics despite scale variation, viewpoint changes, and camera motion.These difficulties make effective video representations important for learning action categories.
  • Challenges: Long-range temporal structure, untrimmed-video background, limited training data, and optical-flow cost create major obstacles for ConvNet-based action recognition.Existing methods often emphasize appearances and short-term motion, while realistic videos contain irrelevant content and available datasets remain limited.
  • Method: TSN is an end-to-end video-level framework that uses sparse global sampling of short snippets to capture long-term temporal information efficiently.Its design exploits redundancy among consecutive frames and aggregates snippet predictions into video-level hypotheses.
  • Method: Hierarchical aggregation extends TSN to untrimmed videos, while simple average pooling supports action recognition in trimmed videos.The untrimmed-video strategy is called Multi-scale Temporal Window Integration (M-TWI).
  • Method: The paper studies good practices for limited-sample training, including cross-modality initialization and systematic input-modality analysis.These practices target efficient learning and application of deep action-recognition models.
  • Results: The method significantly outperforms the state of the art on HMDB51, UCF101, THUMOS, and ActivityNet, and places first in ActivityNet untrimmed-video classification.The final system also incorporates newer architectures and audio as a complementary channel.

2 RELATED WORK

Prior work spans hand-crafted, mid-level, and deeply learned video representations, alongside methods for temporal-structure modeling. TSN differs by using sparse sampling to learn from entire videos without fixed sequence-length constraints while remaining compatible with existing ConvNet architectures.

  • 2.1 Video Representation: Hand-crafted action-recognition methods use spatio-temporal detectors and descriptors to represent appearance and motion around local interest regions or trajectories.Examples include 3D-Harris, 3D-Hessian, Cuboids, Dense Trajectories, and Improved Trajectories.
  • 2.1 Video Representation: Mid-level representations group trajectories, patches, action parts, or motion features to overcome limitations of local descriptors, but some still depend on hand-crafted low-level features.The literature includes actemes, motionlets, actons, MoFAP, and Action Bank.
  • 2.1 Video Representation: Deep ConvNet approaches learn video features using architectures such as two-stream networks, often combining spatial appearance with optical-flow motion information.These methods build on deep feature learning and image-domain pretraining.
  • 2.2 Temporal Structure Modeling: Temporal-structure methods use latent decompositions, recurrent networks, or 3D ConvNets, but commonly process fixed sequences of only 64 to 120 frames.Their limited temporal coverage makes learning from entire videos non-trivial.
  • 2.2 Temporal Structure Modeling: TSN is an end-to-end framework compatible with existing ConvNet architectures that adds sparse temporal sampling and aggregation to model entire videos.Its sparse strategy avoids the sequence-length limitation described for prior recurrent and 3D ConvNet approaches.

3 TEMPORAL SEGMENT NETWORKS

TSN models long-range video structure by sparsely sampling snippets across uniformly divided temporal segments and aggregating their shared-ConvNet predictions. The framework supports multiple consensus functions, modalities, and training practices designed for limited data and efficient motion modeling.

  • Framework: TSN divides each video into K equal-duration segments and randomly samples one short snippet from each segment.This sparse, global sampling distributes snippets across the entire video while avoiding dense processing of redundant frames.
  • Framework: TSN(T1, T2, · · · , TK) applies a shared-parameter ConvNet F to snippets, combines scores with consensus G, and predicts video-level class probabilities through H.The prediction function H is implemented with Softmax.
  • Aggregation functions: The framework evaluates five aggregation functions: max pooling, average pooling, top-K pooling, weighted average, and attention weighting.Top-K pooling averages the most discriminative snippets, while attention weighting assigns snippet importance from video content.
  • Aggregation functions: Attention weighting estimates snippet importance from video content and supplies additional backpropagation information to guide ConvNet learning.The paper states that this may accelerate training convergence.
  • TSN in practice: RGB differences provide a motion representation without optical-flow extraction, while partial BN freezes most normalization statistics to reduce over-fitting with limited training samples.Partial BN re-estimates statistics only in the first convolutional layer and freezes the remaining Batch Normalization statistics.

4 ACTION RECOGNITION WITH TSN MODELS

TSN models can be used for trimmed-video classification and adapted to untrimmed videos through multi-scale temporal aggregation. M-TWI addresses varying action locations, durations, and background content by combining scores from sliding windows at multiple scales.

  • Trimmed videos: Trimmed videos can be treated as classification problems, with shared snippet-level ConvNets enabling frame-wise evaluation and prediction fusion across modalities.Prediction scores are fused using an empirically determined weighted average before Softmax normalization.
  • Untrimmed videos: Untrimmed-video recognition must handle action location, duration, and highly variable irrelevant background content.Simply averaging scores across all video locations risks incorporating unpredictable responses to background content.
  • Untrimmed videos: M-TWI samples snippets at a fixed rate, evaluates them with TSN, and applies temporal sliding windows of multiple sizes to cover varying action durations.The described window sizes are l ∈ {1, 2, 4, 8, 16}, with stride 0.8 × l.
  • Untrimmed videos: M-TWI averages the class scores from five window sizes, l ∈ {1,2,4,8,16}, to produce the final video score.For each window size, top-K pooling first produces a consensus over the sliding windows.

5 EXPERIMENTS

The experiments evaluate TSN across trimmed and untrimmed action-recognition datasets, while testing training practices, input modalities, temporal sampling, aggregation, and network architectures. TSN outperforms prior methods across both video settings, with additional evidence for efficient real-time recognition and improved visual focus on the actor.

  • Evaluation Setup: Experiments cover trimmed datasets HMDB51 and UCF101 alongside untrimmed datasets THUMOS14 and ActivityNet.The study uses these datasets to evaluate TSN in both trimmed and untrimmed action recognition settings.
  • Input Modalities: 94.9% accuracy is achieved by RGB plus optical flow with TSN, while RGB plus RGB Difference reaches 91.0% at 340 FPS.Warped optical flow increases accuracy from 94.9% to 95.0% but reduces testing speed to 5 FPS.
  • Temporal Sampling: 94.9% with seven segments exceeds 94.2% with three segments, while performance saturates when the segment number increases from seven to nine.The authors select K = 7 as a balance between recognition performance and computational burden.
  • Consensus Aggregation: Average pooling performs best on UCF101, whereas top-K pooling is used for complex ActivityNet videos.The paper therefore defaults to average pooling for short videos and top-K pooling for complex videos in later experiments.
  • Comparison with Prior Methods: TSN outperforms prior methods by 5.5% on HMDB51, 1.8% on UCF101, 8.5% on THUMOS14, and 11.5% on ActivityNet.The trimmed-video comparison uses average aggregation, while the untrimmed-video comparison uses top-K pooling.
  • Model Visualization: TSN models attend more to the person and action poses than single-frame models that may rely on scenery and objects.The visualization examples include Diving, Long Jump, and Skate Board, and the authors connect these observations to their quantitative results.

6 CONCLUSIONS

The paper presents TSN as a video-level framework for modeling long-range temporal structure and reports strong performance across benchmarks while maintaining reasonable computational cost.

  • TSN models long-range temporal structure through a video-level framework with segmental architecture and sparse sampling.The framework is designed to capture long-range structure efficiently.
  • TSN and the explored good practices raise action-recognition performance while maintaining a reasonable computational cost.The conclusion attributes this to sparse sampling and the proposed training practices.
  • The proposed good practices support training very deep networks on limited training sets without severe overfitting.
Loading 1705.02953v1…