Naive Bayes Classifier in Grading Carabao Mangoes
Main Article Content
Abstract
This study explores machine learning’s potential to classify carabao mangoes, a key Philippine export, into four grades based on size: A (large), B (medium), C (small), and R (reject). It introduces a Naïve Bayes classification model that uses image processing to extract features for grading. The goal is to create a consistent grading system to enhance export efficiency and benefit local farmers. The research aims to validate the Naïve Bayes model’s accuracy using size, weight, area, and spot ratio. It employs a quantitative, experimental design, manipulating image processing techniques to gauge their impact on classification accuracy. The results show the Naïve Bayes model achieved 95% accuracy, effectively distinguishing large and reject mangoes. It performed well for medium and small mangoes, with a 7% error rate between these classes. This indicates the model’s potential for quality control and sorting, though further refinement is needed to better differentiate between medium and small sizes. In conclusion, the study presents an image processing and Naïve Bayes-based method to classify carabao mangoes by size. The model’s high accuracy suggests its effectiveness and potential for automating mango classification, which could significantly aid the Philippine mango industry. Further performance assessment was conducted using a confusion matrix. The research highlights the promise of this approach for efficient mango grading.
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
Siano AB, Aya RAM. Technology to identify genuine ‘carabao’ mango develop by VSU. 2016. https://www.pcaarrd.dost.gov.ph/index.php/quick-information-dispatch-qid-articles/technology-to-identify-genuine-carabao-mango-developed-by-vsu
Ongkiko R. UPLB takes part in the advancement of the Philippine mango industry. 2015. https://www.ovcre.uplb.edu.ph/press/features/item/427-uplb-takes-part-in-the-advancement-of-the-philippine-mango-industry
Gonzalez G. What are the sweetest mangoes. 2022. https://sweetishhill.com/what-are-the-sweetest-mangoes/
Ardepolla JA, Cortez MJ, Escorpion AL, Adtoon JJ. Identification and classification of export quality carabao mangoes using image processing. InProceedings of the 6th International Conference on Bioinformatics Research and Applications 2019 Dec 19 (pp. 13-17). https://doi.org/10.1145/3383783.3383785
Tababa J. The Future of Mango Cultivation: Advancements and innovations. 2023. https://mb.com.ph/2023/7/4/the-future-of-mango-cultivation-advancements-and-innovations
Liu J, Kong X, Xia F, Bai X, Wang L, Qing Q, Lee I. Artificial intelligence in the 21st century. Ieee Access. 2018 Mar 26;6:34403-21. https://doi.org/10.1109/ACCESS.2018.2819688
Ramasubramanian K, Singh A, Ramasubramanian K, Singh A. Machine learning theory and practices. Machine Learning Using R. 2017:219-424. https://doi.org/10.1007/978-1-4842-4215-5_6
Swamynathan M. Mastering machine learning with python in six steps: A practical implementation guide to predictive data analytics using python. Manohar Swamynathan; 2017. http://aisel.aisnet.org/sjis%0Ahttp://aisel.aisnet.org/sjis/vol19/iss2/4
Sammut C, Webb GI. Encyclopedia of machine learning and data mining. Springer Publishing Company, Incorporated; 2017 Mar 15.
Taboga M. Bayesian Inference: Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. 2021. https://www.statlect.com/fundamentals-of-statistics/Bayesian-inference
Kaur N, Kaur R. Content Based Image Retrieval Using Color Mean with Feature Classification Using Naïve Bayes. International Journal of Advanced Research in Computer Science. 2016 Nov 1;7(6).
Oliver J. Philippine mango industry roadmap 2017-2020. Journal of Chemical Information and Modeling, 53(9), 1689–1699. 2018.
Department of Agriculture (DA). Philippine mango industry roadmap 2017-2022. 2022. https://www.da.gov.ph/wp-content/uploads/2019/06/Philippine-Mango-Industry-Roadmap-2017-2022.pdf
Pauly L, Sankar D. A new method for sorting and grading of mangos based on computer vision system. In2015 IEEE International Advance Computing Conference (IACC) 2015 Jun 12 (pp. 1191-1195). IEEE. https://doi.org/10.1109/IADCC.2015.7154891
Chaudhari D, Waghmare S. Machine vision based fruit classification and grading—a review. InICCCE 2021: Proceedings of the 4th International Conference on Communications and Cyber Physical Engineering 2022 May 16 (pp. 775-781). Singapore: Springer Nature Singapore. https://link.springer.com/chapter/10.1007/978-981-16-7985-8_81
Gill HS, Khehra BS. Fruit image classification using deep learning. Computers, Materials and Continua, 71(2), 5135–5150. 2022. https://doi.org/10.32604/cmc.2022.022809
Han J, Kamber M, Pei J. Data mining concepts and techniques third edition. University of Illinois at Urbana-Champaign Micheline Kamber Jian Pei Simon Fraser University. 2012.
Müller AC, Guido S. Introduction to machine learning with Python: a guide for data scientists. " O'Reilly Media, Inc."; 2016 Sep 26. https://doi.org/10.1007/978-3-030-36826-5_10
Navlani A. Naive Bayes classification tutorial using Scikit-learn. 2018. https://www.datacamp.com/tutorial/naive-bayes-scikit-learn
Kaviani P, Dhotre S. Short survey on naive bayes algorithm. International Journal of Advance Engineering and Research Development. 2017 Nov 11;4(11):607-11
Blum A. Machine learning theory. Carnegie Melon Universit, School of Computer Science. 2007;26. http://www.cs.cmu.edu/afs/cs/user/avrim/www/Talks/mlt.pdf
Kharbach M. What is quantitative research?. 2023. https://www.selectedreads.com/what-is-quantitative-research-according-to-creswell/
Sirisilla S. Experimental research design. 2023. https://www.enago.com/academy/experimental-research-design/
Aforge.NET. Aforge.NET framework. 2024. https://www.aforgenet.com/framework/
Agilandeeswari L, Prabukumar M, Goel S. Automatic grading system for mangoes using multiclass SVM classifier. International Journal of Pure and Applied Mathematics. 2017;116(23):515-23.
Nandi CS, Tudu B, Koley C. Machine vision based automatic fruit grading system using fuzzy algorithm. InProceedings of the 2014 International Conference on Control, Instrumentation, Energy and Communication (CIEC) 2014 Jan 31 (pp. 26-30). IEEE. https://doi.org/10.1109/CIEC.2014.6959043
Saed S. An introduction to data science. (2022). http://www.saedsayad.com/naive_bayesian.htm
Coates LT, Cooke D, Persley B, Beattie N, & Ridgway R. Postharvest diseases of horticultural product. Tropical Fruit, 2. 1995.
Brownlee J. How to calculate precision, recall, and f-measure for imbalanced classification. 2023. https://machinelearningmastery.com/precision-recall-and-f-measure-for-imbalanced-classification/
Supekar AD, Wakode M. Multi-parameter based mango grading using image processing and machine learning techniques. INFOCOMP Journal of Computer Science. 2020 Dec 8;19(2):175-87. http://177.105.60.18/index.php/infocomp/article/view/756
Kapila G, Vandana B, Khaitan A, Francis Avinash A, Ajay Kumar CH. Apple fruit classification and damage detection using pre-trained deep neural network as feature extractor. InInnovations in Electronics and Communication Engineering: Proceedings of the 9th ICIECE 2021 2022 Mar 13 (pp. 235-243). Singapore: Springer Singapore. https://doi.org/10.1007/978-981-16-8512-5_26
Abidin AA, Hamzah H, Endah M. Efficient Fruits Classification Using Convolutional Neural Network. International Journal of Informatics and Computation. 2021 Oct 29;3(1):1-9. https://doi.org/10.35842/ijicom.v3i1.31
Win O. Classification of mango fruit varieties using naive Bayes algorithm. I International Journal of Trend in Scientific Research and Development (IJTSRD). 2019;3(5):1475-8. https://doi.org/https://doi.org/10.31142/ijtsrd2667
Wenzhong L. Interfruit : Deep learning network for classifying fruit images. 2020. https://www.biorxiv.org/content/10.1101/2020.02.09.941039v2.abstract?%3Fcollection=
Miriti E. Classification of selected apple fruit varieties using Naive Bayes (Doctoral dissertation, University of Nairobi). 2016. http://hdl.handle.net/11295/97285
Nitin P. Confusion matrix in machine learning. 2023. https://www.geeksforgeeks.org/confusion-matrix-machine-learning/