Affiliations 

  • 1 Department of Electrical and Telecommunication Engineering, South Eastern University of Sri Lanka, Oluvil, Sri Lanka
  • 2 Business Continuity Management & Integrated Emergency Management Program, Faculty of Resilience, Rabdan Academy, Abu Dhabi, United Arab Emirates
  • 3 Department of Computer and Communication Systems Engineering, University Putra Malaysia, Serdang, Malaysia
  • 4 Department of Civil Engineering, South Eastern University of Sri Lanka, Oluvil, Sri Lanka
Front Artif Intell, 2026;9:1903150.
PMID: 42964103 DOI: 10.3389/frai.2026.1903150

Abstract

Riverine (fluvial) flooding remains a significant climate-related disaster in many countries. Extreme rainfall events caused by climate change cause significant damage and disruption to communities living near riverbanks or neighboring land areas, particularly when risk-sensitive development is ignored. This necessitates an effective mechanism to predict river flooding events and provide timely early warnings to the most vulnerable populations in high-risk flood-prone areas. The dynamics of flood risks require a localized, automated, and scalable solution that can be centrally monitored. This study presents a river flood forecasting system integrating artificial intelligence (AI) and Internet of Things (IoT). This system was deployed in one of the flood-prone river basins in Sri Lanka to assess the operational feasibility of real-time hydrological monitoring and flood-risk classification. The proposed system employed two machine learning models, Long Short-Term Memory (LSTM) and Extreme Gradient Boosting (XGBoost), for flood-risk prediction and IoT sensors (rainfall and ultrasonic sensors) for real-time hydrological data collection. The machine learning models were developed using rainfall, discharge rate, and river water level data to predict flood-risk states. A rule-based ensemble strategy was implemented by combining the outputs of LSTM and XGBoost to prioritize positive-class detection and reduce missed positive-labeled observations. Model performance was evaluated primarily using recall for the positive flood cases, while the overall accuracy was reported as the complementary metric alongside positive-class recall, providing an overall assessment of classification performance. Among the evaluated input window configurations using the same chronological holdout, the rule-based ensemble model with a 1-day input window showed the most favorable observed balance of performance metrics, achieving 100% positive-class recall, with 98.73% accuracy, 50.00% positive-class precision, and 66.67% positive-class F1-score. The 100.00% recall was based on correctly classifying all four positive-labeled observations in the held-out test set (4/4; 95% exact binomial CI: 39.8%-100.0%) and these observations occurred consecutively from November 25 to 28, 2024, and represent one continuous positive-labeled flood episode. The proposed safety-oriented AI-IoT framework demonstrates the operational feasibility of integrating real-time sensing with AI-based flood forecasting; however, longer-term field deployment, including actual flood events, is required to evaluate flood-event prediction performance under real-world flood conditions.

* Title and MeSH Headings from MEDLINE®/PubMed®, a database of the U.S. National Library of Medicine.