Human Activity Recognition on Microcontrollers with Quantized and Adaptive Deep Neural Networks

被引:18
|
作者
Daghero, Francesco [1 ]
Burrello, Alessio [2 ]
Xie, Chen [1 ]
Castellano, Marco [3 ]
Gandolfi, Luca [3 ]
Calimera, Andrea [1 ]
Macii, Enrico [1 ]
Poncino, Massimo [1 ]
Pagliari, Daniele Jahier [1 ]
机构
[1] Politecn Torino, I-10129 Turin, Italy
[2] Univ Bologna, I-40136 Bologna, Italy
[3] STMicroelectronics, I-20010 Cornaredo, Italy
关键词
Quantized neural networks; mixed precision; adaptive neural networks; human activity recognition; edge computing; energy efficiency; LOW-POWER; HYBRID; SENSOR;
D O I
10.1145/3542819
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Human Activity Recognition (HAR) based on inertial data is an increasingly diffused task on embedded devices, from smartphones to ultra low-power sensors. Due to the high computational complexity of deep learning models, most embedded HAR systems are based on simple and not-so-accurate classic machine learning algorithms. This work bridges the gap between on-device HAR and deep learning, proposing a set of efficient one-dimensional Convolutional Neural Networks (CNNs) that can be deployed on general purpose microcontrollers (MCUs). Our CNNs are obtained combining hyper-parameters optimization with sub-byte and mixed-precision quantization, to find good trade-offs between classification results and memory occupation. Moreover, we also leverage adaptive inference as an orthogonal optimization to tune the inference complexity at runtime based on the processed input, hence producing a more flexible HAR system. With experiments on four datasets, and targeting an ultra-low-power RISC-V MCU, we show that (i) we are able to obtain a rich set of Pareto-optimal CNNs for HAR, spanning more than 1 order of magnitude in terms of memory, latency, and energy consumption; (ii) thanks to adaptive inference, we can derive >20 runtime operating modes starting from a single CNN, differing by up to 10% in classification scores and by more than 3x in inference complexity, with a limited memory overhead; (iii) on three of the four benchmarks, we outperform all previous deep learning methods, while reducing the memory occupation by more than 100x. The few methods that obtain better performance (both shallow and deep) are not compatible with MCU deployment; (iv) all our CNNs are compatible with real-time on-device HAR, achieving an inference latency that ranges between 9 mu s and 16 ms. Their memory occupation varies in 0.05-23.17 kB, and their energy consumption in 0.05 and 61.59 mu J, allowing years of continuous operation on a small battery supply.
引用
收藏
页数:28
相关论文
共 50 条
  • [1] Deep Recurrent Neural Networks for Human Activity Recognition
    Murad, Abdulmajid
    Pyun, Jae-Young
    SENSORS, 2017, 17 (11)
  • [2] A study of deep neural networks for human activity recognition
    Sansano, Emilio
    Montoliu, Raul
    Belmonte Fernandez, Oscar
    COMPUTATIONAL INTELLIGENCE, 2020, 36 (03) : 1113 - 1139
  • [3] On-Device Training of Fully Quantized Deep Neural Networks on Cortex-M Microcontrollers
    Deutel, Mark
    Hannig, Frank
    Mutschler, Christopher
    Teich, Juergen
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2025, 44 (04) : 1250 - 1261
  • [4] Comparing Industry Frameworks with Deeply Quantized Neural Networks on Microcontrollers
    Pau, Danilo
    Lattuada, Marco
    Loro, Francesco
    De Vita, Antonio
    Licciardo, Gian Domenico
    2021 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS (ICCE), 2021,
  • [5] Are Microcontrollers Ready for Deep Learning-Based Human Activity Recognition?
    Elsts, Atis
    McConville, Ryan
    ELECTRONICS, 2021, 10 (21)
  • [6] A Methodology to Design Quantized Deep Neural Networks for Automatic Modulation Recognition
    Goez, David
    Soto, Paola
    Latre, Steven
    Gaviria, Natalia
    Camelo, Miguel
    ALGORITHMS, 2022, 15 (12)
  • [7] Quantization and Deployment of Deep Neural Networks on Microcontrollers
    Novac, Pierre-Emmanuel
    Boukli Hacene, Ghouthi
    Pegatoquet, Alain
    Miramond, Benoit
    Gripon, Vincent
    SENSORS, 2021, 21 (09)
  • [8] Deep Convolutional Neural Networks for Human Activity Recognition with Smartphone Sensors
    Ronao, Charissa Ann
    Cho, Sung-Bae
    NEURAL INFORMATION PROCESSING, ICONIP 2015, PT IV, 2015, 9492 : 46 - 53
  • [9] Human Activity Recognition Using Graph Structures and Deep Neural Networks
    Bsoul, Abed Al Raoof K.
    COMPUTERS, 2025, 14 (01)
  • [10] Quantized Neural Networks for Modulation Recognition
    Budgett, S.
    de Waard, P.
    ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING FOR MULTI-DOMAIN OPERATIONS APPLICATIONS IV, 2022, 12113