Implementasi Algoritma K-Means Clustering dengan Python untuk Analisis Produksi Bawang Merah di Indonesia
DOI:
https://doi.org/10.62383/sosial.v3i4.1228Keywords:
Shallot Production, K-Means Clustering, Data Mining, Python, Agricultural AnalysisAbstract
Shallots are one of the most strategic horticultural commodities in Indonesia, with high demand and varying production levels across regions. Differences in productivity between areas often create challenges in managing distribution and formulating national food policies. This study aims to analyze shallot production data in Indonesia by applying the K-Means Clustering algorithm using Python. The production data were collected from official agricultural statistics publications, followed by preprocessing, normalization, and determination of the optimal number of clusters using the Elbow method and Silhouette Score. The clustering results show the formation of several groups representing regions with high, medium, and low production levels. Visualization of the clustering results reveals the distribution patterns of shallot production, which can serve as a basis for supporting policy formulation in the development of shallot production centers in Indonesia. Thus, the application of K-Means Clustering with Python proves to be an effective approach to provide clearer insights into regional production variations and can be utilized as an analytical tool to support decision-making in the agricultural sector.
Downloads
References
Abdullah, S. H., & Fatah, Z. (2024). Analisis produksi cabai rawit Indonesia menggunakan algoritma K-means clustering. Jurnal Ilmiah Sains Teknologi dan Informasi, 3(1), 66–74. https://doi.org/10.59024/jiti.v3i1.1024
Akkem, Y., Kumar, B. S., & Varanasi, A. (2023). Streamlit application for advanced ensemble learning methods in crop recommendation systems: A review and implementation. Indian Journal of Science and Technology, 16(48), 4688–4702. https://doi.org/10.17485/IJST/v16i48.2850
Bode, A. (2017). K-nearest neighbor dengan feature selection menggunakan backward elimination untuk prediksi harga komoditi kopi Arabika. ILKOM Jurnal Ilmiah, 9(2), 188–195. https://doi.org/10.33096/ilkom.v9i2.139.188-195
Elfianto, Syahni, R., Asmawi, & Ifdal. (2020). Perilaku petani bawang merah dalam penggunaan pestisida: Sebuah literature review. Jurnal Ilmiah Pertanian, 11(2). https://doi.org/10.31317
Handoko, S., Fauziah, F., & Handayani, E. T. E. (2020). Implementasi data mining untuk menentukan tingkat penjualan paket data Telkomsel menggunakan metode K-means clustering. Jurnal Ilmiah Teknologi dan Rekayasa, 25(1), 76–88. https://doi.org/10.35760/tr.2020.v25i1.2677
Jackson, J. (2002). Data mining: A conceptual overview. Communications of the Association for Information Systems, 8, 1–20. https://doi.org/10.17705/1CAIS.00819
Kabir, M. A., Ahmed, F., Islam, M. M., & Ahmed, M. R. (2024). Python for data analytics: A systematic literature review of tools, techniques, and applications. Academic Journal on Science, Technology, Engineering & Mathematics Education, 4(4), 134–154. https://doi.org/10.69593/ajsteme.v4i04.146
Kamila, C., Adiyatma, M., Namang, G. R., Ramadhan, R., Syah, F., & Redaksi, D. (2021). Pendidikan teknik informatika dan komputer, fakultas teknik. Jurnal Intech, 2(1), 1.
Kurniawan, C. (2019). A survey on big data analytics model. ITEJ (Information Technology Engineering Journal), 4(1), 1–13. https://doi.org/10.24235/itej.v4i1.46
Meliza, O., & Susanti, T. (n.d.). Implementasi K-means: Sebuah studi literatur. Jurnal Informatika (JURI). https://doi.org/10.12345/juri
Pada, P., Pengkajian, B., Pertanian, T., Kompleks, S. B., Gubernur, P., Barat, S., Abdul, J., & Pattanaendeng, M. (2017). Perbaikan usaha tani bawang merah dataran rendah dengan perbandingan paket teknologi petani dengan paket teknologi introduksi di Kabupaten Majene. Jurnal Agrotan, 3(1), 56–66.
Rahmadona, L., Fariyanti, A., & Burhanuddin. (2015). Analisis pendapatan usahatani bawang merah di Kabupaten Majalengka (Income analysis of shallot farming in Majalengka Regency). Jurnal Agribisnis, 2(1), 1–10.
Saabith, S., Thangarajah, V., Saabith, A. S., Vinothraj, T., & Fareez, M. (2021). A review on Python libraries and IDEs for data science. International Journal of Research in Engineering and Science (IJRES). www.ijres.org
Setyaningtyas, S., Nugroho, I., & Arif, Z. (2022). Tinjauan pustaka sistematis: Penerapan data mining teknik clustering algoritma K-means. Jurnal Teknoif Teknik Informatika Institut Teknologi Padang, 10(2), 52–61. https://doi.org/10.21063/jtif.2022.V10.2.52-61
Sofyan, S. N., & Sitorus, Z. (2025). Implementasi data mining untuk clustering produktivitas bawang merah menggunakan metode K-means. Jurnal Jatilima, 7(2), 1–9. https://doi.org/10.54209/jatilima.v7i02.1442
Vania, P., & Nurina Sari, B. (2023). Perbandingan metode elbow dan silhouette untuk penentuan jumlah klaster yang optimal pada clustering produksi padi menggunakan algoritma K-means. Jurnal Ilmiah Wahana Pendidikan, 9(21), 547–558. https://doi.org/10.5281/zenodo.10081332
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 SOSIAL : Jurnal Ilmiah Pendidikan IPS

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


