CropWheatSwinT: Foreground-Aware Image Preprocessing for Fine-Grained Wheat Variety Classification Using Swin Transformer

Dergi Sayısı

Yükleniyor...

Özet

Fine-grained wheat variety classification involving a large number of cultivars remains challenging because different varieties often exhibit highly similar morphological and textural characteristics. In this study, a dataset comprising 124 wheat varieties was used to systematically evaluate convolutional and Transformer-based architectures and investigate the contribution of foreground-aware preprocessing to wheat variety classification. DenseNet201, MobileNetV2, InceptionV3, and Swin Transformer Tiny (SwinT) were first evaluated as baseline architectures. SwinT achieved the highest baseline performance, with a weighted precision of 92.81% and a weighted F1-score of 91.91%, and was therefore selected for subsequent experiments. A foreground-aware preprocessing pipeline, termed CropWheatSwinT, was developed using foreground localization, safety-margin cropping, aspect-ratio-preserving resizing, and background-color padding to increase the proportion of informative kernel pixels while reducing irrelevant background information. CropWheatSwinT achieved a weighted precision of 93.92%, a weighted recall of 93.07%, and a weighted F1-score of 93.15%. At the class level, the Macro F1-score increased from 0.9196 +/- 0.0451 for SwinT to 0.9317 +/- 0.0437 for CropWheatSwinT, corresponding to a mean improvement of 0.0121. This improvement was statistically significant according to the Wilcoxon signed-rank test (W = 2075.0, p < 0.001), with a moderate effect size (Cohen's dz = 0.40). In contrast, the CA-, CBAM-, and RGB-Sobel-based variants achieved lower Macro F1-scores than SwinT, with significant negative differences relative to the baseline (p < 0.001). These findings suggest that foreground-focused preprocessing can provide a more effective improvement in fine-grained wheat variety classification than the investigated attention-and edge-enhancement modifications, highlighting the potential of data-centric strategies for improving Transformer-based agricultural image classification.

Açıklama

Anahtar kelimeler

Agricultural Artificial Intelligence, Foreground-Aware Preprocessing, Swin Transformer, Wheat Variety Classification

Bilim Dalları

Alıntı

WoS Q

Scopus Q

Cilt

16

Sayı

18

Başlangıç Sayfası

9057

Bitiş Sayfası

Yükleniyor...
Yükleniyor...
Yükleniyor...