Classification of Turkish hazelnut (Corylus colurna L.) varieties: a comparative study of YOLOv8 and fine-tuned vision transformer

dc.contributor.authorUnal, Yavuz
dc.contributor.authorYasin, Elham Tahsin
dc.contributor.authorCengel, Talha Alperen
dc.contributor.authorKoklu, Murat
dc.date.accessioned2026-04-25T14:19:50Z
dc.date.available2026-04-25T14:19:50Z
dc.date.issued2026
dc.departmentSinop Üniversitesi
dc.description.abstractHazelnut is a shrubby plant well-suited to the temperate and humid climate of the Black Sea region, particularly known for its mild winters. Turkey plays a critical role in global hazelnut production. Hazelnuts are not only an essential agricultural product for the country's economy but are also highly valued for their nutritional content, being particularly rich in healthy oils and proteins, and their associated health benefits. The classification of different hazelnut species using modern deep learning techniques aimed to automatically distinguish between eight commonly cultivated hazelnut types: caklidak, damat, devedisi, sivri, karafindik, palaz, tombul, and yagli. This study employed both YOLOv8 classification models and Vision Transformer (ViT) with fine-tuning to classify a dataset comprising 2,722 labeled images of these hazelnut types. Various configurations of YOLOv8 models were tested, specifically YOLOv8n-cls, YOLOv8s-cls, YOLOv8m-cls, YOLOv8l-cls, and YOLOv8x-cls, alongside ViT-Base/16 with systematic fine-tuning optimization. The results demonstrate that the fine-tuned Vision Transformer achieved the highest classification accuracy of 99.75%, establishing a new state-of-the-art performance for this dataset. Among YOLOv8 models, YOLOv8s-cls and YOLOv8l-cls achieved 99.25% accuracy, while the lightest model, YOLOv8n-cls, recorded 97.38% accuracy. The superior performance of ViT-Base/16 (99.75%) represents a significant advancement over previous studies, demonstrating the effectiveness of transformer-based architectures with transfer learning for agricultural image classification. These findings highlight the strong potential for reliable use in real-world agricultural applications, with the Vision Transformer providing near-perfect classification accuracy. This study shows that advanced computer vision, particularly transformer-based models with fine-tuning, can effectively automate the identification and quality control of agricultural products, enhancing efficiency in food processing and supply chains.
dc.identifier.doi10.1007/s11694-025-03936-w
dc.identifier.issn2193-4126
dc.identifier.issn2193-4134
dc.identifier.orcid0000-0002-2737-2360
dc.identifier.orcid0000-0002-3007-679X
dc.identifier.orcid0000-0003-3246-6000
dc.identifier.scopus2-s2.0-105027165880
dc.identifier.scopusqualityQ1
dc.identifier.urihttps://doi.org/10.1007/s11694-025-03936-w
dc.identifier.urihttps://hdl.handle.net/11486/8216
dc.identifier.wosWOS:001658728500001
dc.identifier.wosqualityQ2
dc.indekslendigikaynakWeb of Science
dc.indekslendigikaynakScopus
dc.language.isoen
dc.publisherSpringer
dc.relation.ispartofJournal of Food Measurement and Characterization
dc.relation.publicationcategoryMakale - Uluslararası Hakemli Dergi - Kurum Öğretim Elemanı
dc.rightsinfo:eu-repo/semantics/closedAccess
dc.snmzKA_WOS_20260420
dc.subjectHazelnut species
dc.subjectVision transformer
dc.subjectTurkish hazelnut
dc.subjectYOLOv8, fine tuning
dc.titleClassification of Turkish hazelnut (Corylus colurna L.) varieties: a comparative study of YOLOv8 and fine-tuned vision transformer
dc.typeArticle

Dosyalar