Few-Shot Learning for Strawberry Variety Classification: A Prototypical Network-Based Approach

Classification of different types of strawberries is an essential problem in agriculture and quality control; however, it presents a challenge to traditional deep learning solutions because of the need for large-scale labeled datasets. In this research, a few-shot learning (FSL) model based on Prototypical Networks was applied to classify four different commercial types of strawberries (A, B, C, and Jumbo), utilizing the Mendeley Strawberry Grading Dataset that includes only 103 labeled images for training. A unique pipeline for training an FSL model was created through a combination of warm-up pre-training, differential learning rate strategy, and 4-way 5-shot episodic training; two backbones (ResNet50 and EfficientNet-B0) were compared under a 5-fold stratified cross-validation. While ResNet50 obtained test accuracy, macro F1-score, and Cohen's Kappa equal to 99.00%, 99.11%, and 98.62% respectively, EfficientNet-B0 achieved 98.00%, 98.33%, and 97.30%. Both models produced an AUC value of 99.80%. Interpretability analysis utilizing GradCAM++ showed that both networks focused on relevant areas of the fruits. This research proved that metric-based few-shot learning can be used successfully as an alternative solution to traditional deep learning methods in case of scarce datasets of agricultural images.

Authors

Institutions

Publication Details

Journal
Firat University Journal of Experimental and Computational Engineering
Published
2026-06-27
DOI
https://doi.org/10.62520/fujece.1925239
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-Shot Learning for Strawberry Variety Classification: A Prototypical Network-Based Approach

Hasan Ulutaş, Muhammet Emin Şahin, Mücella Özbay Karakuş, Orhan Er et al.
Firat University Journal of Experimental and Computational Engineering
Smart Agriculture and AI
article

Few-Shot Learning for Strawberry Variety Classification: A Prototypical Network-Based Approach

Hasan Ulutaş, Muhammet Emin Şahin, Mücella Özbay Karakuş, Orhan Er, Esra Yüce
article en

Abstract

Classification of different types of strawberries is an essential problem in agriculture and quality control; however, it presents a challenge to traditional deep learning solutions because of the need for large-scale labeled datasets. In this research, a few-shot learning (FSL) model based on Prototypical Networks was applied to classify four different commercial types of strawberries (A, B, C, and Jumbo), utilizing the Mendeley Strawberry Grading Dataset that includes only 103 labeled images for training. A unique pipeline for training an FSL model was created through a combination of warm-up pre-training, differential learning rate strategy, and 4-way 5-shot episodic training; two backbones (ResNet50 and EfficientNet-B0) were compared under a 5-fold stratified cross-validation. While ResNet50 obtained test accuracy, macro F1-score, and Cohen's Kappa equal to 99.00%, 99.11%, and 98.62% respectively, EfficientNet-B0 achieved 98.00%, 98.33%, and 97.30%. Both models produced an AUC value of 99.80%. Interpretability analysis utilizing GradCAM++ showed that both networks focused on relevant areas of the fruits. This research proved that metric-based few-shot learning can be used successfully as an alternative solution to traditional deep learning methods in case of scarce datasets of agricultural images.

Firat University Journal of Experimental and Computational EngineeringVol. 5(2)
Izmir University (TR), Yozgat Bozok Üniversitesi (TR), Bakırçay Üniversitesi
Zero hunger
Openalex Percentile: Top 8%
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.