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

Molecular and phytochemical investigation of medicinal Rhododendron spp. in the Qinghai-Xizang Plateau: the botanical sources of the traditional Tibetan medicine "Tale"

The Qinghai-Xizang Plateau in China is a hotspot for Rhododendron species, with approximately 400 species distributed across the region. Various Rhododendron species in this area have been used medicinally in traditional Tibetan medicine for a long time and are collectively referred to as "Tale." Furthermore, "Tale" is classified as "Talegabao" or "Talenabao," depending on the species. These two types of medicine have similar but distinct properties, and "Talenabao" is usually used as an alternative to "Talegabao." However, differences in their phytochemical compositions and methods for discriminating between them have not been examined. To solve these problems limited the use of "Tale" medicines, 46 plant specimens belonging to nine Rhododendron species were collected from the Qinghai-Xizang Plateau. Molecular methods based on the internal transcribed spacer 2 (ITS2) region of nuclear DNA and psbA-trnH regions of chloroplast DNA were applied to these samples. In addition, 10 flavonoid compounds were quantitatively determined by HPLC. The results indicated psbA-trnH region successfully distinguished the species used as "Talegabao" or "Talenabao," whereas ITS2 failed to distinguish them because of its high degree of conservation. All 10 compounds were detected in all samples. However, the species used as "Talegabao" had more than twice the total content of the 10 flavonoid compounds observed in the species used as "Talenabao." Moreover, differences in the contents of certain compounds among species were detected, indicating potential chemical markers for the quality evaluation of "Tale" medicines. "Talegabao" is the first choice among "Tale" medicines. "Talenabao" can be used as an alternative to "Talegabao"; however, the appropriate dose requires further discussion in practical use. The psbA-trnH region is recommended as a DNA barcode for distinguishing between these two types of medicines.

plant biology↗

Accessory B Chromosomes Alter Chromatin Accessibility and Gene Expression in Maize Pollen Nuclei

B chromosomes in maize (Zea mays L.) are supernumerary, nonessential chromosomes that exhibit non-Mendelian inheritance through chromosome drive. During the second pollen mitosis, they undergo nondisjunction, resulting in their preferential transmission via B-containing sperm cells. Although their transmission mechanisms have been extensively characterized, the effects on chromatin organization and transcriptional regulation in gametophytic cells remain poorly understood. Here, we combined flow cytometric sorting of pollen nuclei with an assay for transposase-accessible chromatin sequencing (ATAC-seq) and RNA sequencing (RNA-seq) to investigate the impact of B chromosomes on chromatin accessibility and gene expression in mature maize pollen. Using pollen nuclei isolated from a maize inbred line B73 carrying zero and two B chromosomes, we generated high-purity datasets suitable for integrated chromatin and transcriptomic analyses. We identified extensive chromatin accessibility and transcriptional activity at B-chromosome loci. Importantly, the presence of B chromosomes was also associated with altered chromatin accessibility and gene expression on the standard A chromosomes, revealing regulatory effects extending beyond the B chromosome itself. Together, these findings contribute to a broader understanding of effects of selfish genetic elements in plants.

plant biology↗

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↗