Analisis Data Produksi Kakao Menggunakan Algoritma Naive Bayes Berbasis Big Data
Keywords:
Kakao, Gaussian Naive Bayes, Klasifikasi, produksi perkebunan, Kabupaten SoppengAbstract
Penelitian ini menerapkan algoritma Gaussian Naive Bayes untuk mengklasifikasikan tingkat produksi kakao menjadi kategori tinggi dan rendah pada delapan kecamatan di Kabupaten Soppeng. Data yang digunakan merupakan data sekunder dari publikasi Kabupaten Soppeng Dalam Angka 2024, khususnya tabel luas areal tanaman perkebunan dan produksi perkebunan menurut kecamatan untuk tahun 2022 dan 2023*. Dataset terdiri atas 16 observasi, yaitu delapan kecamatan pada setiap tahun. Luas areal kakao digunakan sebagai atribut prediktor, sedangkan kategori produksi menjadi kelas target. Batas kategori ditentukan menggunakan median produksi tahun 2022 sebesar 162,19 ton; nilai produksi yang sama dengan atau lebih besar dari median diberi label tinggi, sedangkan nilai di bawah median diberi label rendah. Model dilatih menggunakan delapan observasi tahun 2022 dan diuji menggunakan delapan observasi tahun 2023. Implementasi dilakukan menggunakan Python pada Google Colab dan pustaka scikit-learn. Hasil pengujian menunjukkan seluruh delapan observasi tahun 2023 diklasifikasikan sesuai label aktual, dengan akurasi 100%, precision 1,00, recall 1,00, dan F1-score 1,00 pada kedua kelas. Hasil tersebut merupakan hasil uji terbatas pada delapan data kecamatan dan tidak dapat digeneralisasi tanpa pengujian pada data yang lebih besar dan periode tambahan
References
Badan Pusat Statistik Kabupaten Soppeng. (2024). Kabupaten Soppeng dalam angka 2024. Badan Pusat Statistik Kabupaten Soppeng. https://ppid.soppeng.go.id/storage/media/780/kabupaten-soppeng-dalam-angka-2024.pdf
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830. https://jmlr.org/papers/v12/pedregosa11a.html
scikit-learn developers. (n.d.). 1.9. Naive Bayes. scikit-learn documentation. https://scikit-learn.org/stable/modules/naive_bayes.html
scikit-learn developers. (n.d.). GaussianNB. scikit-learn documentation. https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.GaussianNB.html
Arifin, O., Saputra, K., & Fathoni, H. (2021). Implementation of data mining using Naïve Bayes classifier method in food crop prediction. Scientific Journal of Informatics, 8(1). https://doi.org/10.15294/sji.v8i1.28354
Badshah, A., et al. (2024). Crop classification and yield prediction using robust machine learning models for agricultural sustainability. IEEE Access, 12, 162799–162813. https://doi.org/10.1109/ACCESS.2024.3486653
Jabed, M. A., & Murad, M. A. A. (2024). Crop yield prediction in agriculture: A comprehensive review of machine learning and deep learning approaches, with insights for future research and sustainability. Heliyon, 10(24), e40836. https://doi.org/10.1016/j.heliyon.2024.e40836
Kuradusenge, M., Hitimana, E., Hanyurwimfura, D., Rukundo, P., Mtonga, K., Mukasine, A., Uwitonze, C., Ngabonziza, J., & Uwamahoro, A. (2023). Crop yield prediction using machine learning models: Case of Irish potato and maize. Agriculture, 13(1), 225. https://doi.org/10.3390/agriculture13010225
Kuswanto, T. J., Andriyani, W., Kartadie, R., Purnomosidi, B. D. P., & Kriestanto, D. (2025). Classification of oil palm fruit cross-sections using HSV feature extraction and Gaussian Naïve Bayes. Journal of Intelligent Systems and Software, 4(2). https://ejournal.utdi.ac.id/index.php/JISS/article/view/2310
Leukel, J., Zimpel, T., & Stumpe, C. (2023). Machine learning technology for early prediction of grain yield at the field scale: A systematic review. Computers and Electronics in Agriculture, 207, 107721. https://doi.org/10.1016/j.compag.2023.107721
Maukar, A. L., & Arrosyadi, L. Q. N. (2024). Implementation of long short-term memory network for predicting the cocoa crop yield. Jurnal Sistem Teknik Industri, 26(2), 159–179. https://doi.org/10.32734/jsti.v26i2.15359
Mohd Azmin, S. N. F. L., & Arbaiy, N. (2022). Soil classification based on machine learning for crop suggestion. Journal of Soft Computing and Data Mining, 3(2), 79–91. https://doi.org/10.30880/jscdm.2022.03.02.009
Morales, A., & Villalobos, F. J. (2023). Using machine learning for crop yield prediction in the past or the future. Frontiers in Plant Science, 14, 1128388. https://doi.org/10.3389/fpls.2023.1128388
Obahoundje, S., Tilahun, S. A., & Schmitter, P. (2026). Climate–yield interactions in West Africa: Machine learning insights for cocoa production in Ghana and Côte d’Ivoire. PLOS Climate, 5(7), e0000970. https://doi.org/10.1371/journal.pclm.0000970
Oktapiani, V., & Agustin, Y. H. (2024). Implementation of Naïve Bayes algorithm to predict food crop production results in Garut Regency. Jurnal Sistem Cerdas, 7(3), 366–376. https://doi.org/10.37396/jsc.v7i3.455
Olofintuyi, S. S., Olajubu, E. A., & Olanike, D. (2023). An ensemble deep learning approach for predicting cocoa yield. Heliyon, 9(4), e15245. https://doi.org/10.1016/j.heliyon.2023.e15245
Patil, P., Athavale, P., Bothara, M., Tambolkar, S., & More, A. (2023). Crop selection and yield prediction using machine learning approach. Current Agriculture Research Journal, 11(3). https://doi.org/10.12944/CARJ.11.3.26
Shawon, S. M., Ema, F. B., Mahi, A. K., Niha, F. L., & Zubair, H. T. (2025). Crop yield prediction using machine learning: An extensive and systematic literature review. Smart Agricultural Technology, 10, 100718. https://doi.org/10.1016/j.atech.2024.100718
van Klompenburg, T., Kassahun, A., & Catal, C. (2020). Crop yield prediction using machine learning: A systematic literature review. Computers and Electronics in Agriculture, 177, 105709. https://doi.org/10.1016/j.compag.2020.105709
