Defect transformer: An efficient hybrid transformer architecture for surface defect detection. (April 2023)
- Record Type:
- Journal Article
- Title:
- Defect transformer: An efficient hybrid transformer architecture for surface defect detection. (April 2023)
- Main Title:
- Defect transformer: An efficient hybrid transformer architecture for surface defect detection
- Authors:
- Wang, Junpu
Xu, Guili
Yan, Fuju
Wang, Jinjin
Wang, Zhengsheng - Abstract:
- Abstract: Surface defect detection is an extremely crucial step to ensure the quality of industrial products. Nowadays, convolutional neural networks (CNNs) based on encoder–decoder architecture have achieved tremendous success in various defect detection tasks. However, the intrinsic locality of convolution prevents them from modeling long-range interactions explicitly, making it difficult to distinguish pseudo-defects in cluttered backgrounds. Recent transformers are especially skilled at learning global image dependencies, but with limited local structural information for the refined defect location. To overcome the above limitations, we incorporate CNN and transformer into an efficient hybrid transformer architecture for defect detection, termed Defect Transformer (DefT), to capture local and non-local relationships collaboratively. Specifically, in the encoder module, a convolutional stem block is firstly adopted to retain more spatial details. Then, the patch aggregation blocks are used to generate multi-scale representation with four hierarchies, each of them is followed by a series of DefT blocks, which respectively include a locally position-aware block for local position encoding, a lightweight multi-pooling self-attention to model multi-scale global contextual relationships with good computational efficiency, and a convolutional feed-forward network for feature transformation and further local information learning. Finally, a simple but effective decoder module isAbstract: Surface defect detection is an extremely crucial step to ensure the quality of industrial products. Nowadays, convolutional neural networks (CNNs) based on encoder–decoder architecture have achieved tremendous success in various defect detection tasks. However, the intrinsic locality of convolution prevents them from modeling long-range interactions explicitly, making it difficult to distinguish pseudo-defects in cluttered backgrounds. Recent transformers are especially skilled at learning global image dependencies, but with limited local structural information for the refined defect location. To overcome the above limitations, we incorporate CNN and transformer into an efficient hybrid transformer architecture for defect detection, termed Defect Transformer (DefT), to capture local and non-local relationships collaboratively. Specifically, in the encoder module, a convolutional stem block is firstly adopted to retain more spatial details. Then, the patch aggregation blocks are used to generate multi-scale representation with four hierarchies, each of them is followed by a series of DefT blocks, which respectively include a locally position-aware block for local position encoding, a lightweight multi-pooling self-attention to model multi-scale global contextual relationships with good computational efficiency, and a convolutional feed-forward network for feature transformation and further local information learning. Finally, a simple but effective decoder module is constructed to gradually recover spatial details from the skip connections in the encoder. Extensive experiments on three datasets demonstrate the superiority and efficiency of our method compared with other deeper and complex CNN- and transformer-based networks. Highlights: We study the benefits of vision transformer for pixel-wise defect detection tasks. We propose a defect detection architecture by porting the properties of CNNs into transformer. We provide a simpler but better defect detection baseline and can motivate further research. We conduct extensive experiments to show the superiority and generalization of our method. … (more)
- Is Part Of:
- Measurement. Volume 211(2023)
- Journal:
- Measurement
- Issue:
- Volume 211(2023)
- Issue Display:
- Volume 211, Issue 2023 (2023)
- Year:
- 2023
- Volume:
- 211
- Issue:
- 2023
- Issue Sort Value:
- 2023-0211-2023-0000
- Page Start:
- Page End:
- Publication Date:
- 2023-04
- Subjects:
- Surface defect detection -- Transformer -- Convolutional neural network -- Global contextual relationship -- Local position encoding
Weights and measures -- Periodicals
Measurement -- Periodicals
Measurement
Weights and measures
Periodicals
530.8 - Journal URLs:
- http://www.sciencedirect.com/science/journal/02632241 ↗
http://www.elsevier.com/journals ↗ - DOI:
- 10.1016/j.measurement.2023.112614 ↗
- Languages:
- English
- ISSNs:
- 0263-2241
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 5413.544700
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 26340.xml