Comparative analysis of the effectiveness of TinyML models for sensor data classification tasks on the ESP32 platform
DOI:
https://doi.org/10.30837/rt.2026.1.224.08Keywords:
TinyML, Edge AI, microcontroller ESP32, machine learning, neural networks, 1D CNN, classification of sensor data, inertial sensors, signal processing, internet of thingsAbstract
The article addresses the problem of efficient analysis of continuous streams of sensor data in embedded systems with limited hardware resources. Traditionally, the processing of large volumes of data obtained from inertial sensors, such as gyroscopes and accelerometers, has been performed using powerful cloud computing platforms. However, this approach has several disadvantages, including data transmission latency, dependence on network infrastructure, and increased energy consumption. In this context, the use of Edge Artificial Intelligence technologies, particularly the TinyML concept, is becoming increasingly relevant, as it enables machine learning inference to be executed directly on microcontrollers.
The aim of this study is to conduct a comparative analysis of the efficiency of different neural network architectures for the task of spatial sensor data classification under resource-constrained conditions. The experimental part of the research was implemented on the ESP32-C3 microcontroller, which represents a typical modern energy-efficient platform widely used in Internet of Things systems. Within the study, four machine learning models were developed and evaluated: Shallow Dense, Deep Dense with Dropout regularization, a one-dimensional convolutional neural network (1D CNN), and a hybrid architecture combining different layer types.
The results of hardware profiling demonstrated that the 1D CNN model provides the best balance between classification accuracy, inference speed, and memory usage. Due to the ability of convolutional filters to effectively extract spatial-temporal features from sensor data sequences, this architecture achieved the highest validation accuracy. At the same time, the hybrid model also demonstrated high performance; however, its practical use appeared less efficient due to increased computational complexity and longer inference time.
Special attention in the study was paid to the analysis of the impact of model quantization on classification accuracy. Experimental results showed that applying 8-bit quantization (Int8) leads to significant accuracy degradation because spectral features obtained through the Fast Fourier Transform contain important fractional components. Their forced compression into an integer representation distorts the feature space and consequently reduces classification performance.
Additional analysis of hardware resource consumption confirmed that the use of models with 32-bit floating-point precision (Float32) is feasible even for microcontrollers such as the ESP32-C3. The required RAM and Flash memory remain relatively small, allowing the system to be integrated into more complex embedded solutions. The overall system response time, including signal processing and neural network inference, is approximately 64 ms, which satisfies the requirements of real-time systems.
The obtained results confirm the effectiveness of TinyML technologies for developing autonomous intelligent devices capable of performing complex sensor data analysis without relying on cloud computing resources. The proposed approach can be applied in motion recognition systems, wearable devices, robotics platforms, and other Internet of Things applications.
References
Banos O., Galvez J. M., Damas M., Pomares H., & Rojas I. (2014). Window size impact in human activity rec-ognition // Sensors. 2014. No14(4). Р. 6474–6499. URL: https://www.mdpi.com/1424-8220/14/4/6474.
Oppenheim A. V., & Schafer R. W. (2010). Discrete-Time Signal Processing (3rd ed.). Pearson.
Goodfellow I., Bengio Y., & Courville A. (2016). Deep Learning. MIT Press. URL:https://www.deeplearningbook.org/.
Jacob B., Kligys S., Chen B., Zhu M., Tang M., Howard A., Adam H., & Kalenichenko D. Quantization and training of neural networks for efficient integer-arithmetic-only inference // Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2018. P. 2704–2713. URL:https://openaccess.thecvf.com/content_cvpr_2018/html/Jacob_Quantization_and_Training_CVPR_2018_ pa-per.html.
Srivastava N., Hinton G., Krizhevsky A., Sutskever I., & Salakhutdinov R. Dropout: a simple way to prevent neural networks from overfitting // The Journal of Machine Learning Research. 2014. No15(1). P.1929–1958. URL:https://jmlr.org/papers/v15/srivastava14a.html.
Kiranyaz, S., Avci, O., Abdeljaber, O., Ince, T., Gabbouj, M., & Inman, D. J. 1D convolutional neural networks and applications: A survey // Mechanical Systems and Signal Processing. 2021. No 151. P. 107398. URL:https://doi.org/10.1016/j.ymssp.2020.107398.
Kim J., Kim H., & Kim J. Hyperparameter Optimization Method Based on Harmony Search Algorithm to Im-prove Performance of 1D CNN Human Respiration Pattern Recognition System // Sensors. (2020). Vol.20(13). P. 3697. URL:https://www.mdpi.com/1424-8220/20/13/3697.
Espressif Systems. (2024). ESP32-C3 Series Datasheet. URL:https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf.
InvenSense. (2013). MPU-6000 and MPU-6050 Product Specification Revision 3.4. URL:https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-6000-Datasheet1.pdf.
Roh Y., Heo G., & Whang,S. E. A survey on data collection for machine learning: A big data-ai integration perspective // IEEE Transactions on Knowledge and Data Engineering. 2019. Vol. 33(4). P. 1328–1347. URL:https://ieeexplore.ieee.org/document/8936454.
Warden P., & Situnayake D. (2019). TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers. O'Reilly Media. URL:https://www.oreilly.com/library/view/tinyml/9781492052001/.
Downloads
Published
How to Cite
Issue
Section
License
Authors who publish with this journal agree to the following terms:
1. Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).

