Cad-Transformer: A CNN–Transformer Hybrid Framework for Automatic Appearance Defect Classification of Shipping Containers
In traditional port operations, manual visual inspection by tally personnel is standard for detecting defects in shipping containers during unloading. However, the fast pace of operations, distractions, poor visibility, and adverse weather often result in errors and delays. To address these issues, we propose the Cad-transformer, a convolutional neural network (CNN)–transformer hybrid framework for automatic container defect classification. The framework includes three components: encoding, upsampling, and decoding. The encoding phase simulates missing parts by randomly deleting 60% of the original image. Upsampling enhances mask resolution, and the decoding phase predicts and fills in missing areas using a transformer-based self-supervised approach. Additionally, the CNN feature extraction method focused on visible patches (CFE-VP) module focuses on key local mask features to accelerate learning. Experimental results show that Cad-transformer outperforms existing methods in container damage detection for smart ports, marking the first use of a CNN-transformer hybrid in this domain.
Authors
- Szu‐Yu Kuo (ORCID: https://orcid.org/0000-0002-1131-5513)
- Liang-Bi Chen (ORCID: https://orcid.org/0000-0003-3181-4480)
- Xiang-Rui Huang (ORCID: https://orcid.org/0000-0003-1488-6597)
- Guan-Zhi Huang (ORCID: https://orcid.org/0009-0000-6141-6446)
- Pei‐Chun Lin (ORCID: https://orcid.org/0000-0002-4400-923X)
Institutions
- National Penghu University of Science and Technology (TW)
- National Kaohsiung Marine University (TW)
- National Kaohsiung University of Science and Technology (TW)
- National Cheng Kung University (TW)
Publication Details
- Journal
- IEEE Transactions on Instrumentation and Measurement
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tim.2025.3548214
- Citations
- 5
- Primary Topic
- Industrial Vision Systems and Defect Detection
- Type
- article
- Field-Weighted Citation Impact
- 6.21
Funders
- National Science and Technology Council