Rainfall-Stratified Explainable Machine Learning for Quantifying Nonlinear Drivers of Waterlogging Severity: A Case Study in Shanghai, China
Highlights
- Meteorological factors exhibit pronounced threshold effects, whereby exceeding critical rainfall levels triggers a nonlinear escalation in urban inundation severity.
- Urban morphology primarily governs spatial risk heterogeneity under non-extreme rainfall conditions.
- The identified rainfall characteristic thresholds offer critical references for refining early warning systems and optimizing drainage infrastructure.
- Optimizing building configurations offers a practical and innovative planning strategy to enhance urban flood resilience.
Abstract
1. Introduction
2. Study Area and Materials
2.1. Study Area
2.2. Data
2.2.1. Spatial Analysis Unit
2.2.2. Recorded Waterlogging Data
2.3. Explanatory Factors
2.3.1. Meteorological Factors
2.3.2. Surface Morphological Factors
2.3.3. Building Configuration Factors
3. Methodology
3.1. Feature Selection via Spearman Correlation and Multicollinearity Diagnosis
3.2. Principle of the Algorithm
Extreme Gradient Boosting (XGBoost)
3.3. Bayesian Optimization and Model Evaluation
3.4. Interpretability Analysis
3.4.1. SHAP (SHapley Additive exPlanations)
3.4.2. PDP (Partial Dependence Plot)
4. Results
4.1. Correlation and Multi-Collinearity Analysis of Characteristic Variables
4.2. Model Performance Evaluation and Comparison
4.3. Mapping Deep Inundation Probability Under Different Rainfall Scenarios
4.4. Model Interpretability Analysis
4.4.1. SHAP-Based Analysis of Factor Contributions
4.4.2. Meteorological Factors
4.4.3. Surface Morphological Factors
4.4.4. Building Configuration Factors
4.5. Partial Dependence Plot Analysis
5. Discussion
5.1. Applicability of Predictive Models
5.2. Nonlinear Interpretation of Factors
5.2.1. Meteorological Factors
5.2.2. The Modulating Effect of Urban Morphology on Waterlogging Severity
5.3. Policy Implication
5.4. Limitations and Future Prospects
6. Conclusions
- (1)
- A nested cross-validation scheme based on StratifiedGroupKFold, integrated with Bayesian optimization, was employed to objectively evaluate the model’s generalization performance. Comparative analysis demonstrated that XGBoost outperformed other candidate models across all metrics, including accuracy, precision, recall, F1-score, and AUC. Its superior capability in handling spatial heterogeneity provides a robust framework for inundation severity prediction in Shanghai.
- (2)
- Deep inundation probability maps across various rainfall scenarios revealed a nonlinear response mechanism in waterlogging severity, primarily driven by rainfall characteristics. Maximum hourly rainfall acts as the decisive trigger for initial waterlogging: when short-term hydrological loading exceeds the instantaneous capacity of the drainage network, risk levels rapidly escalate toward higher severity. Spatially, severe waterlogging is heavily concentrated in core urban districts, particularly Hongkou and Jing’an in Shanghai, which should be prioritized as critical nodes for flood risk management and infrastructure intervention.
- (3)
- Based on the SHAP group contribution analysis, a stratified sampling approach was adopted to examine feature contributions, revealing a systematic shift in driver dominance across rainfall categories. The combined contribution of surface morphology and building configuration declined from 58.6% to 29.4%, indicating that under non-extreme rainfall conditions (<101 mm), morphological heterogeneity primarily governs spatial risk differentiation, with BSC consistently ranking as the leading predictor across all rainfall scenarios. As rainfall intensity increases, however, the regulatory role of the urban physical environment is progressively diminished.
- (4)
- Rainfall factors exhibited pronounced nonlinear threshold effects as the primary triggers of urban inundation. Maximum hourly rainfall intensity consistently constituted the dominant driver of deep inundation probability across all precipitation levels, with a critical transition at 18.40 mm/h, beyond which disaster risk escalates abruptly. Rainfall duration displayed an inverted U-shaped response, with risk declining beyond 16 h—a pattern consistent with prolonged, low intensity events that accumulate substantial total volume yet fail to generate deep inundation due to insufficient peak intensity. Under extreme storm conditions, the total rainfall volume assumed dominance, contributing 43.7% of the predicted risk with a sharp threshold transition beyond 139 mm.
- (5)
- Urban morphological characteristics exert differentiated and directional influences on deep inundation probability, with each factor exhibiting distinct threshold-dependent response patterns that collectively govern the spatial heterogeneity of inundation severity across blocks. Building configuration factors exert a significant influence on urban waterlogging severity. BSC and MBH emerged as critical risk-driving factors, with threshold values of 0.39 m−1 and 15.67 m, respectively, beyond which the probability of waterlogging increases markedly. In contrast, greater heterogeneity in building volume (SDBV > 54,155 m3) was associated with reduced deep inundation probability, suggesting a potential buffering role. Among the surface morphological factors, GSR, NDVI, AA, and DR consistently exhibited monotonic severity-attenuating effects. These findings suggest that rational urban spatial planning can substantially enhance urban flood resilience.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| DB | Density of buildings |
| MBH | Mean building height |
| MBV | Mean building volume |
| FAR | Floor area ratio |
| ISR | Impervious surface ratio |
| SDBH | Standard deviation of building height |
| SDBV | Standard deviation of building volume |
| BSC | Building shape coefficient |
| BCR | Building coverage ratio |
| BCD | Building congestion degree |
| AA | Average altitude |
| ARH | Average roughness |
| AS | Average slope |
| NDVI | Normalized difference vegetation index |
| GSR | Green space ratio |
| DR | Distance to river |
| RD | Road density |
| WCR | Water coverage ratio |
| RF | Random forest |
| LR | Logistic regression |
| SVM | Support vector machine |
| XGBOOST | Extreme gradient boosting |
| SHAP | SHapley Additive exPlanations |
| PDP | Partial dependence plot |
Appendix A
Appendix A.1. Mathematical Formulations for LR, SVM, and RF
- Logistic Regression (LR)
- 2.
- Support Vector Machine (SVM)
- 3.
- Random Forest (RF)
Appendix A.2. Supplementary Stratification Schemes


| Group | Feature | Volume | Intensity | Duration | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ordinary | Storm | Heavy | Low | High | Extreme | Short | Moderate | Long | ||
| Meteorological factors | Maximum Hourly Rainfall | 5 | 3 | 3 | 3 | 5 | 3 | 7 | 3 | 3 |
| Rainfall Duration | 1 | 1 | 2 | 1 | 2 | 2 | 1 | 2 | 2 | |
| Total Rainfall Volume | 2 | 2 | 1 | 2 | 1 | 1 | 2 | 1 | 1 | |
| Surface morphological factors | Average Altitude | 13 | 11 | 9 | 13 | 9 | 9 | 12 | 13 | 9 |
| Distance to River | 11 | 6 | 6 | 10 | 7 | 6 | 10 | 7 | 6 | |
| Green Space Ratio | 12 | 13 | 13 | 12 | 13 | 12 | 13 | 12 | 13 | |
| Impervious Surface Ratio | 7 | 10 | 10 | 8 | 11 | 10 | 9 | 6 | 10 | |
| NDVI | 14 | 14 | 14 | 14 | 14 | 14 | 15 | 14 | 14 | |
| Road Density | 9 | 12 | 12 | 11 | 10 | 11 | 8 | 11 | 12 | |
| Water Coverage Ratio | 4 | 4 | 5 | 5 | 4 | 5 | 3 | 4 | 5 | |
| Building configuration factors | BD | 15 | 16 | 16 | 15 | 16 | 16 | 14 | 15 | 16 |
| BSC | 3 | 5 | 4 | 4 | 3 | 4 | 4 | 5 | 4 | |
| FAR | 16 | 15 | 15 | 16 | 15 | 15 | 16 | 16 | 15 | |
| MBH | 6 | 7 | 8 | 7 | 6 | 7 | 5 | 9 | 8 | |
| SDBH | 8 | 8 | 11 | 6 | 12 | 13 | 6 | 10 | 11 | |
| SDBV | 10 | 9 | 7 | 9 | 8 | 8 | 11 | 8 | 7 | |
| Stratification Criterion | Subclass | Rainfall Factors (%) | Building Factors (%) | Surface Morphological Factors (%) |
|---|---|---|---|---|
| Rainfall Tier | Ordinary rainfall (<50 mm) | 41.43 | 27.06 | 31.51 |
| Rainstorm (50–101 mm) | 47.20 | 22.70 | 30.10 | |
| Heavy rainstorm (≥101 mm) | 70.56 | 13.10 | 16.33 | |
| Intensity Tier | Low Intensity (<20 mm/h) | 47.82 | 23.72 | 28.46 |
| High Intensity (20–40 mm/h) | 56.46 | 19.46 | 24.08 | |
| Extreme Intensity (≥40 mm/h) | 69.36 | 13.20 | 17.44 | |
| Duration Tier | Short Duration (<6 h) | 39.63 | 28.62 | 31.75 |
| Moderate Duration (6–12 h) | 51.11 | 20.30 | 28.59 | |
| Long Duration (≥12 h) | 66.93 | 14.80 | 18.27 |
References
- Xuan, D.; Hsieh, M.A.; Pongeluppe, L.S.; Weaver, M.M.; Mann, M.E.; Jerolmack, D.J.; Ulloa, H.N. Climate extremes and urbanization drive flood tipping points at the city–river interface. npj Nat. Hazards 2026, 3, 20. [Google Scholar] [CrossRef]
- Yang, L.; Yang, Y.; Shen, Y.; Yang, J.; Zheng, G.; Smith, J.; Niyogi, D. Urban development pattern’s influence on extreme rainfall occurrences. Nat. Commun. 2024, 15, 3997. [Google Scholar] [CrossRef]
- Guccione, A.; Bassi, P.; Desbiolles, F.; Borgnino, M.; D’Andrea, F.; Pasquero, C. Extreme precipitation changes in relation to urbanization. npj Nat. Hazards 2026, 3, 10. [Google Scholar] [CrossRef]
- Papalexiou, S.M.; Montanari, A. Global and Regional Increase of Precipitation Extremes Under Global Warming. Water Resour. Res. 2019, 55, 4901–4914. [Google Scholar] [CrossRef]
- Ke, E.; Zhao, J.; Zhao, Y. Investigating the influence of nonlinear spatial heterogeneity in urban flooding factors using geographic explainable artificial intelligence. J. Hydrol. 2025, 648, 132398. [Google Scholar] [CrossRef]
- Cardone, B.; D’Ambrosio, V.; Di Martino, F.; Miraglia, V. Hierarchical Fuzzy MCDA Multi-Risk Model for Detecting Critical Urban Areas in Climate Scenarios. Appl. Sci. 2024, 14, 3066. [Google Scholar] [CrossRef]
- Gupta, L.; Dixit, J. A GIS-based flood risk mapping of Assam, India, using the MCDA-AHP approach at the regional and administrative level. Geocarto Int. 2022, 37, 11867–11899. [Google Scholar] [CrossRef]
- Suárez-Inclán, A.M.; Allende-Prieto, C.; Roces-García, J.; Rodríguez-Sánchez, J.P.; Sañudo-Fontaneda, L.A.; Rey-Mahía, C.; Álvarez-Rabanal, F.P. Development of a Multicriteria Scheme for the Identification of Strategic Areas for SUDS Implementation: A Case Study from Gijón, Spain. Sustainability 2022, 14, 2877. [Google Scholar] [CrossRef]
- Abdelalim, M.; El Naggar, H. Urban flood hazard mapping in Dubai’s Hyper-Arid environment using a 2D HEC-RAS and GIS–MCDA–AHP integrated framework. Total Environ. Adv. 2026, 17, 200141. [Google Scholar] [CrossRef]
- Corvacho-Ganahín, O.; González-Pacheco, M.; Francos, M.; Carvalho, F. Evaluation of potential flood hazard through spatial zoning in Acha–Arica, northern Chile, integrating GIS, multi-criteria analysis and two-dimensional numerical simulation. Nat. Hazards 2023, 118, 755–783. [Google Scholar] [CrossRef]
- Hidayatulloh, A.; Bahrawi, J.; Psilovikos, A.; Elhag, M. Integrating MCDA and Rain-on-Grid Modeling for Flood Hazard Mapping in Bahrah City, Saudi Arabia. Geosciences 2026, 16, 32. [Google Scholar] [CrossRef]
- Boulomytis, V.T.G.; Zuffo, A.C.; Imteaz, M.A. Assessment of flood susceptibility in coastal peri-urban areas: An alternative MCDA approach for ungauged catchments. Urban Water J. 2024, 21, 1022–1034. [Google Scholar] [CrossRef]
- Rossman, L.A.; Dickinson, R.E.; Schade, T.; Chan, C.C.; Burgess, E.; Sullivan, D.; Lai, F.-H. SWMM 5-the next generation of EPA’s storm water management model. J. Water Manag. Model. 2004, 12, 339–358. [Google Scholar] [CrossRef]
- Rossman, L.A.; Huber, W.C. Hydrology. In Storm Water Management Model Reference Manual; US Environmental Protection Agency: Washington, DC, USA, 2016; Volume 1. [Google Scholar]
- Cheng, S.; Yang, M.; Li, C.; Xu, H.; Chen, C.; Shu, D.; Jiang, Y.; Gui, Y.; Dong, N. An Improved Coupled Hydrologic-Hydrodynamic Model for Urban Flood Simulations Under Varied Scenarios. Water Resour. Manag. 2024, 38, 5523–5539. [Google Scholar] [CrossRef]
- DHI. MIKE FLOOD 1D-2D Modelling User Manual; DHI Water & Environment: Hørsholm, Denmark, 2011. [Google Scholar]
- Anni, A.H.; Cohen, S.; Praskievicz, S. Sensitivity of urban flood simulations to stormwater infrastructure and soil infiltration. J. Hydrol. 2020, 588, 125028. [Google Scholar] [CrossRef]
- Li, Y.; Li, H.; Han, Y.; Huang, T.; Wang, Q.; Wang, X. Impact analysis of urban super-standard flood disasters based on MIKE+. Nat. Hazards 2025, 121, 15949–15963. [Google Scholar] [CrossRef]
- Chen, Y.; Hou, H.; Li, Y.; Wang, L.; Fan, J.; Wang, B.; Hu, T. Urban Inundation under Different Rainstorm Scenarios in Lin’an City, China. Int. J. Environ. Res. Public Health 2022, 19, 7210. [Google Scholar] [CrossRef] [PubMed]
- Dobson, B.; Watson-Hill, H.; Muhandes, S.; Borup, M.; Mijic, A. A Reduced Complexity Model with Graph Partitioning for Rapid Hydraulic Assessment of Sewer Networks. Water Resour. Res. 2022, 58, e2021WR030778. [Google Scholar] [CrossRef]
- Yang, K.; Hou, H.; Li, Y.; Chen, Y.; Wang, L.; Wang, P.; Hu, T. Future urban waterlogging simulation based on LULC forecast model: A case study in Haining City, China. Sustain. Cities Soc. 2022, 87, 104167. [Google Scholar] [CrossRef]
- Sidek, L.M.; Jaafar, A.S.; Majid, W.H.A.W.A.; Basri, H.; Marufuzzaman, M.; Fared, M.M.; Moon, W.C. High-Resolution Hydrological-Hydraulic Modeling of Urban Floods Using InfoWorks ICM. Sustainability 2021, 13, 10259. [Google Scholar] [CrossRef]
- Guo, K.; Guan, M.; Yu, D. Urban surface water flood modelling—A comprehensive review of current models and future challenges. Hydrol. Earth Syst. Sci. 2021, 25, 2843–2860. [Google Scholar] [CrossRef]
- Liu, J.; Shao, W.; Xiang, C.; Mei, C.; Li, Z. Uncertainties of urban flood modeling: Influence of parameters for different underlying surfaces. Environ. Res. 2020, 182, 108929. [Google Scholar] [CrossRef]
- Mondal, K.; Bandyopadhyay, S.; Karmakar, S. Framework for global sensitivity analysis in a complex 1D-2D coupled hydrodynamic model: Highlighting its importance on flood management over large data-scarce regions. J. Environ. Manag. 2023, 332, 117312. [Google Scholar] [CrossRef] [PubMed]
- Imroz, M.; Akhtar, M.P.; Sharma, M.K.; Alshehri, F. Integrated assessment of urban flooding and heat island interactions: A systematic review of geospatial technologies, machine learning approaches, and microclimate dynamics. J. Environ. Manag. 2025, 395, 127984. [Google Scholar] [CrossRef] [PubMed]
- Anik, M.S.B.M.; An, C.; Li, S.S. Evolution from the physical process-based approaches to machine learning approaches to predicting urban floods: A literature review. Environ. Syst. Res. 2025, 14, 15. [Google Scholar] [CrossRef]
- Islam, T.; Zeleke, E.B.; Afroz, M.; Melesse, A.M. A Systematic Review of Urban Flood Susceptibility Mapping: Remote Sensing, Machine Learning, and Other Modeling Approaches. Remote Sens. 2025, 17, 524. [Google Scholar] [CrossRef]
- Liu, B.; Li, Y.; Ma, M.; Mao, B. A Comprehensive Review of Machine Learning Approaches for Flood Depth Estimation. Int. J. Disaster Risk Sci. 2025, 16, 433–445. [Google Scholar] [CrossRef]
- Fraehr, N.; Wang, Q.J.; Wu, W.; Nathan, R. Generation and selection of training events for surrogate flood inundation models. J. Environ. Manag. 2025, 373, 123570. [Google Scholar] [CrossRef]
- Tehrany, M.S.; Pradhan, B.; Jebur, M.N. Flood susceptibility mapping using a novel ensemble weights-of-evidence and support vector machine models in GIS. J. Hydrol. 2014, 512, 332–343. [Google Scholar] [CrossRef]
- Bera, S.; Das, A.; Mazumder, T. Evaluation of machine learning, information theory and multi-criteria decision analysis methods for flood susceptibility mapping under varying spatial scale of analyses. Remote Sens. Appl. Soc. Environ. 2022, 25, 100686. [Google Scholar] [CrossRef]
- Wang, Z.; Lai, C.; Chen, X.; Yang, B.; Zhao, S.; Bai, X. Flood hazard risk assessment model based on random forest. J. Hydrol. 2015, 527, 1130–1141. [Google Scholar] [CrossRef]
- Ma, M.; Zhao, G.; He, B.; Li, Q.; Dong, H.; Wang, S.; Wang, Z. XGBoost-based method for flash flood risk assessment. J. Hydrol. 2021, 598, 126382. [Google Scholar] [CrossRef]
- Bao, S.; Yu, C.; Wan, Z. Spatial Mismatch and Attribution Analysis of Flood Risk and Resilience in Megacities: Insights from a “Risk-Resilience-Effect” Framework and an Interpretable XGBoost-SHAP Model. Sustain. Cities Soc. 2025, 131, 106758. [Google Scholar] [CrossRef]
- Ren, H.C.; Pang, B.; Bai, P.; Zhao, G.; Liu, S.; Liu, Y.Y.; Li, M. Flood Susceptibility Assessment with Random Sampling Strategy in Ensemble Learning (RF and XGBoost). Remote Sens. 2024, 16, 320. [Google Scholar] [CrossRef]
- Ahmad, I.; Farooq, R.; Ashraf, M.; Waseem, M.; Shangguan, D. Improving flood hazard susceptibility assessment by integrating hydrodynamic modeling with remote sensing and ensemble machine learning. Nat. Hazards 2025, 121, 7839–7868. [Google Scholar] [CrossRef]
- Wei, Q.; Zhang, H.; Chen, Y.; Xie, Y.; Yin, H.; Xu, Z. City scale urban flooding risk assessment using multi-source data and machine learning approach. J. Hydrol. 2025, 651, 132626. [Google Scholar] [CrossRef]
- Yan, M.; Yang, J.; Ni, X.; Liu, K.; Wang, Y.; Xu, F. Urban waterlogging susceptibility assessment based on hybrid ensemble machine learning models: A case study in the metropolitan area in Beijing, China. J. Hydrol. 2024, 630, 130695. [Google Scholar] [CrossRef]
- Zhang, Q.; Zhou, S.; Li, J.; Xu, Z. Waterlogging susceptibility assessment in developed urban area using explainable machine learning methods with different negative sampling strategies. Int. J. Disaster Risk Reduct. 2026, 132, 105978. [Google Scholar] [CrossRef]
- Rasool, U.; Yin, X.; Xu, Z.; Padulano, R.; Rasool, M.A.; Siddique, M.A.; Hassan, M.A.; Senapathi, V. Rainfall-driven machine learning models for accurate flood inundation mapping in Karachi, Pakistan. Urban Clim. 2023, 49, 101573. [Google Scholar] [CrossRef]
- Zhou, Z.; Smith, J.A.; Baeck, M.L.; Wright, D.B.; Smith, B.K.; Liu, S. The impact of the spatiotemporal structure of rainfall on flood frequency over a small urban watershed: An approach coupling stochastic storm transposition and hydrologic modeling. Hydrol. Earth Syst. Sci. 2021, 25, 4701–4717. [Google Scholar] [CrossRef]
- David, N.; Alpert, P.; Messer, H. The potential of cellular network infrastructures for sudden rainfall monitoring in dry climate regions. Atmos. Res. 2013, 131, 13–21. [Google Scholar] [CrossRef]
- Zhang, Z.; Jian, X.; Chen, Y.; Huang, Z.; Liu, J.; Yang, L. Urban waterlogging prediction and risk analysis based on rainfall time series features: A case study of Shenzhen. Front. Environ. Sci. 2023, 11, 1131954. [Google Scholar] [CrossRef]
- Bruni, G.; Reinoso, R.; van de Giesen, N.C.; Clemens, F.H.L.R.; ten Veldhuis, J.A.E. On the sensitivity of urban hydrodynamic modelling to rainfall spatial and temporal resolution. Hydrol. Earth Syst. Sci. 2015, 19, 691–709. [Google Scholar] [CrossRef]
- Cristiano, E.; ten Veldhuis, M.-c.; Wright, D.B.; Smith, J.A.; van de Giesen, N. The Influence of Rainfall and Catchment Critical Scales on Urban Hydrological Response Sensitivity. Water Resour. Res. 2019, 55, 3375–3390. [Google Scholar] [CrossRef]
- Zhou, Z.; Liu, S.; Sun, L.; Liu, Y. Unraveling nonlinear urban waterlogging responses to rainfall structure: A data-driven analysis in a highly urbanized megacity. J. Hydrol. 2026, 664, 134349. [Google Scholar] [CrossRef]
- Zhang, Q.; Wu, Z.; Guo, G.; Zhang, H.; Tarolli, P. Explicit the urban waterlogging spatial variation and its driving factors: The stepwise cluster analysis model and hierarchical partitioning analysis approach. Sci. Total Environ. 2021, 763, 143041. [Google Scholar] [CrossRef] [PubMed]
- Qi, X.; Zhang, Z.; Jing, J.; Hu, W.; Zhao, X. Regional planning for ecological protection of rivers in highly urbanized areas. Ecol. Indic. 2023, 149, 110158. [Google Scholar] [CrossRef]
- Zhang, W.; Hu, B.; Liu, Y.; Zhang, X.; Li, Z. Urban Flood Risk Assessment through the Integration of Natural and Human Resilience Based on Machine Learning Models. Remote Sens. 2023, 15, 3678. [Google Scholar] [CrossRef]
- Asrade, T.M.; Abebe, S.A.; Tadesse, K.B.; Kerebih, M.S.; Meshesha, T.M. Flood susceptibility assessment using three machine learning techniques and comparison of their performance. Sci. Rep. 2026, 16, 8099. [Google Scholar] [CrossRef]
- Wang, Y.; Zhang, Q.; Zhang, J.; Lin, K. Impact of 2D and 3D factors on urban flooding: Spatial characteristics and interpretable analysis of drivers. Water Res. 2025, 280, 123537. [Google Scholar] [CrossRef]
- Lin, J.; He, X.; Lu, S.; Liu, D.; He, P. Investigating the influence of three-dimensional building configuration on urban pluvial flooding using random forest algorithm. Environ. Res. 2021, 196, 110438. [Google Scholar] [CrossRef]
- Zhang, W.; Qiu, S.; Lin, Z.; Chen, Z.; Yang, Y.; Lin, J.; Li, S. Assessing the influence of green space morphological spatial pattern on urban waterlogging: A case study of a highly-urbanized city. Environ. Res. 2024, 266, 120561. [Google Scholar] [CrossRef] [PubMed]
- Gu, T.; Zhao, H.; Yue, L.; Guo, J.; Cui, Q.; Tang, J.; Gong, Z.; Zhao, P. Attribution analysis of urban social resilience differences under rainstorm disaster impact: Insights from interpretable spatial machine learning framework. Sustain. Cities Soc. 2025, 118, 106029. [Google Scholar] [CrossRef]
- Rudin, C. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nat. Mach. Intell. 2019, 1, 206–215. [Google Scholar] [CrossRef]
- Li, Z. Extracting spatial effects from machine learning model using local interpretation method: An example of SHAP and XGBoost. Comput. Environ. Urban Syst. 2022, 96, 101845. [Google Scholar] [CrossRef]
- Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. Adv. Neural Inf. Process. Syst. 2017, 30, 4765–4774. [Google Scholar] [CrossRef]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From local explanations to global understanding with explainable AI for trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [PubMed]
- Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
- Goldstein, A.; Kapelner, A.; Bleich, J.; Pitkin, E. Peeking Inside the Black Box: Visualizing Statistical Learning with Plots of Individual Conditional Expectation. J. Comput. Graph. Stat. 2015, 24, 44–65. [Google Scholar] [CrossRef]
- Gulshad, K.; Yaseen, A.; Szydłowski, M. From Data to Decision: Interpretable Machine Learning for Predicting Flood Susceptibility in Gdańsk, Poland. Remote Sens. 2024, 16, 3902. [Google Scholar] [CrossRef]
- Aydin, H.E.; Iban, M.C. Predicting and analyzing flood susceptibility using boosting-based ensemble machine learning algorithms with SHapley Additive exPlanations. Nat. Hazards 2023, 116, 2957–2991. [Google Scholar] [CrossRef]
- Lu, J.; Jiao, S.; Guo, Q.; Zhu, X. An explainable artificial intelligence approach for synergistic flood risk governance by decoupling hydrological process and spatial heterogeneity. J. Hydrol. 2026, 669, 135136. [Google Scholar] [CrossRef]
- Tan, C.; Ke, E.; Shi, H. Leveraging Explainable Artificial Intelligence for Place-Based and Quantitative Strategies in Urban Pluvial Flooding Management. ISPRS Int. J. Geo Inf. 2025, 14, 475. [Google Scholar] [CrossRef]
- Li, S.; Ge, X.; Jin, G.; Lou, Z.; Yang, H. Flood dynamic monitoring and XGBoost-SHAP based risk assessment: A case study of the 23·7 extreme rainstorm in BTH region, China. Environ. Sustain. Indic. 2025, 28, 101020. [Google Scholar] [CrossRef]
- Zhou, S.; Zhang, D.; Wang, M.; Liu, Z.; Gan, W.; Zhao, Z.; Xue, S.; Müller, B.; Zhou, M.; Ni, X.; et al. Risk-driven composition decoupling analysis for urban flooding prediction in high-density urban areas using Bayesian-Optimized LightGBM. J. Clean. Prod. 2024, 457, 142286. [Google Scholar] [CrossRef]
- Pradhan, B.; Lee, S.; Dikshit, A.; Kim, H. Spatial flood susceptibility mapping using an explainable artificial intelligence (XAI) model. Geosci. Front. 2023, 14, 101625. [Google Scholar] [CrossRef]
- Zhou, S.; Jia, W.; Wang, M.; Liu, Z.; Wang, Y.; Wu, Z. Synergistic assessment of multi-scenario urban waterlogging through data-driven decoupling analysis in high-density urban areas: A case study in Shenzhen, China. J. Environ. Manag. 2024, 369, 122330. [Google Scholar] [CrossRef]
- Deng, Y.; Lu, X. Explainable Machine Learning-Based Urban Waterlogging Prediction Framework. Urban Sci. 2026, 10, 156. [Google Scholar] [CrossRef]
- Wang, M.; Li, Y.; Yuan, H.; Zhou, S.; Wang, Y.; Adnan Ikram, R.M.; Li, J. An XGBoost-SHAP approach to quantifying morphological impact on urban flooding susceptibility. Ecol. Indic. 2023, 156, 111137. [Google Scholar] [CrossRef]
- Bruwier, M.; Maravat, C.; Mustafa, A.; Teller, J.; Pirotton, M.; Erpicum, S.; Archambeau, P.; Dewals, B. Influence of urban forms on surface flow in urban pluvial flooding. J. Hydrol. 2020, 582, 124493. [Google Scholar] [CrossRef]
- Hair, J.F. Multivariate Data Analysis: An Overview. In International Encyclopedia of Statistical Science; Lovric, M., Ed.; Springer: Berlin/Heidelberg, Germany, 2011; pp. 904–907. [Google Scholar]
- Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
- Wu, Y.; Zhang, Z.; Qi, X.; Hu, W.; Si, S. Prediction of flood sensitivity based on Logistic Regression, eXtreme Gradient Boosting, and Random Forest modeling methods. Water Sci. Technol. 2024, 89, 2605–2624. [Google Scholar] [CrossRef]
- Fu, X.; Wang, M.; Zhang, D.; Chen, F.; Peng, X.; Wang, L.; Tan, S.K. An XGBoost-SHAP framework for identifying key drivers of urban flooding and developing targeted mitigation strategies. Ecol. Indic. 2025, 175, 113579. [Google Scholar] [CrossRef]
- Li, Y.; Fang, Z.; Liu, J.; Lu, Z.; Zhou, H.; Yin, W.; Chen, X. A Comparative Study of Urban Pluvial Flood Susceptibility Assessment Based on Multi-Machine Learning Algorithm. Water Resour. Manag. 2025, 40, 35. [Google Scholar] [CrossRef]
- Liu, F.; Liu, X.; Xu, T.; Yang, G.; Zhao, Y. Driving Factors and Risk Assessment of Rainstorm Waterlogging in Urban Agglomeration Areas: A Case Study of the Guangdong-Hong Kong-Macao Greater Bay Area, China. Water 2021, 13, 770. [Google Scholar] [CrossRef]
- Zhou, S.; Liu, Z.; Wang, M.; Gan, W.; Zhao, Z.; Wu, Z. Impacts of building configurations on urban stormwater management at a block scale using XGBoost. Sustain. Cities Soc. 2022, 87, 104235. [Google Scholar] [CrossRef]
- Zhang, Q.; Wu, Z.; Cao, Z.; Guo, G.; Zhang, H.; Li, C.; Tarolli, P. How to develop site-specific waterlogging mitigation strategies? Understanding the spatial heterogeneous driving forces of urban waterlogging. J. Clean. Prod. 2023, 422, 138595. [Google Scholar] [CrossRef]
- Yuan, H.; Wang, M.; Zhang, D.; Muhammad Adnan Ikram, R.; Su, J.; Zhou, S.; Wang, Y.; Li, J.; Zhang, Q. Data-driven urban configuration optimization: An XGBoost-based approach for mitigating flood susceptibility and enhancing economic contribution. Ecol. Indic. 2024, 166, 112247. [Google Scholar] [CrossRef]
- Ibebuchi, C.C. Equity-focused flood risk assessment in Maryland using a hybrid explainable machine learning framework with FEMA and USGS data. Nat. Hazards 2026, 122, 106. [Google Scholar] [CrossRef]
- Wu, Z.; Lin, J.; Li, S.; Zhang, X. Urban Waterlogging Risk Prediction Considering the Influence of Land Use Patterns: A Case Study of Shenzhen. Trans. GIS 2026, 30, e70252. [Google Scholar] [CrossRef]













| Data Type | Source | Spatial Resolution | Format | Data Time |
|---|---|---|---|---|
| DEM | ASTER GDEM V3 (https://www.gscloud.cn/, accessed on 25 October 2025) | 30 m | GeoTIFF | 2025 |
| Landuse | SinoLC-1 (https://doi.org/10.5281/zenodo.7707461, accessed on 3 November 2025) | 1 m | GeoTIFF | 2023 |
| River network | Open Street Map (https://www.openstreetmap.org/, accessed on 5 November 2025) | / | Shapefile | 2022 |
| Rainfall data | China Meteorological Administration (CMA) (https://data.cma.cn/, accessed on 25 November 2025) | 1 h | CSV | 2018–2024 |
| Building data | Building height of Asia in 3D-GloBFP (https://www.openstreetmap.org/, accessed on 3 November 2025) | / | Shapefile | 2024 |
| NDVI | National Ecosystem Science Data Center (https://nesdc.org.cn/, accessed on 5 November 2025) | 30 m | GeoTIFF | 2022 |
| Urban road | Open Street Map (https://www.openstreetmap.org/, accessed on 12 November 2025) | / | Shapefile | 2022 |
| Full Name of Index | Formula | Unit | Description |
|---|---|---|---|
| Density of buildings (DB) | n/ha | DB measures the number of buildings per unit area | |
| Mean building height (MBH) | m | MBH measures the average height of buildings | |
| Mean building volume (MBV) | m3 | MBV measures the average volume of buildings | |
| Standard deviation of building height (SDBH) | m | SDBH measures the variation of building height | |
| Standard deviation of building volume (SDBV) | m3 | SDBV represents the degree of differences between buildings | |
| Floor area ratio (FAR) | - | FAR calculates the percentage of building floor area to the district whole area | |
| Building coverage ratio (BCR) | - | BCR represents the ratio of area of building i to the whole area | |
| Building shape coefficient (BSC) | m−1 | BSC calculates the average ratio of i surface area to the volume | |
| Building congestion degree (BCD) | - | BCD represents total building volume in district divide the biggest building volume |
| Feature | VIF | Tolerance |
|---|---|---|
| MBV | 10.44 | 0.10 |
| FAR | 9.48 | 0.11 |
| BD | 9.30 | 0.11 |
| MBH | 7.78 | 0.13 |
| Impervious Surface Ratio | 6.87 | 0.15 |
| Total Rainfall Volume | 6.56 | 0.15 |
| SDBH | 5.31 | 0.19 |
| SDBV | 4.98 | 0.20 |
| Rainfall Duration | 4.42 | 0.23 |
| NDVI | 4.42 | 0.23 |
| Water Coverage Ratio | 3.57 | 0.28 |
| BSC | 3.55 | 0.28 |
| Distance to River | 2.25 | 0.44 |
| Maximum Hourly Rainfall | 2.24 | 0.45 |
| Average Altitude | 1.96 | 0.51 |
| Road Density | 1.92 | 0.52 |
| Green Space Ratio | 1.56 | 0.64 |
| Model | Hyperparameters | Descriptions | Value Range | Optimal Value |
|---|---|---|---|---|
| XGBOOST | n_estimators | Number of trees | [10, 500] | 391 |
| learning_rate | Control on boosting iteration | [0.01, 0.2] | 0.04 | |
| max_depth | Maximum depth of a tree | [0, 15] | 3 | |
| min_child_weight | Minimum number of instanceweights needed in a child | [1, 10] | 1 | |
| subsample | Percentage of the sample got | [0.5, 1.0] | 0.8 | |
| colsample_bytree | Parameters of subsamplingcolumns | [0.5, 1.0] | 0.6 | |
| lambda | L2 regularization | [0.1, 10] | 0.1 | |
| alpha | L1 regularization | [0.01, 1] | 0.01 | |
| RF | gamma | Minimum gain on a leaf node ofthe tree | [0, 1] | 1 |
| n_estimators | Number of trees | [10, 500] | 266 | |
| max_depth | Maximum depth of a tree | [3, 20] | 15 | |
| min_samples_split | Control internal node splitting | [2, 10] | 7 | |
| min_samples_leaf | Control terminal node size | [1, 5] | 2 | |
| SVM | C | Penalty parameter | [10−3, 103] | 1000 |
| gamma | Kernel coefficient | [10−4, 10] | 0.004 | |
| kernel | Kernel type | [‘rbf’, ‘poly’] | rbf | |
| LR | C | Inverse of regularization strength | [10−3, 103] | 0.91 |
| Scenario | Parameters [Vol, Dur, Int] | Very Low | Low | Moderate | High | Very High | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Area (km2) | Ratio (%) | Area (km2) | Ratio (%) | Area (km2) | Ratio (%) | Area (km2) | Ratio (%) | Area (km2) | Ratio (%) | ||
| R1 | [30, 4, 10] | 2480 | 48.5 | 1300.1 | 25.4 | 1165.6 | 22.8 | 147.4 | 2.9 | 20.3 | 0.4 |
| R2 | [30, 2, 25] | 878.9 | 17.2 | 2796.1 | 54.7 | 1222 | 23.9 | 207.7 | 4.1 | 8.9 | 0.2 |
| R3 | [60, 4, 20] | 1187.1 | 23.2 | 2979 | 58.3 | 812.4 | 15.9 | 126 | 2.5 | 8.9 | 0.2 |
| R4 | [100, 8, 20] | 4.1 | 0.1 | 205.4 | 4 | 1422.6 | 27.8 | 3265.6 | 63.9 | 215.7 | 4.2 |
| R5 | [100, 20, 10] | 3313.7 | 64.8 | 1724.7 | 33.7 | 75.1 | 1.5 | 0 | 0 | 0 | 0 |
| R6 | [130, 8, 30] | 4.1 | 0.1 | 123 | 2.4 | 429.1 | 8.4 | 4121 | 80.6 | 436.3 | 8.5 |
| Group | Feature | Ordinary Rainfall (<50 mm) | Rainstorm (50–101 mm) | Heavy Rainstorm (≥101 mm) | |||
|---|---|---|---|---|---|---|---|
| Contribution (%) | Rank | Contribution (%) | Rank | Contribution (%) | Rank | ||
| Meteorological factors | Total Rainfall Volume | 14.11 | 2 | 12.66 | 2 | 43.72 | 1 |
| Rainfall Duration | 20.24 | 1 | 22.83 | 1 | 18.02 | 2 | |
| Maximum Hourly Rainfall | 7.09 | 5 | 11.72 | 3 | 8.82 | 3 | |
| Building configuration factors | BSC | 10.64 | 3 | 9.52 | 5 | 5.63 | 4 |
| DB | 1.02 | 15 | 0.59 | 16 | 0.16 | 16 | |
| SDBH | 4.69 | 8 | 3.84 | 8 | 1.50 | 11 | |
| SDBV | 4.12 | 10 | 3.65 | 9 | 2.57 | 7 | |
| MBH | 6.21 | 6 | 4.51 | 7 | 2.42 | 8 | |
| FAR | 0.38 | 16 | 0.59 | 15 | 0.82 | 15 | |
| Surface morphological factors | Water Coverage Ratio | 9.80 | 4 | 9.97 | 4 | 5.41 | 5 |
| Green Space Ratio | 3.52 | 12 | 2.87 | 13 | 1.20 | 13 | |
| Impervious Surface Ratio | 4.93 | 7 | 3.61 | 10 | 1.85 | 10 | |
| NDVI | 1.99 | 14 | 2.04 | 14 | 0.96 | 14 | |
| Distance to River | 3.75 | 11 | 5.18 | 6 | 3.25 | 6 | |
| Average Altitude | 3.06 | 13 | 3.39 | 11 | 2.18 | 9 | |
| Road Density | 4.47 | 9 | 3.03 | 12 | 1.49 | 12 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Du, P.; Zhang, Z.; Gong, Y.; Si, S. Rainfall-Stratified Explainable Machine Learning for Quantifying Nonlinear Drivers of Waterlogging Severity: A Case Study in Shanghai, China. Remote Sens. 2026, 18, 1990. https://doi.org/10.3390/rs18121990
Du P, Zhang Z, Gong Y, Si S. Rainfall-Stratified Explainable Machine Learning for Quantifying Nonlinear Drivers of Waterlogging Severity: A Case Study in Shanghai, China. Remote Sensing. 2026; 18(12):1990. https://doi.org/10.3390/rs18121990
Chicago/Turabian StyleDu, Pengpeng, Zhiming Zhang, Yongwei Gong, and Shuai Si. 2026. "Rainfall-Stratified Explainable Machine Learning for Quantifying Nonlinear Drivers of Waterlogging Severity: A Case Study in Shanghai, China" Remote Sensing 18, no. 12: 1990. https://doi.org/10.3390/rs18121990
APA StyleDu, P., Zhang, Z., Gong, Y., & Si, S. (2026). Rainfall-Stratified Explainable Machine Learning for Quantifying Nonlinear Drivers of Waterlogging Severity: A Case Study in Shanghai, China. Remote Sensing, 18(12), 1990. https://doi.org/10.3390/rs18121990

