This project aims to predict earthquake magnitudes and occurrences using machine learning models.
earthquake-prediction-ml/
├── data/
│ └── earthquake_data.csv
├── src/
│ └── main.py
├── README.md
├── LICENSE
└── requirements.txt
- Clone the repository:
git clone https://github.com/oaslananka/EarthquakePredictionML.git
cd EarthquakePredictionML
- Install the dependencies:
pip install -r requirements.txt
- Run the main script:
python src/main.py
The earthquake data is fetched from the USGS (United States Geological Survey) API. The data includes information about earthquake magnitudes, locations, depths, and times.
This project uses several machine learning algorithms for earthquake prediction, including:
- Random Forest Regressor
- Gradient Boosting Regressor
- XGBoost Regressor
The models are trained using features engineered from the raw earthquake data, such as statistical measures, zero-crossings, peak counts, FFT values, and the Hilbert transform's amplitude envelope.
This project serves as an example of using machine learning techniques for predicting natural events. It demonstrates data fetching, preprocessing, feature engineering, model training, and prediction.
This project is licensed under the MIT License. See the LICENSE file for details.