LAViT: Class-Aware Vision Transformer with Learnable Attention for Pest Recognition in Agricultural Fields

ArticleAçık Erişim

Özet

Insect pests pose a significant threat to agricultural productivity, making early and accurate identification essential for effective pest management. This study proposes a novel deep learning-based classification framework for multi-class pest recognition from field images. The proposed approach enhances discriminative region representation by integrating a patch embedding module, a Vision Transformer backbone, and a learnable spatial attention mask. This hybrid design enables the model to focus on critical visual cues without requiring segmentation-based preprocessing. The attention mask, learned via convolutional layers, is pooled and directly applied to Transformer-encoded patch tokens to refine spatial feature emphasis. Positional embeddings are further employed to preserve spatial context within the tokenized image representation. Experimental evaluations conducted on publicly available pest datasets with 5, 9, and 12 classes demonstrate the effectiveness and robustness of the proposed framework. The model achieves accuracies of 99.67%, 99.52%, and 97.00% on the Pest5, Pest9, and Pest12 datasets, respectively, indicating strong generalization across varying classification complexities. To enhance model transparency and reliability, visual interpretability is provided through Grad-CAM and attention heatmap visualizations that reveal the model’s focus regions. Additionally, t-SNE-based feature visualization illustrates clear separability in the learned embedding space. The proposed framework shows strong potential for practical deployment in smart agriculture and precision pest monitoring systems. ©️ 2026 The Author(s).

Anahtar Kelimeler

RDL Kalıcı Bağlantı (PID)
https://rdlopen.rawdatalibrary.net/r/ebyu/10243Resmi atıflarda kullanılan kalıcı adres
DOI
https://doi.org/10.15832/ankutbd.1739676Yayıncı resmi DOI adresi
Tam Kayıt
AlanDeğerDil
dc.contributor.authorTastimur, Canan
dc.contributor.authorKaya, Volkan
dc.date.accessioned2026-10-18T20:25:29.658090685Z
dc.date.available2026-10-18T20:25:29.658090685Z
dc.date.issued2026
dc.description.abstractInsect pests pose a significant threat to agricultural productivity, making early and accurate identification essential for effective pest management. This study proposes a novel deep learning-based classification framework for multi-class pest recognition from field images. The proposed approach enhances discriminative region representation by integrating a patch embedding module, a Vision Transformer backbone, and a learnable spatial attention mask. This hybrid design enables the model to focus on critical visual cues without requiring segmentation-based preprocessing. The attention mask, learned via convolutional layers, is pooled and directly applied to Transformer-encoded patch tokens to refine spatial feature emphasis. Positional embeddings are further employed to preserve spatial context within the tokenized image representation. Experimental evaluations conducted on publicly available pest datasets with 5, 9, and 12 classes demonstrate the effectiveness and robustness of the proposed framework. The model achieves accuracies of 99.67%, 99.52%, and 97.00% on the Pest5, Pest9, and Pest12 datasets, respectively, indicating strong generalization across varying classification complexities. To enhance model transparency and reliability, visual interpretability is provided through Grad-CAM and attention heatmap visualizations that reveal the model’s focus regions. Additionally, t-SNE-based feature visualization illustrates clear separability in the learned embedding space. The proposed framework shows strong potential for practical deployment in smart agriculture and precision pest monitoring systems. ©️ 2026 The Author(s).
dc.identifier.doi10.15832/ankutbd.1739676
dc.identifier.eissn2148-9297
dc.identifier.endpage497
dc.identifier.issn1300-7580
dc.identifier.issue2
dc.identifier.scopus2-s2.0-105034279248
dc.identifier.startpage474
dc.identifier.urihttps://rdlopen.rawdatalibrary.net/r/ebyu/10243
dc.identifier.volume32
dc.identifier.wosWOS:001735058800009
dc.language.isoen
dc.publisherAnkara University
dc.relation.ispartofTarim Bilimleri Dergisi
dc.rightsinfo:eu-repo/semantics/openAccess
dc.subjectClass-Aware Feature Learning
dc.subjectExplainable AI
dc.subjectLearnable Attention
dc.subjectPest Recognition
dc.subjectSmart Agriculture
dc.subjectVision Transformer
dc.titleLAViT: Class-Aware Vision Transformer with Learnable Attention for Pest Recognition in Agricultural Fields
dc.typeArticle
dspace.entity.typePublication
rdl.citation.scopus0
rdl.citation.trdizin0
rdl.citation.wos0
rdl.departmentERZİNCAN BİNALİ YILDIRIM ÜNİVERSİTESİ
rdl.oa.statusgold
rdl.source.indexSCOPUS
rdl.source.indexWOS
rdl.source.indexTRDIZIN
rdl.wos.indexScience Citation Index Expanded (SCI-EXPANDED)