scientiGate Sign in

ArticleOpen access

Data-Driven Forecasting of Urban Electricity Demand: A Comparison of Machine Learning and Deep Learning Models

International Journal of Statistics, Econometrics and Data Analysis Applications·Vol. 1 · No. 1·Published 15 April 2026

Read on the journal website PDF
Cite

Cite this article

Reference

Lamiaa Fares, Moad El Kharrim, Mohamed Dakkon. Data-Driven Forecasting of Urban Electricity Demand: A Comparison of Machine Learning and Deep Learning Models. IJSEDAA. 2026;1(1).

Abstract

Accurate electricity load forecasting is essential for efficient energy planning, grid stability, and resource allocation in rapidly growing urban areas. This study investigates the predictive performance of several machine learning and deep learning algorithms for short-term electricity demand forecasting in the city of Tétouan, Morocco. The analysis relies on monthly electricity consumption data provided by the National Office of Electricity and Drinking Water (ONEE), covering the period from 2006 to 2024. A comprehensive forecasting framework was developed, including data preprocessing, Min-Max normalization, outlier treatment using the interquartile range (IQR) method, and lag-based feature construction. Four predictive models were evaluated: Extreme Gradient Boosting (XGBoost), Random Forest (RF), Long Short-Term Memory (LSTM), and Gated Recurrent Unit (GRU). Model performance was assessed using four widely adopted forecasting metrics: Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R2). The empirical results indicate that tree-based ensemble models outperform deep learning approaches under the considered dataset conditions. In particular, XGBoost achieved the highest predictive accuracy with the lowest error values and the highest explanatory power. These findings highlight the effectiveness of ensemble machine learning techniques for electricity demand forecasting and provide practical insights for urban energy management and operational planning in rapidly developing cities.

Keywords

Similar articles

  1. Comparative Analysis of AI-Driven Machine Learning Models for Fault Detection and Maintenance Optimization in Photovoltaic SystemsAbdellahi Moulaye Rchid, Moussa Attia et al. · Solar Energy and Sustainable Development · 2025
  2. A Comparison of Machine Learning Models for Stroke Risk PredictionMona Aljero · Wadi Alshatti University Journal of Pure and Applied Sciences · 2026
  3. Comparative Analysis of Machine Learning and Deep Learning Models for Stock Price Prediction: LSTM, GRU, and Random Forest ApproachesBilal Azdine, Anouar Hasbaoui et al. · IJSEDAA · 2026
  4. Méthodes non invasives par intelligence artificielle pour la détection de l'ictère néonatal : une revueS Atitallah, S Yahyaoui et al. · RMP · 2025
  5. Mind-Controlled Web Browser Navigation Based on Brain Computer InterfacesAhmed Yassine Ferdi, Abdelkader Ghazli · AJSS · 2025
  6. Keratoconus Classification Using Multimodal Imaging StrategyMustapha Aatila, Ali Kartit et al. · International Journal of Computer Engineering and Data Science · 2025
  7. A Multimodal Approach to Breast-Lesion Classification Using Ultrasound and Patient MetadataAmina Aboulmira, Mohamed Ouhami et al. · International Journal of Computer Engineering and Data Science · 2025
  8. Big Data in Sports Medicine and Exercise Science: Integrating Theory and Practice for Future InnovationsIsmail Dergaa, Karim Chamari · Tun J Sport Sci Med · 2024

Matched by shared keywords, MeSH terms, authors and title words, across all journals on the site.

Record taken from the official website of International Journal of Statistics, Econometrics and Data Analysis Applications, which publishes the full text under a CC BY 4.0 licence. Spotted an error in this record? contact@scientigate.com.