A Deep Learning Framework for Local Earthquake Magnitude Estimation Using Three-Component Waveforms
Abstract
1. Introduction
- A two-stage deep learning framework combining seismic phase picking and local magnitude estimation;
- A hybrid feature integration strategy utilizing three-component waveforms, P–S arrival-time information, and handcrafted descriptors;
- A transfer learning strategy from STEAD to independent KOERI regional records;
- A systematic evaluation under different signal-to-noise ratio conditions to assess robustness in practical applications.
2. STEAD
3. P and S Arrival Time Estimation
3.1. Data Preparation
3.2. Method
- Input: The model takes three-component seismic signals (E, N, Z) as input.
- Feature Extraction: The first Conv1D layer (kernel size 7 × 1, 64 filters, ReLU activation) and the second Conv1D layer (kernel size 5 × 1, 128 filters, ReLU activation) are responsible for learning short-term spatial features from the input signals.
- Temporal Dependencies: A BiLSTM layer with 128 units captures bidirectional temporal relationships within the signal, enhancing the model’s understanding of sequence-level dependencies.
- Output: A Dense layer with softmax activation performs multi-class classification at each time step, assigning each sample to one of three classes: Noise, P-wave, or S-wave.
3.3. Results
4. Machine Learning-Based Estimation of Local Earthquake Magnitudes
4.1. Data Preparation
4.2. Method
4.3. Results
4.4. Discussion
5. Evaluation of the Method Using the KOERI Dataset
5.1. Earthquake Data Collection
- Earthquakes with ML ≥ 3.0 that occurred between 28 April 2020 and 28 April 2025.
- Small earthquakes with 0.0 ≤ ML < 3.0 that occurred between 28 April 2024 and 28 October 2024.
- EQ ID: 20250121204435, an ML = 3.1 earthquake that occurred off the coast of the Edremit Gulf, was recorded by the DKL station.
- EQ ID: 20250124125128, an ML = 3.0 event near Göksun, Kahramanmaraş, was detected by the BNN station.
- EQ ID: 20241028020844, a small ML = 2.6 earthquake near İslahiye, Gaziantep, was recorded by the GAZ station.
5.2. Estimation of P and S Arrival Times
- The first occurrence of at least five consecutive samples predicted as class 1 (P-wave) was identified as the P-wave onset.
- The S-wave onset was then determined as the first point after the P-wave where at least five consecutive samples were classified as class 2 (S-wave).
5.3. Signal-to-Noise Ratio (SNR) Calculation Method
5.4. Real-Time Scenario and Independent Event Evaluation
6. Conclusions
Funding
Data Availability Statement
Conflicts of Interest
References
- Sanida, T.; Sanida, M.V.; Sideris, A.; Dasygenis, M. Optimizing Lung Condition Categorization through a Deep Learning Approach to Chest X-Ray Image Analysis. BioMedInformatics 2024, 4, 2002–2021. [Google Scholar] [CrossRef]
- Elazab, A.; Wang, C.; Abdelaziz, M.; Zhang, J.; Gu, J.; Gorriz, J.M.; Zhang, Y.; Chang, C. Alzheimer’s Disease Diagnosis from Single and Multimodal Data Using Machine and Deep Learning Models: Achievements and Future Directions. Expert Syst. Appl. 2024, 255, 124780. [Google Scholar] [CrossRef]
- van Aken, B.; Winter, B.; Löser, A.; Gers, F.A. How Does BERT Answer Questions? In Proceedings of the 28th ACM International Conference on Information and Knowledge Management (CIKM), Beijing, China, 3–7 November 2019; pp. 1823–1832. [Google Scholar] [CrossRef]
- Kheddar, H.; Hemis, M.; Himeur, Y. Automatic Speech Recognition Using Advanced Deep Learning Approaches: A Survey. Inf. Fusion 2024, 109, 102422. [Google Scholar] [CrossRef]
- Pławiak, P.; Abdar, M.; Acharya, U.R. Application of New Deep Genetic Cascade Ensemble of SVM Classifiers to Predict the Australian Credit Scoring. Appl. Soft Comput. 2019, 84, 105740. [Google Scholar] [CrossRef]
- Tan, M.L.; Becker, J.S.; Stock, K.; Prasanna, R.; Brown, A.; Kenney, C.; Cui, A.; Lambie, E. Understanding the Social Aspects of Earthquake Early Warning: A Literature Review. Front. Commun. 2022, 7, 939242. [Google Scholar] [CrossRef]
- Zhu, W.; Beroza, G.C. PhaseNet: A Deep-Neural-Network-Based Seismic Arrival Time Picking Method. Geophys. J. Int. 2019, 216, 261–273. [Google Scholar] [CrossRef]
- Stein, S.; Wysession, M. An Introduction to Seismology, Earthquakes, and Earth Structure; John Wiley & Sons: Hoboken, NJ, USA, 2009. [Google Scholar]
- Bergen, K.J.; Johnson, P.A.; de Hoop, M.V.; Beroza, G.C. Machine Learning for Data-Driven Discovery in Solid Earth Geoscience. Science 2019, 363, eaau0323. [Google Scholar] [CrossRef] [PubMed]
- Mousavi, S.M.; Beroza, G.C. Bayesian Deep Learning Estimation of Earthquake Location from Single-Station Observations. IEEE Trans. Geosci. Remote Sens. 2020, 58, 8211–8224. [Google Scholar] [CrossRef]
- Mousavi, S.M.; Zhu, W.; Sheng, Y.; Beroza, G.C. CRED: A Deep Residual Network of Convolutional and Recurrent Units for Earthquake Signal Detection. Sci. Rep. 2019, 9, 10267. [Google Scholar] [CrossRef]
- Mousavi, S.M.; Ellsworth, W.L.; Zhu, W.; Chuang, L.Y.; Beroza, G.C. Earthquake Transformer—An Attentive Deep-Learning Model for Simultaneous Earthquake Detection and Phase Picking. Nat. Commun. 2020, 11, 3952. [Google Scholar] [CrossRef]
- Zhu, W.; Tai, K.S.; Mousavi, S.M.; Bailis, P.; Beroza, G.C. An End-to-End Earthquake Detection Method for Joint Phase Picking and Association Using Deep Learning. J. Geophys. Res. Solid Earth 2022, 127, e2021JB023283. [Google Scholar] [CrossRef]
- Saad, O.M.; Chen, Y.; Savvaidis, A.; Fomel, S.; Chen, Y. Real-Time Earthquake Detection and Magnitude Estimation Using Vision Transformer. J. Geophys. Res. Solid Earth 2022, 127, e2021JB023657. [Google Scholar] [CrossRef]
- Mai, H.; Audet, P.; Perry, H.K.C.; Mousavi, S.M.; Zhang, Q. Blockly Earthquake Transformer: A Deep Learning Platform for Custom Phase Picking. Artif. Intell. Geosci. 2023, 4, 84–94. [Google Scholar] [CrossRef]
- Saad, O.M.; Chen, Y. Earthquake Detection and P-Wave Arrival Time Picking Using Capsule Neural Network. IEEE Trans. Geosci. Remote Sens. 2021, 59, 6234–6243. [Google Scholar] [CrossRef]
- Mousavi, S.M.; Beroza, G.C. A Machine-Learning Approach for Earthquake Magnitude Estimation. Geophys. Res. Lett. 2020, 47, e2019GL085976. [Google Scholar] [CrossRef]
- Zhao, H.; Liu, C.; Dang, X.; Xu, J.; Deng, W. Few-Shot Cross-Domain Fault Diagnosis of Transportation Motor Bearings Using MAML-GA. IEEE Trans. Transp. Electrif. 2026, 12, 1165–1174. [Google Scholar] [CrossRef]
- Li, J.; Deng, W.; Ding, J.; Zhao, H. IBN-MixStyle Network With Dynamic Weighted Invariant Risk Minimization for Domain-Generalized Bearing Fault Diagnosis. IEEE Trans. Consum. Electron. 2025, 71, 9929–9939. [Google Scholar] [CrossRef]
- Mousavi, S.M.; Sheng, Y.; Zhu, W.; Beroza, G.C. STanford EArthquake Dataset (STEAD): A Global Data Set of Seismic Signals for AI. IEEE Access 2019, 7, 179464–179476. [Google Scholar] [CrossRef]
- Zhang, A.; Yang, B.; Huang, L. Feature extraction of EEG signals using power spectral entropy. In Proceedings of the 2008 International Conference on BioMedical Engineering and Informatics (BMEI), Sanya, China, 27–30 May 2008; pp. 435–439. [Google Scholar] [CrossRef]
- Oppenheim, A.V.; Schafer, R.W. Discrete-Time Signal Processing, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2010. [Google Scholar]
- Zollo, A.; Lancieri, M.; Nielsen, S. Earthquake magnitude estimation from peak amplitudes of very early seismic signals on strong motion records. Geophys. Res. Lett. 2006, 33, L23312. [Google Scholar] [CrossRef]
- Aftabi, M.; Motamedi, M.H.; Molladavoodi, H. A Study on Parameters Influencing Blast-Induced Frequency Content and Dominant Frequency Attenuation. Shock Vib. 2022, 2022, 4626536. [Google Scholar] [CrossRef]
- Heidari, R. τps, a new magnitude scaling parameter for earthquake early warning. Bull. Earthq. Eng. 2018, 16, 1165–1177. [Google Scholar] [CrossRef]
- Ristea, N.-C.; Radoi, A. Complex neural networks for estimating epicentral distance, depth, and magnitude of seismic waves. IEEE Geosci. Remote Sens. Lett. 2022, 19, 7502305. [Google Scholar] [CrossRef]
- IRIS DMC. IRIS FDSN Web Services for Seismic Waveform and Metadata Retrieval [Dataset]. Incorporated Research Institutions for Seismology. 2024. Available online: https://service.iris.edu/fdsnws/ (accessed on 1 April 2026).
- Çelik, Y. Earthquake Magnitude Estimation. Zenodo 2026. [Google Scholar] [CrossRef]

















| Phase | MAE (Samples) | RMSE (Samples) | R2 | MAPE |
|---|---|---|---|---|
| P | 3.21 | 11.46 | 0.9957 | 0.58% |
| S | 7.33 | 20.11 | 0.9975 | 0.65% |
| True P Arrival (Samples) | Predicted P Arrival (Samples) | True S Arrival (Samples) | Predicted S Arrival (Samples) |
|---|---|---|---|
| 500.0 | 504 | 1307.0 | 1309 |
| 798.2 | 800 | 1676.2 | 1675 |
| 500.0 | 501 | 1318.0 | 1312 |
| 500.0 | 501 | 700.2 | 707 |
| 500.0 | 499 | 1064.0 | 1135 |
| Metric | Reference P–S Picks | Predicted Picks |
|---|---|---|
| Mean Absolute Error (MAE) | 0.0920 | 0.0922 |
| Mean Squared Error (MSE) | 0.0170 | 0.0168 |
| Root Mean Squared Error (RMSE) | 0.1310 | 0.1294 |
| Coefficient of Determination (R2) | 0.9470 | 0.9481 |
| Mean Absolute Percentage Error (MAPE) | 10.95% | 11.17% |
| Standard Deviation of Errors | 0.1310 | 0.1294 |
| Model | Input Configuration | MAE | MSE | RMSE | R2 |
|---|---|---|---|---|---|
| M1 | Waveform only | 0.0978 | 0.0195 | 0.1396 | 0.940 |
| M2 | Waveform + P–S interval | 0.0966 | 0.0184 | 0.1356 | 0.943 |
| M3 | Waveform + Handcrafted Features | 0.0976 | 0.0185 | 0.1360 | 0.943 |
| M4 | Waveform + P–S interval + Handcrafted Features | 0.0920 | 0.0170 | 0.1310 | 0.947 |
| SNR Threshold | Num. of Records | Min ML | Max ML | AVG ML | AVG SNR |
|---|---|---|---|---|---|
| >0 | 3609 | 0.6 | 6.0 | 2.92 | 13.62 |
| >5 | 2797 | 0.6 | 6.0 | 3.12 | 16.93 |
| >10 | 2229 | 0.6 | 6.0 | 3.22 | 19.33 |
| >20 | 940 | 1.0 | 5.6 | 3.40 | 25.27 |
| SNR (dB) | N | Mean SNR | MAE | MSE | RMSE | R2 | MAPE (%) |
|---|---|---|---|---|---|---|---|
| 0–5 | 500 | 2.20 ± 0.06 | 0.254 ± 0.007 | 0.107 ± 0.003 | 0.327 ± 0.005 | 0.851 ± 0.004 | 13.58 ± 0.61 |
| 5–10 | 500 | 7.51 ± 0.03 | 0.208 ± 0.027 | 0.077 ± 0.018 | 0.276 ± 0.033 | 0.895 ± 0.024 | 9.17 ± 0.79 |
| 10–20 | 500 | 15.00 ± 0.05 | 0.173 ± 0.029 | 0.052 ± 0.017 | 0.225 ± 0.036 | 0.907 ± 0.034 | 6.20 ± 0.79 |
| >20 | 500 | 25.21 ± 0.06 | 0.144 ± 0.002 | 0.042 ± 0.001 | 0.205 ± 0.003 | 0.912 ± 0.004 | 4.51 ± 0.12 |
| UTC Time | Region | True ML | Depth (km) |
|---|---|---|---|
| 19 December 2025, 13:19:08 | Goksun, Kahramanmaras | 4.2 | 10.82 |
| 25 January 2026, 13:41:13 | Pazarcik, Kahramanmaras | 2.3 | 7.94 |
| 12 February 2026, 07:26:14 | Pazarcik, Kahramanmaras | 1.5 | 13.97 |
| 2 March 2026, 05:55:07 | Pinarbasi, Kayseri | 3.9 | 12.02 |
| 18 March 2026, 01:51:15 | Ekinozu, Kahramanmaras | 3.0 | 6.99 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Çelik, Y. A Deep Learning Framework for Local Earthquake Magnitude Estimation Using Three-Component Waveforms. Electronics 2026, 15, 2055. https://doi.org/10.3390/electronics15102055
Çelik Y. A Deep Learning Framework for Local Earthquake Magnitude Estimation Using Three-Component Waveforms. Electronics. 2026; 15(10):2055. https://doi.org/10.3390/electronics15102055
Chicago/Turabian StyleÇelik, Yusuf. 2026. "A Deep Learning Framework for Local Earthquake Magnitude Estimation Using Three-Component Waveforms" Electronics 15, no. 10: 2055. https://doi.org/10.3390/electronics15102055
APA StyleÇelik, Y. (2026). A Deep Learning Framework for Local Earthquake Magnitude Estimation Using Three-Component Waveforms. Electronics, 15(10), 2055. https://doi.org/10.3390/electronics15102055

