Urban Flood Prediction Model Based on Explainable Deep Learning and Attention Mechanism
Shanlun Xu, Huiliang Wang, Hongshi Xu, Zening Wu, Xiangyang Zhang, Yihong Zhou, Wanjie Xue
Henan Province Water Conservancy Survey and Design Research
Key points
From the paper's conclusion- The attention mechanism increases the weights of important flood-inducing factors (for example, elevation, tide level); after hyperparameter optimization, the model achieves more comprehensive learning, increasing the weights of the rainfall indicators that are neglected by the unoptimized model, and these weight changes improve the accuracy of the model.
Abstract
Abstract Deep learning models are widely used for urban flood prediction, but current research lacks a clear explanation of how indicator weight changes affect model accuracy. This study incorporated the attention mechanism between the convolutional and fully connected layers of the convolutional neural network (CNN) to enable the model to focus on critical flood-inducing factors, and employed the particle swarm optimization (PSO) to optimize the key hyperparameters (for example, the number of filters and learning rate). Furthermore, we employed Shapley additive explanation (SHAP) to analyze how flood-inducing indicator weight changes affect prediction accuracy. The model was tested on Haidian Island, China. The Nash-Sutcliffe efficiency (NSE) coefficient of the CNN model is 0.9287. After incorporating the attention mechanism into the CNN and optimizing the hyperparameters using PSO, the NSE is improved to 0.9503. The model demonstrates higher accuracy in predicting larger inundations, with the NSE for the 100-year return-period flood reaching 0.9535, compared to 0.8341 for the 5-year return period. Interpretability analysis shows that elevation is the most important flood-inducing factor, accounting for 44% of the total importance, followed by tidal levels, which account for 33%. The attention mechanism increases the weights of important flood-inducing factors (for example, elevation, tide level); after hyperparameter optimization, the model achieves more comprehensive learning, increasing the weights of the rainfall indicators that are neglected by the unoptimized model, and these weight changes improve the accuracy of the model. The research revealed the impacts of different flood-inducing factors on flooding and the influence of indicator weight changes on model accuracy.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Comparative Evaluation of Deep Learning Models for Urban Flood ForecastingWater · 2026
- Ensemble learning for enhancing critical infrastructure resilience to urban floodingScientific Reports · 2025
- An Explainable Ensemble Machine Learning Framework for Flood Susceptibility Mapping Using Social Media Data: A Case Study of Guangzhou, ChinaRemote Sensing · 2026
- From Prediction to Prevention: An Explainable GeoAI Framework for Flood Susceptibility and Urban Exposure Assessment Using Machine and Deep Learning ModelsSustainable Development · 2026
- Enhancing urban flood risk assessment: A PCA-integrated deep learning surrogate for hazard and damage prediction.Water research · 2026
- A dynamic urban flood risk prediction framework for real-time flood risk early warning.Water research · 2026