Hierarchical Spatio-Temporal Transformer for Coherent Emergency Department Forecasting

Filipa Lino, Bárbara Tavares, Carlos Santiago, Cláudia Soares, Manuel Marques
7/29/2026
cs.LG

No official code found. Best implementation: FilipaLino/HierSTT (1 star, Apache-2.0, last commit 2026-08-17).

Abstract

Emergency Departments (EDs) are critical access points in healthcare systems, yet they face persistent pressure from unpredictable patient demand, seasonal surges, and non-urgent visits. Effective ED planning requires forecasts at multiple decision-making levels: hospitals need local demand estimates for staffing and bed management, regions require forecasts to coordinate healthcare units, and national authorities need system-wide projections for capacity planning. However, most existing approaches forecast ED demand independently at a single level, ignoring the hierarchy linking hospitals, regions, and national systems. This can produce incoherent predictions, where hospital-level forecasts do not aggregate consistently to regional or national demand. We propose HierSTT, a hierarchical Transformer-based framework for coherent multi-level ED forecasting. HierSTT jointly predicts hospital, regional, and national level demand in a single end-to-end model. A Temporal Fusion Transformer captures national dynamics, while spatio-temporal Transformer encoder-decoder modules model regional and hospital demand conditioned on higher-level forecasts. A coherence-aware loss penalizes cross-level inconsistencies during training. We further introduce a nationwide Portuguese ED dataset covering 81 hospitals across 5 regional health administrations, with heterogeneous covariates at each level. Experiments show that HierSTT reduces average WAPE by 32\% relative to the best non-hierarchical deep learning baseline and outperforms all classical hierarchical reconciliation methods, while producing near-coherent predictions across levels. Additional resources associated with this work are available at https://github.com/FilipaLino/HierSTT.

View on arXivView PDF

Code Implementations(1)

FilipaLino/HierSTTCommunity25%
Apache-2.0

Official implementation of HierSTT, a hierarchical spatio-temporal Transformer for coherent emergency department forecasting at hospital, regional, and national levels.

11PythonJul 15, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{lino2026hierarchical,
  title  = {Hierarchical Spatio-Temporal Transformer for Coherent Emergency Department Forecasting},
  author = {Filipa Lino and Bárbara Tavares and Carlos Santiago and Cláudia Soares and Manuel Marques},
  year   = {2026},
  eprint = {2607.27106},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.27106v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.27106.svg)](https://codeofpaper.com/paper/2607.27106)

Discussion