0% found this document useful (0 votes)
24 views

Prediction Model

Python

Uploaded by

Medini Sree S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Prediction Model

Python

Uploaded by

Medini Sree S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

EARTHQUAKE PREDICTION MODEL USING PYTHON

NAME : DHANASREE M
COLLEGE : R.V.S COLLEGE OF ENGINEERING
Phase 5: Project Documentation & Submission

PROJECT – EARTHQUAKE PREDICTION MODEL

CONTEXT
The National Earthquake Information Center (NEIC)
determines the location and size of all significant earthquakes that
occur worldwide and disseminates this information immediately to
national and international agencies, scientists, critical facilities,
and the general public. The NEIC compiles and provides to
scientists and to the public an extensive seismic database that
serves as a foundation for scientific research through the
operation of modern digital national and global seismograph
networks and cooperative international agreements. The NEIC is
the national data center and archive for earthquake information.

CONTENT
This dataset includes a record of the date, time,
location, depth, magnitude, and source of every earthquake with a
reported magnitude 5.5 or higher since 1965.

DATA SOURCE
Dataset link -
https://www.kaggle.com/datasets/usgs/earthquake-database

FEATURE ENGINEERING

Feature Engineering helps to derive some


valuable features from the existing ones. These extra
features sometimes help in increasing the performance of
the model significantly and certainly help to gain deeper
insights into the data.
CODE
splitted = df['Origin Time'].str.split(' ', n=1,expand=True)
df['Date'] = splitted[0]
df['Time'] = splitted[1].str[:-4]
df.drop('Origin Time',axis=1, inplace=True)
df.head()
OUTPUT

Now, let’s divide the date column into the day, month, and
year columns respectively.
CODE
splitted = df['Date'].str.split('-', expand=True)
df['day'] = splitted[2].astype('int')
df['month'] = splitted[1].astype('int')
df['year'] = splitted[0].astype('int')
df.drop('Date', axis=1,inplace=True)
df.head()
OUTPUT

EXPLORATORY DATA ANALYSIS


EDA is an approach to analyzing the data
using visual techniques. It is used to discover trends, and
patterns, or to check assumptions with the help of
statistical summaries and graphical representations.
CODE
plt.figure(figsize=(10, 5))
x = df.groupby('year').mean()['Depth']
x.plot.bar()
plt.show()
OUTPUT

The depth from which earthquakes are starting is reducing


with every passing year.
plt.figure(figsize=(10, 5))
sb.lineplot(data=df,x='month',y='Magnitude')
plt.subplots(figsize=(15, 5))
plt.subplot(1, 2, 1)
sb.distplot(df['Depth'])
plt.subplot(1, 2, 2)
sb.boxplot(df['Depth'])
plt.show()
OUTPUT
FORMATION

OUTPUT
OUTPUT
OUTPUT
OUTPUT
OUTPUT
OUTPUT
OUTPUT
BENEFITS

1. Data Analysis: Python provides powerful libraries like


NumPy, Pandas, and Matplotlib for data manipulation,
exploration, and visualization, helping researchers analyze
historical seismic data.

2. Machine Learning: Python's extensive machine


learning libraries, such as Scikit-Learn and TensorFlow,
enable the development of predictive models using
algorithms like regression, decision trees, and neural
networks.

3. Accessibility: Python is open-source and widely


adopted, making it accessible to a large community of
researchers and developers.
4. Flexibility: Python's flexibility allows researchers to
easily adapt and modify models as new data becomes
available or as research objectives change.

5. Integration: Python can be integrated with geographic


information systems (GIS) to incorporate location data and
geographical features in earthquake prediction models.

6. Collaboration: Python facilitates collaboration through


its code-sharing platforms, making it easier for researchers
to work together on earthquake prediction projects.

7. Visualization: Python libraries like Matplotlib and


Seaborn can help visualize model outputs and results,
aiding in the interpretation and communication of findings.

8. Scalability: Python can be used to scale up models for


real-time or large-scale earthquake prediction applications.

9. Rapid Development: Python's simplicity and


extensive libraries allow for the rapid development of
prototypes and experimentation in earthquake prediction
research.

10. Community Support: Python has a vibrant


community and a wealth of online resources, making it
easier to find solutions to challenges and get support when
needed.

CONCLUSION
"Predicting tremors, saving lives:
Python's seismic wisdom."
In conclusion, the earthquake prediction model developed
using Python represents a significant step towards
improving our ability to forecast seismic events. While no
model can predict earthquakes with absolute certainty, this
model demonstrates the potential of machine learning and
data analysis techniques in identifying seismic patterns
and providing early warning signals. Further research and
data refinement are essential to enhance the model's
accuracy and real-world applicability. Nonetheless, this
project lays a foundation for ongoing efforts to mitigate the
impact of earthquakes on vulnerable regions and
populations.
PRESENTED BY,

DHANASREE M

You might also like