Log in

Casting-DETR: An End-to-End Network for Casting Surface Defect Detection

  • Technical Paper
  • Published:
International Journal of Metalcasting Aims and scope Submit manuscript

Abstract

The task of utilizing machine vision for the detection of casting surface defects is characterized by small targets, real-time performance, and ease of mobility. The direct application of current mainstream object detection networks for defect detection presents issues of low accuracy and efficiency. Consequently, in this paper, we introduce Casting-DETR, an end-to-end network designed for casting surface defect detection. To assess and validate the model’s performance, 554 images of casting samples with surface defects were employed. Casting-DETR achieved an impressive detection rate of 98.97% on the test set, with a single image detection time of 91.5ms. Furthermore, a real-time detection system, built using PyQT6, was tested in four different environments. Casting-DETR exhibited exceptional performance, maintaining a single-frame detection time of approximately 90 ms, demonstrating the model’s high robustness and suitability for real-time detection. The Casting-DETR network proposed in this paper is an end-to-end solution with rapid convergence, superior detection accuracy, and swift detection speeds, offering a fresh perspective for similar detection tasks within the industry.

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

Access this article

Price includes VAT (Germany)

Instant access to the full article PDF.

Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12

Similar content being viewed by others

References

  1. A.E. Kopper, D. Apelian, Predicting quality of castings via supervised learning method. Int. Metalcast. 16, 93–105 (2022). https://doi.org/10.1007/s40962-021-00606-7

    Article  Google Scholar 

  2. S.M.Y. Lau, D. Eisenmann, F.E. Peters, Development of an image analysis protocol to define noise in wet magnetic particle inspection. Int. Metalcast. 15, 1317–1325 (2021). https://doi.org/10.1007/s40962-020-00566-4

    Article  Google Scholar 

  3. T. Kim, K. Behdinan, Advances in machine learning and deep learning applications towards wafer map defect recognition and classification: a review. J. Intell. Manuf. (2022). https://doi.org/10.1007/s10845-022-01994-1

  4. Y.H. Sha, Z.Z. He, J.W. Du, Z.Z.Y. Zhu, X.N. Lu, Intelligent detection technology of flip chip based on H-SVM algorithm. Eng. Fail. Anal. 134, 106032 (2022). https://doi.org/10.1016/j.engfailanal.2022.106032

    Article  Google Scholar 

  5. K. Yildiz, Dimensionality reduction-based feature extraction and classification on fleece fabric images. Signal Image Video Process. 11(2), 317–323 (2017)

    Article  Google Scholar 

  6. J. Dong, X. Wang, D. Li, B. Tang, Z. Li, Visual inspection method for surface defects of steel pipes based on improved k-means algorithm. J. Wuhan Univ. Sci. Technol. 43(6), 439–446 (2020)

    Google Scholar 

  7. Y. Lin, Y. **ang, Y. Lin, J. Yu, Defect detection system for optical element surface based on machine vision. in Paper Presented at the 2nd International Conference on Information Systems and Computer Aided Education (ICISCAE), Dalian, China (2019), pp. 415–418. https://doi.org/10.1109/ICISCAE48440.2019.221665

  8. K.Y. Chen, Z.Y. Zeng, J.F. Yang, A deep region-based pyramid neural network for automatic detection and multi-classification of various surface defects of aluminum alloys. J. Build. Eng. 43, 102523 (2021). https://doi.org/10.1016/j.jobe.2021.102523

    Article  Google Scholar 

  9. L. Duan, K. Yang, L. Ruan, Research on automatic recognition of casting defects based on deep learning. IEEE Access. 9, 12209–12216 (2020). https://doi.org/10.1109/ACCESS.2020.3048432

    Article  Google Scholar 

  10. X. Cheng, J. Yu, Retinanet with difference channel attention and adaptively spatial feature fusion for steel surface defect detection. IEEE Trans. Instrum. Meas. 70, 1–11 (2021). https://doi.org/10.1109/TIM.2020.3040485

    Article  Google Scholar 

  11. B. Zhang, S.Q. Fang, Z.X. Li, Research on surface defect detection of rare-earth magnetic materials based on improved SSD. Complexity (2021). https://doi.org/10.1155/2021/4795396

    Article  Google Scholar 

  12. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A N. Gomez, L. Kaiser, I. Polosukhin, Attention is all you need. in Paper Presented at the 31st International Conference on Neural Information Processing Systems, Long Beach, California, USA, pp. 6000–6010, https://doi.org/10.5555/3295222.3295349 (2017)

  13. A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X.H. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, N. Houlsby, An Image is Worth 16\(\times \)16 Words: Transformers for Image Recognition at Scale. Preprint at ar**v:2010.11929 (2020)

  14. N. Carion, F. Massa, G. Synnaeve, N. Usunier, A. Kirillov, S. Zagoruyko, End-to-end object detection with transformers. Paper presented at the Computer Vision—ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part I, pp. 213–229, https://doi.org/10.1007/978-3-030-58452-8_13 (2021)

  15. J.C. Cong, H.R. Cong, F.J. Li, J.H. Zhu, M.Z. Feng, A.L. Jiang, C.T. Cheng, F.M. Pi, H. Wen, D. Cao, G.F. Shun, Y. He, S.P. Zhang, Q.K. Liu, C.M. Zhou, C.G. Ai, Y.W. Zhao, P. Wang, H.S. Yang, Y.Q. Liu, L.W. Cao, Q.Z. Song, M. Tian, L. **ang, L.L. Huang, T. Chen, P. Shun, L.F. Tong, J. Liu, L.F. Cui, J.X. Shun, W.Z. Huang, X.W. Chen, X.H. Chi, Cast irons-classification and designation of casting imperfection. GB/T 41972-2022. Standardization Administration of the People’s Republic of China, Bei**g (2022)

  16. P. Bourhis, J.L. Reutter, F. Suárez, D. Vrgoç, PODS ’17: proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI symposium on principles of database systems. Paper presented at the Association for Computing Machinery, New York, USA, pp. 123–135 (2017)

  17. T. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, C.L. Zitnick, P. Dollár, Microsoft COCO: Common Objects in Context. Preprint at ar**v:1405.0312 (2014)

  18. K. He, X. Zhang, S. Ren, J. Sun, deep residual learning for image recognition. Paper presented at the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, pp. 770–778. https://doi.org/10.1109/CVPR.2016.90 (2016)

  19. Q. Hou, D. Zhou, J. Feng, Coordinate Attention for Efficient Mobile Network Design. Paper presented at the 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, pp. 13708–13717, https://doi.org/10.1109/CVPR46437.2021.01350(2021)

  20. X. Zhu, W. Su, L. Lu, B. Li, X. Wang, J. Dai, Deformable DETR: deformable transformers for end-to-end object detection. Preprint at ar**v:2010.04159 (2020)

  21. S. Liu, F. Li, H. Zhang, X. Yang, X. Qi, H. Su, J. Zhu, L. Zhang, DAB-DETR: dynamic anchor boxes are better queries for DETR. Preprint at ar**v:2201.12329 (2022)

  22. Z. Cai, S. Liu, G. Wang, Z. Ge, X. Zhang, D. Huang, Align-DETR: improving DETR with simple IoU-aware BCE loss. Preprint at ar**v:2304.07527 (2023)

  23. D. Meng, X. Chen, Z. Fan, G. Zeng, H. Li, Y. Yuan, L. Sun, J. Wang, Conditional DETR for fast training convergence. Paper presented at the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, pp. 3631–3640, https://doi.org/10.1109/ICCV48922.2021.00363 (2021)

  24. T. Lin, P. Dollár, R. Girshick, K. He, B. Hariharan, S. Belongie, Feature pyramid networks for object detection. Paper presented at the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, pp. 936–944, https://doi.org/10.1109/CVPR.2017.106 (2017)

  25. J. Dai, H. Qi, Y. **ong, Y. Li, G. Zhang, H. Hu, W. Wei, Deformable convolutional networks. Paper Presented at the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, pp. 764–773, https://doi.org/10.1109/ICCV.2017.89 (2017)

  26. J. Hu, L. Shen, G. Sun, Squeeze-and-excitation networks. Paper presented at the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, pp. 7132–7141, https://doi.org/10.1109/CVPR.2018.00745 (2018)

  27. S. Woo, J. Park, Y. J. Lee, I.S. Kweon, CBAM: convolutional block attention module. Paper Presented at the Computer Vision—ECCV 2018, Munich, Germany, pp. 3–19, https://doi.org/10.1007/978-3-030-01234-2_1 (2018)

  28. M. Madléna, P. Hermann, M. Jáhn, P. Fejérdy, Caries prevalence and tooth loss in hungarian adult population: results of a national survey. 8(364). https://doi.org/10.1186/1471-2458-8-364 (2008)

  29. T. Lin, P. Goyal, R. Girshick, K. He, P. Dollár, Focal loss for dense object detection. Paper Presented at the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, pp. 2999–3007, https://doi.org/10.1109/ICCV.2017.324 (2017)

  30. W. Liu, D. Anguelov, D. Erhan, C. Szegedy, S. Reed, C.Y. Fu, A.C. Berg, SSD: single shot MultiBox detector. Paper presented at the Proceedings of 2016 European Conference on Computer Vision (ECCV), Berlin, Germany, pp. 21–37, https://doi.org/10.1007/978-3-319-46448-0_2 (2016)

  31. S. Ren, K. He, R. Girshick, J. Sun, Faster r-cnn: towards real-time object detection with region proposal networks. IEEE Trans. Pattern Anal. Mach. Intell. 39(6), 1137–1149 (2017)

    Article  Google Scholar 

  32. D. Su, H. Zhang, H. Chen, J. Yi, P.Y. Chen, Y. Gao, Is robustness the cost of accuracy? A comprehensive study on the robustness of 18 deep image classification models. Paper presented at the proceedings of 2018 European conference on computer vision (ECCV), Berlin, Germany, pp. 644–661, https://doi.org/10.1007/978-3-030-01258-82_39 (2018)

Download references

Funding

This work was supported by [China National Key Research and Development Project](Grant Number [2017YFE0113200]), and by [Anhui University of Technology youth Fund] (Grant Number [QZ202217]), and by [Anhui Provincial Natural Science Foundation](Grant Number [2108085ME173]), and by [Open Project of China International Science and Technology Cooperation Base on Intelligent Equipment Manufacturing in Special Service Environment](Grant Numbers [ISTC2021KF07], [ISTC2021KF08] and [ISTC2022KF04]).

Author information

Authors and Affiliations

Authors

Contributions

All authors contributed to the study conception and design. The first draft of the manuscript was written by [Quancheng Pu] and all authors commented on previous versions of the manuscript. The images of self-built dataset were taken by [Hui Zhang]. [Quancheng Pu] and [Hui Zhang] are co-first authors. All authors read and approved the final manuscript.

Corresponding authors

Correspondence to **ang-rong Xu or Long Zhang.

Ethics declarations

Conflict of interest

The authors have no relevant financial or non-financial interests to disclose.

Additional information

Publisher's Note

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

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Pu, Qc., Zhang, H., Xu, Xr. et al. Casting-DETR: An End-to-End Network for Casting Surface Defect Detection. Inter Metalcast (2024). https://doi.org/10.1007/s40962-023-01212-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s40962-023-01212-5

Keywords

Navigation