Skip to main navigation Skip to search Skip to main content

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

  • Ting-Yu Dai (Corresponding author)
  • , Dev Niyogi
  • , Zoltan Nagy

Research output: Contribution to journalArticleAcademicpeer-review

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.

Original languageEnglish
Article number125712
Number of pages9
JournalApplied Energy
Volume389
DOIs
Publication statusPublished - 1 Jul 2025
Externally publishedYes

Bibliographical note

Publisher Copyright:
© 2025 Elsevier Ltd

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 7 - Affordable and Clean Energy
    SDG 7 Affordable and Clean Energy
  2. SDG 13 - Climate Action
    SDG 13 Climate Action

Keywords

  • 0000
  • 1111
  • Machine learning
  • Temporal fusion transformer
  • Urban building energy modeling

Fingerprint

Dive into the research topics of 'CityTFT: A temporal fusion transformer-based surrogate model for urban building energy modeling'. Together they form a unique fingerprint.

Cite this