Laser & Optoelectronics Progress, Volume. 62, Issue 6, 0612002(2025)

Detection of Food-Packaging Defects Based on Laser Speckle

Yang Chen1、*, Xiaojing Chen1, wen Shi1, Zhonghao Xie1, Guangzao Huang1, and Liang Zhao2
Author Affiliations
  • 1College of Electrical and Electronic Engineering, Wenzhou University, Wenzhou 325006, Zhejiang , China
  • 2Zhejiang Ruisong Food Co., Ltd., Wenzhou 325200, Zhejiang , China
  • show less

    To validate the feasibility of laser-speckle imaging for detecting defects in snack food packaging, a laser-speckle measurement system is established to capture images of packaging with and without defects, such as bag swelling and air leakage. Gray-histogram features are extracted from preprocessed speckle images, including the mean value, variance, peak value, and skewness. Additionally, four features (angular second moment, entropy, moment of inertia, and correlation) derived from the gray-level co-occurrence matrix along with their corresponding standard deviations are extracted from the speckle images, thus resulting in 12 feature groups. Subsequently, these extracted features are classified using various models, including random forest (RF), k-nearest neighbor (KNN), support vector machine (SVM), binary logic regression (LR), and linear discriminant analysis (LDA). The results show that the RF model achieves the highest classification accuracy rate of 96.08%. Furthermore, by evaluating the feature importance via RF analysis and analyzing the single-feature quantities as well as the pairwise and three-three combinations of these quantities, we discover that the pairwise combinations yield the best performance with a classification accuracy rate of 94.12%. The overall test results indicate that combining laser-speckle imaging technology with machine vision is feasible for detecting defects in food packaging.

    Keywords
    Tools

    Get Citation

    Copy Citation Text

    Yang Chen, Xiaojing Chen, wen Shi, Zhonghao Xie, Guangzao Huang, Liang Zhao. Detection of Food-Packaging Defects Based on Laser Speckle[J]. Laser & Optoelectronics Progress, 2025, 62(6): 0612002

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: Instrumentation, Measurement and Metrology

    Received: Jun. 4, 2024

    Accepted: Aug. 28, 2024

    Published Online: Mar. 13, 2025

    The Author Email:

    DOI:10.3788/LOP241419

    Topics