선정목록으로
High precision classification of hot rolled strip steel surface defects using dual path features and entropy attention fusion
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (17) 스펀본드 부직포(18) VENT(방수통기 부품)
기본 정보
- 저자
- DOI
- 10.1038/s41598-025-31683-x
- 저널
- Scientific Reports
- 발행년도
- 2026
- 발행기관
- Nature Portfolio
- 피인용수
- 0
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-025-31683-x
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W7128159211
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (17) 스펀본드 부직포, (18) VENT(방수통기 부품)
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- surface defect detection, deep learning, classification accuracy, industrial inspection, image processing
- 판단 근거
- 본 논문은 열연 강판의 표면 결함을 딥러닝으로 검출하는 기술을 다루고 있습니다. 코오롱인더스트리의 직접적인 제품(철강)은 아니나, 산업용 필름, 부직포, 멤브레인 등 고분자 소재 제조 공정 중 발생하는 표면 결함을 자동 검출하는 비전 검사 시스템(AI Inspection) R&D에 원리를 적용할 수 있습니다.
- R&D 활용 포인트
- 고분자 필름(배리어, 증착) 및 산업용 부직포 제조 공정에서 발생하는 미세 스크래치, 핀홀, 이물질 등 표면 결함을 실시간으로 탐지하는 AI 기반 품질 관리 시스템 구축에 활용 가능합니다.
- 평가 입력
- 본문 47,775자 중 30,032자 발췌
초록
In the context of industrial hot-rolled strip steel surface defect detection, where the demands for real-time performance and classification accuracy are paramount, we present EAF-DenseNet121-a lightweight, enhanced model that incorporates edge-entropy attention mechanisms. At the inception of the DenseNet121 architecture, we incorporate a learnable Sobel-based edge extraction branch, which is designed to adaptively delineate defect contours with precision. We have designed an Entropy-Attention Fusion (EAF) module to further refine the model's performance. This module constructs a four-dimensional tensor, integrating the primary feature map, edge map, and their corresponding local entropy maps. By applying dual-path channel-wise and spatial attention, we achieve a weighted fusion of information, thereby enriching the feature representation. The EAF module replaces three pivotal convolutional layers within the DenseNet framework-immediately following the initial convolution and subsequent to the first and second Transition layers. This replacement enhances feature representation with a negligible increase in additional parameters, leading to a substantial improvement in defect recognition and classification accuracy. Our experimental results, obtained on the NEU-DET dataset, reveal that the enhanced model achieves a classification accuracy of 99.17%, representing an improvement of 2.78% over the baseline. Furthermore, on the GC10-DET dataset, the model achieves a classification accuracy of 82.89%, further validating its strong generalization capabilities.
본문 47,775자
본문 펼치기
### Scientifc Reportsi
#### Article in Press
[https://doi.org/10.1038/s41598-025-31683-x](https://doi.org/10.1038/s41598-025-31683-x)
## High precision classifcation of hot rolled strip i steel surface defects using dual path features and entropy attention fusion
<u>Received: 9 September 2025</u>
<u>Accepted: 4 December 2025</u>
Cite this article as: Wang Y., Lu Y.,
Zhu F. _et al._ High precision classification
of hot rolled strip steel surface defects
using dual path features and entropy
attention fusion. _Sci Rep_ [(2026). https://](https://doi.org/10.1038/s41598-025-31683-x)
[doi.org/10.1038/s41598-025-31683-x](https://doi.org/10.1038/s41598-025-31683-x)
Yuanlin Wang, Yiming Lu, Fenghua Zhu, Guangyue Du & Zheng Li
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.
If this paper is publishing under a Transparent Peer Review model then Peer
Review reports will publish with the final article.
© The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
License, which permits any non-commercial use, sharing, 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 you modified the licensed material. You do
not have permission under this licence to share adapted material derived from this article or parts of it. 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-nc-nd/4.0/.](http://creativecommons.org/licenses/by-nc-nd/4.0)
##### High precision classification of hot rolled strip steel surface defects using dual path features and entropy attention fusion
Yuanlin Wang <sup>1</sup> , Yiming Lu <sup>2</sup> , Fenghua Zhu <sup>3</sup> , Guangyue Du <sup>1,*</sup> , and Zheng Li <sup>1</sup>
1School of Rail Transportation, Shandong Jiaotong University, Jinan, 250357, China
2CRRC Tangshan Co., Ltd,064000,China YIMING LU 1030481485@qq.com 18331542012
3Institute of Automation, Chinese Academy of Sciences, Beijing 100000, China
*Correspondence should be addressed to Guangyue Du at Chinaduguangyue@163.com.
ABSTRACT
In the context of industrial hot-rolled strip steel surface defect detection, where the demands for real-time performance and
classification accuracy are paramount, we present EAF-DenseNet121—a lightweight, enhanced model that incorporates
edge-entropy attention mechanisms. At the inception of the DenseNet121 architecture, we incorporate a learnable Sobel-based
edge extraction branch, which is designed to adaptively delineate defect contours with precision. We have designed an
Entropy-Attention Fusion (EAF) module to further refine the model’s performance. This module constructs a four-dimensional
tensor, integrating the primary feature map, edge map, and their corresponding local entropy maps. By applying dual-path
channel-wise and spatial attention, we achieve a weighted fusion of information, thereby enriching the feature representation.
The EAF module replaces three pivotal convolutional layers within the DenseNet framework—immediately following the initial
convolution and subsequent to the first and second Transition layers. This replacement enhances feature representation with
a negligible increase in additional parameters, leading to a substantial improvement in defect recognition and classification
accuracy. Our experimental results, obtained on the NEU-DET dataset, reveal that the enhanced model achieves a classification
accuracy of 99.17%, representing an improvement of 2.78% over the baseline. Furthermore, on the GC10-DET dataset, the
model achieves a classification accuracy of 82.89%, further validating its strong generalization capabilities.
Introduction
Hot-rolled steel strips and other industrial metal materials have seen increasingly widespread applications <sup>1</sup> . However, defects
such as surface cracks, oxidation, scratches, and inclusions generated during their production processes <sup>2</sup> severely limit product
quality and production efficiency, while also driving up operational costs for enterprises. Consequently, achieving precise
classification and identification of surface defects in metal steel strips has become a critical challenge urgently facing the
manufacturing industry <sup>3</sup> .
Industrial defect classification technology has evolved from manual visual inspection, traditional image processing, machine
learning <sup>4</sup>, to the current stage dominated by deep learning <sup>5</sup> . Traditional machine learning methods, such as those combining
SVM and HOG features <sup>6</sup> or PCA for dimensionality reduction, rely on manually designed features and classifiers. For
example, Alloghani and others <sup>7</sup> have conducted research on unsupervised and supervised learning in machine learning, utilizing
PCA (principal components analysis) for dimensionality reduction <sup>8</sup> to remove the correlation between feature data, retaining
the necessary information of defects. However, their expressiveness and generalization capabilities are limited in complex
backgrounds or scenarios with subtle defects.
With the rise of deep learning, convolutional neural networks (CNNs) such as DenseNet, LeNet-5, AlexNet <sup>9</sup>, VGGNet,
and ResNet have continuously innovated and iterated <sup>10</sup> . Convolutional neural networks have significantly improved defect
classification accuracy through their powerful feature learning capabilities. Yuan et al.introduce an innovative deep learning
model GDCP-YOLO <sup>11</sup> for multi-class steel defect detection. It combines channel attention from the DCNV2 module and C2f
with adaptive receptive fields to enhance the YOLOv8n architecture. Multi-convolutions are used to reduce computational load
and generate more feature maps. The algorithm exhibits saturation phenomena and has issues with gradient vanishing. Xie
et al. <sup>12</sup> propose an advanced framework based on YOLOv10, which utilizes the SDMS module based on attention-focused
aggregation to enhance the backbone network’s feature extraction capabilities. This makes the model more focused on
fine-grained <sup>13</sup> defect feature information, further improving the performance of detecting steel strip surface defects in high-class
similarity and complex backgrounds, while reducing gradient issues.
However, there is less correlation between feature maps <sup>14</sup>, and although Transformer <sup>15</sup> can capture global dependencies, it
faces challenges of high computational cost and insufficient attention to local edges. To enhance the utilization of edge map,
researchers have proposed various strategies. For instance, Xu et al. <sup>16</sup> have introduced a method that fuses traditional edge
operators (such as Sobel, Canny <sup>17</sup> ) with ResNet18 features, which increases edge information. While this approach can filter
out key features, it lacks adaptability and is prone to interference from edge noise in complex scenarios, making it difficult to
match the diverse characteristics of defect edges <sup>18</sup> . Additionally, some researchers have attempted to improve performance on
specific tasks through multi-scale feature extraction or specific network improvements <sup>19</sup>, yet they still face bottlenecks such
as weak correlation between feature maps or the ineffective synergy between shallow detail information and deep semantic
information <sup>20</sup> . In response to this issue, we propose the EAF-DenseNet121 method, which integrates learnable edge detection
with entropy attention. This method allows the model to focus on defect edges while maintaining an overall grasp of the image.
After embedding it into the deep network, it enhances the model’s ability to identify defect regions, reduces interference from
complex backgrounds, and ultimately improves classification performance.
The contributions of this study are summarized as follows:
- A learnable Sobel edge branch is embedded into the front end of DenseNet121, replacing manual operators, to adaptively
extract defect contour features.
- A four-dimensional tensor is formed by combining the main feature map, edge map, and local entropy map. The EAF module
is constructed by dynamically adjusting the fusion weights of edge features and deep semantic features through channel-space
dual attention, achieving an optimal balance between relevant details and global information.
- Three key convolution layers in DenseNet (after the initial convolution and after the first and second Transition) are replaced
by EAF, which effectively correlates shallow high-resolution details with deep strong semantic information and strengthens
feature representation.
- The accuracy of the proposed method is approximately 3% higher than that of the state-of-the-art (SOTA) methods. It has
been validated on the complex background GC10-DET dataset, highlighting the excellent learning ability and generalization
performance of the model.
Methods
Dataset
This study employs NEU-DET <sup>21</sup>, an open-source dataset of surface defects on hot-rolled steel strips provided by Northeastern
University, which includes six categories: cracks, inclusions, scratches, pits, spots, and scale, as shown in Figure 1. Subsequently,
Class1 to Class5 are used to represent each type of defect. Each category contains 300 images. To rigorously evaluate the
model’s performance and prevent overfitting, the dataset is stratified and randomly divided into three mutually exclusive subsets:
the training set, validation set, and test set, with proportions of 70%, 20%, and 10%, respectively, as detailed in Table 1.
Figure 1. Six different types of defects in the NEU-DET dataset.
Furthermore, to ensure the model’s generalization capability, we evaluated its performance on the GC10-DET <sup>22</sup> public
dataset. This dataset consists of surface defect images collected from real-world industrial applications, comprising 10
categories as shown in Table 2. The complex backgrounds of the images, along with the challenges posed by intercategory
similarity and imbalanced sample distribution, present significant challenges for defect classification algorithms.All images
in the NEU-DET and GC10-DET datasets are resized to 224 × 224 pixels and normalized using ImageNet statistics (mean =
[0.485, 0.456, 0.406], std = [0.229, 0.224, 0.225]) prior to model input during both training and evaluation.
<u>Dataset</u> <u>Train</u> <u>Valid</u> <u>Test</u> <u>Sum</u>
<u>NEU-DET</u> <u>1260</u> <u>360</u> <u>180</u> <u>1800</u>
<u>GC10-DET</u> <u>1600</u> <u>456</u> <u>236</u> <u>2292</u>
Table 1. Division details of the NEU-DET and GC10-DET datasets
/
<u>Class-label</u> <u>Diseasetype</u> <u>Number</u>
<u>0</u> <u>water_spot</u> <u>292</u>
<u>1</u> <u>oil_spot</u> <u>225</u>
<u>2</u> <u>silk_spot</u> <u>655</u>
<u>3</u> <u>inclusion</u> <u>185</u>
<u>4</u> <u>rolled_pit</u> <u>32</u>
<u>5</u> <u>crease</u> <u>50</u>
<u>6</u> <u>waist_folding</u> <u>140</u>
<u>7</u> <u>punching_hole</u> <u>223</u>
<u>8</u> <u>welding_line</u> <u>287</u>
<u>9</u> <u>crescent_gap</u> <u>204</u>
Table 2. 10 categories of the GC10-DET dataset
Model structure
The proposed image classification framework, as illustrated in Figure 2, is constructed around edge map enhancement and deep
feature fusion, with its core components including a learnable edge detection module, an EAF module mechanism, an improved
DenseNet121 main network, and a classification prediction module. These components work in synergy to achieve an efficient
integration of edge structural information and semantic features. Initially, a portion of the feature maps is processed through
the learnable edge detection module, while another portion is passed through the DenseNet main network. The convolutional
layers within this main network simulate edge detection capabilities, with the parameters of the convolutional kernels adapting
autonomously during training to enhance edge extraction precision in complex scenarios. Subsequently, the edge intensity
maps are fused with the primary features via the EAF mechanism, which strengthens the edge perception of the initial features.
Channel compression and downsampling are then employed to continuously integrate edge features, reinforcing the structural
expression of hierarchical features. The final features are globally averaged and flattened into a one-dimensional tensor, after
which Dropout is applied to mitigate overfitting. This tensor is then input into the fully connected layer to complete the
classification task.
Figure 2. Overview of the overall method.
EAF module
In feature fusion tasks the main features and edge features exhibit strong complementarity. This complementarity is crucial
for enhancing the performance of the fusion. However, directly concatenating these two types of features can easily lead to
information redundancy, and even result in the suppression of key features, thereby failing to fully exploit the advantages of
/
Figure 3. EAF module.
both. To address this issue, we have designed the EAF (Entropy Attention Fusion) module,As shown in Figure 3. which utilizes
an edge entropy attention mechanism to adaptively enhance key features, thereby achieving efficient and robust feature fusion.
Initially, the edge features undergo a Resize operation to adjust their size, aligning them with the subsequent processing or
the main feature . Subsequently, they enter the Edge Expanded section, where they are processed and expanded to meet the
subsequent fusion requirements. At the same time, the main feature participates in the calculation of entropy, which is one of
the core aspects of the EAF module. This entropy calculation can measure the uncertainty and other characteristics contained
within the main feature, leading to entropy-related features H1 and H2 associated with the main feature. Then, the processed
edge features and the entropy-related features derived from the main feature are input into the CBAM (Channel-Spatial Weight)
module, as shown in Figure 4. This module learns weights for different channels and spatial positions, which reflect the
importance of each channel and spatial location in the fusion process. Finally, utilizing the learned channel-spatial weights,
the main feature and edge feature are weighted fused to obtain the final Fusion Feature. Throughout this process, through the
entropy attention mechanism, the module can adaptively identify and enhance the features that are critical to the fusion task,
suppressing redundant or irrelevant information. This results in the fused features containing both the high-level semantics of
the main feature and the detailed contours of the edge features, thereby providing superior feature support for subsequent tasks
such as defect detection.
Figure 4. The overall structure of CBAM consists of CBAM modules, including the channel attention module and spatial
attention module..
Densenet with EAF
DenseNet consists of two core components: dense blocks and transition layers. The dense blocks define the cascading pattern
between input and output, while the transition layers regulate the number of channels to prevent over-saturation. This design
significantly reduces computational load without compromising feature extraction capabilities, making network training more
efficient. The structural details of these key components are illustrated in Figure 5.
In DenseNet, each layer is connected to all preceding layers in a feedforward manner, with each layer’s input originating
from the outputs of all preceding layers. DenseNet primarily has several architectural configurations, and in this study, we
have chosen the DenseNet-121 architecture. We replaced the original model’s three convolutional layers with our three EAF
fusion layers, while the rest of the model remains unchanged, maintaining the total number of layers. The EAF module is a
lightweight yet highly effective plug-in that injects entropy-weighted cross-feature attention into DenseNet121 with only 0.639
/
M extra parameters and 10.43 G FLOPs. It selectively amplifies edge-aware defect patterns by computing per-channel Shannon
entropy and using it as dynamic attention weights, yielding the entire +2.78 pp accuracy gain while keeping inference at 58.9
FPS (>30 FPS industrial real-time). Meanwhile,Analysis of the computational overhead introduced by the EAF module and
overall model efficiency.(In complexity and computational cost) The edge intensity map and the main feature are enhanced for
edge perception through the first EAF fusion (fusion1). Subsequently, EAF fusions (fusion2 and fusion3) are inserted after
the transition1 and transition2, respectively, to continuously integrate edge features and reinforce the structural expression of
hierarchical features. These features are then input into the fully connected layer to complete the classification. This approach
enables more accurate recognition of minor features, as illustrated in Figure 6.
Figure 5. Dense blocks and transition layers of DenseNet.
Figure 6. DenseNet-121 with EAF architecture.
Learnable edge detection module
Traditional edge detection methods rely on fixed, hand-designed operators (such as Sobel, Canny, etc.), which perform stably
when processing images in conventional scenarios. However, they face numerous challenges in the field of industrial inspection.
Defects in industrial casting images often exhibit complex and variable characteristics: cracks may extend in arbitrary directions,
surface defects like scale may appear with blurred boundaries, and there may also be issues such as uneven illumination and
surface texture interference. These factors lead to insufficient generalization of the edge detection results from fixed operators,
making it difficult to effectively capture the features of industrial defects. To address this issue, we have designed a learnable
edge detection module, as shown in as shown in Figure 7(a).
This module employs parameterized convolutional layers in place of traditional hand-designed operators, which can
adaptively learn edge features of industrial defects through training. It introduces Sobel operator priors to accelerate model
convergence. The initial weights are alternately initialized to the x-direction (vertical edges) of the Sobel operator, as shown in
Equation 1, and the y-direction (horizontal edges) of the Sobel operator, as shown in Equation 2. This alternating initialization
strategy enables the model to be sensitive to multi-directional edges from the early stages of training, effectively covering a
variety of possible defect directions and enhancing the correlation between image features. During the forward propagation
process, the input image first undergoes conv1 to extract edge features in 8 directions, followed by batch normalization with
BatchNorm2D to normalize the feature distribution, which accelerates the training process and stabilizes the feature distribution.
Subsequently, a ReLU activation function is applied to introduce non-linearity, enhancing the model’s ability to express complex
edges.
To prevent overfitting introduced by the additional edge detection branch, we apply dropout (p = 0.5) before the final
classifier and L2 weight decay ( _λ_ = 1 _×_ 10 <sup>_−_</sup> <sup>4</sup> ) during optimization.The Sobel-initialized learnable edge detector, combined with
batch normalization after every convolutional layer, acts as a structured regularizer. This design reduces the train–validation
accuracy gap by 4.2%, demonstrating its role as an effective implicit regularizer.
/
Figure 7. Schematic diagrams of the corresponding modules. (a)Edge detection module. (b) Entropy module. (c) Transition
layer. (d) Bottleneck layer.
_−_ 1 0 1
_−_ 2 0 2
_−_ 1 0 1
1 _−_ 2 _−_ 1
0 0 0
1 2 1
(1)
(2)
Sobel _x_ =
Sobel _y_ =
Differentiable Entropy Module
To accurately capture the local information uncertainty in industrial defect regions, we design a Differentiable Entropy Module,
as shown in Figure 7(b). Its core idea is to quantify the information disorder of local regions in feature maps through the process
of local neighborhood extraction, probability distribution conversion, and entropy calculation, providing a basis for subsequent
defect feature fusion and recognition. The specific process is as follows:
For the input feature map _X_ _∈_ R <sup>_B×C×H×W_</sup> (where _B_ is the batch size, _C_ is the number of channels, and _H,W_ are the height
and width of the feature map), the entropy module first extracts local neighborhood vectors _Pi,_ _j_ through a sliding window
operation (Equation 3). Each vector _Pi,_ _j ∈_ R <sup>_K_</sup> <sup>2</sup> represents the intensity distribution within a _K ×_ _K_ region centered at position
( _i, j_ ). Then, these vectors are converted into probability distributions _Qi,_ _j_ through a temperature-scaled softmax operation,
where the learnable parameter _τ_ controls the sharpness of the distribution, as shown in Fig. 3(b). The final entropy value _Ei,_ _j_
(Equation 4) is calculated as the Shannon entropy of _Qi,_ _j_, which is used to measure the uncertainty of local information. Here,
_ε_ = 10 <sup>_−_</sup> <sup>8</sup> is a smoothing term to avoid numerical instability caused by _Qi,_ _j,k_ = 0 in logarithmic operations. A higher entropy
value _Ei,_ _j_ indicates that the intensity distribution of the local region is more irregular, and the possibility of defects existing is
greater.
Local window extraction:
Entropy calculation:
_Pi,_ _j_ = unfold( _X_ )[ _i, j,_ :] _∈_ _R_ <sup>_K_</sup> <sup>2</sup> (3)
_Ei,_ _j_ = _−_
_K_ <sup>2</sup>
###### ∑ Qi, j,k • log( Qi, j,k + ε ) (4)
_K_ =1
where _ε_ = 10 <sup>_−_</sup> <sup>8</sup> is a smoothing term to avoid numerical instability caused by _Qi,_ _j,k_ = 0 in logarithmic operations. A higher
entropy value _Ei,_ _j_ indicates that the intensity distribution of the local region is more irregular, corresponding to a greater
possibility of the existence of defects.
/
Basic model
The Transition module, as depicted in Figure 7(c), employs batch normalization and ReLU activation to ensure feature stability.
Thereafter, a 1×1 convolution is applied to compress the channels to the specified output dimension, followed by a 2×2 average
pooling to halve the spatial resolution.
Figure 7(d) illustrates the structure of the Bottleneck module <sup>23</sup> . Initially, the input feature channels are compressed to
4×growthrate via a 1×1 convolution. After batch normalization and ReLU activation, a 3×3 convolution is used to generate new
features with a dimension of growthrate channels. Finally, the new features are fused with the original input by concatenating
along the channel dimension, thereby achieving feature reuse and growth. The input feature dimensions are denoted as (C, H,
W), while the output feature dimensions are (C + growthrate, H, W), with growthrate controlling the rate of feature growth.
Model complexity and computational cost
In order to assess the practical applicability of our method in industrial inspection settings, we have evaluated the computational
complexity of both the baseline model and our proposed model under the same input resolution of 224 × 224. The baseline
DenseNet-121 (adapted for 6-class classification) involves 7.978 M trainable parameters and requires approximately 91.671 G
FLOPs per forward pass. In contrast, our proposed EAF-DenseNet-121 increases the parameter count to 8.617 M(+8.01%) and
the FLOPs to 102.098 G(+11.37%). The inference speed is 58.9 FPS, compared to 68.2 FPS for the baseline ( _−_ 13.6%), which
remains suitable for real-time industrial inspection.
Although this represents a moderate increase in computational cost, we believe it remains acceptable for real-world industrial
visual inspection systems—especially given the observed precision improvement of 2.78% (refer to Ablation experiments).
Furthermore, we discuss the trade-off between accuracy and complexity and highlight that the added modules (learnable
Sobel-based edge extraction branch and Entropy Attention Fusion module) contribute significantly to feature richness with only
a modest additional load.
Experiments and results
Experimental details
Experiments were conducted using Python 3.7 and the PaddlePaddle 2.4.0 deep learning framework. The runtime environment
was a Linux system equipped with a Tesla V100 GPU, 32GB of GPU memory, a 4-core CPU, and 32GB of RAM. The Adam
optimizer was selected for model parameter optimization, with a learning rate set to 0.001. The number of training epochs was
set to 100, and the batch size was configured to 32.
Assessment indicators
In classification tasks, accuracy, precision, recall, and F1 score <sup>24</sup> are the core metrics used to evaluate the quality of a model’s
prediction results. They reflect the model’s performance from different perspectives and are more intuitive than mere loss
(LOSS) when focusing on "category prediction accuracy" and "category coverage completeness." Among them, TP (True
Positive) refers to cases where the actual instance is positive and the prediction is also positive (correctly identified) <sup>25</sup> . FP
(False Positive) refers to cases where the actual instance is negative but the prediction is positive (false alarm). TN (True
Negative) refers to cases where the actual instance is negative and the prediction is also negative (correctly excluded). FN (False
Negative) refers to cases where the actual instance is positive but the prediction is negative (false omission). Their mathematical
definitions are as follows: Accuracy: The proportion of global correct predictions (including positive and negative cases), as
shown in the following formula.
Accuracy = <sup><u>TP</u></sup> <sup><u>+</u></sup> <sup><u>FP</u></sup> <sup><u>+</u></sup> <sup><u>TN</u></sup> <sup><u>+</u></sup> <sup><u>FN</u></sup> _×_ 100% (5)
TP + TN
<u>TP</u>
Precision = (6)
TP + FP
<u>TP</u>
Recall = (7)
TP + FN
F1-Score = <sup><u>2</u></sup> <sup>_<u>×</u>_</sup> <sup><u>Precision</u></sup> <sup>_<u>×</u>_</sup> <sup><u>Recall</u></sup> (8)
Precision + Recall
Through what has been stated above, these metrics can be utilized to specifically analyze experimental results.
/
Model recognition results
On the simple background dataset NEU-DET, after 100 epochs of training, the model stabilized around the 73rd batch, as
shown in Figure 8(a) with a training loss of approximately 0.045 and an accuracy of about 99% on the validation set. The
training progress is illustrated in Figure 8(b).
Figure 8. Training loss and validation accuracy on the NEU dataset.
This performance is considered excellent. On the complex background dataset GC10-DET, the model achieved effective
classification of all categories after 150 epochs of training, with a training loss of about 0.509, as depicted in Figure 9(a),and
the validation accuracy reached about 83%. As shown in Figure 9(b), this result indicates that the proposed model is suitable
for datasets with more complex backgrounds, a larger number of defect categories, and uneven category distribution. This
demonstrates the strong adaptability and learning capability of the improved model under these conditions.
Figure 9. Training loss and validation accuracy on the GC-10 dataset.
In the context of the NEU dataset (confusion matrix as depicted in Figure 10(a)), the model has demonstrated precise
identification of the majority of steel belt defect categories, revealing its robust category differentiation capabilities. However,
there are instances of misclassification within category "2," which is attributed to the insignificant sample features and small
intra-class variability of this category, reflecting the impact of sample intrinsic characteristics on the classification outcomes.
In the face of the complex defect distribution of the GCT-10 dataset (confusion matrix as shown in Figure 10(b)), the model
maintains a high accuracy rate in recognizing the core categories, yet minor errors occur during the cross-classification between
categories "3" and "4." This phenomenon underscores the challenge posed by complex scenarios to the model’s feature
/
differentiation ability, and it also delineates a direction for subsequent model optimization, namely, the need to further enhance
the extraction and discrimination of features in easily confused categories.
Under the scenario of the NEU dataset, the 2D visualization of the T-SNE features <sup>25</sup> from Figure 11 reveals that the raw
image features (left figure "t-SNE Visualization of Raw Image Features") are distributed in a scattered and mixed manner, with
points from different categories intertwining, indicating that the original features are not conducive to effectively distinguishing
between various types of steel defects. In contrast, the features extracted by the model (right figure "t-SNE Visualization
of Model Extracted Features") exhibit a clear clustering trend, with points from different categories relatively concentrated,
suggesting that the model is capable of uncovering more discriminative features, effectively enhancing the distinction between
different categories of steel defects, and thereby laying the foundation for accurate classification. From Figure 12, the improved
model maintains a satisfactory ability to aggregate under the visualization of T-SNE features, even when faced with the complex
defect distribution of the GCT-10 dataset and an uneven distribution of categories.
Figure 10. Confusion matrix
Figure 11. T-SNE visualization on the NEU dataset. (a) Original data. (b) Model feature extraction results.
/
Figure 12. T-SNE visualization on the GC-10 dataset. (a) Original data. (b) Model feature extraction results.
Ablation experiments
To validate the effectiveness of each component within the model, we conducted ablation experiments for each module.
These experiments included DenseNet121 without any component, DenseNet121 with Edge, DenseNet121 with EAF, and
DenseNet121 with both Edge and EAF. The results are presented in Table 3. Based on the outcomes of the ablation experiments,
we observed that the addition of Edge increased the accuracy from 96.39% to 97.52%, while the inclusion of EAF further
elevated the accuracy to 97.94%. Simultaneous addition of both Edge and EAF resulted in an accuracy of 99.17%. Each
component contributes to enhancing the model’s performance, with the combination of multiple components yielding more
significant improvements.
<u>Model</u> <u>Accuracy</u> <u>F1-score</u> <u>Recall</u> <u>Precision</u>
<u>DenseNet121</u> <u>96.39</u> <u>96.39</u> <u>96.36</u> <u>96.77</u>
<u>DenseNet121+Edge</u> <u>97.52</u> <u>97.52</u> <u>97.49</u> <u>97.69</u>
<u>DenseNet121+EAF</u> <u>97.94</u> <u>97.96</u> <u>97.37</u> <u>97.53</u>
<u>DenseNet121+Edge+EAF</u> <u>99.17</u> <u>99.17</u> <u>99.16</u> <u>99.19</u>
Table 3. Ablation experiment.
Feature map visualization
The heatmap visualization technique is employed to convert the 64-channel output of the model into a visual heat map. The
color distribution of the heat map reflects the response intensity of the model’s weighted parameters in different regions of the
image, with darker and brighter colors indicating more significant parameter responses <sup>26</sup> . As shown in Figure 13, two sets of
experiments are set up for comparison: one for the training phase of the model without the EAF module (referred to as stage
a), corresponding to the left part of the heat map in the figure; and another for the training phase after the introduction and
optimization of the EAF module (referred to as stage b), corresponding to the right part of the heat map. The experiments cover
6 categories of images, with each category consisting of 6 images in a group, resulting in a total of 6 rows and 6 columns of
heat map data.
Without the EAF module (stage a), the heat map (on the left) shows a scattered response of the weighted parameters,
distributed across different regions of various image categories, without forming distinct and concentrated feature attention
areas. The extraction of image features lacks specificity, as in some images, the parameter responses are chaotic and cover
both the internal and edge regions of the image, making it difficult to focus on key information. After the introduction and
optimization of the EAF module (stage b), the heat map (on the right) clearly shows that the model’s weighted parameters
significantly concentrate on the edge regions of the image. In the heat maps of different categories of images, the edge regions
exhibit high response features, with bright and concentrated colors, indicating that the EAF module guides the parameters to
more accurately capture the edge features of the images, enhancing the specificity and effectiveness of feature extraction.
/
Figure 13. Comparison of 64-channel output heatmaps during model training.Group a is the heatmap before EAF
optimization.Group b is the heatmap after EAF optimization.
Figure 14. Detail comparison. Group a is the original images. Group b is the heatmap before EAF optimization. Group c is
the heatmap after EAF optimization.
To evaluate the performance of the proposed model, 6 types of typical rolling mill defect samples were selected for
predictive analysis, as shown in Figure 14. Corresponding to the original defect images (a), the attention mechanism differences
between the baseline model without the Edge Attention Fusion (EAF) module and the model integrated with the EAF module
are compared experimentally: the model without the EAF module is prone to focusing on background features (as shown by the
heatmap in Fig. (b)), leading to the neglect of key defect information and significant bias in feature extraction; whereas the
model combined with the EAF module, its heatmap (c) precisely focuses on the defect regions, enhancing the discriminability of
different defect types. Through the visualization comparison of heatmaps, it can be observed that the EAF module can optimize
the model’s attention distribution, strengthen the extraction of key defect features, effectively suppress background noise
interference, and significantly improve the model’s ability to distinguish defect features under complex scenarios. This provides
/
more reliable feature recognition and classification support for the rolling mill surface defect detection task, demonstrating the
application value of the EAF module in industrial visual defect detection.
Comparative experiment
With the advancement of convolutional neural networks, models such as VGG16 <sup>27</sup>, YOLOv10 <sup>12</sup>, and ResNet18 have demonstrated stable performance in various image classification tasks. We conducted comparative experiments using classical models
and state-of-the-art (SOTA) models. Experiments were conducted on the NEU dataset, comparing classical models (VGG16,
ResNet18), efficient models (EfficientNet-B3, DenseNet121), deep residual models (ResNet-101), and our proposed method
(Our work). The comparison results are summarized in Table 4. Classical lightweight models, due to their insufficient network
depth and feature expression ability, achieve low scores across the four metrics, making it difficult to distinguish defects from
the background. Efficient models, after optimizing feature utilization, see an increase in Accuracy but the F1-score does not
exceed 97%, failing to achieve an optimal balance between false positives and false negatives. Deep residual models have
overall strong classification capabilities but exhibit biases in subtle scenes. Although the model’s accuracy is 0.05% lower
than ResNet50, it improves by 5.92% compared to ResNet18, thus narrowing the performance gap. This result indicates that
even with a shallower network structure, the integration of edge enhancement features can still contribute to performance
improvement. Our proposed method, through targeted feature enhancement strategies, accurately captures defect details,
demonstrating strong consistency between Precision and Recall, and is well-suited to industrial needs. It demonstrates excellent
performance, comparable to ResNet-50 in terms of precision under shallow architectures, proving the effectiveness of feature
enhancement.
On the challenging GC10-DET dataset with complex backgrounds, all comparative experiments were conducted under
identical conditions. As shown in Table 5, our EAF-DenseNet-121 achieves an accuracy of 82.89%, surpassing ResNet18
and YOLOv7 <sup>28</sup>, but falling 1.32% behind YOLOv10 (84.21%) <sup>29</sup> . Despite this, our model demonstrates superior precision
of 86.57%(vs. 81.32% for YOLOv10), effectively reducing false positives—a key advantage in industrial inspection where
misclassification incurs high costs. This result highlights the model’s robustness to noise and complex scenes, suggesting strong
potential for cross-dataset generalization and practical deployment in real-world defect classification.
<u>Model</u> <u>Accuracy(%)</u> <u>Precision(%)</u> <u>F1-score(%)</u> <u>Recall(%)</u>
<u>ResNet-101</u> <u>99.23</u> <u>98.91</u> <u>99.02</u> <u>98.86</u>
<u>Yolov10</u> <u>96.35</u> <u>95.47</u> <u>96.23</u> <u>95.79</u>
<u>VGG16</u> <u>91.24</u> <u>90.13</u> <u>91.72</u> <u>91.97</u>
<u>ResNet18</u> <u>93.25</u> <u>93.53</u> <u>92.21</u> <u>93.72</u>
<u>DenseNet121</u> <u>96.39</u> <u>96.77</u> <u>96.39</u> <u>96.36</u>
<u>Ourwork</u> <u>99.17</u> <u>99.19</u> <u>99.17</u> <u>99.16</u>
Table 4. Presents a comparison of classification data for classical models on the NEU dataset.
<u>Model</u> <u>Accuracy(%)</u> <u>Precision(%)</u> <u>F1-score(%)</u> <u>Recall(%)</u>
<u>ResNet18</u> <u>75.23</u> <u>74.83</u> <u>74.56</u> <u>73.38</u>
<u>Yolov7</u> <u>80.11</u> <u>78.87</u> <u>80.48</u> <u>81.22</u>
<u>Yolov10</u> <u>84.21</u> <u>80.47</u> <u>82.68</u> <u>83.17</u>
<u>Ourwork</u> <u>82.89</u> <u>86.57</u> <u>81.73</u> <u>82.77</u>
Table 5. Presents a comparison of classification data for classical models on the GCT-10 dataset.
Conclusion
This paper proposes an improved DenseNet121 model that can achieve higher precision predictions for the detection of surface
defects on steel strips, meeting the actual application needs of industrial production. During the industrial manufacturing process
of steel strips, small defects such as crazing, rolled-in scale, and inclusions are frequently observed. Many fault categories have
minor overall defects that are difficult to detect and can impact detection accuracy. Our technology has significantly improved
the accuracy of identifying these minor defects.
Firstly, the edge detection module is designed to enhance the model’s ability to identify subtle edge features in feature maps,
thereby improving prediction accuracy across various sizes. Secondly, the EAF block based on attention-focused aggregation
enhances the backbone network’s feature extraction capabilities, making the model more focused on fine-grained defect feature
information, thereby further enhancing its performance in detecting surface defects on steel strips under high inter-class
similarities and complex backgrounds. Finally, extensive comparative experiments with advanced models were conducted
on the steel strip surface defect detection datasets NEU-DET and GC10-DET to confirm the performance advantages of the
/
proposed model. The experimental results indicate that the method performs well in classifying surface defects on steel strips,
achieving high detection accuracy. The proposed model may be useful in industrial production as it can successfully address
issues related to complex backgrounds and high inter-class similarities within defects.
Despite the promising performance of the proposed EAF-DenseNet121 model in steel surface defect classification, it still
has certain limitations. For instance, while the model’s feature fusion strategy is effective, it may fail to fully capture the
fine-grained differences between some highly similar defect categories, leading to occasional misclassifications. Additionally,
although the computational cost of the current architecture meets the real-time requirements of industrial scenarios, it can be
further optimized for deployment on resource-constrained edge devices. For future work, we plan to explore more advanced
attention mechanisms to enhance the discrimination ability between categories. We also intend to investigate lightweight
network designs and model compression techniques, such as knowledge distillation, to reduce computational overhead while
maintaining classification accuracy, thereby expanding the model’s applicability in various industrial inspection scenarios.
Data availability
The data sources used in this article have been specified within the content. Two publicly available steel surface defect
detection datasets are used: NEU-DET https://aistudio.baidu.com/projectdetail/9393414and GC10[DET https://www.kaggle.com/datasets/alex000kim/gc10det](https://www.kaggle.com/datasets/alex000kim/gc10det)
References
1. Cutler, C. P. Use of Metals in Our Society. In Chen, J. K. & Thyssen, J. P. (eds.) _Metal Allergy_, 3–16 (Springer International
Publishing, Cham, 2018).
2. Jinlong, T., Lijie, H. U. O., Yu, X. I. E., Xueyan, Y. & Guopeng, T. U. Cause analysis of black spot defects on coating
surface of non-oriented silicon steel. _Electr. Steel_ 3, 25 (2021).
3. Zongyou, L. I., Chunyan, G. A. O., Xiaoling, L. V. & Minglu, Z. A review of surface defect detection for metal materials
based on deep learning. _Manuf. Technol. & Mach. Tool_ 61–67 (2023).
4. Xunxun, G. U., Jianping, L. I. U., Jialu, X. & Haiyu, R. E. N. Text Classification: Comprehensive Review of Prompt
Learning Methods. _J. Comput. Eng. & Appl._ 60 (2024).
5. Zhang, R., Li, W. & Mo, T. Review of Deep Learning, DOI: 10.48550/arXiv.1804.01653 (2018).
6. HU, D., LYU, B., WANG, J. & GAO, X. Study on HOG-SVM detection method of weld surface defects using laser visual
sensing. _Transactions China Weld. Inst._ 44, 57–62 (2023).
7. Alloghani, M., Al-Jumeily, D., Mustafina, J., Hussain, A. & Aljaaf, A. J. A Systematic Review on Supervised and
Unsupervised Machine Learning Algorithms for Data Science. In Berry, M. W., Mohamed, A. & Yap, B. W. (eds.)
_Supervised and Unsupervised Learning for Data Science_, 3–21 (Springer International Publishing, Cham, 2020).
8. Roweis, S. EM algorithms for PCA and SPCA. _Adv. neural information processing systems_ 10 (1997).
9. Alom, M. Z. _et al._ The History Began from AlexNet: A Comprehensive Survey on Deep Learning Approaches, DOI:
10.48550/arXiv.1803.01164 (2018).
10. Zhao, Q. _et al._ A review of deep learning methods for the detection and classification of pulmonary nodules. _Sheng wu yi_
_xue gong cheng xue za zhi= J. biomedical engineering= Shengwu yixue gongchengxue zazhi_ 36, 1060–1068 (2019).
11. Yuan, Z., Ning, H., Tang, X. & Yang, Z. GDCP-YOLO: Enhancing Steel Surface Defect Detection Using Lightweight
Machine Learning Approach. _ELECTRONICS_ 13, 1388, DOI: 10.3390/electronics13071388 (2024).
12. Xie, H., Zhou, H., Chen, R. & Wang, B. SDMS-YOLOv10: improved Yolov10-based algorithm for identifying steel
surface flaws. _Nondestruct. Test. Eval._ 1–21, DOI: 10.1080/10589759.2025.2474103 (2025).
13. Wenqi, Y. U. _et al._ MAR20: A benchmark for military aircraft recognition in remote sensing images. _Natl. Remote. Sens._
_Bull._ 27, 2688–2696 (2024).
14. Xia, X., Wen, M., Zhan, S., He, J. & Chen, W. An increased neutrophil/lymphocyte ratio is an early warning signal of
severe COVID-19. _Nan fang yi ke da xue xue bao= J. South. Med. Univ._ 40, 333–336 (2020).
15. Kulkarni, S. & Khaparde, S. _Transformer Engineering:_ _Design, Technology, and Diagnostics_ (CRC Press, 2017), 2 edn.
16. Xu, X. _et al._ Real-Time Belt Deviation Detection Method Based on Depth Edge Feature and Gradient Constraint. _Sensors_
_(Basel, Switzerland)_ 23, 8208, DOI: 10.3390/s23198208 (2023).
/
17. WANG, J.-b. & JI, Y.-b. Image edge-detection based on mathematical morphology of multi-structure element algorithm. _J._
_Liaoning Univ. Petroleum & Chem. Technol._ 26, 79 (2006).
18. LIU, J.-w., LIU, J.-w. & LUO, X.-l. Research progress in attention mechanism in deep learning. _Chin._ _J._ _Eng._ 43,
1499–1511 (2021).
19. Liang, M., Yutao, G., Tao, L. E. I., Lei, J. & Yixuan, S. Small object detection based on multi-scale feature fusion using
remote sensing images. _Opto-Electronic Eng._ 49, 210363–1 (2025).
20. Ferrández, R. M., Terol, Muñoz, R., Martínez-Barco, P. & Palomar, M. Deep vs. Shallow Semantic Analysis Applied
to Textual Entailment Recognition. In Hutchison, D. _et al._ (eds.) _Advances in Natural Language Processing_, vol. 4139,
225–236 (Springer Berlin Heidelberg, Berlin, Heidelberg, 2006).
21. Bao, Y. _et al._ Triplet-graph reasoning network for few-shot metal generic surface defect segmentation. _IEEE Transactions_
_on Instrumentation Meas._ 70, 1–11 (2021).
22. Lv, X., Duan, F., Jiang, J.-j., Fu, X. & Gan, L. Deep metallic surface defect detection: The new benchmark and detection
network. _Sensors_ 20, 1562 (2020).
23. Yan, Y., Liu, J. & Zhang, J. Evaluation method and model analysis for productivity of cultivated land. _Transactions Chin._
_Soc. Agric. Eng._ 30, 204–210 (2014).
24. Jonckheere, S. _et al._ Evaluation of different confirmatory algorithms using seven treponemal tests on Architect Syphilis
TP-positive/RPR-negative sera. _Eur. J. Clin. Microbiol. & Infect. Dis._ 34, 2041–2048, DOI: 10.1007/s10096-015-2449-z
(2015).
25. Platzer, A. Visualization of SNPs with t-SNE. _PLoS ONE_ 8, e56883, DOI: 10.1371/journal.pone.0056883 (2013).
26. Antoniou, I. E. & Tsompa, E. T. Statistical Analysis of Weighted Networks. _Discret. Dyn. Nat. Soc._ 2008, 375452, DOI:
10.1155/2008/375452 (2008).
27. Lv, X., Duan, F., Jiang, J.-j., Fu, X. & Gan, L. Deep metallic surface defect detection: The new benchmark and detection
network. _Sensors_ 20, 1562 (2020).
28. Song, H. RSTD-YOLOv7: a steel surface defect detection based on improved YOLOv7. _Sci. Reports_ 15, 19649 (2025).
29. Xie, H., Zhou, H., Chen, R. & Wang, B. SDMS-YOLOv10: improved Yolov10-based algorithm for identifying steel
surface flaws. _Nondestruct. Test. Eval._ 1–21 (2025).
Author contributions statement
All the authors contributed extensively to the manuscript. Y.W. contributed to study design, software experiments and manuscript
drafting. Z.L. and G.D. provided scientific guidance and modification suggestions. Y.L. and F.Z contributed to the data analysis,
proofreading, and editing of the manuscript. All authors approved the manuscript.
Funding
This work was supported by the Key-Area Research and Development Program of Guangdong Province under Grant 2025TSGCCZZB0083.
Competing interests
The authors declare no competing interests.
Additional information
Correspondence and requests for materials should be addressed to G.D.
/
섹션 본문
섹션 본문이 없습니다.
참고문헌 14건
- Deep vs. Shallow Semantic Analysis Applied to Textual Entailment Recognition Lecture notes in computer science · Springer Science+Business Media · 2006 10.1007/11816508_24
- Visualization of SNPs with t-SNE PLoS ONE · Public Library of Science · 2013 10.1371/journal.pone.0056883
- Statistical Analysis of Weighted Networks Discrete Dynamics in Nature and Society · Hindawi Publishing Corporation · 2008 10.1155/2008/375452
- Evaluation of different confirmatory algorithms using seven treponemal tests on Architect Syphilis TP-positive/RPR-negative sera European Journal of Clinical Microbiology & Infectious Diseases · Springer Science+Business Media · 2015 10.1007/s10096-015-2449-z
- Use of Metals in Our Society Springer eBooks · Springer Nature · 2018 10.1007/978-3-319-58503-1_1
- A Systematic Review on Supervised and Unsupervised Machine Learning Algorithms for Data Science Unsupervised and semi-supervised learning · Springer International Publishing · 2019 10.1007/978-3-030-22475-2_1
- Deep Metallic Surface Defect Detection: The New Benchmark and Detection Network Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20061562
- Transformer Engineering CRC Press eBooks · Informa · 2012 10.1201/b13011
- Review of Deep Learning arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1804.01653
- The History Began from AlexNet: A Comprehensive Survey on Deep Learning Approaches arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1803.01164
- Real-Time Belt Deviation Detection Method Based on Depth Edge Feature and Gradient Constraint Sensors · Multidisciplinary Digital Publishing Institute · 2023 10.3390/s23198208
- GDCP-YOLO: Enhancing Steel Surface Defect Detection Using Lightweight Machine Learning Approach Electronics · Multidisciplinary Digital Publishing Institute · 2024 10.3390/electronics13071388
- SDMS-YOLOv10: improved Yolov10-based algorithm for identifying steel surface flaws Nondestructive Testing And Evaluation · Taylor & Francis · 2025 10.1080/10589759.2025.2474103
- RSTD-YOLOv7: a steel surface defect detection based on improved YOLOv7 Scientific Reports · Nature Portfolio · 2025 10.1038/s41598-025-04811-w