bioRxivPlant BiologyPreprint
Multi-Scale Contextual Attention for Robust Crop and Pest Image Classification
Muhammad MajidiD, Hassan TariqiD, Imran MumtaziD, Hanan Aljuaid
Abstract
Image-based crop and pest recognition is considered useful for reducing the delay and cost of manual field scouting, therefore supporting timely intervention in precision-agriculture workflows. However, the real field imagery remains challenging due to the cluttered backgrounds, occlusions, illumination changes, and strong scale variation that are frequently observed across crops. The symptoms are often small or low-contrast, and pests may be partially hidden, which reduces the reliability when the setting is outside controlled environments. A unified multi-class crop-pest/condition recognition framework is presented, where a ResNet-50 backbone is utilized and enhanced with a Multi-Scale Contextual Attention (MSCA) module. The novelty is mainly considered to be achieved through the integration of explicit multi-scale contextual aggregation with lightweight joint channel and spatial attention by means of residual fusion, while the empirical evaluation was kept controlled under a fixed and reproducible protocol. A curated dataset of 21,404 field-style images covering 15 crop and pest/condition classes was compiled, and a leakage-aware fixed split with a held-out test set was adopted to support reproducibility. Augmentation was applied only to the training subset to improve robustness, although the validation data was not augmented in the same manner. On the held-out test set, balanced performance was achieved by the proposed approach, with about 0.93 accuracy and a macro-F1 score close to 0.94 being obtained, while established baselines such as EfficientNet, Vision Transformer, and attention-based CNN models were outperformed under identical evaluation settings. Controlled ablations were used to isolate the contribution of MSCA and augmentation under the same training configuration. These results indicate that lightweight multi-scale contextual attention is effective for crop and pest recognition under realistic field conditions, although some visually similar classes remained difficult.
- assay: imaging
- research focus: cell type annotation
- research focus: clustering
- approach: deep learning
- approach: transformer / foundation model
- approach: contrastive learning
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- The development of methodology and techniques for crop disease identification
N. S. Tiwari, J. Richmond·bioRxiv·Jul 28, 2019
- Multistage AI Crop Inspection and Segmentation Framework (MACISF)
Prithul Joshi, Aryaman Nagrath·bioRxiv·Oct 13, 2026
- A pilot computer-vision model trained to identify slide-mounted scale insect pests from the family Rhizoecidae
Azizah Conerly, Benjamin Rosen, Scott A. Schneider·bioRxiv·Oct 22, 2026
- A multiregional image-text dataset and benchmark for vision-language modeling of plant diseases
Trang V Nguyen, Khang Nguyen Quoc, … Phuong D. Dao·bioRxiv·Jul 4, 2026
- On Using Transfer Learning For Plant Disease Detection
- Using UAV-Imagery for Leaf Segmentation in Diseased Plants via Mask-Based Data Augmentation and Extension of Leaf-based Phenotyping Parameters
A. A. Barreto Alcantara, L. Reifenrath, … A.-K. Mahlein·bioRxiv·Dec 19, 2022