Sensor-Based Continuous Hand Gesture Recognition by Long Short-Term Memory

Tsung-Ming Tai, Yun-Jie Jhang, Zhen-Wei Liao, Kai-Chung Teng, Wen-Jyi HwangarXiv 2020

Abstract

This article presents a novel sensor-based continuous hand gesture recognition algorithm utilizing Long Short-Term Memory (LSTM) networks. The approach requires only standard accelerometers and gyroscopes. By employing a many-to-many LSTM scheme, the system generates an output path from sensory data sequences, followed by a Maximum A Posteriori (MAP) estimation to determine final classification results. A prototype system implemented on smartphones demonstrates that the proposed algorithm is an effective, robust, and accurate solution for hand-gesture recognition in real-world environments.

Introduction

Hand gesture recognition is a fundamental component of modern Human-Machine Interaction (HMI). However, "continuous" recognition—the ability to identify multiple gestures performed in a sequence—remains a significant challenge. The primary difficulty lies in gesture spotting: accurately identifying the start and end points of a gesture within a continuous stream of sensor data.

Existing methods typically rely on vision-based systems, which are computationally intensive and raise privacy concerns, or sensor-based systems that require manual triggers (like buttons) or simple signal thresholds that are prone to errors from random movement. This research introduces a trigger-free, computationally efficient method for automatic gesture spotting suitable for mobile and embedded hardware.

Methodology

The proposed recognition pipeline consists of two main stages:

  1. Many-to-Many LSTM: Unlike traditional classifiers that provide a single label for an entire data clip, this many-to-many LSTM architecture processes 6D sensor data (3-axis accelerometer and 3-axis gyroscope) to produce a prediction at every time step. This creates a continuous "output path" of predicted labels.
  2. MAP Estimation for Decoding: To translate the per-frame predictions into a final gesture sequence, the system uses Maximum A Posteriori (MAP) estimation. By analyzing the frequency of labels within the output path, the MAP estimator identifies the most likely intended gesture, effectively "spotting" the action without manual markers.
System architecture for gesture training and testing

Experimental Setup and Dataset

The system was trained using Keras and TensorFlow on a PC and then deployed to a Raspberry Pi 3 to simulate a smart home controller environment. Data was collected using an HTC One M9 smartphone, involving 2,900 training sequences and 3,100 testing sequences performed by multiple participants.

The study focused on six distinct gesture classes designed for smart home interactions, such as controlling volume or media playback:

  • Gesture 1: Up
  • Gesture 2: Down
  • Gesture 3: Left
  • Gesture 4: Right
  • Gesture 5: Circle
  • Gesture 6: "S" Shape
The six hand gestures used for classification

Key Insights and Results

Experimental evaluations revealed several critical factors for high-performance recognition:

  • Optimal Network Depth: The authors found that an LSTM hidden state dimension of 32 provided the best balance between capturing motion complexity and avoiding noise.
  • Sensor Fusion: Utilizing both the accelerometer and gyroscope proved essential. For instance, the accuracy of the complex "S-curve" gesture dropped from approximately 99% to 79% when the gyroscope data was excluded.
  • High Accuracy: The system achieved a "hit rate" exceeding 95% across all gesture classes, outperforming traditional sensor-based methods that rely on variance thresholds or simple similarity matching.
  • Real-Time Potential: Deployment on a Raspberry Pi 3 confirmed that the algorithm is efficient enough for low-power IoT applications.

Conclusion

The proposed LSTM-MAP framework offers a robust solution for continuous hand gesture recognition using ubiquitous smartphone sensors. While highly effective for the predefined gesture set, future research will explore user-defined custom gestures and improving the system's robustness to varying device orientations.

Summary updated

BibTeX
@misc{tai2020sensor,
  author = {Tsung-Ming Tai and Yun-Jie Jhang and Zhen-Wei Liao and Kai-Chung Teng and Wen-Jyi Hwang},
  title = {{Sensor-Based Continuous Hand Gesture Recognition by Long Short-Term Memory}},
  year = {2020},
  eprint = {2007.11268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.11268},
}
Figure