Electricity demand forecasting in industrial and residential facilities using ensemble machine learning





Energy, forecasting, artificial intelligence


This article presents electricity demand forecasting models for industrial and residential facilities, developed using ensemble machine learning strategies. Short term electricity demand forecasting is beneficial for both consumers and suppliers, as it allows improving energy efficiency policies and the rational use of resources. Computational intelligence models are developed for day-ahead electricity demand forecasting. An ensemble strategy is applied to build the day-ahead forecasting model based on several one-hour models. Three steps of data preprocessing are carried out, including treating missing values, removing outliers, and standardization. Feature extraction is performed to reduce overfitting, reducing the training time and improving the accuracy. The best model is optimized using grid search strategies on hyperparameter space. Then, an ensemble of 24 instances is generated to build the complete day-ahead forecasting model. Considering the computational complexity of the applied techniques, they are developed and evaluated on the National Supercomputing Center (Cluster-UY), Uruguay. Three different real data sets are used for evaluation: an industrial park in Burgos (Spain), the total electricity demand for Uruguay, and demand from a distribution substation in Montevideo (Uruguay). Standard performance metrics are applied to evaluate the proposed models. The main results indicate that the best day ahead model based on ExtraTreesRegressor has a mean absolute percentage error of 2.55% on industrial data, 5.17% on total consumption data and 9.09% on substation data.

= 744 veces | PDF
= 566 veces|


Download data is not yet available.

Author Biographies

Rodrigo Porteiro, Universidad UTE

  Master´´´ s degree, Graduate Student Faculty of Engineering 

Luis Hernández-Callejo, Universidad de Valladolid

PhD Professor at Universidad of Valladolid

Sergio Nesmachnow, Universidad de la República

PhD Professor


A. Diniz and et al, “Short/mid-term hydrothermal dispatch and spot pricing for large-scale systems-the case of Brazil,” in 2018 Power Systems Computation Conference (PSCC), Dublin, Ireland, 2018, pp. 1–7.

L. Resende, M. Soares, and P. Ferreira, “Electric power load in Brazil:View on the long-term forecasting models,” Production, vol. 28, October 8 2018. [Online]. Available: https://doi.org/10.1590/0103-6513.170081

D. Lazos, A. Sproul, and M. Kay, “Optimisation of energy management in commercial buildings with weather forecasting inputs: A review,” Renewable and Sustainable Energy Reviews, vol. 39, November 2014. [Online]. Available: https://doi.org/10.1016/j.rser.2014.07.053

S. Fan, L. Chen, and W. Lee, “Machine learning based switching model for electricity load forecasting,” Energy Conversion and Management, vol. 49, no. 6, June 2008. [Online]. Available: https://doi.org/10.1016/j.enconman.2015.07.041

A. Lahouar and J. Slama, “Day-ahead load forecast using random forest and expert input selection,” Energy Conversion and Management, vol. 103, October 2015. [Online]. Available: https://doi.org/10.1016/j.enconman.2015.07.041

S. S. Ahmed, R. Thiruvengadam, S. Karrthikeyaa, and V. Vijayaraghavan, “A two-fold machine learning approach for efficient day-ahead load prediction at hourly granularity for NYC,” in FICC 2019: Advances in Information and Communication, 2019, pp. 84–97.

R. Porteiro, S. Nesmachnow, and L. Hernández, “Short term load forecasting of industrial electricity using machine learning,” in Ibero-American Congress on Information Management and Big Data (ICSC-CITIES 2019), 2019, pp. 146–161.

J. Chavat, J. Graneri, and S. Nesmachnow, “Household energy disaggregation based on pattern consumption similarities,” in Ibero-American Congress on Information Management and Big Data (ICSC-CITIES 2019), 2019, pp. 54–69.

R. Bellman, Ed., Dynamic programming, ser. Princeton Landmarks in Mathematics and Physics. United States of America: Princeton University Press, 1957.

A. Soliman and A. Al-Kandari. (2010) Electrical load forecasting: modeling and model construction. [Elsevier Inc.]. [Online]. Available: https://bit.ly/2X7OdEK

M. T. Hagan and S. M. Behr, “The time series approach to short term load forecasting,” IEEE Transactions on Power Systems, vol. 2, no. 3, August 1987. [Online]. Available: https://doi.org/10.1109/TPWRS.1987.43352101

J. W. Taylor and P. E. McSharry, “Short-term load forecasting methods: An evaluation based on European Data,” IEEE Transactions on Power Systems, vol. 22, no. 4, November 2007. [Online]. Available: https://doi.org/10.1109/TPWRS.2007.907583

G. Dudek, “Pattern-based local linear regression models for short-term load forecasting,” Electric Power Systems Research, vol. 130, January 2016. [Online]. Available: https://doi.org/10.1016/j.epsr.2015.09.001

C. Moreno, J. Salcedo, E. Rivas, and A. Orjuela, “A method for the monthly electricity demand forecasting in Colombia based on wavelet analysis and a nonlinear autoregressive model,” Ingeniería, vol. 16, no. 2, July 2011. [Online]. Available: https://doi.org/10.14483/23448393.3836

L. P. Caterine, K. Lin, and P. Molnár, “Electricity consumption modelling: A case of Germany,” Economic Modelling, vol. 55, June 2016. [Online]. Available: https://doi.org/10.1016/j.econmod.2016.02.010

H. Son and C. Kim, “Short-term forecasting of electricity demand for the residential sector using weather and social variables,” Resources, conservation and recycling, vol. 123, August 2017. [Online]. Available: https://doi.org/10.1016/j.resconrec.2016.01.016

C. J. Franco, J. D. Velásquez, and Y. Olaya, “Caracterización de la demanda mensual de electricidad en Colombia usando un modelo de componentes no observables,” Cuadernos de Administración, vol. 21, no. 36, pp. 221–235, jul 2008.

I. Qamber, “Peak load estimation studies in several countries,” Electric Power Systems Research, vol. 1, no. 2, 2017.

E. Burger and S. Moura, “Gated ensemble learning method for demand-side electricity load forecasting,” Energy and Buildings, vol. 109, December 15 2015. [Online]. Available: https://doi.org/10.1016/j.enbuild.2015.10.019

L. Silva, “A feature engineering approach to wind power forecasting: GEFCom 2012,” International Journal of Forecasting, vol. 30, no. 2, April 2014. [Online]. Available: https://doi.org/10.1016/j.ijforecast.2013.07.007

M. De Felice, A. Alessandri, and P. Ruti, “Electricity demand forecasting over Italy: Potential benefits using numerical weather prediction models,” Electric Power Systems Research, vol. 104, November 2013. [Online]. Available: https://doi.org/10.1016/j.epsr.2013.06.004

M. Lopez, B. Carro, and A. Sanchez, “Neural network architecture based on gradient boosting for IoT traffic prediction,” Future Generation Computer Systems, vol. 100, November 2019. [Online]. Available: https://doi.org/10.1016/j.future.2019.05.060

M. Lopez, A. Sanchez, and B. Carro, “Review of methods to predict connectivity of IoT wireless devices,” Ad Hoc & Sensor Wireless Networks, vol. 38, no. 1-4, pp. 125–141, 2017.

J. Chavat, S. Nesmachnow, and J. Graneri, “Non-intrusive energy disaggregation by detecting similarities in consumption patterns,” Revista Facultad de Ingeniería Universidad de Antioquia, no. 98, 2020. [Online]. Available: https://doi.org/10.17533/udea.redin.20200370

N. Amjady and F. Keynia, “Short-term load forecasting of power systems by combination of wavelet transform and neuro-evolutionary algorithm,” Energy, vol. 34, no. 1, January 2009. [Online]. Available: https://doi.org/10.1016/j.energy.2008.09.020

Z. Bashir and M. El-Hawary, “Applying wavelets to short-term load forecasting using pso-based neural networks,” IEEE Transactions on Power Systems, vol. 24, no. 1, February 2009. [Online]. Available: https://doi.org/10.1016/j.energy.2008.09.020

Y. Chen and et al, “Short-term load forecasting: Similar day-based wavelet neural networks,” vol. 25, no. 1, February 2010. [Online]. Available: https://doi.org/10.1109/TPWRS.2009.2030426

C. Kim, I. Yu, and Y. Song, “Kohonen neural network and wavelet transform based approach to short-term load forecasting,” Electric Power Systems Research, vol. 63, no. 3, Octuber 28 2002. [Online]. Available: https://doi.org/10.1016/S0378-7796(02)00097-4

S. Nesmachnow, S. Bana, and R. Massobrio, “A distributed platform for big data analysis in smart cities: combining intelligent transportation systems and socioeconomic data for Montevideo, Uruguay,” EAI Endorsed Transactions on Smart Cities, vol. 2, no. 5, December 2017. [Online]. Available: https://doi.org/10.4108/eai.19-12-2017.153478

V. Jakkula and D. Cook, “Outlier detection in smart environment structured power datasets,” in 2010 Sixth International Conference on Intelligent Environments, Kuala Lumpur, Malaysia, 2010, pp. 29–33.

A. Kaleem, K. Ghori, Z. Khanzada, and N. Malik, “Address standardization using supervised machine learning,” in 2011 International Conference on Computer Communication and Management, 2011, pp. 441–445.

W. McKinney, “Data structures for statistical computing in Python,” in Proceedings of the 9th Python in Science Conference (SciPy 2010), 2010, pp. 56–61.

F. Pedregosa and et al, “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, Nov. 2011.

S. Nesmachnow and S. Iturriaga, “Cluster-UY: Collaborative scientific high performance computing in Uruguay,” in International Conference on Supercomputing in Mexico (ISUM 2019), 2019, pp. 188–202.

C. Zhang, Y. Li, Z. Yu, and F. Tian, “Feature selection of power system transient stability assessment based on random forest and recursive feature elimination,” in 2016 IEEE PES Asia-Pacific Power and Energy Engineering Conference (APPEEC), Xi’an, China, 2016, pp. 1264–1268.

L. Buitinck and et al, “API design for machine learning software: Experiences from the scikit-learn project,” ArXiv, pp. 108–122, Sep. 2013.

G. Colacurcio, S. Nesmachnow, J. Toutouh, F. Luna, and D. Rossit, “Multiobjective household energy planning using evolutionary algorithms,” in Ibero-American Congress on Information Management and Big Data (ICSC-CITIES 2019), 2019, pp. 269–284.




How to Cite

Porteiro, R., Hernández-Callejo, L., & Nesmachnow, S. (2020). Electricity demand forecasting in industrial and residential facilities using ensemble machine learning . Revista Facultad De Ingeniería Universidad De Antioquia, (102), 9–25. https://doi.org/10.17533/udea.redin.20200584

Most read articles by the same author(s)

1 2 > >>