Comparison of k-Means and Hierarchical Clustering (Ward) Methods for Clustering Regencies/Cities Based on the Food Security Index in West Java Province
DOI:
https://doi.org/10.63017/jdsi.v4i2.241Keywords:
Food Security Index, K-Means Clustering, Ward Method, Cluster Analysis, Regional DisparityAbstract
Food security in West Java Province exhibits significant variation across regencies/cities, influenced by differences in socioeconomic conditions, health, and sanitation. This condition necessitates an analytical approach based on regional clustering to support the formulation of more precise policies. This study aims to cluster regions based on the Food Security Index (FSI) and to evaluate the performance of K-Means and Hierarchical Clustering (Ward) in producing an optimal cluster structure. The data used comprised 27 regencies/cities with eight standardized FSI indicators. Cluster quality was evaluated using the Silhouette Coefficient and the Davies-Bouldin Index. The results indicate that the optimal FSI structure is divided into three clusters, each exhibiting distinct regional characteristics. Both methods produced consistent patterns; however, K-Means demonstrated superior performance to Ward, yielding a Silhouette Coefficient of 0.3048 and a Davies-Bouldin Index of 1.0725, which were respectively higher and lower than those obtained by Ward (0.2806 and 1.1241). This finding indicates the superiority of K-Means in forming more compact and well-separated clusters within relatively homogeneous data. Further analysis reveals that disparities in food security are primarily influenced by access to sanitation, poverty, education, and the ratio of health workers. This study provides empirical evidence on the effectiveness of clustering methods for FSI analysis and offers a regional clustering framework capable of supporting data-driven food security policy formulation at the regional level.
References
D. S. Perdana, “Penerapan Metode K-Means Clustering untuk Mengelompokkan Ketahanan Pangan,” J. Sist. Inf., vol. 3, no. 2, pp. 67–72, 2022, doi: http://doi.org/10.15408/aism.v5i1.22534.
J. Li and W. Song, “Food Security Review Based on Bibliometrics from 1991 to 2021,” Foods MDPI, vol. 11, no. 23, pp. 1–15, 2022, doi: https://doi.org/10.3390/foods11233915.
M. Amin, L. Budiman, and D. Suhendi, “Resiliensi Penguatan Ketahanan Pangan Daerah di Indonesia,” J. Perlindungan Masy. Best. Praesidium, vol. 01, no. 2, pp. 63–71, 2024, [Online]. Available: https://ejournal.ipdn.ac.id/jpa/article/view/5113/2094
J. Cheng and X. Yu, “Regional differences , distributional dynamics and convergence of multidimensional food security levels in China,” PLoS One, vol. 19, no. 8, pp. 1–18, 2024, doi: 10.1371/journal.pone.0309071.
R. F. Sinaga, M. A. Prabukusumo, and J. Manurung, “Comparison of k-means clustering with hierarchical agglomerative clustering for the analysis of food security of rice sector in Indonesia,” J. Intell. Decis. Support Syst., vol. 8, no. 1, pp. 22–33, 2025, [Online]. Available: www.idss.iocspublisher.org%0AComparison
M. Chaudhry et al., “A Systematic Literature Review on Identifying Patterns Using Unsupervised Clustering Algorithms : A Data Mining Perspective,” Symmetry (Basel)., vol. 15, no. 9, pp. 1–44, 2023, doi: https://doi.org/10.3390/sym15091679.
E. R. Arini, “Penerapan K-Means Cluster di Provinsi Jawa Timur Berdasarkan Ketahanan Pangan,” J. Sci. Nusant., vol. 3, no. 1, pp. 32–36, 2023, doi: https://doi.org/10.28926/jsnu.v3i1.866.
R. I. N. Kholifah, A. D. Sarah, F. Masichah, and M. Al Haris, “Pengelompokan Kabupaten/Kota Di Jawa Barat Berdasarkan Indikator Ketenagakerjaan Menggunakan Metode K-Means Dan Fuzzy C-Means Dengan Evaluasi Rasio SW/SB Sebagai Validasi Klaster,” J. Stat. dan Komputasi, vol. 4, no. 2, pp. 68–82, 2025, doi: 10.32665/statkom.v4i2.5196.
H. Prastiwi, J. Pricilia, and E. Raswir, “Implementasi Data Mining untuk Menentuksn Persediaan Stok Barang di Mini Market Menggunakan Metode K-Means Clustering,” J. Inform. Dan Rekayasa Komput., vol. 1, no. April, pp. 141–148, 2022, doi: https://doi.org/10.33998/jakakom.2022.2.1.34.
A. Subayu, “Penerapan Metode K-Means untuk Analisis Stunting Gizi pada Balita : Systeatic Review,” J. Sains, Nalar, dan Apl. Teknol. Inf., vol. 2Subayu, A, no. 1, pp. 42–50, 2022, doi: 10.20885/snati.v2i1.18.
M. S. Mukharohmah, R. E. Septiani, N. Fadhilah, and R. Rekayati, “Determinan Ketahanan Pangan di Indonesia ( Pendekatan Integratif Berbasis Regresi dan Klasterisasi K-Means ),” JIA (Jurnal Ilm. Agribisnis) J. Agribisnis dan Ilmu Sos. Ekon. Pertan., vol. 10, no. 6, pp. 638–649, 2025, doi: http://doi.org/10.37149/JIA.v10i6.2430.
Y. E. Prestisya, N. N. Rahma, and D. Aningthia, “Analisis Pengelompokan Tingkat Ketahanan Pangan Provinsi di Indonesia Tahun 2019 – 2023 Menggunakan Algoritma K-Means,” Semin. Nas. Inform., pp. 228–232, 2025, [Online]. Available: https://www.ejournal.pelitaindonesia.ac.id/index.php/SENATIKA/article/view/5499
T. N. Amanda, R. Yulianti, A. FItrianto, Erfiani, and L. M. R. D. Jumansyah, “Perbandingan Metode Complete Linkage, Average Linkage dan Ward’s untuk Pengelompokan Ketahanan Pangan di Provinsi Jawa Timur,” J. Ilm. Mat., vol. 13, no. 01, pp. 227–235, 2025, doi: https://doi.org/10.26740/mathunesa.v13n1.p227-235.
M. D. Salman et al., “Comparison of K-Means and K-Medoids Clustering Algorithm Performance in Grouping Schools in Riau Province Based on Availability of Facilities and Infrastructure,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 5, no. July, pp. 797–806, 2025, doi: https://doi.org/10.57152/malcom.v5i3.1950.
H. P. Josyula, K. Patel, A. Bhanushali, S. R. Landge, S. Mittal, and S. Mittal, “A REVIEW ON DATA VISUALIZATION FOR EXPLORATORY DATA ANALYSIS,” J. Data Acquis. adn Process., vol. 38, no. 4, pp. 487–494, 2023, doi: 10.5281/zenodo.777730.
F. I. Muttaqin, Z. R. Ramadani, R. Yotenka, and Suparna, “Implementasi Algoritma K-Means dalam Analisis Cluster Usaha Pertanian Perorangan di Provinsi D. I Yogyakarta Tahun 2023,” Emerg. Stat. Data Sci. J., vol. 3, no. 1, pp. 471–481, 2025, doi: DOI:10.20885/esds.vol3.iss.1.art4.
M. S. Rezadi, E. S. Wahyuni, and R. Hariyadi, “Pengaruh BOPO dan CAR terhadap Pembiayaan Mudharabah pada Bank Umum,” J. Ekombis Rev. – J. Ilm. Ekon. dan Bisnis, vol. 11, no. 1, pp. 797–808, 2023, doi: https://doi.org/10.37676/ekombis.v11i1.
J. H. Kim, “Multicollinearity and misleading statistical results,” Korean J. Anesthesiol., vol. 72, no. 6, pp. 558–569, 2019, doi: https://doi.org/10.4097/kja.19087.
A. Elwahdiyah and Hartono, “Jenis Data dan Skala Pengukuran: Mengenal Klasifikasi Data, Skala Pengukuran dan Implikasinya dalam Analisis,” Didakt. J. Ilm. PGSD FKIP Univ. Mandiri, vol. 11, no. 04, pp. 223–238, 2025, [Online]. Available: https://journal.stkipsubang.ac.id/index.php/didaktik/article/view/10239
D. A. Sakhi, F. N. Fatmala, K. Auralia, A. R. Pratama, and A. T. Damaliana, “Klasterisasi Kabupaten/Kota Di Provinsi Jawa Tengah Berdasarkan Komponen Indeks Pembangunan Manusia Menggunakan Metode Umap Dan K-Means,” J. Ilm. Mat., vol. 13, no. 02, pp. 607–618, 2025, [Online]. Available: https://ejournal.unesa.ac.id/index.php/mathunesa/article/view/68475
A. G. Andito and Nurmaliyah, “Analisis komparatif metode k-means dan hierarchical clustering untuk segmentasi pelanggan pusat kebugaran,” Pros. Semin. Nas. Sains dan Teknol. Seri V, vol. 3, no. 1, pp. 451–464, 2026, [Online]. Available: https://conference.ut.ac.id/index.php/saintek/article/view/7999
D. Irmayanti and T. I. Hermanto, “Pengembangan Algoritma Hybrid K - Means DBSCAN untuk Optimasi Cluster Daerah Rawan Longsor berbasis Web - Gis,” Sist. J. Sist. Inf., vol. 15, no. 1, pp. 109–120, 2026, [Online]. Available: http://sistemasi.ftik.unisi.ac.id
A. P. Putra, J. Tshivana, and E. Rilvani, “Perbandingan Teoritis dan Eksperimen Algoritma K-Means dan K-Medoids dalam Klasterisasi Data,” Kohesi J. Multidisiplin Saintek, vol. 10, no. 2, pp. 1–24, 2025, doi: https://doi.org/10.2238/0b2z5035.
U. Hariadi and P. Perdana, “Ketahanan Pangan Indonesia: Antara Jargon dan Realitas Food,” J. Pertan. Agros, vol. 27, no. 4, pp. 418–430, 2025.
Satriwanti, “Analisis Clustering Menggunakan Agglomerative Hierarchical Cluster pada Data Hasil Produksi Pertanian di Sulawesi Barat Tahun 2023,” 2025. [Online]. Available: https://repository.unsulbar.ac.id/id/eprint/2335/
T. Abdulpatah, B. N. Sari, and Sulistiawati, “Algoritma K-Means dan Agglomerative Hierarchical Clustering untuk Pengelompokan Daerah Penghasil Padi,” JITET (Jurnal Inform. dan Tek. Elektro Ter., vol. 13, no. 3, pp. 1314–1323, 2025, doi: https://doi.org/10.23960/jitet.v13i3.7251.
N. A. Yolandari, L. E. Butarbutar, G. C. H. Rajagukguk, M. F. Zulfi, Arnita, and F. Ramadhani, “Analisis Perbandingan K-Means dan Dbscan dalam Pengelompokan Data Travel Review Ratings Menggunakan Evaluasi Silhouette Index dan Davies-Bouldin Index,” JITET (Jurnal Inform. dan Tek. Elektro Ter., vol. 13, no. 3, pp. 470–481, 2025, doi: http://dx.doi.org/10.23960/jitet.v13i3.6884.
R. Hidayati, A. Zubair, A. H. Pratama, and L. Indana, “Analisis Silhouette Coefficient pada 6 Perhitungan Jarak K-Means Clustering,” J. Teknol. Inf., vol. 20, no. 2, pp. 186–197, 2021, [Online]. Available: http://publikasi.dinus.ac.id/index.php/technoc/article/view/4556
M. Diarty and A. W. Wijayanto, “Analisis Aspek Ketahanan Pangan Indonesia dengan Hard dan Soft Clustering,” J. Sci. Technol., vol. 17, no. 1, pp. 108–123, 2024, [Online]. Available: https://journal.trunojoyo.ac.id/rekayasa
W. W. Prastanika and A. W. Wijayanto, “Analisis Hard dan Soft Clustering Untuk Pengelompokan Indikator Ketahanan Pangan Indonesia 2021,” J. Sist. dan Teknol. Inf., vol. 11, no. 4, pp. 596–604, 2023, doi: 10.26418/justin.v11i4.68400.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 The Author(s)

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

SUPPORT




