Intelligent Web App for Flash Flood Prediction in Nigeria’s Coastal Regions
Main Article Content
Abstract
Many coastal cities in Nigeria and around the world are faced with the menace of flash floods and many times, it temporarily disrupts the socio-economic activities of residents. This project aims to address this challenge by developing a smart web application using machine learning to intelligently predict flash flood occurrence and offer recommendations. In order to achieve this, the random forest machine learning algorithm is utilized to analyze environmental data such as rainfall, river levels, and soil moisture necessary for the prediction of a flood which are captured in real-time using the OpenMeteo API. The machine learning model is then trained using these environmental variables and integrated into a web application for easy user interaction. The frontend of the web application is built with TypeScript, React.js, and Tree.js, providing an interactive and user-friendly interface for visualizing flood predictions, while the backend is built using MongoDB and python (FLASK framework). The goal is to offer accurate, real-time flood forecasts to help individuals prepare and respond effectively. This project demonstrates the integration of data science and web development to create a practical tool for disaster risk management. The random forest model was evaluated using the standard metrics for evaluating machine learning models and showed the following results; Accuracy of 96%, precision of 75% and recall of 91%. In addition, the model, showed a Real-time latency of less that one second, which is indicative of a fast response to changing environmental data input. Since flood conditions can change rapidly, this low real-time latency shows that the web is able to respond quickly to new sensor or satellite data input.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
Agbonaye, A. I., & Izinyon, O. C. (2024). Nigerian Coastal Region's Vulnerability to Climate Change. Journal of Energy Technology and Environment, 6(1), 32-48.
Munawar, H. S., Hammad, A. W., & Waller, S. T. (2022). Remote sensing methods for flood prediction: A review. Sensors, 22(3), 960.
Fanta, S. S., & Sime, C. H. (2022). Performance assessment of SWAT and HEC-HMS model for runoff simulation of Toba watershed, Ethiopia. Sustainable Water Resources Management, 8, 1-16.
Verma, R. K., Verma, S., Mishra, S. K., & Pandey, A. (2021). SCS-CN-based improved models for direct surface runoff estimation from large rainfall events. Water Resources Management, 35(7), 2149-2175.
Bui, D. T., Hoang, N. D., Martínez-Álvarez, F., Ngo, P. T. T., Hoa, P. V., Pham, T. D., ... & Costache, R. (2020). A novel deep learning neural network approach for predicting flash flood susceptibility: A case study at a high frequency tropical storm area. Science of The Total Environment, 701, 134413.
Kumar, V., Sharma, K. V., Caloiero, T., Mehta, D. J., & Singh, K. (2023). Comprehensive overview of flood modeling approaches: A review of recent advances. Hydrology, 10(7), 141.
Johnson, D. V., & Gobo, A. E. (2021). Assessment and modeling of flash flood risk from extreme rainfall and soil permeability in Port Harcourt Metropolis, Nigeria. Global Journal of Human-Social Science Geography, Geo-Sciences, Environmental Science and Disaster Management, 21(5), 1-15. https://doi.org/10.1177/2345678912345678
Olajuyigbe, A. E., Rotowa, O. O., & Durojaye, E. (2012). An assessment of flood hazard in Nigeria: The case of mile 12, Lagos. Mediterranean Journal of Social Sciences, 3(2), 367-375.
Lawal, Z. K., Yassin, H., & Zakari, R. Y. (2021, December). Flood prediction using machine learning models: a case study of Kebbi state Nigeria. In 2021 IEEE Asia-Pacific Conference on Computer Science and Data Engineering (CSDE) (1-6). IEEE.
Thiemig, V., Bisselink, B., Pappenberger, F., & Thielen, J. (2015). A pan-African medium-range ensemble flood forecast system. Hydrology and Earth System Sciences, 19(8), 3365-3385.
Oloruntoba, K. R., Taiwo, K., & Agbogun, J. B. (2023). Flood Prediction in Nigeria Using Ensemble Machine Learning Techniques. Ilorin Journal of Science, 10(1), 44-61.
Acheme, I. D., Nwankwo, W., Olayinka, A. S., Makinde, A. S., & Nwankwo, C. P. (2023, March). Petroleum Drilling Monitoring and Optimization: Ranking the Rate of Penetration Using Machine Learning Algorithms. In The International Conference on Artificial Intelligence and Logistics Engineering (152-164). Cham: Springer Nature Switzerland.
Acheme, I. D., Wasiu, A. A., & Edegbe, G. N. (2024). A network intrusion prediction model using Bayesian network. World Journal of Advanced Research and Reviews, 23(1), 2813-2821.
Acheme I. D., Makinde A. S. & Uddin O. O. (2023) Investigating and Ranking the Rate of Penetration (ROP) Features for Petroleum Drilling Monitoring and Optimization International Journal of Innovative Science and Research Technology 8(10).