Open Access iconOpen Access



Machine Learning Empowered Electricity Consumption Prediction

Maissa A. Al Metrik*, Dhiaa A. Musleh

Department of Computer Science, College of Computer Science and Information Technology, Imam Abdulrahman Bin Faisal University, Dammam, 31441, Saudi Arabia

* Corresponding Author: Maissa A. Al Metrik. Email: email

(This article belongs to this Special Issue: Machine Learning Empowered Secure Computing for Intelligent Systems)

Computers, Materials & Continua 2022, 72(1), 1427-1444.


Electricity, being the most efficient secondary energy, contributes for a larger proportion of overall energy usage. Due to a lack of storage for energy resources, over supply will result in energy dissipation and substantial investment waste. Accurate electricity consumption prediction is vital because it allows for the preparation of potential power generation systems to satisfy the growing demands for electrical energy as well as: smart distributed grids, assessing the degree of socioeconomic growth, distributed system design, tariff plans, demand-side management, power generation planning, and providing electricity supply stability by balancing the amount of electricity produced and consumed. This paper proposes a medium-term prediction model that can predict electricity consumption for a given location in Saudi Arabia. Hence, this study implemented a standalone Artificial Neural Network (ANN) model and bagging ensemble for predicting total monthly electricity consumption in 18 locations across Saudi Arabia. The dataset used in this research is gathered exclusively from the Saudi Electric Company. The pre-processing phase included normalizing the data using min-max method and mapping the cyclical attribute to its sine and cosine facets. The number of neurons and learning rate of the standalone model were optimized using hyperparameter tuning. Finally, the standalone model was tested against the bagging ensemble using the optimized ANN. The bagging ensemble with an optimized ANN as the chosen classifier outperformed the standalone ANN model. The results for the proposed model produced 0.9116 Correlation Coefficient (CC), 0.2836 Mean Absolute Percentage Error (MAPE), 0.4578, Root Mean Squared Percentage Error (RMSPE), 0.0298 MAE, and 0.069 Root Mean Squared Error (RMSE), respectively.


Cite This Article

M. A. Al Metrik and D. A. Musleh, "Machine learning empowered electricity consumption prediction," Computers, Materials & Continua, vol. 72, no.1, pp. 1427–1444, 2022.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 2033


  • 1208


  • 0


Share Link