Skip to main content
Log in

Anomaly detection of core failures in die casting X-ray inspection images using a convolutional autoencoder

  • Original Paper
  • Published:
Machine Vision and Applications Aims and scope Submit manuscript

Abstract

Core failure inspection is an important issue in die casting. The inspection process is often carried out by manually examining X-ray images. However, human visual inspection suffers from individual biases and eye fatigues. Computer-vision-based automatic inspection, if it can achieve equal to or better than human performance, is favored to assist the inspectors to achieve better quality control. Most existing works are heavily relied on the supervised methods, which require enormous labeling and cannot be deployed quickly and economically. This is particularly difficult for a die casting plant that has many different types of products. Labeling each type of product before applying automated inspection may not be feasible in practice. It is therefore necessary to investigate unsupervised methods for die casting products. In this research, an inspection framework built on top of convolutional autoencoder (CAE) is designed and developed to inspect core failures from real-world die casting X-ray images in an unsupervised manner. Identification of good and scrap product, and localization of the defect are achieved in a single network. The framework is designed to be easily generalized to other image inspection scenarios. The area of interest for inspection is first extracted automatically through the Hough transformation. Then the preprocessed image is inspected by CAE. The noises of the model are removed using edge detection. It achieved an impressive 97.45% classification accuracy on average, and precisely pinpointed the defect regions with a small training set of 30 images.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14

Similar content being viewed by others

References

  1. Benmoussat, M., Guillaume, M., Caulier, Y., Spinnler, K.: Automatic metal parts inspection: use of thermographic images and anomaly detection algorithms. Infrared Phys. Technol. 61, 68–80 (2013)

    Article  Google Scholar 

  2. Bian, X., Lim, S.N., Zhou, N.: Multiscale fully convolutional network with application to industrial inspection. In: 2016 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 1–8. IEEE (2016)

  3. Chalapathy, R., Chawla, S.: Deep learning for anomaly detection: a survey. arXiv:1901.03407 (2019)

  4. Chen, P.H., Ho, S.S.: Is overfeat useful for image-based surface defect classification tasks? In: 2016 IEEE International Conference on Image Processing (ICIP), pp. 749–753. IEEE (2016)

  5. Davies, E.: Circularity-a new principle underlying the design of accurate edge orientation operators. Image Vis. Comput. 2(3), 134–142 (1984)

    Article  Google Scholar 

  6. Davies, E.R.: Computer and machine vision: theory, algorithms, practicalities. Academic Press, London (2012)

    Google Scholar 

  7. Dumoulin, V., Visin, F.: A guide to convolution arithmetic for deep learning. arXiv:1603.07285 (2016)

  8. Géron, A.: Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems. O’Reilly Media (2019)

  9. Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., Bengio, Y.: Generative adversarial nets. In: Advances in Neural Information Processing Systems, pp. 2672–2680 (2014)

  10. Hu, G., Huang, J., Wang, Q., Li, J., Xu, Z., Huang, X.: Unsupervised fabric defect detection based on a deep convolutional generative adversarial network. Text. Res. J. 90(3–4), 247–270 (2020)

    Article  Google Scholar 

  11. Jin, B., Tan, Y., Nettekoven, A., Chen, Y., Topcu, U., Yue, Y., Vincentelli, A.S.: An encoder-decoder based approach for anomaly detection with application in additive manufacturing. arXiv:1907.11778 (2019)

  12. Kang, C.W., Ramzan, M.B., Sarkar, B., Imran, M.: Effect of inspection performance in smart manufacturing system based on human quality control system. Int. J. Adv. Manuf. Technol. 94(9), 4351–4364 (2018)

    Article  Google Scholar 

  13. Kimura, M., Yanagihara, T.: Anomaly detection using gans for visual inspection in noisy training data. In: Asian Conference on Computer Vision, pp. 373–385. Springer (2018)

  14. Kuo, C.F.J., Hsu, C.T.M., Liu, Z.X., Wu, H.C.: Automatic inspection system of led chip using two-stages back-propagation neural network. J. Intell. Manuf. 25(6), 1235–1243 (2014)

    Article  Google Scholar 

  15. Lehr, J., Sargsyan, A., Pape, M., Philipps, J., Krüger, J.: Automated optical inspection using anomaly detection and unsupervised defect clustering. In: 2020 25th IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), vol. 1, pp. 1235–1238. IEEE (2020)

  16. Li, J., Xu, X., Gao, L., Wang, Z., Shao, J.: Cognitive visual anomaly detection with constrained latent representations for industrial inspection robot. Appl. Soft Comput. 95, 106539 (2020)

    Article  Google Scholar 

  17. Lin, H., Li, B., Wang, X., Shu, Y., Niu, S.: Automated defect inspection of led chip using deep convolutional neural network. J. Intell. Manuf. 30(6), 2525–2534 (2019)

    Article  Google Scholar 

  18. Liu, K., Li, A., Wen, X., Chen, H., Yang, P.: Steel surface defect detection using gan and one-class classifier. In: 2019 25th International Conference on Automation and Computing (ICAC), pp. 1–6. IEEE (2019)

  19. Long, J., Shelhamer, E., Darrell, T.: Fully convolutional networks for semantic segmentation. In: Proceedings of the IEEE Conference on Computer Vision and Pattern recognition, pp. 3431–3440 (2015)

  20. Masci, J., Meier, U., Ciresan, D., Schmidhuber, J., Fricout, G.: Steel defect classification with max-pooling convolutional neural networks. In: The 2012 International Joint Conference on Neural Networks (IJCNN), pp. 1–6. IEEE (2012)

  21. Mery, D.: Aluminum casting inspection using deep learning: a method based on convolutional neural networks. J. Nondestr. Eval. 39(1), 12 (2020)

    Article  Google Scholar 

  22. Newman, T.S., Jain, A.K.: A survey of automated visual inspection. Comput. Vis. Image Underst. 61(2), 231–262 (1995)

    Article  Google Scholar 

  23. Oliveira, H., Correia, P.L.: Crackit—an image processing toolbox for crack detection and characterization. In: 2014 IEEE International Conference on Image Processing (ICIP), pp. 798–802 (2014). https://doi.org/10.1109/ICIP.2014.7025160

  24. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., Duchesnay, E.: Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011)

    MathSciNet  MATH  Google Scholar 

  25. Racki, D., Tomazevic, D., Skocaj, D.: 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 (2018)

  26. Radford, A., Metz, L., Chintala, S.: Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv:1511.06434 (2015)

  27. Silvén, O., Niskanen, M., Kauppinen, H.: Wood inspection with non-supervised clustering. Mach. Vis. Appl. 13(5–6), 275–285 (2003)

    Article  Google Scholar 

  28. Staar, B., Lütjen, M., Freitag, M.: Anomaly detection with convolutional neural networks for industrial surface inspection. Procedia CIRP 79, 484–489 (2019)

    Article  Google Scholar 

  29. Tabernik, D., Šela, S., Skvarč, J., Skočaj, D.: Segmentation-based deep-learning approach for surface-defect detection. J. Intell. Manuf. 31(3), 759–776 (2020)

    Article  Google Scholar 

  30. Yi, L., Li, G., Jiang, M.: An end-to-end steel strip surface defects recognition system based on convolutional neural networks. Steel Res. Int. 88(2), 1600068 (2017)

    Article  Google Scholar 

Download references

Acknowledgements

This work was partially funded by Purdue Polytechnic Institute.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Baijian Yang.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Tang, W., Vian, C.M., Tang, Z. et al. Anomaly detection of core failures in die casting X-ray inspection images using a convolutional autoencoder. Machine Vision and Applications 32, 102 (2021). https://doi.org/10.1007/s00138-021-01226-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s00138-021-01226-1

Keywords

Navigation