Loading spinner
Have you ever dreamed of controlling a machine using hand gestures?
What if your phone could send your friends emojis, based on the movement of your hands?
It has now become a reality! Thanks to ST multi-zone Time-of-Flight (ToF) sensors, this solution does not require a camera. AI algorithms are running on the STM32 microcontroller, with a low processing complexity and requiring low power consumption.
Define your own set of hand postures, collect your dataset, train your AI model, and create your application !

Approach

This hand posture recognition solution detects a set of hand postures with an ST multi-zone Time-of-Flight sensor and runs on a NUCLEO-F401RE.
The development process is based on the following steps:
  • Define your own set of hand postures (dataset)
  • Collect your dataset from several users, using the distance and signal data from 8 x 8 multi-zone ToF sensors, such as the VL53L5CX, VL53L7CX or VL53L8CX
  • Train the AI network with the training script from the STM32 model zoo
  • Implement the AI model into your selected STM32 MCU thanks to the STM32Cube.AI Developer Cloud or the "Hand Posture Getting Started" included in the STM32 model zoo

This approach allows you to quickly develop this application, with highly configurable hand postures, a small memory footprint and a low processing power.
Depending on the application, the ToF sensor can be positioned either in front of the user (personal computer, satisfaction box), point to the ceiling (cooking plate) or be fixed on a moving object (smart glasses).

Sensor

Multi-zone Time-of-Flight sensor (ref: VL53L5CX, VL53L7CX, VL53L8CX)

Data

Dataset Private dataset: 5 users, 7 hand postures
Data format
8 x 8 ranging distance and signal rate
Frequency aligned with the application and reactivity needed

Results

Model CNN 2D
Memory footprint:
29 Kbytes of flash memory for weights
3 KbytesRAM for activations
Accuracy: 96.4 %
Performance on STM32F401 @ 84 MHz 
Inference time: 1.5 ms

use-case-stm32-cube-ai-confusion-matrix-hand-posture-recognition use-case-stm32-cube-ai-confusion-matrix-hand-posture-recognition use-case-stm32-cube-ai-confusion-matrix-hand-posture-recognition

Confusion matrix

Model repository
ST Edge AI Model Zoo
ST Edge AI Model Zoo
Optimized with
STM32Cube.AI
STM32Cube.AI
Compatible with
STM32F4 series
STM32F4 series

Resources

Model repository ST Edge AI Model Zoo

A collection of reference AI models optimized to run on ST devices with associated deployment scripts. The model zoo is a valuable resource to add edge AI capabilities to embedded applications.

ST Edge AI Model Zoo ST Edge AI Model Zoo ST Edge AI Model Zoo

Optimized with STM32Cube.AI

A free STM32Cube expansion package, X-CUBE-AI allows developers to convert pretrained AI algorithms automatically, such as neural network and machine learning models, into optimized C code for STM32.

STM32Cube.AI STM32Cube.AI STM32Cube.AI

Compatible with STM32F4 series

The STM32 family of 32-bit microcontrollers based on the Arm Cortex®-M processor is designed to offer new degrees of freedom to MCU users. It offers products combining very high performance, real-time capabilities, digital signal processing, low-power / low-voltage operation, and connectivity, while maintaining full integration and ease of development.

STM32F4 series STM32F4 series STM32F4 series
You might also be interested by

Vision | STM32Cube.AI | STM32 AI MCU | Partner | Video | Smart home | Smart building

How to personalize smart home with familiar face identification

embedUR's on-device face authentication embedded on STM32N6 with easy mobile enrollment

Vision | STM32Cube.AI | STM32 AI MCU | Partner | Smart home | Wearables | Microphone | Accelerometer | Tutorial

Handheld development platform for real-time vision, motion, and voice at the edge

All‑in‑one STM32N6‑based platform for on‑device edge AI with NPU acceleration

Industrial | Smart city | Vision | STM32Cube.AI | STM32 AI MCU | Partner | Video | Smart home

Secure entry systems using id3 face recognition with liveness detection

Edge processing with RGB camera and ToF sensor ensures rapid and secure anti-spoofing for access control using the STM32N6 MCU.