Open Access
ARTICLE
EFAS-YOLO: A Lightweight Edge-Frequency Aware YOLOv11 Framework for Steel Surface Defect Detection
School of Computer Science and Technology, Harbin University of Science and Technology, Harbin, China
* Corresponding Author: Longzhen Dong. Email:
Computers, Materials & Continua 2026, 89(2), 56 https://doi.org/10.32604/cmc.2026.085242
Received 07 May 2026; Accepted 31 July 2026; Issue published 15 September 2026
Abstract
Detecting surface defects on steel is challenging because many defect regions are visually weak, have blurred boundaries, and contain minimal pixel information. In detectors from the You Only Look Once (YOLO) family, these subtle cues may be weakened at the early feature extraction stage and further attenuated during repeated downsampling. To improve the preservation and utilization of such defect-related details, this paper proposes EFAS-YOLO, a lightweight YOLOv11-based detection framework for steel surface defect inspection. First, an Edge-Frequency Aware Stem (EFAS) is introduced before the backbone to explicitly extract Sobel-based gradient responses and fuse them with learnable shallow texture features, allowing edge-sensitive information to be retained from the input stage. Second, the backbone channel configuration and shallow receptive field are adjusted to better match the feature distribution produced by EFAS and to avoid unnecessary channel expansion. Third, a Small Defect Enhancement Path (SDEP) is constructed to transmit enhanced P3-level high-resolution features to the corresponding neck branch through a lightweight residual path, reducing the loss of spatial details for small defects. Experiments on NEU-DET show that EFAS-YOLO achieves 79.8% mean average precision at an intersection-over-union threshold of 0.5 (mAP@0.5), outperforming YOLOv11n by 3.6 percentage points while maintaining a lightweight scale of 2.1M parameters and 158 FPS on an RTX 3090 GPU. Additional validation on GC10-DET achieves 68.3% mAP@0.5, suggesting that the proposed design maintains stable performance across different steel surface defect datasets.Keywords
The steel industry is a fundamental pillar of high-end equipment manufacturing and infrastructure construction. During the rolling and transportation of strip steel, various surface defects, such as scratches, cracks, and rolled-in scale, are prone to occur on steel surfaces due to complex manufacturing processes and environmental conditions. These defects not only impair the appearance of steel products but may also induce stress concentration, thereby severely weakening the fatigue strength and safety performance of the material [1,2]. Therefore, achieving real-time and high-accuracy automatic surface defect detection on high-speed production lines is of great significance for improving product yield and ensuring production safety.
Manual inspection and traditional machine vision methods have long been applied in this field. However, the former suffers from low inspection efficiency and inconsistent inspection standards, while the latter relies heavily on hand-crafted features and thus exhibits limited generalization capability [3]. In recent years, deep learning built upon convolutional neural networks (CNNs) has dominated industrial defect detection tasks, benefiting from its superior ability to learn discriminative feature representations automatically.
Current mainstream object detection frameworks can generally be categorized into three paradigms: two-stage detectors, such as Faster Region-based Convolutional Neural Network (Faster R-CNN) [4]; one-stage detectors, such as the YOLO series [5]; and end-to-end Transformer-based detectors, such as Real-Time Detection Transformer (RT-DETR) [6]. Two-stage object detection frameworks usually achieve favorable detection accuracy, but their relatively high inference latency limits their applicability to high-throughput industrial production lines with strict real-time requirements. End-to-end Transformer-based models exhibit strong global modeling capability, but they typically require substantial computational resources.
However, directly applying a standard YOLOv11 detector to steel surface inspection is not fully sufficient. The difficulty of this task does not only come from scale variation, but also from the fact that many defects appear as faint gray-level changes or fragmented edge structures. Once these weak responses are suppressed in the shallow convolutional stages, later feature pyramid fusion can only combine the remaining information and cannot fully reconstruct the lost spatial details. This is particularly unfavorable for defects such as crazing and scratches, whose boundaries are often narrow, discontinuous, and close to the background texture. Therefore, improving this task requires a design that considers not only multi-scale fusion in the Neck, but also how edge-related cues are generated, transmitted, and reused throughout the network [7].
Recent industrial defect detection studies have increasingly explored edge enhancement, high-frequency information modeling, and attention-based feature fusion to improve the perception of weak boundaries and small defects. Wang et al. introduced a Sobel-operator-based edge information extraction module for steel defect detection, showing that explicit contour cues are beneficial for distinguishing irregular and visually similar defect regions [8]. Jiang et al. proposed a joint attention-guided feature fusion network for surface defect saliency detection, where channel-spatial attention is used to emphasize low-contrast defect responses and suppress background interference [9]. More recently, LCED-YOLO incorporated an edge information enhancement module into a YOLOv11-based steel defect detector and demonstrated that edge-aware feature enhancement can improve defect representation while maintaining lightweight computation [10]. However, most existing methods still enhance edge or texture features after shallow convolution or within intermediate feature fusion stages, where part of the weak high-frequency information may already have been attenuated. Therefore, it is necessary to introduce stable edge-related priors at the input stage and maintain their effective transmission throughout the backbone and neck.
To address the above issues, we propose EFAS-YOLO, an improved YOLOv11 framework specifically designed for steel surface defect detection, as illustrated in Fig. 1. First, to alleviate the loss of weak-texture features, an Edge-Frequency Aware Stem (EFAS) module is designed. This module introduces a Sobel-operator-based high-frequency gradient prior at the input stage, thereby enhancing the model’s perception of weak-texture defects. Second, to improve the propagation and utilization of edge-enhanced shallow features, the backbone channel configuration and shallow receptive field are adaptively adjusted. This design reduces abrupt channel expansion and improves the compatibility between EFAS-enhanced features and the subsequent feature extraction network. Third, to mitigate the loss of spatial details in small objects, a Small Defect Enhancement Path (SDEP) is constructed. By introducing a shallow high-resolution feature pathway, SDEP alleviates feature degradation caused by multi-level downsampling.

Figure 1: EFAS-YOLO model architecture.
The main contributions are summarized as follows:
1. A lightweight EFAS-YOLO framework is proposed for weak-texture and small-scale steel surface defect detection. Different from methods that mainly enhance features in the Neck or Head, the proposed framework considers the complete information flow from input-level edge perception to backbone transmission and P3-level detail preservation.
2. An Edge-Frequency Aware Stem is designed at the input side of YOLOv11. It introduces fixed Sobel-gradient structural priors and learnable shallow texture features before repeated downsampling, improving the perception of weak defect boundaries.
3. A backbone adaptation strategy is introduced to improve the compatibility between EFAS-enhanced features and subsequent feature extraction. The progressive channel configuration and shallow receptive-field adjustment reduce abrupt feature transformation while maintaining lightweight computation.
4. A Small Defect Enhancement Path is constructed to provide a short residual route for P3-level high-resolution features, allowing small-defect details to participate more directly in Neck fusion. Experiments on NEU-DET and GC10-DET verify the effectiveness and lightweight characteristics of the proposed method.
2.1 Research Status of Steel Surface Defect Detection
Steel surface defect detection is an important research topic in industrial visual inspection. Early studies mainly relied on manual inspection and traditional machine vision methods, in which defect recognition was achieved through threshold segmentation, edge detection, texture description, and classifier design. However, such methods are sensitive to illumination variations, noise interference, and changes in defect morphology, resulting in limited robustness and generalization capability [11]. With the development of deep learning, steel surface defect detection has gradually shifted from hand-crafted feature design to data-driven feature learning, and related studies have further expanded from defect classification and segmentation to object detection frameworks [12]. Existing reviews have shown that steel surface defect detection has formed a relatively complete research system, ranging from traditional vision-based methods to deep learning-based approaches. Among them, one-stage detectors have become an important technical route in this field because they can achieve a favorable balance between detection accuracy and inference speed [13].
Although deep learning methods have significantly improved the performance of steel surface defect detection, characteristics such as weak textures, small sizes, and imbalanced category distributions still pose adaptation challenges for general object detection frameworks in this scenario.
2.2 Small Object Detection and Multi-Scale Feature Fusion Methods
To address scale variations in object detection, multi-scale feature fusion has become a key technique. Feature Pyramid Network (FPN) realizes the fusion of high-level semantic information and shallow spatial details through a top-down pathway and lateral connections [7]. Path Aggregation Network (PANet) further introduces a bottom-up path augmentation mechanism based on FPN, thereby shortening the transmission path from low-level localization information to high-level semantic features [14]. EfficientDet employs Bidirectional Feature Pyramid Network (BiFPN) to achieve more efficient bidirectional feature fusion [15]. In recent years, studies on small object detection for steel surface defects have further strengthened this research direction. For example, SRN-YOLO [16], YOLOv8-BSPB [17], YOLO-SDS [18], and DSL-YOLO [19] improved detection performance from the perspectives of shallow feature preservation, multi-scale enhancement, lightweight design, and small-object representation, respectively. MPA-YOLO [20] further optimized multi-path feature extraction and multi-scale perception.
In addition to CNN-based feature pyramids, recent Transformer-based and remote sensing detectors have also revisited multi-scale feature representation and fusion. Liu et al. [21] rethought the multi-scale feature hierarchy in Detection Transformer (DETR) and showed that more effective hierarchical feature organization is important for improving detection performance in Transformer-based detectors. Wang et al. [22] proposed an attention-guided feature fusion strategy for drone-based remote sensing object detection, demonstrating that attention-driven cross-scale feature interaction can enhance the recognition of small and complex objects. These studies indicate that multi-scale hierarchy design and adaptive feature fusion remain important issues in modern object detection. However, for steel surface defects with weak textures and blurred boundaries, feature fusion alone may still be insufficient if edge cues and fine spatial details have already been weakened in the early feature extraction stages.
However, most of the above methods are built upon feature representations obtained after progressive propagation through the backbone network. Their main focus lies in cross-layer feature fusion rather than suppressing the attenuation of small-object details during forward propagation. For tiny defects on steel surfaces that occupy only a few pixels, once their spatial details have been weakened through repeated convolution and downsampling operations, subsequent feature fusion modules often struggle to effectively recover them. Therefore, how to establish a shorter and lower-loss high-resolution feature transmission pathway remains an issue worthy of further investigation in steel small-defect detection.
2.3 Edge and High-Frequency Information Modeling Methods
For weak-texture and low-contrast targets, modeling edge and high-frequency information is an important strategy for improving detection performance. In traditional methods, edge operators such as Canny [23] can explicitly extract image gradients and boundary structure information, providing direct priors for object contours. In deep learning-based methods, Holistically-Nested Edge Detection (HED) [24] further formulates edge detection as an end-to-end learning problem and emphasizes the importance of multi-scale hierarchical features for edge modeling. In steel surface defect detection, recent studies have also paid increasing attention to edge and texture information enhancement. For example, RSTD-YOLOv7 [25] alleviates texture information loss by enlarging the receptive field and introducing an attention mechanism. An improved YOLOv9-based method [26] enhances detection capability in complex backgrounds through lightweight convolution and feature enhancement. LCED-YOLO [10] further explicitly incorporates an edge information enhancement module into the YOLOv11 framework to strengthen defect edge representation.
Nevertheless, existing edge or high-frequency enhancement methods still have certain limitations. On the one hand, many methods introduce edge enhancement branches in the middle or late stages of the network, where high-frequency information has already undergone multiple rounds of convolution and downsampling, making it difficult to fully recover. On the other hand, some methods rely heavily on complex modules or learnable branches, whose stability may still be limited in industrial defect scenarios involving small samples, imbalanced categories, and subtle texture differences. Therefore, explicitly injecting stable high-frequency priors from the input stage and collaboratively modeling them with shallow texture features remains of considerable research value.
2.4 Limitations of Existing Studies and Motivation of This Work
Although existing studies have improved steel surface defect detection from the perspectives of multi-scale fusion, attention mechanisms, and edge feature enhancement, two issues remain insufficiently addressed. First, many methods perform feature enhancement after several convolution and downsampling stages. At this point, part of the weak edge response and fine spatial detail may already have been weakened, especially for tiny or low-contrast defects. Second, feature fusion in the Neck can shorten the information path between different scales, but it does not directly solve the problem of detail loss before the shallow features arrive at the fusion stage.
Motivated by these observations, this work focuses on the continuity of defect-related information transmission. EFAS is placed at the front of the network to provide explicit gradient priors before early feature abstraction. The backbone is then adjusted to reduce the mismatch between edge-enhanced shallow features and subsequent channel expansion. Finally, SDEP introduces a shorter P3-level detail transmission path so that high-resolution local cues can participate more directly in Neck fusion. Therefore, the proposed method is not a simple combination of independent modules, but a coordinated design for edge cue extraction, feature propagation, and small-defect detail preservation.
To address the attenuation of weak-texture and small-defect features, this paper proposes EFAS-YOLO based on YOLOv11. The framework follows the Backbone–Neck–Head paradigm and introduces three task-oriented components: an Edge-Frequency Aware Stem for input-level edge prior injection, an adapted backbone for smoother feature transmission, and a Small Defect Enhancement Path for P3-level detail preservation.
Compared with the original YOLOv11n, EFAS-YOLO differs in three aspects: the standard input stem is replaced by EFAS to introduce fixed Sobel-gradient priors and learnable shallow texture features; the shallow backbone is adjusted from rapid channel expansion to a progressive 64–128–256–512 configuration with a 5
3.1.1 Adaptation Limitations of Existing Methods
Weak-texture defects mainly appear as subtle edge structures and local gray-level variations. To reduce the dependence on purely learnable shallow convolutions, EFAS introduces a fixed Sobel-based gradient branch at the input stage and combines it with a learnable shallow texture branch, as shown in Fig. 2.

Figure 2: Structure of the EFAS module.
3.1.2 Explicit Extraction of Non-Parametric High-Frequency Edges
Image edge gradients inherently reflect high-frequency structural information in images. For weak-texture defects, the gray-level contrast is often low, making it difficult to distinguish defective regions from the background using intensity information alone. However, directional gradient variations around defect boundaries usually remain discriminative, since they can characterize local structural changes in images. Therefore, explicitly introducing Sobel-based gradient priors at the input stage can provide the model with stable high-frequency structural information, thereby improving the separability between defect regions and the background.
In this paper, fixed Sobel operators are introduced to construct a non-learnable edge extraction branch. Let the input image be denoted as
where
To improve the adaptability of the fixed gradient responses to subsequent feature extraction layers, the concatenated Sobel responses are further processed by BatchNorm, SiLU activation, and a 1
where
3.1.3 Multi-Source Feature Fusion and Channel Recalibration
Building upon the directional high-frequency edge extraction, EFAS feeds the input features into two parallel branches: a fixed Sobel edge branch and a learnable shallow texture branch. The Sobel edge branch extracts directional gradient responses using fixed Sobel-X and Sobel-Y operators, followed by BatchNorm, SiLU activation, and a 1
In the implementation, the learnable texture branch adopts a 3
Let the output of the Sobel edge branch be denoted as
After concatenation, a lightweight
where
The projected feature

Figure 3: Architecture of the ECA module.
3.2 Adaptive Adjustment of the Backbone Network
The EFAS module changes the shallow feature distribution received by the backbone by introducing explicit gradient and local texture responses. Therefore, the subsequent backbone should not simply follow the original YOLOv11 configuration. In this work, the backbone is adapted from two aspects: progressive channel configuration and shallow receptive-field adjustment.
3.2.1 Progressive Channel Configuration Optimization
The original YOLOv11 adopts a relatively rapid channel expansion strategy in the shallow stages, where the 32-channel features output by the standard Stem are quickly transformed into high-dimensional feature representations in subsequent layers. This design is suitable for semantic feature extraction in general scenarios. However, for EFAS output features that already contain edge-enhanced information, excessively rapid channel expansion may introduce computational redundancy and increase the risk of abrupt changes in fine-grained feature distributions.
In this paper, the channel configuration of the backbone network is adjusted into a progressive doubling structure, namely EFAS(64)
3.2.2 Differential Receptive Field Parameter Adaptation
The C3K2 module is a core feature extraction unit in YOLOv11, and the kernel size is one of the important factors affecting the local receptive field. In the original YOLOv11 backbone, the main convolutional operations in shallow C3K2 blocks are mainly based on 3
To address this issue, this paper adopts a differential receptive field configuration according to the feature characteristics at different network levels. Specifically, the convolution kernel size of the first C3K2 module is adjusted to 5
Since shallow features still preserve relatively high spatial resolution and abundant edge details, moderately enlarging their receptive field is conducive to aggregating local edge context. In contrast, extensively applying large convolution kernels to deeper features would increase computational cost and weaken the lightweight advantage of the model. Therefore, this paper only applies differential receptive field adaptation to the shallow C3K2 module.
3.3 Small Defect Enhancement Path
To reduce the loss of small-defect details during long-path feature propagation, this paper introduces a Small Defect Enhancement Path (SDEP). The detailed structure of SDEP is illustrated in Fig. 4. In the original YOLO-style structure, P3 features need to pass through several convolution, upsampling, and downsampling operations before they are finally used by the detection branch. For small defects, this long route may weaken fine local textures and boundary cues.

Figure 4: Architecture of the SDEP module.
SDEP builds a direct high-resolution path from the backbone P3 output to the corresponding P3 fusion node in the Neck. Since P3 retains 1/8 of the input resolution, it still contains relatively rich spatial information and is closely related to small-object localization. In the proposed path, the P3 feature is first enhanced by a lightweight channel-preserving depthwise convolution. A residual connection is then used to preserve the original shallow representation while supplementing local texture and edge responses. Specifically, the enhancement operation in SDEP is implemented by a
This work adopts the publicly accessible NEU-DET dataset released by Northeastern University. The dataset covers six typical surface defects of hot-rolled steel strips: crazing (Cr), inclusion (In), patches (Pa), pitted surface (Ps), rolled-in scale (Rs), and scratches (Sc), as illustrated in Fig. 5. In total, NEU-DET contains 1800 grayscale images, with 300 samples for each defect category. For model training, validation and performance evaluation, the entire dataset is randomly partitioned into three subsets at an 8:1:1 ratio, corresponding to the training set, validation set and test set, respectively. The split was performed by class-stratified random sampling, and the generated training, validation, and test lists were fixed and shared by all compared models to ensure fair evaluation.

Figure 5: Six types of defects in the NEU-DET dataset.
All experiments were conducted on Linux with an NVIDIA GeForce RTX 3090 GPU, using PyTorch 2.1.0, Python 3.10, and CUDA 12.1. For fair comparison, all YOLO-based models were trained under the same data split, input size, optimizer, initial learning rate, training batch size, number of epochs, and data augmentation strategy, including random horizontal flipping, scaling, translation, and hue–saturation–value (HSV) intensity perturbation. For models implemented in different frameworks, the input resolution and epoch number were kept consistent, and the training settings were kept as close as possible. For inference speed evaluation, all models were tested on the same RTX 3090 GPU with an input size of 640

To comprehensively validate the detection capability of the proposed model, six quantitative indicators are adopted for performance evaluation, including Precision, Recall, mAP, parameter count, FLOPs, and inference speed (FPS). Precision quantifies the prediction accuracy by calculating the proportion of correctly predicted positive samples in all detection outputs, whereas Recall characterizes the model’s capacity to identify real defect targets. As a core evaluation indicator for object detection tasks, mAP provides a comprehensive assessment of detection results under diverse confidence thresholds. For fair comparison with existing mainstream methods, this study adopts mAP@0.5, i.e., mAP evaluated at an IoU threshold of 0.5, as the primary evaluation criterion. The corresponding mathematical formulas are defined in Eqs. (6)–(9).
where
To further assess the practical deployment performance of the proposed model, this section investigates its computational complexity and inference efficiency. Specifically, the parameter count is adopted to quantify model memory overhead, while floating-point operations (FLOPs) are utilized to evaluate computational complexity. FLOPs reflect the total floating-point calculations consumed in the inference phase, and higher FLOP values correspond to greater computational consumption. Furthermore, frames per second (FPS) is adopted as a critical metric to measure inference speed, which intuitively characterizes the model’s real-time detection potential in actual industrial inspection scenarios.
Tables 2 and 3 report the comparative results on NEU-DET.


EFAS-YOLO achieves 79.8% mAP@0.5, exceeding YOLOv11n by 3.6 percentage points. Compared with other lightweight one-stage detectors, the proposed method also performs better than YOLOv10n and YOLOv26n, indicating that the improvement is not only caused by the YOLOv11 baseline but also by the targeted feature enhancement design.
In terms of model complexity, EFAS-YOLO uses 2.1M parameters and 5.7 GFLOPs. Although EFAS and SDEP introduce additional branches, the adjusted backbone channel configuration reduces redundant channel expansion in shallow stages. Therefore, the final model remains lighter than YOLOv11n while achieving higher accuracy. The inference speed reaches 158 FPS on the RTX 3090 GPU, which is higher than YOLOv11n and YOLOv26n under the same experimental setting.
From the category-wise results, the improvement is more evident on defect types that rely strongly on local edge or texture cues. For example, EFAS-YOLO achieves 45.8% AP on Cr, which is higher than YOLOv11n by 4.5 percentage points. It also obtains 91.0% on Ps and 97.6% on Sc, showing that the proposed design improves both weak-boundary defects and relatively distinguishable texture defects. These results support the motivation that input-level edge priors and P3-level detail preservation are beneficial for steel surface defect detection.
To verify the contribution of each improved module to model performance, ablation experiments are conducted on the NEU-DET dataset. To evaluate the stability of the proposed method, all ablation experiments were repeated under five random seeds, i.e., 0, 1, 2, 3, and 4. The mAP results are reported as mean ± standard deviation across the five runs. YOLOv11n is used as the baseline model, and the EFAS, SDEP, and backbone adaptation strategy are progressively introduced. The experimental results are shown in Table 4.

As shown in Table 4, all proposed components contribute positively to the detection performance. Compared with YOLOv11n, adding EFAS improves mAP@0.5 from 76.2% to 77.2%, indicating that input-level edge-frequency priors are beneficial for weak-texture defect representation. SDEP achieves 77.4% mAP@0.5, showing that the shallow high-resolution path helps reduce small-defect detail loss during feature propagation.
The improvement of the full EFAS-YOLO over YOLOv11n is much larger than the corresponding standard deviations across five random seeds, indicating that the performance gain is stable rather than being caused by random initialization.
The individual introduction of EFAS, SDEP, and backbone adaptation all improves the baseline, indicating that edge prior extraction, shallow detail preservation, and feature transmission adaptation are beneficial to steel surface defect detection. Among them, EFAS mainly improves the early perception of weak edge structures, while SDEP contributes to the preservation of high-resolution local details. The backbone adaptation alone brings a relatively limited gain, but when combined with EFAS, the performance further increases, suggesting that the adapted backbone improves the compatibility and propagation of EFAS-enhanced features. The full model achieves the best result, demonstrating that the performance gain comes from the coordinated design rather than a single isolated component.
4.5.1 Detailed Analysis of EFAS Components
To isolate the contribution of the internal EFAS design, all variants in Table 5 retain SDEP and Backbone Adapt, while only the EFAS/input-stem configuration is varied. Specifically, in the “EFAS removed” variant, the entire EFAS module, including the Sobel branch, learnable texture branch, ECA attention, and feature-fusion operation, is removed, and the original YOLOv11 stem is restored. The remaining variants use the indicated partial or complete EFAS configurations. All other network components and training settings remain unchanged.

The results show that both branches of EFAS are useful, but their effects are different. The texture-only variant improves mAP@0.5 from 78.4% to 78.6%, while the Sobel-only variant reaches 79.0%, indicating that explicit gradient priors provide stronger guidance for weak and blurred defect boundaries. Combining Sobel and learnable texture features further increases mAP@0.5 to 79.4%, which verifies the complementarity between fixed edge priors and learnable shallow texture features. Compared with element-wise addition, concatenation followed by a 1
4.5.2 Analysis of Edge Operator and Shallow Receptive Field
To examine the choice of the fixed edge operator in EFAS, Sobel is compared with Laplacian, Canny, and a learnable edge filter under the same backbone adaptation and SDEP settings. As shown in Table 6, Sobel achieves 79.8% mAP@0.5 and 47.2% mAP@0.5:0.95, which is comparable to the learnable edge filter in mAP@0.5 and slightly better in mAP@0.5:0.95. Canny and Laplacian produce lower results, suggesting that their edge responses are less compatible with the lightweight end-to-end detection framework used in this study. Therefore, Sobel is adopted as a simple and stable gradient prior.

The shallow receptive-field setting in the adapted backbone is also evaluated. As shown in Table 7, using a 5

4.6 Performance Curve Analysis
To further analyze the detection performance of the model, this paper compares the F1-Confidence curves, as shown in Fig. 6, and Precision-Recall curves, as shown in Fig. 7, of YOLOv11n and EFAS-YOLO on the NEU-DET dataset.

Figure 6: F1 score curve.

Figure 7: Precision-Recall curve.
Fig. 6 shows that EFAS-YOLO maintains a higher and more stable F1 score over a wider confidence range, indicating better robustness to confidence-threshold variations. As shown in Fig. 7, the PR curves of most categories shift toward the upper-right region, and the overall mAP@0.5 increases from 76.2% to 79.8%. The improvements are especially evident for crazing and scratches, suggesting that the proposed edge-frequency enhancement is effective for weak-texture and boundary-sensitive defects.
4.7 Visualization and Error Analysis
As shown in Fig. 8, the main errors of both models are concentrated between defect categories and background, while inter-class confusion is relatively limited. Compared with YOLOv11n, EFAS-YOLO improves the diagonal values of scratches, rolled-in scale, and pitted surface, and reduces their misclassification as background, indicating fewer missed detections for these categories. However, slight decreases are observed for crazing and patches, suggesting that extremely weak-texture defects with ambiguous boundaries remain challenging. Since the confusion matrix is computed under a fixed confidence threshold, its category-level trend may not be fully consistent with mAP, which reflects the overall precision–recall performance across different thresholds.

Figure 8: Confusion matrices of the models on the NEU-DET dataset.
Discussion on Industrial Limitations. Although EFAS-YOLO improves the detection of weak-boundary and small-scale defects, some challenging cases may still occur in practical industrial inspection scenarios. For extremely low-contrast defects such as Cr and Pa, the gray-level difference between the defect region and the surrounding steel surface is very small, and the boundary may be discontinuous or partially mixed with background texture. In such cases, the Sobel-based branch can enhance local gradient responses, but when the original gradient variation is too weak, the extracted edge prior may still be insufficient to form a complete defect representation.
Moreover, real production lines often involve more complex imaging conditions than public datasets. Illumination variation may change the gray-level distribution, motion blur may weaken high-frequency boundary details, and surface contamination such as oil stains or water marks may introduce pseudo-edge responses. To further improve robustness, future work will consider illumination normalization, motion-blur-oriented data augmentation, low-contrast sample reweighting, and domain adaptation across different production lines.
4.8 Supplementary Validation on GC10-DET
NEU-DET is used as the main evaluation dataset in this study, while GC10-DET is adopted as a supplementary validation dataset to examine the stability of the proposed method under a more complex category setting.
GC10-DET is one of the commonly used datasets in the field of steel surface defect detection. It contains 10 typical types of surface defects, with a total of 2306 images. To ensure consistency and comparability of the experimental settings, the dataset is divided into training, validation, and test sets at a ratio of 8:1:1. The same class-stratified random splitting strategy was adopted for GC10-DET, and the split files were kept unchanged for all comparative and ablation experiments. The training strategy is kept as consistent as possible with that used for NEU-DET, including the input resolution, optimizer, learning rate, and number of training epochs.
4.8.1 Comparative Experiments and Ablation Experiments
To verify the overall detection performance of the proposed method on the GC10-DET dataset, Faster R-CNN, YOLOv5n, YOLOv8n, YOLOv10n, YOLOv11n, YOLOv26n, and three RT-DETR variants, namely RT-DETR-R18, RT-DETR-R50, and RT-DETR-R101, are selected as comparative models. The comparative experimental results are shown in Table 8, and the ablation experimental results are shown in Table 9.


As shown in Table 8, EFAS-YOLO achieves an mAP@0.5 of 68.3% on GC10-DET, representing an improvement of 3.0 percentage points over YOLOv11n, while maintaining only 2.1M parameters and an inference speed of 151 FPS. The ablation results in Table 9 indicate that EFAS, SDEP, and Backbone Adapt still bring stable performance gains on GC10-DET, with the complete model achieving the best performance. These results demonstrate that the proposed method is effective not only on NEU-DET but also exhibits a certain degree of stability on steel defect datasets with different category settings.
4.8.2 Qualitative Visualization Analysis
As shown in Fig. 9, the qualitative results on selected representative samples show that EFAS-YOLO achieves more stable localization for slender, low-contrast, and boundary-ambiguous defects. Compared with the selected comparison models, EFAS-YOLO produces fewer missed detections and redundant boxes in visually weak regions. These results are consistent with the design motivation of EFAS and SDEP: input-level Sobel-gradient priors help enhance weak structural responses, while the P3-level enhancement path helps preserve shallow localization details for small defects.

Figure 9: Qualitative comparison of detection results on the GC10-DET dataset.
This paper proposes EFAS-YOLO, a lightweight YOLOv11-based framework for steel surface defect detection. The method is designed around the problem that weak edge responses and small-defect details are easily suppressed during early convolution and multi-level downsampling. EFAS introduces fixed Sobel gradient priors and learnable shallow texture features at the input stage, Backbone Adaptation improves the transmission of edge-enhanced features through a smoother channel configuration, and SDEP provides a short residual path for P3-level high-resolution details. Experiments on NEU-DET and GC10-DET demonstrate that EFAS-YOLO improves detection accuracy while maintaining low parameter count and high inference speed. With only 2.1M parameters, 5.7 GFLOPs, and an inference speed of 158 FPS on an RTX 3090 GPU, EFAS-YOLO provides a lightweight and real-time detection solution for high-throughput steel surface inspection, showing practical potential for industrial scenarios where both detection accuracy and inference efficiency are required.
However, this study is still mainly validated on public offline datasets. Real industrial production lines may involve more complex illumination changes, motion blur, surface contamination, and domain shifts between different steel products. Therefore, future work will focus on validating the proposed method under real production-line scenarios and improving the robustness of extremely low-contrast defect localization.
Acknowledgement: Not applicable.
Funding Statement: The authors received no specific funding for this study. The article processing charge (APC) for this open-access publication was covered by the corresponding author’s personal funds.
Author Contributions: Jiahui Liu: Conceptualization, methodology, software, validation, formal analysis, investigation, visualization, and writing—original draft. Longzhen Dong: Conceptualization, supervision, project administration, resources, writing—review and editing, and correspondence. Zeling Hou: Data curation, experimental validation, result analysis, visualization, and writing—review and editing. All authors reviewed and approved the final version of the manuscript.
Availability of Data and Materials: The NEU-DET and GC10-DET datasets used in this study are publicly available. The source code, dataset configuration files, trained model weights, and experimental outputs will be made available at [https://github.com/zhenshuai222/EFAS-YOLO] upon acceptance of the paper. Additional materials are available from the corresponding author upon reasonable request.
Ethics Approval: Not applicable.
Conflicts of Interest: The authors declare no conflicts of interest.
References
1. Chazhoor AAP, Ho ESL, Gao B, Woo WL. A review and benchmark on state-of-the-art steel defects detection. SN Comput Sci. 2023;5(1):114. doi:10.1007/s42979-023-02436-2. [Google Scholar] [CrossRef]
2. Tang B, Chen L, Sun W, Lin ZK. Review of surface defect detection of steel products based on machine vision. IET Image Process. 2023;17(2):303–22. doi:10.1049/ipr2.12647. [Google Scholar] [CrossRef]
3. Ma Y, Yin J, Huang F, Li Q. Surface defect inspection of industrial products with object detection deep networks: a systematic review. Artif Intell Rev. 2024;57(12):333. doi:10.1007/s10462-024-10956-3. [Google Scholar] [CrossRef]
4. Ren S, He K, Girshick R, Sun J. Faster R-CNN: towards real-time object detection with region proposal networks. In: Proceedings of the 29th International Conference on Neural Information Processing Systems-Volume 1; 2015 Dec 7–12; Montreal, QC, Canada. p. 91–9. [Google Scholar]
5. Redmon J, Divvala S, Girshick R, Farhadi A. You only look once: unified, real-time object detection. In: Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2016 Jun 27–30; Las Vegas, NV, USA. p. 779–88. [Google Scholar]
6. Zhao Y, Lv W, Xu S, Wei J, Wang G, Dang Q, et al. DETRs beat YOLOs on real-time object detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2024 Jun 16–22; Seattle, WA, USA. p. 16965–74. [Google Scholar]
7. Lin TY, Dollár P, Girshick R, He K, Hariharan B, Belongie S. Feature pyramid networks for object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2017 Jul 21–26; Honolulu, HI, USA. p. 2117–25. doi:10.1109/CVPR.2017.106. [Google Scholar] [CrossRef]
8. Wang Y, Yin T, Chen X, Hauwa AS, Deng B, Zhu Y, et al. A steel defect detection method based on edge feature extraction via the Sobel operator. Sci Rep. 2024;14(1):27694. doi:10.1038/s41598-024-79205-5. [Google Scholar] [CrossRef]
9. Jiang X, Yan F, Lu Y, Wang K, Guo S, Zhang T, et al. Joint attention-guided feature fusion network for saliency detection of surface defects. arXiv:2402.02797. 2024. doi:10.48550/arxiv.2402.02797. [Google Scholar] [CrossRef]
10. Zheng A, Jiang X, Liu W. An efficient lightweight method for steel surface defect detection. Sensors. 2025;25(24):7527. doi:10.3390/s25247527. [Google Scholar] [CrossRef]
11. Neogi N, Mohanta DK, Dutta PK. Review of vision-based steel surface inspection systems. EURASIP J Image Video Process. 2014;2014(1):50. doi:10.1186/1687-5281-2014-50. [Google Scholar] [CrossRef]
12. Ibrahim AAMS, Tapamo JR. A survey of vision-based methods for surface defects’ detection and classification in steel products. Informatics. 2024;11(2):25. doi:10.3390/informatics11020025. [Google Scholar] [CrossRef]
13. Luo Q, Fang X, Liu L, Yang C, Sun Y. Automated visual defect detection for flat steel surface: a survey. IEEE Trans Instrum Meas. 2020;69(3):626–44. doi:10.1109/TIM.2019.2963555. [Google Scholar] [CrossRef]
14. Liu S, Qi L, Qin H, Shi J, Jia J. Path aggregation network for instance segmentation. In: Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2018 Jun 18–23; Salt Lake City, UT, USA. p. 8759–68. [Google Scholar]
15. Tan M, Pang R, Le QV. EfficientDet: scalable and efficient object detection. In: Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); 2020 Jun 13–19; Seattle, WA, USA. p. 10781–90. [Google Scholar]
16. Gao S, Chu M, Zhang L. A detection network for small defects of steel surface based on YOLOv7. Digit Signal Process. 2024;149(6):104484. doi:10.1016/j.dsp.2024.104484. [Google Scholar] [CrossRef]
17. Wang J, Chen T, Xu X, Zhao L, Yuan D, Du Y, et al. An improved YOLOv8 model for strip steel surface defect detection. Appl Sci. 2025;15(1):52. doi:10.3390/app15010052. [Google Scholar] [CrossRef]
18. Chu Y, Yu X, Rong X. A lightweight strip steel surface defect detection network based on improved YOLOv8. Sensors. 2024;24(19):6495. doi:10.3390/s24196495. [Google Scholar] [CrossRef]
19. Wang Z, Zhao L, Li H, Xue X, Liu H. Research on a metal surface defect detection algorithm based on DSL-YOLO. Sensors. 2024;24(19):6268. doi:10.3390/s24196268. [Google Scholar] [CrossRef]
20. Zhou Y, Zhao Z. MPA-YOLO: steel surface defect detection based on improved YOLOv8 framework. Pattern Recognit. 2025;168(6):111897. doi:10.1016/j.patcog.2025.111897. [Google Scholar] [CrossRef]
21. Liu F, Zheng Q, Tian X, Shu F, Jiang W, Wang M, et al. Rethinking the multi-scale feature hierarchy in object detection transformer (DETR). Appl Soft Comput. 2025;175(3):113081. doi:10.1016/j.asoc.2025.113081. [Google Scholar] [CrossRef]
22. Wang H, Li Y, Zhang Y, Shang J, Meng D, Moon H. Drone-based high-precision object detection in remote sensing with attention-guided feature fusion. Tsinghua Sci Technol. 2026;31(2):1263–81. doi:10.26599/TST.2025.9010091. [Google Scholar] [CrossRef]
23. Canny J. A computational approach to edge detection. IEEE Trans Pattern Anal Mach Intell. 1986;8(6):679–98. doi:10.1109/TPAMI.1986.4767851. [Google Scholar] [CrossRef]
24. Xie S, Tu Z. Holistically-nested edge detection. In: Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV); 2015 Dec 7–13; Santiago, Chile. p. 1395–403. [Google Scholar]
25. Song H. RSTD-YOLOv7: a steel surface defect detection based on improved YOLOv7. Sci Rep. 2025;15(1):19649. doi:10.1038/s41598-025-04811-w. [Google Scholar] [CrossRef]
26. Chen C, Lee H, Chen M. Steel surface defect detection method based on improved YOLOv9. Sci Rep. 2025;15(1):25098. doi:10.1038/s41598-025-10647-1. [Google Scholar] [CrossRef]
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools