基于激光散斑的食品包装封口异常检测
Anomaly Detection of Food-Packaging Seals Based on Laser Speckle
DOI: 10.12677/jisp.2026.151010, PDF,    科研立项经费支持
作者: 陈王强, 石 文:温州大学电气与电子工程学院,浙江 温州;黄金梭*:温州职业技术学院智能制造学院,浙江 温州
关键词: 食品包装激光散斑异常检测机器视觉封口Food Packaging Laser Speckle Anomaly Detection Machine Vision Sealing
摘要: 为克服当前食品包装袋质量检测手段的局限性,丰富食品企业的包装质量检测方法,搭建了激光散斑图像采集系统,采用暗场照射方式获取封口的激光散斑图像。针对采集的图像,使用阈值分割、高斯滤波和对比度限制的自适应直方图均衡化进行预处理;随后对缩放后的图像采用完全主成分分析(Complete Principal Component Analysis, CPCA)进行特征降维,并利用单类支持向量机(One Class Support Vector Machine, OCSVM)对降维后的特征向量进行分类识别。实验结果表明,采用高斯径向基核函数(Radial Basis Function, RBF)时,检测效果最优,灵敏度达到94.59%,特异性达到97.30%,精确率达到95.95%,接收者操作特征曲线下面积(Area under Curve, AUC)达到98.24%。该研究证实,激光散斑结合机器视觉技术可凸显封口纹理特征,有效提升食品包装封口的成像质量,具有实际应用价值。
Abstract: To overcome the limitations of current quality inspection methods for food packaging bags and enrich the quality testing approaches for food enterprises, a laser speckle image acquisition system was constructed. Dark-field illumination was employed to obtain laser speckle images of the seals. For the acquired images, preprocessing was performed using threshold segmentation, Gaussian filtering, and Contrast Limited Adaptive Histogram Equalization. Subsequently, the scaled images underwent feature dimensionality reduction via Complete Principal Component Analysis (CPCA), and the reduced feature vectors were classified and recognized using a One-Class Support Vector Machine (OCSVM). Experimental results indicated that the optimal detection performance was achieved when employing the Gaussian Radial Basis Function (RBF) kernel, with a sensitivity of 94.59%, specificity of 97.30%, precision of 95.95%, and an Area under the Receiver Operating Characteristic Curve (AUC) of 98.24%. This study demonstrates that laser speckle technology combined with machine vision can effectively highlight the texture features of seals and significantly enhance the imaging quality for food packaging seal inspection, confirming its practical application value.
文章引用:陈王强, 石文, 黄金梭. 基于激光散斑的食品包装封口异常检测[J]. 图像与信号处理, 2026, 15(1): 118-129. https://doi.org/10.12677/jisp.2026.151010

参考文献

[1] Ahmed, M.W., Haque, M.A., Mohibbullah, M., Khan, M.S.I., Islam, M.A., Mondal, M.H.T., et al. (2022) A Review on Active Packaging for Quality and Safety of Foods: Current Trends, Applications, Prospects and Challenges. Food Packaging and Shelf Life, 33, Article ID: 100913. [Google Scholar] [CrossRef
[2] Zhao, L. and Zhu, R. (2022) Research on Image Contour Edge Analysis Based on Canny Edge Detector. Academic Journal of Computing & Information Science, 5, 70-75.
[3] Peng, T., Zheng, Y., Zhao, L. and Zheng, E. (2024) Industrial Product Surface Anomaly Detection with Realistic Synthetic Anomalies Based on Defect Map Prediction. Sensors, 24, Article 264. [Google Scholar] [CrossRef] [PubMed]
[4] 樊鑫江, 佟强, 杨大利, 等. 基于SVDD与VGG的纽扣表面缺陷检测[J]. 计算机工程与设计, 2024, 45(03): 918-924.
[5] 牛茂东, 马尚君, 蔡威, 等. 采用单分类方法的行星滚柱丝杠故障检测[J]. 重庆理工大学学报(自然科学), 2023, 37(2): 307-315.
[6] Liu, C., Kılıç, K., Erdener, S.E., Boas, D.A. and Postnov, D.D. (2021) Choosing a Model for Laser Speckle Contrast Imaging. Biomedical Optics Express, 12, 3571-3583. [Google Scholar] [CrossRef] [PubMed]
[7] 吴鹏飞, 邓植中, 雷思琛, 等. 基于激光散斑图像多特征参数的表面粗糙度建模研究[J]. 红外与激光工程, 2023, 52(12): 20230348.
[8] 周玮, 门耀华, 辛立刚. 基于机器视觉的柔性包装袋喷码缺陷检测研究[J]. 包装工程, 2022, 43(9): 249-256.
[9] 陈慧丽, 李继伟. 基于机器视觉的方便面包装品质检测系统设计[J]. 包装工程, 2017, 38(13): 159-163.
[10] 李丹, 白国君, 金媛媛, 等. 基于机器视觉的包装袋缺陷检测算法研究与应用[J]. 激光与光电子学进展, 2019, 56(9): 188-194.
[11] 张宝胜, 周聪玲, 王永强. 基于机器视觉的透明包装袋真空封口纹理缺陷检测方法[J]. 食品与机械, 2023, 39(07): 111-118.
[12] Huang, G., Chen, X., Chen, X., Chen, X. and Shi, W. (2022) A One-Class Feature Extraction Method Based on Space Decomposition. Soft Computing, 26, 5553-5561. [Google Scholar] [CrossRef
[13] 李自勤, 李琦, 王骐. 由统计特性分析激光主动成像系统图像的噪声性质[J]. 中国激光, 2004, 31(9): 1081-1085.
[14] Zhao, Y., Nasrullah, Z. and Li, Z. (2018) PyOD: A Python Toolbox for Scalable Outlier Detection. Journal of Machine Learning Research, 20, 1-7.