From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification
Abstract
Automated regional hazelnut image classification is relevant for agricultural traceability, origin aware sorting, and decision support in food processing systems. This study presents a unified comparative benchmark for three class hazelnut image classification using Van, Ordu, and Giresun categories. The experimental framework integrates classical handcrafted descriptors, deep transfer learning models, and reduced space hybrid classical and quantum compatible classifiers. In the classical branch, HOG and RGB color histogram features were combined and evaluated using KNN and SVM based classifiers. In the deep learning branch, ResNet50 and EfficientNetB0 were trained through a two stage transfer learning strategy, and Grad-CAM was employed to provide qualitative interpretability. In the hybrid branch, 1280 dimensional embeddings extracted from the GAP layer of the best EfficientNetB0 model were compressed into low dimensional spaces for reduced space SVC and QSVC experiments. Under the present image level split protocol, the strongest handcrafted baseline, PCA + SVM, achieved 98.90% accuracy and 0.9888 macro-F1, while ResNet50 reached 99.45% accuracy and 0.9945 macro-F1. EfficientNetB0 achieved 100% test accuracy, while the reduced space classical SVC trained on compressed EfficientNetB0 embeddings attained 99.63% accuracy and 0.9961 macro F1 on the full test set. Under the fair subset protocol, classical SVC achieved 98.33% accuracy, whereas the best QSVC configuration reached 90.83% accuracy. This result should be interpreted as a strong within dataset benchmark rather than definitive evidence of object level or deployment level generalization. Grad-CAM visualizations further suggested that the deep models focused primarily on semantically meaningful hazelnut regions rather than on background patterns. The findings indicate that representation quality is a central factor in this task, while the reported near ceiling performance should be interpreted in light of the image level partitioning strategy
Keywords
- Hazelnut Image Classification
- Transfer Learning
- Grad-CAM
- Reduced Space Classification
- Quantum Support Vector Classifier
Ethical Statement
References
- Abadi M, Barham P, Chen J, Chen Z, Davis A, Dean J & Zheng X (2016). TensorFlow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16) (pp. 265-283). USENIX Association.
- Alam M, Kundu S, Topaloglu R O & Ghosh S (2021). Quantum-classical hybrid machine learning for image classification (ICCAD special session paper). In 2021 IEEE/ACM International Conference on Computer-Aided Design (ICCAD) (pp. 1-7). IEEE. https://doi.org/10.1109/ICCAD51958.2021.9643516
- Dalal N & Triggs B (2005). Histograms of oriented gradients for human detection. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05) (Vol. 1, pp. 886-893). IEEE. https://doi.org/10.1109/CVPR.2005.177
- Dönmez E, Kılıçarslan S & Diker A (2024). Classification of hazelnut varieties based on BigTransfer deep learning model. European Food Research and Technology 250: 1433-1442. https://doi.org/10.1007/s00217-024-04468-1
- Geirhos R, Jacobsen J H, Michaelis C, Zemel R, Brendel W, Bethge M & Wichmann F A (2020). Shortcut learning in deep neural networks. Nature Machine Intelligence 2(11): 665-673. https://doi.org/10.1038/s42256-020-00257-z
- Gencturk B, Arsoy S, Taspinar Y S, Cinar I, Kursun R, Yasin E T & Koklu M (2024). Detection of hazelnut varieties and development of mobile application with CNN data fusion feature reduction-based models. European Food Research and Technology 250: 97-110. https://doi.org/10.1007/s00217-023-04369-9
- Georgiou T, Liu Y, Chen W & Lew M S (2020). A survey of traditional and deep learning-based feature descriptors for high dimensional data in computer vision. International Journal of Multimedia Information Retrieval 9(3): 135-170. https://doi.org/10.1007/s13735-019-00183 w
- Giraudo A, Calvini R, Orlandi G, Ulrici A, Geobaldo F & Savorani F (2018). Development of an automated method for the identification of defective hazelnuts based on RGB https://doi.org/10.1016/j.foodcont.2018.07.018 image analysis and colourgrams. Food Control 94: 233-240.
Details
Primary Language
English
Subjects
Artificial Intelligence (Other)
Journal Section
Research Article
Authors
Özgür Tomak
*
0000-0003-2993-6913
Türkiye
Publication Date
October 12, 2026
Submission Date
May 7, 2026
Acceptance Date
June 23, 2026
Published in Issue
Year 2026 Volume: 32 Number: 4