A multi-scale attention framework for weed image classification in sustainable agriculture
Accurate weed classification is essential for precision agriculture, as weed infestation adversely affects crop productivity and often necessitates extensive herbicide application. However, reliably identifying weed species under complex field conditions remains challenging because of variations in plant morphology, background clutter, illumination, and inter-class visual similarity. To address these challenges, this study proposes MSFA-AttenRes50, a multi-scale attention-based deep learning framework for automated multiclass weed image classification. The proposed architecture integrates a ResNet50 backbone with a hierarchical Multi-Scale Feature Aggregation (MSFA) module, followed by sequential channel- and spatial-attention refinement. Unlike approaches that apply feature aggregation and attention independently, the proposed framework refines attention on aggregated multi-scale representations, enabling the network to emphasize discriminative channel-wise and spatial information while preserving complementary features across scales. We evaluate the framework on the publicly available DeepWeeds dataset, which comprises eight invasive weed species and a negative class, using a stratified 80:10:10 training, validation, and test split. Experimental evaluation on an independent test set of 1,751 images demonstrates that MSFA-AttenRes50 achieves an overall classification accuracy of 99.03%, outperforming the evaluated baseline architectures. The model also achieves a recall of 1.00 for the Rubber vine class, indicating highly effective recognition of this category. Furthermore, ablation experiments show the complementary contributions of multi-scale feature aggregation and dual attention, with the integrated architecture outperforming its individual components. These findings highlight the effectiveness of combining hierarchical multi-scale feature learning with sequential attention refinement for fine-grained weed classification and provide a foundation for further research into intelligent, data-driven weed management systems.
Authors
- Ateeq Ur Rehman (ORCID: https://orcid.org/0000-0001-5721-0867)
- Ahmad Almogren (ORCID: https://orcid.org/0000-0002-8253-9709)
- S. K. Gupta
- Ruchika Bhuria
- Asma Abdulkareem Al-Huqail (ORCID: https://orcid.org/0000-0001-9886-8235)
- Dominic Majak Deng Adol (ORCID: https://orcid.org/0009-0000-0061-3470)
- Munir Ahmad
Institutions
- University of Juba (SS)
- Korea University (KR)
- King Saud University (SA)
- Western Caspian University (AZ)
- Azerbaijan International University (AZ)
- Graphic Era University (IN)
- Chitkara University (IN)
- Saveetha University (IN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-12-03
- DOI
- https://doi.org/10.1038/s41598-026-82109-1
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00