| International Journal of Computer Applications |
| Foundation of Computer Science (FCS), NY, USA |
| Volume 187 - Number 100 |
| Year of Publication: 2026 |
| Authors: Jorge Pedro, Wendley Souza da Silva, Geraldo Eufrazio Martins Júnior |
10.5120/ijca77f4b325cae6
|
Jorge Pedro, Wendley Souza da Silva, Geraldo Eufrazio Martins Júnior . Development of an Energy Management System in Buildings based on Edge Computing and Machine Learning. International Journal of Computer Applications. 187, 100 ( Apr 2026), 18-31. DOI=10.5120/ijca77f4b325cae6
The exponential increase in demand for electricity, especially in urban centers, has put the sustainability and efficiency of energy supply systems in check [1]. This paper presents the development and experimental validation of an energy management and optimization system in Buildings Based on Edge Computing, using the ESP32-S3 microcontroller and embedded Machine Learning (ML) algorithms. The system consists of a central processing unit and distributed sensing and actuation modules, communicating via the ESP-NOW wireless protocol without the need for an external router. The voltage and current sensors, based on the IC ATM90E36 with resistive splitters and ZMCT103C current transformers, were validated in the laboratory with R² greater than 0.9998 and average errors of ±0.17% and ±0.30%, respectively — performance higher in current than reported by [2]. ESP-NOW communication at 20 meters with masonry obstacles achieved a 99.5% success rate and 5.8 ms average latency (250 ms interval). The Random Forest Regressor model, trained on 718 hourly samples of 30 days of continuous operation, achieved MAE of 70.71 W (22.7% reduction compared to baseline) and was integrated directly into the ESP32-S3 firmware with an inference time of 20 ms and no dependence on external connectivity.