bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.04.24.720764

Multi-Scale Contextual Attention for Robust Crop and Pest Image Classification

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Majid, M., Tariq, H., Mumtaz, I., Kashif, M.. 2026-04-28. Multi-Scale Contextual Attention for Robust Crop and Pest Image Classification. https://doi.org/10.64898/2026.04.24.720764

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Melanoidins Suppress Cucumber and Tomato Diseases Incited by Pathogens that are Oomycetes, Bacteria and a Virus

We recently reported that solutions of the nitrogenous compounds melanoidins (M), that are formed during the final stages of the Maillard Reaction, are inducers of plant resistance (Elad et al. 2026). M promoted immunity and induced disease resistance through an effect on the transcriptome, primarily through the salicylic acid pathway. Here we tested the effect of M on plant diseases that are caused by Oomycetes, bacteria and a tobamovirus. Drench and spray of M suppressed Pythium aphanidermatum damping off in cucumber, cucumber downy mildew (Pseudoperonospera cubensis), tomato late blight (Phytophthora infestans), bacterial speck (Pseudomonas syringae pv. tomato), bacterial canker (Clavibacter michiganensis subsp. michiganensis) and the Tobamovirus Tomato brown rugose fruit virus (ToBRFV) in tomato. In various experiments control was achieved by concentrations of 0.03 and 0.1% and on older and younger leaves and even in long term experiments where the M was applied for ca 11 weeks. It can be concluded that the disease resistance inducer M can suppress soilborne and foliar diseases that are caused by Oomycetes, bacteria and a virus of the genus Tobamovirus, in addition to the fungal pathogen Botrytis cinerea reported earlier.

plant biology↗

Expansion and Comprehensive Evaluation of the Peacock Eye Disease Management (PedMan) System across Olive Cultivars Differing in Susceptibility to Venturia oleaginea

Peacock eye disease, caused by Venturia oleaginea , is an important foliar disease of olive that is primarily managed through fungicide applications. Integrating host resistance into disease-warning systems could improve spray timing and reduce unnecessary fungicide use. PedMan (Peacock eye disease Manager) was previously developed and validated for highly susceptible olive cultivars. The objectives of the present study were to expand PedMan to cultivars differing in susceptibility to V. oleaginea and to evaluate the expanded system under commercial grove conditions. A sensitivity analysis of the rainfall and temperature criteria used for highly susceptible cultivars was conducted to establish criteria for moderately susceptible and moderately resistant cultivars. The rainfall threshold of [≥]15 mm was retained, whereas the temperature range triggering an infection alert was narrowed from 12-18 {degrees}C for highly susceptible cultivars to 13-17 {degrees}C for moderately susceptible and 14-16 {degrees}C for moderately resistant cultivars. The expanded system was subsequently evaluated in 33 field trials and observations under natural infection conditions. PedMan recommendations were classified as correct or incorrect based on statistical comparisons of leaf abscission between fungicide-treated and untreated trees. Overall, 30 of 33 recommendations were correct, resulting in an accuracy of 90.9%. Sensitivity was 87.0%, while specificity and positive predictive value were both 100%. These results demonstrate that incorporating cultivar susceptibility into PedMan broadens its applicability and provides reliable cultivar-specific fungicide recommendations. The system has potential to reduce unnecessary fungicide applications while maintaining effective management of peacock eye disease across olive cultivars differing in susceptibility.

plant biology↗

Large seed size accompanying GmSDP1 suppression is linked to cellular remodeling and phytohormone regulation

Soybean (Glycine max) seeds contain approximately 20% oil and 40% protein and are important for food, feed, and biofuel. Improving soybean productivity and seed quality requires optimizing carbon partitioning during seed development. Previously, seed-specific suppression of the lipase-encoding gene Sugar-Dependent 1 (SDP1) increased seed oil content by approximately 5% while slightly reducing raffinose family oligosaccharides without compromising protein content. Seed-specific SDP1 suppression also increased seed size by 18-25% without affecting seed number, resulting in greater seed biomass per plant. To determine the developmental basis of the increased seed size, we investigated the cellular and molecular mechanisms underlying this phenotype. Microscopy and biochemical analyses showed that larger seeds were associated with increased seed cell size and enhanced lignocellulosic cell wall accumulation. Temporal biochemical and transcriptomic analyses further revealed coordinated changes in hormone homeostasis, including altered levels of abscisic acid, 12-oxo-phytodienoic acid, and jasmonoyl-isoleucine, together with differential expression of F-box and RING/U-box family genes. The results indicate that the enhanced seed size resulting from SDP1 suppression is associated with coordinated changes in cellular development, cell wall accumulation, hormone homeostasis, and regulation of gene expression during seed development. Developmental and metabolic changes associated with the increased seed size phenotype support SDP1 manipulation as a potential strategy for improving soybean seed yield and quality.

plant biology↗