IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v349y2026ics0360544226006663.html

An attention-enhanced hybrid TCN–LSTM model optimized by a strengthened elitist genetic algorithm for heat load prediction

Author

Listed:
  • Li, Muyan
  • Wang, Haichao
  • Wang, Tianyu
  • Wang, Anqing
  • Wu, Wentao
  • Lahdelma, Risto

Abstract

Accurate heat load prediction is critical for the energy-efficient operation of district heating systems (DHS). Traditional machine learning models have been widely applied but still struggle to accurately capture the nonlinear, time-dependent, and multivariate-coupled heat load. Therefore, a novel model is proposed to enhance prediction performance, which integrates the strengthened elitist genetic algorithm (SEGA) to optimize the hyperparameters of the hybrid long short-term memory (LSTM) model enhanced by temporal convolutional network (TCN) and an attention mechanism (ATT). Three hybrid models based on particle swarm optimization (PSO), whale optimization algorithm (WOA), and traditional genetic algorithm (GA) are constructed for comparison. A real-world dataset consisting of 2880 h of heat load is used to evaluate the prediction performance of the proposed hybrid model. The results demonstrate that the SEGA–TCN–ATT–LSTM model achieves the highest predictive accuracy (R2 = 0.9860, MSE = 0.0070, MAE = 0.0547, and MAPE = 0.0769). Compared to baseline LSTM, the MAE and RMSE reduced by 52.36% and 55.24%, respectively. Moreover, SEGA–TCN–ATT–LSTM outperforms PSO–TCN–ATT–LSTM, WOA–TCN–ATT–LSTM, and GA–TCN–ATT–LSTM in terms of convergence speed, attaining an excellent balance between computational efficiency and prediction accuracy, with its effectiveness further validated on an independent district heating building dataset. The proposed model accurately and efficiently identifies the optimal hyperparameters configuration, thereby significantly improving overall heat load prediction performance.

Suggested Citation

  • Li, Muyan & Wang, Haichao & Wang, Tianyu & Wang, Anqing & Wu, Wentao & Lahdelma, Risto, 2026. "An attention-enhanced hybrid TCN–LSTM model optimized by a strengthened elitist genetic algorithm for heat load prediction," Energy, Elsevier, vol. 349(C).
  • Handle: RePEc:eee:energy:v:349:y:2026:i:c:s0360544226006663
    DOI: 10.1016/j.energy.2026.140563
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0360544226006663
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.energy.2026.140563?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    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:eee:energy:v:349:y:2026:i:c:s0360544226006663. 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: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/energy .

    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.