基于改进U-Net和机器视觉的食品包装缺陷智能化检测方法
CSTR:
作者:
作者单位:

1郑州西亚斯学院,河南 郑州 451100;2河南农业大学,河南 郑州 450046

作者简介:

通讯作者:

张静(1983—),女,郑州西亚斯学院讲师,硕士。E-mail:zhaoqq1124@163.com

中图分类号:

基金项目:

河南省科技攻关项目(编号:252102210055);河南省高等学校重点科研项目(编号:25A520043);河南省教育厅第九批重点学科建设项目(编号:教高[2018]119号);郑州西亚斯学院重点学科项目(编号:0810)


Intelligent detection method for food packaging defects based on improved U-Net and machine vision
Author:
Affiliation:

1Sias University, Zhengzhou, Henan 451100, China;2Henan Agricultural University, Zhengzhou, Henan 450046, China

Fund Project:

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

    目的 解决现有食品包装缺陷智能化检测方法存在的泛化弱、精度不足、抗干扰能力差等问题。方法 在食品包装缺陷智能化分拣系统的基础上,提出一种结合机器视觉和改进U-Net模型的食品包装缺陷智能化检测方法。通过在卷积模块中引入多尺度残差卷积模块,降低模型计算量并提升训练效果。通过融合通道注意力、空间注意力、多尺度注意力构建轻量化混合注意力模块,实现不同维度注意力的协同作用,强化模型对食品包装缺陷的特征提取能力与抗干扰能力,抑制复杂背景噪声。通过软池化替换U-Net中的最大池化层,减少特征信息丢失,保留更多缺陷特征细节与边缘信息。通过搭建试验平台开展模型训练与对比试验。结果 所提方法在多类型食品包装缺陷检测任务中泛化能力优异,平均检测精度达97.50%,较传统U-Net模型提升10.3%,单张图像检测时间仅为20 ms,模型参数量为12.8 M,漏检率为1.1%,误检率为0.5%。结论 该方法有效解决了现有检测方法的核心痛点,实现了多尺度缺陷检测精度、模型轻量化与实时性的优化平衡,能够快速、精准地完成食品包装缺陷的识别与定位。

    Abstract:

    Objective To address the issues of weak generalization, insufficient accuracy, and poor anti-interference ability in existing intelligent detection methods for food packaging defects.Methods On the basis of the intelligent sorting system for food packaging defects, a method for intelligent detection of food packaging defects is proposed, which combines machine vision and an improved U-Net model. By introducing a multi-scale residual convolution module into the convolution module, the method reduces the computational complexity of the model and improves the training effect. By integrating channel attention, spatial attention, and multi-scale attention, a lightweight hybrid attention module is constructed to achieve the synergistic effect of different dimensions of attention, strengthen the model's feature extraction and anti-interference abilities for food packaging defects, and suppress complex background noise. Replacing the max pooling layer in U-Net with soft pooling reduces feature information loss and preserves more defect feature details and edge information. Model training and comparative experiments are conducted by building an experimental platform.Results The proposed method has excellent generalization ability in multiple types of food packaging defect detection tasks, with an average detection accuracy of 97.50%, which is 10.3% higher than that of the traditional U-Net model. The detection time for a single image is only 20 ms. The model parameter size is 12.8 M. The missed detection rate is 1.1%, and the false detection rate is 0.5%.Conclusion This method effectively addresses the core pain points of existing detection methods, achieving an optimized balance among multi-scale defect detection accuracy, model lightweighting, and real-time performance. It can quickly and accurately identify and locate food packaging defects.

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

齐国红,张静,李莉莉.基于改进U-Net和机器视觉的食品包装缺陷智能化检测方法[J].食品与机械,2026,42(6):220-227.
QI Guohong, ZHANG Jing, LI Lili. Intelligent detection method for food packaging defects based on improved U-Net and machine vision[J]. Food & Machinery,2026,42(6):220-227.

复制
分享
相关视频

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