Vision Transformer with Convolutional Encoder–Decoder for Hand Gesture Recognition using 24-GHz Doppler Radar

Kavinda Kehelella, Gayangana Leelarathne, Dhanuka Marasinghe, Nisal Kariyawasam, Viduneth Ariyarathna, Arjuna Madanayake, Ranga Rodrigo, Chamira U. S. Edussooriya

Introduction

Hand Gesture Recognition (HGR) has emerged as a cornerstone of modern human-computer interaction, enabling seamless control for smart home devices, virtual reality (VR), and automotive interfaces. While camera-based systems are widely deployed, they face significant hurdles regarding user privacy and performance in challenging lighting conditions. Radar-based sensing offers a robust alternative, providing the ability to operate in complete darkness and through obstructions while preserving privacy by avoiding the capture of identifiable images.

Despite these advantages, processing radar data effectively remains a challenge. Most current systems transform radar reflections into micro-Doppler signatures—2D representations of velocity changes over time. While Convolutional Neural Networks (CNNs) excel at extracting spatial features from these signatures, they often struggle to model long-range temporal dependencies. Conversely, Vision Transformers (ViT) are adept at capturing global relationships but typically require massive datasets and specific input configurations to outperform CNNs. This paper presents a hybrid architecture that bridges this gap using a novel convolutional encoder-decoder structure paired with a Vision Transformer.

Proposed Architecture

The researchers developed a three-stage deep learning pipeline designed to maximize the strengths of both convolutional and attention-based layers.

1. Convolutional Encoder-Decoder

The primary innovation lies in the "upsampling" stage. A standard five-layer CNN encoder first extracts local features from the radar spectrograms. However, instead of passing the resulting compressed feature map directly to the Transformer, the model employs a two-layer convolutional decoder. Using transposed convolutions, this decoder increases the spatial resolution of the feature maps. This step is critical because it prevents the Transformer from receiving overly compressed data, which often limits its ability to learn complex temporal patterns.

2. Vision Transformer (ViT) Module

By upsampling the feature maps, the architecture allows the Vision Transformer to operate on larger, more meaningful patches (4x4). The model utilizes a three-layer Transformer to model the global relationships across the gesture sequence. This hybrid approach allows the CNN to handle local translation invariance—recognizing Doppler shifts regardless of their exact position—while the Transformer captures the overall progression of the gesture.

3. Classification Head

The output of the Transformer is fed into a Multi-Layer Perceptron (MLP), which classifies the input into one of 14 distinct hand gesture categories.

Experimental Setup

The model was evaluated using a publicly available dataset consisting of 14 different hand gestures, including swipes, pushes, waves, and blinks.

  • Hardware: The data was captured using a 24 GHz continuous-wave (CW) Doppler radar equipped with one transmit and two receive antennas.
  • Input Representation: The model processes 3-channel pseudo-images (180x60 pixels). Two channels contain spectrograms from the receivers, while the third channel encodes the "angle of arrival" derived from the phase difference between the antennas.

Key Results and Discussion

The proposed hybrid model achieved a state-of-the-art accuracy of 98.3%, significantly outperforming traditional architectures. For comparison, a standard CNN-only approach reached 95.1%, while established models like VGGNet16 and ResNet50 achieved 95.0% and 92.1%, respectively.

The Role of the Decoder

Ablation studies confirmed the necessity of the upsampling stage. When the convolutional decoder was removed, the model's accuracy dropped to 96.0%. This supports the hypothesis that providing the Transformer with a higher-resolution feature map allows for more effective patch-based attention.

Efficiency and Depth

The researchers found that a three-layer Transformer provided the optimal balance between performance and stability. Increasing the depth beyond three layers led to higher variance and a slight degradation in accuracy, likely due to the model beginning to overfit the relatively specialized radar dataset.

Computational Trade-offs

While the model delivers superior accuracy, it is more computationally intensive than simpler CNNs. The architecture contains approximately 800,000 parameters, compared to the 7,676 parameters of the baseline CNN. The inference time is approximately 96 ms—roughly three times slower than a basic CNN but still well within the threshold required for real-time human-machine interaction.

Conclusion

By combining a convolutional encoder-decoder with a Vision Transformer, this research demonstrates a significant leap in radar-based gesture recognition. The inclusion of an upsampling decoder proves to be a vital architectural choice for hybrid models in this domain. Future work will focus on model pruning and optimization to reduce the parameter count, making the system more suitable for deployment on low-power edge devices such as smartwatches and mobile sensors.

Summary updated

BibTeX
@misc{kehelella2022vision,
  author = {Kavinda Kehelella and Gayangana Leelarathne and Dhanuka Marasinghe and Nisal Kariyawasam and Viduneth Ariyarathna and Arjuna Madanayake and Ranga Rodrigo and Chamira U. S. Edussooriya},
  title = {{Vision Transformer with Convolutional Encoder–Decoder for Hand Gesture Recognition using 24-GHz Doppler Radar}},
  year = {2022},
  eprint = {2209.05032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.05032},
}
Figure