bit-Tech
Vol. 8 No. 3 (2026): bit-Tech

Spice Image Classification Based on Content-Based Image Retrieval

Meidy Fajar Wahyu (Universitas Pamulang)
Lely Panca Andriyanto (Universitas Pamulang)
Amin Hidayat (Universitas Pamulang)
Achmad Sehan (Universitas Pamulang)
Eko Sutono (Universitas Pamulang)



Article Info

Publish Date
10 Apr 2026

Abstract

Indonesia possesses exceptional spice biodiversity, yet public familiarity with the original visual characteristics of many spices is declining because of packaged processing, reduced direct exposure, and changing food-consumption patterns. This study develops RempahID, a web-based spice identification system that integrates Content-Based Image Retrieval (CBIR) with machine-learning classification. The study addresses the limited availability of Indonesian spice recognition systems that simultaneously provide class predictions and visually similar reference images for user verification. The system uses a dataset comprising ten major spice categories, including ginger, turmeric, galangal, aromatic ginger, cinnamon, cloves, nutmeg, coriander, candlenut, and star anise. Each image is preprocessed through resizing, normalization, noise reduction, and Otsu-based segmentation. Visual representation combines 24 Hue-Saturation-Value color histogram features, four Gray-Level Co-occurrence Matrix texture descriptors, and seven Hu Moment shape features, producing a 35-dimensional feature vector. Euclidean Distance is employed to rank visually similar database images, while K-Nearest Neighbors, Support Vector Machine, and Random Forest are compared for classification. Performance is evaluated using accuracy, precision, recall, and F1-score. The Support Vector Machine with a radial basis function kernel achieved the best result, with 92.1% accuracy, 0.91 precision, 0.92 recall, and a 0.91 F1-score. Retrieved reference images also supported transparent visual comparison rather than presenting an isolated predicted label alone. These findings demonstrate that integrating complementary color, texture, and shape descriptors within a CBIR framework provides an effective and interpretable approach for Indonesian spice identification.

Copyrights © 2026






Journal Info

Abbrev

bt

Publisher

Subject

Computer Science & IT

Description

The bit-Tech journal was developed with the aim of accommodating the scientific work of Lecturers and Students, both the results of scientific papers and research in the form of literature study results. It is hoped that this journal will increase the knowledge and exchange of scientific ...