IDEAS home Printed from https://ideas.repec.org/a/eee/appene/v389y2025ics0306261925004428.html
   My bibliography  Save this article

CityTFT: A temporal fusion transformer-based surrogate model for urban building energy modeling

Author

Listed:
  • Dai, Ting-Yu
  • Niyogi, Dev
  • Nagy, Zoltan

Abstract

Almost one-third of global greenhouse gas emissions are from buildings and nearly 70 % of energy is consumed in urban areas. To address this as a long-term issue, accurately predicting building energy use at the urban level is indispensable. Urban Building Energy Modeling (UBEM) is an emerging method to investigate urban design and energy systems at urban and neighborhood levels. UBEM methods are considered reasonably accurate in simulating the performance of almost any building combinations. However, customized urban projects, and optimization problems involving many UBEM scenarios, are time-consuming and labor-intensive, and based on the scalability, the simulation runtime can be exponentially high if a broad set of design variations is analyzed. Here, we propose a data-driven approach to generate a surrogate model for UBEM and accelerate the simulation process. Based on the extensively used forecasting model, Temporal Fusion Transformer (TFT), we extract the static covariate encoder and variable selection network from the TFT structure while adding a small neural network to model the probability of triggering heating and cooling needs. The major advantages compared to other surrogate models are: (i) A sequential input in the transformer-based model to improve the temporal accuracy. (ii) A physics-inspired training strategy that builds on weather dynamics and urban interactions for hourly energy demands concurrently with a customized loss function. (iii) Improved generalizability for the proposed surrogate model using open and public data. In our study of 114 buildings in different climate zones in the US, our model predicts heating and cooling triggers in unseen climate dynamics with an F1 score of 0.83 while the root mean squared error (RMSE) of hourly loads was 71.51 kWh. This model is available for interfacing with climate projections and city-scale analysis as part of atmospheric urban digital twins.

Suggested Citation

  • Dai, Ting-Yu & Niyogi, Dev & Nagy, Zoltan, 2025. "CityTFT: A temporal fusion transformer-based surrogate model for urban building energy modeling," Applied Energy, Elsevier, vol. 389(C).
  • Handle: RePEc:eee:appene:v:389:y:2025:i:c:s0306261925004428
    DOI: 10.1016/j.apenergy.2025.125712
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.apenergy.2025.125712?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 search for a different version of it.

    References listed on IDEAS

    as
    1. Beckman, William A. & Broman, Lars & Fiksel, Alex & Klein, Sanford A. & Lindberg, Eva & Schuler, Mattias & Thornton, Jeff, 1994. "TRNSYS The most complete solar energy system modeling and simulation software," Renewable Energy, Elsevier, vol. 5(1), pages 486-488.
    2. Sezer, Nurettin & Yoonus, Hamad & Zhan, Dongxue & Wang, Liangzhu (Leon) & Hassan, Ibrahim Galal & Rahman, Mohammad Azizur, 2023. "Urban microclimate and building energy models: A review of the latest progress in coupling strategies," Renewable and Sustainable Energy Reviews, Elsevier, vol. 184(C).
    3. Lim, Bryan & Arık, Sercan Ö. & Loeff, Nicolas & Pfister, Tomas, 2021. "Temporal Fusion Transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1748-1764.
    4. Wang, Xiaoyu & Tian, Shuai & Ren, Jiawen & Jin, Xing & Zhou, Xin & Shi, Xing, 2024. "A novel resistance-capacitance model for evaluating urban building energy loads considering construction boundary heterogeneity," Applied Energy, Elsevier, vol. 361(C).
    5. Somu, Nivethitha & M R, Gauthama Raman & Ramamritham, Krithi, 2020. "A hybrid model for building energy consumption forecasting using long short term memory networks," Applied Energy, Elsevier, vol. 261(C).
    6. Westermann, Paul & Welzel, Matthias & Evins, Ralph, 2020. "Using a deep temporal convolutional network as a building energy surrogate model that spans multiple climate zones," Applied Energy, Elsevier, vol. 278(C).
    7. Ciulla, G. & D'Amico, A., 2019. "Building energy performance forecasting: A multiple linear regression approach," Applied Energy, Elsevier, vol. 253(C), pages 1-1.
    8. Swan, Lukas G. & Ugursal, V. Ismet, 2009. "Modeling of end-use energy consumption in the residential sector: A review of modeling techniques," Renewable and Sustainable Energy Reviews, Elsevier, vol. 13(8), pages 1819-1835, October.
    9. Tadeusz A. Grzeszczyk & Michal K. Grzeszczyk, 2022. "Justifying Short-Term Load Forecasts Obtained with the Use of Neural Models," Energies, MDPI, vol. 15(5), pages 1-20, March.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Chakraborty, Debaditya & Alam, Arafat & Chaudhuri, Saptarshi & Başağaoğlu, Hakan & Sulbaran, Tulio & Langar, Sandeep, 2021. "Scenario-based prediction of climate change impacts on building cooling energy consumption with explainable artificial intelligence," Applied Energy, Elsevier, vol. 291(C).
    2. Ijaz Ul Haq & Amin Ullah & Samee Ullah Khan & Noman Khan & Mi Young Lee & Seungmin Rho & Sung Wook Baik, 2021. "Sequential Learning-Based Energy Consumption Prediction Model for Residential and Commercial Sectors," Mathematics, MDPI, vol. 9(6), pages 1-17, March.
    3. Shiyi Song & Hong Leng & Ran Guo, 2022. "Multi-Agent-Based Model for the Urban Macro-Level Impact Factors of Building Energy Consumption on Different Types of Land," Land, MDPI, vol. 11(11), pages 1-24, November.
    4. Wenninger, Simon & Kaymakci, Can & Wiethe, Christian, 2022. "Explainable long-term building energy consumption prediction using QLattice," Applied Energy, Elsevier, vol. 308(C).
    5. Yucheng Guo & Jie Shi & Tong Guo & Fei Guo & Feng Lu & Lingqi Su, 2024. "Grey-Box Method for Urban Building Energy Modelling: Advancements and Potentials," Energies, MDPI, vol. 17(21), pages 1-25, October.
    6. Razak Olu-Ajayi & Hafiz Alaka & Hakeem Owolabi & Lukman Akanbi & Sikiru Ganiyu, 2023. "Data-Driven Tools for Building Energy Consumption Prediction: A Review," Energies, MDPI, vol. 16(6), pages 1-20, March.
    7. Sahraei, Mohammad Ali & Duman, Hakan & Çodur, Muhammed Yasin & Eyduran, Ecevit, 2021. "Prediction of transportation energy demand: Multivariate Adaptive Regression Splines," Energy, Elsevier, vol. 224(C).
    8. Yu, Fu Wing & Ho, Wai Tung & Wong, Chak Fung Jeff, 2025. "Integrating time series decomposition and multivariable approaches for enhanced cooling energy management," Energy, Elsevier, vol. 318(C).
    9. Ali Koç & Serap Ulusam Seçkiner, 2024. "Analysing and forecasting the energy consumption of healthcare facilities in the short and medium term. A case study," Operations Research and Decisions, Wroclaw University of Science and Technology, Faculty of Management, vol. 34(3), pages 165-192.
    10. Lu, Hongfang & Cheng, Feifei & Ma, Xin & Hu, Gang, 2020. "Short-term prediction of building energy consumption employing an improved extreme gradient boosting model: A case study of an intake tower," Energy, Elsevier, vol. 203(C).
    11. Zheng, Peijun & Zhou, Heng & Liu, Jiang & Nakanishi, Yosuke, 2023. "Interpretable building energy consumption forecasting using spectral clustering algorithm and temporal fusion transformers architecture," Applied Energy, Elsevier, vol. 349(C).
    12. Somu, Nivethitha & Raman M R, Gauthama & Ramamritham, Krithi, 2021. "A deep learning framework for building energy consumption forecast," Renewable and Sustainable Energy Reviews, Elsevier, vol. 137(C).
    13. Arkar, C. & Žižak, T. & Domjan, S. & Medved, S., 2020. "Dynamic parametric models for the holistic evaluation of semi-transparent photovoltaic/thermal façade with latent storage inserts," Applied Energy, Elsevier, vol. 280(C).
    14. Lazaros Aresti & Paul Christodoulides & Gregoris P. Panayiotou & Georgios Florides, 2020. "The Potential of Utilizing Buildings’ Foundations as Thermal Energy Storage (TES) Units from Solar Plate Collectors," Energies, MDPI, vol. 13(11), pages 1-14, May.
    15. Damianakis, Nikolaos & Mouli, Gautham Ram Chandra & Bauer, Pavol & Yu, Yunhe, 2023. "Assessing the grid impact of Electric Vehicles, Heat Pumps & PV generation in Dutch LV distribution grids," Applied Energy, Elsevier, vol. 352(C).
    16. Alejandra Martínez-Martínez & Rafael Llorca-Vivero, 2025. "The Taxonomy of Climate Change: How Rising Temperatures Unequally Impact Nations’ Discomfort," Working Papers 2507, Department of Applied Economics II, Universidad de Valencia.
    17. Omar Shafqat & Elena Malakhatka & Nina Chrobot & Per Lundqvist, 2021. "End Use Energy Services Framework Co-Creation with Multiple Stakeholders—A Living Lab-Based Case Study," Sustainability, MDPI, vol. 13(14), pages 1-24, July.
    18. Zhang, Yuyang & Ma, Wenke & Du, Pengcheng & Li, Shaoting & Gao, Ke & Wang, Yuxuan & Liu, Yifei & Zhang, Bo & Yu, Dingyi & Zhang, Jingyi & Li, Yan, 2024. "Powering the future: Unraveling residential building characteristics for accurate prediction of total electricity consumption during summer heat," Applied Energy, Elsevier, vol. 376(PA).
    19. Frank, Johannes, 2023. "Forecasting realized volatility in turbulent times using temporal fusion transformers," FAU Discussion Papers in Economics 03/2023, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    20. Anna Kipping & Erik Trømborg, 2017. "Modeling Aggregate Hourly Energy Consumption in a Regional Building Stock," Energies, MDPI, vol. 11(1), pages 1-20, December.

    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:appene:v:389:y:2025:i:c:s0306261925004428. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.elsevier.com/wps/find/journaldescription.cws_home/405891/description#description .

    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.