Flood Prediction
Flood Prediction
MACHINE LEARNING
M O H A M E D I R FA N
ALI(22112084)
ASHWIN(22112075)
SABEER
INTRODUCTION
• Floods are among the most catastrophic natural disasters,
causing extensive damage to property, infrastructure, and
lives worldwide. Accurate and timely flood prediction is
crucial in disaster management, providing early warnings
that help mitigate impacts. In recent years, machine
learning (ML) has emerged as a powerful tool in predicting
floods due to its ability to process large volumes of
historical and real-time data, identifying patterns that might
be challenging for traditional methods
• This project focuses on predicting flood events based on
rainfall data, specifically targeting Kerala, a region prone to
monsoon-induced flooding. By leveraging machine learning
algorithms, the model processes monthly and annual
rainfall data to predict the likelihood of flooding. Various
11/09/2024 2
models, such as Random Forest, are trained to improve
• Additionally, the project includes deploying this predictive
model through a Flask web application, making it accessible
to users who can input rainfall data and receive real-time
flood predictions. This web-based tool offers a practical, user-
friendly interface that can assist local authorities and
communities in preparing for potential flood events.
Ultimately, this project aims to support proactive flood risk
management, reducing both economic and social impacts by
enhancing flood forecasting capabilities.
11/09/2024 3
LITERATURE
REVIEW
11/09/2024 4
PAPER NAME AUTHORS ALGORITHM AND LIMITATION AND
METHODLOGIES REMARKS
11/09/2024 10
Machine Learning
Preprocessing &
Data Collection Model (Random
Outlier Handling
Forest)
11/09/2024 11
Modules and
Pseudo code
11/09/2024 12
Data Collection and Preprocessing
def preprocess_data(data):
for column in monthly_columns:
cap_outliers(data,
column)
return data
11/09/2024 13
Model Training
11/09/2024 14
Flask Web
Application
Create a web interface for user interaction, where users
input rainfall data and receive predictions
Code:
def predict():
user_data = [float(request.form[field]) for field
in fields]
prediction = rf.predict([user_data])
return render_template('predict.html',
Prediction=prediction)
11/09/2024 15
System Workflow
11/09/2024 16
Experimental
Results
• Training Accuracy and Testing Accuracy:
11/09/2024 17
• Classification Report:
11/09/2024 18
11/09/2024 19
11/09/2024 20
Evaluation
• The evaluation of the flood prediction model
focused on assessing its accuracy, reliability, and
practical utility for early warning systems. The
model was tested using historical rainfall data
from flood-prone areas, and various performance
metrics, including accuracy, precision, recall, and
F1-score, were used to gauge its effectiveness.
Among the models evaluated, Random Forest
yielded the highest accuracy at 85%, proving
robust in classifying flood events based on
rainfall data patterns. Additionally, cross-
validation ensured the model’s stability across
different data subsets, reducing the risk of
overfitting.
• The model was further evaluated through a
11/09/2024 21
Flask-based web application, simulating real-
Case Study
This case study explores a machine learning-based
flood prediction system designed to analyses
monthly rainfall data for accurate flood
forecasting. Using a dataset from Kerala, India,
the model applies Random Forest and other
classifiers to predict flood events based on
historical rainfall records. After preprocessing
the data to handle outliers and optimize features,
the model achieved an accuracy of 85%. A Flask-
based web application allows users to input
rainfall data and receive real-time flood
predictions, providing a valuable tool for
authorities and communities in flood-prone areas.
11/09/2024 This project showcases the effectiveness of data-
22
Conclusion
This project demonstrates the effectiveness of
machine learning in flood prediction by utilizing
historical rainfall data to forecast flood
occurrences. The Random Forest model, which
showed an accuracy of 85%, proved reliable in
identifying patterns associated with flood
events, providing an essential tool for disaster
management. The developed model, integrated
into a user-friendly web application, offers a
valuable resource for authorities and
11/09/2024 23
Future Work
• Improve model accuracy by incorporating additional
environmental factors (e.g., temperature, humidity).
• Use more advanced machine learning models or deep
learning for enhanced accuracy.
• Deploy the model on cloud services for scalability and
accessibility.
11/09/2024 24
References
• Jain, S., & Kumar, R. (2018). "Flood prediction using machine learning techniques: A
survey." Journal of Hydrology, 564, 121-133.
• Rath, M., & Mishra, S. (2020). "Predictive modeling of flood risk using machine
learning." Applied Water Science, 10(7), 1-12.
• Ali, I. A., & Mehmood, A. (2021). "A comprehensive review of machine learning
algorithms for flood prediction." Natural Hazards, 106(2), 1335-1357.
• Elshafie, A., & Shokry, A. (2019). "Application of machine learning in flood prediction:
A case study." Water, 11(5), 999.
• Sahu, S. K., & Tripathy, R. (2020). "Flood prediction using random forest algorithm: A
case study of the Mahanadi river basin." Journal of Water and Climate Change, 11(4),
1023-1035.
• Sharma, R. A., & Kumar, S. (2022). "Machine learning techniques for rainfall
prediction and flood forecasting: A review." Environmental Science and Pollution
Research, 29(24), 35851-35865.
11/09/2024 25
THANK YOU
11/09/2024 26