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

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.

Authors

Institutions

Publication Details

Journal
Journal of Artificial Intelligence and Software Engineering (J-AISE)
Published
2025-03-26
DOI
https://doi.org/10.30811/jaise.v5i1.6536
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Andika Saputra, Widyastuti Andriyani
Journal of Artificial Intelligence and Software Engineering (J-AISE)
Smart Agriculture and AI
article

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

Andika Saputra, Widyastuti Andriyani
article en

Abstract

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.

Journal of Artificial Intelligence and Software Engineering (J-AISE)Vol. 5(1)
Universitas Teknologi Indonesia (ID)
Openalex Percentile: Top 96%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.