Pemetaan Skor Pola Pangan Harapan Tingkat Provinsi Menggunakan K-Means Clustering dengan Inisialisasi Centroid Deterministik dan Validasi Multimetrik


Authors

  • Afriza Fliyani Universitas Asahan, Kisaran, Indonesia
  • Wanayumini Wanayumini Universitas Asahan, Kisaran, Indonesia

DOI:

https://doi.org/10.47065/bulletincsr.v6i6.1421

Keywords:

K-Means Clustering; Desirable Dietary Pattern; Food Security; Centroid Initialization; Cluster Validation

Abstract

Food security is determined not only by food availability but also by the diversity and nutritional balance of household consumption, which in Indonesia is measured by the Desirable Dietary Pattern score. Geographic, social, and economic differences among provinces lead to widely varying scores, while objective, updatable mappings remain limited. This study aimed to map Indonesian provinces based on their Desirable Dietary Pattern scores, to analyze the spatial and temporal characteristics of each group, and to implement the K-Means Clustering algorithm in a web-based system. The data consisted of 242 provincial score records for 2018–2024 obtained from the Indonesian One Data portal. The data were normalized with the Min-Max method and grouped into three clusters using Euclidean distance, with initial centroids taken from the highest, median, and lowest values. The number of clusters was examined with the Elbow method, cluster quality was assessed with the Silhouette Score and the Davies-Bouldin Index, and the stability of the results was tested through a sensitivity analysis of 100 random and 100 K-Means++ initializations together with a computational runtime measurement. The algorithm converged at the fifth iteration and produced a High cluster of 84 records (centroid 91.08), a Medium cluster of 109 records (centroid 83.43), and a Low cluster of 49 records (centroid 74.12). A Silhouette Score of 0.578 and a Davies-Bouldin Index of 0.516 indicated a good cluster structure. The three initialization strategies differed in the membership of only two records lying at cluster boundaries, while the deterministic initialization converged in 5 iterations with a median runtime of 0.16 ms, faster than random initialization (0.29 ms) and K-Means++ (0.30 ms). The number of provinces in the High category rose from 5 in 2018 to 22 in 2024, whereas East Nusa Tenggara and Maluku consistently remained in the Low category. The web system produced results identical to the manual calculation, making it a suitable tool for prioritizing food security policy. The contributions of this study are (1) a reproducible K-Means procedure with deterministic initialization whose stability has been tested, (2) a seven-year category map of the Desirable Dietary Pattern scores of all provinces with explicit score boundaries between categories, and (3) a transparent, updatable web-based system that supports the prioritization of food security policies.

Downloads

Download data is not yet available.

References

Pemerintah Republik Indonesia, “Peraturan Pemerintah Nomor 17 Tahun 2015 tentang Ketahanan Pangan dan Gizi,” Sekretariat Negara Republik Indonesia, Jakarta, 2015.

Badan Pangan Nasional, “Peraturan Badan Pangan Nasional Republik Indonesia Nomor 11 Tahun 2023 tentang Pola Pangan Harapan,” Badan Pangan Nasional, Jakarta, 2023.

A. Rossita, T. Masui, K. Tsuchiya, and M. Sekiyama, “Assessing Food Consumption Trends in Indonesia: Historical Insights and Challenges for Adoption of the Desirable Dietary Pattern,” Jurnal Gizi dan Pangan, vol. 21, no. 2, pp. 79–88, 2026, doi: 10.25182/jgp.2026.21.2.79-88.

M. F. Reicilya, M. Mukson, and H. Setiyawan, “Analisis Faktor-Faktor yang Memengaruhi Pola Pangan Harapan pada Rumah Tangga di Kelurahan Ngijo Kota Semarang,” Mimbar Agribisnis: Jurnal Pemikiran Masyarakat Ilmiah Berwawasan Agribisnis, vol. 10, no. 2, pp. 1652–1661, 2024, doi: 10.25157/ma.v10i2.13385.

R. Abdulah, “Mapping Food Security in Indonesia: Geographic Clusters and Regional Disparities,” Indonesian Journal of Geography, vol. 57, no. 3, pp. 440–447, 2025, doi: 10.22146/ijg.99419.

M. Norshahlan, H. Jaya, and R. Kustini, “Penerapan Metode Clustering dengan Algoritma K-Means pada Pengelompokan Data Calon Siswa Baru,” Jurnal Sistem Informasi Triguna Dharma (JURSI TGD), vol. 2, no. 6, p. 1042, 2023, doi: 10.53513/jursi.v2i6.9148.

A. E. Ezugwu et al., “A Comprehensive Survey of Clustering Algorithms: State-of-the-Art Machine Learning Applications, Taxonomy, Challenges, and Future Research Prospects,” Engineering Applications of Artificial Intelligence, vol. 110, p. 104743, 2022, doi: 10.1016/j.engappai.2022.104743.

A. M. Ikotun, A. E. Ezugwu, L. Abualigah, B. Abuhaija, and J. Heming, “K-Means Clustering Algorithms: A Comprehensive Review, Variants Analysis, and Advances in the Era of Big Data,” Information Sciences, vol. 622, pp. 178–210, 2023, doi: 10.1016/j.ins.2022.11.139.

S. Harris and R. C. de Amorim, “An Extensive Empirical Comparison of K-Means Initialisation Algorithms,” IEEE Access, vol. 10, pp. 58752–58768, 2022, doi: 10.1109/ACCESS.2022.3179803.

P. Olukanmi, F. Nelwamondo, T. Marwala, and B. Twala, “Automatic Detection of Outliers and the Number of Clusters in K-Means Clustering via Chebyshev-Type Inequalities,” Neural Computing and Applications, vol. 34, no. 8, pp. 5939–5958, 2022, doi: 10.1007/s00521-021-06689-x.

J. Hämäläinen, T. Kärkkäinen, and T. Rossi, “Improving Scalable K-Means++,” Algorithms, vol. 14, no. 1, p. 6, 2021, doi: 10.3390/a14010006.

D. Ramdhan, G. Dwilestari, R. D. Dana, A. Ajiz, and K. Kaslani, “Clustering Data Persediaan Barang dengan Menggunakan Metode K-Means,” Media Informasi Analisa dan Sistem (MEANS), vol. 7, no. 1, pp. 1–9, 2022, doi: 10.54367/means.v7i1.1826.

H. Prastiwi, J. Pricilia, and E. Rasywir, “Implementasi Data Mining untuk Menentukan Persediaan Stok Barang di Mini Market Menggunakan Metode K-Means Clustering,” Jurnal Informatika dan Rekayasa Komputer (JAKAKOM), vol. 2, no. 1, pp. 141–148, 2022, doi: 10.33998/jakakom.2022.2.1.34.

N. Hendrastuty, “Penerapan Data Mining Menggunakan Algoritma K-Means Clustering dalam Evaluasi Hasil Pembelajaran Siswa,” Jurnal Ilmiah Informatika dan Ilmu Komputer (JIMA-ILKOM), vol. 3, no. 1, pp. 46–56, 2024, doi: 10.58602/jima-ilkom.v3i1.26.

M. Sholeh and K. Aeni, “Perbandingan Evaluasi Metode Davies Bouldin, Elbow dan Silhouette pada Model Clustering dengan Menggunakan Algoritma K-Means,” STRING (Satuan Tulisan Riset dan Inovasi Teknologi), vol. 8, no. 1, pp. 56–65, 2023, doi: 10.30998/string.v8i1.16388.

E. A. Cipta, B. Priyatna, F. Nurapriani, and A. L. Hananto, “Pola Konsumsi Pangan Skor PPH Wilayah di Indonesia Berdasarkan Gizi Tiap Daerah 2021–2024 Penerapan Metode Hierarchical Clustering,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 10, no. 3, pp. 4894–4900, May 2026, doi: 10.36040/jati.v10i3.18427.

L. Astria, S. Meliani, A. Pratama, and A. Rohman, “Cluster Analysis of Provinces Based on the Prevalence of Undernourishment Using the K-Means Algorithm,” JOSAR (Journal of Students Academic Research), vol. 11, no. 2, pp. 334–346, 2026, doi: 10.35457/9wjmrq51.

I. Nilasari and N. E. Safitri, “Provincial Classification of Child Malnutrition in Indonesia: A K-Means Clustering Approach for Evidence-Based Stunting Intervention Prioritization,” Journal of Computing and Smart Ecosystems, vol. 2, no. 1, 2026, doi: 10.26714/jcase.v2i1.1144.

Z. R. Buleuw, R. J. Situmeang, and D. J. Fitri, “Perbandingan Metode K-Means dan Ward pada Pengelompokan Ketahanan Pangan Kabupaten/Kota di Indonesia,” Jurnal Algoritme, vol. 7, no. 1, pp. 133–144, 2026, doi: 10.35957/algoritme.v7i1.16194.

C. Shi, B. Wei, S. Wei, W. Wang, H. Liu, and J. Liu, “A Quantitative Discriminant Method of Elbow Point for the Optimal Number of Clusters in Clustering Algorithm,” EURASIP Journal on Wireless Communications and Networking, vol. 2021, p. 31, 2021, doi: 10.1186/s13638-021-01910-w.

F. Batool and C. Hennig, “Clustering with the Average Silhouette Width,” Computational Statistics & Data Analysis, vol. 158, p. 107190, 2021, doi: 10.1016/j.csda.2021.107190.

M. Shutaywi and N. N. Kachouie, “Silhouette Analysis for Performance Evaluation in Machine Learning with Applications to Clustering,” Entropy, vol. 23, no. 6, p. 759, 2021, doi: 10.3390/e23060759.

A. M. Ikotun, F. Habyarimana, and A. E. Ezugwu, “Cluster Validity Indices for Automatic Clustering: A Comprehensive Review,” Heliyon, vol. 11, no. 2, p. e41953, 2025, doi: 10.1016/j.heliyon.2025.e41953.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Pemetaan Skor Pola Pangan Harapan Tingkat Provinsi Menggunakan K-Means Clustering dengan Inisialisasi Centroid Deterministik dan Validasi Multimetrik

Dimensions Badge

ARTICLE HISTORY

Published: 2026-10-31

Abstract View: 0 times
PDF Download: 0 times

How to Cite

Fliyani, A., & Wanayumini, W. (2026). Pemetaan Skor Pola Pangan Harapan Tingkat Provinsi Menggunakan K-Means Clustering dengan Inisialisasi Centroid Deterministik dan Validasi Multimetrik. Bulletin of Computer Science Research, 6(6), 2719-2732. https://doi.org/10.47065/bulletincsr.v6i6.1421

Issue

Section

Articles