원시데이터 수집 시스템
선정목록으로

Resilient machine learning for steel surface defect detection based on lightweight convolution

간접 관련 산업용 섬유 · (17) 스펀본드 부직포 (11) 배리어 필름(12) 증착 필름(18) VENT(방수통기 부품)

기본 정보

저자
  1. Lijuan Liu — School of Railway Intelligent Engineering, Dalian Jiaotong University, Dalian, 116000, China
  2. Yu Zhang — School of Railway Intelligent Engineering, Dalian Jiaotong University, Dalian, 116000, China
  3. Hamid Reza Karimi — Department of Mechanical Engineering, Politecnico di Milano, Milan, 20156, Italy
DOI
10.1007/s00170-024-14403-z
저널
The International Journal of Advanced Manufacturing Technology
발행년도
2024
발행기관
Springer Science+Business Media
피인용수
15
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s00170-024-14403-z
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4402544089

평가 내용

관련도
간접 관련
사업분야
산업용 섬유 · (17) 스펀본드 부직포
부 분야
(11) 배리어 필름, (12) 증착 필름, (18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
surface defect detection, machine learning, YOLOv8n, lightweight convolution, NEU-DET
판단 근거
본 논문은 철강 표면 결함 검출을 위한 경량화된 딥러닝 알고리즘 연구로, 코오롱인더스트리의 직접적인 제품(철강)은 아니나 산업용 필름, 부직포, 멤브레인 등 고분자 소재 제조 공정 중 발생하는 표면 결함을 자동 검출하는 비전 검사 시스템 R&D에 원리를 적용할 수 있습니다.
R&D 활용 포인트
필름(11, 12)이나 부직포(17), 멤브레인(18) 제조 공정의 실시간 품질 관리(QC)를 위한 경량화된 AI 결함 검출 모델 개발에 활용 가능함.
평가 입력
섹션 본문 24,475자

초록

Abstract Steel, as a crucial material extensively used in various fields, has a critical impact on the determination of the stability and reliability of engineering structures. Nevertheless, because of inevitable factors in manufacturing, transportation, and other processes, steel may exhibit various surface defects during production and handling. To address these defects, the investigation puts forward a resilient machine-learning method for steel surface defect detection based on lightweight convolution. First, to reduce redundant features, complexity, and computational cost, the Spatial and Channel Reconstruction Convolution (ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n’s backbone network. Second, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, and the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module to alleviate the model burden while maintaining accuracy. Then, to focus on important information related to the current task, the Coordinate Attention module is added to the Neck layer. Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit (LeakyReLU) to effectively address issues such as gradient vanishing and overfitting. The method achieved a mean Average Precision (mAP) of 77.7% on the NEU-DET dataset, which is an improvement of 4.7% over the original YOLOv8n. Additionally, the frames per second (FPS) reached 17.36 f/s, representing a 5.79 f/s increase compared to the original YOLOv8n. On the GC10-DET dataset, mAP improves by 5.5%, with a FPS of 15.63 f/s. A plethora of experimentation on both datasets illustrates the method’s robustness, meeting the precision criteria for detecting metal defects.

본문 24,770자

본문 펼치기
Steel, as a crucial material extensively used in various fields, has a critical impact on the determination of the stability and reliability of engineering structures.Nevertheless, because of inevitable factors in manufacturing, transportation, and other processes, steel may exhibit various surface defects during production and handling.To address these defects, the investigation puts forward a resilient machine-learning method for steel surface defect detection based on lightweight convolution.First, to reduce redundant features, complexity, and computational cost, the Spatial and Channel Reconstruction Convolution (ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n's backbone network.Second, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, and the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module to alleviate the model burden while maintaining accuracy.Then, to focus on important information related to the current task, the Coordinate Attention module is added to the Neck layer.Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit (LeakyReLU) to effectively address issues such as gradient vanishing and overfitting.The method achieved a mean Average Precision (mAP) of 77.7% on the NEU-DET dataset, which is an improvement of 4.7% over the original YOLOv8n.Additionally, the frames per second (FPS) reached 17.36 f/s, representing a 5.79 f/s increase compared to the original YOLOv8n.On the GC10-DET dataset, mAP improves by 5.5%, with a FPS of 15.63 f/s.A plethora of experimentation on both datasets illustrates the method's robustness, meeting the precision criteria for detecting metal defects. Introduction As industrialization advances and the economy develops, steel, as a crucial structural material, plays a key role in various industries.However, in the process of steel production and processing, various surface defects may occur, including but not limited to oxidation, rust, cracks, pits, and inclusions.These imperfections can adversely affect both the functionality and visual appeal of the steel.In construction engineering, the strength and stability of steel are critical factors in ensuring the safety of structural projects.In the manufacturing industry, surface defects may lead to early damage of com-an approach that combined the RepVGG algorithm with the Spatial Attention Mechanism (SAM).They announced a fresh dataset, X-SDD.However, due to a considerable quantity of parameters, the efficiency of recognition is not high.During that particular year, [5] separately trained Unet and Xception for classification tasks, using a synthetic dataset to identify surface irregularities in rolled components, and employing a normal dataset for reference in training, verifying the practicability and efficiency of generating datasets by hand. Introduction Object detection is a computer vision task that typically leverages deep learning techniques.It involves training on a large dataset with annotated labels to learn the feature representations of target objects, thereby enabling accurate identification of these objects.Object detection can be categorized into two types: one-stage detection and two-stage detection. Introduction Some of the most well-known one-stage algorithms consist of SSD [6], YOLO [7], Efficientdet [8], CenterNet [9], etc. Yang et al. [10] put forward a deep learning algorithm for detecting defects in small parts using a sole short-circuit detector network SSD and a swift model.Xie et al. [11] proposed a surface defect detection algorithm based on feature-enhanced YOLO (FE-YOLO), which alleviated the lightweight nature of the YOLO model by incorporating depthwise separable convolutions and dense connections.An improved feature pyramid network was proposed to enhance the spatial positional correlation of multi-scale detection layers.Wang et al. [12] designed an accurate YOLO-style object detector called ATT-YOLO, which utilized only a single selfattention module to perform multi-scale feature extraction and integration within the backbone and feature pyramid and also improved the automatic anchor design.Xing et al. [13] implemented an enhanced YOLOv3-based framework for detecting surface defects on railway wheels, enabling the identification of four types of tread anomalies.Song et al. [14] presented the EfficientDet-D0 algorithm in their edge computing method, combining the benefits of being lightweight and scalable.Tian et al. [15]proposed a steel surface defect detector, DCC-CenterNet, to achieve an optimal balance between speed and accuracy.This detector employed keypoint estimation to locate the center point and regress all other defect attributes. Introduction The two-stage classical methodologies prevalent in the domain of industrial defect detection encompass R-CNN (Regions with Convolutional Neural Networks) [16], Mask R-CNN [17], Faster R-CNN [18], etc. Wang et al. [19] proposed a novel surface defect detection network based on Mask R-CNN to detect rail defects.This network was capable of more accurately localizing defect positions.Gou et al. [20] utilized a convolutional neural network (Mask R-CNN) to improve the mask region and employed the enhanced network to simultaneously detect and segment defects in industrial CT (Computed Tomography) images.Luo et al. [21] introduced an FPC (Flexible Printed Circuit) surface defect detection method based on the Faster R-CNN object detection model.This method achieved promising results on a dataset containing seven common types of FPC surface defects.In 2020, Wei et al. [22]suggested a method based on Faster R-CNN, incorporating three significant improvements: weighted ROI (Region of Interest) pooling, a multi-scale feature extraction network based on FPN (Feature Pyramid Network), and strict NMS (Non-maximum suppression), to achieve more accurate defect recognition.Kong et al. [23] put forward a Faster R-CNN model to enhance the automation of surface defect detection on mirror-like materials.The model utilized the VGG16 (Visual Geometry Group 16) architecture as a feature extractor to ensure that the filters and generated feature maps capture useful features. Introduction Despite advancements in target detection techniques, they still confront subsequent difficulties: (1) The steel surface might exhibit various types of defects, including oxidation, rust, cracks, pits, slag inclusion, etc. Ensuring that the detection system can accurately distinguish and identify these different types of defects remains a challenge.(2) There may be complex environmental conditions on the steel production site, including changes in light, dust, vibration, etc.This could potentially impose greater demands on the detection system. Introduction To overcome the shortcomings of current approaches, the paper adopts YOLOv8n as the foundational training model.For the challenges related to scarcity and convoluted surface defects within the dataset, the model is iteratively enhanced. Introduction The paper's main accomplishments are summarized as listed hereafter: Introduction (1) Built upon the YOLOv8n model, a rapid and precise steel defect identification algorithm is constructed. Method Throughout this section, an algorithm for detecting steel surface defects based on lightweight convolution is recommended.On the basis of the YOLOv8n model, the Spatial and Channel Reconstruction Convolution(ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n's backbone network.After that, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module and Coordinate Attention is added.Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit(LeakyReLU).The proposed network architecture is depicted in Fig. 1. YOLOv8 YOLOv8n [24] is an advanced object detection model.The YOLOv8n model (Fig. YOLOv8n model has the following improvements over the previous YOLO series models.The first layer convolution of YOLOv8n's backbone network is changed from the original 6×6 convolution to 3×3 convolution, which significantly reduces the computation.Ligned with YOLOv7 ELAN's design, the C3 module is exchanged for the C2f module to achieve further lightweight.In the Head, the architecture evolved from a coupled head to a decoupled head, and the previous objectness branch is abandoned.Instead, the anchor-free design is implemented to reduce the complexity of the Anchor frame design.The loss function employs BCE Loss (Binary Cross Entropy Loss) for classification and a combination of DFL Loss (Distribution Focal Loss) and CIOU Loss (Complete Intersection over Union) for regression.This approach more accurately measures the deviation between predicted and actual bounding boxes, guiding the Fig. 3 The ScConv network architecture [25] model toward more effective learning.Overall, YOLOv8n can generate more accurate detection outcomes. ScConv module ScConv [25] is a convolutional module aimed at efficiently restructuring and merging the spatial and channel dimensions of input feature maps simultaneously.Figure 3 depicts the ScConv network architecture.The module comprises two units: SRU(Spatial Reconstruct Unit) and CRU(Channel Reconstruct Unit).The input features X first pass through the SRU, resulting in spatially refined features X w .These are then processed by the CRU, yielding channel-refined features Y as the output.The ScConv embedding model enhances performance by reducing redundant features.SRU (Spatial Reconstruct Unit) [25] is responsible for suppressing space redundancy.Figure 4 illustrates the SRU network architecture.It uses the method of separation and reconstruction.The SRU receives the feature map X from the previous layer as input.It first applies Group Normalization to the input features X.Then, by applying normalization followed by a Sigmoid activation function, it generates weights from the normalized feature map.Based on these generated weights, the input features are separated into multiple subfeature sets.Finally, these separated sub-feature sets undergo transformation and recombination, resulting in the spatially refined feature output X w .CRU (Channel Reconstruct Unit) [25] is responsible for reducing channel redundancy.The CRU network architecture is displayed in Fig. 5.It uses the strategy of separation, transformation, and fusion.The CRU takes the spatially refined features X w from the SRU as input.It first splits, the input features X w into two parts, typically based on different ratios or strategies.These split features then undergo a transformation, which includes the application of various convolution operations, such as Group-Wise Convolution (GWC) and Point-Wise Convolution (PWC), to further extract and transform the features.Finally, the transformed features are fused, often involving operations like pooling and SoftMax weighting, to produce the final channel-refined features Y. GSConv module and VoV-GSCSP module A fresh lightweight convolution technique, known as GSConv, has been introduced to enable depth-wise separable convolution to attain effects similar to vanilla convolution while also enhancing efficiency.And VoV-GSCSP is used to supplant the traditional module, effectively improving the efficiency of reasoning. GSConv module and VoV-GSCSP module The advantage of GSConv [26] lies in its lightweight detectors.It is evident from Fig. 6 that GSConv follows a specific process: it starts with downsampling through a regular convolution.This is followed by a depthwise convolution (DWConv).The results of the Standard Convolution (SC) and Fig. 4 SRU network design [25] 123 Fig. 5 The framework of CRU network [25] the Depthwise Separable Convolution (DSC) are then concatenated.After that, it conducts a shuffle operation to align the channel numbers of the preceding two convolutions and finally performs an output operation.The lightweight convolutional technology GSConv reduces the model size while preserving accuracy.GSConv attains an optimal equilibrium between model precision and velocity. GSConv module and VoV-GSCSP module The GSCSP module, a multi-stage partial network, is crafted through a one-time aggregation technique, referred to as VoV-GSCSP (Fig. 7) [26].In VOV-GSCSP, the input feature picture is split into two divisions subsequent to a single convolution step.One branch retains its original state, while the other branch employs a lightweight bottleneck structure known as GS bottleneck convolution.The data from both branches is then concatenated and output following a single convolution operation.This module reduces redundant computations and parameters, enabling the detector to process images more rapidly and accurately extract crucial features. Coordinate attention This section presents the coordinate attention [27] is introduced.As depicted in Fig. 8, average pooling is performed separately in the horizontal and vertical directions.X Avg Pool represents the result of average pooling in the horizontal direction, yielding a tensor of size C×H×1, while Y Avg Pool represents average pooling in the vertical direction, resulting in a tensor of size C×1×W.These two multi-channel 1D vectors are then concatenated along the spatial dimension.A 1×1 convolution is applied to compress the number of channels, followed by Batch Normalization (BN) and nonlinear activation to encode spatial information in both the vertical and horizontal directions.Subsequently, the features are split, and another 1×1 convolution is used to adjust the channel dimensions of the two directional feature vectors to match those of the input feature maps.A Sigmoid function is then applied.Finally, the features are weighted in both directions and combined with the original input information.By embedding positional information into channel attention, this approach enables the network to capture information over larger regions while avoiding substantial computational overhead. The activation function of LeakyReLU LeakyReLU [28] (Leaky Rectified Linear Unit) is a commonly used activation function in deep learning, an improved version of the Rectified Linear Unit (ReLU).The formula for LeakyReLU function [28] is The activation function of LeakyReLU In the equation above, α is a small positive constant regulating the gradient of negative input.LeakyReLU activation function is characterized by: (1)When the input is negative, Fig. 6 The organization of the GSConv network [26] Fig. 7 The configuration of the VoV-GSCSP network [26] a small, non-zero gradient is allowed to pass through, thus maintaining the information flow of the negative input and effectively alleviating the gradient disappearance problem. The activation function of LeakyReLU (2) When the input is positive, the output is the input value itself, maintaining high running speed and performance.(3) The negative slope in LeakyReLU is a hyperparameter that can be adjusted for specific tasks.This increases the flexibility of the model design. Experiments In this section, Section 3.1 describes the datasets, experimental configuration, and experimental parameters used, and Section 3.2 compares the improved model with other models.The ablation experiments are carried out in Section 3.3. Datasets Two publicly available datasets for detecting defects on steel surfaces are employed, namely NEU-DET [29] and GC10-DET [30].The NEU-DET dataset is a collection of Fig. 8 The layout of the coordinate attention network [27] defective surface images made available by NEU and is specifically designed for defect detection tasks.This dataset contains six representative surface defects found on steel strips, including Rolling Scale (Rs), Patches (Pa), Cracks (Cr), Pitted Surface (Ps), Inclusions (In), and Scratches (Sc).The images in the training, testing, and validation set are 1440, 180, and 180 respectively. Datasets The GC10-DET dataset is gathered within a genuine industrial environment, encompassing various types of defects.Such as Punching (Pu), Weld (Wl), Crescent Gap (Cg), Water Spot (Ws), Oil Opot (Os), Silk Spot (Ss), Inclusion (In), Rolling Pit (Rp), Crease (Cr), and Waist Crease (Wf).The training, testing, and validation datasets consist of 1836, 229, and 229 images each, in that order. Experimental configuration The experiment is performed using an AutoDL server with specific configurations as outlined in Table 1. Experimental parameters To confirm its capability in detecting steel surface defects accurately, AP, mAP, and FPS are used as performance indexes.AP, which stands for average precision.It averages the accuracy at different recall rate points.A higher AP value indicates greater average accuracy.Taking the mean of AP values across all classes yields the mAP, it provides a global assessment of performance.Detection speed is commonly evaluated using FPS.The greater the FPS value, the faster the model can process images.The equations are displayed Experimental parameters Among them, TP, FP, FN, and TN denote the count of true positives, false positives, false negatives, and true negatives, respectively. Experimental parameters In the above formula, P (R) refers to the precision-recall curve, t is defective classification, and m denotes the quantity of defect categories in this experiment. Experimental parameters Among them, "preprocess" is the time taken for image preprocessing."inference" is the time for inference, and "postprocess" represents the total time for post-processing. Comparison with other methods In this segment, the improved model is evaluated against YOLOv8n, YOLOv8s, YOLOv8m, YOLOv8l, YOLOv6 [31], and YOLOv5 [32], Furthermore, Literature [33] and literature [34] are compared on the NEU-DET dataset, and literature [35] and literature [36] are compared on the GC10-DET dataset.The experimental results on the NEU-DET dataset and the GC10-DET dataset are presented in Tables 2 and 3, respectively.Figure 9 shows some of the results obtained in detecting defects in steel strips. Comparison with other methods It can be seen from the data in Table 2 that compared with other models, the method proposed in this paper is optimal on the AP of the Cr class, the AP of the Ps class, the AP of the Rs class, and mAP.Although the AP for individual classes is higher in YOLOv8n and YOLOv8s, there is still a gap in other metrics compared to the proposed method.The AP for the Sc class and the FPS achieved by the method in literature [33] are higher than those of the proposed method; however, the other class-specific APs and mAP are lower.Overall, the proposed method balances performance with speed and computational efficiency, demonstrating its superiority and effectiveness for steel surface defect detection tasks. Comparison with other methods The data in Table 3 demonstrates that the method proposed in this paper achieves the best performance in terms of AP for the Cg and Cr classes as well as mAP on the GC10-DET dataset, compared to other models.While YOLOv8s, YOLOv8m, and the method from literature [35] achieve the highest AP values for specific classes, there is still a gap in Ablation study In validation of the indispensability of each module, eight batches of experiments are established for contrast.The first group of experiments serves as the baseline experiment, denoted as YOLOv8n.In the second set, the YOLOv8n+Sc Conv, ScConv module is added before the SPPF within the YOLOv8n's backbone network.In the third set, YOLOv8n+ GSConv+VoV-GSCSP, in the Neck layer, GSConv is used to replace the convolutional modules, VoV-GSCSP is substituted for the C2f module.The fourth set, YOLOv8n+ScConv +GSConv+VoV-GSCSP, included the ScConv, GSConv, and VoV-GSCSP modules.The fifth set, YOLOv8n+CA, coordinate attention is added in the Neck layer.In the sixth set, YOLOv8n+LeakyReLU, the activation function of YOLO v8n has been swapped for LeakyReLU.The seventh set, YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA, is based on the fourth group of experiments to add coordinate attention.The eighth set, YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA+LeakyReLU, represents the final improved model.All eight experiments use the same datasets, hardware and software environments, thresholds, and additional conditions.The experimental outcomes before and after improvements on the NEU-DET dataset and the GC10-DET dataset are depicted in Tables 4 and 5, correspondingly. Ablation study The following information can be obtained from the data in Table 4: On the NEU-DET dataset, mAP and FPS indexes are not rational after ScConv and GSConv+VoV-GSCSP are used separately, but after combined, mAP and PFS are improved respectively.The experiments with YOLOv8n+CA and YOLOv8n+LeakyReLU demonstrate varying degrees of mAP increase compared to the original YOLOv8n.The YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA experiment shows a 2.1% increase in mAP, although FPS decreases.The method proposed in this paper, namely YOLOv8n+ScConv+GSConv+VoV-GSCSP+ CA+LeakyReLU, mAP, and FPS respectively increased to 77.7% and 17.36%, and compared with the original YOLOv8n, each evaluation index has improved.It is shown that the method proposed in this paper not only improves the detection accuracy but also improves the reasoning speed, indicating that a good balance is achieved between the two. Ablation study The data in Table 5 provides the following insights: On the GC10-DET dataset, the mAP of YOLOv8n+ScConv, YOLOv8n+GSConv+VoV-GSCSP, YOLOv8n+CA, and YO LOv8n+LeakyReLU experiments all show varying degrees of growth compared with the original YOLOv8n.But FPS is down.The mAP of the YOLOv8n+ScConv+GSConv+VoV-GSCSP and YOLOv8n+ScConv+GSConv+VoV-GSCSP+ CA experiments increases by 4.4% and 4.3%, respectively.Moreover, the PFS of the YOLOv8n+ScConv+GSConv+VoV-GSCSP experiment reaches 20.83 f/s.The method proposed in this paper, namely YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA+LeakyReLU, has a mAP of 62.2% and a FPS of 15.63 f/s, indicating that the model's ability to detect and classify the target has become more accurate and can better identify and locate the target. Conclusion This paper applies a resilient machine learning method for steel surface defect detection based on lightweight convolution.First, to reduce redundant features, complexity, and computational cost, the Spatial and Channel Reconstruction Convolution(ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n's backbone network.Second, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, and the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module to alleviate the model burden while maintaining accuracy.Then, to focus on important information related to the current task, the Coordinate Attention module is added to the Neck layer.Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit(LeakyReLU) to effectively address issues such as gradient vanishing and overfitting.The method achieved a mean Average Precision (mAP) of 77.7% on the NEU-DET dataset, which is an improvement of 4.7% over the original YOLOv8n.Additionally, the frames per second (FPS) reached 17.36 f/s, representing a 5.79 f/s increase compared to the original YOLOv8n.On the GC10-DET dataset, mAP is 62.2%, and compared with the improved YOLOv8n model, mAP is 5.5% higher.Furthermore, FPS reaches 15.63 f/s.Nevertheless, there is a need to enhance the mAP of the model, which constitutes our future research direction. Fig. 1 Fig. 2 Fig.1The proposed method's architecture Fig. 9 Fig. 9 Part of steel strip defect detection results Table 1 The setup of proposed method's experiment Table 2 Comprason with alternative approaches on the NEU-DET dataset Table 3 Comprason with other methods on the GC10-DET dataset Table 3 The bolded numbers indicate the results that performed best in their respective categories 123 Table 4 Ablation The bolded numbers indicate the results that performed best in their respective categories overall performance when compared to the method proposed in this paper.YOLOv8l performs well on the Rp class and Wf class, with the highest FPS, but its mAP is lower than the method proposed in this paper.In general, the method proposed in this paper has good generalization ability on the whole and can handle diverse data for accurate classification or detection.The practical value of the innovation point is verified, and it has better robustness and generalization ability.

섹션 본문 41문단 · 23,991자

(제목 없음)

1Steel, as a crucial material extensively used in various fields, has a critical impact on the determination of the stability and reliability of engineering structures.Nevertheless, because of inevitable factors in manufacturing, transportation, and other processes, steel may exhibit various surface defects during production and handling.To address these defects, the investigation puts forward a resilient machine-learning method for steel surface defect detection based on lightweight convolution.First, to reduce redundant features, complexity, and computational cost, the Spatial and Channel Reconstruction Convolution (ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n's backbone network.Second, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, and the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module to alleviate the model burden while maintaining accuracy.Then, to focus on important information related to the current task, the Coordinate Attention module is added to the Neck layer.Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit (LeakyReLU) to effectively address issues such as gradient vanishing and overfitting.The method achieved a mean Average Precision (mAP) of 77.7% on the NEU-DET dataset, which is an improvement of 4.7% over the original YOLOv8n.Additionally, the frames per second (FPS) reached 17.36 f/s, representing a 5.79 f/s increase compared to the original YOLOv8n.On the GC10-DET dataset, mAP improves by 5.5%, with a FPS of 15.63 f/s.A plethora of experimentation on both datasets illustrates the method's robustness, meeting the precision criteria for detecting metal defects.

Introduction

2As industrialization advances and the economy develops, steel, as a crucial structural material, plays a key role in various industries.However, in the process of steel production and processing, various surface defects may occur, including but not limited to oxidation, rust, cracks, pits, and inclusions.These imperfections can adversely affect both the functionality and visual appeal of the steel.In construction engineering, the strength and stability of steel are critical factors in ensuring the safety of structural projects.In the manufacturing industry, surface defects may lead to early damage of com-an approach that combined the RepVGG algorithm with the Spatial Attention Mechanism (SAM).They announced a fresh dataset, X-SDD.However, due to a considerable quantity of parameters, the efficiency of recognition is not high.During that particular year, [5] separately trained Unet and Xception for classification tasks, using a synthetic dataset to identify surface irregularities in rolled components, and employing a normal dataset for reference in training, verifying the practicability and efficiency of generating datasets by hand.

3Object detection is a computer vision task that typically leverages deep learning techniques.It involves training on a large dataset with annotated labels to learn the feature representations of target objects, thereby enabling accurate identification of these objects.Object detection can be categorized into two types: one-stage detection and two-stage detection.

4Some of the most well-known one-stage algorithms consist of SSD [6], YOLO [7], Efficientdet [8], CenterNet [9], etc. Yang et al. [10] put forward a deep learning algorithm for detecting defects in small parts using a sole short-circuit detector network SSD and a swift model.Xie et al. [11] proposed a surface defect detection algorithm based on feature-enhanced YOLO (FE-YOLO), which alleviated the lightweight nature of the YOLO model by incorporating depthwise separable convolutions and dense connections.An improved feature pyramid network was proposed to enhance the spatial positional correlation of multi-scale detection layers.Wang et al. [12] designed an accurate YOLO-style object detector called ATT-YOLO, which utilized only a single selfattention module to perform multi-scale feature extraction and integration within the backbone and feature pyramid and also improved the automatic anchor design.Xing et al. [13] implemented an enhanced YOLOv3-based framework for detecting surface defects on railway wheels, enabling the identification of four types of tread anomalies.Song et al. [14] presented the EfficientDet-D0 algorithm in their edge computing method, combining the benefits of being lightweight and scalable.Tian et al. [15]proposed a steel surface defect detector, DCC-CenterNet, to achieve an optimal balance between speed and accuracy.This detector employed keypoint estimation to locate the center point and regress all other defect attributes.

5The two-stage classical methodologies prevalent in the domain of industrial defect detection encompass R-CNN (Regions with Convolutional Neural Networks) [16], Mask R-CNN [17], Faster R-CNN [18], etc. Wang et al. [19] proposed a novel surface defect detection network based on Mask R-CNN to detect rail defects.This network was capable of more accurately localizing defect positions.Gou et al. [20] utilized a convolutional neural network (Mask R-CNN) to improve the mask region and employed the enhanced network to simultaneously detect and segment defects in industrial CT (Computed Tomography) images.Luo et al. [21] introduced an FPC (Flexible Printed Circuit) surface defect detection method based on the Faster R-CNN object detection model.This method achieved promising results on a dataset containing seven common types of FPC surface defects.In 2020, Wei et al. [22]suggested a method based on Faster R-CNN, incorporating three significant improvements: weighted ROI (Region of Interest) pooling, a multi-scale feature extraction network based on FPN (Feature Pyramid Network), and strict NMS (Non-maximum suppression), to achieve more accurate defect recognition.Kong et al. [23] put forward a Faster R-CNN model to enhance the automation of surface defect detection on mirror-like materials.The model utilized the VGG16 (Visual Geometry Group 16) architecture as a feature extractor to ensure that the filters and generated feature maps capture useful features.

6Despite advancements in target detection techniques, they still confront subsequent difficulties: (1) The steel surface might exhibit various types of defects, including oxidation, rust, cracks, pits, slag inclusion, etc. Ensuring that the detection system can accurately distinguish and identify these different types of defects remains a challenge.(2) There may be complex environmental conditions on the steel production site, including changes in light, dust, vibration, etc.This could potentially impose greater demands on the detection system.

7To overcome the shortcomings of current approaches, the paper adopts YOLOv8n as the foundational training model.For the challenges related to scarcity and convoluted surface defects within the dataset, the model is iteratively enhanced.

8The paper's main accomplishments are summarized as listed hereafter:

9(1) Built upon the YOLOv8n model, a rapid and precise steel defect identification algorithm is constructed.

Method

10Throughout this section, an algorithm for detecting steel surface defects based on lightweight convolution is recommended.On the basis of the YOLOv8n model, the Spatial and Channel Reconstruction Convolution(ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n's backbone network.After that, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module and Coordinate Attention is added.Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit(LeakyReLU).The proposed network architecture is depicted in Fig. 1.

YOLOv8

11YOLOv8n [24] is an advanced object detection model.The YOLOv8n model (Fig. YOLOv8n model has the following improvements over the previous YOLO series models.The first layer convolution of YOLOv8n's backbone network is changed from the original 6×6 convolution to 3×3 convolution, which significantly reduces the computation.Ligned with YOLOv7 ELAN's design, the C3 module is exchanged for the C2f module to achieve further lightweight.In the Head, the architecture evolved from a coupled head to a decoupled head, and the previous objectness branch is abandoned.Instead, the anchor-free design is implemented to reduce the complexity of the Anchor frame design.The loss function employs BCE Loss (Binary Cross Entropy Loss) for classification and a combination of DFL Loss (Distribution Focal Loss) and CIOU Loss (Complete Intersection over Union) for regression.This approach more accurately measures the deviation between predicted and actual bounding boxes, guiding the Fig. 3 The ScConv network architecture [25] model toward more effective learning.Overall, YOLOv8n can generate more accurate detection outcomes.

ScConv module

12ScConv [25] is a convolutional module aimed at efficiently restructuring and merging the spatial and channel dimensions of input feature maps simultaneously.Figure 3 depicts the ScConv network architecture.The module comprises two units: SRU(Spatial Reconstruct Unit) and CRU(Channel Reconstruct Unit).The input features X first pass through the SRU, resulting in spatially refined features X w .These are then processed by the CRU, yielding channel-refined features Y as the output.The ScConv embedding model enhances performance by reducing redundant features.SRU (Spatial Reconstruct Unit) [25] is responsible for suppressing space redundancy.Figure 4 illustrates the SRU network architecture.It uses the method of separation and reconstruction.The SRU receives the feature map X from the previous layer as input.It first applies Group Normalization to the input features X.Then, by applying normalization followed by a Sigmoid activation function, it generates weights from the normalized feature map.Based on these generated weights, the input features are separated into multiple subfeature sets.Finally, these separated sub-feature sets undergo transformation and recombination, resulting in the spatially refined feature output X w .CRU (Channel Reconstruct Unit) [25] is responsible for reducing channel redundancy.The CRU network architecture is displayed in Fig. 5.It uses the strategy of separation, transformation, and fusion.The CRU takes the spatially refined features X w from the SRU as input.It first splits, the input features X w into two parts, typically based on different ratios or strategies.These split features then undergo a transformation, which includes the application of various convolution operations, such as Group-Wise Convolution (GWC) and Point-Wise Convolution (PWC), to further extract and transform the features.Finally, the transformed features are fused, often involving operations like pooling and SoftMax weighting, to produce the final channel-refined features Y.

GSConv module and VoV-GSCSP module

13A fresh lightweight convolution technique, known as GSConv, has been introduced to enable depth-wise separable convolution to attain effects similar to vanilla convolution while also enhancing efficiency.And VoV-GSCSP is used to supplant the traditional module, effectively improving the efficiency of reasoning.

14The advantage of GSConv [26] lies in its lightweight detectors.It is evident from Fig. 6 that GSConv follows a specific process: it starts with downsampling through a regular convolution.This is followed by a depthwise convolution (DWConv).The results of the Standard Convolution (SC) and Fig. 4 SRU network design [25] 123 Fig. 5 The framework of CRU network [25] the Depthwise Separable Convolution (DSC) are then concatenated.After that, it conducts a shuffle operation to align the channel numbers of the preceding two convolutions and finally performs an output operation.The lightweight convolutional technology GSConv reduces the model size while preserving accuracy.GSConv attains an optimal equilibrium between model precision and velocity.

15The GSCSP module, a multi-stage partial network, is crafted through a one-time aggregation technique, referred to as VoV-GSCSP (Fig. 7) [26].In VOV-GSCSP, the input feature picture is split into two divisions subsequent to a single convolution step.One branch retains its original state, while the other branch employs a lightweight bottleneck structure known as GS bottleneck convolution.The data from both branches is then concatenated and output following a single convolution operation.This module reduces redundant computations and parameters, enabling the detector to process images more rapidly and accurately extract crucial features.

Coordinate attention

16This section presents the coordinate attention [27] is introduced.As depicted in Fig. 8, average pooling is performed separately in the horizontal and vertical directions.X Avg Pool represents the result of average pooling in the horizontal direction, yielding a tensor of size C×H×1, while Y Avg Pool represents average pooling in the vertical direction, resulting in a tensor of size C×1×W.These two multi-channel 1D vectors are then concatenated along the spatial dimension.A 1×1 convolution is applied to compress the number of channels, followed by Batch Normalization (BN) and nonlinear activation to encode spatial information in both the vertical and horizontal directions.Subsequently, the features are split, and another 1×1 convolution is used to adjust the channel dimensions of the two directional feature vectors to match those of the input feature maps.A Sigmoid function is then applied.Finally, the features are weighted in both directions and combined with the original input information.By embedding positional information into channel attention, this approach enables the network to capture information over larger regions while avoiding substantial computational overhead.

The activation function of LeakyReLU

17LeakyReLU [28] (Leaky Rectified Linear Unit) is a commonly used activation function in deep learning, an improved version of the Rectified Linear Unit (ReLU).The formula for LeakyReLU function [28] is

18In the equation above, α is a small positive constant regulating the gradient of negative input.LeakyReLU activation function is characterized by: (1)When the input is negative, Fig. 6 The organization of the GSConv network [26] Fig. 7 The configuration of the VoV-GSCSP network [26] a small, non-zero gradient is allowed to pass through, thus maintaining the information flow of the negative input and effectively alleviating the gradient disappearance problem.

19(2) When the input is positive, the output is the input value itself, maintaining high running speed and performance.(3) The negative slope in LeakyReLU is a hyperparameter that can be adjusted for specific tasks.This increases the flexibility of the model design.

Experiments

20In this section, Section 3.1 describes the datasets, experimental configuration, and experimental parameters used, and Section 3.2 compares the improved model with other models.The ablation experiments are carried out in Section 3.3.

Datasets

21Two publicly available datasets for detecting defects on steel surfaces are employed, namely NEU-DET [29] and GC10-DET [30].The NEU-DET dataset is a collection of Fig. 8 The layout of the coordinate attention network [27] defective surface images made available by NEU and is specifically designed for defect detection tasks.This dataset contains six representative surface defects found on steel strips, including Rolling Scale (Rs), Patches (Pa), Cracks (Cr), Pitted Surface (Ps), Inclusions (In), and Scratches (Sc).The images in the training, testing, and validation set are 1440, 180, and 180 respectively.

22The GC10-DET dataset is gathered within a genuine industrial environment, encompassing various types of defects.Such as Punching (Pu), Weld (Wl), Crescent Gap (Cg), Water Spot (Ws), Oil Opot (Os), Silk Spot (Ss), Inclusion (In), Rolling Pit (Rp), Crease (Cr), and Waist Crease (Wf).The training, testing, and validation datasets consist of 1836, 229, and 229 images each, in that order.

Experimental configuration

23The experiment is performed using an AutoDL server with specific configurations as outlined in Table 1.

Experimental parameters

24To confirm its capability in detecting steel surface defects accurately, AP, mAP, and FPS are used as performance indexes.AP, which stands for average precision.It averages the accuracy at different recall rate points.A higher AP value indicates greater average accuracy.Taking the mean of AP values across all classes yields the mAP, it provides a global assessment of performance.Detection speed is commonly evaluated using FPS.The greater the FPS value, the faster the model can process images.The equations are displayed

25Among them, TP, FP, FN, and TN denote the count of true positives, false positives, false negatives, and true negatives, respectively.

26In the above formula, P (R) refers to the precision-recall curve, t is defective classification, and m denotes the quantity of defect categories in this experiment.

27Among them, "preprocess" is the time taken for image preprocessing."inference" is the time for inference, and "postprocess" represents the total time for post-processing.

Comparison with other methods

28In this segment, the improved model is evaluated against YOLOv8n, YOLOv8s, YOLOv8m, YOLOv8l, YOLOv6 [31], and YOLOv5 [32], Furthermore, Literature [33] and literature [34] are compared on the NEU-DET dataset, and literature [35] and literature [36] are compared on the GC10-DET dataset.The experimental results on the NEU-DET dataset and the GC10-DET dataset are presented in Tables 2 and 3, respectively.Figure 9 shows some of the results obtained in detecting defects in steel strips.

29It can be seen from the data in Table 2 that compared with other models, the method proposed in this paper is optimal on the AP of the Cr class, the AP of the Ps class, the AP of the Rs class, and mAP.Although the AP for individual classes is higher in YOLOv8n and YOLOv8s, there is still a gap in other metrics compared to the proposed method.The AP for the Sc class and the FPS achieved by the method in literature [33] are higher than those of the proposed method; however, the other class-specific APs and mAP are lower.Overall, the proposed method balances performance with speed and computational efficiency, demonstrating its superiority and effectiveness for steel surface defect detection tasks.

30The data in Table 3 demonstrates that the method proposed in this paper achieves the best performance in terms of AP for the Cg and Cr classes as well as mAP on the GC10-DET dataset, compared to other models.While YOLOv8s, YOLOv8m, and the method from literature [35] achieve the highest AP values for specific classes, there is still a gap in

Ablation study

31In validation of the indispensability of each module, eight batches of experiments are established for contrast.The first group of experiments serves as the baseline experiment, denoted as YOLOv8n.In the second set, the YOLOv8n+Sc Conv, ScConv module is added before the SPPF within the YOLOv8n's backbone network.In the third set, YOLOv8n+ GSConv+VoV-GSCSP, in the Neck layer, GSConv is used to replace the convolutional modules, VoV-GSCSP is substituted for the C2f module.The fourth set, YOLOv8n+ScConv +GSConv+VoV-GSCSP, included the ScConv, GSConv, and VoV-GSCSP modules.The fifth set, YOLOv8n+CA, coordinate attention is added in the Neck layer.In the sixth set, YOLOv8n+LeakyReLU, the activation function of YOLO v8n has been swapped for LeakyReLU.The seventh set, YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA, is based on the fourth group of experiments to add coordinate attention.The eighth set, YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA+LeakyReLU, represents the final improved model.All eight experiments use the same datasets, hardware and software environments, thresholds, and additional conditions.The experimental outcomes before and after improvements on the NEU-DET dataset and the GC10-DET dataset are depicted in Tables 4 and 5, correspondingly.

32The following information can be obtained from the data in Table 4: On the NEU-DET dataset, mAP and FPS indexes are not rational after ScConv and GSConv+VoV-GSCSP are used separately, but after combined, mAP and PFS are improved respectively.The experiments with YOLOv8n+CA and YOLOv8n+LeakyReLU demonstrate varying degrees of mAP increase compared to the original YOLOv8n.The YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA experiment shows a 2.1% increase in mAP, although FPS decreases.The method proposed in this paper, namely YOLOv8n+ScConv+GSConv+VoV-GSCSP+ CA+LeakyReLU, mAP, and FPS respectively increased to 77.7% and 17.36%, and compared with the original YOLOv8n, each evaluation index has improved.It is shown that the method proposed in this paper not only improves the detection accuracy but also improves the reasoning speed, indicating that a good balance is achieved between the two.

33The data in Table 5 provides the following insights: On the GC10-DET dataset, the mAP of YOLOv8n+ScConv, YOLOv8n+GSConv+VoV-GSCSP, YOLOv8n+CA, and YO LOv8n+LeakyReLU experiments all show varying degrees of growth compared with the original YOLOv8n.But FPS is down.The mAP of the YOLOv8n+ScConv+GSConv+VoV-GSCSP and YOLOv8n+ScConv+GSConv+VoV-GSCSP+ CA experiments increases by 4.4% and 4.3%, respectively.Moreover, the PFS of the YOLOv8n+ScConv+GSConv+VoV-GSCSP experiment reaches 20.83 f/s.The method proposed in this paper, namely YOLOv8n+ScConv+GSConv+VoV-GSCSP+CA+LeakyReLU, has a mAP of 62.2% and a FPS of 15.63 f/s, indicating that the model's ability to detect and classify the target has become more accurate and can better identify and locate the target.

Conclusion

34This paper applies a resilient machine learning method for steel surface defect detection based on lightweight convolution.First, to reduce redundant features, complexity, and computational cost, the Spatial and Channel Reconstruction Convolution(ScConv) module is added before the Spatial Pyramid Pooling-Fast (SPPF) within the YOLOv8n's backbone network.Second, in the Neck layer, lightweight convolution GSConv is used to replace the convolutional modules, and the efficient cross-stage partial network (CSP) module, VoV-GSCSP is substituted for the C2f module to alleviate the model burden while maintaining accuracy.Then, to focus on important information related to the current task, the Coordinate Attention module is added to the Neck layer.Finally, the activation function of YOLOv8n has been swapped for the Leaky Rectified Linear Unit(LeakyReLU) to effectively address issues such as gradient vanishing and overfitting.The method achieved a mean Average Precision (mAP) of 77.7% on the NEU-DET dataset, which is an improvement of 4.7% over the original YOLOv8n.Additionally, the frames per second (FPS) reached 17.36 f/s, representing a 5.79 f/s increase compared to the original YOLOv8n.On the GC10-DET dataset, mAP is 62.2%, and compared with the improved YOLOv8n model, mAP is 5.5% higher.Furthermore, FPS reaches 15.63 f/s.Nevertheless, there is a need to enhance the mAP of the model, which constitutes our future research direction.

Fig. 1 Fig. 2

35Fig.1The proposed method's architecture

Fig. 9

36Fig. 9 Part of steel strip defect detection results

Table 1

37The setup of proposed method's experiment

Table 2

38Comprason with alternative approaches on the NEU-DET dataset

Table 3

39Comprason with other methods on the GC10-DET dataset

40The bolded numbers indicate the results that performed best in their respective categories 123

Table 4 Ablation

41The bolded numbers indicate the results that performed best in their respective categories overall performance when compared to the method proposed in this paper.YOLOv8l performs well on the Rp class and Wf class, with the highest FPS, but its mAP is lower than the method proposed in this paper.In general, the method proposed in this paper has good generalization ability on the whole and can handle diverse data for accurate classification or detection.The practical value of the innovation point is verified, and it has better robustness and generalization ability.

참고문헌 27건

  1. Deformation measurement of circular steel plates using projected fringes The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2013 10.1007/s00170-013-5276-3
  2. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation 2014 10.1109/cvpr.2014.81
  3. SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
  4. An End-to-End Steel Surface Defect Detection Approach via Fusing Multiple Hierarchical Features IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2915404
  5. Real-Time Tiny Part Defect Detection System in Manufacturing Using Deep Learning IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2925561
  6. You Only Look Once: Unified, Real-Time Object Detection 2016 10.1109/cvpr.2016.91
  7. Mask R-CNN 2017 10.1109/iccv.2017.322
  8. Enhanced Faster Region Convolutional Neural Networks for Steel Surface Defect Detection ISIJ International · The Iron and Steel Institute of Japan · 2020 10.2355/isijinternational.isijint-2019-335
  9. Deep Metallic Surface Defect Detection: The New Benchmark and Detection Network Sensors · Multidisciplinary Digital Publishing Institute · 2020 10.3390/s20061562
  10. EfficientDet: Scalable and Efficient Object Detection 2020 10.1109/cvpr42600.2020.01079
  11. Steel Surface Defect Classification Using Deep Residual Neural Network Metals · Multidisciplinary Digital Publishing Institute · 2020 10.3390/met10060846
  12. Automated Visual Defect Classification for Flat Steel Surface: A Survey IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3030167
  13. SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
  14. Visual inspection of steel surface defects based on domain adaptation and adaptive convolutional neural network Mechanical Systems and Signal Processing · Elsevier BV · 2020 10.1016/j.ymssp.2020.107541
  15. FPC surface defect detection based on improved Faster R-CNN with decoupled RPN 2020 10.1109/cac51589.2020.9326862
  16. X-SDD: A New Benchmark for Hot Rolled Steel Strip Surface Defects Detection Symmetry · Multidisciplinary Digital Publishing Institute · 2021 10.3390/sym13040706
  17. Development of a YOLO-V3-based model for detecting defects on steel strip surface Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109454
  18. Coordinate Attention for Efficient Mobile Network Design 2021 10.1109/cvpr46437.2021.01350
  19. Automated Surface Defects Detection on Mirrorlike Materials by using Faster R-CNN 2020 10.1109/icisce50968.2020.00341
  20. DCC-CenterNet: A rapid detection method for steel surface defects Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110211
  21. Rail surface defect detection based on improved Mask R-CNN Computers & Electrical Engineering · Elsevier BV · 2022 10.1016/j.compeleceng.2022.108269
  22. Rail wheel tread defect detection using improved YOLOv3 Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111959
  23. Surface Defect Detection Algorithm Based on Feature-Enhanced YOLO Cognitive Computation · Springer Science+Business Media · 2022 10.1007/s12559-022-10061-z
  24. Toward surface defect detection in electronics manufacturing by an accurate and lightweight YOLO-style object detector Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-33804-w
  25. EFD-YOLOv4: A steel surface defect detection network with encoder-decoder residual block and feature alignment module Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.113359
  26. SCConv: Spatial and Channel Reconstruction Convolution for Feature Redundancy 2023 10.1109/cvpr52729.2023.00596
  27. ALADA: A lite automatic data augmentation framework for industrial defect detection Advanced Engineering Informatics · Elsevier BV · 2023 10.1016/j.aei.2023.102205