Hand Gesture Recognition Using Temporal Convolutions and Attention Mechanism

Elahe Rahimian, Soheil Zabihi, Amir Asif, Dario Farina, S. Farokh Atashzar, Arash Mohammadi

TL;DR

Researchers have developed TC-HGR, a new deep learning architecture for hand gesture recognition that achieves state-of-the-art accuracy while using 11.9 times fewer parameters than previous models. By combining temporal convolutions with an attention mechanism, the system can decode complex muscle signals (sEMG) efficiently enough to potentially run on the low-power hardware found in modern prosthetic limbs.

What Problem Does This Paper Address?

Decoding human intent from muscle activity is the "holy grail" of prosthetic control. Most researchers use surface Electromyography (sEMG)—sensors placed on the skin—to pick up electrical signals from muscles. While Deep Neural Networks (DNNs) have become very good at recognizing gestures from these signals, they face a major hurdle: computational weight.

Current high-performing models often rely on recurrent architectures like LSTMs (Long Short-Term Memory) or massive hybrid CNN-LSTM networks. These models are "parameter-heavy," making them difficult to embed into the small, battery-powered processors inside a prosthetic arm. Furthermore, LSTMs are notoriously difficult to parallelize and can struggle with very long sequences of data. The authors set out to find a "leaner" way to achieve high accuracy without the massive memory footprint.

Methods

The proposed TC-HGR (Temporal Convolutions-based Hand Gesture Recognition) architecture introduces three key innovations to the sEMG pipeline:

  1. Logarithmic Scaling ($\mu$-law): Instead of standard normalization, the team used $\mu$-law transformation (common in speech processing) to amplify low-magnitude sensor values, making the subtle "whispers" of muscle activity easier for the network to hear.
  2. Signal Patching: Borrowing a concept from Vision Transformers (ViT), the model divides the sEMG signal into non-overlapping "patches." This significantly reduces the memory and computational requirements compared to processing every single data point individually.
  3. The "Dream Team" (Attention + TCNs):
    • Self-Attention: This module identifies which specific parts of the signal are most important for a gesture.
  4. Temporal Convolutional Blocks (TCBs): Instead of "remembering" the past like an LSTM, TCBs use dilated causal convolutions. By skipping over data points at increasing intervals (dilations), the network can look back at a very long history of muscle activity with very few layers.

Datasets

The study utilized the Ninapro DB2 database, a gold-standard benchmark in the field.

  • Scope: They focused on "Exercise B," which includes 17 different gestures (9 basic wrist movements and 8 isometric/isotonic hand movements).
  • Subjects: Data from 40 healthy subjects.
  • Hardware: Signals were recorded using a 12-channel Delsys Trigno wireless system at a 2 kHz sampling rate.

Key Insights and Ideas

  • Efficiency is a Feature, Not a Constraint: The most striking insight is that you don't need millions of parameters for high accuracy. By using dilated convolutions, the "receptive field" (how much of the past the model sees) grows exponentially, allowing the model to be shallow yet "long-sighted."
  • Complementary Mechanisms: The authors argue that TCNs and Attention are perfect partners. TCNs are great at capturing the broad "history" of the signal, while the Attention mechanism acts like a spotlight, pinpointing the exact moment a muscle contraction starts or changes.
  • The Window Size Trade-off: The paper highlights a critical engineering trade-off. A 300ms window provides more data and better accuracy (81.65%), but a 200ms window (80.72%) provides a faster response time, which is vital for a prosthetic user to feel like the hand is an extension of their own body.

Key Results

  • Accuracy: The model achieved 81.65% accuracy for 17 gestures using a 300ms window.
  • Extreme Compression: The TC-HGR Model 4 uses only ~93k to 95k parameters. For comparison, the state-of-the-art LSTM-based counterpart uses over 1.1 million parameters.
  • Statistical Significance: Using Wilcoxon signed-rank tests, the authors proved that their "patching" method significantly improved performance over simpler models without adding excessive complexity.
  • Superiority over Traditional ML: The model vastly outperformed traditional methods like Support Vector Machines (SVM), which only managed around 30% accuracy on the same task.

Limitations and Future Work

While the results are promising, the paper notes a few areas for growth:

  • Structural Complexity vs. Performance: Increasing the model dimension ($D$) and the number of patches ($N$) improves accuracy but increases the parameter count. Finding the "sweet spot" for specific hardware remains a challenge.
  • Clinical Translation: The study was conducted on healthy subjects. The next major hurdle is testing how this architecture performs with amputees, whose sEMG signals may be noisier or more varied due to muscle atrophy or scarring.
  • Real-time Latency: Although the model is small, the authors mention that shorter windows (200ms) are preferred to allow "extra time" for the actual mechanical movement of the prosthesis. Future work will likely focus on optimizing the end-to-end latency from muscle contraction to motor movement.

Summary updated

BibTeX
@inproceedings{rahimian2022hand,
  author = {Elahe Rahimian and Soheil Zabihi and Amir Asif and Dario Farina and S. Farokh Atashzar and Arash Mohammadi},
  title = {{Hand Gesture Recognition Using Temporal Convolutions and Attention Mechanism}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp43922.2022.9746174},
}
Figure