Giter Club home page Giter Club logo

thecoderpinar / earthquake_prediction_analysis_project Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 2.0 1.35 MB

๐ŸŒ Welcome to the Earthquake Prediction Analysis Project! ๐Ÿš€ This project aims to predict earthquake magnitudes using LSTM neural networks and analyze seismic data. Explore, analyze, and forecast earthquakes with ease! ๐Ÿ“ˆ๐Ÿ”ฎ

License: MIT License

Python 31.34% MATLAB 68.66%
analysis data-analysis data-science earthquake-prediction geocoding geology lstm lstm-neural-networks machine-learning matlab matlab-deep-learning open-source time-series visualization

earthquake_prediction_analysis_project's Introduction

Earthquake Prediction Analysis Project

Earthquake

Welcome to the Earthquake Prediction Analysis Project! This project aims to predict the magnitude of earthquakes using time series data and LSTM (Long Short-Term Memory) neural networks.

๐Ÿ“‹ Table of Contents

  1. Introduction
  2. Installation
  3. Usage
  4. Dataset
  5. Model Architecture
  6. Results
  7. Future Work
  8. Contributing
  9. License
  10. Open Source Code

๐ŸŒ Introduction

Earthquake prediction is a critical area of research aiming to mitigate the impact of seismic activities on society and infrastructure. This project utilizes machine learning techniques, particularly LSTM neural networks, to forecast the magnitude of earthquakes based on historical seismic data.

๐Ÿ’ป Installation

To install and run this project locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Install the required dependencies listed in the requirements.txt file using pip:
    pip install -r requirements.txt
  3. Run the main script earthquake_prediction.py to train the LSTM model and make predictions.

๐Ÿš€ Usage

After installing the necessary dependencies and running the main script, you can use the trained LSTM model to make earthquake magnitude predictions. Additionally, you can customize the model architecture and hyperparameters to improve prediction accuracy.

๐Ÿ“Š Dataset

The dataset utilized in this project comprises historical earthquake records, encompassing attributes such as timestamp, geographic coordinates, depth, and magnitude. Prior to employment, the data undergoes preprocessing and partitioning into training and testing subsets for model training and assessment.

Kandilli Observatory Live Earthquake Data

Live earthquake data from the Kandilli Observatory and Earthquake Research Institute can be accessed through the following API endpoint:

curl -X 'GET' \
  'https://api.orhanaydogdu.com.tr/deprem/kandilli/live' \
  -H 'accept: application/json'

Sample Response:

Date & Time (UTC) Location_tz Depth (km) Magnitude
2024-03-19 21:36:40 Europe/Istanbul 7 2.8
2024-03-19 21:14:44 Europe/Istanbul 6.8 1.9
2024-03-19 19:48:26 Europe/Istanbul 12.5 1.7
2024-03-19 19:43:28 Europe/Istanbul 10.2 2.9
2024-03-19 19:40:16 Europe/Istanbul 5 2.4
  • This API endpoint provides access to live earthquake data for real-time monitoring and analysis purposes.

๐Ÿง  Model Architecture

The LSTM neural network architecture used in this project consists of multiple LSTM layers followed by dense layers for regression. The model takes sequential earthquake data as input and learns to predict the magnitude of future earthquakes.

๐Ÿ“‰ Results

The performance of the LSTM model is evaluated using the following metrics:

  • Mean Squared Error (MSE)
  • Root Mean Squared Error (RMSE)
  • Mean Absolute Error (MAE)

Additionally, the correlation coefficient between predicted and actual earthquake magnitudes is calculated to assess the model's performance.

View Results
Metric Value
Mean Squared Error (MSE) 1.9480
Root Mean Squared Error (RMSE) 1.3957
Mean Absolute Error (MAE) 1.3818

๐Ÿ”ฎ Future Work

There are several opportunities for future improvement and expansion of this project:

  • Incorporating additional features such as seismic waveforms and geological data.
  • Experimenting with different neural network architectures and hyperparameters.
  • Developing a web-based application for real-time earthquake prediction and monitoring.
Contribute to Future Work

If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐ŸŒŸ Open Source Code

Feel free to use, modify, and distribute this code for educational and research purposes. If you find this project helpful, consider giving it a star on GitHub!

earthquake_prediction_analysis_project's People

Contributors

thecoderpinar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.