EventsThe 5th International Electronic Conference on Processes
Published
This submission belongs to the session S4. Process Control, Monitoring and Machine Learning of the event The 5th International Electronic Conference on Processes
Published date
15 Oct, 2026
Academic Editor
author-avatarRavendra Singh
Citation
Bem Gumapac, Deep Learning-Based Visual Inspection of Straw Defects in Beverage Box Packaging for Process Quality Monitoring, in Proceedings of The 5th International Electronic Conference on Processes, 20 October–22 October 2026, MDPI: Basel, Switzerland
Share
Email
Facebook
Twitter
LinkedIn

Deep Learning-Based Visual Inspection of Straw Defects in Beverage Box Packaging for Process Quality Monitoring

1. Computer Engineering Department, College of Engineering, Architecture and Industrial Design, Bohol Island State University, Tagbilaran City 6300, Philippines
Abstract

Visual inspection is an important part of packaging quality control, especially when small external components, such as attached straws, can affect product presentation and consumer acceptance. In beverage box packaging, defects such as bent, loose, missing, or pierced straws may be overlooked during repetitive manual inspection. To support process quality monitoring, this study presents a deep learning-based visual inspection approach for classifying straw defects using the publicly available Juice Box Straw Defects Dataset. The dataset contained 2000 images equally distributed across five classes: Bent, Good, Loose, Missing, and Pierced. Three Convolutional Neural Network (CNN) architectures, namely DenseNet121, Xception, and InceptionV3, were evaluated using a transfer learning strategy. Each model was first trained with a frozen pretrained backbone and then fine-tuned by unfreezing selected final layers to improve task-specific feature learning. Model Performance was assessed using accuracy, precision, recall, F1-score, and confusion matrix analysis. Baseline results showed moderate classification performance, with InceptionV3 obtaining the highest baseline accuracy of 0.7433. After fine-tuning, all models improved substantially, with fine-tuned Xception achieving the best test performance, recording 0.9633 of accuracy, 0.9637 of precision, 0.9633 of recall, and 0.9632 of F1-score. Grad-CAM visualization further indicated that the model focused on straw-related regions during classification. These findings suggest that fine-tuned CNN models can provide effective image-based support for straw defect inspection in beverage box packaging.

Keywords
straw defect inspection
beverage box packaging
deep learning
convolutional neural network
Xception
process quality monitoring
Grad-CAM
visual inspection
Poster
ECP2026_Poster.pdf
AI-based smart inspection of date fruit to support postharvest artificial ripening decisions
Simulation of Textile Materials – an Innovative Approach for Further Development of the Drape Test Using a Spherical Testing Body