Search bioRxiv⌕ 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

AtNHR2A and AtNHR2B participate in unconventional protein secretion in response to environmental stress

The Arabidopsis thaliana nonhost resistance proteins 2A (AtNHR2A) and 2B (AtNHR2B) play crucial roles in plant immunity as the single mutants Atnhr2a and Atnhr2b and the double mutant Atnhr2bAtnhr2a are susceptible to the non-adapted pathogen Pseudomonas syringae pv. tabaci that is unable to infect wild-type Col-0 plants. The localization of fluorescent versions of AtNHR2A and AtNHR2B to compartments of the endomembrane system together with their interaction with secreted proteins suggested a function in endomembrane-mediated secretory processes participating in plant immunity. Comparative apoplastic proteomics analysis between wild type Col-0 and the double mutant Atnhr2bAtnhr2a after treatment P. syringae pv. tabaci, revealed that AtNHR2A and AtNHR2B are indeed required for the secretion of proteins containing N-terminal signal peptides that occurs through the conventional protein secretion pathway. In this work, we leveraged these apoplastic proteomics datasets to identify proteins lacking N-terminal signal peptide and expected to be secreted through unconventional secretion pathway(s). We discovered that AtNHR2A and AtNHR2B are also required for the secretion of proteins through an unconventional secretion pathway that, intriguingly, included proteins previously associated with abiotic stress. These findings led us to define the subcellular dynamics of AtNHR2A and AtNHR2B, and through co-localization analyses and the use of vesicle trafficking inhibitors, we uncovered their trafficking pathways transitioning through Golgi-dependent and Golgi-independent pathways to ultimately reach the central vacuole. Our findings suggest that AtNHR2A and AtNHR2B participate in a multivesicular bodies-vacuole-mediated unconventional secretion pathway that results in the release of proteins involved in plant responses to environmental stresses.

plant biology↗

Low-cost rhizotron imaging and zero-shot deep-learning resolve temporal, spatial, and genetic variation in grapevine rootstock root systems

Root system architecture shapes how grapevine rootstocks take up water and nutrients, yet roots remain the least phenotyped grapevine organ because they are hidden and hard to image. We present a low-cost phenotyping pipeline that pairs custom acrylic rhizotrons (about US$30 each) with a consumer flatbed scanner and BiRefNet, a general-purpose deep-learning model used without training on root images, followed by automated mask cleaning, skeleton-based trait extraction, and soil moisture mapping. We tested it on nine commercial rootstocks scanned 16 times over 42 days after transplanting (DAT), with half under a ten-day water deficit. From 1,108 images we extracted 21 whole-root, depth-resolved, and topological traits. Genotypes differed in nearly every trait and in how they changed over time. Heritability of size and branching traits peaked at 0.92-0.93 between 21 and 31 DAT and fell for width, depth, and convex hull once roots reached the rhizotron walls, defining the best measurement window. The image-derived soil moisture map accurately tracked the deficit and its recovery. Deficit plants shifted new root growth to deeper soil without growing less overall, and the substrate dried fastest around older and denser roots. Root brightness decreased with root age and local moisture, and transport segments (axes serving several tips) were brighter than terminal laterals in every genotype. Root system size was associated with stomatal conductance in well-watered plants, and stomatal recovery after re-watering correlated with new root growth. The pipeline turns simple hardware into a quantitative, time-resolved root phenotyping platform suitable for breeding.

plant biology↗

Engineering chromatin to encode transcriptional immune memory in Arabidopsis

Transcriptional memory enables organisms to respond more rapidly to recurrent stress, yet the underlying features of chromatin that contribute to this transcriptional recalibration remain poorly defined. Here we identify the genes displaying transcriptional memory in response to the bacterial immune elicitor, flg22, in Arabidopsis thaliana. In comparison to non-memory response genes, these memory genes show a preference for tissue-specific over uniform spatial expression patterning. The chromatin architecture of these genes in the resting state displays depletion of H3K4me3, elevation H3K27me3 and a subset are marked by H3K27me3-H3K4me3 bivalency. The H3K4me3 demethylase, JMJ14, is required for transcriptional memory, with JMJ14 occupancy enriched over memory gene loci. Upon priming, chromatin is reconfigured, with H3K4me3 levels increasing in a sustained manner at memory gene loci. To assess the function of this H3K4me3 accrual, we employ epigenome-engineering, observing that its targeted deposition at memory gene loci, including the WRKY29 locus, is sufficient to drive transcriptional memory and can endow plants with enhanced resistance to the bacterial pathogen, Pseudomonas syringae. Together, the findings demonstrate a causal role for H3K4me3 in transcriptional memory, under the regulation of JMJ14, and open the door for rational rewriting of chromatin to enhance organismal resilience.

plant biology↗