Machine Learning on Mainstream Microcontrollers

被引:69
作者
Sakr, Fouad [1 ]
Bellotti, Francesco [1 ]
Berta, Riccardo [1 ]
De Gloria, Alessandro [1 ]
机构
[1] Univ Genoa, Dept Elect Elect & Telecommun Engn DITEN, Via Opera Pia 11A, I-16145 Genoa, Italy
关键词
machine learning; edge computing; embedded devices; edge analytics; ANN; k-NN; SVM; decision trees; ARM; X-Cube-AI; STM32; Nucleo;
D O I
10.3390/s20092638
中图分类号
O65 [分析化学];
学科分类号
070302 ; 081704 ;
摘要
This paper presents the Edge Learning Machine (ELM), a machine learning framework for edge devices, which manages the training phase on a desktop computer and performs inferences on microcontrollers. The framework implements, in a platform-independent C language, three supervised machine learning algorithms (Support Vector Machine (SVM) with a linear kernel, k-Nearest Neighbors (K-NN), and Decision Tree (DT)), and exploits STM X-Cube-AI to implement Artificial Neural Networks (ANNs) on STM32 Nucleo boards. We investigated the performance of these algorithms on six embedded boards and six datasets (four classifications and two regression). Our analysis-which aims to plug a gap in the literature-shows that the target platforms allow us to achieve the same performance score as a desktop machine, with a similar time latency. ANN performs better than the other algorithms in most cases, with no difference among the target devices. We observed that increasing the depth of an NN improves performance, up to a saturation level. k-NN performs similarly to ANN and, in one case, even better, but requires all the training sets to be kept in the inference phase, posing a significant memory demand, which can be afforded only by high-end edge devices. DT performance has a larger variance across datasets. In general, several factors impact performance in different ways across datasets. This highlights the importance of a framework like ELM, which is able to train and compare different algorithms. To support the developer community, ELM is released on an open-source basis.
引用
收藏
页数:25
相关论文
共 39 条
[1]   Smart Tactile Sensing Systems Based on Embedded CNN Implementations [J].
Alameh, Mohamad ;
Abbass, Yahya ;
Ibrahim, Ali ;
Valle, Maurizio .
MICROMACHINES, 2020, 11 (01)
[2]  
[Anonymous], HEART DIS UCI
[3]  
[Anonymous], P 2018 IEEE INT C ED
[4]  
[Anonymous], GAMES LEARNING ALLIA
[5]  
[Anonymous], TRAFF DRIV STYL ROAD
[6]  
[Anonymous], P 7 IEEE INT WORKSH
[7]  
[Anonymous], P IEEE CAN C EL COMP
[8]  
[Anonymous], Frequently Asked Questions
[9]  
[Anonymous], PARAMETERS
[10]  
[Anonymous], ADAM METHOD STOCHAST