Spatial Variability Analysis of Earthquake Magnitude and Depth in Indonesia using Random Forest based on Historical Data

Holmes Heriyanto Silalahi, Anief Fauzan Rozi

Abstract


Indonesia lies at the convergence of three major tectonic plates, resulting in high seismic activity and complex spatial earthquake patterns. This study analyzes the spatial variability of earthquake magnitude and depth in Indonesia using a Random Forest Regressor based on historical earthquake data from the United States Geological Survey (USGS). A total of 24,981 earthquake records (1976–2026) were collected, and 21,886 valid observations were obtained after data cleaning. To reduce data heterogeneity caused by different magnitude measurement methods, the dataset was grouped into six magnitude types (Mb, Ms, Mw, Mwb, Mwc, and Mww), and separate Random Forest models were developed for each group using longitude and latitude as input features. The novelty of this study lies in the magnitude-type-specific modeling approach, which allows spatial patterns to be analyzed more consistently across different earthquake measurement scales. The models were evaluated using 10-fold cross-validation and standard regression metrics. Results show that spatial coordinates have limited ability to explain earthquake magnitude, as indicated by low R² values across all models. In contrast, depth prediction shows better performance, with the best result achieved by Mw (R² = 0.6801), indicating stronger spatial structure in earthquake depth distribution. Overall, the findings demonstrate that geographic location is more informative for modeling earthquake depth than magnitude. The proposed approach effectively captures spatial depth variability and provides a more structured analysis of earthquake characteristics across Indonesia.

Keywords


earthquake depth; earthquake magnitude; multi-output regression; random forest; spatial analysis; usgs

Full Text:

PDF

References


S. J. Hutchings and W. D. Mooney, “The Seismicity of Indonesia and Tectonic Implications,” Geochemistry, Geophysics, Geosystems, Vol. 22, No. 9, Sep. 2021, DOI: 10.1029/2021GC009812.

N. S. Santoso, N. A. Inayah, S. F. Kamilah, and S. N. Aisyah, “Visualization of the Relationship between Magnitude and Depth of Earthquakes in Southern Indonesia through Curve Interpolation,” Current STEAM and Education Research, Vol. 3, No. 3, pp. 183–198, Dec. 2025, DOI: 10.58797/cser.030305.

United States Geological Survey, “USGS Earthquake Catalog,” Website. Accessed: Mar. 26, 2026. [Online]. Available: https://earthquake.usgs.gov/earthquakes/search/

W. S. Karurung, K. Lee, and W. Lee, “Assessment of Forest Fire Vulnerability Prediction in Indonesia: Seasonal Variability Analysis using Machine Learning Techniques,” International Journal of Applied Earth Observation and Geoinformation, Vol. 138, Apr. 2025, DOI: 10.1016/j.jag.2025.104435.

R. D. Prasetyo, N. A. Maori, and A. K. Zyen, “Pengaruh Optimasi Hyperparameter Random Forest terhadap Akurasi Prediksi Magnitudo Gempa Bumi berdasarkan Hasil Klasterisasi DBSCAN,” Jurnal Teknologi Informasi dan Komunikasi, Vol. 10, No. 1, pp. 405–415, Jan. 2026, DOI: 10.35870/jtik.v10i1.5555.

I. Maulita and A. M. Wahid, “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, Vol. 4, No. 5, pp. 221–232, Dec. 2024, DOI: 10.52436/1.jpti.470.

F. N. Rifqi, M. Subhan Arobi, and M. K. Nurzaman, “Prediksi Kejadian Gempa Bumi di Indonesia berbasis Pola Runtun Waktu dengan Autoregressive Intergrated Moving Average,” Advances in Data Mining and Digital Governance, Vol. 1, No. 1, pp. 158–168, 2025, [Online]. Available: https://fisip.uinsgd.ac.id/conferences/index.php/ADMDG

H. Utama, A. Masruro, T. Indriyatmoko, and Sudarmanto, “Integrasi Augmentasi Data dan Machine Learning dalam Prediksi Magnitudo Gempa Bumi,” BHATARA: Jurnal Multidisiplin, Vol. 2, No. 3, pp. 97–108, 2025, [Online]. Available: https://earthquake.usgs.gov/earthquakes/feed/v1.0/csv.php

H. Tantyoko, D. Kartika Sari, and A. R. Wijaya, “Prediksi Potensial Gempa Bumi Indonesia menggunakan Metode Random Forest dan Feature Selection,” Indonesia Journal Information System, Vol. 6, No. 2, pp. 83–89, Jul. 2023, [Online]. Available: http://jom.fti.budiluhur.ac.id/index.php/IDEALIS/indexHenriTantyoko|http://jom.fti.budiluhur.ac.id/index.php/IDEALIS/index|

R. A. Syahputra and M. A. Safitri, “Pemodelan Prediksi Magnitudo Gempa Bumi di Indonesia berdasarkan Data Spasial dan Temporal menggunakan Algoritma Random Forest dan Neural Networks,” Universitas Mercu Buana, Jakarta, 2025. [Online]. Available: https://lib.mercubuana.ac.id

M. Prasetio, H. Sulistiani, O. Y. Inonu, K. Magda, and B. Santosa, “Klasifikasi Tingkat Risiko Gempa di Indonesia menggunakan Pola Spasial dan Temporal berbasis Decision Tree,” Bulletin of Computer Science Research, Vol. 5, No. 5, pp. 1059–1066, Aug. 2025, DOI: 10.47065/bulletincsr.v5i5.624.

Y. S. Yulianti, “Pemetaan dan Klasifikasi Wilayah Rawan Gempa di Indonesia dengan Metode K-Means dan LightGBM,” Universitas Bina Sarana Informatika, 2025.

Y. S. Yulianti, R. A. Purnama, and T. A. A. Sandi, “Pemetaan dan Klasifikasi Wilayah Rawan Gempa di Indonesia dengan Metode K-Means dan LightGBM,” Jurnal Informatika dan Teknik Elektro Terapan, Vol. 13, No. 3S1, pp. 1968–1975, Oct. 2025, DOI: 10.23960/jitet.v13i3S1.8152.

T. Turino, R. E. Saputro, and G. Karyono, “Penerapan Model Ensemble Learning dengan Random Forest dan Multi-Layer Perceptron untuk Prediksi Gempa,” Jurnal Pendidikan dan Teknologi Indonesia, Vol. 5, No. 2, pp. 493–504, Feb. 2025, DOI: 10.52436/1.jpti.667.

Risda, R. Irwana, M. Shidiq Permana, I. Rizki Saputra, R. Oktaviana HErtland, and M. Bayu Anggara, “Penerapan Algoritma Random Forest untuk Prediksi Jumlah Gempa Bulanan di Indonesia,” Jurnal Ilmiah Binary STMIK Bina Nusantara Jaya Lubuklinggau, Vol. 7, No. 2, pp. 65–70, Aug. 2025, DOI: 10.52303/jb.v7i2.172.

L. Breiman, “Random Forests,” Mach. Learn., Vol. 45, pp. 5–32, 2001.

L. Breiman, “Randomizing Outputs to Increase Prediction Accuracy,” Mach. Learn., Vol. 40, pp. 229–242, 2000.

L. Breiman, “Some Infinity Theory for Predictor Ensembles,” Jun. 2000.

H. Dabiri, A. Faramarzi, A. Dall’Asta, E. Tondi, and F. Micozzi, “A Machine Learning-based Analysis for Predicting Fragility Curve Parameters of Buildings,” Journal of Building Engineering, Vol. 62, Dec. 2022, DOI: 10.1016/j.jobe.2022.105367.

H. Khoshvaght, R. R. Permala, A. Razmjou, and M. Khiadani, “A Critical Review on Selecting Performance Evaluation Metrics for Supervised Machine Learning Models in Wastewater Quality Prediction,” J. Environ. Chem. Eng., Vol. 13, No. 6, Dec. 2025, DOI: 10.1016/j.jece.2025.119675.

Suraya and M. Sholeh, “Designing and Implementing a Database for Thesis Data Management by using the Python Flask Framework,” International Journal of Engineering, Science and Information Technology, Vol. 2, No. 1, pp. 9–14, 2022, DOI: 10.52088/ijesty.v1i1.197.




DOI: https://doi.org/10.32520/stmsi.v15i7.6282

Article Metrics

Abstract view : 6 times
PDF - 1 times

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.