Cross-Dataset Benchmarking of Deep Learning Models for Surface Defect Classification in Metal Parts
Source abstract
Abstract
Accurate surface defect classification is critical for industrial quality control. Although Deep Learning achieves strong results on individual datasets, most prior studies benchmark only a narrow set of models under inconsistent pipelines, limiting comparability and industrial relevance. This work introduces the first systematic benchmark of ten architectures—CNNs (CNN, ResNet18/50), lightweight models (MobileNetV2, SuperSimpleNet, GhostNet, EfficientNetV2), Vision Transformers (Swin Transformer), a hybrid CNN–Transformer (CoAtNet), and a one-stage detector (YOLOv12)—across five public defect datasets (NEU-DET, X-SDD, KolektorSDD2, DAGM, MTDD) under a unified pipeline. Results show that Swin Transformer and CoAtNet achieve the best performance (mean F1-scores 90.8% and 85.5%), while EfficientNetV2 underperformed (41.9%), underscoring the need for domain-specific benchmarks. Lightweight models such as MobileNetV2, GhostNet, and SuperSimpleNet deliver competitive accuracy at much lower cost, offering practical solutions for edge deployment. By bridging the gap between academic benchmarks and manufacturing requirements, this study provides actionable guidance for selecting defect detection models in automated inspection.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Industrial Vision Systems and Defect Detection · Machine Learning in Materials Science
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Faculdade de Engenharia, Universidade do Porto (FEUP), Rua Dr. Roberto Frias, 4200-465 Porto, Portugal
INEGI—Institute of Science and Innovation in Mechanical and Industrial Engineering, Rua Dr. Roberto Frias, 4200-465 Porto, Portugal
References (26)
Show source-provided references
1. Feng, X., Gao, X., and Luo, L. (2021). A ResNet50-Based Method for Classifying Surface Defects in Hot-Rolled Strip Steel. Mathematics, 9.10.3390/math9192359 ↗
2. Feature optimization-guided high-precision and real-time metal surface defect detection network10.1038/s41598-024-83430-3 ↗
3. A lightweight algorithm for steel surface defect detection using improved YOLOv810.1038/s41598-025-93469-5 ↗
4. Konovalenko, I., Maruschak, P., Brezinová, J., Prentkovskis, O., and Brezina, J. (2022). Research of U-Net-Based CNN Architectures for Metal Surface Defect Detection. Machines, 10.10.3390/machines10050327 ↗
5. Liu, Y., Qin, Y., Lin, Z., Xia, H., and Wang, C. (2024). Detection of Scratch Defects on Metal Surfaces Based on MSDD-UNet. Electronics, 13.10.3390/electronics13163241 ↗
6. Shiferaw, T.G., and Yao, L. (2024). Autoencoder-Based Unsupervised Surface Defect Detection Using Two-Stage Training. J. Imaging, 10.10.3390/jimaging10050111 ↗
7. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2023). Attention Is All You Need. arXiv.
8. RFAConv-CBM-ViT: Enhanced vision transformer for metal surface defect detection10.1007/s11227-024-06662-0 ↗
9. Metal surface defect detection using SLF-YOLO enhanced YOLOv8 model10.1038/s41598-025-94936-9 ↗
10. Wi, T., Yang, M., Park, S., and Jeong, J. (2024). D2-SPDM: Faster R-CNN-Based Defect Detection and Surface Pixel Defect Mapping with Label Enhancement in Steel Manufacturing Processes. Appl. Sci., 14.10.3390/app14219836 ↗
11. LAACNet: Lightweight adaptive activation convolution network-based defect detection on polished metal surfaces10.1016/j.engappai.2024.108482 ↗
12. Multi-scale target detection of metal surface defects in additive manufacturing based on reinforcement learning10.1016/j.engappai.2025.112754 ↗
13. Northeastern University (2025, July 09). NEU-DET Surface Defect Database, 2024. Available online: http://faculty.neu.edu.cn/yunhyan/NEU_surface_defect_database.html.
14. Aligah, S.A. (2025, July 09). X-SDD Dataset, Kaggle, 2023. Available online: https://www.kaggle.com/datasets/sayelabualigah/x-sdd.
15. Mixed supervision for surface-defect detection: From weakly to fully supervised learning10.1016/j.compind.2021.103459 ↗
16. Wieler, M., Hahn, T., and Hamprecht, F.A. (2007). Weakly Supervised Learning for Industrial Optical Inspection, Collaboratory for Image Processing (HCI).
17. Carvalho, P., Durupt, A., and Grandvalet, Y. (2022). A Survey of Machine Learning Approaches for Visual Inspection on the DAGM Dataset. Advances in Manufacturing Technology XXXV, IOP.10.3233/ATDE220600 ↗
18. Huang, Y., Qiu, C., Guo, Y., Wang, X., and Yuan, K. (2024). Surface Defect Saliency of Magnetic Tile. IEEE International Conference on Automation Science and Engineering (CASE), IEEE.
19. He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep Residual Learning for Image Recognition. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE.10.1109/CVPR.2016.90 ↗
20. Sandler, M., Howard, A.G., Zhu, M., Zhmoginov, A., and Chen, L.-C. (2018). MobileNetV2: Inverted Residuals and Linear Bottlenecks. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE.10.1109/CVPR.2018.00474 ↗
21. Rolih, B., Fučka, M., and Skočaj, D. (2024). SuperSimpleNet: Unifying Unsupervised and Supervised Learning for Fast and Reliable Surface Defect Detection. International Conference on Pattern Recognition, Springer.10.1007/978-3-031-78192-6_4 ↗
22. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021). Swin Transformer: Hierarchical Vision Transformer using Shifted Windows. Proceedings of the IEEE/CVF International Conference on Computer Vision, IEEE.10.1109/ICCV48922.2021.00986 ↗
23. Tan, M., and Le, Q.V. (2021). EfficientNetV2: Smaller Models and Faster Training. arXiv.
24. Han, K., Wang, Y., Tian, Q., Guo, J., Xu, C., and Xu, C. (2020). GhostNet: More Features from Cheap Operations. arXiv.10.1109/CVPR42600.2020.00165 ↗
25. Dai, Z., Liu, H., Le, Q.V., and Tan, M. (2021). CoAtNet: Marrying Convolution and Attention for All Data Sizes. arXiv.
26. Tian, Y., Ye, Q., and Doermann, D. (2025). YOLOv12: Attention-Centric Real-Time Object Detectors. arXiv.