Construct Dynamic Graphs for Hand Gesture Recognition via Spatial-Temporal Attention

Yuxiao Chen, Long Zhao, Xi Peng, Jianbo Yuan, Dimitris N. Metaxas

Abstract

Hand gesture recognition is a cornerstone of human-computer interaction, yet effectively modeling the complex spatial-temporal relationships of hand joints remains a challenge. We propose Dynamic Graph-Based Spatial-Temporal Attention (DG-STA), a framework that treats hand skeletons as dynamic, fully-connected graphs. By applying decoupled self-attention mechanisms across spatial and temporal domains and utilizing a novel masking operation for efficiency, DG-STA achieves state-of-the-art performance on major benchmarks while significantly reducing computational overhead.

Introduction

Early hand gesture recognition methods relied on hand-crafted features that often failed to generalize. The advent of deep learning shifted the focus to skeleton-based recognition using 3D joint coordinates. However, traditional models often utilize fixed graphs based on physical anatomy, which limits their ability to capture non-anatomical joint relationships crucial for specific gestures. Furthermore, balancing spatial shape with temporal dynamics often leads to high computational costs. DG-STA addresses these issues by learning action-specific structures through a dynamic, fully-connected graph approach.

Methodology

The DG-STA framework introduces several key innovations to improve both accuracy and speed in gesture recognition.

1. Fully-Connected Dynamic Graphs

Unlike standard methods that use sparse, fixed skeleton graphs, DG-STA initializes with a fully-connected graph where every joint is linked to every other joint. This allows the model to learn which connections are most relevant for a given gesture, such as the proximity of the thumb and index finger during a pinching motion.

2. Dual-Domain Self-Attention

The model adapts the self-attention mechanism to operate independently across two domains:

  • Spatial Attention ($A_S$): Captures the relationships between different joints within a single frame.
  • Temporal Attention ($A_T$): Tracks the evolution of a specific joint's position across multiple time steps.
Overview of the DG-STA workflow: from skeleton graph construction to spatial and temporal attention modules.

3. Spatial-Temporal Position Embedding (STE)

To overcome the permutation invariance of self-attention, the authors integrate embeddings that encode both joint identity and temporal order. This ensures the model distinguishes between different joints and understands the sequence of movement.

4. Efficient Masking Operation

To maintain real-time performance, DG-STA employs a spatial-temporal masking trick. Instead of complex data restructuring, the model performs large-scale matrix multiplications and uses masks to isolate spatial or temporal connections. This approach reduces computational time by approximately 99% compared to naive implementations.

Key Results

The DG-STA model was evaluated on the DHG-14/28 and SHREC’17 Track datasets, both of which provide 3D coordinates for hand joints.

Performance comparison of DG-STA against baseline configurations on the DHG and SHREC datasets.

As shown in the results table, DG-STA consistently outperforms previous state-of-the-art methods like ST-GCN. On the DHG dataset, it achieved 91.9% accuracy for 14 gestures. Ablation studies further confirmed the importance of each component; for instance, removing the Position Embeddings (STE) or reverting to a fixed skeleton graph (SSG) resulted in significant performance degradation (typically 3-5%).

Conclusion

DG-STA demonstrates that dynamic, fully-connected graphs combined with decoupled spatial-temporal attention provide a powerful framework for hand gesture recognition. The method's ability to learn action-specific structures and its high computational efficiency via masking make it a viable candidate for real-time human-computer interaction. Future work may explore its application to broader human action recognition and its robustness against noisy joint data from standard 2D cameras.

Summary updated

BibTeX
@inproceedings{chen2019construct,
  author = {Yuxiao Chen and Long Zhao and Xi Peng and Jianbo Yuan and Dimitris N. Metaxas},
  title = {{Construct Dynamic Graphs for Hand Gesture Recognition via Spatial-Temporal Attention}},
  booktitle = {BMVC},
  year = {2019},
}
Figure