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

W Weihua Pan R Ruijie Zhong J Junchuan Huang Y Ye Li W Wenyuan Zhang (State Key Laboratory of Ocean Sensing & Ocean College) T Ting Liu Y Yujie Liu

Abstract

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.

Article Details

Volume / Issue Vol. 16, Issue 1
Published January 30, 2026
ISSN 2045-2322
Publisher Nature Portfolio

Journal Info

Scientific Reports

Nature Portfolio

ISSN: 2045-2322 Open Access Life Sciences

Authors (7)

W

Weihua Pan

R

Ruijie Zhong

J

Junchuan Huang

Y

Ye Li

W

Wenyuan Zhang

State Key Laboratory of Ocean Sensing & Ocean College

T

Ting Liu

Y

Yujie Liu