Back to search

Universidad de Lima

A computer vision approach for cookie packaging inspection

Abstract

dc:description.abstract

Automated inspection plays a fundamental role in quality control within manufacturing environments, particularly in food packaging processes where defective cookie packages are frequently produced. This work investigates the use of computer vision techniques based on deep learning to identify defective packaging, focusing on Convolutional Neural Networks (CNNs) and Vision Transformer (ViT) architectures. As part of this research, a custom dataset named Cookie Packaging Dataset was developed, consisting of images categorized into two classes: non-defective and defective packages. The dataset was designed to reflect real industrial conditions, including variations in illumination and visual noise. The proposed models were implemented using the PyTorch framework, considering CNN-based architectures such as ResNet-50 and AlexNet, as well as a ViT-based model. Model training and evaluation were conducted using a 5-fold cross-validation strategy, and performance was assessed using accuracy, recall, and F1-score metrics. Experimental results indicate that the ViT model achieved superior performance, reaching an accuracy of 100% and an F1-score and recall of 98% on the test set, while ResNet-50 and AlexNet obtained accuracies of 98% and 92.67%, respectively. These outcomes confirm the effectiveness of transformer-based approaches for improving automated inspection systems in food packaging applications.

Degree

thesis:*
Name thesis:degree_name
Ingeniero de Sistemas
Level thesis:degree_level
Título Profesional
Discipline thesis:degree_discipline
Ingeniería de Sistemas
Grantor dc:publisher
Universidad de Lima
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zarate Osorio, Jesus Javier
Advisor dc:contributor.advisor
  • Ramírez Cerna, Lourdes
Committee members dc:contributor.committeemember
  • Mayhua Quispe, Angela Gabriela Mayhua
  • Álvarez Valdivia, Edwin Manuel
  • Ramírez Cerna, Lourdes
Person Identifier National person:identifier.national
  • 45722209
  • 76264316
ORCID person:identifier.orcid

Subjects

dc:subject × 5

Rights

dc:rights
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Isni
0000-0001-2154-1816
Thesis Degree Discipline Identifier
612076

Chain of custody

source
Harvested from
Universidad de Lima
Base URL
repositorio.ulima.edu.pe/backend/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Zarate Osorio, Jesus Javier. A computer vision approach for cookie packaging inspection. Título Profesional thesis, Universidad de Lima, 2025. https://hdl.handle.net/20.500.12724/24747