Swin Transformer Combined with Convolution Neural Network for Surface Defect Detection

被引:7
|
作者
Li, Yinghao [1 ]
Xiang, Yihao [1 ]
Guo, Haogong [1 ]
Liu, Panpan [1 ]
Liu, Chengming [1 ]
机构
[1] Zhengzhou Univ, Sch Cyber Sci & Engn, Zhengzhou 450052, Peoples R China
关键词
surface defect detection; Swin transformer; convolutional neural networks; flange;
D O I
10.3390/machines10111083
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
Surface defect detection aims to classify and locate a certain defect that exists in the target surface area. It is an important part of industrial quality inspection. Most of the research on surface defect detection are currently based on convolutional neural networks (CNNs), which are more concerned with local information and lack global perception. Thus, CNNs are unable to effectively extract the defect features. In this paper, a defect detection method based on the Swin transformer is proposed. The structure of the Swin transformer has been fine-tuned so that it has five scales of output, making it more suitable for defect detection tasks with large variations in target size. A bi-directional feature pyramid network is used as the feature fusion part to efficiently fuse to the extracted features. The focal loss is used as a loss function to weight the hard- and easy-to-distinguish samples, potentially making the model fit the surface defect data better. To reduce the number of parameters in the model, a shared detection head was chosen for result prediction. Experiments were conducted on the flange surface defect dataset and the steel surface defect dataset, respectively. Compared with the classical CNNs target detection algorithm, our method improves the mean average precision (mAP) by about 15.4%, while the model volume and detection speed are essentially the same as those of the CNNs-based method. The experimental results show that our proposed method is more competitive compared with CNNs-based methods and has some generality for different types of defects.
引用
收藏
页数:15
相关论文
共 50 条
  • [1] Surface defect detection and classification of steel using an efficient Swin Transformer
    Zhu, Wei
    Zhang, Hui
    Zhang, Chao
    Zhu, Xiaoyang
    Guan, Zhen
    Jia, Jiale
    [J]. ADVANCED ENGINEERING INFORMATICS, 2023, 57
  • [2] Cas-VSwin transformer: A variant swin transformer for surface-defect detection
    Gao, Linfeng
    Zhang, Jianxun
    Yang, Changhui
    Zhou, Yuechuan
    [J]. COMPUTERS IN INDUSTRY, 2022, 140
  • [3] A shunted-swin transformer for surface defect detection in roller bearings
    Zhou, Xin
    Ren, Zhaohui
    Zhang, Yongchao
    Mi, Tianchuan
    Zhou, Shihua
    Jiang, Zeyu
    [J]. MEASUREMENT, 2024, 238
  • [4] A Hybrid Algorithm with Swin Transformer and Convolution for Cloud Detection
    Gong, Chengjuan
    Long, Tengfei
    Yin, Ranyu
    Jiao, Weili
    Wang, Guizhou
    [J]. REMOTE SENSING, 2023, 15 (21)
  • [5] Electrolytic capacitor surface defect detection based on deep convolution neural network
    Wang, Haijian
    Mo, Han
    Lu, Shilin
    Zhao, Xuemei
    [J]. JOURNAL OF KING SAUD UNIVERSITY-COMPUTER AND INFORMATION SCIENCES, 2024, 36 (02)
  • [6] Glass surface defect detection method based on multiscale convolution neural network
    Xiong, Honglin
    Fan, Chongjun
    Zhao, Shan
    Yu, Ying
    [J]. Jisuanji Jicheng Zhizao Xitong/Computer Integrated Manufacturing Systems, CIMS, 2020, 26 (04): : 900 - 909
  • [7] Swin-RGC: Swin-Transformer With Recursive Gated Convolution for Substation Equipment Non-Rigid Defect Detection
    Li, Hui
    Zhang, Jie
    Li, Rui
    Zhang, Hui
    Zou, Le
    Liu, Shujuan
    [J]. IEEE ACCESS, 2023, 11 : 72655 - 72664
  • [8] Remote Sensing Object Detection Based on Convolution and Swin Transformer
    Jiang, Xuzhao
    Wu, Yonghong
    [J]. IEEE ACCESS, 2023, 11 : 38643 - 38656
  • [9] An end-to-end steel surface defect detection approach via Swin transformer
    Tang, Bo
    Song, Zi-Kai
    Sun, Wei
    Wang, Xing-Dong
    [J]. IET IMAGE PROCESSING, 2023, 17 (05) : 1334 - 1345
  • [10] Detection of a casting defect tracked by deep convolution neural network
    Jinhua Lin
    Yu Yao
    Lin Ma
    Yanjie Wang
    [J]. The International Journal of Advanced Manufacturing Technology, 2018, 97 : 573 - 581