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.

FloodSformer: A transformer-based data-driven model for predicting the 2-D dynamics of fluvial floods / Pianforini, Matteo; Dazzi, Susanna; Pilzer, Andrea; Vacondio, Renato. - In: ENVIRONMENTAL MODELLING & SOFTWARE. - ISSN 1364-8152. - 193:(2025). [10.1016/j.envsoft.2025.106599]

FloodSformer: A transformer-based data-driven model for predicting the 2-D dynamics of fluvial floods

Pianforini, Matteo;Dazzi, Susanna;Vacondio, Renato
2025-01-01

Abstract

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.
2025
FloodSformer: A transformer-based data-driven model for predicting the 2-D dynamics of fluvial floods / Pianforini, Matteo; Dazzi, Susanna; Pilzer, Andrea; Vacondio, Renato. - In: ENVIRONMENTAL MODELLING & SOFTWARE. - ISSN 1364-8152. - 193:(2025). [10.1016/j.envsoft.2025.106599]
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11381/3029614
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact