Clustering of Data on Vegetable Crop Production in the City of Bandung Using the K-Means Algorithm
Abstract
Vegetable farming supports urban food security, and Bandung City is one of West Java's main horticultural centers. However, vegetable production remains unevenly distributed across its sub-districts. This study analyzes production patterns from 2018–2023 using the K-Means Clustering algorithm. The dataset includes 12 major commodities, and the analysis involves data preprocessing, determining the optimal number of clusters using the Elbow Method and Silhouette Score, applying K-Means, and visualizing results through heatmaps and PCA. The findings reveal three clusters: Cluster 0 dominated by potatoes and the "others" category; Cluster 1 dominated by kale; and Cluster 2 dominated by shallots and petsai. These patterns indicate concentrated and specialized production across specific sub-districts. The study concludes that K-Means effectively identifies multi-commodity production similarities and provides strategic insight for Business Intelligence applications in agricultural planning and policy development.
Keywords
Full Text:
PDFReferences
Agustian, A., & Mayrowani, H. (2008). Distribution Pattern of Potato Commodities in Bandung Regency, West Java. Journal of Development Economics: A Study of Economic and Development Problems, 9(1), 96. https://doi.org/10.23917/jep.v9i1.1034
Akbar, R., & Octaviany, M. (2021). Design of Dashboard Visualization and Clustering by Applying Business Intelligence at the Dharmasraya Regency DPMPTSP Office. Journal of Informatics Education and Research (JEPIN), 7(3), 340. https://doi.org/10.26418/jp.v7i3.49719
Andriani, R., Setyanto, A., & Nasiri, A. (2020). Evaluation of Information Systems Using Technology Acceptance Model with the Addition of External Variables. Journal of Information Technology and Computer Science, 7(3), 531. https://doi.org/10.25126/jtiik.202073850
Ardiansyah, R., & Hikmawan, M. D. (2020). Collaboration of Local Organic Farmers as a Form of Food Security.
Buddhism, and Yoga. (2023). Optimization for Vegetable Crop Production in Indonesia. Nuansa Informatica, 17.
Dirayati, F., Sari, R. A., & Purnomo, R. F. (2025). Design and Implementation of Internet of Things Based Smart Agriculture Systems to Increase Agricultural Productivity. 6(2).
Farismana, R. (2024). Application of K-Means Clustering for Mapping. Jisamar Journal, 8. https://doi.org/10.52362/jisamar.v8i3.1572
Scott, E. (2025). Clustering Kos with K-Means Algorithm for Venue Recommendations Based on Price and Facilities. 6(3), 1990–1995.
Guntara, M., & Lutfi, N. (2023). Cluster Count Optimization in Clustering with KMeans Algorithm Using Silhouette Coeficient and Elbow Method. JuTI "Journal of Information Technology," 2(1), 43. https://doi.org/10.26798/juti.v2i1.944
Lianita, E., Pratama, A., & Ulva, A. F. (2024). Application of the K-Means Clustering Method for Mapping Vegetable Productivity Based on Geographic Information System in North Sumatra Province. Journal of Information Systems and Technology (JustIN), 12(2), 232. https://doi.org/10.26418/justin.v12i2.72934
Mulyana, M., Nurendah, Y., & Effendy, M. (2025). Business Intelligence: Concepts and Implementation in Decision Making.
Noor, M. H. (t.t.). Master of Informatics Study Program, Faculty of Science and Technology, Maulana Malik Ibrahim State Islamic University, Malang 2024.
Nurzaman, M. Y., & Sari, B. N. (2023). The implementation of K-Means Clustering in the grouping of the number of farmers based on sub-districts in West Java Province. 10(3).
Prastanika, W. W., & Wijayanto, A. W. (2023). Hard and Soft Clustering Analysis for the Grouping of Indonesian Food Security Indicators 2021. Journal of Information Systems and Technology (JustIN), 11(4), 596. https://doi.org/10.26418/justin.v11i4.68400
Rianti, R., Andarsyah, R., & Awangga, R. M. (2024). Application of PCA and Clustering Algorithm for Higher Education Quality Analysis in LLDIKTI Region IV. NUANCES INFORMATICS, 18(2), 67–77. https://doi.org/10.25134/ilkom.v18i2.211
Riyanda, M. D., & Suyanto, S. (2020). Implementation of Business Intelligence in the Analysis of the Development of Agricultural Products in South Sumatra Province. Journal of Computer and Information Systems Ampera, 1(3), 174–184. https://doi.org/10.51519/journalcisa.v1i3.44
Sjah, Z. (t.t.). Agricultural policy formulation requires an understanding of farmers' motivations and needs.
Sofyan, S. N., & Sitorus, Z. (2025). Implementation of data mining for shallot productivity clustering using the K-Means method. Jatilima : Journal of Multimedia and Information Technology, 07, 109–121. https://doi.org/doi.org/10.54209/jatilima.v7i02.1442
Wakhidah, N. (2010). Clustering Using the K-Means Algorithm. Journal of Transformational, 8(1), 33–39. https://doi.org/10.26623/transformatika.v8i1.45
Yasmin, P. Y. (t.t.). Improving the Understanding of Data Visualization in Processing Information.
Yusdja, M., & Sayaka, A. (2017). Food and Agriculture Economics in Indonesia. IPB Press.
DOI: https://doi.org/10.31764/justek.v8i4.35555
Refbacks
- There are currently no refbacks.
JUSTEK : Jurnal Sains dan Teknologi sudah terindeks
EDITORIAL OFFICE:









