Ultra-fast Machine Learning Classifier Execution on IoT Devices without SRAM Consumption
Authors:
- 22 March 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 316-319
Abstract
With the introduction of edge analytics, IoT devices are becoming smart and ready for AI applications. A few modern ML frameworks are focusing on the generation of small-size ML models (often in kBs) that can directly be flashed and executed on tiny IoT devices, particularly the embedded systems. Edge analytics eliminates expensive device-to-cloud communications, thereby producing intelligent devices that can perform energy-efficient real-time offline analytics. Any increase in the training data results in a linear increase in the size and space complexity of the trained ML models, making them unable to be deployed on IoT devices with limited memory. To alleviate the memory issue, a few studies have focused on optimizing and fine-tuning existing ML algorithms to reduce their complexity and size. However, such optimization is usually dependent on the nature of IoT data being trained. In this paper, we presented an approach that protects model quality without requiring any alteration to the existing ML algorithms. We propose SRAM-optimized implementation and efficient deployment of widely used standard/stable ML-frameworks classifier versions (e.g., from Python scikit-learn). Our initial evaluation results have demonstrated that ours is the most resource-friendly approach, having a very limited memory footprint while executing large and complex ML models on MCU-based IoT devices, and can perform ultra-fast classifications while consuming 0 bytes of SRAM. When we tested our approach by executing it on a variety of MCU-based devices, the majority of models ported and executed produced 1-4x times faster inference results in comparison with the models ported by the sklearn-porter, m2cgen, and emlearn libraries.Keywords
Funding Information
- Science Foundation Ireland (SFI) (SFI/16/RC/3918,SFI/12/RC/2289_P2)
- European Regional Development Fund
This publication has 4 references indexed in Scilit:
- Avoid Touching Your Face: A Hand-to-face 3D Motion Dataset (COVID-away) and Trained Models for Smartwatches2020
- Adaptive Strategy to Improve the Quality of Communication for IoT Edge Devices2020
- Integrating machine learning in embedded sensor systems for Internet-of-Things applications2017
- Pruning of Random Forest classifiers: A survey and future directions2012