[Paper Review] Automated Detection of Defects on Metal Surfaces using Vision Transformers
This paper proposes a Vision Transformer (ViT)-based model for automated detection of metal surface defects, leveraging transfer learning and a dual-path architecture for simultaneous classification and localization. It achieves 93.5% classification accuracy, 0.72 Mean IOU, and 3.2 pixel MAE in bounding box regression, demonstrating strong performance on a newly created, dense defect dataset (Multi-DET).
Metal manufacturing often results in the production of defective products, leading to operational challenges. Since traditional manual inspection is time-consuming and resource-intensive, automatic solutions are needed. The study utilizes deep learning techniques to develop a model for detecting metal surface defects using Vision Transformers (ViTs). The proposed model focuses on the classification and localization of defects using a ViT for feature extraction. The architecture branches into two paths: classification and localization. The model must approach high classification accuracy while keeping the Mean Square Error (MSE) and Mean Absolute Error (MAE) as low as possible in the localization process. Experimental results show that it can be utilized in the process of automated defects detection, improve operational efficiency, and reduce errors in metal manufacturing.
Motivation & Objective
- Address the limitations of manual and traditional computer vision-based metal defect inspection, which are time-consuming, subjective, and inconsistent.
- Overcome the shortcomings of Convolutional Neural Networks (CNNs) in capturing long-range dependencies and global context in complex defect patterns.
- Develop a deep learning model that enables accurate classification and precise localization of multiple defects on metal surfaces.
- Create a new, realistic dataset (Multi-DET) with higher defect density and diversity to better simulate real-world industrial conditions.
- Leverage pre-trained Vision Transformers via transfer learning to improve feature extraction and model generalization on limited defect data.
Proposed method
- Employ a Vision Transformer (ViT) as the backbone feature extractor, pre-trained on ImageNet, to capture global context and long-range dependencies in metal surface images.
- Design a dual-path neural network architecture: one branch for defect classification and another for bounding box regression (localization).
- Apply transfer learning by fine-tuning the pre-trained ViT on the newly constructed Multi-DET dataset, which contains images with multiple, overlapping defects.
- Use standard deep learning loss functions: cross-entropy for classification and smooth L1 loss for bounding box regression to optimize localization accuracy.
- Optimize training using early stopping and learning rate scheduling to mitigate overfitting, especially given the limited real-world defect data.
- Evaluate model performance using classification accuracy, Mean Absolute Error (MAE) for bounding box coordinates, and Mean Intersection over Union (Mean IOU) for localization precision.
Experimental results
Research questions
- RQ1Can Vision Transformers outperform traditional CNNs in detecting complex and irregular metal surface defects by capturing long-range spatial dependencies?
- RQ2How effective is transfer learning with a pre-trained ViT in improving classification and localization accuracy on limited, real-world metal defect datasets?
- RQ3To what extent does the proposed model handle multiple, overlapping defects in a single image, especially when compared to existing datasets with sparse defect annotations?
- RQ4Does the use of ViT as a feature extractor reduce overfitting compared to training a custom CNN from scratch on small defect datasets?
- RQ5What is the trade-off between detection accuracy and inference speed in ViT-based models for industrial real-time applications?
Key findings
- The proposed ViT-based model achieved a classification accuracy of 93.5%, demonstrating strong performance in distinguishing between different types of metal surface defects.
- The model achieved a Mean IOU score of 0.72, indicating high spatial precision in localizing defects through predicted bounding boxes.
- The Mean Absolute Error (MAE) for bounding box regression was 3.2 pixels, showing accurate prediction of defect location and dimensions.
- The use of ViT as a feature extractor significantly reduced overfitting compared to models without ViT, as evidenced by stable training and validation curves.
- The newly created Multi-DET dataset effectively captures real-world defect complexity, including high defect density and overlapping patterns, enabling more robust model training.
- Despite strong performance, the model shows limitations in detecting highly irregular or rare defect shapes, suggesting a need for data augmentation and architectural optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.