Lightweight YOLOv8s-BD for small and dense agricultural pest detection using dynamic upsampling and bidirectional feature fusion.
Qiang Gao, Chongchong Shi, Yu Ji, Xiaoning Chen, Huan Wang, Mengke Cao, Meili Wang
Xi'an University School of Artificial Intelligence and Big Data, Xi'an, Shaanxi, China. · School of Computer Science, Xijing University, Xi'an, China.
Key points
From the paper's conclusion- 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.
Abstract
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% mAP@0.5 and 46.9% mAP@0.5: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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- YOLO-DCPG: a lightweight architecture with dual-channel pooling gated attention for intensive small-target agricultural pest detectionFrontiers in Plant Science · 2025
- MDAS-YOLO: A Lightweight Adaptive Framework for Multi-Scale and Dense Pest Detection in Apple OrchardsHorticulturae · 2025
- Lightweight Visual Detection Framework for Accurate Pepper Pest Detection Under Complex Field Conditions.Insects · 2026
- EP-YOLO: An Enhanced Lightweight Model for Micro-Pest Detection in Agricultural Light-Trap EnvironmentsSensors · 2026
- WSD-YOLO: A lightweight YOLO-based model with enhanced feature representation for maize pest detection.PloS one · 2026
- PestFG-RTDETR: an efficient pest detector for small targets in dense trap-captured scenesFrontiers in Computer Science · 2026