基于改进YOLO v7的花生表面缺陷智能检测方法
CSTR:
作者:
作者单位:

山西农业大学,山西 晋中 030031

作者简介:

通讯作者:

田博轩(2003—),男,山西农业大学在读本科生。E-mail:13111064042@163.com

中图分类号:

基金项目:


Intelligent defect detection on peanut surfaces based on improved YOLO v7
Author:
Affiliation:

Shanxi Agricultural University, Jinzhong, Shanxi 030031, China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    目的 针对花生表面瑕疵多态性强、传统视觉检测方法精度不足的问题,提出一种基于改进YOLO v7的智能缺陷检测方法。方法 通过融合跨通道注意力机制强化局部特征响应,构建双向特征金字塔增强多尺度缺陷融合,并引入角度约束损失函数优化不规则目标定位,结合工业级样本库与数据增强策略优化模型。结果 改进模型在测试集上的精确率为0.917、召回率为0.903、Pt@0.5为0.948、Pt@[0.5:0.95]为0.705,推理速度为74.166帧/s,性能显著优于其他模型。消融试验表明,多尺度注意力融合模块对细粒度特征识别贡献度最高。结论 该方法兼顾检测精度与实时性,有效解决了表面纹理复杂、缺陷尺度差异大等难题,实现了花生表面缺陷的智能检测。

    Abstract:

    Objective To propose an intelligent defect detection method based on an improved YOLO v7 model for the challenges of strong polymorphism in peanut surface defects and insufficient accuracy of traditional visual inspection methods.Methods A cross-channel attention mechanism is integrated to enhance local feature response. Then, a bidirectional feature pyramid is constructed to improve multi-scale defect fusion. Additionally, an angle constraint loss function is introduced to optimize irregular object localization. Furthermore, the model is optimized using an industrial-grade sample library combined with data augmentation strategies.Results The improved model achieves a precision of 0.917, a recall of 0.903, Pt@0.5 of 0.948, and Pt@[0.5:0.95] of 0.705 on the test set, with an inference speed of 74.166 frames per second, significantly outperforming other models. Ablation experiments indicate that the MSAM module contributes most to fine-grained feature recognition.Conclusion The proposed method balances detection accuracy and real-time performance, effectively overcoming challenges such as complex surface textures and significant defect scale variation. The proposed method provides an efficient solution for intelligent defect inspection on peanut surfaces.

    参考文献
    相似文献
    引证文献
引用本文

田博轩.基于改进YOLO v7的花生表面缺陷智能检测方法[J].食品与机械,2026,(3):105-110.
TIAN Boxuan. Intelligent defect detection on peanut surfaces based on improved YOLO v7[J]. Food & Machinery,2026,(3):105-110.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-04-15
  • 最后修改日期:2025-11-21
  • 录用日期:
  • 在线发布日期: 2026-05-13
  • 出版日期:
文章二维码
×
《食品与机械》
友情提示
友情提示 一、 近日有不少作者反应我刊官网无法打开,是因为我刊网站正在升级,旧网站仍在百度搜索排名前列。请认准《食品与机械》唯一官方网址:http://www.ifoodmm.com/spyjx/home 唯一官方邮箱:foodmm@ifoodmm.com; 联系电话:0731-85258200,希望广大读者和作者仔细甄别。