Related Experiment Video
Updated: Jul 9, 2025

04:23
A Swin Transformer-Based Model for Thyroid Nodule Detection in Ultrasound Images
Published on: April 21, 2023
1.9K
Metal Surface Defect Detection Based on a Transformer with Multi-Scale Mask Feature Fusion
Lin Zhao1, Yu Zheng2, Tao Peng1
1School of Electrical and Control Engineering, Shaanxi University of Science and Technology, Xi'an 710021, China.
Sensors (Basel, Switzerland)
|December 9, 2023
Summary
This study introduces a semi-supervised method for metal surface defect detection using a Vision Transformer (ViT). The approach effectively identifies defects like rust and scratches by learning from normal samples, improving industrial product quality control.
Area of Science:
- Materials Science
- Computer Vision
- Artificial Intelligence
Background:
- Surface defect detection is critical for metal industrial product quality.
- Acquiring sufficient defective samples for supervised learning is challenging.
- Semi-supervised learning offers a viable solution for defect detection.
Purpose of the Study:
- To propose a novel semi-supervised method for metal surface defect detection.
- To address the challenge of limited defective sample availability.
- To enhance the accuracy and efficiency of detecting defects such as rust and scratches.
Main Methods:
- A Vision Transformer (ViT) integrated into a generative adversarial network (GAN).
- Multi-scale masked feature fusion using block masks during training and testing.
- Incorporation of token merging (ToMe) for improved training speed.
- An encoder-decoder network with long skip connections for feature fusion.
Main Results:
- The proposed method demonstrates superior performance on five metal industrial product datasets and the MVTec AD dataset.
- Effective learning of semantic context from normal samples for defect identification.
- Successful detection of various metal surface defects including rust and scratches.
Conclusions:
- The developed semi-supervised Transformer-based method significantly improves metal surface defect detection.
- The approach is robust and efficient, overcoming limitations of traditional methods and data scarcity.
- This technique offers a promising solution for quality control in metal industrial production.

