Self-Attention Network for Skeleton-based Human Action Recognition

Sangwoo Cho, Muhammad Maqbool, Fei Liu, Hassan Foroosh

TL;DR

This paper introduces a novel Self-Attention Network (SAN) architecture for skeleton-based human action recognition, designed to better capture long-range temporal dependencies in human movement. By integrating SAN with the Temporal Segment Network (TSN), the authors achieve state-of-the-art performance on challenging datasets, demonstrating the power of attention mechanisms for understanding complex human actions.

What Problem Does This Paper Address?

Recognizing human actions from video is crucial for applications like surveillance and human-robot interaction. While RGB video analysis is common, it's computationally intensive. Skeleton-based action recognition offers a more efficient alternative by focusing on the spatial-temporal relationships of human body joints. Existing methods, often relying on Recurrent Neural Networks (RNNs) or Convolutional Neural Networks (CNNs), struggle to effectively capture long-term contextual information within action sequences. This limitation hinders their ability to understand complex actions that unfold over extended periods or involve intricate dependencies between distant points in time.

Methods

The core contribution of this paper is the Self-Attention Network (SAN), a novel architecture designed to overcome the limitations of existing methods in capturing long-range temporal dependencies. SAN operates by computing pairwise attention probabilities between different frames in a sequence, allowing it to weigh the importance of various temporal locations. The authors propose three variants: SAN-V1 (baseline), SAN-V2 (focusing on individual skeletons), and SAN-V3 (handling different data modalities like position and velocity).

To further enhance performance, the authors integrate their SAN variants with the Temporal Segment Network (TSN). TSN divides a video into multiple clips, processes each clip independently with a SAN variant, and then fuses the results. This Temporal Segment Self-Attention Network (TS-SAN) approach leverages the strengths of both methods.

The paper also details two types of encoders used to process raw skeleton data:

  • Non-Linear Encoder: A simple feed-forward neural network.
  • CNN Based Encoder: A multi-layered CNN designed to extract richer features from the skeleton sequences.

Datasets

The proposed methods are evaluated on two large-scale benchmark datasets:

  • NTU RGB+D [23]: This dataset contains 56,880 video samples with 60 action classes, annotated with 3D locations of 25 major body joints. The authors use both the Cross-Subject (CS) and Cross-View (CV) evaluation protocols.
  • Kinetics [12]: This dataset comprises approximately 266,000 video clips with 400 action classes. Since it lacks direct skeleton annotations, the authors use an OpenPose toolbox to estimate 2D joint coordinates from the videos.

Key Insights and Ideas

  • Self-Attention for Temporal Context: The paper convincingly demonstrates that self-attention mechanisms are highly effective at capturing long-range temporal dependencies in human actions, a critical aspect often missed by traditional RNN/CNN approaches.
  • TSN + SAN Synergy: Integrating the Temporal Segment Network (TSN) with SAN variants significantly boosts performance. This suggests that processing video in segments and then aggregating information is a powerful strategy when combined with sophisticated attention mechanisms.
  • CNN Encoder's Importance: The CNN-based encoder plays a crucial role in generating rich feature representations that are vital for the SAN models to perform effectively.
  • Late Fusion Advantage: SAN-V2, which implicitly uses a late fusion strategy by processing individual skeletons and then combining their results, slightly outperforms SAN-V3, suggesting that late fusion can be more effective.
  • Robustness to Variations: Visualizations show that the self-attention patterns for the same action class are consistent across different subjects and even views, indicating the model's robustness to variations in execution.

Key Results

The proposed TS-SAN model achieves state-of-the-art results on both datasets:

  • NTU RGB+D: The best performing model (TS-SAN-V2 with CNN encoder) achieves 87.2% accuracy on the Cross-Subject (CS) benchmark and 92.7% on the Cross-View (CV) benchmark. This significantly outperforms previous methods like STA-LSTM [26] and HCN [17].
  • Kinetics: The model achieves top-1 accuracy of 35.1% and top-5 accuracy of 55.7%, outperforming existing methods by a considerable margin (e.g., 4.4% on top-1 accuracy compared to ST-GCN [40]).

Limitations and Future Work

  • Parameter Sensitivity: The paper notes that the performance of the SAN block is sensitive to the number of layers and multi-heads, suggesting that an optimal configuration is dataset-dependent. Too many or too few parameters can lead to underperformance.
  • Temporal Segment Network Advantage: While TS-SAN generally outperforms SAN variants alone, the authors acknowledge that SAN variants without temporal segmentation have fewer parameters and can still perform well, especially for longer input sequences (F=96).
  • Future Directions: The authors plan to extend their model to video-based recognition tasks that include keypoint annotations, such as facial expression recognition. They also aim to explore different methods for extracting effective feature representations for the input sequence of SAN.

Summary updated

BibTeX
@inproceedings{cho2020self,
  author = {Sangwoo Cho and Muhammad Maqbool and Fei Liu and Hassan Foroosh},
  title = {{Self-Attention Network for Skeleton-based Human Action Recognition}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
}
Figure