Forearm Ultrasound based Gesture Recognition on Edge

Keshav Bimbraw, Haichong K. Zhang, Bashima Islam

Abstract

Ultrasound imaging of the forearm has demonstrated significant potential for accurate hand gesture classification. Despite this progress, there has been limited focus on developing a stand-alone end-to-end gesture recognition system which makes it mobile, real-time and more user friendly. To bridge this gap, this paper explores the deployment of deep neural networks for forearm ultrasound-based hand gesture recognition on edge devices. Utilizing quantization techniques, we achieve substantial reductions in model size while maintaining high accuracy and low latency. Our best model, with Float16 quantization, achieves a test accuracy of 92% and an inference time of 0.31 seconds on a Raspberry Pi. These results demonstrate the feasibility of efficient, real-time gesture recognition on resource-limited edge devices, paving the way for wearable ultrasound-based systems.

Introduction

Hand gesture recognition (HGR) is a cornerstone of modern human-machine interaction (HMI). While optical systems and wearable sensors like data gloves are common, they often suffer from environmental sensitivity or physical restrictiveness. Forearm ultrasound imaging offers a high-resolution alternative by capturing internal muscle and tendon dynamics. However, the computational demands of processing high-dimensional ultrasound data have traditionally confined these systems to desktop environments with high-end GPUs. This research addresses the "portability gap" by deploying deep neural networks for real-time gesture recognition on resource-constrained edge devices like the Raspberry Pi 4.

System Architecture and Methodology

The researchers developed an end-to-end pipeline designed to transition from data acquisition to edge-based inference. The process begins on a Windows-based PC connected to a SonoQue L5 linear ultrasound probe.

System architecture showing the data pipeline from ultrasound capture to edge inference.

To manage the high data rate of 640x640 ultrasound images, the system performs dimensionality reduction, downsampling images to 80x80. This reduced data is then transmitted via User Datagram Protocol (UDP) to a Raspberry Pi 4. This split-system approach allows for efficient data handling while moving the primary computational workload to the edge device.

Experimental Setup and Dataset

The study utilized a custom dataset collected from a single subject under IRB approval. The hardware setup involved a linear probe strapped to the forearm to capture muscle deformations during specific movements.

Experimental setup showing the ultrasound probe placement and sample hand gestures.

Four distinct gesture classes were defined: Open hand, Index-thumb pinch, Middle-thumb pinch, and Ring-thumb pinch. The dataset comprised 2,400 frames total, split into 75% training (1,800 samples) and 25% testing (600 samples). The model architecture employed a Convolutional Neural Network (CNN) with five cascaded convolutional layers, followed by normalization, max-pooling, and dense layers.

Model Optimization and Quantization

The core challenge was fitting the CNN onto the Raspberry Pi 4 without compromising performance. The researchers utilized TensorFlow Lite (TFLite) to apply various quantization techniques:

  • Float16 Quantization: Converting 32-bit weights to 16-bit floats.
  • Dynamic Range Quantization: Quantizing weights post-training while maintaining dynamic activations.
  • UInt8 Quantization: Full conversion to 8-bit integers.

The results highlighted a significant trade-off: while UInt8 quantization offered the smallest footprint, it resulted in a catastrophic drop in accuracy to 17%. Conversely, Float16 quantization emerged as the optimal solution, maintaining the baseline accuracy of 92% while reducing the model size from 1.5 MB to just 0.24 MB—a reduction of over 80%.

Key Results and Performance

The optimized Float16 model achieved an inference time of 0.31 seconds on the Raspberry Pi. In a continuous live demonstration, the system reached an end-to-end latency of 172 ms per frame with 85.3% accuracy on a continuous test set.

Beyond performance metrics, the edge-based approach offers two critical advantages:

  1. Privacy: Data is processed locally on the Raspberry Pi, eliminating the need to transmit sensitive medical imaging data to the cloud.
  2. Power Efficiency: The Raspberry Pi system operates at less than 5W, a massive improvement over the 420W required by a standard desktop setup.

Conclusion and Future Work

This work demonstrates that high-accuracy, real-time ultrasound gesture recognition is feasible on low-power edge devices. Future research will focus on removing the dependency on a Windows PC for initial acquisition, exploring mobile platforms like iOS/Android, and improving cross-user generalization by training on more diverse subjects. These advancements pave the way for truly wearable, privacy-preserving human-machine interfaces.

Summary updated

Abstract

Ultrasound imaging of the forearm has demonstrated significant potential for accurate hand gesture classification. Despite this progress, there has been limited focus on developing a stand-alone end- to-end gesture recognition system which makes it mobile, real-time and more user friendly. To bridge this gap, this paper explores the deployment of deep neural networks for forearm ultrasound-based hand gesture recognition on edge devices. Utilizing quantization techniques, we achieve substantial reductions in model size while maintaining high accuracy and low latency. Our best model, with Float16 quantization, achieves a test accuracy of 92% and an inference time of 0.31 seconds on a Raspberry Pi. These results demonstrate the feasibility of efficient, real-time gesture recognition on resource-limited edge devices, paving the way for wearable ultrasound-based systems.
BibTeX
@inproceedings{bimbraw2024forearm,
  author = {Keshav Bimbraw and Haichong K. Zhang and Bashima Islam},
  title = {{Forearm Ultrasound based Gesture Recognition on Edge}},
  booktitle = {BSN},
  year = {2024},
  url = {https://openreview.net/forum?id=GUNBkKCCT4},
}
Figure