西南农业学报2026,Vol.39Issue(6):1381-1391,11.DOI:10.16213/j.cnki.scjas.2026.6.021
Bi-DS-YOLOv8:基于YOLOv8n的轻量化田间小麦麦穗检测模型
Bi-DS-YOLOv8:A light weight field wheat ear detection model based on YOLOv8n
摘要
Abstract
[Objective]Field wheat spike detection faces challenges such as target occlusion,low resolution,and target blurring caused by complex field environments,which lead to insufficient detection accuracy of existing models.To address these issues,the present study propo-ses a targeted improvement scheme based on the YOLOv8n model.[Method]First,a deformable attention mechanism was introduced into the C2f module to enhance the model's ability to extract features of deformed targets.Second,SPDConv was used to replace all strided convolu-tional layers in the backbone network to avoid the loss of small-target information.Finally,the PANet feature fusion structure was optimized to BiFPN to achieve efficient weighted fusion of multi-scale features.To verify the effectiveness of the comprehensive improvement,comparative experiments were conducted:three single-improvement models(introducing only deformable attention,replacing only SPDConv and optimizing only BiFPN)were compared with the proposed comprehensive improved model in terms of detection performance.[Result]The comprehen-sive improved model achieved significant performance gains in field wheat spike detection.In terms of accuracy,the mAP@0.5 of the im-proved model reached 93.9%,a 1.1 percentage point increase compared with the original YOLOv8n;the mAP@0.95 reached 58.7%,a 1.3 percentage point improvement.Both precision and recall were improved simultaneously,while the model maintained a high frames per sec-ond(FPS),satisfying the real-time detection requirement.In the single-improvement experiments,the mAP@0.5 values of the models with only deformable attention,only SPDConv replacement,and only BiFPN optimization were 92.4%,92.1%and 92.7%,respectively-all low-er than the 93.9%of the comprehensive improved model,confirming the synergistic enhancement effect of the three improvement methods.[Conclusion]The comprehensive improvement scheme proposed in the study effectively solves the problems of occlusion,low resolution,and target blurring in field wheat spike detection,and its detection accuracy is significantly better than that of the original YOLOv8n and single-improvement models.The achievement provides a reference technical pathway for field crop phenotyping monitoring and the development of vision systems for intelligent agricultural equipment,and holds practical application value for promoting the development of intelligent agricul-tural monitoring terminals.关键词
目标检测/麦穗检测/YOLOv8算法/加权双向特征金字塔/SPDKey words
Object detection/Wheat spike detection/YOLOv8 algorithm/Weighted bidirectional feature pyramid/SPD分类
农业科技引用本文复制引用
王青,张雨晨,梁敏,王智强,林宇,刘亚西..Bi-DS-YOLOv8:基于YOLOv8n的轻量化田间小麦麦穗检测模型[J].西南农业学报,2026,39(6):1381-1391,11.基金项目
国家重点研发计划项目(2023YFF1001503) (2023YFF1001503)
国家自然科学基金项目(32401811、32501916) (32401811、32501916)
四川省自然科学基金项目(2024NSFSC1204) (2024NSFSC1204)