•  
  •  
 

Corresponding Author(s)

王静蕾(1979—),女,郑州旅游职业学院副教授,硕士。E-mail:aallmei@sina.com

Abstract

[Objective] To address the problems of low detection accuracy and poor real -time performance in traditional packaging defect detection methods in food production.[Methods] Based on the analysis of automated food production lines,an improved YOLOv 10 model was applied for packaging defect detection on boxed food production lines.The convolutional block attention module (CBAM ) was introduced after the C 2f modules in the backbone and neck layers to enhance the model's feature localization ability in complex backgrounds.Full -dimensional dynamic convolution was introduced in the backbone and neck layers to reduce computational redundancy and improve detection accuracy.The P 2 layer was added and the P 5 layer removed in the head to enhance small object detection performance.The loss function in the head was optimized to improve the model's convergence performance.[Results]] The proposed method effectively improved the detection accuracy of packaging defects in boxed food,met real -time performance requirements,achieved a detection accuracy greater than 98.00%,and an average detection time of less than 0.02 s.[Conclusion] The integration of deep learning and machine vision can realize rapid and accurate detection of packaging defects in boxed food.

Publication Date

6-2-2025

First Page

236

Last Page

241

DOI

10.13652/j.spjx.1003.5788.2025.60008

References

[1] 朱豪,周顺勇,刘学,等.基于深度学习的单阶段目标检测算法综述 [J].工业控制计算机,2023,36(4):101-103.ZHU H,ZHOU S Y,LIU X,et al.Survey of single-stage object detection algorithms based on deep learning [J].Industrial Control Computer,2023,36(4):101-103.
[2] 李建明,杨挺,王惠栋.基于深度学习的工业自动化包装缺陷检测方法 [J].包装工程,2020,41(7):175-184.LI J M,YANG T,WANG H D.An industrial automation packaging defect detection method based on deep learning [J].Packaging Engineering,2020,41(7):175-184.
[3] 殷坤,刘金明,张东杰,等.基于近红外光谱的大米蛋白质含量快速检测 [J].食品与机械,2021,37(5):82-88,175.YIN K,LIN J M,ZHANG D J,et al.Rapid detection of protein contentin rice based on near infrared spectroscopy [J].Food & |Machinery,2021,37(5):82-88,175.
[4] 邓姗姗,黄慧,马燕.基于改进 Faster R-CNN 的小目标检测算法[J].计算机工程与科学,2023,45(5):869-877.DENG S S,HUANG H,MA Y.A small object detection algorithm based on improved Faster R-CNN [J].Computer Engineering & Science,2023,45(5):869-877.
[5] HUANG J,REN L F,ZHOU X K,et al.An improved neural network based on SENet for sleep stage classification [J].IEEE Journal of Biomedical and Health Informatics,2022,26(10):4 948-4 956.
[6] 万薇,卜莹雪,王祥,等.基于改进 ResNet模型的食品新鲜度识别方法 [J].食品与机械,2023,39(9):123-127.WAN W,BU Y X,WANG X,et al.Food freshness recognition method based on improved ResNet model [J].Food & Machinery,2023,39(9):123-127.
[7] 夏军勇,王康宇,周宏娣.基于改进 Faster R-CNN 的食品包装缺陷检测 [J].食品与机械,2023,39(11):131-136,151.XIA J Y,WANG K Y,ZHOU H D.Food packaging defect detection by improved network model of Faster R-CNN [J].Food & Machinery,2023,39(11):131-136,151.
[8] 刘达,朱兆优,叶海鹏,等.基于改进 YOLOv 5的酒瓶缺陷检测方法研究 [J].机电工程技术,2024,53(3):211-215.LIU D,ZHU Z Y,YE H P,et al.Research on defect detection method for wine bottles based on improved YOLOv 5[J].Mechanical & Electrical Engineering Technology,2024,53(3):211-215.
[9] 陈卫东,刘超,王莹,等.基于机器视觉的食品瓶罐包装缺陷检测研究进展 [J].粮油食品科技,2024,32(4):185-191.CHEN W D,LIU C,WANG Y,et al.Research progress on inspecting food bottle and can packaging shortcomings based on machine vision [J].Science and Technology of Cereals,Oils and Foods,2024,32(4):185-191.
[10] 吴昊然,陈晓星,高傲.基于深度卷积神经网络的食品包装缺陷检测算法研究 [J].智能计算机与应用,2023,13(3):10-15.WU H R,CHEN X X,GAO A.Research on food packaging defect detection algorithm based on deep convolutional neural network [J].Intelligent Computer and Applications,2023,13(3):10-15.
[11] 陈远涛,熊忆舟,薛莹莹,等.基于深度学习的电子鼻食品新鲜度检测与识别技术研究 [J].传感技术学报,2021,34(8):1 131-1 138.CHEN Y T,XIONG Y Z,XUE Y Y,et al.Research on electronic nose food freshness detection and recognition technology based on deep learning [J].Chinese Journal of Sensors and Actuators,2021,34(8):1 131-1 138.
[12] 袁也,周博,吴泽玮.基于电子鼻和机器视觉的鱼肉新鲜度检测研究 [J].食品与发酵工业,2024,50(24):313-320.YUAN Y,ZHOU B,WU Z W.Fish freshness detection based on an electronic nose and machine vision [J].Food and Fermentation Industries,2024,50(24):313-320.
[13] 丛军,李星.基于电子鼻、电子舌技术的荣昌猪肉及其制品贮藏过程新鲜度检测研究 [J].食品安全质量检测学报,2024,15(7):192-201.CONG J,LI X.Detection of freshness of Rongchang pork and its products during storage based on electronic nose and electronic tongue technology [J].Journal of Food Safety & Quality,2024,15(7):192-201.
[14] 李慧琴,宋赵铭,刘存祥,等.基于 YOLOv 8n的番茄果实检测模型改进 [J/OL ].河南农业大学学报.(2024 -05-13) [2024 -09-29].https://doi.org/10.16445 /j.cnki.1000 -2340.20240511.002.LI H Q,SONG Z M,LIU C X,et al.Improvement of tomato fruit detection model based on YOLOv 8n[J/OL ].Journal of Henan Agricultural University.(2024 -05-13) [2024 -09-29].https://doi.org/10.16445 /j.cnki.1000 -2340.20240511.002.
[15] 戈明辉,张俊,陆慧娟.基于机器视觉的食品外包装缺陷检测算法研究进展 [J].食品与机械,2023,39(9):95-102,116.GE M H,ZHANG J,LU H J.Research progress of food packaging defect detection based on machine vision [J].Food & Machinery,2023,39(9):95-102,116.
[16] 杨志锐,郑宏,郭中原,等.基于网中网卷积神经网络的红枣缺陷检测 [J].食品与机械,2020,36(2):140-145,181.YANG Z R,ZHENG H,GUO Z Y,et al.Detection of jujube defects based on the neural network with network convolution[J].Food & Machinery,2020,36(2):140-145,181.
[17] 沈海军,张汤磊,许振兴,等.基于 Fisher判别分析对苹果新鲜度的识别研究 [J].食品工业科技,2023,44(4):361-368.SHEN H J,ZHANG T L,XU Z X,et al.Recognition of apple freshness based on fisher discriminant analysis [J].Science and Technology of Food Industry,2023,44(4):361-368.
[18] 刘雪,沈长盈,吕学泽,等.基于改进 MobileNetV 3-Large的鸡蛋新鲜度识别模型 [J].农业工程学报,2022,38(17):196-204.LIU X,SHEN C Y,LV X Z,et al.Recognizing egg freshness using an improved MobileNetV 3-Large [J].Transactions of the Chinese Society of Agricultural Engineering,2022,38(17):196-204.
[19] 索婷,杨书林,林娜,等.小麦粉特性与生湿面品质的关系研究[J].食品与生物技术学报,2024,43(3):54-65.SUO T,YANG S L,LIN N,et al.Study on relationship between wheat flour characteristics and quality of fresh wet noodles [J].Journal of Food Science and Biotechnology,2024,43(3):54-65.
[20] 文韬,代兴勇,李浪,等.基于机器视觉与光谱融合的柑橘品质无损检测分级系统设计与试验 [J].江苏大学学报 (自然科学版 ),2024,45(1):38-45.WEN T,DAI X Y,LI L,et al.Design and experiment of non-destructive testing and grading system for citrus quality based on machine vision and spectral fusion [J].Journal of Jiangsu University (Natural Science Edition ),2024,45(1):38-45.
[21] 杨明旭,张俊宁,张志强,等.基于改进 YOLOv 8的药片泡罩包装缺陷检测算法 [J].包装工程,2025,46(1):145-154.YANG M X,ZHANG J N,ZHANG Z Q,et al.Defect detection algorithm of pharmaceutical blister package based on improved YOLOv 8[J].Packaging Engineering,2025,46(1):145-154.

Share

COinS
 
 

To view the content in your browser, please download Adobe Reader or, alternately,
you may Download the file to your hard drive.

NOTE: The latest versions of Adobe Reader do not support viewing PDF files within Firefox on Mac OS and if you are using a modern (Intel) Mac, there is no official plugin for viewing PDF files within the browser window.