# Hierarchical Spatio-Temporal Transformer for Coherent Emergency Department Forecasting

arXiv: https://arxiv.org/abs/2607.27106 · HTML: https://mlsanity.com/paper/2607.27106/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 6 of its 32 references that are in the map.
- First posted on arXiv 29 Jul 2026.

## Builds on (most cited first, 6 of 6)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [N-BEATS: Neural basis expansion analysis for interpretable time series forecasting](https://mlsanity.com/paper/1905.10437/) (2019)
- [A machine learning approach for forecasting hierarchical time series](https://mlsanity.com/paper/2006.00630/) (2020)
- [HierarchicalForecast: A Reference Framework for Hierarchical Forecasting in Python](https://mlsanity.com/paper/2207.03517/) (2022)
- [Blending gradient boosted trees and neural networks for point and probabilistic forecasting of hierarchical time series](https://mlsanity.com/paper/2310.13029/) (2023)
- [A Temporal Fusion Transformer for Long-term Explainable Prediction of Emergency Department Overcrowding](https://mlsanity.com/paper/2207.00610/) (2022)

## Abstract (arXiv)

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.
