Flood Early Warning System Using IoT, LoRa, and Machine Learning
This work presents the design, deployment, and field validation of an Artificial Intelligence based Flood Early Warning System developed for the Terai region of Nepal, with a focus on the Kamala River basin in Siraha district. The system addresses the limitations of traditional flood warning mechanisms by integrating real-time sensing, long-range wireless communication, and machine learning based prediction to provide actionable early warnings to vulnerable communities.
From a systems and robotics perspective, the project is structured as a distributed cyber-physical system composed of sensor nodes, communication repeaters, a central processing unit, and human-facing alert interfaces. The deployment consists of a transmitter station at Bhokaraha, two intermediate repeater stations, and a receiver station at Basbitta, collectively covering a line-of-sight distance exceeding 16 kilometers using LoRa wireless communication. This architecture enables reliable data transmission in geographically challenging and infrastructure-limited environments. Each transmitter station is equipped with a microcontroller-based embedded system responsible for data acquisition, local processing, and communication. Sensors include an ultrasonic water-level sensor, a rain gauge, and temperature-humidity sensors, enabling continuous environmental monitoring. The system is designed for autonomous operation using solar power and battery backups, ensuring uninterrupted functionality during adverse weather and power outages.
Communication between stations is achieved using LoRa technology operating at 433 MHz, selected for its low power consumption, long-range capability, and resilience to interference. To maintain secure data transmission, encrypted packets are transmitted between nodes, and repeater stations forward messages to extend coverage without requiring centralized infrastructure. This communication layer enables real-time data flow from upstream river locations to downstream communities at risk. At the core of the system is a machine learning based prediction model trained on historical hydrological and meteorological data obtained from the Department of Hydrology and Meteorology of Nepal. The dataset includes precipitation, temperature, and river water level measurements collected over multiple years. Extensive preprocessing and feature engineering are performed, including seasonal trend analysis, lag-based features, and statistical descriptors to capture the temporal dynamics of river behavior.
Multiple forecasting approaches are evaluated, including classical time-series models such as ARIMA and SARIMA. However, a linear regression based machine learning model with engineered features demonstrates superior performance for this application. The final model achieves a coefficient of determination (R²) of 0.94 and a mean absolute error of approximately 6 centimeters, enabling reliable prediction of rising water levels and flood conditions approximately one hour in advance. The receiver station serves as the system’s decision and alert hub. It integrates an embedded microcontroller with a Raspberry Pi for higher-level processing, cloud connectivity, and visualization. A multi-channel alert mechanism is implemented, including a 7-inch LCD display for real-time data visualization, a high-power audible siren for immediate community alerts, and a web-based dashboard for remote monitoring. These interfaces ensure that predictions generated by the AI model are translated into timely and understandable warnings for local populations.
Field testing and validation are conducted across multiple river sites, confirming robust communication performance, reliable sensor operation, and accurate prediction under real-world conditions. The system demonstrates stable operation with multi-day power autonomy, effective signal propagation through repeater stations, and consistent early warning delivery during rising water events. The deployment directly supports community preparedness and evacuation planning, aligning with international disaster risk reduction frameworks. This project demonstrates how low-cost robotics, embedded systems, and machine learning can be integrated into scalable disaster mitigation infrastructure for developing regions. By combining sensing, communication, prediction, and human-centered alerting into a unified system, the work establishes a replicable model for AI-driven early warning systems capable of reducing loss of life and improving resilience in flood-prone environments.