Forearm Ultrasound Based Gesture Recognition on Edge

Keshav Bimbraw, Haichong K. Zhang, Bashima Islam

TL;DR

Researchers have successfully moved forearm ultrasound gesture recognition from power-hungry desktop GPUs to resource-constrained edge devices like the Raspberry Pi 4. By applying Float16 quantization to a Convolutional Neural Network (CNN), they achieved 92% accuracy with a snappy 0.31-second inference time, paving the way for privacy-focused, wearable human-machine interfaces.

What Problem Does This Paper Address?

Hand gesture recognition is a cornerstone of modern human-machine interaction, but current methods have significant trade-offs. Optical systems (cameras) struggle with lighting and occlusion, while wearable gloves can be bulky and restrictive.

Forearm ultrasound is a powerful alternative because it "sees" the internal movement of muscles and tendons in high resolution. However, processing this high-dimensional data typically requires a beefy desktop computer with a dedicated GPU. This paper tackles the "portability gap": how do we take these complex ultrasound models and make them run in real-time on a small, battery-efficient device without sacrificing too much accuracy?

Methods

The authors developed an end-to-end pipeline that bridges a data-collection PC and an edge-processing unit:

  1. Hardware Setup: They used a SonoQue L5 linear probe strapped to the forearm.
  2. Data Pipeline: To handle the high data rate, ultrasound images (640x640) were captured on a Windows machine, downsampled to 80x80 to reduce bandwidth, and sent via UDP (User Datagram Protocol) to a Raspberry Pi 4.
  3. Model Architecture: A CNN with five cascaded convolutional layers followed by normalization, max-pooling, and dense layers.
  4. Optimization (The Secret Sauce): The core contribution is the use of TensorFlow Lite (TFLite) and quantization. They tested three types:
  5. Float16 Quantization: Converting weights to 16-bit floats.
  6. Dynamic Range Quantization: Quantizing weights post-training while keeping activations dynamic.
  7. UInt8 Quantization: Converting everything to 8-bit integers.

Datasets

The study utilized a custom dataset collected from a single subject (under IRB approval):

  • Gestures: Four distinct classes: Open hand, Index-thumb pinch, Middle-thumb pinch, and Ring-thumb pinch.
  • Scale: 2,400 frames total (300 frames per round across 8 rounds).
  • Split: 75% training (1,800 samples) and 25% testing (600 samples).

Key Insights and Ideas

  • The Quantization "Sweet Spot": While UInt8 quantization offers the smallest model size, it caused the accuracy to plummet to 17% (essentially random guessing). Float16 emerged as the winner, maintaining the baseline accuracy of 92% while slashing the model size by over 80%.
  • Privacy and Power: By moving the "brain" of the system to the edge (the Raspberry Pi), the system ensures user privacy (data isn't sent to the cloud) and operates at a fraction of the power—less than 5W compared to a 420W desktop system.
  • Latency vs. Utility: The researchers found that downsampling the images by a factor of 8 was necessary to prevent UDP buffer overflows, proving that data preprocessing is just as critical as model optimization for edge deployment.

Key Results

  • Accuracy: The Float16 optimized model achieved 92% test accuracy, matching the performance of the uncompressed model.
  • Model Size: The original model was compressed from 1.5 MB down to just 0.24 MB (Float16) and 0.12 MB (Dynamic Range).
  • Speed: Inference time on the Raspberry Pi was clocked at 0.31 seconds per sample.
  • Real-world Demo: In a live demonstration, the system achieved an end-to-end inference time of 172 ms per frame with 85.3% accuracy on a continuous test set.

Limitations and Future Work

  • Platform Dependency: Currently, the system still requires a Windows-based hardware setup for initial ultrasound data acquisition. The authors aim to explore mobile platforms like iOS or Android to make the system truly "wearable."
  • Subject Diversity: The current model was trained on a single subject. Future work needs to address subject-specific customization and "cross-user" generalization.
  • Model Complexity: The study focused on standard CNNs. The authors suggest that exploring Transformers or more contemporary architectures could further enhance performance.
  • Application Scope: Beyond simple gestures, the team looks toward applying this tech to healthcare monitoring and remote diagnosis.

Summary updated

Abstract

Ultrasound imaging of the forearm has demon-strated 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},
}

Loading related content...

Figure