The Earthquake Prediction Using Machine Learning Algorithms: A Data-Driven Framework Based on Supervised Learning Models

Earthquakes are among the most destructive natural phenomena, occurring suddenly and often causing severe human and infrastructural losses. Accurate and timely prediction of significant seismic events remains a major challenge in seismology. This study presents a systematic machine-learning-based framework for earthquake prediction using historical seismic data. A three-phase methodology is adopted: (i) data acquisition and preprocessing of seismic records obtained from the United States Geological Survey (USGS), (ii) class balancing and feature preparation to address extreme class imbalance inherent in earthquake datasets, and (iii) model development and evaluation using multiple supervised learning algorithms. Binary classification was first employed to distinguish significant from non-significant earthquakes, followed by multi-class classification to categorize events into Minor, Light, Moderate, and Strong classes. Support Vector Machine (SVM), Random Forest (RF), K-Nearest Neighbors (KNN), and Neural Network models were evaluated. After balancing, the binary dataset achieved a 50–50 class distribution, while the multi-class dataset was uniformly balanced across all four classes. Experimental results demonstrate that the Random Forest model achieved the highest binary classification accuracy of 98.15%, with an Area Under the Curve (AUC) of 0.683, indicating strong discriminative capability. The Neural Network model achieved the highest recall (0.611), making it suitable for early warning scenarios where missed detections are critical. For multi-class classification, Random Forest achieved the highest overall accuracy of 87.78%, outperforming other models in robustness and stability. These results confirm the effectiveness of ensemble-based learning for seismic event prediction and highlight the trade-off between accuracy and sensitivity across different algorithms. The proposed framework provides a reliable foundation for earthquake early-warning systems in high-risk regions.

Authors

Institutions

Publication Details

Journal
Statistics, Optimization & Information Computing (University of Cambridge)
Published
2026-04-14
DOI
https://doi.org/10.19139/soic-2310-5070-3417
Primary Topic
Seismology and Earthquake Studies
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The Earthquake Prediction Using Machine Learning Algorithms: A Data-Driven Framework Based on Supervised Learning Models

Ahmed Gamal, Bassel Hafiz, BenBella Sayed Tawfik
Statistics, Optimization & Information Computing (University of Cambridge)
Seismology and Earthquake Studies
article

The Earthquake Prediction Using Machine Learning Algorithms: A Data-Driven Framework Based on Supervised Learning Models

Ahmed Gamal, Bassel Hafiz, BenBella Sayed Tawfik
article en

Abstract

Earthquakes are among the most destructive natural phenomena, occurring suddenly and often causing severe human and infrastructural losses. Accurate and timely prediction of significant seismic events remains a major challenge in seismology. This study presents a systematic machine-learning-based framework for earthquake prediction using historical seismic data. A three-phase methodology is adopted: (i) data acquisition and preprocessing of seismic records obtained from the United States Geological Survey (USGS), (ii) class balancing and feature preparation to address extreme class imbalance inherent in earthquake datasets, and (iii) model development and evaluation using multiple supervised learning algorithms. Binary classification was first employed to distinguish significant from non-significant earthquakes, followed by multi-class classification to categorize events into Minor, Light, Moderate, and Strong classes. Support Vector Machine (SVM), Random Forest (RF), K-Nearest Neighbors (KNN), and Neural Network models were evaluated. After balancing, the binary dataset achieved a 50–50 class distribution, while the multi-class dataset was uniformly balanced across all four classes. Experimental results demonstrate that the Random Forest model achieved the highest binary classification accuracy of 98.15%, with an Area Under the Curve (AUC) of 0.683, indicating strong discriminative capability. The Neural Network model achieved the highest recall (0.611), making it suitable for early warning scenarios where missed detections are critical. For multi-class classification, Random Forest achieved the highest overall accuracy of 87.78%, outperforming other models in robustness and stability. These results confirm the effectiveness of ensemble-based learning for seismic event prediction and highlight the trade-off between accuracy and sensitivity across different algorithms. The proposed framework provides a reliable foundation for earthquake early-warning systems in high-risk regions.

Statistics, Optimization & Information Computing (University of Cambridge)
Suez Canal University (EG)
U.S. Geological Survey
Reduced inequalities
Openalex Percentile: Top 6%
Seismology and Earthquake Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.