Electricity Energy Demand Prediction Using Computational Intelligence Techniques

Keywords: Electric Energy, Machine Learning, Meta-Heuristic, Gray Wolf Optimization


Energy is an important pillar for the economic development of a country. The demand for electricity is something that continues to grow, one of the contributing factors is the emergence of various technological equipment and the consequent use by the population. There are several resources that can be exploited to generate electricity, with hydroelectric power stations being one of the most used resources. As electrical energy cannot be stored, there is a need to estimate its consumption, looking for a way to meet this energy demand. In this context, this study seeks to apply machine learning techniques, using the Grey Wolf Optimization (GWO) meta-heuristic to optimize regression models, to predict the demand for electricity in Brazil, and it aims to estimate how much energy should be produced. For the predictions, the period between the years 2017 to 2022 was used, totaling around 2,190 samples. The methodology involves pre-processing, crossvalidation, parameters optimization and regression. The results show that Random Forest performed well in the experiments carried out, presenting a coefficient of determination (R2) of 0.8751, Root Mean Squared Error (RMSE) of 0.0554 and Mean Absolute Error (MAE) of 0.0348 in the best model.


Download data is not yet available.


I. P. Marcos and A. P. P. Júnior,” Forecast of Electricity Consumption in the Northeast Region of Brazil”. Journal of Engineering and Applied Research. v. 6, n. 3, p. 21-30, 2021.

L. C. Morais, Study on the panorama of electrical energy in Brazil and future trends. Dissertation - Electrical Engineering. UNESP. 2015.

B., Stearns, F. Rangel, F. Firmino F, Rangel and J. Oliveira, Predicting performance of enem candidates through socioeconomic data. In: Proceedings of the XXXVI SBC

Scientific Initiation Paper Competition. SBC, 2017.

Energy research company, Dea Technical Note 22/16, Projection of electricity demand for the next 10 years (2016 – 2026). 2016.

G. I. S. Ruas, T. A. C. Bragatto, M. V. Lamar, A. R. Aoki and S.

M. Rocco,” Forecasting electrical energy demand using artificial neural networks and support vector regression”. VI National Artificial

Intelligence Meeting. p. 1262-1271, 2007.

M. F. Alves, Forecasting electrical load demand by stepwise variable selection and artificial neural networks. Dissertation Electrical Engineering. UNESP. 2013.

F. Drebes, Electricity demand forecast using artificial intelligence. 2020. Monograph (Graduation in Electrical Engineering) – University of Vale do Taquari - Univates, Lajeado, 03 Dec. 2020.

J. F. Schreiber, I. E. M. Kühne, L. A. Destefani, A. T. Z. R. Sausen, M. Campos and P. S. Sausen, “Intelligent Networks: Data Mining as a Support Tool for the Analysis of Large Volumes of Data in Underground Energy Substations”. In: Brazilian Automatic Congress-CBA. 2020.

C. T. Oliveira, Optimization of a shell and tube heat exchanger using the grey wolf algorithm. Dissertation - Mechanical Engineering. Unisinos. 2015.2018.

G. P. Pizzolato, E. M. dos Santos, A. R. Fagundes, J. O. dosSantos and H. Hasselein, Optimizing the Operating Time of Overcurrent Relays Using the Grey Wolf Algorithm. Brazilian Symposium on Electrical Systems, 1(1). 2020.

P. A. Lachenbrunch, McNemar test, Wiley StatsRef: StatisticsReference Online. 2014.

R., Kohavi, “A study of cross-validation and bootstrap foraccuracy estimation and model selection”, Ijcai. Vol. 14. No. 2. 1995.

L. Breiman, Random forests. Machine learning, v. 45, p. 5-32,2001.

A. J. Smola, Learning with Kernels, PhD Thesis. TechnicalUniversity of Berlin, 1998.

S. Haykin, Neural networks: a comprehensive foundation. Prentice Hall PTR, 1998.

S. Mirjalili, S. M. Mirjalili and A. Lewis, “Grey wolf optimizer”.Advances in engineering software, v. 69, p. 46-61, 2014.

B., Stearns, F. Rangel, F. Firmino F, Rangel and J. Oliveira,Predicting performance of enem candidates through socioeconomic data. In: Proceedings of the XXXVI SBC

Scientific Initiation Paper Competition. SBC, 2017.

A. Boschetti and L. Massaron, Python data science essentials. Packt Publishing Ltd, 2016.

F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B.Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrotand and É. Duchesnay, “Scikit-learn: Machine learning in Python”. the Journal of machine Learning research, v. 12, p. 2825-2830, 2011.

F. Biscani and D, Izzo, “A parallel global multiobjectiveframework for optimization: pagmo”. Journal of Open Source Software, v. 5, n. 53, p. 2338, 2020.

How to Cite
C. Saporetti and B. da S. Macêdo, “Electricity Energy Demand Prediction Using Computational Intelligence Techniques”, LAJC, vol. 11, no. 2, pp. 80-88, Jun. 2024.
Research Articles for the Regular Issue