首页|期刊导航|西南农业学报|Bi-DS-YOLOv8:基于YOLOv8n的轻量化田间小麦麦穗检测模型

Bi-DS-YOLOv8:基于YOLOv8n的轻量化田间小麦麦穗检测模型OA

Bi-DS-YOLOv8:A light weight field wheat ear detection model based on YOLOv8n

中文摘要英文摘要

[目的]田间小麦麦穗检测面临目标遮挡、分辨率低和复杂环境导致的目标模糊等问题,现有模型检测精度不足.本研究基于YOLOv8n模型,针对上述问题提出针对性改进方案.[方法]在C2f模块中引入可变形注意力机制,增强模型对形变目标的特征提取能力;使用SPDConv替换骨干网络中所有跨步卷积层,避免细小目标信息的丢失;将PANet融合结构优化为BiFPN,实现多尺度特征的高效加权融合.为验证综合改进效果,设置对比试验:分别测试仅引入可变形注意力、仅替换SPDConv、仅优化BiF-PN的3种单一改进模型,与本研究的综合改进模型进行性能比较.[结果]综合改进模型在田间小麦麦穗检测任务上取得显著提升.在精度方面,改进后模型的mAP@0.5达到93.9%,较原始YOLOv8n提升1.1个百分点;mAP@0.95达到58.7%,提升1.3个百分点.召回率和准确率同步提升,同时模型仍保持较高的每秒检测帧数,满足实时检测需求.单一改进实验中,仅引入可变形注意力的模型mAP@0.5为92.4%,仅替换SPDConv为92.1%,仅优化BiFPN为92.7%,均低于综合改进模型(93.9%),验证了3种改进方法的协同增强效果.[结论]本研究提出的综合改进方案能有效解决田间小麦麦穗检测中的遮挡、低分辨率及目标模糊问题,检测精度显著优于原始YOLOv8n及单一改进模型.该成果可为田间作物表型监测、智能农业装备视觉系统的开发提供可参考的技术路径,对推动农业智能化监测终端的发展具有实际应用价值.

[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.

王青;张雨晨;梁敏;王智强;林宇;刘亚西

四川水利职业技术学院,成都 611231四川农业大学小麦研究所,成都 611130四川农业大学小麦研究所,成都 611130成都农业科技职业学院,成都 611130四川农业大学小麦研究所,成都 611130四川农业大学小麦研究所,成都 611130

农业科技

目标检测麦穗检测YOLOv8算法加权双向特征金字塔SPD

Object detectionWheat spike detectionYOLOv8 algorithmWeighted bidirectional feature pyramidSPD

《西南农业学报》 2026 (6)

1381-1391,11

国家重点研发计划项目(2023YFF1001503)国家自然科学基金项目(32401811、32501916)四川省自然科学基金项目(2024NSFSC1204)

10.16213/j.cnki.scjas.2026.6.021

评论