skip to main content
10.1145/3529466.3529471acmotherconferencesArticle/Chapter ViewAbstractPublication PagesiciaiConference Proceedingsconference-collections
research-article

Transformer-based Encoder-Decoder Model for Surface Defect Detection

Published: 04 June 2022 Publication History

Abstract

Recently, deep learning approaches have been gaining popularity in industrial quality control (e.g. surface defect detection), due to their ability for automatically extracting more representative features. In this paper, we propose a two-stage end-to-end approach through a Transformer-based encoder-decoder for surface defect detection. First, we develop a surface defect detection model to train the slicing of input raw images with the same final resolution of the input images and the output images, which better expands the perceptual field. After that, a 1×1 convolution layer is applied to its final layer, thus reducing the number of channels to obtain a single-channel output mask. Then, we combine this single-channel output mask with the output obtained from the last layer of the first stage as the input of the second stage decision layer. Considering different types of sample data, we design two different decision network strategies, namely: plain-up sampling and dynamic-up sampling. Our experimental studies on several publicly available datasets show that the proposed approach is general and effective in detecting defects, and we only need a relatively small number of samples to train the model, which has a good applicability in industrial practice where the sample size is normally limited.

References

[1]
Lasi, H., Fettke, P., Kemper, H. G., Feld, T., & Hoffmann, M. (2014). Industry 4.0. Business & information systems engineering, 6(4), 239-242.
[2]
Long, J., Shelhamer, E., & Darrell, T. (2015). Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 3431-3440).
[3]
Ronneberger, O., Fischer, P., & Brox, T. (2015, October). U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention (pp. 234-241). Springer, Cham.
[4]
Chen, L. C., Papandreou, G., Schroff, F., & Adam, H. (2017). Rethinking atrous convolution for semantic image segmentation. arXiv preprint arXiv:1706.05587.
[5]
He, K., Gkioxari, G., Dollár, P., & Girshick, R. (2017). Mask r-cnn. In Proceedings of the IEEE international conference on computer vision (pp. 2961-2969).
[6]
Masci, J., Meier, U., Ciresan, D., Schmidhuber, J., & Fricout, G. (2012, June). Steel defect classification with max-pooling convolutional neural networks. In The 2012 international joint conference on neural networks (IJCNN) (pp. 1-6). IEEE.
[7]
Faghih-Roohi, S., Hajizadeh, S., Núnez, A., Babuska, R., & De Schutter, B. (2016, July). Deep convolutional neural networks for detection of rail surface defects. In 2016 International joint conference on neural networks (IJCNN) (pp. 2584-2589). IEEE.
[8]
Chen, L. C., Zhu, Y., Papandreou, G., Schroff, F., & Adam, H. (2018). Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV) (pp. 801-818).
[9]
Weimer, D., Scholz-Reiter, B., & Shpitalni, M. (2016). Design of deep convolutional neural network architectures for automated feature extraction in industrial inspection. CIRP Annals, 65(1), 417-420.
[10]
Racki, D., Tomazevic, D., & Skocaj, D. (2018, March). A compact convolutional neural network for textured surface anomaly detection. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV) (pp. 1331-1339). IEEE.
[11]
Dong, X., Taylor, C. J., & Cootes, T. F. (2020). Defect detection and classification by training a generic convolutional neural network encoder. IEEE Transactions on Signal Processing, 68, 6055-6069.
[12]
Damacharla, P., Rao, A., Ringenberg, J., & Javaid, A. Y. (2021, May). TLU-NET: a deep learning approach for automatic steel surface defect detection. In 2021 International Conference on Applied Artificial Intelligence (ICAPAI) (pp. 1-6). IEEE.
[13]
Lin, H., Li, B., Wang, X., Shu, Y., & Niu, S. (2019). Automated defect inspection of LED chip using deep convolutional neural network. Journal of Intelligent Manufacturing, 30(6), 2525-2534.
[14]
Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 1097-1105.
[15]
Tabernik, D., Šela, S., Skvarč, J., & Skočaj, D. (2020). Segmentation-based deep-learning approach for surface-defect detection. Journal of Intelligent Manufacturing, 31(3), 759-776.
[16]
Božič, J., Tabernik, D., & Skočaj, D. (2021). Mixed supervision for surface-defect detection: from weakly to fully supervised learning. Computers in Industry, 129, 103459.
[17]
Božič, J., Tabernik, D., & Skočaj, D. (2021, January). End-to-end training of a two-stage neural network for defect detection. In 2020 25th International Conference on Pattern Recognition (ICPR) (pp. 5619-5626). IEEE.
[18]
Wieler, M., & Hahn, T. (2007). Weakly supervised learning for industrial optical inspection. In DAGM symposium in.
[19]
Qian, K. (2019, December). Automated detection of steel defects via machine learning based on real-time semantic segmentation. In Proceedings of the 3rd International Conference on Video and Image Processing (pp. 42-46).
[20]
Bergmann, P., Fauser, M., Sattlegger, D., & Steger, C. (2020). Uninformed students: Student-teacher anomaly detection with discriminative latent embeddings. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (pp. 4183-4192).
[21]
Kim, S., Kim, W., Noh, Y. K., & Park, F. C. (2017, May). Transfer learning for automated optical inspection. In 2017 International Joint Conference on Neural Networks (IJCNN) (pp. 2517-2524). IEEE.
[22]
Lin, Z., Ye, H., Zhan, B., & Huang, X. (2020). An efficient network for surface defect detection. Applied Sciences, 10(17), 6085.
[23]
Wang, T., Chen, Y., Qiao, M., & Snoussi, H. (2018). A fast and robust convolutional neural network-based defect detection model in product quality control. The International Journal of Advanced Manufacturing Technology, 94(9), 3465-3471.
[24]
Liu, Y., Yuan, Y., Balta, C., & Liu, J. (2020). A Light-Weight Deep-Learning Model with Multi-Scale Features for Steel Surface Defect Classification. Materials, 13(20), 4629.
[25]
Czimmermann, T., Ciuti, G., Milazzo, M., Chiurazzi, M., Roccella, S., Oddo, C. M., & Dario, P. (2020). Visual-based defect detection and classification approaches for industrial applications—a survey. Sensors, 20(5), 1459.
[26]
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., ... & Houlsby, N. (2020). An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929.
[27]
Huang, Y., Qiu, C., Wang, X., Wang, S., & Yuan, K. (2020). A compact convolutional neural network for surface defect inspection. Sensors, 20(7), 1974.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
ICIAI '22: Proceedings of the 2022 6th International Conference on Innovation in Artificial Intelligence
March 2022
240 pages
ISBN:9781450395502
DOI:10.1145/3529466
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 04 June 2022

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. deep learning
  2. industrial quality inspection
  3. surface anomaly detection
  4. transformer

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

Conference

ICIAI 2022

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)18
  • Downloads (Last 6 weeks)0
Reflects downloads up to 25 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media