Pengaruh Optimasi Hyperparameter Random Forest terhadap Akurasi Prediksi Magnitudo Gempa Bumi Berdasarkan Hasil Klasterisasi DBSCAN
DOI:
https://doi.org/10.35870/jtik.v10i1.5555Keywords:
Earthquake, DBSCAN, Random Forest, Magnitude Prediction, Machine Learning, Hyperparameter TuningAbstract
Indonesia is a country with high seismic activity due to its location at the convergence of three major tectonic plates. This condition creates a strong need for earthquake pattern analysis and magnitude prediction to support disaster mitigation. This study aims to cluster earthquake data using the Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm and to predict earthquake magnitude using the Random Forest algorithm optimized through hyperparameter tuning. The Indonesian earthquake dataset was obtained from Kaggle with a total of 92,887 valid entries. The DBSCAN clustering results revealed several active seismic zones, particularly in Sumatra, Java, Sulawesi, and Papua. The comparison of R² between the Baseline Random Forest and the Tuned Random Forest shows a significant improvement after the parameter tuning process. The Tuned Random Forest model achieves an R² value of 0.478, which is higher than the Baseline Random Forest's 0.442. This indicates that the tuned model is better able to explain the variance in the data and provides more accurate predictions.
Downloads
References
Budiman, K., & Ifriza, Y. N. (2021). Analysis of earthquake forecasting using random forest. Journal of soft computing exploration, 2(2), 153-162. https://doi.org/10.52465/joscex.v2i2.51.
Chai, T., & Draxler, R. R. (2014). Root mean square error (RMSE) or mean absolute error (MAE)? – Arguments against avoiding RMSE in the literature. Geoscientific Model Development, 7(3), 1247–1250.
Draper, N. R., & Smith, H. (1998). Applied regression analysis (3rd ed.). Wiley-Interscience.
Fansyuri, M., Putra, R. T. S., Salsabila, A. A., Ramadhan, F., & Fiqih, M. (2025). Analisis data gempa di Indonesia menggunakan algoritma Naive Bayes. JRIIN: Jurnal Riset Informatika dan Inovasi, 2(10), 1914–1916.
Hafid, H., & Hidayat, R. (2025). Implementation of DBSCAN for Earthquake Clustering in Indonesia with Potential Surface Damage. Journal of Mathematics, Computations and Statistics, 8(1), 124-133.
Han, J., Kamber, M., & Pei, J. (2022). Data mining: Concepts and techniques (4th ed.). Morgan Kaufmann.
Hutagaol, R. M. A., Lana, V. T., Dzunnurain, Z. A., & Kurniawan, R. (2024, September). Penerapan Machine Learning dalam Prediksi Klasifikasi Big Data Kedalaman Gempa Bumi di Indonesia Tahun 2015-2024. In PROSIDING SEMINAR NASIONAL SAINS DATA (Vol. 4, No. 1, pp. 42-51).
James, G., Witten, D., Hastie, T., & Tibshirani, R. (2021). An introduction to statistical learning: With applications in R (2nd ed.). Springer.
Maulita, I., & Wahid, A. (2024). Prediksi Magnitudo Gempa Menggunakan Random Forest, Support Vector Regression, XGBoost, LightGBM, dan Multi-Layer Perceptron Berdasarkan Data Kedalaman dan Geolokasi (Predicting Earthquake Magnitude Using Random Forest, Support Vector Regression, XGBoost, LightGBM, and Multi-Layer Perceptron Based on Depth and Geolocation Data). Jurnal Pendidikan Dan Teknologi Indonesia, 4, 221-232.
Narastu, R. S., Pratama, R. F., & Suryani, D. (2023). Analisis eksplorasi data gempa bumi di Indonesia menggunakan data BMKG. Jurnal Sistem dan Sains Riset (JSSR, 4(3), 45–55.
Oktaviarini, K. N., Wahyuni, E. D., & Permata Sari, R. (2024). Transformasi data statistik menjadi visual interaktif menggunakan Streamlit: Studi kasus BPS Kota Mojokerto. Jurnal Kridatama Sains dan Teknologi, 6(2), 123–132.
Pamungkas, T. D., Firdaus, R. A., Rohmah, N. A., Rizki, R., & Affriani, A. R. Analisis Spasial Rencana Tata Ruang Wilayah Berbasis Kerentanan Gempa Bumi (Studi Kasus: Kecamatan Cisarua Kabupaten Bandung Barat). JGISE: Journal of Geospatial Information Science and Engineering, 7(2), 161-170. https://doi.org/10.22146/jgise.101944.
PRATAMA, M. A. W. R. (2021). The Influence of Using Up Sampling Method in Predicting Patients' Disease Types using a Combination of Natural Language Processing, Naive Bayes Algorithm, XGBoost and Support Vector Machine (Doctoral dissertation, Universitas Mercu Buana Jakarta).
Pratiwi, A. P., & Arum, P. R. (2025). Implementasi Algoritma Random Forest untuk Mengklasifikasikan Data Gempa Bumi di Indonesia. EIGEN MATHEMATICS JOURNAL, 8(1), 25-33. https://doi.org/10.29303/emj.v8i1.185.
Rahayu, T., & Purwoko, A. (2020). Pendekatan Empiris untuk Estimasi Kerugian Ekonomi dan Dampak Kerusakan Lingkungan akibat Gempabumi di Deli Serdang. Kumpulan Artikel Karya Ilmiah Fakultas Ilmu Komputer, 2, 58-62.
Rahman, R. R. A., & Wijayanto, A. W. (2021). Pengelompokan data gempa bumi menggunakan algoritma DBSCAN. Jurnal Meteorologi dan Geofisika, 22(1), 31–38.
Rahman, S., Sembiring, A., Siregar, D., Prahmana, I. G., Puspadini, R., & Zen, M. (2023). Python: Dasar Dan Pemrograman Berorientasi Objek. Penerbit Tahta Media.
Sulandari, W., Wati, R. K., & Pratiwi, H. (2024). Penerapan algoritma Density-Based Spatial Clustering of Applications with Noise (DBSCAN) dan Self-Organizing Map (SOM) untuk clustering data gempa bumi di Indonesia. Statistika, 14(1), 45–55.
Syaifuddin, A., & Prabowo, T. (2024). Optimasi Akurasi Model Prediksi Magnitudo Gempa Bumi dengan Integrasi Clustering DBSCAN pada Ensemble Learning (Random Forest & XGBoost).
Tantyoko, H., Sari, D. K., & Wijaya, A. R. (2023). Prediksi potensial gempa bumi Indonesia menggunakan metode Random Forest dan feature selection. Jurnal IDEALIS, 6(3), 1587–1597.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Rizky Dwi Prasetyo, Nadia Anissa Maori, Akhmad Khanif Zyen

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
1. Copyright Retention and Open Access License
Authors retain copyright of their work and grant the journal non-exclusive right of first publication under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
This license allows unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2. Rights Granted Under CC BY 4.0
Under this license, readers are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, including commercial use
- No additional restrictions — the licensor cannot revoke these freedoms as long as license terms are followed
3. Attribution Requirements
All uses must include:
- Proper citation of the original work
- Link to the Creative Commons license
- Indication if changes were made to the original work
- No suggestion that the licensor endorses the user or their use
4. Additional Distribution Rights
Authors may:
- Deposit the published version in institutional repositories
- Share through academic social networks
- Include in books, monographs, or other publications
- Post on personal or institutional websites
Requirement: All additional distributions must maintain the CC BY 4.0 license and proper attribution.
5. Self-Archiving and Pre-Print Sharing
Authors are encouraged to:
- Share pre-prints and post-prints online
- Deposit in subject-specific repositories (e.g., arXiv, bioRxiv)
- Engage in scholarly communication throughout the publication process
6. Open Access Commitment
This journal provides immediate open access to all content, supporting the global exchange of knowledge without financial, legal, or technical barriers.
