Machine Learning-Based Naïve Bayes Classification of Pineapple Productivity: A Case Study in North Sumatra
DOI:
https://doi.org/10.29407/intensif.v9i2.24034Keywords:
Pineapple, Classification, Naïve Bayes, Machine Learning, North SumatraAbstract
Background: Pineapple is a major agricultural commodity in Indonesia, especially in North Sumatra, where increasing demand calls for improved productivity. Although machine learning has been widely applied in agriculture, most prior studies on pineapple focus on fruit quality assessment or employ complex, less interpretable models, leaving a gap in lightweight and practical approaches for productivity classification. Objective: This study aims to evaluate the novelty and effectiveness of the Naïve Bayes algorithm in classifying pineapple productivity based on agronomic characteristics, addressing the underexplored use of this method for productivity prediction in pineapple cultivation. Methods: A descriptive quantitative approach was applied using secondary data from the Labuhan Batu Agricultural Extension Center, consisting of 52 records with seven agronomic parameters. The dataset was divided into 31 training and 21 testing samples, and the Naïve Bayes model was implemented using RapidMiner 7.1, with performance measured by accuracy. The small dataset size is recognized as a limitation that may affect generalizability. Results: The Naïve Bayes model achieved an accuracy of 86.67%, effectively distinguishing between productive and unproductive pineapples and demonstrating its suitability for agricultural classification tasks even with limited data. Conclusion: This study highlights the novelty and practicality of applying Naïve Bayes for pineapple productivity classification, offering an interpretable and computationally efficient alternative to more complex models. Future work should address dataset limitations by incorporating larger and more diverse samples and exploring hybrid or ensemble approaches to further enhance performance and support precision agriculture.
Downloads
References
[1] S. K. Tripathi, A. S. Raghav, and S. K. Singh, “Machine learning in agriculture: A comprehensive updated review,” Computers and Electronics in Agriculture, vol. 202, p. 107437, 2023, doi: https://doi.org/10.3390/s21113758
[2] U. Shafi, R. Mumtaz, J. García-Nieto, S. A. Hassan, S. A. R. Zaidi, and N. Iqbal, “Precision Agriculture Techniques and Practices: From Considerations to Applications,” Sensors, vol. 19, no. 17, p. 3796, Sep. 2019, doi: https://doi.org/10.3390/s19173796
[3] D. P. Akurati, P. Devarahatti, S. K. Konakandla, C. S. S. Satwik, and B. Singh, “Transforming Agriculture with Machine Learning: A Review of Applications and Future Prospects,” in 2024 Parul International Conference on Engineering and Technology (PICET), IEEE, May 2024, pp. 1–5. doi: https://doi.org/10.1109/picet60765.2024.10716047
[4] FAO, "Agricultural production statistics 2010–2023," FAOSTAT Analytical Briefs, No. 96. Rome, 2024. Diakses: 29 Juli 2024. [Daring]. Tersedia di: https://openknowledge.fao.org/handle/20.500.14283/cd3755en
[5] Pusat Data dan Sistem Informasi Pertanian, "Outlook Komoditas Pertanian Hortikultura Nanas," Sekretariat Jenderal Kementerian Pertanian, 2023. Diakses: 30 Juli 2024. [Daring]. Tersedia di: https://satudata.pertanian.go.id/assets/docs/publikasi/Outlook_Nenas_2023.pdf
[6] N. Gandhi and L. J. Armstrong, “A review of the application of data mining techniques for decision making in agriculture,” in 2016 2nd International Conference on Contemporary Computing and Informatics (IC3I), IEEE, Dec. 2016, pp. 1–6. doi: https://doi.org/10.1109/ic3i.2016.7917925
[7] T. van Klompenburg, A. Kassahun, and C. Catal, “Crop yield prediction using machine learning: A systematic literature review,” Computers and Electronics in Agriculture, vol. 177, p. 105709, Oct. 2020, doi: https://doi.org/10.1016/j.compag.2020.105709
[8] R. G. de Luna et al., “A Machine Learning-Based Approach for Accurate Size Classification of Pineapple (Ananas Comosus),” in TENCON 2023 - 2023 IEEE Region 10 Conference (TENCON), IEEE, Oct. 2023, pp. 1034–1039. doi: https://doi.org/10.1109/tencon58879.2023.10322473
[9] R. Wan Nurazwin Syazwani, H. Muhammad Asraf, M. A. Megat Syahirul Amin, and K. A. Nur Dalila, “Automated image identification, detection and fruit counting of top-view pineapple crown using machine learning,” Alexandria Engineering Journal, vol. 61, no. 2, pp. 1265–1276, Feb. 2022, doi: https://doi.org/10.1016/j.aej.2021.06.053
[10] D. Vernanda, Z. Nurizati, and A. Hidayat, “Klasifikasi Buah Nanas Menggunakan Metode Naïve Bayes,” Melek IT : Information Technology Journal, vol. 10, no. 2, pp. 111–120, Dec. 2024, doi: https://doi.org/10.30742/melekitjournal.v10i2.355
[11] M. Waqas, A. Naseem, U. W. Humphries, P. T. Hlaing, P. Dechpichai, and A. Wangwongchai, “Applications of machine learning and deep learning in agriculture: A comprehensive review,” Green Technologies and Sustainability, vol. 3, no. 3, p. 100199, Jul. 2025, doi: https://doi.org/10.1016/j.grets.2025.100199
[12] H. Afzal et al., “Incorporating soil information with machine learning for crop recommendation to improve agricultural output,” Scientific Reports, vol. 15, no. 1, Mar. 2025, doi: https://doi.org/10.1038/s41598-025-88676-z
[13] Ö. Şimşek, “Harvesting sustainability: Innovations and practices in modern agriculture,” Green Technologies and Sustainability, vol. 3, no. 3, p. 100192, Jul. 2025, doi: https://doi.org/10.1016/j.grets.2025.10019
[14] M. Mohd Ali, N. Hashim, S. Abd Aziz, and O. Lasekan, “Pineapple (Ananas comosus): A comprehensive review of nutritional values, volatile compounds, health benefits, and potential food products,” Food Research International, vol. 137, p. 109675, Nov. 2020, doi: https://doi.org/10.1016/j.foodres.2020.109675
[15] D. Munjal, L. Singh, M. Pandey, and S. Lakra, “A Systematic Review on the Detection and Classification of Plant Diseases Using Machine Learning,” International Journal of Software Innovation, vol. 11, no. 1, pp. 1–25, Dec. 2022, doi: https://doi.org/10.4018/ijsi.315657
[16] E. Im, J. Lee, S. An, and G. Gim, “A Study on Prediction Performance Measurement of Automated Machine Learning,” International Journal of Software Innovation, vol. 11, no. 1, pp. 1–11, Dec. 2022, doi: https://doi.org/10.4018/ijsi.315656
[17] W. D. Septiani and M. Marlina, “Comparison Of Decision Tree, Naïve Bayes, And Neural Network Algorithm For Early Detection Of Diabetes,” Jurnal Pilar Nusa Mandiri, vol. 17, no. 1, pp. 73–78, Mar. 2021, doi: https://doi.org/10.33480/pilar.v17i1.2213
[18] B. Brumen, I. Rozman, and A. Černezel, “Observing a Naïve Bayes Classifier’s Performance on Multiple Datasets,” in Lecture Notes in Computer Science, Cham: Springer International Publishing, 2014, pp. 263–275. doi: https://doi.org/10.1007/978-3-319-10933-6_20
[19] Y. Lian, J. Hao, W. Zeng, and Q. Luo, “A survey of visual insight mining: Connecting data and insights via visualization,” Visual Informatics, p. 100271, Aug. 2025, doi: https://doi.org/10.1016/j.visinf.2025.100271
[20] J. Botero-Valencia et al., “Machine Learning in Sustainable Agriculture: Systematic Review and Research Perspectives,” Agriculture, vol. 15, no. 4, p. 377, Feb. 2025, doi: https://doi.org/10.3390/agriculture15040377
[21] M. Ahsan, M. Mahmud, P. Saha, K. Gupta, and Z. Siddique, “Effect of Data Scaling Methods on Machine Learning Algorithms and Model Performance,” Technologies, vol. 9, no. 3, p. 52, Jul. 2021, doi: https://doi.org/10.3390/technologies9030052
[22] M. U. Maheswari and R. Ramani, “A Comparative Study of Agricultural Crop Yield Prediction Using Machine Learning Techniques,” in 2023 9th International Conference on Advanced Computing and Communication Systems (ICACCS), IEEE, Mar. 2023, pp. 1428–1433. doi: https://doi.org/10.1109/icaccs57279.2023.10112854
[23] A. Urtubia, J. R. Pérez-Correa, A. Soto, and P. Pszczólkowski, “Using data mining techniques to predict industrial wine problem fermentations,” Food Control, vol. 18, no. 12, pp. 1512–1517, Dec. 2007, doi: https://doi.org/10.1016/j.foodcont.2006.09.010
[24] J.-W. Chang and Y.-K. Kim, “An Efficient Clustering Method for High-Dimensional Data Mining,” in Lecture Notes in Computer Science, Berlin, Heidelberg: Springer Berlin Heidelberg, 2004, pp. 276–285. doi: https://doi.org/10.1007/978-3-540-28645-5_28
R. M. Redwan, A. Saidin, and S. V. Kumar, “The draft genome of MD-2 pineapple using hybrid error correction of long reads,” DNA Research, vol. 23, no. 5, pp. 427–439, Jul. 2016, doi: https://doi.org/10.1093/dnares/dsw026
[26] G. Shanthakumari, A. Vignesh, R. Harish, and R. Roshan Karthick, “Advancements in Smart Agriculture: A Comprehensive Review of Machine Learning and IOT Approaches,” in 2024 International Conference on Communication, Computing and Internet of Things (IC3IoT), IEEE, Apr. 2024, pp. 1–6. doi: https://doi.org/10.1109/ic3iot60841.2024.10550268
[27] I. H. Sarker, “Machine Learning: Algorithms, Real-World Applications and Research Directions,” SN Computer Science, vol. 2, no. 3, Mar. 2021, doi: https://doi.org/10.1007/s42979-021-00592-x
[28] K. Yeturu, “Machine learning algorithms, applications, and practices in data science,” in Handbook of Statistics, Elsevier, 2020, pp. 81–206. Accessed: Aug. 31, 2025. [Online]. doi:: https://doi.org/10.1016/bs.host.2020.01.002
[29] L. Benos, A. C. Tagarakis, G. Dolias, R. Berruto, D. Kateris, and D. Bochtis, “Machine Learning in Agriculture: A Comprehensive Updated Review,” Sensors, vol. 21, no. 11, p. 3758, May 2021, doi: https://doi.org/10.3390/s21113758
[30] T. Ayoub Shaikh, T. Rasool, and F. Rasheed Lone, “Towards leveraging the role of machine learning and artificial intelligence in precision agriculture and smart farming,” Computers and Electronics in Agriculture, vol. 198, p. 107119, Jul. 2022, doi: https://doi.org/10.1016/j.compag.2022.107119
[31] A. Kamilaris and F. X. Prenafeta-Boldú, “Deep learning in agriculture: A survey,” Computers and Electronics in Agriculture, vol. 147, pp. 70–90, Apr. 2018, doi: https://doi.org/10.1016/j.compag.2018.02.016
[32] A. Kamilaris, A. Kartakoullis, and F. X. Prenafeta-Boldú, “A review on the practice of big data analysis in agriculture,” Computers and Electronics in Agriculture, vol. 143, pp. 23–37, Dec. 2017, doi: https://doi.org/10.1016/j.compag.2017.09.037
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Suendri, Rima Aprilia, Ramadiani Br. Rambe, Nur Haryani Zakaria

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Copyright on any article is retained by the author(s).
- The author grants the journal, the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
- The article and any associated published material is distributed under the Creative Commons Attribution-ShareAlike 4.0 International License