Voltage forecasting in IoT systems: classical and AI models

Sandro Carneiro Ribeiro, Leonardo de Carvalho Vidal

Abstract


This paper presents a low-cost internet of things (IoT)-based electrical monitoring system with short-term voltage forecasting using an ESP32 microcontroller. The proposed system integrates electrical measurement, wireless communication, cloud storage, statistical analysis, and forecasting in a real residential installation. Voltage, current, active power, frequency, and power factor were continuously acquired, and the measurement system was experimentally validated against a calibrated reference instrument. The voltage time series was statistically characterized using the Augmented Dickey-Fuller test, autocorrelation function, and partial autocorrelation function, followed by the evaluation of six forecasting approaches: ARIMA, moving average, lagged regression, XGBoost, random forest, and long short-term memory (LSTM). A common chronological testing procedure was adopted to ensure a consistent out-of-sample comparison. Among the evaluated models, XGBoost achieved the best forecasting performance, with a root mean square error (RMSE) of 0.735 V, while random forest and lagged regression produced closely comparable results. The findings indicate that, for the monitored residential voltage series, relatively simple lag-based and machine-learning models can provide competitive short-term forecasting performance without the need for more computationally demanding architectures. These results highlight the relevance of temporal persistence and model complexity when designing IoT-based voltage forecasting systems.

Keywords


electrical voltage monitoring; ESP32; internet of things; lagged regression; machine learning; time series analysis; voltage forecasting

Full Text:

PDF


DOI: http://doi.org/10.11591/ijpeds.v17.i4.pp3075-3090

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Sandro Carneiro Ribeiro, Leonardo de Carvalho Vidal

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.