A Hybrid CNN-Based Attention Model for Weed Recognition Under Variable Field Conditions with Edge Device Simulations
Authors:
- 14 July 2026
- journal article
- Published by Inventive Research Organization in Journal of Innovative Image Processing
- Vol. 8 (3) , 938-954
Abstract
Biotic stress significantly affects agricultural productivity, and weed infestation remains a major factor limiting crop yields and resource-use efficiency. Traditional weed management tools and practices are less effective and labor-intensive at scale. Therefore, automated and intelligent weed identification and classification technologies are required to manage weed infestation. Recent deep learning studies have shown promising results for weed classification. Still, many deep learning architectures have large parameter counts and require high computational power, limiting their deployment in real-world agricultural environments. In this study, a novel lightweight deep learning model, Lightweight Hybrid Channel-Spatial Attention (L-HCSA), is presented for crop-weed image classification in a real-world agricultural environment. L-HCSA is built on a pre-trained MobileNetV2 backbone, enhanced with a hybrid channel-spatial attention module to handle background noise and enhance the discriminative power of weed features. The CWD30 database is used to benchmark the L-HCSA model. An ablation study was performed on five configurations, confirming that the HCSA attention block is the primary contributor to performance. The HCSA attention block adds 0.41 million parameters to the MobileNetV2 baseline (2.63 million parameters) and improves accuracy by 2.18%. The L-HCSA is compared against nine baseline models, including MobileNetV2, MobileNetV3-L, DenseNet-121, ResNet-50, ResNet-101, EfficientNetV2-M, EfficientNet-Lite, TinyViT, and EdgeNeXt. The L-HCSA model has only 3.04 million trainable parameters (12.1 MB) and achieves 77.34% accuracy with a ROC-AUC of 0.9955. A pairwise Wilcoxon signed-rank test with Bonferroni correction and Cohen’s d effect size was performed for statistical evaluation. The L-HCSA model is evaluated for real-time performance, meeting the >=10 FPS threshold in an embedded hardware simulation while maintaining competitive accuracy, achieving 22.0 FPS on the Google Coral Edge TPU.Keywords
This publication has 23 references indexed in Scilit:
- Advancing precision agriculture: A comparative analysis of YOLOv8 for multi-class weed detection in cotton cultivationArtificial Intelligence in Agriculture, 2025
- CWD30: A new benchmark dataset for crop weed recognition in precision agricultureComputers and Electronics in Agriculture, 2024
- Biotic Stress Management2023
- EdgeNeXt: Efficiently Amalgamated CNN-Transformer Architecture for Mobile Vision Applications2023
- TinyViT: Fast Pretraining Distillation for Small Vision Transformers2022
- EfficientNet-eLite: Extremely Lightweight and Efficient CNN Models for Edge Devices by Network Candidate SearchJournal of Signal Processing Systems, 2022
- Indian Agriculture Towards 20302022
- Performance of deep learning models for classifying and detecting common weeds in corn and soybean production systemsComputers and Electronics in Agriculture, 2021
- ResNet 502021
- Assessment of yield and economic losses in agriculture due to weeds in IndiaCrop Protection, 2018