Home / Research Article / Research Article
Back
Research Article Open access

Flood susceptibility mapping using ensemble machine learning models and SHAP analysis in the Shebelle River Basin, Somalia

Abstract

The Shebelle River Basin in Somalia is perennially threatened by devastating floods, yet it remains profoundly understudied, with existing conventional models, incomplete variable selection, and a lack of model interpretability. This study addresses these gaps by proposing an Explainable Stacking Ensemble Model designed for high-precision and transparent flood risk assessment. Our sophisticated stacking architecture integrates five diverse base models, XGBoost, LightGBM, and CatBoost, whose predictions are synthesised by a CatBoost meta-classifier to achieve superior predictive performance. The model was trained on a comprehensive set of seventeen conditioning factors using a balanced dataset of 4,154 locations. Our proposed model demonstrated exceptional performance, achieving (Accuracy: 91.26%, F1-Score: 91.36%, ROC-AUC: 0.9723) and outperforming Gradient Boosting Machines, Extra Trees, XGBoost, LightGBM, and CatBoost. Crucially, to dismantle the ‘black-box’ nature of complex ensembles, we embedded SHAP (SHapley Additive exPlanations) analysis directly into the framework. This provides unparalleled interpretability, revealing Topographic Wetness Index (TWI), elevation, rainfall, and stream order as the most influential factors driving flood susceptibility. The resulting high-resolution risk map accurately identifies high-risk zones along the middle and lower reaches of the Shebelle River, aligning with historical events.

Keywords

Flood susceptibility mapping; stacking ensemble; SHAP analysis; CatBoost; XGBoost; LightGBM

References (82)

  1. Abdelkareem M, Mansour AM. 2023. Risk assessment and management of vulnerable areas to flash flood hazards in arid regions using remote sensing and GIS-based knowledge-driven techniques. Natural Hazards. springer.com.
  2. Abdinour S, Jayanta O. 2023. GIS based flood risk assessment using multi criteria decision analysis of shebelle river basin in Southern Somalia. SN Applied Sciences. (January). https://doi.org/10.1007/s42452-023-05360-5
  3. Abdullahi AM, Nor FI, Abdullahi AM. 2024. Climate-induced humanitarian crisis, assessing the impact of recent floods and disease outbreaks in Somalia: short communication. Annals of Medicine and Surgery. 86(7):3806–3807. https://doi.org/10.1097/MS9.0000000000002139
  4. Ahmed MA, Mohamed MH, Parvin MM, Ilić P. 2022. The recurrence of natural disasters in jowhar, middle shabelle region, Somalia: the causes and impacts. Journal of Environmental Protection. 13(09):657–670. https://doi.org/10.4236/jep.2022.139042
  5. Alam MG, Tripathi V, Bhatt CM, Mohanty MP. 2025. A novel framework embedding Bayesian-optimized ensemble machine learning and explainable artificial intelligence (XAI) to improve flood prediction in complex watersheds. Environmental and Sustainability Indicators. 27:100760. https://doi.org/10.1016/j.indic.2025.100760
  6. Alarifi SS, Abdelkareem M, Abdalla F, Alotaibi M. 2022. Flash flood hazard mapping using remote sensing and GIS techniques in southwestern Saudi Arabia. Sustainability. 14(21):14145. https://doi.org/10.3390/su142114145
  7. Bihri H, Charaf LA, Azzouzi S, Charaf MEH. 2025. A robust stacking-based ensemble model for predicting cardiovascular diseases. AI. 6(7):160. https://doi.org/10.3390/ai6070160
  8. Billi P, Sebhat MY. 2022. River hydromorphology and flood hazard in Somalia. doi; p. 281–311. https://doi.org/10.1007/978-3-031- 05487-7_13
  9. Brewer CA, Marlow KA. 1993. Color representation of aspect and slope simultaneously. Proceedings, Elev Int Symp Comput Cartogr (Auto-Carto-11), Minneapolis, October 1993:328–337. [Online]. Available. http://www.personal.psu.edu/cab38/ Terrain/AutoCarto.html
  10. Bui Q-T et al. 2020. Verification of novel integrations of swarm intelligence algorithms into deep learning neural network for flood susceptibility mapping. Journal of Hydrology. 581:124379. https://doi.org/10.1016/j.jhydrol.2019.124379
  11. Chapi K et al. 2017. A novel hybrid artificial intelligence approach for flood susceptibility assessment. Environmental Modelling & Software. 95:229–245. [CrossRef].
  12. Choubin B, Jaafari A, Henareh J, Karimi O, Sajedi Hosseini F. 2025. Explainable artificial intelligence (XAI) for interpreting predictive models and key variables in flood susceptibility. Results in Engineering. 27:105976. https://doi.org/10.1016/j.rineng.2025.105976
  13. Chowdhuri I, Pal SC, Chakrabortty R. 2020. Flood susceptibility mapping by ensemble evidential belief function and binomial logistic regression model on river basin of eastern India. Advances in Space Research. 65(5):1466–1489. https://doi.org/10.1016/j.asr.2019.12.003
  14. Costache R, Pham QB, Sharifi E, Thi N, Linh T. 2020. Flash-flood susceptibility assessment using multi-criteria decision making and machine learning supported by remote sensing and GIS techniques.
  15. Costache R et al. 2022. Flood susceptibility evaluation through deep learning optimizer ensembles and GIS techniques. J Environ Manag. 316:115316.
  16. Dharmarathne G, Waduge AO, Bogahawaththa M, Rathnayake U, Meddage DPP. 2024. Adapting cities to the surge: a comprehensive review of climate-induced urban flooding. Results in Engineering. 22:102123. https://doi.org/10.1016/ j.rineng.2024.102123
  17. Diriba D, Takele T, Karuppannan S, Husein M. 2024. Flood hazard analysis and risk assessment using remote sensing, GIS, and AHP techniques: a case study of the gidabo watershed, main Ethiopian rift, Ethiopia. Geomatics, Natural Hazards and Risk. 15(1). https://doi.org/10.1080/19475705.2024.2361813
  18. Doulabian S et al. 2021. Evaluation of integrating swat model into a multi-criteria decision analysis towards reliable rainwater harvesting systems. Water. 13(14):1935. https://doi.org/10.3390/w13141935
  19. Duan M et al. 2024. Identifying soil groups and selecting a high-accuracy classification method based on multitextural features with optimal window sizes using remote sensing images. Ecological Informatics. 81:102563. https://doi.org/10.1016/j.ecoinf.2024.102563
  20. Esfandiari M, Jabari S, McGrath H, Coleman D. 2020. Flood mapping using random forest and identifying the essential conditioning factors; A case study in fredericton, new Brunswick, Canada. ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences. 5(3):609–615. https://doi.org/10.5194/isprs-Annals-V-3-2020-609-2020
  21. Ettazarini S. 2021. GIS-based land suitability assessment for check dam site location, using topography and drainage information: a case study from Morocco. 80(17):567. https://doi.org/10.1007/s12665-021-09881-3
  22. Ganie SM, Dutta Pramanik PK, Zhao Z. 2025. Enhanced and interpretable prediction of multiple cancer types using a stacking ensemble approach with SHAP analysis. Bioengineering. 12(5):472. https://doi.org/10.3390/ bioengineering12050472
  23. Ghaleb M et al. 2026. Mapping flood susceptibility with a stacking ensemble approach: an exemplary case study in Yemen. Acta Geophysica. 74(3):184. https://doi.org/10.1007/s11600-026-01915-3
  24. Ghanim AAJ et al. 2023. An improved flood susceptibility assessment in jeddah, Saudi Arabia. Using Advanced Machine Learning Techniques. 1–18.
  25. Guan X, Xue R, He Z, Chen S, Chen X. 2025. CatBoost-Optimized hyperspectral modeling for accurate prediction of wood dyeing formulations. Forests. 16(8):1279. https://doi.org/10.3390/f16081279
  26. Gudiyangada Nachappa T et al. 2020. Flood susceptibility mapping with machine learning, multi-criteria decision analysis and ensemble using dempster shafer theory. Journal of Hydrology. 590:125275. https://doi.org/10.1016/j.jhydrol.2020.125275
  27. Gulshad K, Yaseen A, Szydłowski M. 2024. From data to decision: interpretable machine learning for predicting flood susceptibility in gdańsk, Poland. Remote Sensing. 16(20):3902. https://doi.org/10.3390/rs16203902
  28. Hasanuzzaman M, Islam A, Bera B, Shit PK. 2022. A comparison of performance measures of three machine learning algorithms for flood susceptibility mapping of river silabati (tropical river, India). Physics and Chemistry of the Earth, Parts A/B/C. 127:103198. https://doi.org/10.1016/j.pce.2022.103198
  29. Hong H, Wang D, Zhu A-X, Wang Y. 2024. Landslide susceptibility mapping based on the reliability of landslide and non-landslide sample. Expert Systems with Applications. 243:122933. https://doi.org/10.1016/j.eswa.2023.122933
  30. Hong H et al. 2018. Application of fuzzy weight of evidence and data mining techniques in construction of flood susceptibility map of poyang county, China. Science of the Total Environment. 625:575–588. https://doi.org/10.1016/j.scitotenv.2017.12.256
  31. Huang D, Su L, Zhou L, Tian Y, Fan H. 2023. Assessment of gully erosion susceptibility using different DEM-derived topographic factors in the black soil region of northeast China. International Soil and Water Conservation Research. 11(1):97–111. https:// doi.org/10.1016/j.iswcr.2022.04.001
  32. Ibrahem Ahmed Osman A, Najah Ahmed A, Chow MF, Feng Huang Y, El-Shafie A. 2021. Extreme gradient boosting (Xgboost) model to predict the groundwater levels in selangor Malaysia. Ain Shams Engineering Journal. 12(2):1545–1556. https:// doi.org/10.1016/j.asej.2020.11.011
  33. Ibrahim OA, Goshime DW, Tekleab S, Absi R. 2024. Flood inundation mapping and mitigation options in data-scarce region of beledwayne town in the wabi shebele river basin of Somalia. Natural Hazards Research. 4(2):336–346. https:// doi.org/10.1016/j.nhres.2023.11.001
  34. Islam MT et al. 2025. Comparative evaluation of machine learning models for extreme river water level forecasting in Bangladesh: implications for flood and drought resilience. Progress in Disaster Science. 27:100449. https://doi.org/10.1016/ j.pdisas.2025.100449
  35. Janizadeh S et al. 2019. Prediction success of machine learning methods for flash flood susceptibility mapping in the tafresh watershed, Iran. Sustainability. 11(19):5426. https://doi.org/10.3390/su11195426
  36. Karakuş CB, Yıldız S. 2022. Gis-multi criteria decision analysis-based land suitability assessment for dam site selection. International Journal of Environmental Science and Technology. 19(12):12561–12580. https://doi.org/10.1007/s13762-022-04323-4
  37. Karimi H, Zeinivand H. 2021. Integrating runoff map of a spatially distributed model and thematic layers for identifying potential rainwater harvesting suitability sites using GIS techniques. Geocarto International. 36(3):320–339. https://doi.org/10.1080/10106049.2019.1608590
  38. Khan AA, Chaudhari O, Chandra R. 2024. A review of ensemble learning and data augmentation models for class imbalanced problems: combination, implementation and evaluation. Expert Systems with Applications. 244:122778. https://doi.org/10.1016/j.eswa.2023.122778
  39. Kiani A, Motamedvaziri B, Khaleghi MR, Ahmadi H. 2025. Spatial prediction of flood susceptible areas using machine learning methods in the siahkhor watershed of kermanshah province. Earth Science Informatics. 18(1):20. https:// doi.org/10.1007/s12145-024-01539-5
  40. Ma M et al. 2021. XGBoost-based method for flash flood risk assessment. Journal of Hydrology. 598:126382. https://doi.org/10.1016/j.jhydrol.2021.126382
  41. Mohamad Deros SN, Naim MR, Din NM. 2025. Explainable artificial intelligence (XAI) to interpret the contributing factors of land subsidence susceptibility prediction model. Environmental Advances. 15:200129. https://doi.org/10.1016/ j.teadva.2025.200129
  42. Mohamoud AM, Al-Areeq AM, Chowdhury S, Al-Suwaiyan M. 2026. Assessment of flood susceptibility mapping using integrated multi-criteria decision analysis and machine learning. International Journal of Environmental Science and Technology. 23(2):148. https:// doi.org/10.1007/s13762-025-06861-z
  43. Mosavi A, Ozturk P, Chau K. 2018. Flood prediction using machine learning models: literature review. Water. 10:1536 [CrossRef].
  44. Nam K, Lee Y, Lee S, Kim S, Zhang S. 2025. Explainable artificial intelligence (XAI) for flood susceptibility assessment in Seoul: leveraging evolutionary and Bayesian AutoML optimization. Remote Sensing. 17(13):2244. https://doi.org/10.3390/rs17132244
  45. Noori AM, Pradhan B, Ajaj QM. 2019. Dam site suitability assessment at the greater zab river in Northern Iraq using remote sensing data and GIS. Journal of Hydrology. 574:964–979. https://doi.org/10.1016/j.jhydrol.2019.05.001
  46. Noura HN, Chu T, Allal Z, Salman O, Chahine K. 2024. A comparative study of ensemble methods and multioutput classifiers for predictive maintenance of hydraulic systems. Results in Engineering. 24:102900. https://doi.org/10.1016/j.rineng.2024.102900
  47. Preeti P, Shendryk Y, Rahman A. 2022. Identification of suitable sites using GIS for rainwater harvesting structures to meet irrigation demand. Water (Switzerland). 14(21):3480. https://doi.org/10.3390/w14213480
  48. Pugliese Viloria AJ, Folini A, Carrion D, Brovelli MA. 2024. Hazard susceptibility mapping with machine and deep learning: a literature review. Remote Sensing. 16(18):3374. https://doi.org/10.3390/rs16183374
  49. Quang NH, Hanh LN, Van An N. 2025. Boosting vs. Traditional machine learning models for flood susceptibility mapping: insights from a case study in central Vietnam. Advances in Space Research. 76:5058–5084. https://doi.org/10.1016/ j.asr.2025.07.105
  50. Rahman M et al. 2021. Development of flood hazard map and emergency relief operation system using hydrodynamic modeling and machine learning algorithm. Journal of Cleaner Production. 311:127594. https://doi.org/10.1016/j.jclepro.2021.127594
  51. Rashidi Shikhteymour S, Borji M, Bagheri-Gavkosh M, Azimi E, Collins TW. 2023. A novel approach for assessing flood risk with machine learning and multi-criteria decision-making methods. Applied Geography. 158:103035. https:// doi.org/10.1016/j.apgeog.2023.103035
  52. Razavi-Termeh SV, Pourzangbar A, Sadeghi-Niaraki A, Franca MJ, Choi S-M. 2025. Metaheuristic-driven enhancement of categorical boosting algorithm for flood-prone areas mapping. International Journal of Applied Earth Observation and Geoinformation. 136:104357. https://doi.org/10.1016/j.jag.2025.104357
  53. Resources W. 2022. “Comprehensive Assessment for Flood Mitigation in Jowhar Riverine Areas,” no. January.
  54. Różycka M, Migoń P, Michniewicz A. 2017. Topographic wetness index and terrain ruggedness index in geomorphic characterisation of landslide terrains, on examples from the sudetes, SW Poland. Zeitschrift für Geomorphologie Supplementary Issues. 61(2):61–80. https://doi.org/10.1127/zfg_suppl/2016/0328
  55. Saber M et al. 2022. Examining LightGBM and CatBoost models for wadi flash flood susceptibility prediction. Geocarto International. 37(25):7462–7487. https://doi.org/10.1080/10106049.2021.1974959
  56. Sachdeva S, Kumar B. 2022. Flood susceptibility mapping using extremely randomized trees for assam 2020 floods. Ecological Informatics. 67:101498. https://doi.org/10.1016/j.ecoinf.2021.101498
  57. Said M, Hassan A. 2024. Advanced Assessment of Socioeconomic Impacts Resulting from Flooding: A Case Study of Beledweyne, Hiran, Somalia. J Earth Environ Waste Manag. 2024 researchgate.net.
  58. Saravanan S et al. 2023. Flood susceptibility mapping using machine learning boosting algorithms techniques in idukki district of kerala India. Urban Climate. 49:101503. https://doi.org/10.1016/j.uclim.2023.101503
  59. Schäuble H, Marinoni O, Hinderer M. 2008. A GIS-based method to calculate flow accumulation by considering dams and their specific operation time. Computers & Geosciences. 34(6):635–646. https://doi.org/10.1016/j.cageo.2007.05.023
  60. Seydi ST et al. 2022. Comparison of machine learning algorithms for flood susceptibility mapping. Remote Sensing. 15(1):192. https://doi.org/10.3390/rs15010192
  61. Shao Z, Jahangir Z, Yasir QM, Mahmood S. 2020. Identification of potential sites for a multi-purpose dam using a dam suitability stream model. Water (Switzerland). 12(11):3249. https://doi.org/10.3390/w12113249
  62. Singh S, Swarnkar S, Sinha R. 2025. Integrating sediment connectivity and stream power index with RUSLE for modelling soil erosion dynamics in a large himalayan basin under modern and future climate scenarios. Earth Surf Process Landforms. 50(3). https://doi.org/10.1002/esp.70032
  63. Spedicato GA, Dutang C, Petrini L. 2018. Machine learning methods to perform pricing optimization. A comparison with standard GLMs. Variance. 12(1):69–89. [Online]. Available:https://hal.archives-ouvertes.fr/hal-01942038v2
  64. Szabó S et al. 2024. Classification assessment tool: a program to measure the uncertainty of classification models in terms of class-level metrics. Appl Soft Comput. 155:111468. https://doi.org/10.1016/j.asoc.2024.111468
  65. Tang X, Li J, Liu M, Liu W, Hong H. 2020. Flood susceptibility assessment based on a novel random Naïve Bayes method: a comparison between different factor discretization methods. CATENA. 190:104536. https://doi.org/10.1016/j.catena.2020.104536
  66. Thiemig V et al. 2010. Ensemble flood forecasting in Africa: a feasibility study in the Juba–Shabelle river basin. Atmospheric Science Letters. 11(2):123–131. https://doi.org/10.1002/asl.266
  67. Towfiqul Islam ARM et al. 2021. Flood susceptibility modelling using advanced ensemble machine learning models. Geoscience Frontiers. 12(3):101075. https://doi.org/10.1016/j.gsf.2020.09.006
  68. Tukhtaev A, Turimov D, Kim J, Kim W. 2024. Feature selection and machine learning approaches for detecting sarcopenia through predictive modeling. Mathematics. 13(1):98. https://doi.org/10.3390/math13010098
  69. Vafakhah M, Mohammad Hasani Loor S, Pourghasemi H, Katebikord A. 2020. Comparing performance of random forest and adaptive neuro-fuzzy inference system data mining models for flood susceptibility mapping. Arabian Journal of Geosciences. 13(11):417. https://doi.org/10.1007/s12517-020-05363-1
  70. Waleed M, Sajjad M. 2025. Advancing flood susceptibility prediction: a comparative assessment and scalability analysis of machine learning algorithms via artificial intelligence in high‐risk regions of Pakistan. Journal of Flood Risk Management. 18(1). https://doi.org/10.1111/jfr3.13047
  71. Wang L et al. 2022. A review of the flood management: from flood control to flood resilience. Heliyon. 8(11):e11763. https://doi.org/10.1016/j.heliyon.2022.e11763
  72. Wang Q et al. 2025. Regional differences in the effects of atmospheric moisture residence time on precipitation isotopes over eurasia. 314:107813. https://doi.org/10.1016/j.atmosres.2024.107813
  73. Wang Y et al. 2018. A hybrid GIS multi-criteria decision-making method for flood susceptibility mapping at shangyou, China. Remote Sensing. 11:62. https://doi.org/10.3390/rs11010062
  74. World Bank. 2020. Somalia 2019 floods impact and needs assessment. World Bank; p. 1–118.
  75. Yang H et al. 2024. Advancing flood susceptibility modeling using stacking ensemble machine learning: a multi-model approach. Journal of Geographical Sciences. 34(8):1513–1536. https://doi.org/10.1007/s11442-024-2259-2
  76.  
  77. Editorial notes for verification
  78. • Several entries are incomplete in the supplied source. Missing author names, publication titles, journal details, page ranges, and/or URLs have not been invented.
  79. • The entries by Bihri et al. (2025), Ganie et al. (2025), Guan et al. (2025), Hong et al. (2024), Khan et al. (2024), Noura et al. (2024), and Tukhtaev et al. (2024) appear unrelated to flood susceptibility or flood risk; confirm that they belong in this bibliography.
  80. • The records for Costache et al. (2020), Ghanim et al. (2023), Resources W. (2022), and Said and Hassan (2024) lack sufficient publication information for a complete APA 7 reference.
  81. • Where the source used 'et al.' in the reference list, the full author list is needed for APA 7 (list up to 20 authors; for 21 or more, list the first 19, an ellipsis, and the final author).
  82. • Some journal names and article titles were expanded or standardized from abbreviations where the identification was reasonably clear. Please verify these against the original publications.