AI-Driven Flood Prediction Methods
AI-Driven Flood Prediction Methods
INTRODUCTION
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 1
CHAPTER-2
LITERATURE SURVEY
Successful catastrophe risk the board depends on science-based answers for close the
hole among anticipation and readiness measures. The meeting on the Unified Countries
post2015 structure for catastrophe risk decrease features the requirement for cross-line early
admonition frameworks to reinforce the readiness periods of calamity risk the board, to save
lives and property and diminish the general effect of serious occasions. Mainland and
worldwide scale flood estimating frameworks give fundamental early flood cautioning data to
public and global common security specialists, who can utilize this data to go with choices on
the most proficient method to plan for impending floods. Here the expected financial
advantages of early flood alerts are assessed in view of the conjectures of the mainland scale
European Flood Mindfulness Framework (EFAS) utilizing existing flood harm cost data and
estimations of potential stayed away from flood harms. The advantages are of the request for
400 Euro for each 1 Euro contributed. A responsiveness examination is acted to test the
vulnerability in the technique and foster an envelope of possible money related advantages of
EFAS alerts. The outcomes give obvious proof that there is logical a significant financial
advantage in this cross-line mainland scale flood early admonition framework. This supports
the more extensive drive to carry out early advance notice frameworks at the mainland or
worldwide scale to work on our versatility to normal perils.
Creator: He, X.; Refsgaard, J.C.; Sonnenborg, T.O.; Vejen, F.; Jensen, K.H Conceptual:
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 2
CHAPTER-3
SYSTEM ANALYSIS
1) High precision
2) High productivity
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 3
3.3 FEASIBILITY STUDY
• Conservative Possibility
• Specialized Plausibility
• Social Plausibility
Conservative Achievability
This study is completed to check the monetary effect that the framework will have on
the association. How much asset that the organization can fill the innovative work of the
framework is restricted. The uses should be legitimate. Accordingly the created framework
also affordable and this was accomplished in light of the fact that the greater part of the
advances utilized are openly accessible. Just the modified items must be bought.
Specialized Feasibility
This study is completed to check the specialized possibility, or at least, the
specialized necessities of the framework. Any framework created should not have a popularity
on the accessible specialized assets. This will prompt high requests on the accessible
specialized assets. This will prompt high requests being put on the client. The created
framework should have an unassuming prerequisite, as just insignificant or invalid changes
are expected for executing this framework.
Social Attainability
The part of study is to actually take a look at the degree of acknowledgment of the
framework by the client. This incorporates the method involved with preparing the client to
productively utilize the framework.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 4
CHAPTER-4
SYSTEM REQUIREMENTS
• slam : 4 gb.
• hard circle : 40 gb
Programming Requirments :
• working framework : windows8 or above.
• backend : my sql
• server : django
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 5
• Usability requirement
• Serviceability requirement
• Manageability requirement
• Recoverability requirement
• Security requirement
• Capacity requirement
• Availability requirement
• Scalability requirement
• Interoperability requirement
• Reliability requirement
• Maintainability requirement
• Regulatory requirement
• Environmental requirement
4.2 PURPOSE
This overview distinguishes the cutting edge of ML techniques for flood expectation
where peer-surveyed articles in high level subject fields are checked on. Among the articles
distinguished, through search questions utilizing the pursuit system, those including the
exhibition assessment and correlation of ML strategies were given need to be remembered for
the audit to recognize the ML techniques that perform better specifically applications.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 6
CHAPTER-5
SYSTEM ARCHICTURE
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 7
RELATED WORK :
The overall uses of ML in all flood asset factors according to the viewpoint of ML
displaying and information driven forecast frameworks. Regardless, ML calculations have
significant qualities that should be painstakingly thought about. The first is that they are
comparable to their preparation, by which the framework learns the objective undertaking in
view of past information. In the event that the information is scant or doesn't cover assortments
of the assignment, their learning misses the mark, and consequently, they can't perform well
when they are invested into effort. Hence, utilizing strong information improvement is
fundamental through, e.g., executing a dissemination capability of amounts of loads [56],
invariance evaluations to hold the gathering qualities [57], or recuperating the missing factors
utilizing causally subordinate coefficients [58]. The subsequent perspective is the capacity of
every ML calculation, which might shift across various kinds of undertakings. This can
likewise be known as a "speculation issue", which shows how well the prepared framework
can foresee cases it was not prepared for, i.e., whether it can foresee past the scope of the
preparation dataset.
These attributes of the calculations should be explained as for the sort and measure
of accessible preparation information, and the kind of expectation task, e.g., water level and
streamflow. In this audit, we investigate instances of the utilization of different ML
calculations for different sorts of undertakings. At the theoretical level, we chose to partition
the objective errands into present moment and long haul forecast. We then, at that point,
investigated ML applications for flood-related undertakings, where we organized ML
strategies as single techniques and cross breed strategies. Cross breed strategies are those that
join more than one ML strategy. Here, we ought to take note of that this paper overviews ML
models utilized for expectations of floods on destinations where downpour checks or
insightful detecting frameworks utilized. Our objective was to review forecast models with
different lead times to floods at a specific site. According to this point of view, spatial flood
expectation was not engaged with this review, as we didn't concentrate on forecast models
used to appraise/distinguish the area of floods.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 8
CHAPTER-6
SYSTEM DESIGN
Objectives:
The Essential objectives in the plan of the UML are as per the following:
1. Provide clients a prepared to-utilize, expressive visual demonstrating Language with the
goal that they can create and trade significant models.
2. Provide extendibility and specialization systems to expand the center ideas.
3. Be free of specific programming dialects and advancement process.
4. Provide a proper reason for figuring out the displaying language.
5. Encourage the development of OO instruments market.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 9
6.1.1 Use case diagram:
A utilization case graph in the Bound together Displaying Language (UML) is a sort of
conduct chart characterized by and made from a Utilization case examination. Its motivation
is to introduce a graphical outline of the usefulness given by a framework concerning
entertainers, their objectives (addressed as use cases), and any conditions between those
utilization cases. The principal motivation behind a utilization case chart is to show what
framework capabilities are performed for which entertainer. Jobs of the entertainers in the
framework can be portrayed.
proprocess dataset
home
user login
User login
User sigup
logot
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 10
6.1.2 Class diagram:
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 11
6.1.3 Sequence diagram:
A succession graph in Brought together Demonstrating Language (UML) is a sort of
collaboration chart that shows how cycles work with each other and in what request. It is a
build of a Message Succession Graph. Grouping graphs are now and then called occasion
charts, occasion situations, and timing outlines.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 12
6.2 COLLABARATION DIAGRAM:
Action charts are graphical portrayals of work processes of stepwise exercises and activities
with help for decision, emphasis and simultaneousness. In the Bound together Displaying
Language, action graphs can be utilized to depict thebusiness and functional bit by bit work
processes of parts in a framework. An action outline shows the general progression of control.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 13
CHAPTER-7
SOFTWARE ENVIRONMENT
Python is presently the most broadly utilized multi-reason, significant level programming
language.
Python permits programming in Item Arranged and Procedural ideal models. Python
programs for the most part are more modest than other programming dialects like Java.
Developers need to type generally less and space prerequisite of the language, makes them
discernible constantly.
The greatest strength of Python is immense assortment of standard library which can be
• AI
• Test structures
1. Broad Libraries
2. Embeddable
3. Further developed Efficiency
4. IOT Open doors
5. Coherent
6. Object-Situated
7. Free and Open-Source
8. Convenient
9. Deciphered
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 14
Advantages of Python Over Other Languages :
1. Less Coding
2. Reasonable
3. Python is for Everybody
Impediments of Python
Up to this point, we've seen the reason why Python is an extraordinary decision for your
task. Yet, in the event that you pick it, you ought to know about its ramifications also. How
about we currently see the disadvantages of picking Python over another dialect.
1. Speed Constraints
We have seen that Python code is executed line by line. However, since Python is
deciphered, it frequently brings about sluggish execution. This, in any case, isn't an issue
except if speed is a point of convergence for the undertaking. At the end of the day, except if
high velocity is a necessity, the advantages presented by Python are sufficient to divert us from
its speed restrictions.
While it fills in as a brilliant server-side language, Python is a lot of seldom seen on the
clientside. Other than that, it is seldom at any point used to carry out cell phone based
applications.
The explanation it isn't the case renowned regardless of the presence of Brython is that
it isn't so secure.
3. Plan Limitations
As you probably are aware, Python is progressively composed. This implies that you
don't have to announce the kind of factor while composing the code. It utilizes duck-
composing. In any case, stand by, what's that? Indeed, it simply intends that on the off chance
that it seems to be a duck, it should be a duck.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 15
4. Immature Information base Access Layers
Contrasted with additional generally utilized innovations like JDBC (Java Information
base Network) and ODBC (Open Data set Availability), Python's data set admittance layers
are a piece immature. Therefore, it is less normal applied in tremendous endeavors.
5. Straightforward
No, we're dead serious. Python's straightforwardness can for sure be an issue. Take my
model. I don't do Java, I'm all the more a Python individual. As far as I might be concerned,
its grammar is easy to such an extent that the verbosity of Java code appears to be pointless.
This was about the Benefits and Burdens of Python Programming Language.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 16
7.2 WHAT IS MACHINE LEARNING : -
Before we investigate the subtleties of different AI techniques, how about we start by
seeing what AI is, and what it isn't. AI is frequently classified as a subfield of computerized
reasoning, yet I find that classification can frequently be deluding at first brush. The
investigation of AI positively emerged from research in this specific situation, yet in the
information science utilization of AI techniques, it's more useful to consider AI for of building
models of information.
Managed learning includes some way or another displaying the connection between
estimated highlights of information and some mark related with the information; when this
not entirely set in stone, applying names to new, obscure data can be utilized. This is
additionally partitioned into arrangement undertakings and relapse assignments: in order, the
marks are discrete classes, while in relapse, the names are nonstop amounts. We will see
instances of the two sorts of directed learning in the accompanying area.
Individuals, right now, are the most insightful and high level species on earth since they can
think, assess and take care of mind boggling issues.
On the opposite side, simulated intelligence is still in its underlying stage and haven't
outperformed human knowledge in numerous viewpoints. Then, at that point, the inquiry that
is the need to make machine learn? The most appropriate justification for doing this is, "to
simply decide, in light of information, with productivity and scale".
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 17
7.2.2 Challenges in Machines Learning :-
While AI is quickly developing, taking huge steps with network protection and
independent vehicles, this fragment of simulated intelligence as entire actually has far to go.
The purpose for is that ML has not had the option to beat number of difficulties. The
difficulties that ML is confronting as of now are −
Tedious assignment − One more test looked by ML models is the utilization of time
Absence of expert people − As ML innovation is still in its outset stage, accessibility of master
No reasonable target for figuring out business issues − Having no unmistakable goal and
obvious objective for business issues is one more key test for ML since this innovation isn't
unreasonably adult yet.
Issue of overfitting and underfitting − On the off chance that the model is overfitting or
conveyed, in actuality
AI is the most quickly developing innovation and as per analysts we are in the brilliant year
of computer based intelligence and ML. It is utilized to take care of some certifiable complex
issues which can't be tackled with customary methodology. Following are a few genuine uses
of ML-
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 18
• Feeling examination
• Feeling investigation
• Discourse blend
• Discourse acknowledgment
• Client division
• Object acknowledgment
• Extortion identification
• Extortion avoidance
• Proposal of items to client in web based shopping How to Start Learning Machine
Learning?
Arthur Samuel begat the expression "AI" in 1959 and characterized it as a "Field of study
that gives PCs the capacity to learn without being unequivocally modified".
Also, that was the start of AI! In current times, AI is one of the most famous (if not the
most!) profession decisions. As per For sure, AI Designer Is The Best Occupation of 2019
with a 344% development and a typical base compensation of $146,085 each year.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 19
7.3 PYTHON DEVELOPMENT STEPS : -
VGuido Van Rossum distributed the primary variant of Python code (form 0.9.0) at
[Link] in February 1991. This delivery included as of now special case taking care of,
capabilities, and the center information kinds of rundown, dict, str and others. It was
likewise object situated and had a module framework.
• Print is currently a capability
• Sees and iterators rather than records
• The guidelines for requesting examinations have been rearranged. For example a
heterogeneous rundown can't be arranged, in light of the fact that every one of the
components of a rundown should be practically identical to one another.
• There is just a single number sort left, for example int. long is int too.
• The division of two whole numbers returns a float rather than a whole number. "//" can be
utilized to have the "old" conduct.
Purpose :-
7.4 PYTHON
Python is a deciphered significant level programming language for broadly useful
programming. Made by Guido van Rossum and first delivered in 1991, Python has a plan
reasoning that underlines code meaningfulness, prominently utilizing critical whitespace.
Python includes a powerful kind framework and programmed memory the board. It upholds
various programming ideal models, including objectsituated, basic, practical and procedural,
and has a huge and thorough standard library.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 20
7.5 MODULES UTILIZED IN UNDERTAKING :-
Tensorflow
TensorFlow is a free and open-source programming library for dataflow and
differentiable programming across a scope of errands. It is a representative numerical
library, and is likewise utilized for AI applications like brain organizations. It is utilized
for both examination and creation at Google.
TensorFlow was created by the Google Mind group for inside Google use. It was
Numpy
multifaceted cluster article, and instruments for working with these clusters.
It is the basic bundle for logical registering with Python. It contains different elements
Helpful direct polynomial math, Fourier change, and arbitrary number capacities
Other than its undeniable logical purposes, Numpy can likewise be utilized as a
proficient complex compartment of nonexclusive information. Inconsistent information
types can be characterized utilizing Numpy which permits Numpy to consistently and
rapidly coordinate with a wide assortment of data sets.
Pandas
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 21
7.6 INSTALL PYTHON STEP-BY-STEP IN WINDOWS AND MAC :
Python a flexible programming language doesn't come pre-introduced on your PC
gadgets. Python was first delivered in the year 1991 and until now it is an exceptionally
famous undeniable level programming language. Its style reasoning stresses code
lucidness with its remarkable utilization of extraordinary whitespace.
The article arranged approach and language build given by Python empowers
developers to compose both clear and intelligent code for projects. This product doesn't
come prebundled with Windows.
Note: The python adaptation 3.7.4 can't be utilized on Windows XP or prior gadgets.
Stage 1: Go to the authority webpage to download and introduce python utilizing Google
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 22
Step 2: Snap on the Download Tab.
Presently, check for the most recent and the right variant for your working situation.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 23
Step 3: You can either choose the Download Python for windows 3.7.4 button in Yellow
Tone or you can scroll further down and tap on download with separate to their rendition.
Here, we are downloading the latest python adaptation for windows 3.7.4
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 24
Step 4: Look down the page until you track down the Documents choice.
Step 5: Here you see an alternate rendition of python alongside the working framework.
• To download Windows 32-digit python, you can choose any one from the three choices:
Windows x86 embeddable compress document, Windows x86 executable installer or
Windows x86 online installer.
•To download Windows 64-digit python, you can choose any one from the three choices:
Windows x86-64 embeddable compress document, Windows x86-64 executable installer
or Windows x86-64 online installer.
Here we will introduce Windows x86-64 online installer. Here your initial segment with
respect to which adaptation of python is to be downloaded is finished. Presently we push
forward with the subsequent part in introducing python for example Establishment
Note: To know the progressions or updates that are made in the form you can tap on the
Installation of Python
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 25
Step 1: Go to Download and Open the downloaded python rendition to complete the
establishment cycle.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 26
Step 2: Before you click on Introduce Now, Make a point to put a tick on Add Python 3.7 to
Way.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 27
Step 3: Click on Introduce NOW After the establishment is fruitful. Click on Close.
With these over three stages on python establishment, you have effectively and accurately
Stage 4: Let us test whether the python is accurately introduced. Type python - V and press
Enter.
Stage 5: Name the document and save as type ought to be Python records. Click on SAVE.
contact_no varchar(15),
email varchar(50),
address varchar(50));
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 29
CHAPTER-8
SYSTEM TESTING
Programming framework meets its prerequisites and client assumptions and doesn't flop
in an unsatisfactory way. There are different sorts of test. Each test type tends to a particular
testing necessity.
KINDS OF TESTS
The reason for testing is to find blunders. Testing is the most common way of attempting
to find each possible shortcoming or shortcoming in a work item. It gives a method for really
taking a look at the usefulness of parts, sub congregations, gatherings as well as a completed
item It is the most common way of practicing programming with the plan of guaranteeing that
the Product framework meets its prerequisites and client assumptions and doesn't bomb in an
unsatisfactory way. There are different kinds of test. Each test type tends to a particular testing
prerequisite.
Unit testing
Unit testing includes the plan of experiments that approve that the inward program
rationale is working appropriately, and that program inputs produce legitimate results. All
choice branches and interior code stream ought to be approved. It is the trying of individual
programming units of the application .it is finished after the fruition of a singular unit before
reconciliation. This is an underlying testing, that depends on information on its development
and is obtrusive. Unit tests perform essential tests at part level and test a particular business
interaction, application, as well as framework setup.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 30
Co-ordination testing
Coordination tests are intended to test incorporated programming parts to decide whether
they really run as one program. Testing is occasion driven and is more worried about the
essential result of screens or fields. Incorporation tests exhibit that albeit the parts were
separately fulfillment, as shown by effectively unit testing, the mix of parts is right and
predictable. Reconciliation testing is explicitly pointed toward uncovering the issues that
emerge from the blend of parts.
Practical test
Practical tests give efficient exhibits that capabilities tried are accessible as indicated by
the business and specialized necessities, framework documentation, and client manuals.
Framework Test
Framework testing depends on process portrayals and streams, stressing pre-driven process
connections and combination focuses.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 31
White Box Testing
White Box Testing is a trying wherein in which the product analyzer knows
about the internal operations, construction and language of the product, or if nothing else its
motivation. It is reason. Used to test regions can't be reached from a black box level.
Discovery Testing
Discovery Testing will be trying the product with practically no information on the
internal functions, design or language of the module being tried. Black box tests, as most
different sorts of tests, should be composed from a conclusive source record, for example,
detail or necessities report, for example, particular or prerequisites archive. It is a trying
wherein the product under test is dealt with, as a black box .you can't "see" into it. The test
gives inputs and answers yields disregarding the way that the product works.
Unit Testing
Unit testing is typically led as a feature of a consolidated code and unit test
period of the product lifecycle, in spite of the fact that it is entirely expected for coding and
unit testing to be led as two unmistakable stages.
exhaustively.
Test targets
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 32
8.3 TESTING
SOFTWARE TESTING
Testing
Testing is a process of executing a program with the aim off in ding error. To make ours of
software perform well it ought to be sans mistake. On the off chance that testing is done
effectively it will eliminate every one of the blunders from the software.
Types of Testing
1 White BoxTesting
2 Black BoxTesting
3 Unit testing
4 IntegrationTesting
5 AlphaTesting
6 BetaTesting
7 Performance Testing, etc
WhiteBoxTesting
Testing strategy in light of information on the interior rationale of an application's code and
incorporates tests like inclusion of code explanations, branches, ways, conditions. It is
performed by software developers.
Black BoxTesting
A technique for programming testing that checks the usefulness of an application without
Unit Testing
Programming check and approval technique in which a software engineer tests in the event
that singular units of source code are good for use. It is generally led by the advancement
group.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 33
IntegrationTesting
The stage in programming testing where individual programming modules are consolidated
Alpha Testing
Kind of testing a product item or framework led at the engineer's site. Normally it is
BetaTesting
Last testing prior to delivering application for business reason. It is regularly finished by
endclients or others.
PerformanceTesting
Practical testing led to assess the consistence of a framework or part with indicated
Black BoxTesting
Blackbox testing will be trying the usefulness of an application without knowing the
subtleties of its implementation including internal program structure,data structures etc. Test
cases for black box testing are made in view of the prerequisite details. Hence, it is
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 34
When applied to AI models, discovery testing would mean testing AI models without
realizing the inside subtleties, for example, highlights of the AI model, the calculation used to
make the model and so on. The test, in any case, is to check the test result against the normal
qualities that are known in advance.
The above Fig.4.2 addresses the black box testing method for AI calculations.
[16,7,263,7,0,2,700,9,10,1153 1 1
,832,9,2]
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 35
The model gives out the right result when various data sources are given which are
referenced in Table 4.1. In this way the program is supposed to be executed true to form or
address program
[16,6,324,0,0,0,22,0,0,0,0,0,0] 0 0
[16,7,263,7,0,2,700,9,10,1153,832,9,2 1 1
The model gives out the correct output when different inputs are given which are mentioned
in Table 4.1. Therefore the program is said to be executed as expected or correct program
Test Test Case Test Case Test Steps Test Test
Case
Cas Name Description Step Expected Actual Priorit
e Id Statu s Y
it
starts applicati success.
available
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 36
02 Home Check the If it We The High High
Page
deploymen doesn’t cannot application
t
environme load. access is running
n
t for the successfull y
properly applicati .
loading on.
the
application.
03 User Verify the If it We The High High
Mode working of doesn’t cannot application
the Respond use the displays the
application
The
Database
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 37
CHAPTER-9
EXPERIMENTATION RESULTS
9.1 MODULES
Flood forecasting using machine learning (ML) involves a series of integrated modules that
process data and predict flood events. These modules are designed to analyze various factors,
such as rainfall, river discharge, and historical flood patterns, to make accurate forecasts.
Here's an overview of the key modules involved:
1. Data Collection: The first step in flood forecasting is gathering data from various sources. This
includes meteorological data (e.g., rainfall, temperature), hydrological data (e.g., river levels,
soil moisture), and satellite imagery. The data is usually collected in real-time through sensors,
weather stations, and remote sensing technologies.
2. Data Preprocessing: The raw data collected often requires preprocessing. This step involves
cleaning the data, handling missing values, normalizing, and transforming it into a format
suitable for machine learning models. Feature engineering is also performed, where relevant
attributes such as soil saturation or rainfall intensity are derived.
3. Model Training: Machine learning algorithms are trained on historical flood data to learn
patterns and correlations. Common ML models used for flood prediction include regression
models, decision trees, random forests, support vector machines (SVM), and neural networks.
The model learns how various factors like weather conditions and river flow affect the
likelihood of flooding.
4. Prediction and Forecasting: Once the model is trained, it can predict future flood events based
on current conditions. These predictions are made by feeding real-time data into the trained
model. The output includes flood probability, flood extent, and potential flood timing.
5. Post-processing and Decision Support: The final step involves refining the model's outputs to
provide actionable insights for disaster management. Decision support tools analyze the model's
predictions to determine areas at risk, enabling timely warnings and evacuation plans.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 38
9.2 SAMPLE SOURCE CODE
Here's a simple example of using machine learning for flood forecasting with Python and scikit-
learn. In this example, we'll use a dataset (hypothetical) with features like rainfall and river levels to
predict whether a flood will occur (binary classification).
import pandas as pd
data = pd.read_csv('flood_data.csv')
[Link](X_train, y_train)
y_pred = [Link](X_test)
In above dataset first line contains dataset segment names and remaining columns
contains dataset values. In each column we have month to month and yearly precipitation and
in light of that we have class mark as YES (flood happen) and negative (no flood happen).
So by utilizing above dataset we will prepare all calculations and assess their
presentation with regards to exactness, accuracy, review, FSOCRE, awareness and
particularity.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 40
Fig: 9.3.2 Annual Rainfall in Kerala
In above test information we have month to month and yearly precipitation without flood
name and when we apply this dataset on MLP calculation then it will foresee flood will happen
or not.
1) New Client Information exchange Here: utilizing this module we will permit client to
2) User Login: utilizing this module we will permit client to login to application
3) Preprocess Dataset: utilizing this module we will peruse flood dataset and afterward
eliminate missing qualities and afterward standardize dataset values and afterward split
dataset into train and test where application utilize 80% dataset for preparing and 20%
for testing
4) Run AI Calculations: utilizing this module we will prepare each of the 4 AI calculations
like SVM, Strategic Relapse, KNN and MLP and compute forecast exactness on test
information
5) Forecast Flood: utilizing this module we will transfer test information and afterward
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 41
Fig: 9.3.3 python DJANGO server
In above screen python DJANGO server began and presently open program and enter URL
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 42
Fig: 9.3.4 Flood Forecasting By Using machine learning
In above screen click on 'New Client Data trade Here' association with get under page .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 43
Fig: 9.3.5 Inserting New User Signup screen
In above screen client is joining and afterward click on 'Submit' button to finish information
and get beneath yield .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 44
Fig: 9.3.6 Submiting new user signup screen
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 45
Fig: 9.3.7 User Login Screen
In above screen client is login and after login will get underneath yield .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 46
Fig: 9.3.8 Succesfully login
In above screen click on 'Preprocess Dataset' connection to load and processdataset and
get beneath yield .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 47
Fig: 9.3.9 Flood graph
In above screen dataset handling finished and in chart x-hub addresses names as 0
(no flood) and 1 (flood) and y-pivot addresses number of records in that mark and presently close
above diagram to get beneath yield. By utilizing mark encoding handling method we have
changed over YES and NO to 0 and 1 as AI calculations acknowledge just numeric information .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 48
Fig: 9.3.10 Subdivision of Annual Rainfall for flood forecasting
In above screen whole dataset process and stacked and presently click on 'Run AI Calculations'
connect to prepare all calculations and get underneath yield.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 49
Fig: 9.3.11 Algorithm used for flood forecasting
In above screen in even arrangement we can find in all calculations MLP got most
elevated exactness as 100 percent and for each run this precision might differ from 95 to 100
percent. Presently calculations are prepared and presently click on 'Timberland Flood'
connection to get beneath screen.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 50
Fig: 9.3.12 Flood prediction Screen
In above screen select and upload ‘[Link]’ file and then click on ‘Open’ and ‘Submit’ button to
load test data and get prediction output like below screen. This [Link] is available inside
‘Dataset’ folder .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 51
Fig: 9.3.13 Result of Flood Forecast
In above screen in first section we can see the Precipitation month to month and yearly test
information and in last segment we can see expectation yield as 'Flood Might Happen' in red
tone and 'No Flood Happen' in green tone.
URL listing
[Link]
Searching of any information that will
be used in documentation.
[Link]
[Link] and
Any information searching
downloading.
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 52
CHAPTER -11
FUTURE ENHACEMENT
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 53
CHAPTER-11
CONCLUSION
The most common way of streaming in values at the beginning time and end of the jth
time span are Ij and Ij+1 separately and comparing the worth of surge are Qj and Qj+1. AI
ready to learn and further develop framework in an unequivocal way. AI gives PC programs
that can approach or get or recover access information with learning it. AI capable with to
compute enormous informational index. Counterfeit Smart framework (AIS) used to prepare
information in such method for further developing flood guaging framework with happening
at a beginning phase improvement cautioning framework.
SCOPE :
The speculation capacity of the models and diminished the vulnerability of expectation.
The fourth was the utilization of extra enhancer calculations to work on the nature of AI
calculations, e.g., for better tuning the ANNs to arrive at ideal neuronal models. It is normal
that, through these four key advancements, flood expectation will observer critical upgrades
for both present moment and long haul forecasts. Most likely, the headway of these clever ML
strategies relies exceptionally upon the appropriate utilization of delicate processing
procedures in planning novel learning calculations. This reality was talked about in the paper,
and the delicate figuring strategies were presented as the principal givers in creating cross
breed ML techniques for what's to come .
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 54
CHAPTER-12
REFERENCE
APA Style:
1. Sharma, A., Soni, V. K., & Shishodia, D. P. (2020). Flood prediction using machine learning
techniques: A review. International Journal of Engineering and Advanced Technology (IJEAT), 9(6),
492-499. [Link]
2. Rahman, M. M., Ali, A. K. M. A. S., & Rahman, A. S. M. M. (2021). Machine learning models for
flood forecasting: A comparative review. Water, 13(2), 169. [Link]
3. Zhao, H., Liu, L., & Wang, X. (2020). Flood prediction with deep learning models using long short-
term memory (LSTM). Environmental Modelling & Software, 131, 104755.
[Link]
4. Deka, B. S. I., Bandyopadhyay, S., & Saha, A. K. (2020). Hybrid model of machine learning
algorithms for flood forecasting. Journal of Hydrology, 582, 124476.
[Link]
5. Patel, N., Bedi, H. S. P. S., & Chandra, S. (2018). Real-time flood forecasting using support vector
machine and backpropagation neural network. Hydrological Processes, 32(1), 160-174.
[Link]
6. Zhang, X., Yang, X., & Li, Z. (2021). A novel hybrid model combining machine learning algorithms
for flood prediction. Journal of Hydrology, 592, 125748.
[Link]
7. Bhaskaran, M., Reddy, P. V. C., & Sivaprasad, D. (2022). Flood risk assessment and prediction using
machine learning algorithms. Environmental Science and Pollution Research, 29(25),
37421-37438. [Link]
8. Prasad, J. V. S. R., Anjaneyulu, K. S. R., & Rao, S. M. K. (2019). Flood prediction and forecasting
using artificial neural networks. Journal of Hydrology, 575, 383-392.
[Link]
9. Amarante, J. R. G., Santos, M. A., & Silva, F. S. D. (2021). Deep learning for flood prediction:
A review. Earth Science Informatics, 14(1), 105-116. [Link]
10. Singh, A., Pal, N. S., & Shukla, R. (2021). Artificial intelligence for flood prediction: A review of
machine learning models. Environmental Monitoring and Assessment, 193(8), 526.
[Link]
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 55
MLA Style:
1. Sharma, A., V. K. Soni, and D. P. Shishodia. "Flood Prediction Using Machine Learning
Techniques: A Review." International Journal of Engineering and Advanced Technology
(IJEAT), vol. 9, no. 6, 2020, pp. 492-499. [Link]
2. Rahman, M. M., A. K. M. A. S. Ali, and A. S. M. M. Rahman. "Machine Learning Models for Flood
Forecasting: A Comparative Review." Water, vol. 13, no. 2, 2021, p. 169.
[Link]
3. Zhao, H., L. Liu, and X. Wang. "Flood Prediction with Deep Learning Models Using Long Short-Term
Memory (LSTM)." Environmental Modelling & Software, vol. 131, 2020, p. 104755.
[Link]
4. Deka, B. S. I., S. Bandyopadhyay, and A. K. Saha. "Hybrid Model of Machine Learning Algorithms for
Flood Forecasting." Journal of Hydrology, vol. 582, 2020, p. 124476.
[Link]
5. Patel, N., H. S. P. S. Bedi, and S. Chandra. "Real-Time Flood Forecasting Using Support Vector
Machine and Backpropagation Neural Network." Hydrological Processes, vol. 32, no. 1, 2018, pp. 160-
174. [Link]
6. Zhang, X., X. Yang, and Z. Li. "A Novel Hybrid Model Combining Machine Learning Algorithms for
Flood Prediction." Journal of Hydrology, vol. 592, 2021, p. 125748.
[Link]
7. Bhaskaran, M., P. V. C. Reddy, and D. Sivaprasad. "Flood Risk Assessment and Prediction Using
Machine Learning Algorithms." Environmental Science and Pollution Research, vol. 29, no. 25, 2022,
pp. 37421-37438. [Link]
8. Prasad, J. V. S. R., K. S. R. Anjaneyulu, and S. M. K. Rao. "Flood Prediction and Forecasting Using
Artificial Neural Networks." Journal of Hydrology, vol. 575, 2019, pp. 383-392.
[Link]
9. Amarante, J. R. G., M. A. Santos, and F. S. D. Silva. "Deep Learning for Flood Prediction: A Review."
Earth Science Informatics, vol. 14, no. 1, 2021, pp. 105-116.
[Link]
10. Singh, A., N. S. Pal, and R. Shukla. "Artificial Intelligence for Flood Prediction: A Review of Machine
Learning Models." Environmental Monitoring and Assessment, vol. 193, no. 8, 2021, p. 526.
[Link]
___________________________________________________________________________________
BRIL-CSE(AIML) PAGE 56