Fruit Image Classification Using Naive Bayes Algorithm with Histogram of Oriented Gradients (HOG) Feature Extraction

Andika Jodhi Saputra, Widyastuti Andriyani

Sari


A classification system using Naïve Bayes algorithm was developed to distinguish between fresh and rotten fruits, specifically apples, bananas and oranges. This research utilized a dataset consisting of 13,599 images and applied the Histogram of Oriented Gradients (HOG) technique for feature extraction, followed by model training and evaluation. The results showed that the Naïve Bayes algorithm achieved an accuracy of 87%, with the highest precision in the fresh apple class (0.9792) and the highest recall in the rotten apple class (0.9843). The rotten banana class showed a balanced performance with the highest F1-score of 0.9085. Although there were some misclassifications, especially in the rotten citrus fruit category, this study shows that image processing techniques have great potential and are reliable for assessing fruit quality based on visual characteristics.

Teks Lengkap:

PDF

Referensi


F. N. Cahya, R. Pebrianto, and T. A. M, “Klasifikasi Buah Segar dan Busuk Menggunakan Ekstraksi Fitur Hu-Moment , Haralick dan Histogram,†IJCIT (Indonesian J. Comput. Inf. Technol., vol. 6, no. 1, 2021, doi: 10.31294/ijcit.v6i1.10052.

M. Muhathir, M. H. Santoso, and R. Muliono, “Analysis Naïve Bayes In Classifying Fruit by Utilizing Hog Feature Extraction,†J. INFORMATICS Telecommun. Eng., vol. 4, no. 1, 2020, doi: 10.31289/jite.v4i1.3860.

A. Taner et al., “Multiclass Apple Varieties Classification Using Machine Learning with Histogram of Oriented Gradient and Color Moments,†Appl. Sci., vol. 13, no. 13, 2023, doi: 10.3390/app13137682.

A. Oikonomidis, C. Catal, and A. Kassahun, “Hybrid Deep Learning-based Models for Crop Yield Prediction,†Appl. Artif. Intell., vol. 36, no. 1, 2022, doi: 10.1080/08839514.2022.2031823.

M. Haikal, M. Martanto, and U. Hayati, “ANALISIS SENTIMEN TERHADAP PENGGUNAAN APLIKASI GAME ONLINE PUBG MOBILE MENGGUNAKAN ALGORITMA NAIVE BAYES,†JATI (Jurnal Mhs. Tek. Inform., vol. 7, no. 6, 2024, doi: 10.36040/jati.v7i6.8174.

N. Husin, “Komparasi Algoritma Random Forest, Naïve Bayes, dan Bert Untuk Multi-Class Classification Pada Artikel Cable News Network (CNN),†J. Esensi Infokom J. Esensi Sist. Inf. dan Sist. Komput., vol. 7, no. 1, 2023, doi: 10.55886/infokom.v7i1.608.

D. Saini, T. Chand, D. K. Chouhan, and M. Prakash, “A comparative analysis of automatic classification and grading methods for knee osteoarthritis focussing on X-ray images,†2021. doi: 10.1016/j.bbe.2021.03.002.

I. Ifmalinda, A. Andasuryani, and L. Shaufana, “IDENTIFIKASI BENTUK BUAH ALPUKAT (Persea americana Mill.) DENGAN ANALISIS CITRA DIGITAL,†J. Teknol. Pertan., vol. 23, no. 3, 2022, doi: 10.21776/ub.jtp.2022.023.03.5.

F. A.-I. A. Putra, A. G. Sulaksono, L. T. Utomo, and A. R. Khamdani, “Klasifikasi Buah dan Sayur Menggunakan Fitur Ekstraksi HOG dan Metode KNN,†J. Inform. Polinema, vol. 10, no. 1, 2023, doi: 10.33795/jip.v10i1.1433.

F. T. Anggraeny, B. Rahmat, and S. P. Pratama, “Deteksi Ikan Dengan Menggunakan Algoritma Histogram of Oriented Gradients,†Inform. Mulawarman J. Ilm. Ilmu Komput., vol. 15, no. 2, 2020, doi: 10.30872/jim.v15i2.4648.

H. M. Ahmed, “Texture Analysis and Classification using Local Binary Patterns and Statistical Features,†pp. 79–88, 2024.

M. Mukhopadhyay, A. Dey, A. Ghosh, and R. N. Shaw, “Facial Emotion Recognition Based on Textural Pattern and Histogram of Oriented Gradient,†in Communications in Computer and Information Science, 2023. doi: 10.1007/978-3-031-25088-0_9.

S. Safriadi, M. Mahlil, H. T. Hidayat, M. Nasir, and N. Anwar, “The classification of emotion based on human voice by using Mel Frequency Cepstrum Coefficient (MFCC) and Naive Bayes method,†AIP Conference Proceedings, vol. 2811, p. 080005, Jan. 2023, doi: 10.1063/5.0117958.

M. Afriansyah, J. Saputra, Y. Sa’adati, and Valian Yoga Pudya Ardhana, “Optimasi Algoritma Nai?ve Bayes Untuk Klasifikasi Buah Apel Berdasarkan Fitur Warna RGB,†Bull. Comput. Sci. Res., vol. 3, no. 3, pp. 242–249, 2023, doi: 10.47065/bulletincsr.v3i3.251.

R. I. Borman and M. Wati, “Penerapan Data Maining Dalam Klasifikasi Data Anggota Kopdit Sejahtera Bandarlampung Dengan Algoritma Naïve Bayes,†J. Ilm. Fak. Ilmu Komput., vol. 09, no. 01, pp. 25–34, 2020.

S. Bakheet and A. Al-Hamadi, “A framework for instantaneous driver drowsiness detection based on improved HOG features and naïve bayesian classification,†Brain Sci., vol. 11, no. 2, pp. 1–15, 2021, doi: 10.3390/brainsci11020240.

T. Goksu, Z. Kaya, and S. Sahmoud, “Classification of Fruit Images as Fresh and Rotten Using Convolutional Neural Networks,†in 2023 3rd International Conference on Computing and Information Technology, ICCIT 2023, 2023. doi: 10.1109/ICCIT58132.2023.10273897.




DOI: http://dx.doi.org/10.30811/jaise.v5i1.6536

Refbacks

  • Saat ini tidak ada refbacks.


Indexing :

Creative Commons License
Journal of Artificial Intelligence and Software Engineering (JAISE) licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.