Open Access iconOpen Access

ARTICLE

Interpretable AI Hybrid Model for Electricity Demand Forecasting: Combining TFT and XGBoost in Smart Grid Data

Sobhan Manjili1, Saeid Jafarzadeh Ghoushchi1, Mohammad Reza Maghami2,*, Mazlan Mohamed3,*

1 Faculty of Industrial Engineering, Urmia University of Technology, Urmia, Iran
2 Strategic Research Institute (SRI), Asia Pacific University of Technology & Innovation (APU), Technology Park Malaysia, Bukit Jalil, Kuala Lumpur, Malaysia
3 Faculty of Artificial Intelligence and Cyber Security (FAIX), University Technical Malaysia Melaka, Melaka, Malaysia

* Corresponding Authors: Mohammad Reza Maghami. Email: email; Mazlan Mohamed. Email: email

Computer Modeling in Engineering & Sciences 2026, 147(1), 23 https://doi.org/10.32604/cmes.2026.076217

Abstract

Accurate electricity load forecasting is crucial for optimizing power distribution networks, especially in rapidly growing cities like Tabriz (annual consumption growth of 7.2%). This study presents a hybrid AI framework integrating the Temporal Fusion Transformer (TFT) and XGBoost for residual error correction. The model is trained and evaluated using actual consumption data from Tabriz’s distribution network (2021–2023). Compared to a baseline TFT model, the proposed framework demonstrates a 11.2% reduction in RMSE (from 0.1249 to 0.1109) and a 10.7% decrease in MAE (from 0.0998 to 0.0891). Attention mechanism analysis reveals temperature (importance coefficient = 0.32), weekly patterns (0.18), and industrial activity (0.21) as key factors influencing electricity consumption in Tabriz. Achieving a MAPE of 4.2%, the framework provides actionable insights into consumption drivers. This research demonstrates the effectiveness of the proposed model in managing load fluctuations characteristic of medium-sized cities and offers potential for adaptation to similar urban contexts. The dual capability for accurate prediction and interpretable feature analysis establishes a new benchmark for smart grid analytics in emerging smart city environments.

Keywords

Electricity load forecasting; hybrid AI models; Temporal Fusion Transformer (TFT); XGBoost; interpretable machine learning; smart grid analytics; urban energy management; attention mechanisms

Cite This Article

APA Style
Manjili, S., Ghoushchi, S.J., Maghami, M.R., Mohamed, M. (2026). Interpretable AI Hybrid Model for Electricity Demand Forecasting: Combining TFT and XGBoost in Smart Grid Data. Computer Modeling in Engineering & Sciences, 147(1), 23. https://doi.org/10.32604/cmes.2026.076217
Vancouver Style
Manjili S, Ghoushchi SJ, Maghami MR, Mohamed M. Interpretable AI Hybrid Model for Electricity Demand Forecasting: Combining TFT and XGBoost in Smart Grid Data. Comput Model Eng Sci. 2026;147(1):23. https://doi.org/10.32604/cmes.2026.076217
IEEE Style
S. Manjili, S. J. Ghoushchi, M. R. Maghami, and M. Mohamed, “Interpretable AI Hybrid Model for Electricity Demand Forecasting: Combining TFT and XGBoost in Smart Grid Data,” Comput. Model. Eng. Sci., vol. 147, no. 1, pp. 23, 2026. https://doi.org/10.32604/cmes.2026.076217



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
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.
  • 288

    View

  • 72

    Download

  • 0

    Like

Share Link