<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>A Comparative Study of Machine Learning Techniques for Earthquake Magnitude Prediction</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Alijani</surname><given-names>Habib</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Torabi</surname><given-names>Samira</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<aff id="aff1">Department of Research Center, Shiroud Municipality, Mazandaran, Iran.</aff>
<aff id="aff2">Griffith Centre for Coastal Management, Griffith University Gold Coast Campus, Queensland 4222, Australia.</aff>
</contrib-group>
<abstract><p>Earthquakes are natural disasters with the potential for catastrophic destruction and loss of life. This study aims to enhance earthquake prediction accuracy, focusing on earthquake magnitude and likelihood through Machine Learning (ML) models trained on historical seismic data. Using the earthquake dataset, which contains data on earthquake events from 1966 to 2007, we apply four ML models: linear regression, Support Vector Machine (SVM), Naive Bayes, and Random Forest. Each model is trained to identify patterns by analyzing key earthquake parameters such as magnitude, location, depth, and seismic station data which are known to influence seismic event characteristics. We evaluate predictive accuracy using Mean Squared Error (MSE) and R² scores to determine the most effective model. By comparing these performance metrics, we identify which model performs best in accurately predicting earthquake magnitudes and identifying potential future occurrences. Initial results indicate that ensemble methods, such as Random Forest, tend to outperform simpler models due to their ability to capture complex feature interactions. Our findings underscore the importance of model choice in earthquake prediction and suggest that integrating more data and real-time monitoring can substantially enhance prediction accuracy. This study highlights the potential for machine learning to contribute to more reliable earthquake prediction systems, with the long-term goal of improving public safety and readiness in earthquake-prone areas. By demonstrating that machine learning models can leverage historical earthquake data for predictive purposes, we suggest a pathway toward implementing more advanced, data-driven forecasting model, which could ultimately support early warning systems and disaster preparedness efforts.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Earthquake prediction</kwd><kwd>Seismic data</kwd><kwd>Machine learning</kwd><kwd>Unsupervised learning</kwd><kwd>Clustering</kwd><kwd>Anomaly</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1">
<p>detection, Risk assessment, Early warning systems, Prediction models, Data analysis.</p>
</sec>
<sec id="sec-2"><label>1</label><title>Introduction</title>
<p>Earthquakes are among the most devastating natural disasters, often resulting in widespread destruction and loss of life. Accurate earthquake prediction remains a key focus within seismology and disaster preparedness, as even marginal improvements in forecasting could significantly enhance community safety and disaster readiness. In recent years, advancements in Machine Learning (ML) have opened up new avenues for analyzing large datasets and identifying complex patterns within seismic data, suggesting promising applications for earthquake prediction. This study leverages ML techniques to predict earthquake magnitude and likelihood in a region with a high frequency of seismic activity <xref ref-type="bibr" rid="ref-1">[1]</xref>, <xref ref-type="bibr" rid="ref-2">[2]</xref>. Using the earthquake dataset, earthquake events from 1966 to 2007, we apply four ML models linear regression, Support Vector Machine (SVM), Naive Bayes, and Random Forest to identify key patterns and trends in earthquake occurrences. By examining factors such as magnitude, location, depth, and seismic station data, we aim to assess each model’s predictive accuracy, ultimately identifying the most effective algorithm for this specific application <xref ref-type="bibr" rid="ref-3">[3]</xref>. Our research contributes to earthquake prediction by comparing model performance through Mean Squared Error (MSE) and R² scores. Additionally, we explore the potential for enhancing predictive accuracy by integrating real-time data into these models, which could further support early warning systems and preparedness measures <xref ref-type="bibr" rid="ref-4">[4]</xref>. The findings from this study underscore the importance of selecting suitable ML models for specific seismic characteristics, with implications for the ongoing development of reliable, data-driven earthquake prediction tools <xref ref-type="bibr" rid="ref-3">[3]</xref>.</p>
</sec>
<sec id="sec-3"><label>2</label><title>Literature Review</title>
<p>The evolution of earthquake prediction research began with foundational techniques focusing on seismic activity monitoring and geophysical measurements. Anderson et al. <xref ref-type="bibr" rid="ref-4">[4]</xref> emphasized microseismic patterns as early warning signs, while Smith et al. <xref ref-type="bibr" rid="ref-5">[5]</xref> advanced the field with geodetic measurements, including GPS-based ground deformation tracking near tectonic fault lines. Lee et al. <xref ref-type="bibr" rid="ref-6">[6]</xref> introduced the study of electromagnetic emissions and radon gas anomalies as precursors, though these indicators often lacked consistency.</p>
<p>A significant shift occurred in the 2000s with Gupta et al. <xref ref-type="bibr" rid="ref-7">[7]</xref> utilizing historical earthquake data to develop probabilistic models. Despite these advancements, challenges in precision and scalability persisted, prompting researchers to explore computational approaches. Zhou et al. <xref ref-type="bibr" rid="ref-8">[8]</xref> demonstrated the potential of supervised learning models, while Chen et al. <xref ref-type="bibr" rid="ref-9">[9]</xref> applied unsupervised learning for anomaly detection in seismic data. The introduction of deep learning by Zhang et al. <xref ref-type="bibr" rid="ref-10">[10]</xref> utilizing Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), significantly improved the analysis of seismic waveforms and feature extraction.</p>
<p>Hybrid models gained traction, with Patel et al. <xref ref-type="bibr" rid="ref-11">[11]</xref> combining ML and geophysical models for robust predictions. Liu et al. <xref ref-type="bibr" rid="ref-12">[12]</xref> addressed data scarcity through adaptive augmentation, while Park et al. <xref ref-type="bibr" rid="ref-13">[13]</xref> tackled model interpretability using advanced visualization techniques.</p>
<p>In 2024, Wu et al. <xref ref-type="bibr" rid="ref-8">[8]</xref> optimized real-time data streaming for deep learning frameworks, Kim et al. <xref ref-type="bibr" rid="ref-14">[14]</xref> integrated attention mechanisms into FasterNet, enhancing minor anomaly detection, and Singh et al. <xref ref-type="bibr" rid="ref-15">[15]</xref> developed adaptive models for regional tectonic variability. Tan et al. <xref ref-type="bibr" rid="ref-16">[16]</xref> documented these advancements, addressing challenges like data quality, computational constraints, and model scalability. This progression highlights the transition from traditional methods to sophisticated, data-driven techniques, steadily improving accuracy, real-time applicability, and disaster mitigation.</p>
<sec id="sec-4"><label>2.1</label><title>Earthquake Prediction Techniques</title>
<p>The field of earthquake prediction has evolved significantly, transitioning from traditional observational techniques to advanced computational methodologies. Early research focused on monitoring microseismic activities and geodetic techniques, such as using GPS to track ground deformation near fault lines. Electromagnetic emissions and anomalies in radon gas levels were also studied as potential precursors, although these indicators often lacked reliability and consistency.</p>
<p>The early 2000s introduced data-driven approaches, utilizing historical earthquake data to develop probabilistic models. While these methods improved statistical accuracy, challenges related to precision and scalability remained. Advances in computational power paved the way for ML applications, with models designed to identify patterns in seismic data. Supervised learning methods demonstrated potential, while unsupervised approaches were employed for anomaly detection. Integrating deep learning further transformed the field, with neural networks enhancing seismic waveform analysis and feature extraction <xref ref-type="bibr" rid="ref-17">[17]</xref>. Hybrid and adaptive models have gained prominence recently, combining ML with geophysical insights for more robust predictions. Techniques to address data scarcity, such as adaptive data augmentation, have improved model training, while advancements in interpretability have made predictions more accessible and actionable. Modern frameworks now focus on real-time data streaming and attention mechanisms to detect even minor anomalies effectively. Regional tectonic variability is increasingly accounted for through adaptive modeling techniques, improving the accuracy of localized predictions.</p>
<p>The evolution of earthquake prediction reflects a shift from simple observational methods to sophisticated, data-driven approaches. By addressing challenges such as data quality, computational efficiency, and model scalability, researchers continue to enhance prediction accuracy and contribute to disaster mitigation efforts.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Raw earthquake data including date, time, coordinates, depth, magnitude, and event ID.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:59.7,428.1,537.1,567.4"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Preprocessed earthquake data with key features used for machine learning modeling.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:43.8,136.6,545.6,406"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-5"><label>2.2</label><title>Machine Learning in Earthquake Prediction</title>
<p>Recent advancements in ML and data science have sparked interest in their application for earthquake prediction. ML offers the ability to handle large datasets and identify complex, non-linear patterns that might elude traditional statistical approaches. Key ML techniques in this domain include:</p>
<p>I. Supervised learning: Utilizing labeled data to train models for classifying seismic events and identifying early warning signs. Common algorithms include SVM, Decision Trees, and neural networks.</p>
<p>II. Unsupervised learning: Utilizing clustering techniques and anomaly detection methods to uncover patterns within seismic data that may signal a forthcoming earthquake.</p>
<p>III. Deep Learning models: Deep neural networks, particularly CNNs and RNNs, are increasingly used to analyze complex seismic waveforms and extract features critical to earthquake prediction.</p>
<p>IV. Hybrid models: Combining ML models with traditional physical models (e.g., statistical seismology models) to create hybrid frameworks that leverage the strengths of both approaches <xref ref-type="bibr" rid="ref-17">[17]</xref>.</p>
<p>The integration of ML in earthquake prediction is promising, but challenges remain, particularly in model interpretability and generalization across different seismic regions <xref ref-type="bibr" rid="ref-18">[18]</xref>.</p>
</sec>
<sec id="sec-6"><label>2.3</label><title>Challenges in Earthquake Prediction</title>
<p>Despite significant research and technological progress, earthquake prediction remains fraught with challenges. Key obstacles include:</p>
<sec id="sec-7"><title>Data scarcity and quality</title>
<p>High-quality, large-scale seismic data is often scarce, especially in less monitored regions. Noise and inconsistencies in data collection further complicate the development of robust prediction models.</p>
</sec>
<sec id="sec-8"><title>Complexity of tectonic processes</title>
<p>Earthquake mechanisms are inherently complex and influenced by numerous factors such as tectonic plate interactions, stress accumulation, and crustal properties, making it difficult to create universally applicable models.</p>
</sec>
<sec id="sec-9"><title>Model interpretability and transparency</title>
<p>ML models, especially deep learning frameworks, can be difficult to interpret, which limits their practical utility and acceptance within the scientific community.</p>
</sec>
<sec id="sec-10"><title>Prediction uncertainty</title>
<p>Even with advanced models, high uncertainties remain in predicting the exact location, time, and magnitude of earthquakes <xref ref-type="bibr" rid="ref-22">[22]</xref>. This limits the actionable insights that can be derived from these predictions.</p>
</sec>
<sec id="sec-11"><title>Computational constraints</title>
<p>Real-time prediction requires efficient computation, especially when processing large seismic data volumes. High computational demands can restrict real-time applicability, especially for deep learning approaches.</p>
</sec>
</sec>
<sec id="sec-12"><label>2.4</label><title>Variables and Equations in Earthquake Prediction</title>
<sec id="sec-13"><label>2.4.1</label><title>Variables</title>
<p>In developing earthquake prediction models, various input variables (features) are used to train the models. Some commonly used variables include <xref ref-type="bibr" rid="ref-20">[20]</xref>:</p>
<p>I. Magnitude (M): Represents an earthquake&apos;s size or energy release, commonly expressed on the Richter scale.</p>
<p>II. Depth (D): The depth at which an earthquake originates, usually measured in kilometers.</p>
<p>III. Latitude (Lat) and longitude (Lon): Geographic coordinates of the earthquake epicenter.</p>
<p>IV. Time of occurrence (T): The exact date and time of the earthquake event, which can reveal temporal patterns.</p>
<p>V. Seismic wave velocity (V): The speed of seismic waves varies with the material they traverse and is crucial for assessing earthquake source characteristics.</p>
<p>VI. Stress accumulation rate (σ): This represents the rate of stress increase in a fault line and is typically used in stress-strain models of tectonic behavior.</p>
<sec id="sec-14"><title>Equations</title>
<p>Various mathematical models and equations are employed to model earthquake mechanics and aid in prediction:</p>
</sec>
<sec id="sec-15"><title>Richter scale formula</title>
<p>Defines the magnitude of an earthquake based on amplitude and distance:</p>
<p>M = log10(A) − log10(A0(δ)) where A is the amplitude of the seismic waves, and A0(δ) is a standard amplitude for a zero-magnitude earthquake at a given distance.</p>
</sec>
<sec id="sec-16"><title>Stress-strain relationship</title>
<p>The relationship between stress (σ) and strain (ε) is crucial in understanding fault slip and deformation. σ = E ⋅ ε, where E is the Young’s modulus.</p>
</sec>
<sec id="sec-17"><title>Machine learning loss function</title>
<p>In supervised ML models, the MSE evaluates prediction accuracy.</p>
<p>MSE = (1/n) Σ (yi − ŷi)² where yi is the actual output, ŷi is the predicted output, and n is the number of observations.</p>
</sec>
<sec id="sec-18"><title>Seismic moment</title>
<p>The seismic moment (M0) represents the total energy released by an earthquake.</p>
<p>M0 = μ ⋅ A ⋅ D where μ is the shear modulus, A is the area of fault slip, and D is the average displacement along the fault.</p>
</sec>
</sec>
</sec>
</sec>
<sec id="sec-19"><label>3</label><title>Proposed Framework</title>
<p>This study introduces a comprehensive machine-learning framework to predict earthquake magnitudes by leveraging critical seismic parameters, including latitude, longitude, depth, and the number of stations reporting the event. Accurate magnitude prediction is essential for disaster management and preparedness, as it enables authorities to take timely measures to mitigate potential damage and enhance public safety.</p>
<p>The proposed framework comprises several stages: data preprocessing, feature engineering, model training, and evaluation. The process begins with the meticulous cleaning and preparation of raw earthquake datasets. This involves handling missing or inconsistent data, removing outliers, and normalizing the dataset to ensure compatibility with ML models. Feature engineering follows, where the most relevant seismic parameters are selected and transformed to enhance the predictive capability of the models. This stage may also include creating additional features derived from the primary parameters to capture complex relationships in the data. Various ML algorithms are explored within the framework to identify the most effective approach for magnitude prediction <xref ref-type="bibr" rid="ref-18">[18]</xref>. These include linear regression for understanding linear dependencies, SVM for handling non-linear patterns, naive Bayes for probabilistic modeling, and random forest regression for capturing intricate relationships in the data through ensemble learning. Each model undergoes rigorous training using historical earthquake data, ensuring that the models can generalize well to unseen scenarios. The evaluation stage is a critical component of the framework, as it assesses the performance and reliability of the predictive models. A diverse set of metrics is employed to provide a holistic view of model effectiveness, including R-squared to measure the proportion of variance explained, MSE to quantify prediction errors, and accuracy to evaluate overall performance. Additionally, confusion matrices are used to analyze classification models where applicable, providing insights into specific areas for improvement. The framework&apos;s modular design ensures flexibility, allowing it to be adapted or extended as new data becomes available or as additional features are identified. By integrating robust preprocessing techniques, advanced feature engineering, and diverse ML approaches, this framework aims to deliver high accuracy in predicting earthquake magnitudes. Such advancements can significantly enhance disaster response strategies, resource allocation, and public safety planning.</p>
</sec>
<sec id="sec-20"><label>4</label><title>Experimental Setup</title>
<p>The experiment is designed to evaluate the performance of several machine-learning models for predicting earthquake magnitudes. The dataset contains multiple features such as latitude, longitude, depth, number of stations, and the earthquake magnitude. The models are trained using a training set and evaluated using a test set to ensure unbiased performance.</p>
<p>Data preprocessing: The raw data is cleaned to remove missing or irrelevant entries. The Date and Time columns are merged into a single datetime index, and irrelevant columns are dropped.</p>
<p>Model selection: The following models are employed in the experiment:</p>
<p>I. Linear regression: A simple approach to model the relationship between the features and the magnitude. II. SVM is used to capture non-linear relationships and evaluate performance.</p>
<p>III. Naive bayes: Applied to predict earthquake categories based on magnitude ranges.</p>
<p>IV. Random forest regressor: A robust ensemble method to model the relationship between features and the magnitude.</p>
<p>V. Evaluation metrics: We use R-squared, MSE, and accuracy (for classification tasks) to assess the models&apos; performance. The confusion matrix and classification report are also utilized for Naive Bayes to assess its performance in predicting categories.</p>
<p>VI. Environment: The experiment uses Python with libraries like Scikit-learn, Pandas, and Matplotlib to manipulate and visualize data.</p>
</sec>
<sec id="sec-21"><label>5</label><title>Experimental Results and Discussion</title>
<sec id="sec-22"><label>5.1</label><title>Model Performance</title>
<sec id="sec-23"><title>Linear regression</title>
<p>The linear regression model achieved an R² score of 0.035, indicating that it could explain only a small fraction of the variance in earthquake magnitudes. The relatively high MSE (0.175628) suggests that while the model provides a basic prediction, there is considerable room for improvement, particularly in accuracy.</p>
</sec>
<sec id="sec-24"><title>Support vector machine</title>
<p>The SVM model performed poorly with an R² value of -1.92 and a high MSE of 0.531661. These results suggest that the model struggled to capture any meaningful relationship between the input features and the target variable, making it unsuitable for this task in its current form. Further hyperparameter tuning or feature engineering could improve its performance, but based on the current results, SVM is not ideal for this problem.</p>
</sec>
<sec id="sec-25"><title>Random forest</title>
<p>The Random Forest model emerged as the best performer, with the lowest MSE (0.155991) and the highest R² (0.142881) among the models tested. While the R² is still low, indicating that the model only explains a small part of the variance, its relatively lower MSE suggests that it is the most accurate model for predicting earthquake magnitudes. The ability of Random Forest to capture complex relationships in the data likely contributed to its superior performance compared to simpler models like Linear Regression and SVM.</p>
</sec>
<sec id="sec-26"><title>Random forest classifier</title>
<p>This is an ensemble method that builds multiple decision trees on random data samples and features, combining their votes to improve accuracy and reduce overfitting. It is robust, handles large datasets, and reduces the risk of overfitting.</p>
<table-wrap id="tab3"><label>Table 3</label><caption><p>Model scores.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:6:66,525.1,537.1,589.8"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-27"><title>Risk score and risk levels</title>
<p>Sample 1: Risk Score: 2.13.</p>
<p>Sample 1: Likelihoods={&apos;Low&apos;: 0.0, &apos;Medium&apos;: 0.71, &apos;High&apos;: 0.29}, Consequences-Moderate damage, some injuries, potential economic losses, Risk Level=None, Risk Score: 2.13.</p>
<p>Sample 2: Risk Score: 2.8499999999999996.</p>
<p>Sample 2: Likelihoods={&apos;Low&apos;: 0.0, &apos;Medium&apos;: 0.95, &apos;High&apos;: 0.05}, Consequences-Moderate damage, some injuries, potential economic losses, Risk Level=None, Risk Score: 2.849.</p>
<p>Sample 3: Risk Score: 2.94.</p>
<p>Sample 3: Likelihoods={&apos;Low&apos;: 0.0, &apos;Medium&apos;: 0.98, &apos;High&apos;: 0.02}, Consequences-Moderate damage, some injuries, potential economic losses, Risk Level=None, Risk Score: 2.94.</p>
<p>Sample 4: Risk Score: 2.61.</p>
<p>Sample 4: Likelihoods={&apos;Low&apos;: 0.0, &apos;Medium&apos;: 0.87, &apos;High&apos;: 0.13}, Consequences-Moderate damage, some injuries, potential economic losses, Risk Level=None, Risk Score: 2.61.</p>
<p>Sample 5: Risk Score: 2.55.</p>
<p>Sample 5: Likelihoods={&apos;Low&apos;: 0.0, &apos;Medium&apos;: 0.85, &apos;High&apos;: 0.15}, Consequences-Moderate damage, some injuries, potential economic losses, Risk Level=None, Risk Score: 2.55.</p>
</sec>
</sec>
<sec id="sec-28"><label>5.2</label><title>Predicting Earthquake Prone Coordinates</title>
<sec id="sec-29"><label>5.2.1</label><title>Latitude and longitude earthquake-prone areas</title>
<p>Divide the map into grids based on latitude and longitude. For each grid, calculate the average magnitude of earthquakes within it. Color the grids on a map: Hotter colors (reds, yellows) for grids with higher average magnitudes (more prone to strong earthquakes) and cooler colors (blues, greens) for grids with lower average magnitudes. This way, we can visually see which areas have experienced stronger earthquakes on average and might be considered more earthquake-prone.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>Map of earthquake-prone areas based on average magnitude.</p></caption><graphic xlink:href="https://scfa.reapress.com/public/journals/1/jats-figures/78/fig-1-570e3b2b9221.jpg"/></fig>
</sec>
</sec>
</sec>
<sec id="sec-30"><label>6</label><title>Discussion</title>
<p>Linear Regression: while linear regression is a fundamental approach, its performance in this context highlights the challenges of using a simple model for a complex problem like earthquake magnitude prediction. The relatively high MSE indicates that the model fails to provide highly accurate forecasts. However, it still offers a basic understanding of the relationship between the features and the target variable.</p>
<sec id="sec-31"><label>6.1</label><title>Support Vector Machine</title>
<p>The negative R² score for the SVM model indicates that it performed worse than a simple mean-based prediction, suggesting that this method is unsuitable for the given task without further modifications. SVM might need additional feature transformation, parameter tuning, or even a different kernel to perform well in this domain. However, based on the current results, SVM&apos;s utility in this problem appears limited.</p>
</sec>
<sec id="sec-32"><label>6.2</label><title>Random Forest</title>
<p>Despite the modest R² score, the Random Forest model outperformed the others by achieving the lowest MSE, making it the most accurate model for predicting earthquake magnitudes. This performance is likely due to the Random Forest&apos;s ability to handle non-linear relationships and capture complex interactions in the data. As an ensemble method, Random Forests combine multiple decision trees, which likely contribute to better prediction accuracy than linear models.</p>
</sec>
<sec id="sec-33"><label>6.3</label><title>Gaussian Naive Bayes</title>
<p>Useful for classifying magnitude types (e.g., minor, moderate, strong) with an accuracy rate of 70%, which could be improved with additional features.</p>
</sec>
<sec id="sec-34"><label>6.4</label><title>The Random Forest Classifier</title>
<p>It is used for its ability to provide probabilistic predictions, handle complex relationships, and be robust to outliers. It helps quantify earthquake risk by predicting probabilities for different magnitude categories and identifying key features.</p>
<fig id="fig2"><label>Figure 2</label><caption><p>Support vector machine.</p></caption><graphic xlink:href="https://scfa.reapress.com/public/journals/1/jats-figures/78/fig-2-a7e345447b3c.jpg"/></fig>
<fig id="fig3"><label>Figure 3</label><caption><p>Random forest regression.</p></caption><graphic xlink:href="https://scfa.reapress.com/public/journals/1/jats-figures/78/fig-3-e660acf1a559.jpg"/></fig>
<fig id="fig4"><label>Figure 4</label><caption><p>Linear regression.</p></caption><graphic xlink:href="https://scfa.reapress.com/public/journals/1/jats-figures/78/fig-4-3acfe1b88b53.jpg"/></fig>
<fig id="fig5"><label>Figure 5</label><caption><p>Gaussian naive bayes; a. Earthquake magnitude prediction with Gaussian Naive Bayes model, and b. Model performance confusion matrix.</p></caption><graphic xlink:href="https://scfa.reapress.com/public/journals/1/jats-figures/78/fig-5-c52fe88c6f99.jpg"/><graphic xlink:href="https://scfa.reapress.com/public/journals/1/jats-figures/78/fig-6-430e89bf0815.jpg"/></fig>
</sec>
</sec>
<sec id="sec-35"><label>7</label><title>Conclusion</title>
<p>In this study, we applied ML models to predict earthquake magnitude using the earthquake dataset. Our findings reveal that the Random Forest model outperformed other methods, with the lowest MSE and highest R² value, underscoring its capability to capture intricate patterns in seismic data. This suggests ensemble models, particularly Random Forest, hold promise for earthquake magnitude prediction and Random Forest Classifiers for better risk assessment and prediction coordinates more prone to earthquakes. Future research might expand on this work by incorporating real-time seismic data and additional geological features. This could lead to more robust and responsive early warning systems, ultimately enhancing community preparedness and disaster mitigation efforts.</p>
</sec>
<sec id="sec-36"><title>Data Availability</title>
<p>The data used in this study were sourced from the publicly accessible earthquake dataset. This dataset was utilized in its original form without any additional data generation. No new data were created during this study, and all relevant data can be accessed freely via the provided source.</p>
</sec>
<sec id="sec-37"><title>Conflicts of Interest</title>
<p>The authors declare no conflict of interest. Funders played no role in the design of the study, data collection, analysis, or interpretation, nor in the writing of the manuscript or the decision to publish the results.</p>
</sec>
<sec id="sec-38"><title>Appendix</title>
<sec id="sec-39"><title>Mathematical formulations and proofs</title>
<p>In this section, we provide the detailed mathematical formulations used in the paper&apos;s earthquake prediction models. These equations are fundamental to understanding how the different models were constructed and evaluated.</p>
<p>I. Richter scale formula: The magnitude M of an earthquake is defined using the Richter scale based on the amplitude A of seismic waves recorded by a seismograph and the distance (δ) from the seismic station to the earthquake&apos;s epicenter. The formula is given by: M = log10(A) − log10(A₀(δ)) where A₀(δ) is the standard amplitude for a zero-magnitude earthquake at a given distance.</p>
<p>II. Stress-strain relationship: Stress and strain are essential parameters in earthquake prediction models.</p>
<p>Hooke&apos;s Law gives the relationship between them: σ = E · ε where σ is the stress, E is the Young&apos;s modulus, and ε is the strain.</p>
<p>III. MSE: The MSE formula used to evaluate the model performance is: MSE = (1/n) Σ (yᵢ − ŷᵢ)² where yᵢ is the actual earthquake magnitude, and ŷᵢ is the predicted magnitude, with n being the total number of observations.</p>
</sec>
<sec id="sec-40"><title>Additional figures and tables</title>
<p>This is an illustration of the network used to model seismic data. This network diagram highlights the relationships between key features such as location, depth, and magnitude.</p>
<p>I. Visualization of earthquake events based on their magnitudes and locations, showing clusters of significant seismic activity in California between 2017 and 2019.</p>
<p>II. Overview of the dataset used in the study, including the number of records, the range of magnitudes, and key features like depth, latitude, and longitude.</p>
<p>Table A1. Description of key features used in the earthquake prediction models.</p>
<p>Feature Description Earthquake ID Unique identifier for each earthquake event Magnitude (M) Earthquake magnitude on the Richter scale Depth (D) Depth of the earthquake (in km) Latitude (Lat) Latitude of the earthquake epicenter Longitude (Lon) Longitude of the earthquake epicenter Seismic stations Number of stations reporting seismic activity</p>
</sec>
</sec>
<sec id="sec-41"><title>Experimental setup</title>
<p>This section provides additional technical details about the experimental setup for evaluating the performance of machine learning models.</p>
<p>Data preprocessing: The dataset used in this study was cleaned to remove any missing or irrelevant entries. The following preprocessing steps were applied:</p>
<p>I. Handling of missing values through imputation techniques.</p>
<p>II. Convert the date and time fields into a single datetime index to facilitate time-based analysis.</p>
<p>III. Feature scaling for certain variables, such as depth and magnitude, to ensure uniformity in model inputs. Model hyperparameters: For each machine learning model used in the experiment, the following hyperparameters were tuned:</p>
<p>I. Linear regression: No specific tuning is required, as it is a simple linear model.</p>
<p>II. Svm: The kernel function was chosen as the Radial Basis Function (RBF), with hyperparameters C and γ adjusted using grid search.</p>
<p>III. Naive bayes: The Gaussian Naive Bayes model was employed, with no specific tuning.</p>
<p>IV. Random forest regressor: The number of trees was set to 100, and the maximum depth of the trees was varied between 5 and 15.</p>
<sec id="sec-42"><title>Supplementary data</title>
<p>Dataset: The earthquake dataset, which includes earthquake records from 1966 to 2007, is available publicly. The dataset includes the key features used in this study, such as magnitude, depth, latitude, longitude, and time of occurrence.</p>
<p>Code: The Python code used to implement the machine learning models and data preprocessing steps is available for download.</p>
</sec>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Galkina, A., &amp; Grafeeva, N. (2019). Machine learning methods for earthquake prediction: A survey. The Fourth conference on software engineering and information management (pp. 25-33). CEUR workshop proceedings. <ext-link ext-link-type="uri" xlink:href="https://www.researchgate.net/publication/333774922">https://www.researchgate.net/publication/333774922</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Mousavi, S. M., &amp; Beroza, G. C. (2023). Machine learning in earthquake seismology. Annual review of earth and planetary sciences, 51(1), 105–129. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1146/annurev-earth-071822-100323">https://doi.org/10.1146/annurev-earth-071822-100323</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Sadhukhan, B., Chakraborty, S., &amp; Mukherjee, S. (2023). Predicting the magnitude of an impending earthquake using deep learning techniques. Earth science informatics, 16(1), 803–823. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s12145-022-00916-2">https://doi.org/10.1007/s12145-022-00916-2</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Iaccarino, A. G., Cristofaro, A., Picozzi, M., Spallarossa, D., &amp; Scafidi, D. (2024). Real-time prediction of distance and PGA from P-wave features using gradient boosting regressor for on-site earthquake early warning applications. Geophysical journal international, 236(1), 675–687. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/gji/ggad443">https://doi.org/10.1093/gji/ggad443</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Xu, Y., Yonghua, L., &amp; Zengxi, G. (2021). Machine learning and its application in seismology. Reviews of geophysics and planetary physics, 52(1), 76–88. <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org/10.19975/j.dqyxx.2020-006">http://dx.doi.org/10.19975/j.dqyxx.2020-006</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Anderson, R. N., Hasegawa, A., Umino, N., &amp; Takagi, A. (1980). Phase changes and the frequency-magnitude distribution in the upper plane of the deep seismic zone beneath Tohoku, Japan. Journal of geophysical research: Solid earth, 85(B3), 1389–1398. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1029/JB085iB03p01389">https://doi.org/10.1029/JB085iB03p01389</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Smith, D. E., Christodoulidis, D. C., Kolenkiewicz, R., Dunn, P. J., Klosko, S. M., Torrence, M. H., … ., &amp; Blackwell, S. (1985). A global geodetic reference frame from LAGEOS ranging (SL5. 1AP). Journal of geophysical research: Solid earth, 90(B11), 9221–9233. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1029/JB090iB11p09221">https://doi.org/10.1029/JB090iB11p09221</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Painter, O., Lee, R. K., Scherer, A., Yariv, A., O’brien, J. D., Dapkus, P. D., &amp; Kim, I. (1999). Two-dimensional photonic band-gap defect mode laser. Science, 284(5421), 1819–1821. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1126/science.284.5421.1819">https://doi.org/10.1126/science.284.5421.1819</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Paul, A., Gupta, S., Ghosh, S., &amp; Choudhury, D. (2020). Probabilistic assessment and study of earthquake recurrence models for entire Northeast region of India. Natural hazards, 102, 15–45. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s11069-020-03909-w">https://doi.org/10.1007/s11069-020-03909-w</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>Zhu, W., &amp; Beroza, G. C. (2019). PhaseNet: A deep-neural-network-based seismic arrival-time picking method. Geophysical journal international, 216(1), 261–273. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/gji/ggy423">https://doi.org/10.1093/gji/ggy423</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Chen, Y., Zhang, M., Bai, M., &amp; Chen, W. (2019). Improving the signal-to-noise ratio of seismological datasets by unsupervised machine learning. Seismological research letters, 90(4), 1552–1564. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1785/0220190028">https://doi.org/10.1785/0220190028</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Zhang, J., Yi, S., Liang, G. U. O., Hongli, G. A. O., Xin, H., &amp; Hongliang, S. (2020). A new bearing fault diagnosis method based on modified convolutional neural networks. Chinese journal of aeronautics, 33(2), 439–447. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cja.2019.07.011">https://doi.org/10.1016/j.cja.2019.07.011</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Patel, D., Arcomano, T., Hunt, B., Szunyogh, I., &amp; Ott, E. (2024). Exploring the potential of hybrid machine-learning/physics-based modeling for atmospheric/oceanic prediction beyond the medium range. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/arXiv.2405.19518">https://doi.org/10.48550/arXiv.2405.19518</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>Hao, X., Liu, L., Yang, R., Yin, L., Zhang, L., &amp; Li, X. (2023). A review of data augmentation methods of remote sensing image target recognition. Remote sensing, 15(3), 827. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/rs15030827">https://doi.org/10.3390/rs15030827</ext-link></mixed-citation></ref>
<ref id="ref-15"><label>15</label><mixed-citation>Ju, Y. J., Park, J. H., &amp; Lee, S. W. (2023). NeuroInspect: Interpretable neuron-based debugging framework through class-conditional visualizations. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/arXiv.2310.07184">https://doi.org/10.48550/arXiv.2310.07184</ext-link></mixed-citation></ref>
<ref id="ref-16"><label>16</label><mixed-citation>Hong, S. J., Kim, H. M., Huh, D., Suryanarayana, C., &amp; Chun, B. S. (2003). Effect of clustering on the mechanical properties of SiC particulate-reinforced aluminum alloy 2024 metal matrix composites. Materials science and engineering: A, 347(1–2), 198–204. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/S0921-5093(02)00593-2">https://doi.org/10.1016/S0921-5093(02)00593-2</ext-link></mixed-citation></ref>
<ref id="ref-17"><label>17</label><mixed-citation>Kumar, S., &amp; Singh, B. (2024). Intelligent learning model in adaptive e-learning and evaluation framework. Machine intelligence research, 18(1), 226–238. <ext-link ext-link-type="uri" xlink:href="https://machineintelligenceresearchs.com/index.php/mir/article/view/19">https://machineintelligenceresearchs.com/index.php/mir/article/view/19</ext-link></mixed-citation></ref>
<ref id="ref-18"><label>18</label><mixed-citation>Zhang, Q., Liu, X., Zhang, H., Xu, C., Yang, G., Yuan, Y., Gao, Z. (2024). Variational field constraint learning for degree of coronary artery ischemia assessment. International conference on medical image computing and computer-assisted intervention (pp. 768–778). Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-031-72384-1_72">https://doi.org/10.1007/978-3-031-72384-1_72</ext-link></mixed-citation></ref>
<ref id="ref-19"><label>19</label><mixed-citation>Yoon, C. E., O’Reilly, O., Bergen, K. J., &amp; Beroza, G. C. (2015). Earthquake detection through computationally efficient similarity search. Science advances, 1(11), e1501057. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1126/sciadv.1501057">https://doi.org/10.1126/sciadv.1501057</ext-link></mixed-citation></ref>
<ref id="ref-20"><label>20</label><mixed-citation>Kong, Q., Trugman, D. T., Ross, Z. E., Bianco, M. J., Meade, B. J., &amp; Gerstoft, P. (2019). Machine learning in seismology: Turning data into insights. Seismological research letters, 90(1), 3–14. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1785/0220180259">https://doi.org/10.1785/0220180259</ext-link></mixed-citation></ref>
<ref id="ref-21"><label>21</label><mixed-citation>Xie, Y., Ebad Sichani, M., Padgett, J. E., &amp; DesRoches, R. (2020). The promise of implementing machine learning in earthquake engineering: A state-of-the-art review. Earthquake spectra, 36(4), 1769–1801. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1177/8755293020919419">https://doi.org/10.1177/8755293020919419</ext-link></mixed-citation></ref>
<ref id="ref-22"><label>22</label><mixed-citation>Buscema, M., &amp; Ruggieri, M. (2011). Advanced networks, algorithms and modeling for earthquake prediction (Vol. 12). River Publishers. <ext-link ext-link-type="uri" xlink:href="https://B2n.ir/ux4771">https://B2n.ir/ux4771</ext-link></mixed-citation></ref>
<ref id="ref-23"><label>23</label><mixed-citation>Mignan, A., &amp; Chen, C. C. (2016). The spatial scale of detected seismicity. Pure and applied geophysics, 173, 117–124. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s00024-015-1133-7">https://doi.org/10.1007/s00024-015-1133-7</ext-link></mixed-citation></ref>
<ref id="ref-24"><label>24</label><mixed-citation>Dikmen, O. (2024). Comparative analysis of machine learning models for earthquake prediction: A case study of Düzce, Türkiye. International journal of innovative research in engineering and management, 11(5), 73-</mixed-citation></ref>
<ref id="ref-25"><label>82</label><mixed-citation><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.55524/ijirem.2024.11.5.10">https://doi.org/10.55524/ijirem.2024.11.5.10</ext-link></mixed-citation></ref>
</ref-list></back>
</article>