Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Advertisement

Scientific Reports
  • View all journals
  • Search
  • My Account Login
  • Content Explore content
  • About the journal
  • Publish with us
  • Sign up for alerts
  • RSS feed
  1. nature
  2. scientific reports
  3. articles
  4. article
DEENet: an edge-enhanced CNN–Transformer dual-encoder model for steel surface defect detection
Download PDF
Download PDF
  • Article
  • Open access
  • Published: 30 January 2026

DEENet: an edge-enhanced CNN–Transformer dual-encoder model for steel surface defect detection

  • Weihua Pan1,2,
  • Ruijie Zhong1,
  • Junchuan Huang1,
  • Ye Li1,
  • Wenyuan Zhang1,
  • Ting Liu1 &
  • …
  • Yujie Liu2 

Scientific Reports , Article number:  (2026) Cite this article

We are providing an unedited version of this manuscript to give early access to its findings. Before final publication, the manuscript will undergo further editing. Please note there may be errors present which affect the content, and all legal disclaimers apply.

Subjects

  • Engineering
  • Mathematics and computing

Abstract

Steel is an indispensable material in modern industry, and its surface quality directly affects the performance and service life of products. To address problems of insufficient feature extraction capability, weak detection of small defects, and blurred target contours that lead to degraded edge information in steel surface defect detection, this paper proposes a novel edge-enhanced dual-branch steel surface defect recognition model, DEENet. First, a dual-encoder module based on CNN and Transformer is designed to extract image features and enhance the feature extraction capacity of the backbone network. Second, a Dual Channel Fusion module is introduced to perform cross-enhancement between the local features captured by the CNN and the global semantic features modeled by the Transformer, achieving feature complementarity and improving the detection accuracy for small defects. Finally, an edge enhancement module, C2f_EEM, is designed to highlight gradient differences between defective and normal regions through differential operations, thereby strengthening contour information and improving the model’s sensitivity to defect edges. Experimental results on the NEU-DET dataset show that, compared with other algorithms, DEENet achieves a superior mean Average Precision (mAP) of 81.4%, enabling more accurate detection of steel surface defects and providing valuable reference for defect inspection in real-world production scenarios.

Data availability

The publicly available dataset utilized in this research can be accessed via the following link: https://www.kaggle.com/datasets/kaustubhdikshit/neu-surface-defect-database.

References

  1. Li, Q. Y., Li, W. G. & Tian, Z. Q. Surface defect recognition of hot-rolled strip based on self-distillation. China Metall. 34, 126–133. https://doi.org/10.13228/j.boyuan.issn1006-9356.20230527 (2024).

    Google Scholar 

  2. Zhang, C. J. et al. Morphological characteristics and formation causes of mountain-shaped surface cracks on Q355 hot-rolled plate. China Metall. 33, 55–63. https://doi.org/10.13228/j.boyuan.issn1006-9356.20220616 (2023).

    Google Scholar 

  3. Zhang, W. J. et al. Formation mechanism and process optimization of surface defects in hot-dip aluminum-zinc coated strip. Iron Steel 58, 87–95. https://doi.org/10.13228/j.boyuan.issn0449-749x.20220595 (2023).

    Google Scholar 

  4. Kang, Y. L. Progress and prospects of China’s rolling technology during the 13th Five-Year Plan. Iron Steel 56, 1–15. https://doi.org/10.13228/j.boyuan.issn0449-749x.20210324 (2021).

    Google Scholar 

  5. Wang, B., Hu, C., Wang, J., Wang, Y. Y. & Li, N. A novel eddy current testing method and its detection performance. China Metall. 31, 50–54. https://doi.org/10.13228/j.boyuan.issn1006-9356.20200350 (2021).

    Google Scholar 

  6. Chesnokova, A. A., Kalayeva, S. Z. & Ivanova, V. A. Development of a flaw detection material for the magnetic particle method. In J. Phys. Conf. Ser. 881, 012022 (2017).

    Google Scholar 

  7. Feng, X., Gao, X. & Luo, L. X-SDD: A new benchmark for hot rolled steel strip surface defects detection. Symmetry 13, 706 (2021).

    Google Scholar 

  8. Jani, M., Fayyad, J., Al-Younes, Y. & Najjaran, H. Model compression methods for YOLOv5: A review. arXiv 2307.11904 (2023).

  9. Wang, C. Y., Bochkovskiy, A. & Liao, H. Y. M. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In: Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 7464–7475 (2023).

  10. Varghese, R. & Sambath, M. Yolov8: A novel object detection algorithm with enhanced performance and robustness. In Proc. Int. Conf. Adv. Data Eng. Intell. Comput. Syst. (ADICS), 1–6 (2024).

  11. Redmon, J., Divvala, S., Girshick, R. & Farhadi, A. You only look once: Unified, real-time object detection. In Proc. IEEE Conf. Comput. Vis. Pattern Recognit., 779–788 (2016).

  12. Redmon, J. & Farhadi, A. YOLO9000: Better, faster, stronger. In Proc. IEEE Conf. Comput. Vis. Pattern Recognit., 7263–7271 (2017).

  13. Redmon, J. & Farhadi, A. Yolov3: An incremental improvement. arXiv 1804.02767 (2018).

  14. Lu, J., Zhu, M., Ma, X. & Wu, K. Steel strip surface defect detection method based on improved YOLOv5s. Biomimetics 9, 28 (2024).

    Google Scholar 

  15. Lv, B. et al. Research on surface defect detection of strip steel based on improved YOLOv7. Sensors 24, 2667 (2024).

    Google Scholar 

  16. Zhang, W. K. & Liu, J. Steel surface defect detection based on improved YOLOv8s. J. Beijing Inf Sci. Technol. Univ. (Nat. Sci. Ed.) 38, 33–40. https://doi.org/10.16508/j.cnki.11-5866/n.2023.06.005 (2023).

    Google Scholar 

  17. Zhang, L., Wang, Z., Ma, Y. & Li, G. Steel surface defect detection algorithm based on improved YOLOv10. Sci. Rep. 15, 32827 (2025).

    Google Scholar 

  18. Ren, S., He, K., Girshick, R. & Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 28 (2015).

  19. Dai, J., Li, Y., He, K. & Sun, J. R-FCN: Object detection via region-based fully convolutional networks. Adv. Neural Inf. Process. Syst. 29 (2016).

  20. He, K., Gkioxari, G., Dollár, P. & Girshick, R. Mask R-CNN. In Proc. IEEE Int. Conf. Comput. Vis., 2961–2969 (2017).

  21. Xia, B., Luo, H. & Shi, S. Improved Faster R-CNN based surface defect detection algorithm for plates. Comput. Intell. Neurosci. 2022, 3248722 (2022).

    Google Scholar 

  22. Liu, W., Weng, Y. S., Xiao, J. Q. & Xia, Y. Surface defect detection of strip steel using improved Mask R-CNN algorithm. Comput. Eng. Appl. 57, 235–242 (2021).

    Google Scholar 

  23. Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C. Y. & Berg, A. C. SSD: Single shot multibox detector. In Eur. Conf. Comput. Vis., 21–37 (2016).

  24. Liu, X. & Gao, J. Surface defect detection method of hot rolling strip based on improved SSD model. In Int. Conf. Database Syst. Adv. Appl., 209–222 (2021).

  25. Wang, L., Liu, X., Ma, J., Su, W. & Li, H. Real-time steel surface defect detection with improved multi-scale YOLO-v5. Processes 11, 1357 (2023).

    Google Scholar 

  26. Song, X., Cao, S., Zhang, J. & Hou, Z. Steel surface defect detection algorithm based on YOLOv8. Electronics 13, 988 (2024).

    Google Scholar 

  27. Zhou, Y. & Zhao, Z. MPA-YOLO: Steel surface defect detection based on improved YOLOv8 framework. Pattern Recognit. 111, 111897 (2025).

    Google Scholar 

  28. He, L., Zheng, L. & Xiong, J. FMV-YOLO: A steel surface defect detection algorithm for real-world scenarios. Electronics 14, 1143 (2025).

    Google Scholar 

  29. Ayon, S. T. K., Siraj, F. M. & Uddin, J. Steel surface defect detection using learnable memory vision transformer. Comput. Mater. Contin. 82, 1 (2025).

    Google Scholar 

  30. Xu, W. Application of self-supervised learning in steel surface defect detection. J. Mater. Inform. 5, N-A (2025).

  31. Wang, Q., Dong, H. & Huang, H. Swin-Transformer-YOLOv5 for lightweight hot-rolled steel strips surface defect detection algorithm. PLoS ONE 19, e0292082. https://doi.org/10.1371/journal.pone.0292082 (2024).

    Google Scholar 

  32. Liu, H. et al. CGTD-Net: Channel-wise global Transformer-based dual-branch network for industrial strip steel surface defect detection. IEEE Sens. J. 24, 4863–4873. https://doi.org/10.1109/JSEN.2023.3346470 (2024).

    Google Scholar 

  33. Lv, Z. et al. Steel surface defect detection based on MobileViTv2 and YOLOv8. J. Supercomput. 80, 18919–18941. https://doi.org/10.1007/s11227-024-06248-w (2024).

    Google Scholar 

  34. Vasan, V., Sridharan, N. V., Vaithiyanathan, S. & Aghaei, M. Detection and classification of surface defects on hot-rolled steel using vision transformers. Heliyon 10, e38498. https://doi.org/10.1016/j.heliyon.2024.e38498 (2024).

    Google Scholar 

  35. Mao, H. & Gong, Y. Steel surface defect detection based on the lightweight improved RT-DETR algorithm. J. Real-Time Image Process. 22, 28. https://doi.org/10.1007/s11554-024-01611-9 (2025).

    Google Scholar 

  36. Wu, S. et al. SH-DETR: Enhancing steel surface defect detection and classification with an improved transformer architecture. PLoS ONE 20, e0334048. https://doi.org/10.1371/journal.pone.0334048 (2025).

    Google Scholar 

  37. Luo, H. & Xia, Y. Improved RT-DETR approach for steel surface defect identification. Int. J. Sci. Eng. Appl. 13, 11–16 (2024).

    Google Scholar 

  38. Zhang, X., Song, Y., Song, T., Yang, D., Ye, Y., Zhou, J. & Zhang, L. AKConv: Convolutional kernel with arbitrary sampled shapes and arbitrary number of parameters. arXiv 2311.11587 (2023).

  39. Zhao, W., Chen, F., Huang, H., Li, D. & Cheng, W. A new steel defect detection algorithm based on deep learning. Comput. Intell. Neurosci. 2021, 5592878 (2021).

    Google Scholar 

  40. Zhao, Y., Lv, W., Xu, S., Wei, J., Wang, G., Dang, Q. et al. DETRs beat YOLOs on real-time object detection. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 16965–16974 (2024).

  41. Qian, K., Zou, L., Wang, Z. & Wang, W. Metallic surface defect recognition network based on global feature aggregation and dual context decoupled head. Appl. Soft Comput. 158, 111589 (2024).

    Google Scholar 

  42. Zheng, H., Chen, X., Cheng, H., Du, Y. & Jiang, Z. MD-YOLO: Surface defect detector for industrial complex environments. Opt. Laser Eng. 178, 108170 (2024).

    Google Scholar 

Download references

Funding

Partial financial support was received from the Guangdong Provincial Science and Technology Innovation Strategy Special Fund—“Climbing Program” (Grant No. pdjh2023b0680), the 2025 Guangdong Higher Education Key Discipline Construction Project for Research Capacity Enhancement (Grant No. 2025ZDJS096), the University-level Teaching and Education Reform Project (Grant No. 2023XGXK008), the University-level Student Sustainable Science and Technology Innovation Project “Smart Campus Integrated Service Platform for Student Affairs” and “College Student Labor Education Management System Based on Multi-dimensional Data Collection and Fusion”, as well as the Guangzhou Institute of Technology Fund (Grant No. XJ2025010001).

Author information

Authors and Affiliations

  1. Guangzhou Institute of Science and Technology, Guang Zhou, 510540, China

    Weihua Pan, Ruijie Zhong, Junchuan Huang, Ye Li, Wenyuan Zhang & Ting Liu

  2. School of Computer Sciences, Universiti Sains Malaysia, 11800, Gelugor, Pulau Pinang, Malaysia

    Weihua Pan & Yujie Liu

Authors
  1. Weihua Pan
    View author publications

    Search author on:PubMed Google Scholar

  2. Ruijie Zhong
    View author publications

    Search author on:PubMed Google Scholar

  3. Junchuan Huang
    View author publications

    Search author on:PubMed Google Scholar

  4. Ye Li
    View author publications

    Search author on:PubMed Google Scholar

  5. Wenyuan Zhang
    View author publications

    Search author on:PubMed Google Scholar

  6. Ting Liu
    View author publications

    Search author on:PubMed Google Scholar

  7. Yujie Liu
    View author publications

    Search author on:PubMed Google Scholar

Contributions

W.P. designed the model architecture and overall experimental strategy and also contributed to the experiments. R.Z. and Y.Li. performed the experiments and assisted with analysis. J.H. and W.Z. prepared the figures and visualizations. T.L. and Y.Liu. (corresponding authors) organized the research narrative, supervised the study, and revised the manuscript. All authors discussed the results, reviewed, and approved the final manuscript.

Corresponding authors

Correspondence to Ting Liu or Yujie Liu.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s note

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

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Pan, W., Zhong, R., Huang, J. et al. DEENet: an edge-enhanced CNN–Transformer dual-encoder model for steel surface defect detection. Sci Rep (2026). https://doi.org/10.1038/s41598-026-36390-9

Download citation

  • Received: 21 November 2025

  • Accepted: 12 January 2026

  • Published: 30 January 2026

  • DOI: https://doi.org/10.1038/s41598-026-36390-9

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Keywords

  • DEENet
  • Dual-encoder
  • CNN–transformer backbone
  • Edge-enhancement
  • Industrial inspection
Download PDF

Advertisement

Explore content

  • Research articles
  • News & Comment
  • Collections
  • Subjects
  • Follow us on Facebook
  • Follow us on Twitter
  • Sign up for alerts
  • RSS feed

About the journal

  • About Scientific Reports
  • Contact
  • Journal policies
  • Guide to referees
  • Calls for Papers
  • Editor's Choice
  • Journal highlights
  • Open Access Fees and Funding

Publish with us

  • For authors
  • Language editing services
  • Open access funding
  • Submit manuscript

Search

Advanced search

Quick links

  • Explore articles by subject
  • Find a job
  • Guide to authors
  • Editorial policies

Scientific Reports (Sci Rep)

ISSN 2045-2322 (online)

nature.com sitemap

About Nature Portfolio

  • About us
  • Press releases
  • Press office
  • Contact us

Discover content

  • Journals A-Z
  • Articles by subject
  • protocols.io
  • Nature Index

Publishing policies

  • Nature portfolio policies
  • Open access

Author & Researcher services

  • Reprints & permissions
  • Research data
  • Language editing
  • Scientific editing
  • Nature Masterclasses
  • Research Solutions

Libraries & institutions

  • Librarian service & tools
  • Librarian portal
  • Open research
  • Recommend to library

Advertising & partnerships

  • Advertising
  • Partnerships & Services
  • Media kits
  • Branded content

Professional development

  • Nature Awards
  • Nature Careers
  • Nature Conferences

Regional websites

  • Nature Africa
  • Nature China
  • Nature India
  • Nature Japan
  • Nature Middle East
  • Privacy Policy
  • Use of cookies
  • Legal notice
  • Accessibility statement
  • Terms & Conditions
  • Your US state privacy rights
Springer Nature

© 2026 Springer Nature Limited

Nature Briefing AI and Robotics

Sign up for the Nature Briefing: AI and Robotics newsletter — what matters in AI and robotics research, free to your inbox weekly.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing: AI and Robotics