Abstract
This paper investigated the application of unsupervised learning on a mainstream microcontroller, like the STM32 F4. We focused on the simple K-means technique, which achieved good accuracy levels on the four test datasets. These results are similar to those obtained by training a k-nearest neighbor (K-NN) classifier with the actual labels, apart from one case, in which K-NN performs consistently better.
We propose an autonomous edge learning and inferencing pipeline, with a K-NN classifier which is periodically (i.e., when a given number of new samples have arrived) trained with the labels obtained from clustering the dataset via K-means. This system performs only slightly worse than pure K-means in terms of accuracy (particularly with small data subsets), while it achieves a reduction of about two orders of magnitude in latency times. To the best of our knowledge, this is the first proposal of this kind in literature for resource-limited edge devices.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Albanese, A., d’Acunto, D., Brunelli, D.: Pest detection for precision agriculture based on IoT machine learning. In: Applepies 2019, Lecture Notes in Electrical Engineering, vol. 627, pp. 65–72 (2020). https://doi.org/10.1007/978-3-030-37277-4_8
Lipnicki, P., Lewandowski, D., Syfert, M., Sztyber, A., Wnuk, P.: Inteligent IoTSP - implementation of embedded ML AI tensorflow algorithms on the NVIDIA jetson Tx Chip. In: Proceedings-2019 International Conference on Future Internet of Things and Cloud, FiCloud 2019, pp. 296–302 (2019). https://doi.org/10.1109/ficloud.2019.00049
Sakr, F., Bellotti, F., Berta, R., De Gloria, A.: Machine learning on mainstream microcontrollers. Sensors 20(9), 2638 (2020). https://doi.org/10.3390/s20092638
Lin, L., Liao, X., Jin, H., Li, P.: Computation offloading towards edge computing. Proc. IEEE 107, 1584–1607 (2019)
Jain, A.K.: Data clustering: 50 years beyond K-means. Pattern Recogn. Lett. 31(8), 651–666 (2010). https://doi.org/10.1016/j.patrec.2009.09.011
Agrawal, U., et al.: Combining clustering and classification ensembles: a novel pipeline to identify breast cancer profiles. Artif. Intell. Med. 97, 27–37 (2019). https://doi.org/10.1016/j.artmed.2019.05.002
De Oliveira, E., Gomes Basoni, H., Saúde, M.R., Ciarelli, P.M.: Combining Clustering and Classification Approaches for Reducing the Effort of Automatic Tweets Classification. https://doi.org/10.5220/0005159304650472
Chakraborty, T., Pierazzi, F., Subrahmanian, V.S.: EC2: ensemble clustering and classification for predicting android malware families. In: IEEE Transactions on Dependable and Secure Computing, vol. 17, no. 2, pp. 262–277, 1 March-April 2020. https://doi.org/10.1109/tdsc.2017.2739145
Papas, D., Tjortjis, C.: Combining clustering and classification for software quality evaluation. In: Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), vol. 8445. LNCS, pp. 273–286 (2014). https://doi.org/10.1007/978-3-319-07064-3_22
Marsland, S.: Machine Learning An Algorithmic Perspective, 2nd edn. CRC Press, Boca Raton (2015)
Shalev-Shwartz, S., Ben-David, S.: Understanding Machine Learning: From Theory to Algorithms. Cambridge University, New York (2014)
STM32 High Performance Microcontrollers (MCUs)—STMicroelectronics. http://www.st.com/en/microcontrollers-microprocessors/stm32-highperformance-mcus.html. Accessed 23 Jul 2020
Sikora, M., Wrobel, U.: Application of rule induction algorithms for analysis of data collected by seismic hazard monitoring systems in coal mines. Arch. Min. Sci. 55(1), 91–114 (2010)
Bächlin, M., Plotnik, M., Roggen, D., Giladi, N., Hausdorff, J.M., Tröster, G.: A wearable system to assist walking of Parkinsońs disease patients benefits and challenges of context-triggered acoustic cueing. Methods Inf. Med. 49(1), 88–95 (2010). https://doi.org/10.3414/ME09-02-0003
IoT_failure_prediction | Kaggle. https://www.kaggle.com/mukundhbhushan/iot-failure-prediction. Accessed 23 Jul 2020
Heart Disease UCI | Kaggle. https://www.kaggle.com/ronitf/heart-disease-uci/kernels. Accessed 23 Jul 2020
Edge-Learning-Machine GitHub. https://github.com/Edge-Learning-Machine. Accessed 31 Jul 2020
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Bellotti, F., Berta, R., De Gloria, A., Doyle, J., Sakr, F. (2021). Exploring Unsupervised Learning on STM32 F4 Microcontroller. In: Saponara, S., De Gloria, A. (eds) Applications in Electronics Pervading Industry, Environment and Society. ApplePies 2020. Lecture Notes in Electrical Engineering, vol 738. Springer, Cham. https://doi.org/10.1007/978-3-030-66729-0_5
Download citation
DOI: https://doi.org/10.1007/978-3-030-66729-0_5
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-66728-3
Online ISBN: 978-3-030-66729-0
eBook Packages: EngineeringEngineering (R0)