基于改进YOLOv8的轻量化棉种外观品质识别方法OA
A Lightweight Method for Cotton Seed Appearance Quality Recognition Based on Improved YOLOv8n
在棉种外观品质检测领域,当前广泛采用的识别模型因参数量大、计算成本高,难以在资源受限的边缘设备上部署.为此,文章提出了一种基于改进 YOLOv8n 的轻量化解决方案.在主干网络中引入 EMA 注意力机制,使模型捕捉与品质相关视觉特性的能力得到了显著提升.将 C2f 模块中的 Bottleneck 层替换为 StarBlock 轻量化模块,减少了模型参数量,提升了计算效率.在颈部应用双向特征金字塔(BiFPN)架构,实现了更为高效且自适应性强的多尺度特征融合.实验结果表明,改进后的YOLOv8n平均精度达到92.7%,较原始版本提升1个百分点.计算复杂度降低0.9 GFLOPs,模型大小缩减 37.2%.与其他目标检测算法相比,该方案在保持高精度的同时,展现出更优的计算效率和实时性能.
In the field of cotton seed appearance quality inspection,the widely adopted detection models are difficult to deploy on resource-constrained edge devices due to their large parameter count and high computational costs.To address this,this paper proposes a lightweight solution based on an improved YOLOv8n.By introducing the EMA Attention Mechanism into the backbone network,the model's ability to capture quality-related visual features is significantly enhanced.The Bottleneck layer in the C2f module is replaced with the lightweight StarBlock module,reducing the model's parameter count and improving computational efficiency.A Bidirectional Feature Pyramid Network(BiFPN)architecture is applied in the neck region,achieving more efficient and adaptive multi-scale feature fusion.Experimental results show that the improved YOLOv8n achieves an average precision of 92.7%,a 1%increase over the original version.The computational complexity is reduced by 0.9 GFLOPs,and the model size is reduced by 37.2%.Compared to other object detection models,this solution demonstrates superior computational efficiency and real-time performance while maintaining high accuracy.
曹翱;宋其江
东北林业大学 计算机与控制工程学院,黑龙江 哈尔滨 150040东北林业大学 计算机与控制工程学院,黑龙江 哈尔滨 150040
信息技术与安全科学
棉种外观品质检测YOLOv8注意力机制轻量化模型
cotton seed appearance quality inspectionYOLOv8Attention Mechanismlightweight model
《现代信息科技》 2026 (8)
83-89,7
国家自然科学基金(32202147)
评论