Comparative Analysis of K-Means, K-Medoids, and DBSCAN for Spatial Clustering of Positive Cloud-to-Ground Lightning in Tangerang City
DOI:
https://doi.org/10.46880/jmika.Vol10No2.pp451-462Keywords:
Cloud-to-Ground Lightning, DBSCAN, K-Means, K-Medoids, Spatial ClusteringAbstract
Cloud-to-Ground (CG) lightning is one of the most destructive atmospheric phenomena due to its potential to damage electrical infrastructure, communication networks, and public facilities. Understanding its spatial distribution is essential for disaster mitigation, infrastructure protection, and urban planning. This study compares the performance of the K-Means, K-Medoids, and Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithms in identifying the spatial distribution of Positive Cloud-to-Ground (CG+) lightning strikes in Tangerang City, Indonesia. The analysis utilizes CG+ lightning observations collected by the Tangerang Geophysical Station of the Indonesian Agency for Meteorology, Climatology, and Geophysics (BMKG) during 2025. Prior to clustering, the dataset underwent data cleaning, CG+ event selection, administrative boundary filtering, feature selection, coordinate transformation from WGS84 to UTM, and Min–Max normalization. The clustering performance of each algorithm was assessed using the Silhouette Coefficient and Davies–Bouldin Index (DBI). The evaluation results indicate that both K-Means and K-Medoids achieved the best performance with K = 3. K-Means obtained the highest Silhouette Coefficient (0.445640) and the lowest DBI (0.789620), while K-Medoids produced comparable results with a Silhouette Coefficient of 0.444728 and a DBI of 0.794027. For DBSCAN, the optimal parameter combination (ε = 200 m and MinPts = 6) generated 64 clusters and 170 noise observations, yielding a Silhouette Coefficient of 0.059880 and a DBI of 1.452474. These findings demonstrate that partition-based clustering approaches provide a more reliable representation of the spatial distribution of CG+ lightning in Tangerang City than the density-based DBSCAN approach.
References
Agresto, J., Duan, Z., Bentley, M., Gerken, T., & Bonsal, D. (2024). Spatiotemporal-DBSCAN: A Density-Based Clustering Method for Analyzing Spatiotemporal Groundlightning Dataset. Conference Proceedings of the IEEE International Performance, Computing, and Communications Conference. https://doi.org/10.1109/IPCCC59868.2024.10850463
Ashari, I. F., Dwi Nugroho, E., Baraku, R., Novri Yanda, I., & Liwardana, R. (2023). Analysis of Elbow, Silhouette, Davies-Bouldin, Calinski-Harabasz, and Rand-Index Evaluation on K-Means Algorithm for Classifying Flood-Affected Areas in Jakarta. Journal of Applied Informatics and Computing, 7(1), 89–97. https://doi.org/10.30871/jaic.v7i1.4947
Davies, D. L., & Bouldin, D. W. (1979). A Cluster Separation Measure. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-1(2), 224–227. https://doi.org/10.1109/TPAMI.1979.4766909
Ester, M., Kriegel, H.-P., Sander, J., & Xu, X. (1996). A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise. www.aaai.org
Han, J., Kamber, M., Pei, J., & Kaufmann, M. (2012). Data Mining: Concepts and Techniques Third Edition.
Jiang, R., Zhang, G., Wang, S., Xue, B., Xie, Z., Yu, T., Wang, K., Ding, J., & Zhu, X. (2023). Characteristics of cloud-to-ground lightning (CG) and differences between +CG and −CG strokes in China regarding the China National Lightning Detection Network. Natural Hazards and Earth System Sciences, 23(12), 3747–3759. https://doi.org/10.5194/nhess-23-3747-2023
Karney, C. F. F. (2012). Algorithms for geodesics. https://doi.org/10.1007/s00190-012-0578-z
Kaufman, L., & Rousseeuw, P. J. (1990). Finding Groups in Data. Wiley. https://doi.org/10.1002/9780470316801
Nugrahanto, Z. Z., & Yunin Sofro, A. (2025). Implementation of DBSCAN and K-MEANS++ Methods for Flood Vulnerability Cluster Mapping in East Java Province, 2024://creativecommons.org/licenses/by-sa/4.0). Matematika Murni Dan Aplikasi, 10(2), 427–440. https://doi.org/10.18860/cauchy.v10i2.32446
Paski, J. A. I., Permana, Y. H., & Pertiwi, yah A. S. (2017). Analisis Sebaran Petir Cloud To Ground (CG) di Wilayah Jabodetabek Pada Tahun 2016. Prosiding Seminar Nasional Fisika (E-Journal) SNF2017 UNJ. https://doi.org/10.21009/03.SNF2017.02.EPA.10
Rousseeuw, P. J. (1987). Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics, 20, 53–65. https://doi.org/10.1016/0377-0427(87)90125-7
Salman, F., & Fauziah, F. (2023). Comparison Analysis of K-Means and DBSCAN Algorithms for Improving Budget Absorption Efficiency in EIS. Brilliance: Research of Artificial Intelligence, 3(2), 378–383. https://doi.org/10.47709/brilliance.v3i2.3373
Schubert, E., & Rousseeuw, P. J. (2021). Fast and eager k-medoids clustering: O(k) runtime improvement of the PAM, CLARA, and CLARANS algorithms. Information Systems, 101. https://doi.org/10.1016/j.is.2021.101804
Shi, M., Fan, P., Tao, H., Li, Q., Wang, J., Liu, Y., & Wei, L. (2025). A lightning cluster identification method considering multi-scale spatiotemporal neighborhood relationships. PLOS ONE, 20(10 October). https://doi.org/10.1371/journal.pone.0333207
Wang, J., Huang, Q., Ma, Q., Chang, S., He, J., Wang, H., Zhou, X., Xiao, F., & Gao, C. (2020). Classification of VLF/LF lightning signals using sensors and deep learning methods. Sensors (Switzerland), 20(4). https://doi.org/10.3390/s20041030
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Adi Pranata Ranta, Marzuki Sinambela, Agustina Rachmawardani, Deni Septiadi

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










