IDEAS home Printed from https://ideas.repec.org/a/gam/jeners/v18y2025i15p3984-d1710222.html
   My bibliography  Save this article

An Ensemble Model of Attention-Enhanced N-BEATS and XGBoost for District Heating Load Forecasting

Author

Listed:
  • Shaohua Yu

    (School of Intelligent Manufacturing, Nanjing University of Science and Technology, Nanjing 210094, China)

  • Xiaole Yang

    (School of Cyber Science and Engineering, Nanjing University of Science and Technology, Nanjing 210094, China)

  • Hengrui Ye

    (School of Cyber Science and Engineering, Nanjing University of Science and Technology, Nanjing 210094, China)

  • Daogui Tang

    (School of Transportation and Logistics Engineering, Wuhan University of Technology, Wuhan 430063, China)

  • Hamidreza Arasteh

    (Center for Research on Microgrids (CROM), Huanjiang Laboratory, Shaoxing 311800, China)

  • Josep M. Guerrero

    (Center for Research on Microgrids (CROM), Huanjiang Laboratory, Shaoxing 311800, China)

Abstract

Accurate heat load forecasting is essential for the efficiency of District Heating Systems (DHS). Still, it is challenged by the need to model long-term temporal dependencies and nonlinear relationships with weather and other factors. This study proposes a hybrid deep learning framework combining an attention-enhanced Neural Basis Expansion Analysis for Time Series (N-BEATS) model and eXtreme Gradient Boosting (XGBoost). The N-BEATS component, with a multi-head self-attention mechanism, captures temporal dynamics, while XGBoost models non-linear impacts of external variables. Predictions are integrated using an optimized weighted averaging strategy. Evaluated on a dataset from 103 heating units, the model outperformed 13 baselines, achieving an MSE of 0.4131, MAE of 0.3732, RMSE of 0.6427, and R 2 of 0.9664. This corresponds to a reduction of 32.6% in MSE, 32.0% in MAE, and 17.9% in RMSE, and an improvement of 5.1% in R 2 over the best baseline. Ablation studies and statistical tests confirmed the effectiveness of the attention mechanism and ensemble strategy. This model provides an efficient solution for DHS load forecasting, facilitating optimized energy dispatch and enhancing system performance.

Suggested Citation

  • Shaohua Yu & Xiaole Yang & Hengrui Ye & Daogui Tang & Hamidreza Arasteh & Josep M. Guerrero, 2025. "An Ensemble Model of Attention-Enhanced N-BEATS and XGBoost for District Heating Load Forecasting," Energies, MDPI, vol. 18(15), pages 1-22, July.
  • Handle: RePEc:gam:jeners:v:18:y:2025:i:15:p:3984-:d:1710222
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1996-1073/18/15/3984/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1996-1073/18/15/3984/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jeners:v:18:y:2025:i:15:p:3984-:d:1710222. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.