SDDNet: Two-Stage Network for Forgings Surface Defect Detection
Abstract
1. Introduction
- The UPerNet segmentation algorithm is introduced into SDDNet as UperSegLayer, effectively suppressing background-induced asymmetry and improving detection accuracy by separating the forging surface from the production-line background.
- A new module, SVIM, is proposed. Integrating SVIM into the RTMDet backbone markedly enhances the network’s multi-scale feature extraction capability, supporting the representation of multi-scale symmetric feature structures while facilitating a lightweight design.
- SVIM is combined with RFD to construct SVI-RFD. Incorporating SVI-RFD into the RTMDet neck not only enables more efficient multi-scale feature extraction but also helps preserve symmetric feature patterns during downsampling, thereby enhancing robustness in complex environments.
2. Materials and Methods
2.1. Proposed Method
2.1.1. UperSegLayer
2.1.2. SVIM
2.1.3. SVI-RFD
2.2. The FDMPI Dataset
| Algorithm 1 Defect Detection Sample Generation using Latent Diffusion. |
|
2.3. NEU-DET Dataset
2.4. Hardware and Software
2.5. Evaluation Metrics
3. Results
3.1. Ablation Experiments
3.2. Comparative Experiments
3.2.1. Comparisons on FDMPI
3.2.2. Comparisons on NEU-DET
4. Discussion
5. Conclusions
- To address background noise in FDMPI images, we integrated the UPerNet algorithm as the UperSegLayer for background segmentation, effectively reducing noise interference and enhancing detection accuracy.
- We introduced the Scale-Variant Inception Module (SVIM), which, when incorporated into the RTMDet backbone, significantly enhances the network’s multi-scale feature extraction (MFE) capability and facilitates a lightweight design.
- We combined SVIM with Robust Feature Downsampling (RFD) to create the SVI-RFD module. Integrating SVI-RFD into the RTMDet neck not only improves MFE efficiency but also enhances the robustness of the downsampling process.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| FDMPI | Forging Defect Magnetic Particle Inspection |
| SDD | Surface Defect Detection |
| SVIM | Scale-Variant Inception Module |
| MFE | Multi-Scale Feature Extraction |
| AP | Average Precision |
| mAP | Mean Average Precision |
| RTMDet | Real-Time Multi-scale Detection |
| YOLOv8 | You Only Look Once Version 8 |
| DETR | Detection Transformer |
| DINO | A self-supervised approach to transformer networks |
References
- Ameri, R.; Hsu, C.C.; Band, S.S. A systematic review of deep learning approaches for surface defect detection in industrial applications. Eng. Appl. Artif. Intell. 2024, 130, 107717. [Google Scholar]
- Wu, Q.; Dong, K.; Qin, X.; Hu, Z.; Xiong, X. Magnetic particle inspection: Status, advances, and challenges—Demands for automatic non-destructive testing. NDT E Int. 2024, 143, 103030. [Google Scholar] [CrossRef]
- Zhou, M.; Wu, T.; Xia, Z.; He, B.; Kong, L.B.; Su, H. Research progress in deep learning for ceramics surface defect detection. Measurement 2025, 242, 115956. [Google Scholar] [CrossRef]
- Bakunov, A.; Korolev, A.; Kudryavtsev, D.; Petrov, V. A set for magnetic fluorescent-penetrant inspection. Russ. J. Nondestruct. Test. 2005, 41, 170. [Google Scholar] [CrossRef]
- Zhao, Z. Review of non-destructive testing methods for defect detection of ceramics. Ceram. Int. 2021, 47, 4389–4397. [Google Scholar] [CrossRef]
- Qi, S.; Yang, J.; Zhong, Z. A review on industrial surface defect detection based on deep learning technology. In Proceedings of the 3rd International Conference on Machine Learning and Machine Intelligence, Hangzhou, China, 18–20 September 2020; pp. 24–30. [Google Scholar]
- Su, J.; Luo, Q.; Yang, C.; Gui, W.; Silvén, O.; Liu, L. PMSA-DyTr: Prior-modulated and semantic-aligned dynamic transformer for strip steel defect detection. IEEE Trans. Ind. Inform. 2024, 20, 6684–6695. [Google Scholar] [CrossRef]
- Gao, Q.; Wu, M.; Qin, X.; Hua, L. Machine vision driven magnetic particle inspection technology: Principles, applications and trends. Meas. Sci. Technol. 2025. [Google Scholar] [CrossRef]
- Wang, H.; Du, W.; Xu, G.; Sun, Y.; Shen, H. Automated crack detection of train rivets using fluorescent magnetic particle inspection and instance segmentation. Sci. Rep. 2024, 14, 10666. [Google Scholar] [CrossRef] [PubMed]
- Lugin, S.; Müller, D.; Finckbohner, M.; Netzelmann, U. Automated surface defect detection in forged parts by inductively excited thermography and magnetic particle inspection. Quant. Infrared Thermogr. J. 2025, 22, 41–53. [Google Scholar] [CrossRef]
- Niu, L.; Zhang, Y.; Zhang, L.; Zhang, Q.; Luo, W.; Wang, J.; Liu, D.; Ziaie, B.; Velay, X. Study on fold formation mechanism and process optimization in multi-directional die forged valve bodies. PLoS ONE 2025, 20, e0337844. [Google Scholar] [CrossRef] [PubMed]
- Hasan, T.; Tobias, M. Machine learning and deep learning based predictive quality in manufacturing: A systematic review. J. Intell. Manuf. 2022, 33, 1879–1905. [Google Scholar] [CrossRef]
- Saberironaghi, A.; Ren, J.; El-Gindy, M. Defect detection methods for industrial products using deep learning techniques: A review. Algorithms 2023, 16, 95. [Google Scholar] [CrossRef]
- Cha, Y.J.; Choi, W.; Büyüköztürk, O. Deep learning-based crack damage detection using convolutional neural networks. Comput. Civ. Infrastruct. Eng. 2017, 32, 361–378. [Google Scholar]
- Momot, A.; Yakotiuk, V. Modern Trends in Automation of Magnetic Particle Inspection. 2025. Available online: https://ela.kpi.ua/server/api/core/bitstreams/f9d2fc2d-3dbb-4483-9704-c6d765fb5fbc/content (accessed on 10 November 2025).
- Shen, K.; Zhou, X.; Liu, Z. MINet: Multiscale interactive network for real-time salient object detection of strip steel surface defects. IEEE Trans. Ind. Inform. 2024, 20, 7842–7852. [Google Scholar]
- Li, A.; Yang, Y.; Wu, S.; Wu, T.V.; Zhang, Y.; Wu, W.; Zhang, H. Study on non-destructive detection technology of water content and defects in construction materials based on transmission terahertz system. J. Build. Eng. 2025, 104, 112452. [Google Scholar] [CrossRef]
- Mao, J.; Liu, Q.; Wang, Y.; Peng, W.; Yi, J.; Tao, Z.; Zhang, H.; Liu, C. MSRN: Multilevel spatial refinement network for transmission line fastener defect detection. IEEE Trans. Ind. Inform. 2024, 20, 11610–11621. [Google Scholar]
- Yu, T.; Chen, W.; Gao, J.; Hua, P. Intelligent detection method of forgings defects based on improved EfficientNet and memetic algorithm. IEEE Access 2022, 10, 79553–79563. [Google Scholar]
- Wu, Q.; Qin, X.; Dong, K.; Shi, A.; Hu, Z. A learning-based crack defect detection and 3D localization framework for automated fluorescent magnetic particle inspection. Expert Syst. Appl. 2023, 214, 118966. [Google Scholar] [CrossRef]
- Wu, Q.; Hu, Z.; Qin, X.; Huang, B.; Dong, K.; Shi, A. Surface defects 3D localization for fluorescent magnetic particle inspection via regional reconstruction and partial-in-complete point clouds registration. Expert Syst. Appl. 2024, 238, 122225. [Google Scholar]
- Shi, A.; Wu, Q.; Qin, X.; Mao, Z.; Wu, M. Lightweight detector based on knowledge distillation for magnetic particle inspection of forgings. NDT E Int. 2024, 143, 103052. [Google Scholar] [CrossRef]
- Gao, Q.; Wu, Q.; Wu, M.; Qin, X.; Hua, L. Detection and localization system for surface defects of automotive forgings based on machine vision. J. Intell. Manuf. 2025, 1–19. [Google Scholar] [CrossRef]
- Zeng, L.; Zhang, S.; Wang, P.; Li, Z.; Hu, Y.; Xie, T. Defect detection algorithm for magnetic particle inspection of aviation ferromagnetic parts based on improved DeepLabv3+. Meas. Sci. Technol. 2023, 34, 065401. [Google Scholar] [CrossRef]
- Yang, Y.; Zuo, J.; Li, L.; Wang, X.; Yin, Z.; Ding, X. Crack identification method for magnetic particle inspection of bearing rings based on improved YOLOv5. Meas. Sci. Technol. 2024, 35, 065405. [Google Scholar] [CrossRef]
- Duan, J.; Zhang, B.; Zhang, Q.; Qin, J. A light deformable multi-scale defect detection model for irregular small defects with complex background. Eng. Fail. Anal. 2025, 175, 109565. [Google Scholar] [CrossRef]
- Guo, Y.; Zhang, X.; Dong, Z. Car brake disc surface defect detection based on improved YOLOv5. IEEE Access 2024, 12, 68601–68610. [Google Scholar] [CrossRef]
- Xie, Z.; Yu, X.; Gao, X.; Li, K.; Shen, S. Recent advances in conventional and deep learning-based depth completion: A survey. IEEE Trans. Neural Netw. Learn. Syst. 2022, 35, 3395–3415. [Google Scholar] [CrossRef] [PubMed]
- Lyu, C.; Zhang, W.; Huang, H.; Zhou, Y.; Wang, Y.; Liu, Y.; Zhang, S.; Chen, K. Rtmdet: An empirical study of designing real-time object detectors. arXiv 2022. [Google Scholar] [CrossRef]
- Xiao, T.; Liu, Y.; Zhou, B.; Jiang, Y.; Sun, J. Unified perceptual parsing for scene understanding. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 418–434. [Google Scholar]
- Cai, X.; Lai, Q.; Wang, Y.; Wang, W.; Sun, Z.; Yao, Y. Poly kernel inception network for remote sensing detection. In Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; pp. 27706–27716. [Google Scholar]
- Lu, W.; Chen, S.B.; Tang, J.; Ding, C.H.; Luo, B. A robust feature downsampling module for remote-sensing visual tasks. IEEE Trans. Geosci. Remote Sens. 2023, 61, 4404312. [Google Scholar] [CrossRef]
- Papakipos, Z.; Bitton, J. Augly: Data augmentations for adversarial robustness. In Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), New Orleans, LA, USA, 19–20 June 2022; pp. 156–163. [Google Scholar]
- Song, K.; Yan, Y. A noise robust method based on completed local binary patterns for hot-rolled steel strip surface defects. Appl. Surf. Sci. 2013, 285, 858–864. [Google Scholar] [CrossRef]










| Baseline | SVIM | SVI-RFD | UperSegLayer | mAP | AP50 | AP75 | Params/M | |||
|---|---|---|---|---|---|---|---|---|---|---|
| ✓ | 38.3 | 75.0 | 33.5 | 29.0 | 39.7 | 42.6 | 52.3 | |||
| ✓ | ✓ | 42.1 | 80.5 | 39.0 | 33.5 | 42.9 | 47.3 | 37.8 | ||
| ✓ | ✓ | 40.7 | 78.7 | 37.1 | 31.7 | 41.8 | 45.6 | 40.9 | ||
| ✓ | ✓ | 43.7 | 81.7 | 42.2 | 33.5 | 44.9 | 48.7 | 125.4 | ||
| ✓ | ✓ | ✓ | 42.7 | 82.4 | 38.1 | 33.4 | 42.3 | 48.9 | 26.4 | |
| ✓ | ✓ | ✓ | 43.9 | 84.0 | 40.3 | 32.7 | 45.8 | 47.7 | 96.5 | |
| ✓ | ✓ | ✓ | 42.6 | 83.3 | 37.7 | 31.4 | 44.1 | 46.2 | 102.7 | |
| ✓ | ✓ | ✓ | ✓ | 45.5 | 85.2 | 42.9 | 36.5 | 45.6 | 51.4 | 73.8 |
| Methods | Backbone | mAP | AP50 | AP75 | FPS | GFLOPs | Params/M | |||
|---|---|---|---|---|---|---|---|---|---|---|
| Double-Head R-CNN | ResNet50 | 39.5 | 82.1 | 31.5 | 34.5 | 40.1 | 41.4 | 12.2 | 265.3 | 46.9 |
| Dynamic R-CNN | ResNet50 | 38.9 | 79.5 | 32.1 | 35.8 | 38.5 | 43.0 | 15.8 | 245.9 | 41.4 |
| YOLOX-l | CSPDarkNet53 | 37.4 | 78.8 | 29.5 | 28.7 | 38.2 | 42.2 | 68.1 | 158.0 | 54.1 |
| YOLOv8-l | CSPDarknet53(C2f) | 41.1 | 81.0 | 35.6 | 30.9 | 40.6 | 48.3 | 80.4 | 166.5 | 43.8 |
| YOLOV11-l | CSPDarknet53(C3k2) | 40.5 | 82.7 | 36.4 | 30.2 | 41.0 | 45.7 | 87.0 | 160.1 | 45.2 |
| DETR | ResNet50 | 40.9 | 84.0 | 32.6 | 29.3 | 40.6 | 48.0 | 23.6 | 193.6 | 41.5 |
| DINO4scalse | ResNet50 | 36.0 | 79.4 | 26.2 | 32.1 | 36.8 | 39.1 | 17.5 | 265.4 | 47.5 |
| DDQ-DETR4scalse | ResNet50 | 40.9 | 85.1 | 32.5 | 35.8 | 40.7 | 46.8 | 15.1 | 275.8 | 55.3 |
| RT-DETR | ResNet50 | 37.8 | 75.3 | 33.0 | 31.8 | 39.3 | 39.4 | 103.8 | 104.1 | 41.9 |
| RTMDet | CSPNeXt | 38.3 | 75.0 | 33.5 | 29.0 | 39.7 | 42.6 | 75.6 | 167.2 | 52.3 |
| SDDNet (proposed) | SVIM | 45.5 | 85.2 | 42.9 | 36.5 | 45.6 | 51.4 | 50.3 | 235.6 | 73.8 |
| Methods | Backbone | mAP | Cr | In | Pa | PS | RS | Sc | FPS | GFLOPs | Params/M |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Double-Head R-CNN | ResNet50 | 52.3 | 21.7 | 47.7 | 83.8 | 66.5 | 32.1 | 62.3 | 15.2 | 271.6 | 46.9 |
| Dynamic R-CNN | ResNet50 | 60.7 | 19.9 | 59.2 | 88.0 | 92.4 | 32.3 | 72.3 | 18.3 | 264.9 | 41.4 |
| YOLOX-l | CSPDarkNet53 | 58.5 | 21.9 | 56.5 | 87.8 | 89.5 | 36.4 | 58.8 | 69.1 | 155.3 | 54.1 |
| YOLOv8-l | CSPDarknet53(C2f) | 63.4 | 23.8 | 58.0 | 92.7 | 89.7 | 49.9 | 66.4 | 76.4 | 164.8 | 43.8 |
| YOLOV11-l | CSPDarknet53(C3k2) | 61.7 | 23.1 | 57.6 | 92.0 | 89.6 | 47.3 | 64.5 | 84.5 | 153.2 | 45.2 |
| DETR | ResNet50 | 60.8 | 21.7 | 61.6 | 85.6 | 79.1 | 46.9 | 69.7 | 29.7 | 180.8 | 41.5 |
| DINO4scalse | ResNet50 | 67.6 | 23.6 | 63.8 | 90.4 | 94.9 | 57.3 | 75.7 | 17.8 | 233.7 | 47.5 |
| DDQ-DETR4scalse | ResNet50 | 64.8 | 28.8 | 68.4 | 70.0 | 86.7 | 55.2 | 79.6 | 16.6 | 246.1 | 55.3 |
| RT-DETR | ResNet50 | 61.7 | 33.6 | 72.5 | 58.8 | 81.6 | 46.2 | 77.4 | 94.4 | 103.3 | 41.9 |
| RTMDet | CSPNeXt | 64.6 | 26.5 | 57.8 | 92.7 | 92.0 | 49.0 | 69.8 | 79.8 | 159.0 | 52.3 |
| SDDNet (ours) | SVIM | 71.5 | 35.7 | 75.7 | 89.3 | 89.8 | 60.0 | 78.7 | 67.7 | 148.5 | 26.4 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Wang, S.; Gao, D.; Min, B.-W.; Hong, Y.; Xu, T.; Xiong, Z. SDDNet: Two-Stage Network for Forgings Surface Defect Detection. Symmetry 2026, 18, 104. https://doi.org/10.3390/sym18010104
Wang S, Gao D, Min B-W, Hong Y, Xu T, Xiong Z. SDDNet: Two-Stage Network for Forgings Surface Defect Detection. Symmetry. 2026; 18(1):104. https://doi.org/10.3390/sym18010104
Chicago/Turabian StyleWang, Shentao, Depeng Gao, Byung-Won Min, Yue Hong, Tingting Xu, and Zhongyue Xiong. 2026. "SDDNet: Two-Stage Network for Forgings Surface Defect Detection" Symmetry 18, no. 1: 104. https://doi.org/10.3390/sym18010104
APA StyleWang, S., Gao, D., Min, B.-W., Hong, Y., Xu, T., & Xiong, Z. (2026). SDDNet: Two-Stage Network for Forgings Surface Defect Detection. Symmetry, 18(1), 104. https://doi.org/10.3390/sym18010104

