FloodSformer: A transformer-based data-driven model for predicting the 2-D dynamics of fluvial floods
This paper presents the open-source FloodSformer (FS) model, which uses a transformer-based deep learning architecture to simulate real-time evolution of fluvial floods. A cross-attention mechanism captures spatiotemporal correlations between inundation maps and inflow discharges, while maps compression is obtained by an autoencoder neural network. Long-duration events are predicted using an autoregressive approach. Model performance is assessed considering two case studies: an urban flash flood at laboratory scale and real flood events along the Po River (Italy). Results show that prediction errors are within the range of uncertainties typical in hydraulic modelling. The FS model accurately predicts 2D inundation maps over time with negligible accumulation error and requires minimal computational time, making it suitable for real-time forecasting. These results demonstrate the model’s potential to improve flood prediction accuracy and responsiveness, supporting more effective flood management and resilience strategies. • The open-source transformer-based model FloodSformer is presented. • The model is developed for prediction of fluvial flood maps in real-time. • The cross-attention mechanism is employed for spatiotemporal data analysis. • The model achieves high accuracy with negligible computational costs. • The importance of using diverse flood scenarios for training is highlighted.
Authors
- Andrea Pilzer (ORCID: https://orcid.org/0000-0001-6868-7943)
- Susanna Dazzi (ORCID: https://orcid.org/0000-0003-3687-2057)
- Renato Vacondio (ORCID: https://orcid.org/0000-0001-9802-0402)
- Matteo Pianforini (ORCID: https://orcid.org/0000-0003-0910-8248)
Institutions
- University of Parma (IT)
Publication Details
- Journal
- Environmental Modelling & Software
- Published
- 2025-07-16
- DOI
- https://doi.org/10.1016/j.envsoft.2025.106599
- Citations
- 2
- Primary Topic
- Flood Risk Assessment and Management
- Type
- article
- Field-Weighted Citation Impact
- 2.21