Skip to main content

Analyzing Machine Learning on Mainstream Microcontrollers

  • Conference paper
  • First Online:
Applications in Electronics Pervading Industry, Environment and Society (ApplePies 2019)

Abstract

Machine learning in embedded systems has become a reality, with the first tools for neural network firmware development already being made available for ARM microcontroller developers. This paper explores the use of one of such tools, namely the STM X-Cube-AI, on mainstream ARM Cortex-M microcontrollers, analyzing their performance, and comparing support and performance of other two common supervised ML algorithms, namely Support Vector Machines (SVM) and k-Nearest Neighbours (k-NN). Results on three datasets show that X-Cube-AI provides quite constant good performance even with the limitations of the embedded platform. The workflow is well integrated with mainstream desktop tools, such as Tensorflow and Keras.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Shi W, Cao J, Zhang Q, Li Y, Xu L (2016) Edge computing: vision and challenges. IEEE Internet Things J 3(5):637–646

    Article  Google Scholar 

  2. https://www.arm.com/products/silicon-ip-cpu/machine-learning/project-trillium

  3. https://pages.arm.com/machine-learning-on-arm-cortex-m-microcontroller.html

  4. https://www.tensorflow.org/lite/guide/build_arm64

  5. https://www.st.com/en/embedded-software/x-cube-ai.html

  6. Parodi A, Bellotti F, Berta R, De Gloria A (2018) Developing a machine learning library for microcontrollers. In: Saponara S, De Gloria A (eds) Applications in electronics pervading industry, environment and society. ApplePies 2018. Lecture Notes in Electrical Engineering, vol 550. Springer, Berlin

    Google Scholar 

  7. Andrade L, Prost-Boucle A, Pétrot F (2018) Overview of the state of the art in embedded machine learning. In: 2018 Design, automation & test in Europe conference & exhibition (DATE), Dresden, pp 1033–1038

    Google Scholar 

  8. Lai L, Suda N (2018) Enabling deep learning at the LoT Edge. In: 2018 IEEE/ACM international conference on computer-aided design (ICCAD), San Diego, CA, pp 1–6

    Google Scholar 

  9. Cerutti G, Prasad R, Farella E (2019) Convolutional neural network on embedded platform for people presence detection in low resolution thermal images. In: ICASSP 2019—2019 IEEE international conference on acoustics, speech and signal processing (ICASSP), Brighton, United Kingdom, pp 7610–7614

    Google Scholar 

  10. http://fidoproject.github.io/

  11. http://fizyka.umk.pl/kis-old/projects/datasets.html#Sonar

  12. https://www.kaggle.com/ronitf/heart-disease-uci

  13. Islam MJ, Wu QMJ, Ahmadi M, Sid-Ahmed MA (2007) Investigating the performance of Naive-Bayes classifiers and K-nearest neighbor classifiers. In: International conference on convergence information technology (ICCIT 2007), Gyeongju, pp 1541–1546

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Riccardo Berta .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Falbo, V. et al. (2020). Analyzing Machine Learning on Mainstream Microcontrollers. In: Saponara, S., De Gloria, A. (eds) Applications in Electronics Pervading Industry, Environment and Society. ApplePies 2019. Lecture Notes in Electrical Engineering, vol 627. Springer, Cham. https://doi.org/10.1007/978-3-030-37277-4_12

Download citation

Publish with us

Policies and ethics