Lightweight Structure and Attention Fusion for In-Field Crop Pest and Disease Detection
Open Access
Abstract
In agricultural production, plant diseases and pests are among the major threats to crop yield and quality. Existing agricultural pest and disease identification methods have problems such as small target scales, complex background environments, and unbalanced sample distributions. This paper proposes a lightweight improved target detection model, YOLOv5s-LiteAttn. Based on YOLOv5s, the model introduces GhostConv and Depthwise Conv to reduce the number of parameters and computational complexity, and it combines CBAM and Coordinate Attention mechanisms to enhance the network’s feature representation capability. Experimental results show that, compared with the basic YOLOv5s model, the number of parameters of the improved model is reduced by 22.75%, and the computational load is reduced by 16.77%. At the same time, mAP@0.5–0.95 is increased by 3.3 percentage points, and recall is improved by 1.1 percentage points. In addition, the inference speed increases from 121 FPS to 142 FPS at an input resolution of 640 × 640, further confirming that the proposed model achieves a favorable trade-off between accuracy and efficiency. The average precision of YOLOv5s-LiteAttn is 97.1%, which outperforms the existing mainstream lightweight detection models. Moreover, an independent test set containing 4328 newly collected field images was established to evaluate generalization and practical applicability. Despite a slight performance decrease compared with the validation results, the model maintained an mAP@0.5–0.95 of 95.8%, significantly outperforming the baseline model, thereby confirming its robustness and cross-domain adaptability. These results confirm that the model has high precision and is lightweight, making it effective for the detection of agricultural diseases and pests.Keywords
Funding Information
- National Foreign Experts Program (H20240506)
- Sichuan Haiju High-Level Talents Introduction Project (2025HJRC0048)
- National Agricultural Science and Technology Innovation System Sichuan Characteristic Vegetable Innovation Team Project (SCCXTD-2024-22)
- Key R&D Program Project of Xinjiang Province (2023B02020)
This publication has 31 references indexed in Scilit:
- GMSR: Gradient-integrated mamba for spectral reconstruction from RGB imagesNeural Networks, 2025
- Weight-based ensemble method for crop pest identificationEcological Informatics, 2024
- Field detection of pests based on adaptive feature fusion and evolutionary neural architecture searchComputers and Electronics in Agriculture, 2024
- Overview of knowledge reasoning for knowledge graphNeurocomputing, 2024
- Vegetable disease detection using an improved YOLOv8 algorithm in the greenhouse plant environmentScientific Reports, 2024
- Multi-task learning model for agricultural pest detection from crop-plant imagery: A Bayesian approachComputers and Electronics in Agriculture, 2024
- GhostNet: More Features From Cheap Operations2020
- Crop losses to pestsThe Journal of Agricultural Science, 2005
- Support-Vector NetworksMachine Learning, 1995
- A logical calculus of the ideas immanent in nervous activityBulletin of Mathematical Biology, 1943