PROCESSOR Jurnal Ilmiah Sistem Informasi, Teknologi Informasi dan Sistem Komputer
Vol 21 No 2 (2026): Jurnal Ilmiah Processor, Edisi Oktober 2026

Classification of Spice Images Using a Combination of HOG and Color Histogram Features with a Machine Learning Method

Aprilia Melani (Universitas Dinamika Bangsa)
M. Irwan Bustami (Universitas Dinamika Bangsa)
Desi Kisbianty (Universitas Dinamika Bangsa)



Article Info

Publish Date
31 Oct 2026

Abstract

Classification of object images with similar visual characteristics is one of the challenges in digital image processing. Spices have variations in shape, texture, and color that are relatively similar between types, making the visual identification process difficult. Therefore, an image processing and machine learning-based approach is needed to assist the classification process more objectively and consistently. The aim of this study is to develop various machine learning algorithms to classify spice images and compare their performance by combining Histogram of Oriented Gradients (HOG) and Color Histogram features. The data source used is Mendeley Data, which consists of eight classes of spices with an initial total of 4,134 images. To address class distribution imbalance, data augmentation was performed, resulting in 8,800 images. The research stages include image pre-processing, feature extraction, dimensionality reduction using Principal Component Analysis (PCA), as well as the development of classification models using Support Vector Machine (SVM), K-Nearest Neighbor (KNN), and XGBoost algorithms optimized with GridSearchCV. Model performance is evaluated based on accuracy, precision, recall, F1-score, and confusion matrix metrics. The test results showed that the SVM algorithm had the best performance with an accuracy rate of 88%, followed by XGBoost with 84% and KNN with 81%. These results indicate that the combination of HOG and Color Histogram features effectively represents the visual characteristics of spices, and the SVM algorithm is able to optimally handle high inter-class similarity.

Copyrights © 2026






Journal Info

Abbrev

processor

Publisher

Subject

Computer Science & IT

Description

Jurnal PROCESSOR merupakan Jurnal yang diterbitkan oleh STIKOM DINAMIKA BANGSA JAMBI. Jurnal ini terbit 2 kali dalam setahun yaitu pada bulan April dan Oktober. Misi dari Jurnal PROCESSOR adalah untuk menyebarluaskan, mengembangkan dan menfasilitasi hasil penelitian mengenai Ilmu bidang informatika, ...