Urban Flood Prediction Model Based on Transformer-LSTM-Sparrow Search Algorithm

Global climate change and accelerated urbanization have intensified extreme rainfall events, exacerbating urban flood risks. Although data-driven models have shown potential in urban flood prediction, the ability of single models to capture complex nonlinear relationships and their sensitivity to hyperparameters still limit prediction accuracy. To address these challenges, this study proposes an urban flood prediction model by integrating Transformer, Long Short-Term Memory (LSTM), and Sparrow Search Algorithm (SSA), combining Transformer’s global feature extraction with LSTM’s temporal modeling. The SSA was adopted to optimize hyperparameters for the Transformer-LSTM model. Dropout and early stopping techniques were adopted to mitigate overfitting. Applied to Zhengzhou city of Henan province, China, the model achieves a Nash-Sutcliffe Efficiency (NSE) of 0.971, indicating that the proposed model has high prediction performance for urban flooding. The experimental results demonstrate that the Transformer-LSTM-SSA model outperforms the standalone Transformer, LSTM, and Transformer-LSTM models by 12.9%, 10.1%, and 2.9% in NSE accuracy, respectively, while reducing MAE by 62.12%, 56.9%, and 34.21%, respectively, and MAPE by 21.69%, 22.2%, and 10.89%, respectively. Furthermore, the proposed model exhibits enhanced stability and superior generalization capability. The Transformer-LSTM-SSA model exhibits superior performance among the comparative methods, thereby demonstrating the model’s viability for providing a reliable solution for real-time flood prediction and early warning.

Authors

Institutions

Publication Details

Journal
Water
Published
2025-05-07
DOI
https://doi.org/10.3390/w17091404
Citations
4
Primary Topic
Flood Risk Assessment and Management
Type
article
Field-Weighted Citation Impact
4.42

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Urban Flood Prediction Model Based on Transformer-LSTM-Sparrow Search Algorithm

Hongshi Xu, Jinping Zhang, Zixuan Fan, Yanpo Chen
4 citations
Water
Flood Risk Assessment and Management
4.42
article

Urban Flood Prediction Model Based on Transformer-LSTM-Sparrow Search Algorithm

Hongshi Xu, Jinping Zhang, Zixuan Fan, Yanpo Chen
article en
4 citations

Abstract

Global climate change and accelerated urbanization have intensified extreme rainfall events, exacerbating urban flood risks. Although data-driven models have shown potential in urban flood prediction, the ability of single models to capture complex nonlinear relationships and their sensitivity to hyperparameters still limit prediction accuracy. To address these challenges, this study proposes an urban flood prediction model by integrating Transformer, Long Short-Term Memory (LSTM), and Sparrow Search Algorithm (SSA), combining Transformer’s global feature extraction with LSTM’s temporal modeling. The SSA was adopted to optimize hyperparameters for the Transformer-LSTM model. Dropout and early stopping techniques were adopted to mitigate overfitting. Applied to Zhengzhou city of Henan province, China, the model achieves a Nash-Sutcliffe Efficiency (NSE) of 0.971, indicating that the proposed model has high prediction performance for urban flooding. The experimental results demonstrate that the Transformer-LSTM-SSA model outperforms the standalone Transformer, LSTM, and Transformer-LSTM models by 12.9%, 10.1%, and 2.9% in NSE accuracy, respectively, while reducing MAE by 62.12%, 56.9%, and 34.21%, respectively, and MAPE by 21.69%, 22.2%, and 10.89%, respectively. Furthermore, the proposed model exhibits enhanced stability and superior generalization capability. The Transformer-LSTM-SSA model exhibits superior performance among the comparative methods, thereby demonstrating the model’s viability for providing a reliable solution for real-time flood prediction and early warning.

WaterVol. 17(9)
Zhengzhou University (CN), Shanghai Municipal Human Resources and Social Security Bureau (CN)
National Natural Science Foundation of China, Natural Science Foundation of Henan Province
Openalex Percentile: Top 6%
Flood Risk Assessment and Management
4.42
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.