Indonesian Journal of Artificial Intelligence and Data Mining
Vol. 9 No. 2 (2026): July 2026

Implementation of EfficientNet-B0-Based Convolutional Neural Network Architecture for Classification of Digital Images of Traditional Spices

Muhamad Rafi Raihan Akbar (Telkom University, Bandung, Indonesia)
Bedy Purnama (Telkom University, Bandung, Indonesia)



Article Info

Publish Date
16 Jul 2026

Abstract

Traditional Indonesian spice identification has historically depended on human expertise, a process prone to subjective error and limited scalability. This study evaluates the use of an EfficientNet-B0-based Convolutional Neural Network, incorporating transfer learning and fine-tuning, to automatically classify digital images representing 31 categories of traditional Indonesian spices. The Indonesian Spices Dataset, containing 6,510 images from Kaggle, was divided into 80% training, 10% validation, and 10% testing sets. Data augmentation techniques, such as random horizontal flipping and rotation, were implemented to enhance model generalization and reduce overfitting. The model was trained for over 20 epochs using the AdamW optimizer with cosine learning rate scheduling. Results indicate that the proposed model achieved a test accuracy of 97%, with macro average precision, recall, and F1-score also at 97%. The minimal difference between training and validation accuracy demonstrates robust generalization to unseen data. The model is computationally efficient and suitable for deployment on edge devices, supporting applications in agribusiness for automated spice identification, quality control, and education

Copyrights © 2026






Journal Info

Abbrev

IJAIDM

Publisher

Subject

Computer Science & IT

Description

Indonesian Journal of Artificial Intelligence and Data Mining (IJAIDM) is an electronic periodical publication published by Puzzle Research Data Technology (Predatech) Faculty of Science and Technology UIN Sultan Syarif Kasim Riau, Indonesia. IJAIDM provides online media to publish scientific ...