Back to search

Universidade de Coimbro

Automatic container damage detection

Abstract

dc:description.abstract

Manual inspection of shipping containers is often slow, inconsistent, and difficult to scale when applied to large logistics operations. Inspectors may overlook small or subtle damage, and the time required to examine each container can delay the entire process. This dissertation presents a complete automated system designed to detect and classify visible damage in container images using deep learning techniques. The goal is to reduce the need for manual inspection and improve the speed, consistency, and reliability of container handling workflows.The solution is implemented as a two-step pipeline. First, the YOLOv8X model is used to detect and locate damaged areas within the container images. Then, each cropped region is passed to the MobileNetV2 model, which classifies the damage as either a Dent or Other Damage, the latter category including both Rust and Hole. This structure simplifies the classification task and helps improve the model’s performance.The models were trained and evaluated using a custom dataset that includes both real-world and synthetic images representing a variety of container conditions and damage types. In the detection phase, YOLOv8X achieved the best results among the models tested, with a mean Average Precision (mAP@50) of 83.4% and a precision of 87.2%. For the classification stage, MobileNetV2 achieved an accuracy of 86% and an F1-score of 83%, showing strong performance in distinguishing between the two damage categories.The complete pipeline was tested on a set of 370 annotated images. It processed all images in about six minutes, with an average processing time of one second per image and an overall accuracy of 80%. These results demonstrate that the system is efficient, scalable, and suitable for practical use in inspection tasks where automation can save time and improve consistency.The main contributions of this dissertation include the development and evaluation of a full deep learning-based pipeline for damage detection, a comparison of different object detection and classification models, and an analysis of the most common sources of error. It also introduces new datasets tailored for this specific task.Future work may explore expanding the system’s capabilities to estimate the severity of the damage (e.g., minor vs. major), integrating the pipeline into a real-time API for easier deployment, and applying it to video or live camera streams for continuous monitoring. Improvements could also come from collecting a larger and more diverse training dataset or testing newer model architectures. With these additions, the system has the potential to become a valuable tool for automated container inspection in real logistics environments.

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Fontes, Diogo Morais
Advisors dc:contributor.advisor
  • Cardoso, Alberto Jorge Lebre
  • Estima, Jacinto Paulo Simões

Subjects

dc:subject × 9

Rights

dc:rights
Statement dc:rights
  • embargoedAccess
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Dc Identifier Tid
204037280

Chain of custody

source
Harvested from
Universidade de Coimbro
Base URL
estudogeral.sib.uc.pt/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Fontes, Diogo Morais. Automatic container damage detection. 2025. https://hdl.handle.net/10316/120533