PEMODELAN RANDOM FOREST UNTUK ESTIMASI MAGNITUDO MOMEN DARI TIGA DETIK AWAL GELOMBANG P

Authors

  • Rangga Tandiais Rizki Sekolah Tinggi Meteorologi Klimatologi dan Geofisika
  • Suko Prayitno Adi Sekolah Tinggi Meteorologi Klimatologi dan Geofisika
  • Sigit Pramono Badan Meteorologi Klimatologi dan Geofisika

DOI:

https://doi.org/10.31539/hfr5b815

Abstract

Banten and West Java have high seismic activity, requiring rapid and reliable magnitudo estimation for earthquake early warning. This study developed a Random Forest model to estimate moment magnitudo (Mw) from the first three seconds of P-wave signals. BMKG strong-motion data from 2019–2025 underwent preprocessing and extraction of 16 amplitude, velocity, acceleration, energy, distance, and logarithmic features. Event ID was retained as a unique identifier for each earthquake in dataset preparation. Using GroupShuffleSplit, 4,209 samples were divided by Event ID into 3,394 training and 815 testing samples. Hyperparameters were optimized through Grid Search with five-fold GroupKFold validation based on Event ID. On the testing data, the model achieved an MAE of 0.159, an RMSE of 0.198, and an R² of 0.6115, indicating moderate predictive performance. Random Forest can support rapid initial magnitudo estimation, although broader data and improved features remain necessary.

Keywords: Random Forest, Event ID, moment magnitudo, P-wave, earthquake early warning.

References

Allen, R. M., & Melgar, D. (2019). Earthquake early warning: Advances, scientific challenges, and societal needs. Annual Review of Earth and Planetary Sciences, 47, 361–388. https://doi.org/10.1146/annurev-earth-053018-060457

Cremen, G., & Galasso, C. (2020). Earthquake early warning: Recent advances and perspectives. Earth-Science Reviews, 205, Article 103184. https://doi.org/10.1016/j.earscirev.2020.103184

Dybing, S., Yeck, W. L., Cole, H. M., & Melgar, D. (2024). Rapid estimation of single-station earthquake magnitudos with machine learning on a global scale. Bulletin of the Seismological Society of America, 114(3), 1523–1538. https://doi.org/10.1785/0120230171

Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), Article 100804. https://doi.org/10.1016/j.patter.2023.100804

Krischer, L., Megies, T., Barsch, R., Beyreuther, M., Lecocq, T., Caudron, C., & Wassermann, J. (2015). ObsPy: A bridge for seismology into the scientific Python ecosystem. Computational Science & Discovery, 8(1), Article 014003. https://doi.org/10.1088/1749-4699/8/1/014003

Kurniawan, M. A., Wijaya, S. K., & Hanifa, N. R. (2023). Convolutional neural network for earthquake ground motion prediction model in earthquake early warning system in West Java. Jurnal Penelitian Pendidikan IPA, 9(11), 1004–1010. https://doi.org/10.29303/jppipa.v9i11.3514

Maulita, I., & Wahid, A. M. (2024). Prediksi magnitudo gempa menggunakan Random Forest, Support Vector Regression, XGBoost, LightGBM, dan Multi-Layer Perceptron berdasarkan data kedalaman dan geolokasi. Jurnal Pendidikan dan Teknologi Indonesia, 4(5), 221–232. https://doi.org/10.52436/1.jpti.470

Mousavi, S. M., & Beroza, G. C. (2020). A machine-learning approach for earthquake magnitudo estimation. Geophysical Research Letters, 47(1), Article e2019GL085976. https://doi.org/10.1029/2019GL085976

Prasetyo, R. D., Maori, N. A., & Zyen, A. K. (2026). Pengaruh optimasi hyperparameter Random Forest terhadap akurasi prediksi magnitudo gempa bumi berdasarkan hasil klasterisasi DBSCAN. Jurnal JTIK (Jurnal Teknologi Informasi dan Komunikasi), 10(1), 405–415. https://doi.org/10.35870/jtik.v10i1.5555

Probst, P., Wright, M. N., & Boulesteix, A.-L. (2019). Hyperparameters and tuning strategies for Random Forest. WIREs Data Mining and Knowledge Discovery, 9(3), Article e1301. https://doi.org/10.1002/widm.1301

Rachmadan, A., Koeshidayatullah, A., & Kaka, S. L. I. (2025). Developing ground motion prediction models for West Java: A machine learning approach to support Indonesia’s earthquake early warning system. Applied Computing and Geosciences, 25, Article 100212. https://doi.org/10.1016/j.acags.2024.100212

Rudyanto, A., Wijaya, A., Widiyantoro, S., Sahara, D. P., Rosalia, S., Wibowo, A., Pramono, S., & Putra, A. S. (2024). Performance test of pilot earthquake early warning system in western Java, Indonesia. International Journal of Disaster Risk Reduction, 115, Article 105010. https://doi.org/10.1016/j.ijdrr.2024.105010

Scordilis, E. M. (2006). Empirical global relations converting Ms and mb to moment magnitudo. Journal of Seismology, 10(2), 225–236. https://doi.org/10.1007/s10950-006-9012-4

Supendi, P., & Purbayanti, R. (2023). Analysis of local active faults in Western Java from hypocenter relocation using BMKG data. Jurnal Geofisika, 21(1), 25–27. https://doi.org/10.36435/jgf.v21i1.549

Supendi, P., Widiyantoro, S., Rawlinson, N., Yatimantoro, T., Muhari, A., Hanifa, N. R., Gunawan, E., Shiddiqi, H. A., Imran, I., Anugrah, S. D., Daryono, D., Prayitno, B. S., Adi, S. P., Karnawati, D., Faizal, L., & Damanik, R. (2023). On the potential for megathrust earthquakes and tsunamis off the southern coast of West Java and southeast Sumatra, Indonesia. Natural Hazards, 116(1), 1315–1328. https://doi.org/10.1007/s11069-022-05696-y

Trnkoczy, A. (2012). Understanding and parameter setting of STA/LTA trigger algorithm. In P. Bormann (Ed.), New manual of seismological observatory practice 2 (NMSOP-2) (Information Sheet IS 8.1, pp. 1–20). Deutsches GeoForschungsZentrum GFZ. https://doi.org/10.2312/GFZ.NMSOP-2_IS_8.1

Weatherill, G. A., Pagani, M., & Garcia Pelaez, J. (2016). Exploring earthquake databases for the creation of magnitudo-homogeneous catalogues: Tools for application on a regional and global scale. Geophysical Journal International, 206(3), 1652–1676. https://doi.org/10.1093/gji/ggw232

Wibowo, A., Heliani, L. S., Pratama, C., Sahara, D. P., Widiyantoro, S., Ramdani, D., Fuady Bisri, M. B., Sudrajat, A., Wibowo, S. T., & Purnama, S. R. (2024). Deep learning for real-time P-wave detection: A case study in Indonesia’s earthquake early warning system. Applied Computing and Geosciences, 24, Article 100194. https://doi.org/10.1016/j.acags.2024.100194

Wu, Y.-M., Yen, H.-Y., Zhao, L., Huang, B.-S., & Liang, W.-T. (2006). Magnitudo determination using initial P waves: A single-station approach. Geophysical Research Letters, 33(5), Article L05306. https://doi.org/10.1029/2005GL025395

Wu, Y.-M., & Zhao, L. (2006). Magnitudo estimation using the first three seconds P-wave amplitude in earthquake early warning. Geophysical Research Letters, 33(16), Article L16312. https://doi.org/10.1029/2006GL026871

Zhang, J., Kato, A., Zhu, H., & Wang, W. (2026). Attention-based learning for early earthquake magnitudo estimation from strong-motion records. npj Natural Hazards. Advance online publication. https://doi.org/10.1038/s44304-026-00242-3

Zhu, J., Li, S., & Song, J. (2022). Magnitudo estimation for earthquake early warning with multiple parameter inputs and a support vector machine. Seismological Research Letters, 93(1), 126–136. https://doi.org/10.1785/0220210144

Downloads

Published

2026-11-03