journal article·2022-11-23Open access

Vision Transformer in Industrial Visual Inspection

Nils Hütten, Richard Meyes, Tobias Meisen

Applied Sciences· Volume 12· Issue 23

Abstract

Artificial intelligence as an approach to visual inspection in industrial applications has been considered for decades. Recent successes, driven by advances in deep learning, present a potential paradigm shift and have the potential to facilitate an automated visual inspection, even under complex environmental conditions. Thereby, convolutional neural networks (CNN) have been the de facto standard in deep-learning-based computer vision (CV) for the last 10 years. Recently, attention-based vision transformer architectures emerged and surpassed the performance of CNNs on benchmark datasets, regarding regular CV tasks, such as image classification, object detection, or segmentation. Nevertheless, despite their outstanding results, the application of vision transformers to real world visual inspection is sparse. We suspect that this is likely due to the assumption that they require enormous amounts of data to be effective. In this study, we evaluate this assumption. For this, we perform a systematic comparison of seven widely-used state-of-the-art CNN and transformer based architectures trained in three different use cases in the domain of visual damage assessment for railway freight car maintenance. We show that vision transformer models achieve at least equivalent performance to CNNs in industrial applications with sparse data available, and significantly surpass them in increasingly complex tasks.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Infrastructure Maintenance and Monitoring · Industrial Vision Systems and Defect Detection · Non-Destructive Testing Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Chair of Technologies and Management of Digital Transformation, University of Wuppertal, Rainer-Gruenter-Straße 21, 42119 Wuppertal, Germany

Funding

German Federal Ministry for Digital and Transport in the program “future rail freight transport”

References (52)

Show source-provided references
1. Steger, C., Ulrich, M., and Wiedemann, C. (2018). Machine Vision Algorithms and Applications, John Wiley & Sons.
2. The analysis of industrial inspection10.1016/0003-6870(71)90073-1 ↗
3. Swain, A.D., and Guttmann, H.E. (1983). Handbook of Human-Reliability Analysis with Emphasis on Nuclear Power Plant Applications, Sandia National Labs.. Final Report.10.2172/5752058 ↗
4. Drury, C.G., and Fox, J.G. (1975). Human Reliability in Quality Control: Papers, Taylor & Francis.
5. Recent advances in surface defect inspection of industrial products using deep learning techniques10.1007/s00170-021-06592-8 ↗
6. Kalyan, K.S., Rajasekharan, A., and Sangeetha, S. (2021). AMMUS: A Survey of Transformer-based Pretrained Models in Natural Language Processing. arXiv.10.1016/j.jbi.2021.103982 ↗
7. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention Is All You Need. arXiv.
8. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv.
9. Language Models are Few-Shot Learners
10. Han, K., Wang, Y., Chen, H., Chen, X., Guo, J., Liu, Z., Tang, Y., Xiao, A., Xu, C., and Xu, Y. (2022). A Survey on Vision Transformer. IEEE Trans. Pattern Anal. Mach. Intell.10.1109/TPAMI.2022.3152247 ↗
11. Transformers in Vision: A Survey
12. Transformers in computational visual media: A survey10.1007/s41095-021-0247-3 ↗
13. Liu, H., Miao, X., Mertz, C., Xu, C., and Kong, H. (2021, January 10–17). CrackFormer: Transformer Network for Fine-Grained Crack Detection. Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada.10.1109/ICCV48922.2021.00376 ↗
14. Automatic Rail Component Detection Based on AttnConv-Net10.1109/JSEN.2021.3132460 ↗
15. Language models are unsupervised multitask learners
16. Kitaev, N., Kaiser, Ł., and Levskaya, A. (2020). Reformer: The Efficient Transformer. arXiv.
17. Wang, S., Li, B.Z., Khabsa, M., Fang, H., and Ma, H. (2020). Linformer: Self-Attention with Linear Complexity. arXiv.
18. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An Image is Worth 16 × 16 Words: Transformers for Image Recognition at Scale. arXiv.
19. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 10–17). Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada.10.1109/ICCV48922.2021.00986 ↗
20. Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., and Zagoruyko, S. (2020). End-to-End Object Detection with Transformers. European Conference on Computer Vision, Springer.10.1007/978-3-030-58452-8_13 ↗
21. Dai, X., Chen, Y., Xiao, B., Chen, D., Liu, M., Yuan, L., and Zhang, L. (2021, January 19–25). Dynamic Head: Unifying Object Detection Heads with Attentions. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.00729 ↗
22. Zhu, X., Su, W., Lu, L., Li, B., Wang, X., and Dai, J. (2020). Deformable DETR: Deformable Transformers for End-to-End Object Detection. arXiv.
23. The Hungarian method for the assignment problem10.1002/nav.3800020109 ↗
24. Xu, M., Zhang, Z., Hu, H., Wang, J., Wang, L., Wei, F., Bai, X., and Liu, Z. (2021, January 10–17). End-to-End Semi-Supervised Object Detection with Soft Teacher. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCV48922.2021.00305 ↗
25. Dai, J., Qi, H., Xiong, Y., Li, Y., Zhang, G., Hu, H., and Wei, Y. (2017). Deformable Convolutional Networks. arXiv.10.1109/ICCV.2017.89 ↗
26. Lin, T.Y., Maire, M., Belongie, S., Bourdev, L., Girshick, R., Hays, J., Perona, P., Ramanan, D., Zitnick, C.L., and Dollár, P. (2014). Microsoft COCO: Common Objects in Context. arXiv.10.1007/978-3-319-10602-1_48 ↗
27. Wang, C.Y., Yeh, I.H., and Liao, H.Y.M. (2021). You Only Learn One Representation: Unified Network for Multiple Tasks. arXiv.
28. ImageNet classification with deep convolutional neural networks10.1145/3065386 ↗
29. Exploring Structural Knowledge for Automated Visual Inspection of Moving Trains10.1109/TCYB.2020.2998126 ↗
30. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
31. He, K., Zhang, X., Ren, S., and Sun, J. (2015). Deep Residual Learning for Image Recognition. arXiv.10.1109/CVPR.2016.90 ↗
32. Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., and Belongie, S. (2016). Feature Pyramid Networks for Object Detection. arXiv.10.1109/CVPR.2017.106 ↗
33. Chung, J., Gulcehre, C., Cho, K., and Bengio, Y. (2014). Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv.
34. The Pascal Visual Object Classes (VOC) Challenge10.1007/s11263-009-0275-4 ↗
35. Defect Detection on Asphalt Pavement by Deeplearning10.21660/2021.83.6153 ↗
36. Redmon, J., and Farhadi, A. (2018). YOLOv3: An Incremental Improvement. arXiv.
37. Badrinarayanan, V., Kendall, A., and Cipolla, R. (2015). SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation. arXiv.
38. CrackTree: Automatic crack detection from pavement images10.1016/j.patrec.2011.11.004 ↗
39. DeepCrack: Learning Hierarchical Convolutional Features for Crack Detection10.1109/TIP.2018.2878966 ↗
40. Optimized Deep Encoder-Decoder Methods for Crack Segmentation10.1016/j.dsp.2020.102907 ↗
41. Automatic Defect Detection of Fasteners on the Catenary Support Device Using Deep Convolutional Neural Network10.1109/TIM.2017.2775345 ↗
42. Sun, X., Gu, J., Huang, R., Zou, R., and Giron Palomares, B. (2019). Surface Defects Recognition of Wheel Hub Based on Improved Faster R-CNN. Electronics, 8.10.3390/electronics8050481 ↗
43. Detection Approach Based on an Improved Faster RCNN for Brace Sleeve Screws in High-Speed Railways10.1109/TIM.2019.2941292 ↗
44. Xie, S., Girshick, R., Dollár, P., Tu, Z., and He, K. (2016). Aggregated Residual Transformations for Deep Neural Networks. arXiv.10.1109/CVPR.2017.634 ↗
45. Loshchilov, I., and Hutter, F. (2017). Decoupled Weight Decay Regularization. arXiv.
46. Dai, Z., Cai, B., Lin, Y., and Chen, J. (2021, January 19–25). UP-DETR: Unsupervised Pre-training for Object Detection with Transformers. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.00165 ↗
47. Liu, Z., Hu, H., Lin, Y., Yao, Z., Xie, Z., Wei, Y., Ning, J., Cao, Y., Zhang, Z., and Dong, L. (2022, January 19–20). Swin Transformer V2: Scaling up Capacity and Resolution. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01170 ↗
48. Yang, J., Li, C., Zhang, P., Dai, X., Xiao, B., Yuan, L., and Gao, J. (2021). Focal Self-attention for Local-Global Interactions in Vision Transformers. arXiv.
49. CoAtNet: Marrying Convolution and Attention for All Data Sizes
50. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal Loss for Dense Object Detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.324 ↗
51. Chen, K., Wang, J., Pang, J., Cao, Y., Xiong, Y., Li, X., Sun, S., Feng, W., Liu, Z., and Xu, J. (2019). MMDetection: Open MMLab Detection Toolbox and Benchmark. arXiv.
52. Xie, Z., Zhang, Z., Cao, Y., Lin, Y., Bao, J., Yao, Z., Dai, Q., and Hu, H. (2022, January 19–20). SimMIM: A Simple Framework for Masked Image Modeling. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.00943 ↗