Egocentric Gesture Recognition Using Recurrent 3D Convolutional Neural Networks with Spatiotemporal Transformer Modules

Congqi Cao, Yifan Zhang, Hanqing Lu, Jian Cheng

Abstract

Recognizing gestures from a first-person perspective is challenging due to significant global motion caused by head movement and the proximity of hands to the camera. This paper introduces an end-to-end framework featuring a Recurrent Spatiotemporal Transformer Module (RSTTM) that automatically compensates for egocentric motion. By predicting 3D homography transformations to warp internal feature maps into a canonical view, the model learns to stabilize and recognize gestures simultaneously. The authors also introduce EgoGesture, a large-scale benchmark dataset. The proposed model achieves 92.2% accuracy on EgoGesture and demonstrates state-of-the-art performance on the GTEA dataset, maintaining real-time processing speeds.

Introduction

Egocentric (first-person) gesture recognition is a critical component for natural interaction in Augmented Reality (AR) and Virtual Reality (VR) systems. Unlike stationary third-person cameras, egocentric cameras are subject to constant motion from the wearer's head (egocentric motion). Additionally, hands often appear at close range, frequently moving partially out of the field of view.

Traditional multi-stage pipelines that rely on explicit hand detection or camera motion estimation are often brittle. To address these issues, this work proposes an end-to-end solution that integrates stabilization directly into the feature extraction process. To support the training of such deep models, the authors released EgoGesture, a massive dataset containing over 24,000 RGB-D samples across 83 gesture classes.

Methodology

The proposed architecture integrates three primary components: a 3D Convolutional Neural Network (3D CNN), a Recurrent Spatiotemporal Transformer Module (RSTTM), and a Long Short-Term Memory (LSTM) network.

Overall architecture of the proposed Recurrent Spatiotemporal Transformer framework.

Recurrent Spatiotemporal Transformer Module (RSTTM)

The RSTTM is the core innovation, extending the concept of Spatial Transformer Networks to the 3D spatiotemporal domain. It consists of a localization network that predicts parameters for a 3D homography transformation. This transformation rectifies the feature maps extracted by the 3D CNN, compensating for complex warping caused by head tilt and rotation.

Crucially, the localization network is recurrent. By maintaining a hidden state, the model utilizes temporal context from previous frames to ensure smooth, jitter-free transformations. This allows the network to learn an internal "attention" mechanism that centers and stabilizes the hand regions without requiring explicit bounding-box labels.

Experimental Results

The model was evaluated on the EgoGesture and GTEA datasets. On EgoGesture, the framework achieved a top-1 accuracy of 92.2%, outperforming standard C3D (89.7%) and VGG16+LSTM (81.4%) baselines.

Robustness and Visualization

The RSTTM proved particularly effective in high-motion scenarios, such as when the user is walking, where it provided a 4% accuracy boost over models without the transformer. Visualization of the feature maps confirms that the RSTTM effectively "zooms in" on the hand and stabilizes its position across frames.

Visualization of feature maps before (conv5b) and after (transform) the RSTTM, showing stabilization and centering of hand regions.

On the GTEA dataset, the model achieved 63.0% accuracy, demonstrating its generalizability to daily activity recognition beyond isolated gestures. Furthermore, the system is highly efficient, operating at approximately 111 FPS on a Titan X GPU, making it suitable for real-time wearable applications.

Conclusion

This work demonstrates that integrating recurrent spatiotemporal transformations into a 3D CNN framework significantly improves egocentric gesture recognition by mitigating the effects of head motion. While the model shows some susceptibility to overfitting—evidenced by a performance gap between validation and test sets—it sets a strong benchmark for the field. Future work may explore combining this end-to-end approach with additional cues like saliency maps to further enhance robustness in complex environments.

Summary updated

BibTeX
@inproceedings{cao2017egocentric,
  author = {Congqi Cao and Yifan Zhang and Yi Wu and Hanqing Lu and Jian Cheng},
  title = {{Egocentric Gesture Recognition Using Recurrent 3D Convolutional Neural Networks with Spatiotemporal Transformer Modules}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.406},
}
Figure