Lightweight YOLOv8s-BD for small and dense agricultural pest detection using dynamic upsampling and bidirectional feature fusion
Real-time and accurate detection of crop pests in field environments is critical for intelligent plant protection and ensuring food security. However, practical farmland settings introduce substantial challenges, including small and densely distributed targets, high inter-class morphological similarity, complex backgrounds, and a long-tailed class distribution. To address these issues, an improved lightweight detection model named YOLOv8s-BD is proposed based on the YOLOv8s architecture. The Pest24 dataset is first augmented using a Generative Adversarial Network (FastGAN) to mitigate data scarcity for minority categories and enrich intra-class feature diversity. Subsequently, a dynamic upsampling module (DySample) is incorporated to enhance high-resolution feature representation for small-scale pests, and the original feature pyramid is replaced with a weighted bidirectional feature pyramid (BiFPN) to optimize multi-scale feature fusion. Experimental results demonstrate that YOLOv8s-BD achieves 72.3% [email protected] and 46.9% [email protected]:0.95 on the Pest24 dataset, with only 7.4 million parameters and an inference speed of 1.9 ms per image, demonstrating superior accuracy and efficiency over mainstream YOLO series models. Both visualization results and error analysis confirm that the proposed model can accurately localize pest distribution regions and effectively reduce misclassification rate among similar species. The model thus offers a practical and efficient solution for multi-class pest detection in real-world agricultural scenarios.
Authors
- Meili Wang (ORCID: https://orcid.org/0000-0001-7901-1789)
- Mengke Cao (ORCID: https://orcid.org/0009-0004-7318-4207)
- Huan Wang (ORCID: https://orcid.org/0000-0002-3162-2350)
- Chongchong Shi
- Xiaoning Chen
- Yu Ji
- Qiang Gao
Institutions
- Northwest University (US)
- North West Agriculture and Forestry University (CN)
- Xijing University (CN)
- Artificial Intelligence in Medicine (Canada) (CA)
Publication Details
- Journal
- Frontiers in Plant Science
- Published
- 2026-09-14
- DOI
- https://doi.org/10.3389/fpls.2026.1913220
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00