IMPLEMENTATION OF DEEP LEARNING NEURAL NETWORK LENET5 ON STM32 MICROCONTROLLER FOR IMAGE RECOGNITION | Thắng | TNU Journal of Science and Technology

IMPLEMENTATION OF DEEP LEARNING NEURAL NETWORK LENET5 ON STM32 MICROCONTROLLER FOR IMAGE RECOGNITION

About this article

Received: 16/05/21                Revised: 02/08/21                Published: 09/08/21

Authors

Huynh Viet Thang Email to author, University of Science and Technology – University of Danang

Abstract


The advent of smart mobile devices, along with the explosion of Internet-based applications and services, has led to the birth of a new computing paradigm – edge computing. Along with the current expanding trend of artificial intelligence applications, deploying artificial intelligence and deep learning applications on edge computing platforms is a prominent trend. This paper will investigate the ability to execute deep learning models using the convolutional neural network LeNet5 for deep learning problems implemented on low-power microcontrollers based on ARM architecture. We present the process of designing and implementing the handwritten digit recognition problem on the STM32 development board. We use Google Colab and Python language to train the convolutional neural network model, then map the trained model to execute on the STM32F411 microcontroller development board with the use of X-Cube-AI tool. The experimental results show that the implementation on the microcontroller achieves nearly the same performance as that on the general purpose computers.

Keywords


Deep learning; Edge computing; STM32 microcontroller; MNIST; Internet of Things

References


[1] Cisco, "Cisco Annual Internet Report (2018–2023) White Paper", 2020. [Online]. Available: https://www.cisco.com/c/en/us/solutions/collateral/executive-perspectives/annual-internet-report/white-paper-c11-741490.html. [Accessed May 10, 2021].

[2] X. Wang, Y. Han, V. C. M. Leung, D. Niyato, X. Yan, and X. Chen, "Convergence of edge computing and deep learning: A comprehensive survey," IEEE Communications Surveys & Tutorials, vol. 22, no. 2, pp. 869-904, 2020.

[3] J. Chen and X. Ran, "Deep Learning With Edge Computing: A Review," Proceedings of the IEEE 107, no. 8, pp. 1655-1674, 2019.

[4] Y. Wei, W. Xia, M. Lin, J. Huang, B. Ni, J. Dong, Y. Zhao, and S. Yan, "HCP: A flexible CNN framework for multi-label image classification," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 38, no. 9, pp. 1901-1907, 2015.

[5] A. B. Nassif, I. Shahin, I. Attili, M. Azzeh, and K. Shaalan, "Speech recognition using deep neural networks: A systematic review," IEEE Access, vol. 7, pp. 19143-19165, 2019.

[6] M. Bojarski, D. D. Testa, D. Dworakowski, B. Firner, B. Flepp, P. Goyal, and L. D. Jackel, "End to end learning for self-driving cars," 2016.

[7] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner, "Gradient-based learning applied to document recognition," Proceedings of the IEEE, vol. 86, no. 11, pp. 2278-2324, 1998.

[8] Y. LeCun and C. Cortes, “MNIST database”, 1998. [Online]. Available: http://yann.lecun.com/exdb/mnist/. [Accessed May 10, 2021].

[9] ST Microelectronics, “STM32F411 Microcontroller – Product Overview and Documentations”, 2020. [Online]. Available: https://www.st.com/en/microcontrollers-microprocessors/stm32f411.html. [Accessed May 10, 2021].

[10] STMicroelectronics, “STM32 solutions for Artificial Neural Networks”, 2020. [Online]. Available: https://www.st.com/content/st_com/en/ecosystems/stm32-ann.html. [Accessed May 10, 2021].

[11] Google, “Google Colaboratory (Colab) Introduction”, 2020. [Online]. Available: https://colab.research.google.com/notebooks/intro.ipynb. [Accessed May 10, 2021].

[12] A. Baldominos, Y. Saez, and P. Isasi, "A survey of handwritten character recognition with MNIST and EMNIST," Applied Sciences, vol. 9, no. 15, 2019, Art. no. 3169.




DOI: https://doi.org/10.34238/tnu-jst.4497

Refbacks

  • There are currently no refbacks.
TNU Journal of Science and Technology
Rooms 408, 409 - Administration Building - Thai Nguyen University
Tan Thinh Ward - Thai Nguyen City
Phone: (+84) 208 3840 288 - E-mail: jst@tnu.edu.vn
Based on Open Journal Systems
©2018 All Rights Reserved