Cargando…
Quantization and Deployment of Deep Neural Networks on Microcontrollers
Embedding Artificial Intelligence onto low-power devices is a challenging task that has been partly overcome with recent advances in machine learning and hardware design. Presently, deep neural networks can be deployed on embedded targets to perform different tasks such as speech recognition, object...
Autores principales: | , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8122998/ https://www.ncbi.nlm.nih.gov/pubmed/33922868 http://dx.doi.org/10.3390/s21092984 |
_version_ | 1783692776457633792 |
---|---|
author | Novac, Pierre-Emmanuel Boukli Hacene, Ghouthi Pegatoquet, Alain Miramond, Benoît Gripon, Vincent |
author_facet | Novac, Pierre-Emmanuel Boukli Hacene, Ghouthi Pegatoquet, Alain Miramond, Benoît Gripon, Vincent |
author_sort | Novac, Pierre-Emmanuel |
collection | PubMed |
description | Embedding Artificial Intelligence onto low-power devices is a challenging task that has been partly overcome with recent advances in machine learning and hardware design. Presently, deep neural networks can be deployed on embedded targets to perform different tasks such as speech recognition, object detection or Human Activity Recognition. However, there is still room for optimization of deep neural networks onto embedded devices. These optimizations mainly address power consumption, memory and real-time constraints, but also an easier deployment at the edge. Moreover, there is still a need for a better understanding of what can be achieved for different use cases. This work focuses on quantization and deployment of deep neural networks onto low-power 32-bit microcontrollers. The quantization methods, relevant in the context of an embedded execution onto a microcontroller, are first outlined. Then, a new framework for end-to-end deep neural networks training, quantization and deployment is presented. This framework, called MicroAI, is designed as an alternative to existing inference engines (TensorFlow Lite for Microcontrollers and STM32Cube.AI). Our framework can indeed be easily adjusted and/or extended for specific use cases. Execution using single precision 32-bit floating-point as well as fixed-point on 8- and 16 bits integers are supported. The proposed quantization method is evaluated with three different datasets (UCI-HAR, Spoken MNIST and GTSRB). Finally, a comparison study between MicroAI and both existing embedded inference engines is provided in terms of memory and power efficiency. On-device evaluation is done using ARM Cortex-M4F-based microcontrollers (Ambiq Apollo3 and STM32L452RE). |
format | Online Article Text |
id | pubmed-8122998 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-81229982021-05-16 Quantization and Deployment of Deep Neural Networks on Microcontrollers Novac, Pierre-Emmanuel Boukli Hacene, Ghouthi Pegatoquet, Alain Miramond, Benoît Gripon, Vincent Sensors (Basel) Article Embedding Artificial Intelligence onto low-power devices is a challenging task that has been partly overcome with recent advances in machine learning and hardware design. Presently, deep neural networks can be deployed on embedded targets to perform different tasks such as speech recognition, object detection or Human Activity Recognition. However, there is still room for optimization of deep neural networks onto embedded devices. These optimizations mainly address power consumption, memory and real-time constraints, but also an easier deployment at the edge. Moreover, there is still a need for a better understanding of what can be achieved for different use cases. This work focuses on quantization and deployment of deep neural networks onto low-power 32-bit microcontrollers. The quantization methods, relevant in the context of an embedded execution onto a microcontroller, are first outlined. Then, a new framework for end-to-end deep neural networks training, quantization and deployment is presented. This framework, called MicroAI, is designed as an alternative to existing inference engines (TensorFlow Lite for Microcontrollers and STM32Cube.AI). Our framework can indeed be easily adjusted and/or extended for specific use cases. Execution using single precision 32-bit floating-point as well as fixed-point on 8- and 16 bits integers are supported. The proposed quantization method is evaluated with three different datasets (UCI-HAR, Spoken MNIST and GTSRB). Finally, a comparison study between MicroAI and both existing embedded inference engines is provided in terms of memory and power efficiency. On-device evaluation is done using ARM Cortex-M4F-based microcontrollers (Ambiq Apollo3 and STM32L452RE). MDPI 2021-04-23 /pmc/articles/PMC8122998/ /pubmed/33922868 http://dx.doi.org/10.3390/s21092984 Text en © 2021 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 Novac, Pierre-Emmanuel Boukli Hacene, Ghouthi Pegatoquet, Alain Miramond, Benoît Gripon, Vincent Quantization and Deployment of Deep Neural Networks on Microcontrollers |
title | Quantization and Deployment of Deep Neural Networks on Microcontrollers |
title_full | Quantization and Deployment of Deep Neural Networks on Microcontrollers |
title_fullStr | Quantization and Deployment of Deep Neural Networks on Microcontrollers |
title_full_unstemmed | Quantization and Deployment of Deep Neural Networks on Microcontrollers |
title_short | Quantization and Deployment of Deep Neural Networks on Microcontrollers |
title_sort | quantization and deployment of deep neural networks on microcontrollers |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8122998/ https://www.ncbi.nlm.nih.gov/pubmed/33922868 http://dx.doi.org/10.3390/s21092984 |
work_keys_str_mv | AT novacpierreemmanuel quantizationanddeploymentofdeepneuralnetworksonmicrocontrollers AT bouklihaceneghouthi quantizationanddeploymentofdeepneuralnetworksonmicrocontrollers AT pegatoquetalain quantizationanddeploymentofdeepneuralnetworksonmicrocontrollers AT miramondbenoit quantizationanddeploymentofdeepneuralnetworksonmicrocontrollers AT griponvincent quantizationanddeploymentofdeepneuralnetworksonmicrocontrollers |