Comparative Study of CNN and Vision Transformers on Indonesian Tradisional Cakes Classification
International Journal of Advances in Artificial Intelligence and Machine Learning · 13.07.2025 · 2 (2) · 86-94
DOI: 10.58723/ijaaiml.v2i2.405 ↗Kurz gefasst
Fachartikel in der Zeitschrift International Journal of Advances in Artificial Intelligence and Machine Learning, online erschienen am 13.07.2025. Verfasst von Dedi Trisnawarman und 3 weiteren Autor:innen. Die Arbeit wurde bisher 2-mal zitiert (Crossref). Der Volltext ist frei zugänglich (Open Access, CC BY-SA 4.0).
Abstract (Originalsprache)
Background of study: Food image classification is a challenging task in computer vision, particularly when dealing with traditional food items that exhibit subtle visual variations. While Convolutional Neural Networks (CNNs) have long been the standard for image recognition, their limitation in capturing long-range dependencies has led to the emergence of Vision Transformers (ViTs). In this context, the classification of Indonesian traditional cakes offers a culturally rich yet complex problem for automated image recognition systems.Aims and scope of paper: This study aims to conduct a comparative analysis between EfficientNet-B0 (CNN-based) and ViT-B/16 (Transformer-based) architectures in classifying eight categories of Indonesian traditional cakes. The research evaluates not only classification accuracy but also the strengths and limitations of each model in handling fine-grained visual distinctions.
Methods
Both models were fine-tuned using the “Kue Indonesia” dataset from Kaggle. The methodology includes image preprocessing, model training with consistent parameters, and evaluation using accuracy, precision, recall, and F1-score. A confusion matrix was also used to visualize misclassifications and analyze per-class performance.
Result
ViT-B/16 achieved slightly higher accuracy (96.25%) compared to EfficientNet-B0 (95.62%). ViT performed better in classes with subtle variations, such as kue lapis and kue dadar gulung, while EfficientNet-B0 showed superior efficiency and high accuracy on visually distinct cakes.
Conclusion
Both CNN and ViT models demonstrate strong performance in traditional food classification. ViT is more robust in fine-grained visual analysis, whereas EfficientNet-B0 is preferable for resource-constrained environments. This study highlights the role of AI in supporting digital preservation of culinary heritage.
Zitieren
APA
Trisnawarman, D., Supriyanton, A. A., Mawardi, V. C., & Okengwu, U. A. (2025). Comparative Study of CNN and Vision Transformers on Indonesian Tradisional Cakes Classification. International Journal of Advances in Artificial Intelligence and Machine Learning, 2(2), 86-94. https://doi.org/10.58723/ijaaiml.v2i2.405
Vancouver
Trisnawarman D, Supriyanton AA, Mawardi VC, Okengwu UA. Comparative Study of CNN and Vision Transformers on Indonesian Tradisional Cakes Classification. International Journal of Advances in Artificial Intelligence and Machine Learning. 2025;2(2):86-94. doi:10.58723/ijaaiml.v2i2.405
BibTeX
@article{Trisnawarman2025,
author = {Trisnawarman, Dedi and Supriyanton, Adolf Asih and Mawardi, Viny Christanti and Okengwu, Ugochi A},
title = {Comparative Study of CNN and Vision Transformers on Indonesian Tradisional Cakes Classification},
journal = {International Journal of Advances in Artificial Intelligence and Machine Learning},
year = {2025},
volume = {2},
number = {2},
pages = {86--94},
doi = {10.58723/ijaaiml.v2i2.405}
}
EUVIMED