Klasterisasi Pola Seismik: Perbandingan K-Means dan ST-DBSCAN pada Data Gempa Spasio-Temporal
Abstract
Earthquakes are natural disasters with significant socio-economic impacts; thus, understanding their distribution patterns and characteristics is essential for disaster mitigation. Indonesia is situated along the Pacific Ring of Fire with intense seismic activity, and the volume of earthquake data recorded by BMKG is too vast for manual analysis. This study compares K-Means and ST-DBSCAN using 93,815 spatio-temporal data points from a historical catalog (2008–2023) and data from the final 30 days of 2026. The number of K-Means clusters was determined using the elbow method supported by the Silhouette Score and Davies-Bouldin Index (DBI); both algorithms were evaluated using the Silhouette Score, DBI, and Adjusted Rand Index (ARI) across six tectonic zones. K-Means (k = 4) outperformed ST-DBSCAN across all three metrics (Silhouette Score: 0.1563, DBI: 2.7180, ARI: 0.4137), whereas ST-DBSCAN produced 20 clusters with a single cluster containing 70.9% of the data. Three K-Means clusters corresponded to the Sulawesi–Maluku, Sunda Arc, and Sumatra regions, while one represented a temporal artifact from the time_days feature. An ablation test excluding time_days (k = 3) improved the ARI to 0.5102. Results are presented via the Flask-based NusaSeis web dashboard with interactive maps and automated interpretations by Gemini 2.5 Flash; all 23 black box scenarios were validated. NusaSeis serves as an open seismic exploration platform enabling academics and disaster management agencies to interactively access national seismicity summaries without programming expertise, though it is not yet suitable for official tectonic zoning or hazard assessment.
Downloads
References
Aprianti, A., Jufriansah, A., Donuata, P. B., Khusnani, A., & Ayuba, J. (2023). Comparison of K-Means Algorithm and DBSCAN on Aftershock Activity in the Flores Sea: Seismic Activity 2019-2022. Journal of Novel Engineering Science and Technology, 2(03), 77–82. https://doi.org/10.56741/jnest.v2i03.393
Arian, S. A., Alifia, P. R., Prihantoro, B., & Fathoni. (2026). Perbandingan K-Means, DBSCAN, Agglomerative pada Clustering Gempa Bumi Sumbagsel 2015–2025 Berbasis USGS. Jurnal Ilmiah Media Sisfo, 20(1), 33–46. https://doi.org/10.33998/mediasisfo.2026.20.1.2797
Chacón, J. E., & Rastrojo, A. I. (2023). Minimum adjusted Rand index for two clusterings of a given size. Advances in Data Analysis and Classification, 17(1), 125–133. https://doi.org/10.1007/s11634-022-00491-w
Dwitiyanti, N., Ayu Kumala, S., & Dwi Handayani, S. (2023). Implementation of K-Means Method in Classterization of Earthquake Prone Areas in Indonesia. Prosiding Seminar Nasional UNIMUS, 6(1), 1029–1037. https://prosiding.unimus.ac.id/index.php/semnas/article/view/1595
Khairunnisa, G., & Voutama, A. (2024). Peminjaman Inventaris Berbasis Web Di Bem Fasilkom Unsika. JATI (Jurnal Mahasiswa Teknik Informatika), 8(2), 48–55. https://doi.org/10.36040/jati.v8i3.9538
Manalu, D. J., Rahmawati, R., & Widiharih, T. (2021). Spatio Temporal-Density Based Spatial Clustering Application with Noise. Jurnal Gaussian, 10(4), 554–561. https://doi.org/10.14710/j.gauss.10.4.554-561
Mousavi, S. M., & Beroza, G. C. (2023). Machine Learning in Earthquake Seismology. Annual Review of Earth and Planetary Sciences, 51, 105–129. https://doi.org/10.1146/annurev-earth-071822-100323
Prasetio, A., Effendi, M. M., & Dwi M, M. N. (2023). Analisis Gempa Bumi Di Indonesia Dengan Metode Clustering. Bulletin of Information Technology (BIT), 4(3), 338–343. https://doi.org/10.47065/bit.v4i3.820
Priyaadmaja, A. A. A., Andrew, C., & Satria, M. B. (2025). Analisis dan Visualisasi Data Gempa Bumi di Indonesia tahun 2008-2022 Menggunakan Google Colab. ELANG: Journal of Interdisciplinary Research, 3(1), 53–59. https://doi.org/10.32664/elang.v3i1
Ronal, Yunita, & Yuliana. (2022). Desain Unified Modeling Language (UML) Dalam Perancangan Aplikasi Hauling Trip Di Industri Tambang Batubara. Jurnal Teknik Informatika Dan Sistem Informasi, 9(4), 4335–4343. https://doi.org/10.35957/jatisi.v9i4.2401
Samsudin, A. R., Fudholi, D. H., & Iswari, L. (2024). Temporal Spatial Property Profiling and Identification of Earthquake Prone Areas Using St-Dbscan and K-Means Clustering. Jurnal Teknik Informatika (Jutif), 5(3), 917–929. https://doi.org/10.52436/1.jutif.2024.5.3.1293
Siahaan, M. B., & Rio, A. R. (2023). Agglomerative Clustering of 2022 Earthquakes in North Sulawesi, Indonesia. Buana Information Technology and Computer Sciences (BIT and CS, 4(2), 76–84. https://doi.org/10.36805/bit-cs.v4i2.5361
Smrti, N. N. E., Sukenada, A. I. P. G., Rahayu, N. K. D. T. R., Adnan, & KW, P. P. O. J. (2023). Flowgorithm Sebagai Penunjang Pembelajaran Algoritma dan Pemrograman. Jurnal Bangkit Indonesia, 12(01), 56–64. https://doi.org/10.52771/bangkitindonesia.v12i1.218
Tania, A., Handhayani, T., & Hendryli, J. (2023). Perbandingan Antara Algoritma K-Means Dan Algoritma Bisecting K-Means Dalam Menganalisis Gempa Bumi Di Indonesia. Simtek : Jurnal Sistem Informasi Dan Teknik Komputer, 8(2), 265–270. https://doi.org/10.51876/simtek.v8i2.205
Tarigan, D. A. (2023). Optimization of the K-Means Clustering Algorithm Using Davies Bouldin Index in Iris Data Classification. KLIK: Kajian Ilmiah Informatika Dan Komputer, 4(1), 545–552. https://doi.org/10.30865/klik.v4i1.964
Vijay, R. K., Nanda, S. J., & Sharma, A. (2025). A review on clustering algorithms for spatiotemporal seismicity analysis. Artificial Intelligence Review, 58(8). https://doi.org/10.1007/s10462-025-11229-3
Wayahdi, M. R., & Ruziq, F. (2023). Pemodelan Sistem Penerimaan Anggota Baru dengan Unified Modeling Language (UML) (Studi Kasus: Programmer Association of Battuta). Jurnal Minfo Polgan, 12(1), 1514–1521. https://doi.org/10.33395/jmp.v12i1.12870
Wibowo, A., & Gunawan, W. (2024). Pemanfaatan Algoritma K-Means dalam Klasterisasi Gempa Sulawesi. Faktor Exacta, 17(3), 228. https://doi.org/10.30998/faktorexacta.v17i3.23169
Wicaksono, A. P., Widjaja, S., Nugroho, M. F., Christina, & Priscilla, P. (2024). Analisa Nilai K terhadap Pengelompokkan Penjualan Tiket pada K-Means dengan Metode Elbow dan Silhouette. SISTEMASI: Jurnal Sistem Informasi, 13(1), 28–38. https://sistemasi.ftik.unisi.ac.id/index.php/stmsi/article/download/2889/608
Willyana, I. P., Hadiana, A. I., & Ilyas, R. (2025). Analisis Klaster Daerah Rawan Gempa di Indonesia Menggunakan K-Means dan DBSCAN Berbasis Data Historis BMKG. Tematik: Jurnal Teknologi Informasi Komunikasi (e-Journal), 12(1), 59–71. https://doi.org/10.38204/tematik.v12i1.2369
Yulisasih, B. N., Herman, H., Sunardi, S., & Yuliansyah, H. (2024). Evaluation of K-Means Clustering Using Silhouette Score Method on Customer Segmentation. ILKOM Jurnal Ilmiah, 16(3), 330–342. https://doi.org/10.33096/ilkom.v16i3.2325.330-342
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasterisasi Pola Seismik: Perbandingan K-Means dan ST-DBSCAN pada Data Gempa Spasio-Temporal
Copyright (c) 2026 Muhammad Putra Pratama Budiman, Muhammad Zakariyah

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).


