EventsThe 3rd International Electronic Conference on Machines and Applications
Published
This submission belongs to the session S1. Automation and Control Systems of the event The 3rd International Electronic Conference on Machines and Applications
Published date
07 May, 2026
Academic Editor
author-avatarJames Lam
Citation
CHARLES PEREIRA DOS SANTOS, CARLOS MAURÍCIO SERÓDIO FIGUEIREDO, FÁBIO DE SOUSA CARDOSO, Comparative Evaluation of Lightweight Neural Models for Embedded Automation and Control Using Temperature and Humidity Times–Series on ESP32, in Proceedings of The 3rd International Electronic Conference on Machines and Applications, 12 May–14 May 2026, MDPI: Basel, Switzerland
Share
Email
Facebook
Twitter
LinkedIn

Comparative Evaluation of Lightweight Neural Models for Embedded Automation and Control Using Temperature and Humidity Times–Series on ESP32

1. Technology and Innovation HUB, School of Technology (EST), Amazonas State University (UEA), Av. Darcy Vargas, 1200, Parque 10 de Novembro, Manaus, AM, CEP: 69050-020, Brazil, Brazil
Abstract

Embedded automation and control systems increasingly depend on continuous monitoring of environmental variables, particularly temperature and relative humidity, under strict energy and computational constraints. Recent advances in Tiny Machine Learning (TinyML) enable predictive models to be executed directly on microcontrollers, requiring explicit trade-offs between predictive accuracy, memory footprint, execution latency, energy consumption, and operational robustness. This work presents a comparative evaluation of three lightweight neural network architectures—a multilayer perceptron (MLP), a one-dimensional convolutional neural network (Conv1D Tiny), and a long short-term memory network (LSTM)—implemented on an ESP32 microcontroller for temperature and humidity time-series modeling. Two execution scenarios are investigated, in which both replay and field modes employ the same on-device rolling window composed of 24 valid samples. In replay mode, deterministic input data are used as a deterministic test bench for controlled validation. In field mode, the rolling window advances as new sensor samples are acquired during real operation. Experiments were conducted using an offline evaluation workflow, referred to as LiteML-Edge, employed as an experimental tool for model training, testing, and consistency checks between offline evaluation and on-device execution. Model performance is assessed using energy-aware deployment-orientated criteria central to control systems, including inference latency, flash and RAM utilization, and energy-related measurements, together with standard regression metrics such as mean absolute error (MAE), root mean squared error (RMSE), and coefficient of determination (R²). Results indicate that the LSTM achieves higher predictive accuracy under controlled replay conditions, while the MLP demonstrates higher robustness and lower computational overhead during field operation. The Conv1D Tiny model exhibits intermediate behavior, balancing limited temporal modeling capability with moderate memory usage and energy efficiency. These results confirm that no single architecture is universally optimal and that model selection should be guided by execution context and control constraints.

Keywords
Embedded Automation
Control Engineering
Temperature and Humidity Monitoring
TinyML
Energy-Aware Systems
Time-Series Prediction
An ESP32-CAM Embedded Data Infrastructure for Database-Driven Emotion-Based Student Readiness Assessment
Intelligent Hybrid Manufacturing with Real-Time Defect Monitoring and CNN–LSTM-Based Process Control