Research Article

From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification

Volume: 32 Number: 4 October 12, 2026

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

Ethical Statement

Ethics committee approval was not required for this study because it used an image dataset and did not involve human participants, animals, or personally identifiable data.

References

  1. 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.
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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

Publication Date

October 12, 2026

Submission Date

May 7, 2026

Acceptance Date

June 23, 2026

Published in Issue

Year 2026 Volume: 32 Number: 4

APA
Tomak, Ö. (2026). From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification. Journal of Agricultural Sciences, 32(4), 1165-1187. https://doi.org/10.15832/ankutbd.1946462
AMA
1.Tomak Ö. From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification. J Agr Sci-Tarim Bili. 2026;32(4):1165-1187. doi:10.15832/ankutbd.1946462
Chicago
Tomak, Özgür. 2026. “From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification”. Journal of Agricultural Sciences 32 (4): 1165-87. https://doi.org/10.15832/ankutbd.1946462.
EndNote
Tomak Ö (October 1, 2026) From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification. Journal of Agricultural Sciences 32 4 1165–1187.
IEEE
[1]Ö. Tomak, “From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification”, J Agr Sci-Tarim Bili, vol. 32, no. 4, pp. 1165–1187, Oct. 2026, doi: 10.15832/ankutbd.1946462.
ISNAD
Tomak, Özgür. “From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification”. Journal of Agricultural Sciences 32/4 (October 1, 2026): 1165-1187. https://doi.org/10.15832/ankutbd.1946462.
JAMA
1.Tomak Ö. From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification. J Agr Sci-Tarim Bili. 2026;32:1165–1187.
MLA
Tomak, Özgür. “From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification”. Journal of Agricultural Sciences, vol. 32, no. 4, Oct. 2026, pp. 1165-87, doi:10.15832/ankutbd.1946462.
Vancouver
1.Özgür Tomak. From Handcrafted Descriptors to Deep Embeddings: A Comparative Study for Regional Hazelnut Image Classification. J Agr Sci-Tarim Bili. 2026 Oct. 1;32(4):1165-87. doi:10.15832/ankutbd.1946462

Journal of Agricultural Sciences is published as open access journal. All articles are published under the terms of the Creative Commons Attribution License (CC BY).