Cargando…

Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference

Hand gesture recognition applications based on surface electromiographic (sEMG) signals can benefit from on-device execution to achieve faster and more predictable response times and higher energy efficiency. However, deploying state-of-the-art deep learning (DL) models for this task on memory-const...

Descripción completa

Detalles Bibliográficos
Autores principales: Xie, Chen, Burrello, Alessio, Daghero, Francesco, Benini, Luca, Calimera, Andrea, Macii, Enrico, Poncino, Massimo, Jahier Pagliari, Daniele
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9965939/
https://www.ncbi.nlm.nih.gov/pubmed/36850662
http://dx.doi.org/10.3390/s23042065
_version_ 1784896891398389760
author Xie, Chen
Burrello, Alessio
Daghero, Francesco
Benini, Luca
Calimera, Andrea
Macii, Enrico
Poncino, Massimo
Jahier Pagliari, Daniele
author_facet Xie, Chen
Burrello, Alessio
Daghero, Francesco
Benini, Luca
Calimera, Andrea
Macii, Enrico
Poncino, Massimo
Jahier Pagliari, Daniele
author_sort Xie, Chen
collection PubMed
description Hand gesture recognition applications based on surface electromiographic (sEMG) signals can benefit from on-device execution to achieve faster and more predictable response times and higher energy efficiency. However, deploying state-of-the-art deep learning (DL) models for this task on memory-constrained and battery-operated edge devices, such as wearables, requires a careful optimization process, both at design time, with an appropriate tuning of the DL models’ architectures, and at execution time, where the execution of large and computationally complex models should be avoided unless strictly needed. In this work, we pursue both optimization targets, proposing a novel gesture recognition system that improves upon the state-of-the-art models both in terms of accuracy and efficiency. At the level of DL model architecture, we apply for the first time tiny transformer models (which we call bioformers) to sEMG-based gesture recognition. Through an extensive architecture exploration, we show that our most accurate bioformer achieves a higher classification accuracy on the popular Non-Invasive Adaptive hand Prosthetics Database 6 (Ninapro DB6) dataset compared to the state-of-the-art convolutional neural network (CNN) TEMPONet (+3.1%). When deployed on the RISC-V-based low-power system-on-chip (SoC) GAP8, bioformers that outperform TEMPONet in accuracy consume 7.8×–44.5× less energy per inference. At runtime, we propose a three-level dynamic inference approach that combines a shallow classifier, i.e., a random forest (RF) implementing a simple “rest detector” with two bioformers of different accuracy and complexity, which are sequentially applied to each new input, stopping the classification early for “easy” data. With this mechanism, we obtain a flexible inference system, capable of working in many different operating points in terms of accuracy and average energy consumption. On GAP8, we obtain a further 1.03×–1.35× energy reduction compared to static bioformers at iso-accuracy.
format Online
Article
Text
id pubmed-9965939
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-99659392023-02-26 Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference Xie, Chen Burrello, Alessio Daghero, Francesco Benini, Luca Calimera, Andrea Macii, Enrico Poncino, Massimo Jahier Pagliari, Daniele Sensors (Basel) Article Hand gesture recognition applications based on surface electromiographic (sEMG) signals can benefit from on-device execution to achieve faster and more predictable response times and higher energy efficiency. However, deploying state-of-the-art deep learning (DL) models for this task on memory-constrained and battery-operated edge devices, such as wearables, requires a careful optimization process, both at design time, with an appropriate tuning of the DL models’ architectures, and at execution time, where the execution of large and computationally complex models should be avoided unless strictly needed. In this work, we pursue both optimization targets, proposing a novel gesture recognition system that improves upon the state-of-the-art models both in terms of accuracy and efficiency. At the level of DL model architecture, we apply for the first time tiny transformer models (which we call bioformers) to sEMG-based gesture recognition. Through an extensive architecture exploration, we show that our most accurate bioformer achieves a higher classification accuracy on the popular Non-Invasive Adaptive hand Prosthetics Database 6 (Ninapro DB6) dataset compared to the state-of-the-art convolutional neural network (CNN) TEMPONet (+3.1%). When deployed on the RISC-V-based low-power system-on-chip (SoC) GAP8, bioformers that outperform TEMPONet in accuracy consume 7.8×–44.5× less energy per inference. At runtime, we propose a three-level dynamic inference approach that combines a shallow classifier, i.e., a random forest (RF) implementing a simple “rest detector” with two bioformers of different accuracy and complexity, which are sequentially applied to each new input, stopping the classification early for “easy” data. With this mechanism, we obtain a flexible inference system, capable of working in many different operating points in terms of accuracy and average energy consumption. On GAP8, we obtain a further 1.03×–1.35× energy reduction compared to static bioformers at iso-accuracy. MDPI 2023-02-12 /pmc/articles/PMC9965939/ /pubmed/36850662 http://dx.doi.org/10.3390/s23042065 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Xie, Chen
Burrello, Alessio
Daghero, Francesco
Benini, Luca
Calimera, Andrea
Macii, Enrico
Poncino, Massimo
Jahier Pagliari, Daniele
Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference
title Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference
title_full Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference
title_fullStr Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference
title_full_unstemmed Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference
title_short Reducing the Energy Consumption of sEMG-Based Gesture Recognition at the Edge Using Transformers and Dynamic Inference
title_sort reducing the energy consumption of semg-based gesture recognition at the edge using transformers and dynamic inference
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9965939/
https://www.ncbi.nlm.nih.gov/pubmed/36850662
http://dx.doi.org/10.3390/s23042065
work_keys_str_mv AT xiechen reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT burrelloalessio reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT dagherofrancesco reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT beniniluca reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT calimeraandrea reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT maciienrico reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT poncinomassimo reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference
AT jahierpagliaridaniele reducingtheenergyconsumptionofsemgbasedgesturerecognitionattheedgeusingtransformersanddynamicinference