A lightweight algorithm for steel surface defect detection using improved YOLOv8
산업용 섬유 · (8) HDPE 섬유(FORPE)
기본 정보
- 저자
- DOI
- 10.1038/s41598-025-93469-5
- 저널
- Scientific Reports
- 발행년도
- 2025
- 발행기관
- Nature Portfolio
- 피인용수
- 19
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-025-93469-5
- 토픽
- Surface Roughness and Optical Measurements
- OpenAlex ID
- W4408479239
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (8) HDPE 섬유(FORPE)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > HDPE 섬유(FORPE)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 51,361자
본문 펼치기
섹션 본문 55문단 · 34,883자
(제목 없음)
1In response to the issues of low precision, a large number of parameters and high model complexity in steel surface defect detection, a lightweight algorithm using improved YOLOv8 is proposed.Firstly, GhostNet is utilized as the backbone network in order to reduce the number of model parameters and computational complexity.Secondly, the MPCA (MultiPath Coordinate Attention) attention mechanism is integrated to enhance feature extraction capabilities.Finally, the SIoU (Simplified IoU ) is used to replace the traditional CIoU loss function, which can make the anchor frame more fast and accurate in the regression process, to improve the stability and the robustness of detection.The experimental results indicate that these enhancements have led to a reduction of 37% in calculation amount for the improved YOLOv8n algorithm, a decrease of 32% in parameter count, and an increase in average detection accuracy ( mAP ) by 1.2%.This model achieves a balance between lightweighting and detection accuracy while providing a viable solution for deployment in computationally resourceconstrained edge computing environments such as embedded systems and mobile devices.
2As one of the most widely used materials in the industry, steel plays a critical role in manufacturing and construction 1 .With continuous advancements in industrial technology, there has been significant progress in steel production technology, and the industrial market has increasingly focused on product appearance and quality.However, due to various factors in the production process such as raw material quality, production environment, and processing technology, steel surfaces often exhibit different types of defects including cracks, scratches, folding, and ear 2,3 .These defects vary in size and may have subtle or imperceptible features that make them difficult to accurately detect with the naked eye [4][5][6][7] .Not only do these defects affect aesthetics but they can also reduce the quality and performance of steel products leading to safety hazards 8 .Therefore, timely and accurate detection of steel surface defects is crucial 9 .Traditional methods for detecting steel surface defects rely on manual visual inspection 10 which suffers from low efficiency, strong subjectivity, and is prone to errors 11,12 .
3The advent of deep learning has revolutionized the realm of steel surface defect detection.Image -based object detection methods grounded in deep learning are increasingly being integrated into industrial applications.These methods can automatically glean features from steel surface images and detect defects with a certain level of precision.However, the training and testing of deep -learning models necessitate substantial computational resources, such as high -performance graphics processing units (GPUs) and ample memory.This requirement poses a formidable challenge to practical implementations, particularly in scenarios where terminal devices have limited computational capabilities, such as the embedded systems and mobile devices utilized in industrial field operations.
4In the context of steel surface defect detection, several critical issues remain to be addressed.Some defects, like micro -cracks and shallow scratches, are minute and inconspicuous, posing difficulties in detection.Occupying merely a few pixels in the image, these defects may elude the detection of traditional deep -learning models.The complex textures, reflections, and noise on steel surfaces further compound the detection challenge.These background factors can disrupt the accurate extraction of defect features, resulting in false positives or false negatives.Furthermore, for industrial production lines, real -time detection is indispensable.Delays in defect detection can lead to the production of defective products, escalating costs and squandering resources.
5Therefore, to achieve an optimal balance among model accuracy, computational complexity, and detection real -time performance, this paper presents an enhanced YOLOv8 -based method for the real -time detection of steel surface defects.The principal contributions of this research are as follows: Firstly, the convolutional modules and C2f modules within the backbone network are replaced with C3Ghost and GhostConv modules, respectively.This substitution not only enhances the model's representational capabilities but also significantly reduces the number of parameters and mitigates computational complexity.Secondly, MPCA attention mechanism is integrated into the network.This module effectively captures positional relationships across multiple scales, thereby strengthening the feature extraction capability of the backbone network, minimizing background interference, and improving detection accuracy.Finally, the SIoU loss function is adopted to replace the CIoU loss function.This change comprehensively considers the regression direction between the groundtruth box and the predicted box, thereby enhancing the network's bounding box regression performance and optimizing the detection efficacy for steel surface defects.
6Distinct from prior studies that concentrated on single -aspect improvements, such as attention mechanisms or lightweight backbone networks, our method innovatively combines GhostNet for parameter reduction, MPCA for multi -scale feature enhancement, and SIoU for precise regression.This integration strikes a balance between detection accuracy and speed, offering a novel solution that has not been previously reported in the literature.
Related work
7At present, deep learning -based surface defect detection algorithms are mainly divided into two categories: two -stage and one -stage algorithms.Two -stage algorithms are represented by R -CNN 13 , Fast R -CNN 14 , Faster R -CNN 15 , Mask R -CNN 16 , etc. Their detection process usually consists of a region proposal stage and subsequent classification and regression stages.In the region proposal stage, the algorithm uses a region proposal network to generate potential defect regions.In the second stage, the defects in these regions are classified and located.Although this approach can achieve high detection accuracy, it requires multiple forward passes through the network, resulting in high computational costs.This, in turn, leads to slow detection speeds and large model sizes, making it unsuitable for deployment on resource -constrained edge -terminal devices.
8One -stage algorithms, such as SSD 17 , YOLO 18 (you only look once), etc., have the advantage of directly predicting the bounding boxes and class labels of defects in a single forward pass.Their fast detection speed is beneficial for real -time application scenarios.Among them, the YOLO algorithm can strike a relatively good balance between detection accuracy and speed, meeting the requirements of real -time detection.Therefore, it has been widely used in the field of steel surface defect detection 19 .
9Many researchers have conducted in -depth studies on steel surface defect detection and proposed a series of improvement methods.Kou et al. 20 proposed an improved YOLOv3 defect detection model.This model optimizes the detection performance at multiple scales through an anchor -free mechanism, effectively shortening the detection time.Li et al. 21designed an improved steel surface defect detection algorithm based on YOLOv4.By adding a feature alignment module with an attention mechanism and using a decoupled head to independently output classification and regression results, they significantly enhanced the defect detection performance.Guo et al. 22 proposed an improved YOLOv5 defect detection model.By adding a TRANS module designed based on Transformer 23 to the backbone network and detection heads, they improved the accuracy of defect detection.Gao et al. 24 proposed an improved YOLOv7 method for steel surface defect detection.This method incorporates a split residual convolution network (ResNet) 25 to capture gradient features and uses the Normalized Wasserstein Distance and Complete Intersection Over Union (NWD -CIoU) loss function to enhance the detection accuracy of small and fuzzy targets.Li et al. 26 proposed an improved YOLOv8 defect detection model.By introducing an explicit visual center (EVC) into the backbone network, they enhanced the model's feature extraction ability and adaptability, enabling it to better adjust features at different levels and scales.However, the convolutional network classification model proposed by Xing et al. 27 based on YOLOv3 improved the detection accuracy of steel surface defects by replacing the backbone network and introducing a feature pyramid structure 28 , but the detection speed decreased.Cheng et al. 29 proposed DEA_RetinaNet based on RetinaNet 30 for steel surface defect detection.This method improved the detection accuracy by introducing channel attention and adaptive spatial feature modules, but a large number of parameters and high computational costs led to extremely low detection speeds.
10When dealing with the task of steel surface defect detection, it remains a highly challenging issue to balance detection accuracy, speed, and the number of model parameters.To address these challenges, researchers have explored from multiple aspects.
11Some researchers focus on improving the backbone networks of deep -learning models to enhance feature extraction capabilities.For example, lightweight backbone networks such as MobileNetV3 and GhostNet are designed to reduce the number of parameters and computational complexity.To a certain extent, they can effectively reduce the model size.However, in the scenario of steel surface defect detection, when faced with complex defects with irregular shapes and varying textures, these lightweight backbone networks may not be able to detect them accurately, sacrificing detection accuracy.
12Attention mechanisms have also been introduced into deep -learning models to improve their performance.Attention mechanisms such as CBAM 31 and SimAM 32 can enhance the model's focus on defect regions.However, they have limitations in steel surface defect detection.They lack the ability to effectively aggregate multi -scale features.Since steel surface defects vary in size, the lack of this ability may lead to missed detections of small -or large -scale defects.
13In the research of loss functions, CIoU 33 and DIoU 34 loss functions have been applied to improve the bounding box regression in deep -learning models.However, these loss functions have certain drawbacks.They do not fully consider the directional alignment between the predicted box and the ground -truth box.This oversight may lead to poor model convergence and inaccurate defect localization, especially when the defects have complex orientations.
14Recently, some progress has been made in steel surface defect detection methods.DEW -YOLO introduced a lightweight backbone network to reduce model complexity, and GDCP -YOLO integrated a dual -path attention module to enhance feature extraction.However, DEW -YOLO has limited improvement in detecting small defects, and although GDCP -YOLO has improved performance, its computational cost has increased by 18%, which is a major drawback for real -time applications with high requirements for computational resources and detection speed.
15In summary, existing steel surface defect detection methods have many shortcomings.They either sacrifice detection speed, reduce detection accuracy, or have defects in multi -scale feature fusion.Therefore, in the steel surface defect detection in resource -constrained environments, there is an urgent need for a method that can achieve a better balance among lightweight design, high detection accuracy, and fast inference speed.
Improved YOLOv8 model
16YOLOv8 is the latest version from Ultralytics based on the improvements of YOLOv5,involving optimisations to the backbone network, feature extraction and predictive header.Firstly, it reduces the convolution kernel of the initial convolution to 3 × 3 and introduces more layer-hopping connections by replacing all the C3 modules with C2f modules, which enhances the fusion of features at different levels and enhances the gradient flow information.In the feature extraction part, YOLOv8 adopts the PANet (Path Aggregation Network)structure with bidirectional pathways, which shorts the information path between the top layer and the bottom layer, and enables the top layer to make better use of the bottom layer features.On the prediction head, YOLOv8 employs a new decoupled head structure that treats classification and regression tasks separately, and shifts from an Anchors-based approach to an Anchors-Free approach to improve the recognition capability of model 35 .As a result, YOLOv8 achieves faster training speed and detection performance.
17To enhance the detection performance of the model for steel surface defects and minimize the number of parameters and complexity, an improved YOLOv8n lightweight steel surface defect detection algorithm is proposed.The network structure of improved model is illustrated in Fig. 1.
GhostNet
18Steel surface defect detection usually needs to be conducted in real-time scenarios, such as industrial production lines.Therefore, the algorithm must have efficient inference speed.In order to meet the demands of real-time applications, the design of a lightweight network becomes crucial as it can effectively reduce computational complexity and accelerate model reasoning.The YOLOv8 network uses a number of convolutional modules for removing image noise and extracting key features, and as the number of convolutional operations increases, the computational volume and inference time of the network also increase.In order to optimise the computational efficiency and ensure high-quality feature extraction, GhostNet 36 is introduced to replace the YOLOv8 backbone network, replacing the original Conv layer with GhostConv and the original C2f layer with C3Ghost, which can reduce the computation and inference time while ensuring the accuracy and completeness of the feature representation.
19GhostNet is a lightweight neural network architecture designed to enhance computing efficiency and minimize memory consumption by decreasing redundant calculations through efficient feature graph generation.It introduces a new lightweight convolution module (Ghost module), which integrates normal convolutions into two parts.Firstly, it reduces the dimension of an input feature graph using 1 × 1 convolution operations to decrease channel numbers and extract key information.Secondly, it carries out depth-separable convolutions -a form of layer-by-layer convolutions -utilizing features extracted from previous steps to generate new feature maps.This approach effectively compresses computational requirements while preserving feature extraction efficiency.The structure of the Ghost module is illustrated in Fig. 2.
MultiPath coordinate attention
20Steel surface defects usually have different sizes, complex backgrounds and location sensitivity, and may have different characteristics under a variety of environmental and lighting conditions, which is easy to cause problems such as missed and false detection.In order to improve the detection ability of the model for different scales and complex nature, the mechanism of Coordinate Attention with multipath aggregation (MPCA) introduced.Which improves the ability of the model to capture global and local information effectively.
21MPCA, as an improved attention mechanism, aims to enhance the performance of deep neural networks in computer -vision tasks.It combines coordinate attention with a multi -path architecture, enabling the acquisition of more comprehensive feature information from different scales and directions.Specifically, MPCA divides the input feature map into four paths 37 .Each path is dedicated to processing information related to a specific scale or direction and is processed by the coordinate attention mechanism.For example, one path may focus on large -scale features, while another path concentrates on small -scale details.Through this initial step, the model can analyze different aspects of the input feature map separately.After the feature -map segmentation is completed, MPCA performs horizontal and vertical global average -pooling operations on each path.The horizontal global average -pooling calculates the average value of each row of the feature map along the horizontal direction, and the vertical global average -pooling calculates the average value of each column.These pooling operations generate two types of coding vectors for each path: horizontal -pooling vectors and vertical -pooling vectors.The horizontal -pooling vectors are used to capture the global information in the horizontal direction, and the vertical -pooling vectors represent the global information in the vertical direction.Both contain important spatial information of the features in the corresponding paths.Subsequently, these coding vectors are spliced and transformed through 1 × 1 convolutions.Thereafter, MPCA feeds the vectors processed above into a multi -layer perceptron (MLP).The MLP processes these vectors to generate attention weights, and its structure can be adjusted according to the specific requirements of the model.Through a series of linear and non -linear operations, the MLP transforms the input vectors into a set of attention weights, which reflect the importance of different parts of the original feature map.The generated attention weights are then applied to the original feature map on a per -channel basis.That is, each channel of the feature map is multiplied by its corresponding attention weight.This weighting process can highlight the important regions in the feature map while suppressing the less -relevant areas.Finally, the weighted feature maps of each path are combined.According to the design of the MPCA mechanism, this fusion can be achieved through simple addition or concatenation operations.The result of the fusion is the final output of the MPCA mechanism, which contains enhanced feature information and can better represent steel -surface defects.The structure of MPCA is illustrated in Fig. 3.
Simplified IoU
22The loss function of YOLOv8 consists of regression loss and classification loss, in which the regression loss part uses CIoU loss function.However, CIoU does not take into account the problem of directional mismatch between the prediction box and the real box, which causes the prediction box to be difficult to align accurately, thus reducing the detection accuracy and training convergence speed of the model.In order to improve the performance of the model, this paper replaced CIoU loss with SIoU loss 38 to better deal with the geometric relationship between the predicted frame and the real frame, enhance the detection accuracy and training efficiency of the model, and improve the detection accuracy and speed of steel surface defects.SIoU redefines the penalty metric by considering the vector Angle between the real box and the predicted box, as shown in Fig. 4.
23The SIoU loss function consists of four main parts: Angle lossΛ, distance loss∆, shape loss Ωand intersection ratio lossIoU , and the formula is as follows:
24Equation ( 1) defines the angle loss L angle =1−cos(θ), where θ is the angle between predicted and ground-truth box centers.2) computes shape loss using width (w) and height (h) differences:
25Angle loss is used to assess the mismatch of direction between the predicted and real frames; Distance loss measures the distance difference between the center point of the predicted frame and the real frame to ensure the accuracy of the frame position; Shape loss deals with the difference in shape between the predicted frame and the real frame to enhance the geometric consistency of the frame; The crossover ratio loss focuses on the proportion of overlapping areas between the predicted and real boxes to reflect the degree of overlap between the two.Through these four loss functions, the target can be located more accurately, and the detection accuracy and robustness can be improved.
Materials
26The experiment utilizes the Windows operating system, with a CPU model of Intel i9-9900k@3.60 GHz and a GPU model of NVIDIA GeForce GTX2080Ti graphics card with 11G video memory.The deep learning In this study, the NEU-DET 39 , an open data set from Northeastern University, was used.This dataset is widely recognized as a primary benchmark for steel defect detection 40 , and prior studies [20][21][22]24,26 utilized subsets of similar or smaller scales. The NU-DET dataset contains a total of six major types of steel surface defects, including crazing, pitter surface, patches, rolled-in scale, scratches and inclusion.With 300 images of each type of defect, for a total of 1,800 images.The dataset was divided into a training set (1440 images), test set (180 images) and verification set (180 images) according to an 8:1:1 ratio.This division method adheres to standard practices and can minimize randomness through stratified sampling across different defect categories.
Evaluation metrics
27This study employed metrics such as mean average precision (mAP) 40 , Parameters (Params), Recall (R), Precision (P) and Billion floating point operations per second (GFLOPS) to evaluate the improved model.The calculation formula is as follows:
Lightweight model comparison experiment
28In order to prevent an increase in the number of parameters and computational complexity caused by subsequent model improvements, the model is first lightweighted.HGNetV2, MobileNetV3, Ghostnetv3, Mobilenetv4, repvit, and GhostNet are integrated into YOLOv8n by replacing the backbone network, while keeping the detection head and training protocols unchanged.Subsequently, comparative tests are conducted on these improved models, and the results are shown in Table 1.
29From the data in Table 1, after introducing GhostNet to replace the original network structure, the model demonstrates unique advantages in many indicators.In terms of the mean average precision (mAP50, at an IoU threshold of 0.5), it is the same as that of the baseline model YOLOv8n, both reaching 0.774.This means that a high level of detection accuracy is maintained, and it can effectively detect steel surface defects.In terms of the number of parameters (Params/M), the GhostNet version has 1.72 M parameters, which is less than the 3.01 M of the baseline model and is between the 1.19 M of MobileNetV3 and the 2.52 M of HGNetV2.While ensuring accuracy, it reduces the storage requirements and computational complexity of the model.The computational amount (GFLOPS) is 5.0, which is also between the 2.4 of MobileNetV3 and the 6.9 of HGNetV2.This indicates that during the inference process, the model will not consume excessive computational resources and has high operational efficiency.When compared with other improved models, the mAP50 of Ghostnetv3 is only 0.714, which is obviously insufficient in detection accuracy.Although Mobilenetv4 has a relatively large number of parameters (5.70 M) and a high computational amount of 22.5, its mAP50 is only 0.755, showing a low cost-performance ratio.Repvit has 6.69 M parameters, a computational amount of 18.5, and an mAP50 of 0.771.Although the accuracy is close, the large number of parameters and computational amount are not conducive to its deployment and operation in practical applications.Taking into account the difficulty of detecting steel surface defects and the performance of the model in terms of accuracy, the number of parameters, and computational complexity, GhostNet ensures a high level of detection accuracy while achieving model lightweighting.Therefore, it is a reasonable and wise decision to select GhostNet for the lightweight operation of the model.In practical applications, it can not only meet the requirements of detection accuracy but also adapt to environments with limited resources and improve the detection efficiency.
Experimental comparison of different attention mechanisms
30In order to further verify that the MPCA attention mechanism outperforms other attention mechanisms, we conduct comparative experiments on the reconstructed YOLOv8n model to compare the effects of adding different attention mechanisms at the end of the backbone network, including the channel attention mechanism (CA), the parameter-free attention mechanism (SimAM), and the combined spatial and channel attention mechanism (CBAM).The experiments in Table 2 are based on the benchmark model after lightweighting with GhostNet (Params = 1.72 M, GFLOPS = 5.0), and all attention mechanisms are added on this benchmark.
31As illustrated in the Table 2, when detecting steel surface defects, the mAP50 of the MPCA attention mechanism model is 0.784, an increase of 1%, which is better than other mainstream attention mechanisms.The MPCA attention mechanism performs well in steel surface defect detection tasks, significantly improving the detection accuracy without significantly increasing the computational complexity.
IoU comparison experiment
32In order to improve the convergence speed and regression accuracy of the model, the SIoU loss function is introduced in this paper and a comparison test with other IoU variants is conducted.The experimental results are shown in Table 3.The model using the SIoU loss function achieves the mAP50 and recall.Although its precision is not the highest, considering all evaluation indicators, SIoU significantly improve the overall performance of the model in the steel surface defect detection task by balancing accuracy and recall rate.Therefore, choosing SIoU loss function as the regression loss function of the model is considered to be best choice.
Comparison experiment of different models
33We conducted a comprehensive comparison of the performance of the improved model with other models, such as YOLOv3-tiny, YOLOv5, YOLOv6, and other models, on common datasets.The specific data are shown in Table 4.
34Taking into consideration the lightweight implementation and detection effect of the model, it can be concluded that the improved model in this paper exhibits the best performance.The improved model proposed in this study exhibits superior performance in multiple key metrics, achieving an mAP50 of 0.786, which is 0.7% higher than YOLOv8s, which has the highest detection accuracy before.In terms of the number of parameters and model complexity, the improved algorithm in this paper has the lowest number of parameters, only 2.04 M, which is about 18.4% lower than YOLOv5n, which has the lowest number of parameters, and at the same time, the model complexity is the smallest, only 5.1G, which is about 26% lower than YOLOv5n, which has the lowest model complexity.In addition, the FPS of the model is 171.5, which is higher than that of all the models in the table.
35The outstanding performance of this model can be attributed to our innovative approach that integrates GhostNet, MPCA, and SIoU.GhostNet, while maintaining a robust feature -extraction capability, leverages its unique architectural design to substantially reduce the number of model parameters and effectively lower the computational complexity.This serves as a fundamental cornerstone for achieving model lightweighting.The MPCA attention mechanism is designed to comprehensively capture feature information across different scales and directions.By doing so, it significantly enhances the model's ability to detect defects of varying scales in complex backgrounds.This ensures that the model can accurately identify target defects under diverse detection scenarios.The SIoU loss function optimizes the model's regression process by incorporating critical factors such as the vector angle between the predicted bounding box and the ground -truth box.This refinement enables the model to position targets with higher precision, thereby substantially improving the detection accuracy.These three components work in close synergy and complement each other.GhostNet provides a lightweight infrastructure for the model.MPCA is responsible for precise feature extraction and enhancement, enabling the model to better adapt to different defect characteristics.SIoU ensures accurate positioning and regression, guaranteeing the reliability of the detection results.Their collective effect strikes an excellent balance between model lightweighting and detection accuracy.This balance endows the improved model with the ability to maintain a high level of accuracy even under stringent computing resource constraints.As such, the improved model is particularly well -suited for deployment in resource -constrained environments, such as embedded systems or mobile devices.It can efficiently carry out rapid and accurate detection and localization of steel surface defects, thereby meeting the practical requirements of industrial applications.The Table 5 shows the results of the YOLOv8n model before and after the improvement on the steel surface defects detection, from which it can be seen that the improved model shows different degrees of improvement in most of the defects detection tasks, especially in the detection of cracks, inclusions, patches and scratches.
Ablation experiment
36In order to verify the superiority of the algorithm proposed in this paper, we utilized YOLOv8n as the benchmark model and conducted 6 groups of ablation experiments on the NEU-DET dataset.All experiments were carried out under identical network environment and parameters.The symbol "√" indicates that this module was employed in this group of experiments and"-" indicates that this module was not used in this experiment.Refer to Table 6 for detailed experimental results.
37The ablation experiments take the original YOLOv8n (Params = 3.01 M) as the benchmark.Each module is added independently or in combination, and the parameters and computational load change dynamically with the addition or subtraction of modules.As shown in the Table 6, compared to YOLOv8n, using the GhostNet module to replace the backbone network, the parameters and FLOPs is reduced by 1.3 M and 3.1G, respectively, while the mAP50value remains unchanged, which is due to the fact that GhostNet drastically reduces the parameter amount and the computation amount through its innovative point-by-point convolution and lightweight design, while maintaining the ability to capture key features.Module 2 introduces the MPCA attention mechanism into the baseline, enhancing the ability of model to capture diverse features and improving the focus on key features, which boosts the mAP50 by 0.794.Model 4 uses SIoU to replace the CIoU loss function of the original YOLOv8n.The SIoU loss function takes into account the shape and orientation information of the target frame more comprehensively by introducing the angle influence factor, which makes the matching between the predicted frames and the real frames more accurate, reduces the leakage and misdetection, and improves the model convergence, and improves the mAP50 by 0.785.Module 3 which combines GhostNet and the MPCA attention mechanism, enhances feature extraction ability while reduceing computational load, improves the mAP50 by 1%, the number of parameters decreases by 32%, and FLOPs decreases by 37% compared to baseline modle.The final improved algorithm integrates the three modules of GhostNet, MPCA, and SIoU, reaching an mAP50 0f 0.786 and a recall rate of 0.747.
38Figure 6 shows the finally improved model of F1-Confidence curve, Precision-Confidence curve, Recall-Confidence curve and Precision-Recall curve.Figure 7 shows the confusion matrix of the improved algorithm.such as "inclusion", the original model failed to detect them, failing to identify the corresponding defective areas, resulting in some defects not being boxed and labeled.Meanwhile, in the detection of "patches", the positioning of the detection boxes was inaccurate, and the given confidence levels were not ideal.In contrast, the improved YOLOv8n model has significantly enhanced detection performance.For the "crazing" defect, it can not only locate the defective area more accurately but also increase the confidence level.For defects such as "rolled -in -scale" and "scratches", the improved model can detect them more comprehensively, effectively reducing the missed -detection rate.Moreover, the confidence levels for detecting various defects are more reasonable, and the labeling of detection boxes fits the actual defect shapes better.This indicates that the improved model has a better effect in identifying steel surface defects and can be more reliably applied to actual steel surface defect detection tasks.
Conclusion
39In this paper, an efficient and lightweight detection method for steel surface defects based on the improved YOLOv8 is proposed.Initially, the GhostConv and C3Ghost structures are incorporated into the backbone network.This integration serves to not only reduce the number of model parameters but also decrease the computational load, thereby optimizing the model's operational efficiency.Subsequently, the MPCA coordinate attention mechanism module is introduced.By leveraging this module, the method can effectively capture the positional relationships across diverse scales, significantly enhancing the model's feature extraction capabilities.This improvement enables the model to more accurately identify and analyze defect -related features.Finally, the SIoU loss function is adopted to substitute the CIoU loss function.This substitution accelerates the model's convergence speed and enhances the regression accuracy, ensuring that the model can more precisely predict the location and characteristics of steel surface defects.
40The experimental results show that the frame rate (FPS) of the proposed method is 171.5 on the NEU-DET dataset, which meets the requirement of real-time detection of steel surface defects.The mean precision (mAP) reached 78.6%, and the number of parameters was only 2.04 M, which achieved a good balance between model lightweight and detection accuracy.It provides a feasible solution for deployment in embedded systems, mobile devices and other edge computing environments with limited computing resources.
41In future work, we focus on further improving crack defect detection accuracy while enhancing overall defect detection accuracy to achieve more precise steel surface defect detection results.
Fig. 1 .
42Fig. 1.The Improved Network Structure of YOLOv8n.
Fig. 2 .
43Fig. 2. Structure Diagram of Improved Convolutional.
Fig. 3 .
44Fig. 3. Structure of MPCA Attention Mechanism.
45Figure 5 displays different types of Steel Surface defects the six types of steel.
Fig. 5 .
46Fig. 5. Defect images of crazing, patches, pitter surface, rolled-in scale, and scratches.
Fig. 4 .
47Fig. 4. Schematic diagram of SIoU losses.
Fig. 6 .
48Fig. 6.F1,precision, Recall and PR curves.
Fig. 7 .
49Fig. 7. Confusion matrix.
Fig. 8 .
50Fig. 8. Steel Surface Defect Detection Results.
Table 1 .
51Comparison
52of lightweighting of different models.Significant values are in bold.
Table 4 .
53Result of different detection models.Significant values are in bold.
Table 3 .
54Experimental comparison of different loss functions.Significant values are in bold.
Table 2 .
55Experimental comparison of different attention mechanisms.Significant values are in bold.
참고문헌 39건
- Fast R-CNN 2015 10.1109/iccv.2015.169
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation 2014 10.1109/cvpr.2014.81
- SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
- Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
- Strip Surface Defect Image Classification Based on Double-limited and Supervised-connect Isomap Algorithm 2014
- Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
- Faster R-CNN: towards real-time object detection with region proposal networks Neural Information Processing Systems · 2015
- CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
- FoveaBox: Beyound Anchor-Based Object Detection IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2020 10.1109/tip.2020.3002345
- 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
- Generalized Intersection Over Union: A Metric and a Loss for Bounding Box Regression 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00075
- You Only Look Once: Unified, Real-Time Object Detection 2016 10.1109/cvpr.2016.91
- Mask R-CNN 2017 10.1109/iccv.2017.322
- Focal Loss for Dense Object Detection 2017 10.1109/iccv.2017.324
- A New Self-Reference Image Decomposition Algorithm for Strip Steel Surface Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2952706
- Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1911.08287
- Air-writing via Receiver Array Based Ultrasonic Source Localization IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.2991573
- Surface defect detection of steel strips based on classification priority YOLOv3-dense network Ironmaking & Steelmaking Processes Products and Applications · Taylor & Francis · 2020 10.1080/03019233.2020.1816806
- SSD: Single Shot MultiBox Detector Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46448-0_2
- A convolutional neural network-based method for workpiece surface defect detection Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109185
- Development of a YOLO-V3-based model for detecting defects on steel strip surface Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109454
- DCC-CenterNet: A rapid detection method for steel surface defects Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110211
- Online recognition of magnetic tile defects based on UPM-DenseNet Materials Today Communications · Elsevier BV · 2021 10.1016/j.mtcomm.2021.103105
- MSFT-YOLO: Improved YOLOv5 Based on Transformer for Detecting Defects of Steel Surface Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22093467
- Study on the mechanical properties and defect detection of low alloy steel weldments for large cruise ships Ocean Engineering · Elsevier BV · 2022 10.1016/j.oceaneng.2022.111815
- Surface defect detection of steel strips based on improved YOLOv4 Computers & Electrical Engineering · Elsevier BV · 2022 10.1016/j.compeleceng.2022.108208
- Development of a CNN-based hierarchical inspection system for detecting defects on electroluminescence images of single-crystal silicon photovoltaic modules Materials Today Communications · Elsevier BV · 2022 10.1016/j.mtcomm.2022.103796
- Lightweight tea bud recognition network integrating GhostNet and YOLOv5 Mathematical Biosciences & Engineering · Arizona State University · 2022 10.3934/mbe.2022602
- Rail wheel tread defect detection using improved YOLOv3 Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111959
- A review of Gum Metal: Developments over the years and new perspectives Journal of materials research/Pratt's guide to venture capital sources · Springer Nature · 2022 10.1557/s43578-022-00781-1
- Effect of repeated impacts on the mechanical properties of nickel foam composite plate/AA5052 self-piercing riveted joints Journal of Materials Research and Technology · Elsevier BV · 2023 10.1016/j.jmrt.2023.02.095
- 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
- Steel Surface Defect Recognition using Classifier Combination Research Square · 2023 10.21203/rs.3.rs-3278355/v1
- Deep learning in alloy material microstructures: Application and prospects Materials Today Communications · Elsevier BV · 2023 10.1016/j.mtcomm.2023.107531
- A lightweight YOLOv8 integrating FasterNet for real-time underwater object detection Journal of Real-Time Image Processing · Springer Science+Business Media · 2024 10.1007/s11554-024-01431-x
- CCDN-DETR: A Detection Transformer Based on Constrained Contrast Denoising for Multi-Class Synthetic Aperture Radar Object Detection Sensors · Multidisciplinary Digital Publishing Institute · 2024 10.3390/s24061793
- A detection network for small defects of steel surface based on YOLOv7 Digital Signal Processing · Elsevier BV · 2024 10.1016/j.dsp.2024.104484
- GDCP-YOLO: Enhancing Steel Surface Defect Detection Using Lightweight Machine Learning Approach Electronics · Multidisciplinary Digital Publishing Institute · 2024 10.3390/electronics13071388
- DEW-YOLO: An Efficient Algorithm for Steel Surface Defect Detection Applied Sciences · Multidisciplinary Digital Publishing Institute · 2024 10.3390/app14125171