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

Deep Learning Based Online Defect Detection Method for Automotive Sealing Rings

간접 관련 모빌리티 소재 · (3) 자동차 인테리어 소재 (4) 카시트 모듈

기본 정보

저자
  1. Jian Ge
  2. Qin Qin
  3. Jinhua Jiang
  4. Zhiwei Shen
  5. Zimei Tu
  6. Yahui Zhang
DOI
10.32604/cmc.2025.059389
저널
Computers, materials & continua/Computers, materials & continua (Print)
발행년도
2025
발행기관
–
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.32604/cmc.2025.059389
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W4408889061

평가 내용

관련도
간접 관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
(4) 카시트 모듈
R&D 측면
공정·제조
확신도
0.80
근거 용어
automotive sealing rings, defect detection, deep learning, YOLOv8, quality control
판단 근거
논문은 자동차용 실링 링(Sealing Ring)의 결함을 딥러닝으로 검출하는 기술을 다루고 있습니다. 이는 코오롱인더스트리의 자동차 인테리어 소재 및 카시트 모듈 사업에서 부품의 품질 관리(QC) 공정 자동화에 응용될 수 있는 기술입니다.
R&D 활용 포인트
자동차용 고무/플라스틱 부품 제조 공정에서 AI 기반 비전 검사 시스템을 도입하여 불량률을 낮추고 품질 신뢰성을 확보하는 데 활용 가능합니다.
평가 입력
본문 42,137자 중 30,032자 발췌

초록

Manufacturers must identify and classify various defects in automotive sealing rings to ensure product quality. Deep learning algorithms show promise in this field, but challenges remain, especially in detecting small-scale d... | Find, read and cite all the research you need on Tech Science Press

본문 42,137자

본문 펼치기
Tech [Science](https://www.techscience.com/) Press [Doi:10.32604/cmc.2025.059389](http://dx.doi.org/10.32604/cmc.2025.059389) <u>ARTICLE</u> # Deep Learning Based Online Defect Detection Method for Automotive Sealing Rings Jian Ge <sup>1</sup> , Qin Qin <sup>1,</sup> <sup>*</sup> , Jinhua Jiang <sup>1</sup> , Zhiwei Shen <sup>2</sup> , Zimei Tu <sup>1</sup> and Yahui Zhang <sup>1</sup> 1School of Intelligent Manufacturing and Control Engineering, Shanghai Polytechnic University, Shanghai, 201209, China 2School of Electrical Engineering and Telecommunications, UNSW, Sydney, NSW 2052, Australia [*Corresponding Author: Qin Qin. Email: qinqin@sspu.edu.cn](mailto:qinqin@sspu.edu.cn) Received: 06 October 2024; Accepted: 24 February 2025; Published: 16 April 2025 ABSTRACT: Manufacturers must identify and classify various defects in automotive sealing rings to ensure product quality. Deep learning algorithms show promise in this field, but challenges remain, especially in detecting small-scale defects under harsh industrial conditions with multimodal data. This paper proposes an enhanced version of You Only Look Once (YOLO)v8 for improved defect detection in automotive sealing rings. We introduce the Multi-scale Adaptive Feature Extraction (MAFE) module, which integrates Deformable Convolutional Network (DCN) and Spaceto-Depth (SPD) operations. This module effectively captures long-range dependencies, enhances spatial aggregation, and minimizes information loss of small objects during feature extraction. Furthermore, we introduce the Blur-Aware Wasserstein Distance (BAWD) loss function, which improves regression accuracy and detection capabilities for small object anchor boxes, particularly in scenarios involving defocus blur. Additionally, we have constructed a high-quality dataset of automotive sealing ring defects, providing a valuable resource for evaluating defect detection methods. Experimental results demonstrate our method’s high performance, achieving 98.30% precision, 96.62% recall, and an inference speed of 20.3 ms. KEYWORDS: Deep learning; automotive sealing ring; defect detection 1 Introduction In the context of automotive intelligence, enhancing vehicle safety has become a widespread societal demand [1–3]. The Electronic Control Unit (ECU) is a key component in modern vehicles. Its malfunction can lead to significant safety risks [4]. Given the critical role of automotive sealing rings in protecting the ECU from external damage, even minor defects can lead to serious issues, such as electrical short-circuits, corrosion, and system failures [5]. Detecting such defects is essential for maintaining product quality and meeting vehicle safety standards [6,7]. Common defects in automotive sealing rings, such as blowout, fracture, excess material, and burr, are critical issues that can undermine the functionality of the ECU. However, defect detection faces unique challenges due to the small size of the sealing rings (1.3 cm × 0.5 cm), compounded by harsh industrial conditions such as uneven lighting and defocus blur. Traditionally, defect detection in automotive sealing rings has relied heavily on manual inspection [8], limited by low accuracy and efficiency. To overcome these limitations, advanced automated detection technologies that integrate seamlessly into high-speed production lines are essential. The adoption of advanced technologies, such as deep learning-based systems, Copyright © 2025 The Authors. Published by Tech Science Press. This work is licensed under a Creative Commons Attribution 4.0 International License, which permits unrestricted use distribution and reproduction in any medium provided the original work is properly cited 3212 Comput Mater Contin. 2025;83(2) offers a promising solution by accurately identifying defects, thereby reducing waste and improving overall productivity in automotive manufacturing [9,10]. Given the complexity and varied nature of defects in automotive sealing rings, selecting an appropriate deep learning detection algorithm is crucial. Deep learning detection methods are classified into one-stage and two-stage approaches [11]. While two-stage algorithms achieve high accuracy, their slower inference speed limits real-time applications [12,13]. In contrast, one-stage algorithms provide faster inference and are more suitable for real-time industrial scenarios, although they often struggle with small-object localization [14,15]. For real-time automotive sealing ring defect detection, the YOLO algorithm is preferable [16]. Building on YOLOv8’s suitability for real-time detection, we propose an Enhanced YOLO. Our approach introduces the Multi-scale Adaptive Feature Extraction (MAFE) Module, which integrates deformable convolutional networks (DCN) and Space-to-Depth (SPD) to enhance feature extraction for small and irregular defects, minimizing spatial information loss. We also develop the Blur-Aware Wasserstein Distance (BAWD) loss function, which improves regression accuracy and detection capability for small object anchor boxes, particularly in scenarios with defocus blur. We have constructed a high-quality dataset of automotive sealing ring defects. This dataset replicates real-world industrial conditions, providing a challenging benchmark for evaluating defect detection methods. Our experiments show significant improvements in defect detection using our Enhanced YOLOv8. Additionally, our model demonstrates robust performance on the COCO2017 dataset, validating its adaptability across diverse scenarios. The key contributions of this paper are outlined as follows: (1) Introducing the MAFE module into YOLOv8. This module combines DCN for capturing long-range dependencies and adaptive spatial aggregation with SPD operations to reduce information loss during feature extraction, especially for small objects and low-resolution images. (2) Developing the BAWD Loss to improve regression accuracy and detection capability for small object anchor boxes, especially in scenarios with defocus blur. (3) Constructing a high-quality dataset of automotive sealing ring defects, providing a valuable resource for evaluating various defect detection methods. The dataset is available as an open-source resource at https:// github.com/xika1234/automotive-seal-ring-dataset (accessed on 23 February 2025). 2 Related Work _2.1_ _Industrial Defect Detection Algorithm_ Current mainstream approaches for defect detection include RCNN-based frameworks, Transformerbased models, and YOLO-based methods, each with distinct strengths and limitations. RCNN-based frameworks [17], achieve robust feature extraction and high accuracy, particularly for complex defects [18]. For instance, Faster R-CNN has been enhanced with deformable convolution for small weld defects [19], while Cascade R-CNN has been applied to multiscale defect localization in wheel hubs [20]. However, their two-stage nature limits real-time applicability. Transformer-based models, such as DETR [21], Deformable DETR [22], and Dynamic DETR [23], leverage attention mechanisms for global context modeling and have been applied to defect detection tasks like aero-engine blades and roller bearings [24,25]. Despite their potential, Transformers often face high computational costs, making them less practical for time-sensitive applications [26]. YOLO-based methods, such as YOLOv5 and YOLOv7 [27], balance speed and accuracy but struggle with small, subtle defects under harsh industrial conditions like motion blur. To address these limitations, methods such as Feature Pyramid Networks (FPN) and attention-based mechanisms have been explored. FPN enhances multi-scale feature representation by integrating spatial and semantic information from different feature levels [28,29], while attention mechanisms recalibrate feature importance to improve Comput Mater Contin. 2025;83(2) 3213 detection precision [30]. However, these approaches often rely on rigid structures or static attention designs, limiting their adaptability to irregular defect shapes and complex industrial scenarios. To address these challenges, our Enhanced YOLOv8 introduces the MAFE module and the BAWD loss function. MAFE combines SPD operations and DCN. SPD expands the receptive field by rearranging spatial information, improving the extraction of long-range dependencies critical for small-object detection. Meanwhile, DCN introduces adaptive sampling to focus on irregular object shapes, addressing the limitations of conventional pooling and attention mechanisms. BAWD further strengthens the model by incorporating blur-aware adjustments into bounding box regression, mitigating uncertainties from defocus blur and enhancing robustness. Together, these innovations enable superior accuracy and efficiency in detecting small defects under challenging industrial conditions. _2.2_ _Automotive Sealing Rings Defect Detection_ Defect detection in automotive sealing rings has been a critical area of research in quality control. Li et al. proposed a defect detection method based on the K-means clustering approach and particle swarm optimization [31]. Their approach involves preprocessing seal images, utilizing the SURF algorithm for feature point extraction, and performing image segmentation. However, their method relies on traditional machine learning techniques, which may lack the adaptability and efficiency required for diverse defect types and high-volume production environments. Scholz et al. both explored 3D-based approaches for defect detection [8]. They developed an automated optical inspection system based on sheet-of-light laser measurement, integrating a 3D data acquisition unit for rapid full-surface scanning of parts. Nevertheless, these approaches do not specifically address the challenges of real-time detection or the processing of high-volume production data. In contrast, the enhanced YOLOv8 model proposed in this paper has been specifically optimized to address the challenges in industrial environments. This method is not only capable of adapting to diverse defect types but also possesses real-time detection capabilities, effectively handling high-frequency data input. _2.3_ _IoU Loss_ In object detection, Intersection over Union (IoU) serves as a key metric for evaluating anchor box matching accuracy, with various enhancements proposed to improve its effectiveness [32]. Variants like GIoU [33], EIoU [34], and SIoU [35] have been introduced to address specific limitations, such as handling non-overlapping bounding boxes or incorporating geometric considerations for better localization accuracy. While these advancements have improved object detection in many scenarios, they remain less effective for precise localization of small objects, often leading to positional offset errors that compromise performance in such cases [36]. To optimize the YOLOv8 model, we introduced BAWD loss, built on the foundation of NWD Loss [37,38]. NWD Loss models bounding boxes as Gaussian distributions, enabling a smooth and continuous distance metric. However, defocus blur in industrial images compromises this modeling by making object edges less distinct, leading to inaccuracies in estimating Gaussian parameters. BAWD loss mitigates this issue by incorporating blur awareness, dynamically adjusting covariance matrices based on blur levels. This refinement ensures more robust localization of small objects under blurred conditions, improving detection accuracy in challenging industrial environments. 3214 Comput Mater Contin. 2025;83(2) 3 Method _3.1_ _Automotive Sealing Ring Defect Detection Process_ This paper presents a detection method composed of three parts, specifically designed for detecting surface defects in automotive sealing rings, as shown in Fig. 1. Figure 1: Automotive sealing ring defect detection process (1) Input: This module inputs the captured image into the automotive sealing ring defect detector without any specific size constraints. (2) Automotive Sealing Ring Defect Detector: Initially, images are checked for their sizes, and those not meeting the 640 × 640 pixel requirement are compressed. This physically enlarges the defects and reduces the negative sample information. The Enhanced YOLO network is then trained using COCO dataset weights. (3) Output: The defects are detected in the obtained image using Enhanced YOLO network and the detection results are obtained. _3.2_ _Enhanced YOLO_ This section proposes an improved model Enhanced YOLO based on the network structure of YOLOv8. The specific structure is shown in Fig. 2. This study introduces two major improvements to YOLOv8. Firstly, the MAFE module is incorporated into the network to establish long-range dependencies during feature extraction, offering stronger spatial aggregation capabilities compared to standard convolutional modules. Additionally, the MAFE module minimizes parameters while mitigating inherent limitations of stride and pooling operations. This enhancement improves the focus on low-resolution images and boosts the detection of small object defects. Secondly, the BAWD loss function is introduced, which measures the similarity of the bounding box’s Gaussian distribution, enabling more accurate regression of predicted boxes. This modification further strengthens small object detection and boosts overall precision. Comput Mater Contin. 2025;83(2) 3215 Figure 2: Enhanced YOLO network structure _3.2.1 MAFE Module_ The MAFE module combines SPD and DCN to enhance feature extraction specifically for small and irregular defects. SPD rearranges spatial information into channel dimensions, effectively expanding the receptive field and enhancing focus on fine-grained details. This is particularly advantageous for small defects such as burrs and fractures. Meanwhile, DCN introduces learnable spatial offsets, allowing convolutions to dynamically adapt to irregular defect shapes and deformations. This adaptation ensures critical spatial information is preserved, overcoming limitations of conventional pooling methods. These mechanisms collectively enable the model to capture long-range dependencies and provide robust feature representations under complex industrial conditions. The structure of the MAFE module is shown in Fig. 3. Figure 3: MAFE module The SPD operation rearranges the spatial information of the input feature map into the channel dimension. Assuming the input feature map is _X_ ∈ _R_ <sup>_C_</sup> <sup>×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup>, the SPD operation transforms it along the spatial dimensions, resulting in a new feature map _X_ <sup>′</sup> ∈ _R_ <sup>(</sup> <sup>_C_</sup> <sup>×</sup> <sup>_s_</sup> <sup>2)×(</sup> <sup>_H_</sup> <sup>/</sup> <sup>_s_</sup> <sup>)×(</sup> <sup>_W_</sup> <sup>/</sup> <sup>_s_</sup> <sup>)</sup> . The SPD can be expressed as: _X_ ′ _c_ <sup>′</sup>, _h_ <sup>′</sup>, _w_ <sup>′</sup> <sup>=</sup> <sup>_Xc_</sup> <sup>,</sup> <sup>_h_</sup> <sup>′×</sup> <sup>_s_</sup> <sup>+</sup> <sup>_i_</sup> <sup>,</sup> <sup>_w_</sup> <sup>′×</sup> <sup>_s_</sup> <sup>+</sup> <sup>_j_</sup> (1) where _c_ <sup>′</sup> = _c_ × _s_ <sup>2</sup> + _i_ × _s_ + _j_, _i_, _j_ = 0, 1, . . ., _s_ - 1. Specifically, first SPD converts the feature image _X_ ( _S_, _S_, _C_ 1) into intermediate feature image _X_ <sup>′</sup> ( _<u>S</u>_ _<u>S</u>_ Then it is further converted into _X_ <sup>′</sup> ( _<u>S</u>_ _<u>S</u>_ _scal e_ <sup>,</sup> _scal e_ <sup>,</sup> <sup>_scale_</sup> <sup>2</sup> <sup>_C_</sup> <sup>1).</sup> _scal e_ <sup>,</sup> _scal e_ <sup>,</sup> <sup>_scale_</sup> <sup>2</sup> <sup>_C_</sup> <sup>1)→</sup> _<u>S</u>_ _<u>S</u>_ _X_ <sup>′′</sup> ( _scal e_ <sup>,</sup> _scal e_ <sup>,</sup> <sup>_C_</sup> <sup>2) by non-strided convolution. An illustration of the</sup> <sup>_scale_</sup> <sup>= 2 conversion process is given</sup> in Fig. 4. 3216 Comput Mater Contin. 2025;83(2) Figure 4: The process of SPD-Conv operation The SPD operation compresses spatial information into the channel dimension, expanding the receptive field, which is particularly effective for extracting long-range dependencies and features of small targets. DCN introduces learnable spatial offsets, making the sampling locations of convolution kernels more flexible. The conventional convolution is expressed as: _y_ ( _pc_ ) = ∑ _k_ _w_ ( _k_ ) ⋅ _x_ ( _p_ 0 + _pk_ ) (2) where _pc_ represents the location of the current pixel, and _pk_ represents the sampling location of the standard convolution kernel. With the introduction of learnable offsets, DCN enables adaptive adjustment of convolution kernel sampling locations. The mathematical expression is: _y_ ( _pc_ ) = ∑ _k_ _w_ ( _k_ ) ⋅ _x_ ( _pc_ + _pk_ + Δ _p_ _gk_ ) (3) By introducing grouped convolution, spatial feature aggregation across multiple groups is achieved. The corresponding formula is: _y_ ( _pc_ ) = ∑ _k_ _w_ _g_ ⋅ _m_ _gk_ ⋅ _x_ _g_ ( _pc_ + _pk_ + Δ _p_ _gk_ ) (4) where _G_ denotes the total number of groups, _w_ _g_ ∈ _R_ <sup>_C_</sup> <sup>×</sup> <sup>_C_</sup> <sup>′</sup> denotes the weights of group _g_, indicating a position-independent projection. _C_ <sup>′</sup> = _C_ / _G_ represents the channel dimension of each group. _m_ _gk_ ∈ _R_ is the normalization factor obtained by applying the Softmax function along the _k_ -th dimension. _xg_ ∈ _R_ <sup>_C_</sup> <sup>′×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> denotes the input feature map of group _g_, and _Deltap_ _gk_ represents the offset of the sampling point _pk_ within group _g_ . Comput Mater Contin. 2025;83(2) 3217 Finally, the feature map _X_ <sup>′</sup>, after the SPD operation, is fed into the DCN: _y_ ( _pc_ ) = ∑ _k_ _w_ ( _k_ ) ⋅ _X_ <sup>′</sup> ( _pc_ + _pk_ + Δ _p_ _gk_ ) (5) _3.2.2 BAWD Loss_ BAWD loss addresses the challenges posed by defocus blur in high-speed production environments by refining the covariance matrices in Gaussian modeling. Specifically, it adjusts the Gaussian parameters dynamically to reflect varying levels of blur, mitigating edge ambiguities that often compromise small-object localization. This approach ensures robust and precise regression by smoothing the Wasserstein distance calculations between predicted and ground-truth boxes. The effectiveness of BAWD in handling blurred scenarios has been validated through experiments, showing significant improvements over conventional losses like CIoU and NWD in detecting small and subtle defects. A rotating bounding box _B_ = ( _x_, _y_, _w_, _h_, _θ_ ), is represented as a two-dimensional Gaussian _G_ ( _μ_, Σ). The Wasserstein distance between two Gaussians _G_ _p_ = _N_ ( _μ_ _p_, Σ _p_ ) and _G_ _g_ = _N_ ( _μ_ _g_, Σ _g_ ) is given by: <sup>1</sup> _g_ <sup>/2∥</sup> 2 (6) _F_ _W_ 2 2 ( _G_ _p_, _G_ _g_ ) = ∥ _μ_ _p_ - _μ_ _g_ ∥22 2 2 <sup>+ ∥Σ1</sup> _p_ <sup>/2−</sup> <sup>Σ1</sup> _g_ <sup>/2</sup> where ∥.∥ _F_ is the Frobenius norm. The Gaussian distributions _G_ _p_ and _G_ _g_ are defined using bounding boxes _A_ = ( _cx_ _p_, _cy_ _p_, _w_ _p_, _h_ _p_ ) and _B_ = ( _cx_ _g_, _cy_ _g_, _w_ _g_, _h_ _g_ ), Eq.(6) can be rewritten as: 2 (7) 2 , [ _cx_ _g_, _cy_ _g_, <sup>_<u>w</u>_</sup> 2 <sup>_<u>g</u>_</sup> <sup>,</sup> <sup>_<u>h</u>_</sup> 2 <sup>_<u>g</u>_</sup> <sup>]</sup> ⎠ T T⎞ ����������� _W_ 2 2 ( _G_ _p_, _G_ _g_ ) = ����������� ⎛⎝ <sup>[</sup> <sup>_cx_</sup> <sup>_p_</sup> <sup>,</sup> <sup>_cy_</sup> <sup>_p_</sup> <sup>,</sup> <sup>_<u>w</u>_</sup> 2 <sup>_<u>p</u>_</sup> 2 <sup>_<u>p</u>_</sup> <sup>,</sup> <sup>_<u>h</u>_</sup> 2 <sup>_<u>p</u>_</sup> <sup>]</sup> where _cxa_ and _cya_ represent the center coordinates of the predicted box, _wa_ and _ha_ are box width and height; _cxb_, _cyb_, _wb_, _hb_ corresponds to the ground truth box. The NWD loss is as follows: ~~√~~ 2 ( _G_ _p_, _G_ _g_ ) ⎞ ⎟ _Cs_ ⎠ (8) _NWD_ ( _G_ _p_, _G_ _g_ ) = exp ⎛ ⎜− ⎝ _W_ 2 Incorporating the blur-aware weight _w_ ( _B_ ), the BAWD loss is formulated as: _LNWD_ = _w_ ( _B_ ) × _NWD_ ( _G_ _p_, _G_ _g_ ) (9) Here, _G_ _p_ represents the Gaussian model of the prediction, while _G_ _g_ corresponds to the ground truth. The term _Cs_ is a dataset-dependent constant. 4 Experiments _4.1_ _Dataset_ The Enhanced YOLO object detection algorithm is validated on two datasets: 1) automotive sealing ring defect dataset constructed by us, and 2) the MS COCO2017 dataset. The performance on the automotive sealing ring dataset directly reflects the model’s capability in the specific task of automotive sealing ring defect detection. Meanwhile, its performance on the COCO dataset demonstrates the model’s generalization ability across diverse detection scenarios. 3218 Comput Mater Contin. 2025;83(2) _4.1.1 Automotive Sealing Ring Defect Dataset_ This study manually constructed a dataset containing four common defects: blowout, fracture, excess material and burr. The defective automotive sealing rings are from a real-world project conducted by Shanghai Inspect Spring Automation Technology Company. This dataset was created to apply deep learningbased object detection models to automotive sealing ring defect detection. Purposefully, we set up harsh conditions in the dataset to ensure the images closely resemble actual industrial environments. This includes simulating situations such as uneven lighting, noise interference, and image blurring to enhance the robustness required of the algorithm. With such a dataset setup, this study aims to provide a challenging evaluation platform for testing and improving the performance of the sealing ring defect detection algorithm. The automotive sealing ring defect dataset constructed by us consists of 4977 images, and the data acquisition equipment is shown in Fig. 5. The dataset includes four types of defects: blowout, fracture, excess material and burr. The quantity of each defect is shown in Fig. 6. To facilitate supervised learning, the dataset was split in an 8:1:1 ratio into a training set (4031 images), validation set (448 images), and test set (498 images). Figure 5: The data acquisition system Blowout Fracture Excess material Burrs 1258 1085 1177 1438 0 500 1000 1500 number Figure 6: Sealing ring defect data distribution Comput Mater Contin. 2025;83(2) 3219 _4.1.2 MS COCO2017 Dataset_ The MS COCO2017 dataset, also called COCO2017, consists of 80 object categories, including humans, animals, vehicles, and household items. It is partitioned into 118,287 training images, 5000 validation images, and 40,670 test images, serving as a standard benchmark for evaluating object detection models and assessing their robustness. _4.2_ _Evaluation Metrics_ The performance of the model will be evaluated by a variety of metrics such as Precision, Recall, mAP@0.5, mAP@0.5:0.95, Params and FLOPs. Precision reflects the accuracy of the model in identifying positive samples, minimizing false positives. Recall represents the proportion of actual positives correctly predicted, with a high score indicating strong capability in detecting positive instances. The equations for Precision and Recall are as follows: _<u>TP</u>_ _Precistion_ = (10) _FP_ + _TP_ _<u>TP</u>_ _Recall_ = (11) _FN_ + _TP_ _TP_ indicates correctly classified positive samples, _FP_ indicates misclassified positive samples, and _FN_ indicates misclassified negative samples. mAP@0.5 focuses on the average accuracy of the model’s predictions concerning the actual objects (Ground Truth) with a bounding box overlap of 0.5. This evaluation emphasizes the model’s performance at relatively high intersection and overlap ratio thresholds. In contrast, mAP@0.5:0.95, which covers multiple intersection and merging ratio thresholds ranging from 0.5 to 0.95, comprehensively assesses the model across different conditions. The AP and mAP formulas are given below: _AP_ = ∫ 1 0 <sup>_p_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_dr_</sup> (12) _mAP_ = <sup><u>∑</u></sup> <sup>_k_</sup> _<u>i</u>_ (13) _k_ <sup>_k_</sup> _<u>i</u>_ <u>=1</u> <sup>_<u>APi</u>_</sup> where _p_ ( _r_ ) represents the accuracy for a given recall and _k_ represents the number of categories. Normally, this study uses approximation or interpolation to calculate the _AP_ value. Params denotes the model’s trainable parameters, indicating the size of the model. FLOPs (Floating Point Operations) quantify the computational cost of model inference or training. Higher FLOPs indicate increased resource requirements. The equations of Params and FLOPs can be expressed as: _Params_ = ( _Cin_ × _K_ <sup>2</sup> + 1) × _Cout_ (14) _FLOPs_ = 2 × _Cin_ × _Cout_ × _K_ <sup>2</sup> × _H_ × _W_ (15) where _Cin_ and _Cout_ represent the input and output feature map channels, respectively. _K_ represents the convolution kernel size. _H_ and _W_ denote the output feature map’s height and width, respectively. 3220 Comput Mater Contin. 2025;83(2) _4.3_ _Validation Results on the Automotive Sealing Ring Dataset_ _4.3.1 Cross-Validation_ In order to avoid a single evaluation being affected by a specific data distribution, leading to unstable evaluation results, this study conducted five-fold cross-validation experiments on the automotive sealing ring dataset to more accurately assess the model’s generalization ability. The results are shown in Table 1. The improved model proposed in this paper achieves 98.30%, 96.62%, 85.55% and 53.45% in precision, recall, mAP@0.5 and mAP@0.5:0.95. It is worth noting that the fluctuation range of each metric is minimal in different cross-validation experiments, which validates that the automotive sealing ring dataset we constructed has an excellent and balanced data distribution. Table 1: Cross-validation results on automotive sealing ring dataset <u>Order number</u> <u>Precision</u> <u>Recall</u> <u>mAP@0.5</u> <u>mAP@0.5:0.95</u> 1 98.72% 96.95% 85.85% 54.64% 2 98.16% 96.10% 85.54% 52.82% 3 98.54% 97.32% 86.08% 53.76% 4 97.62% 96.04% 84.56% 51.67% 5 98.44% 96.68% 85.74% 54.36% <u>average</u> <u>98.30%</u> <u>96.62%</u> <u>85.55%</u> <u>53.45%</u> _4.3.2 Comparison with Other Methods_ To assess the detection performance of the proposed model, we conducted a comparative analysis with other lightweight models on the automotive sealing ring dataset. The comparison results from the crossvalidation experiment are shown in Table 2. While the Enhanced YOLO may not hold the edge in terms of inference speed and FLOPs, its performance in accuracy metrics stands out. Specifically, it achieves mAP@0.5 and mAP@0.5:0.95 scores of 85.73% and 54.36%, respectively, indicating superior performance levels. In addition, the parameters of proposed model are 2.8 M in total, lower than other existing methods. This makes it suitable for embedded devices and reduces hardware strain. This experiment offers a valuable benchmark for the industrial community when determining the optimal model for defect detection in automotive sealing rings. Table 2: Results of different lightweight models on the automotive sealing ring dataset <u>Model</u> <u>mAP@0.5</u> <u>mAP@0.5:0.95</u> <u>Inference time</u> <u>FLOPs</u> <u>Params</u> YOLOv4tiny 76.45% 45.62% 3.5 ms 6.9 G 5.8 M YOLOv5s 79.36% 48.84% 4.2 ms 7.2 G 16.5 M YOLOv6s 73.70% 43.60% 3.0 ms 4.7 G 11.4 M YOLO7tiny 57.02% 27.36% 2.1 ms 6.2 G 5.8 M YOLOv9-T 79.44% 49.23% 2.7 ms 7.7 G 2.0 M YOLOv10-N 81.66% 50.87% 1.9 ms 6.7 G 2.3 M <u>Ours</u> <u>85.74</u> <u>%</u> <u>54.36</u> <u>%</u> <u>20.3 ms</u> <u>8.1 G</u> <u>2.8 M</u> Comput Mater Contin. 2025;83(2) 3221 _4.4_ _Validation Results on COCO2017 Dataset_ To assess our model’s robustness, we compared it with mainstream object detection models using the COCO dataset. Detailed numerical results are presented in the Table 3. As depicted in Table 3, although EfficientDet-D0, NanoDet, and MobileDet are comparable to our model in terms of the amount of parameter computation, the Enhanced YOLO outperforms in accuracy. Moreover, while SpineNet-49s achieves similar accuracy, and Deformable DETR and Efficient DETR perform slightly better than ours, it is noteworthy that our model retains a significant advantage in both parameter count and computational complexity. The outstanding performance on the COCO dataset demonstrates the robust generalization capability of the Enhanced YOLO across diverse scenarios. Table 3: Comparison results with state-of-the-art models on the COCO dataset <u>Model</u> <u>Backbone</u> <u>mAP@0.5:0.95</u> <u>FLOPs</u> <u>Params</u> Efficientdet-D0 Efficientnet 34.3% 2.5 G 3.9 M Retinanet Resnet-50 37.0% 97 G 34 M Nanodet Darknet53 34.1% 2.97 G 2.5 M DeformableDETR Resnet-50 43.8% 173 G 40 M Mobiledet MobilenetV2 25.7% 1.37 G 6.4 M SpineNet-49s SpineNet-49s 39.5% 33.8 G 11.9 M Efficient DETR Resnet-50 44.2% 159 G 32 M YOLOv8n YOLOv8n 37.3% 8.7 G 3.2 M <u>Ours</u> <u>Enhanced YOLO</u> <u>40.8%</u> <u>8.1 G</u> <u>2.8 M</u> _4.5_ _Ablation Experiments_ To assess the effect of each enhancement, we performed a detailed ablation study. The visualization process of the model training is shown in Fig. 7. The specific results are shown in Table 4. For each enhancement strategy, respective control groups were set up to evaluate its impact on model performance. Specifically, “+DCN”, “+SPD”, “+BAWDLoss” and “Ours” represent the introduction of the DCN module, the introduction of the SPD module, adding the BAWD loss function, and our proposed model, respectively. As shown in Table 4, adding the DCN module, the SPD module, or changing the loss function each enhances performance metrics like Recall, mAP@0.5, and mAP@0.5:0.95. Moreover, introducing both modules consistently and substantially improved the model compared to the enhancements achieved by introducing a single module. The performance of the improvements with both modules also steadily improves compared to that of separate modules. Ultimately, when all three modules were simultaneously introduced, the model achieved optimal performance. In conclusion, the ablation study facilitated a precise understanding of the contribution of each enhancement. It also provided clarity on how individual and collective integrations of the strategies influenced the model’s performance, guiding future optimizations and decisions. The detection results and the heatmaps of the original model and the improved model are shown in Figs. 8 and 9, respectively. 3222 Comput Mater Contin. 2025;83(2) Figure 7: The model’s performance variations with different improvements on the automotive sealing ring dataset. Different curves highlight changes in metrics like mAP and recall over epochs, evaluating the impact of each enhancement Table 4: Comparison of results with deconstructed models on the automotive sealing ring dataset <u>Method</u> <u>Recall</u> <u>mAP@0.5</u> <u>mAP@0.5:0.95</u> <u>Inference time</u> <u>Params</u> Baseline 91.62% 81.51% 50.03% 5.2 ms 3.1 M +DCN 93.46% 83.48% 52.02% 17.7 ms 2.6 M +SPD 92.58% 82.59% 51.36% 6.3 ms 3.3 M +BAWDLoss 92.72% 82.37% 51.13% 5.8 ms 3.1 M +MAFE 94.74% 84.64% 53.16% 18.8 ms 2.8 M +DCN+BAWDLoss 95.49% 84.69% 52.14% 17.9 ms 2.6 M +SPD+BAWDLoss 93.60% 83.95% 52.57% 8.1 ms 3.3 M <u>Ours</u> <u>96.62</u> <u>%</u> <u>85.74</u> <u>%</u> <u>54.36</u> <u>%</u> <u>20.3 ms</u> <u>2.8 M</u> Comput Mater Contin. 2025;83(2) 3223 Figure 8: The detection results of the original model and the improved model Figure 9: The heatmaps of the original model and the improved model 3224 Comput Mater Contin. 2025;83(2) 5 Conclusion This paper proposes an improved model based on the state-of-the-art model YOLOv8 in order to solve the task of automotive sealing ring defect detection. The introduction of the MAFE module enhances the model’s ability to capture long-range dependencies and aggregate spatial features, significantly improving its robustness in detecting defects under complex industrial conditions. Additionally, the incorporation of the BAWD loss enhances the model’s precision in identifying small objects by more accurately modeling the bounding box similarity, especially in challenging scenarios with blurry or uncertain object boundaries. These improvements enable the model proposed in this paper to obtain significant performance enhancement while maintaining the characteristics of lightweight design and high-speed inference. It is worth mentioning that this paper achieves advanced accuracy performance on a specially constructed automotive sealing ring dataset. This approach significantly reduces the leakage and false detection rates, providing an excellent example for the field of automotive sealing ring defect detection and other rubber industrial products. Acknowledgement: Not applicable. Funding Statement: The authors received no specific funding for this study. Author Contributions: The authors confirm contribution to the paper as follows: study conception and design: Jian Ge; data collection: Jian Ge, Yahui Zhang; analysis and interpretation of results: Jian Ge, Zimei Tu, Jinhua Jiang; draft manuscript preparation: Jian Ge, Qin Qin, Zhiwei Shen. All authors reviewed the results and approved the final version of the manuscript. Availability of Data and Materials: Due to the nature of this research, participants of this study did not agree for their data to be shared publicly, so supporting data is not available. Ethics Approval: Not applicable. Conflicts of Interest: The authors declare no conflicts of interest to report regarding the present study. References 1. Muhammad K, Ullah A, Lloret J, Del Ser J, de Albuquerque VHC. Deep learning for safe autonomous driving: [current challenges and future directions. IEEE Trans Intell Transp Syst. 2020;22(7):4316–36. doi:10.1109/TITS.2020.](https://doi.org/10.1109/TITS.2020.3032227) [3032227.](https://doi.org/10.1109/TITS.2020.3032227) 2. Wang Z, Zhan J, Duan C, Guan X, Lu P, Yang K. A review of vehicle detection techniques for intelligent vehicles. [IEEE Trans Neural Netw Learn Syst. 2023;34(8):3811–31. doi:10.1109/TNNLS.2021.3128968.](https://doi.org/10.1109/TNNLS.2021.3128968) 3. Chen S, Jin D, He H, Yang F, Yang J. Deep learning based online non-destructive defect detection for self piercing riveted joints in automotive body manufacturing. IEEE Trans Ind Inform. 2023;19(8):9134–44. [doi:10.1109/TII.](https://doi.org/10.1109/TII.2022.3226246) [2022.3226246.](https://doi.org/10.1109/TII.2022.3226246) 4. Varol S, Odougherty P. A predictive analysis of electronic control unit system defects within automotive [manufacturing. J Fail Anal Prev. 2022;22(3):918–25. doi:10.1007/s11668-022-01401-0.](https://doi.org/10.1007/s11668-022-01401-0) 5. Türköz M, Evcen DC. Investigation on the sealing performance of polymers at ultra high pressures. Int Polym [Process. 2022;37(5):549–58. doi:10.1515/ipp-2022-4226.](https://doi.org/10.1515/ipp-2022-4226) 6. Zhang Y, Wang Y, Jiang Z, Zheng L, Chen J, Lu J. Domain adaptation via transferable swin transformer for tire [defect detection. Eng Appl Artif Intell. 2023;122(1):106109. doi:10.1016/j.engappai.2023.106109.](https://doi.org/10.1016/j.engappai.2023.106109) 7. Parlak IE, Emel E. Deep learning-based detection of aluminum casting defects and their types. Eng Appl Artif [Intell. 2023;118(2):105636. doi:10.1016/j.engappai.2022.105636.](https://doi.org/10.1016/j.engappai.2022.105636) 8. Scholz O, Doerfler N, Seifert L, Zöller U. Fully-automatic surface inspection of O-ring seals. In: SAE technical paper; 2015. Comput Mater Contin. 2025;83(2) 3225 9. Lu X, Jiang C, Ma Z, Li H, Liu Y. A simple and effective surface defect detection method of power line insulators [for difficult small objects. Comput Mater Contin. 2024;79(1):373–90. doi:10.32604/cmc.2024.047469.](https://doi.org/10.32604/cmc.2024.047469) 10. Kim G-I, Yoo H, Cho H-J, Chung K. Defect detection model using time series data augmentation and transforma[tion. Comput Mater Contin. 2024;78(2):1713–30. doi:10.32604/cmc.2023.046324.](https://doi.org/10.32604/cmc.2023.046324) 11. Jiang W, Li T, Zhang S, Chen W, Yang J. PCB defects target detection combining multi-scale and attention [mechanism. Eng Appl Artif Intell. 2023;123(4968):106359. doi:10.1016/j.engappai.2023.106359.](https://doi.org/10.1016/j.engappai.2023.106359) 12. Ren S, He K, Girshick R, Sun J. Faster R-CNN: towards real-time object detection with region proposal networks. [IEEE Trans Pattern Analy Mach Intell. 2016;39(6):1137–49. doi:10.1109/TPAMI.2016.2577031.](https://doi.org/10.1109/TPAMI.2016.2577031) 13. He K, Gkioxari G, Dollár P, Girshick R. Mask R-CNN. In: Proceedings of the IEEE International Conference on Computer Vision; 2017; Venice, Italy. p. 2980–8. 14. Redmon J. You only look once: unified, real-time object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2016. 15. Liu W, Anguelov D, Erhan D, Szegedy C, Reed S, Fu C-Y, et al. Ssd: single shot multibox detector. In: Computer Vision-ECCV 2016: 14th European Conference; 2016 Oct 11–14; Amsterdam, The Netherlands: Springer. 16. Jiang P, Ergu D, Liu F, Cai Y, Ma B. A review of yolo algorithm developments. Procedia Comput Sci. [2022;199(11):1066–73. doi:10.1016/j.procs.2022.01.135.](https://doi.org/10.1016/j.procs.2022.01.135) 17. Cai Z, Vasconcelos N. Cascade R-CNN: delving into high quality object detection. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; 2018; Salt Lake City, UT, USA. p. 6154–62. 18. Revathy G, Kalaivani R. Fabric defect detection and classification via deep learning-based improved mask RCNN. [Signal Image Video Process. 2024;18(3):2183–93. doi:10.1007/s11760-023-02884-6.](https://doi.org/10.1007/s11760-023-02884-6) 19. Chen C, Wang S, Huang S. An improved faster RCNN-based weld ultrasonic atlas defect detection method. Meas [Control. 2023;56(3–4):832–43. doi:10.1177/00202940221092030.](https://doi.org/10.1177/00202940221092030) 20. Cheng S, Lu J, Yang M, Zhang S, Xu Y, Zhang D, et al. Wheel hub defect detection based on the DS-cascade RCNN. [Measurement. 2023;206(1):112208. doi:10.1016/j.measurement.2022.112208.](https://doi.org/10.1016/j.measurement.2022.112208) 21. Carion N, Massa F, Synnaeve G, Usunier N, Kirillov A, Zagoruyko S. End-to-end object detection with transformers. In: European Conference on Computer Vision; 2020; Cham: Springer. 22. Zhu X, Su W, Lu L, Li B, Wang X, Dai J. Deformable DETR: deformable transformers for end-to-end object detection; 2020. arXiv:201004159. 2020.. 23. Dai X, Chen Y, Yang J, Zhang P, Yuan L, Zhang L. Dynamic DETR: end-to-end object detection with dynamic attention. In: Proceedings of the IEEE/CVF International Conference on Computer Vision; 2021; Montreal, QC, Canada. p. 2968–77. 24. Zhou X, Ren Z, Zhang Y, Mi T, Zhou S, Jiang Z. A shunted-swin transformer for surface defect detection in roller [bearings. Measurement. 2024;238(1):115283. doi:10.1016/j.measurement.2024.115283.](https://doi.org/10.1016/j.measurement.2024.115283) 25. Sun X, Song K, Wen X, Wang Y, Yan Y. SDD-DETR: surface defect detection for no-service aero-engine blades [with detection transformer. IEEE Trans Autom Sci Eng. 2024;22:6984–97. doi:10.1109/TASE.2024.3457829.](https://doi.org/10.1109/TASE.2024.3457829) 26. Zhang Q, Lai J, Zhu J, Xie X. Wavelet-guided promotion-suppression transformer for surface-defect detection. [IEEE Trans Image Process. 2023;32:4517–28. doi:10.1109/TIP.2023.3293770.](https://doi.org/10.1109/TIP.2023.3293770) 27. Wang C-Y, Bochkovskiy A, Liao H-YM. YOLOv7: trainable bag-of-freebies sets new state-of-the-art for real-time object detectors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2023; Vancouver, BC, Canada. p. 7464–75. 28. Huang X, Zhu J, Huo Y. SSA-YOLO: an improved YOLO for hot-rolled strip steel surface defect detection. IEEE [Trans Instrum Meas. 2024;73(10):5040017. doi:10.1109/TIM.2024.3488136.](https://doi.org/10.1109/TIM.2024.3488136) 29. Li H, Wang C, Liu Y. YOLO-FDD: efficient defect detection network of aircraft skin fastener. Signal Image Video [Process. 2024;18(4):3197–211. doi:10.1007/s11760-023-02983-4.](https://doi.org/10.1007/s11760-023-02983-4) 30. Xiao D, Xie FT, Gao Y, Li ZN, Xie HF. A detection method of spangle defects on zinc-coated steel surfaces based [on improved YOLO-v5. Int J Adv Manuf Technol. 2023;128(1–2):937–51. doi:10.1007/s00170-023-11963-4.](https://doi.org/10.1007/s00170-023-11963-4) 31. Li X, Zhu J, Shi H, Cong Z. Surface defect detection of seals based on k-means clustering algorithm and particle [swarm optimization. Sci Program. 2021;2021(1):3965247–12. doi:10.1155/2021/3965247.](https://doi.org/10.1155/2021/3965247) 3226 Comput Mater Contin. 2025;83(2) 32. Yu J, Jiang Y, Wang Z, Cao Z, Huang T. UnitBox: an advanced object detection network. In: Proceedings of the 24th ACM International Conference on Multimedia; 2016. p. 516– 520. 33. Rezatofighi H, Tsoi N, Gwak J, Sadeghian A, Reid I, Savarese S. Generalized intersection over union: a metric and a loss for bounding box regression. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; 2019. p. 658–66. 34. Zhang Y-F, Ren W, Zhang Z, Jia Z, Wang L, Tan T. Focal and efficient IOU loss for accurate bounding box regression. [Neurocomputing. 2022;506(9):146–57. doi:10.1016/j.neucom.2022.07.042.](https://doi.org/10.1016/j.neucom.2022.07.042) 35. Gevorgyan Z. SIoU loss: more powerful learning for bounding box regression. arXiv:2205.12740. 2022. 36. Zhao J, Zhu H. CBPH-Net: a small object detector for behavior recognition in classroom scenarios. IEEE Trans [Instrum Meas. 2023;72:2521112. doi:10.1109/TIM.2023.3296124.](https://doi.org/10.1109/TIM.2023.3296124) 37. Wang J, Xu C, Yang W, Yu L. A normalized gaussian wasserstein distance for tiny object detection. arXiv:2110.13389. 2021. 38. Li X, Wang W, Wu L, Chen S, Hu X, Li J, et al. Generalized focal loss: learning qualified and distributed bounding boxes for dense object detection. Adv Neural Inf Process Syst. 2020;33:21002–12.

섹션 본문 62문단 · 25,361자

(제목 없음)

1Manufacturers must identify and classify various defects in automotive sealing rings to ensure product quality.Deep learning algorithms show promise in this field, but challenges remain, especially in detecting small-scale defects under harsh industrial conditions with multimodal data.This paper proposes an enhanced version of You Only Look Once (YOLO)v8 for improved defect detection in automotive sealing rings.We introduce the Multi-scale Adaptive Feature Extraction (MAFE) module, which integrates Deformable Convolutional Network (DCN) and Spaceto-Depth (SPD) operations.This module effectively captures long-range dependencies, enhances spatial aggregation, and minimizes information loss of small objects during feature extraction.Furthermore, we introduce the Blur-Aware Wasserstein Distance (BAWD) loss function, which improves regression accuracy and detection capabilities for small object anchor boxes, particularly in scenarios involving defocus blur.Additionally, we have constructed a high-quality dataset of automotive sealing ring defects, providing a valuable resource for evaluating defect detection methods.Experimental results demonstrate our method's high performance, achieving 98.30% precision, 96.62% recall, and an inference speed of 20.3 ms.

Introduction

2In the context of automotive intelligence, enhancing vehicle safety has become a widespread societal demand [1][2][3].The Electronic Control Unit (ECU) is a key component in modern vehicles.Its malfunction can lead to significant safety risks [4].Given the critical role of automotive sealing rings in protecting the ECU from external damage, even minor defects can lead to serious issues, such as electrical short-circuits, corrosion, and system failures [5].Detecting such defects is essential for maintaining product quality and meeting vehicle safety standards [6,7].

3Common defects in automotive sealing rings, such as blowout, fracture, excess material, and burr, are critical issues that can undermine the functionality of the ECU.However, defect detection faces unique challenges due to the small size of the sealing rings (1.3 cm × 0.5 cm), compounded by harsh industrial conditions such as uneven lighting and defocus blur.Traditionally, defect detection in automotive sealing rings has relied heavily on manual inspection [8], limited by low accuracy and efficiency.To overcome these limitations, advanced automated detection technologies that integrate seamlessly into high-speed production lines are essential.The adoption of advanced technologies, such as deep learning-based systems, offers a promising solution by accurately identifying defects, thereby reducing waste and improving overall productivity in automotive manufacturing [9,10].

4Given the complexity and varied nature of defects in automotive sealing rings, selecting an appropriate deep learning detection algorithm is crucial.Deep learning detection methods are classified into one-stage and two-stage approaches [11].While two-stage algorithms achieve high accuracy, their slower inference speed limits real-time applications [12,13].In contrast, one-stage algorithms provide faster inference and are more suitable for real-time industrial scenarios, although they often struggle with small-object localization [14,15].For real-time automotive sealing ring defect detection, the YOLO algorithm is preferable [16].

5Building on YOLOv8's suitability for real-time detection, we propose an Enhanced YOLO.Our approach introduces the Multi-scale Adaptive Feature Extraction (MAFE) Module, which integrates deformable convolutional networks (DCN) and Space-to-Depth (SPD) to enhance feature extraction for small and irregular defects, minimizing spatial information loss.We also develop the Blur-Aware Wasserstein Distance (BAWD) loss function, which improves regression accuracy and detection capability for small object anchor boxes, particularly in scenarios with defocus blur.

6We have constructed a high-quality dataset of automotive sealing ring defects.This dataset replicates real-world industrial conditions, providing a challenging benchmark for evaluating defect detection methods.Our experiments show significant improvements in defect detection using our Enhanced YOLOv8.Additionally, our model demonstrates robust performance on the COCO2017 dataset, validating its adaptability across diverse scenarios.The key contributions of this paper are outlined as follows:

7(1) Introducing the MAFE module into YOLOv8.This module combines DCN for capturing long-range dependencies and adaptive spatial aggregation with SPD operations to reduce information loss during feature extraction, especially for small objects and low-resolution images.

8(2) Developing the BAWD Loss to improve regression accuracy and detection capability for small object anchor boxes, especially in scenarios with defocus blur.

9(3) Constructing a high-quality dataset of automotive sealing ring defects, providing a valuable resource for evaluating various defect detection methods.The dataset is available as an open-source resource at https:// github.com/xika1234/automotive-seal-ring-dataset(accessed on 23 February 2025).

Industrial Defect Detection Algorithm

10Current mainstream approaches for defect detection include RCNN-based frameworks, Transformerbased models, and YOLO-based methods, each with distinct strengths and limitations.RCNN-based frameworks [17], achieve robust feature extraction and high accuracy, particularly for complex defects [18].For instance, Faster R-CNN has been enhanced with deformable convolution for small weld defects [19], while Cascade R-CNN has been applied to multiscale defect localization in wheel hubs [20].However, their two-stage nature limits real-time applicability.Transformer-based models, such as DETR [21], Deformable DETR [22], and Dynamic DETR [23], leverage attention mechanisms for global context modeling and have been applied to defect detection tasks like aero-engine blades and roller bearings [24,25].Despite their potential, Transformers often face high computational costs, making them less practical for time-sensitive applications [26].YOLO-based methods, such as YOLOv5 and YOLOv7 [27], balance speed and accuracy but struggle with small, subtle defects under harsh industrial conditions like motion blur.To address these limitations, methods such as Feature Pyramid Networks (FPN) and attention-based mechanisms have been explored.FPN enhances multi-scale feature representation by integrating spatial and semantic information from different feature levels [28,29], while attention mechanisms recalibrate feature importance to improve detection precision [30].However, these approaches often rely on rigid structures or static attention designs, limiting their adaptability to irregular defect shapes and complex industrial scenarios.

11To address these challenges, our Enhanced YOLOv8 introduces the MAFE module and the BAWD loss function.MAFE combines SPD operations and DCN.SPD expands the receptive field by rearranging spatial information, improving the extraction of long-range dependencies critical for small-object detection.Meanwhile, DCN introduces adaptive sampling to focus on irregular object shapes, addressing the limitations of conventional pooling and attention mechanisms.BAWD further strengthens the model by incorporating blur-aware adjustments into bounding box regression, mitigating uncertainties from defocus blur and enhancing robustness.Together, these innovations enable superior accuracy and efficiency in detecting small defects under challenging industrial conditions.

Automotive Sealing Rings Defect Detection

12Defect detection in automotive sealing rings has been a critical area of research in quality control.Li et al. proposed a defect detection method based on the K-means clustering approach and particle swarm optimization [31].Their approach involves preprocessing seal images, utilizing the SURF algorithm for feature point extraction, and performing image segmentation.However, their method relies on traditional machine learning techniques, which may lack the adaptability and efficiency required for diverse defect types and high-volume production environments.Scholz et al. both explored 3D-based approaches for defect detection [8].They developed an automated optical inspection system based on sheet-of-light laser measurement, integrating a 3D data acquisition unit for rapid full-surface scanning of parts.Nevertheless, these approaches do not specifically address the challenges of real-time detection or the processing of high-volume production data.

13In contrast, the enhanced YOLOv8 model proposed in this paper has been specifically optimized to address the challenges in industrial environments.This method is not only capable of adapting to diverse defect types but also possesses real-time detection capabilities, effectively handling high-frequency data input.

IoU Loss

14In object detection, Intersection over Union (IoU) serves as a key metric for evaluating anchor box matching accuracy, with various enhancements proposed to improve its effectiveness [32].Variants like GIoU [33], EIoU [34], and SIoU [35] have been introduced to address specific limitations, such as handling non-overlapping bounding boxes or incorporating geometric considerations for better localization accuracy.While these advancements have improved object detection in many scenarios, they remain less effective for precise localization of small objects, often leading to positional offset errors that compromise performance in such cases [36].

15To optimize the YOLOv8 model, we introduced BAWD loss, built on the foundation of NWD Loss [37,38].NWD Loss models bounding boxes as Gaussian distributions, enabling a smooth and continuous distance metric.However, defocus blur in industrial images compromises this modeling by making object edges less distinct, leading to inaccuracies in estimating Gaussian parameters.BAWD loss mitigates this issue by incorporating blur awareness, dynamically adjusting covariance matrices based on blur levels.This refinement ensures more robust localization of small objects under blurred conditions, improving detection accuracy in challenging industrial environments.

Automotive Sealing Ring Defect Detection Process

16This paper presents a detection method composed of three parts, specifically designed for detecting surface defects in automotive sealing rings, as shown in Fig. 1. (2) Automotive Sealing Ring Defect Detector: Initially, images are checked for their sizes, and those not meeting the 640 × 640 pixel requirement are compressed.This physically enlarges the defects and reduces the negative sample information.The Enhanced YOLO network is then trained using COCO dataset weights.

17(3) Output: The defects are detected in the obtained image using Enhanced YOLO network and the detection results are obtained.

Enhanced YOLO

18This section proposes an improved model Enhanced YOLO based on the network structure of YOLOv8.The specific structure is shown in Fig. 2.This study introduces two major improvements to YOLOv8.Firstly, the MAFE module is incorporated into the network to establish long-range dependencies during feature extraction, offering stronger spatial aggregation capabilities compared to standard convolutional modules.Additionally, the MAFE module minimizes parameters while mitigating inherent limitations of stride and pooling operations.This enhancement improves the focus on low-resolution images and boosts the detection of small object defects.Secondly, the BAWD loss function is introduced, which measures the similarity of the bounding box's Gaussian distribution, enabling more accurate regression of predicted boxes.This modification further strengthens small object detection and boosts overall precision.

MAFE Module

19The MAFE module combines SPD and DCN to enhance feature extraction specifically for small and irregular defects.SPD rearranges spatial information into channel dimensions, effectively expanding the receptive field and enhancing focus on fine-grained details.This is particularly advantageous for small defects such as burrs and fractures.Meanwhile, DCN introduces learnable spatial offsets, allowing convolutions to dynamically adapt to irregular defect shapes and deformations.This adaptation ensures critical spatial information is preserved, overcoming limitations of conventional pooling methods.These mechanisms collectively enable the model to capture long-range dependencies and provide robust feature representations under complex industrial conditions.The structure of the MAFE module is shown in Fig. 3.The SPD operation rearranges the spatial information of the input feature map into the channel dimension.Assuming the input feature map is X ∈ R C×H×W , the SPD operation transforms it along the spatial dimensions, resulting in a new feature map X ′ ∈ R (C×s 2 )×(H/s)×(W/s) .The SPD can be expressed as:

20where

21Specifically, first SPD converts the feature image X(S, S, C 1 ) into intermediate feature image X ′ ( S scal e , S scal e , scal e 2 C 1 ).Then it is further converted into X ′ ( S scal e , S scal e , scal e 2 C 1 )→ X ′′ ( S scal e , S scal e , C 2 ) by non-strided convolution.An illustration of the scal e = 2 conversion process is given in Fig. 4. The SPD operation compresses spatial information into the channel dimension, expanding the receptive field, which is particularly effective for extracting long-range dependencies and features of small targets.

22DCN introduces learnable spatial offsets, making the sampling locations of convolution kernels more flexible.The conventional convolution is expressed as:

23where p c represents the location of the current pixel, and p k represents the sampling location of the standard convolution kernel.

24With the introduction of learnable offsets, DCN enables adaptive adjustment of convolution kernel sampling locations.The mathematical expression is:

25By introducing grouped convolution, spatial feature aggregation across multiple groups is achieved.The corresponding formula is:

26where G denotes the total number of groups, w g ∈ R C×C ′ denotes the weights of group g, indicating a position-independent projection.C ′ = C/G represents the channel dimension of each group.m gk ∈ R is the normalization factor obtained by applying the Softmax function along the k-th dimension.x g ∈ R C ′ ×H×W denotes the input feature map of group g, and Del tap gk represents the offset of the sampling point p k within group g.

27Finally, the feature map X ′ , after the SPD operation, is fed into the DCN:

BAWD Loss

28BAWD loss addresses the challenges posed by defocus blur in high-speed production environments by refining the covariance matrices in Gaussian modeling.Specifically, it adjusts the Gaussian parameters dynamically to reflect varying levels of blur, mitigating edge ambiguities that often compromise small-object localization.This approach ensures robust and precise regression by smoothing the Wasserstein distance calculations between predicted and ground-truth boxes.The effectiveness of BAWD in handling blurred scenarios has been validated through experiments, showing significant improvements over conventional losses like CIoU and NWD in detecting small and subtle defects.

29A rotating bounding box B = (x, y, w, h, θ), is represented as a two-dimensional Gaussian G (μ, Σ).The Wasserstein distance between two Gaussians G p = N (μ p , Σ p ) and G g = N (μ g , Σ g ) is given by:

30where ∥.∥ F is the Frobenius norm.

31The Gaussian distributions G p and G g are defined using bounding boxes A = (cx p , c y p , w p , h p ) and B = (cx g , c y g , w g , h g ), Eq.( 6) can be rewritten as:

32where cx a and c y a represent the center coordinates of the predicted box, w a and h a are box width and height; cx b , c y b , w b , h b corresponds to the ground truth box.

33The NWD loss is as follows:

34Incorporating the blur-aware weight w (B), the BAWD loss is formulated as:

35Here, G p represents the Gaussian model of the prediction, while G g corresponds to the ground truth.The term C s is a dataset-dependent constant.

Dataset

36The Enhanced YOLO object detection algorithm is validated on two datasets: 1) automotive sealing ring defect dataset constructed by us, and 2) the MS COCO2017 dataset.The performance on the automotive sealing ring dataset directly reflects the model's capability in the specific task of automotive sealing ring defect detection.Meanwhile, its performance on the COCO dataset demonstrates the model's generalization ability across diverse detection scenarios.

Automotive Sealing Ring Defect Dataset

37This study manually constructed a dataset containing four common defects: blowout, fracture, excess material and burr.The defective automotive sealing rings are from a real-world project conducted by Shanghai Inspect Spring Automation Technology Company.This dataset was created to apply deep learningbased object detection models to automotive sealing ring defect detection.Purposefully, we set up harsh conditions in the dataset to ensure the images closely resemble actual industrial environments.This includes simulating situations such as uneven lighting, noise interference, and image blurring to enhance the robustness required of the algorithm.With such a dataset setup, this study aims to provide a challenging evaluation platform for testing and improving the performance of the sealing ring defect detection algorithm.

38The automotive sealing ring defect dataset constructed by us consists of 4977 images, and the data acquisition equipment is shown in Fig. 5.The dataset includes four types of defects: blowout, fracture, excess material and burr.The quantity of each defect is shown in Fig. 6.To facilitate supervised learning, the dataset was split in an 8:1:1 ratio into a training set (4031 images), validation set (448 images), and test set (498 images).

MS COCO2017 Dataset

39The MS COCO2017 dataset, also called COCO2017, consists of 80 object categories, including humans, animals, vehicles, and household items.It is partitioned into 118,287 training images, 5000 validation images, and 40,670 test images, serving as a standard benchmark for evaluating object detection models and assessing their robustness.

Evaluation Metrics

40The performance of the model will be evaluated by a variety of metrics such as Precision, Recall, mAP@0.5, mAP@0.5:0.95,Params and FLOPs.

41Precision reflects the accuracy of the model in identifying positive samples, minimizing false positives.Recall represents the proportion of actual positives correctly predicted, with a high score indicating strong capability in detecting positive instances.The equations for Precision and Recall are as follows:

42TP indicates correctly classified positive samples, FP indicates misclassified positive samples, and FN indicates misclassified negative samples.mAP@0.5 focuses on the average accuracy of the model's predictions concerning the actual objects (Ground Truth) with a bounding box overlap of 0.5.This evaluation emphasizes the model's performance at relatively high intersection and overlap ratio thresholds.In contrast, mAP@0.5:0.95, which covers multiple intersection and merging ratio thresholds ranging from 0.5 to 0.95, comprehensively assesses the model across different conditions.The AP and mAP formulas are given below:

43where p (r) represents the accuracy for a given recall and k represents the number of categories.Normally, this study uses approximation or interpolation to calculate the AP value.

44Params denotes the model's trainable parameters, indicating the size of the model.FLOPs (Floating Point Operations) quantify the computational cost of model inference or training.Higher FLOPs indicate increased resource requirements.The equations of Params and FLOPs can be expressed as:

45where C in and C out represent the input and output feature map channels, respectively.K represents the convolution kernel size.H and W denote the output feature map's height and width, respectively.

Cross-Validation

46In order to avoid a single evaluation being affected by a specific data distribution, leading to unstable evaluation results, this study conducted five-fold cross-validation experiments on the automotive sealing ring dataset to more accurately assess the model's generalization ability.The results are shown in Table 1.The improved model proposed in this paper achieves 98.30%, 96.62%, 85.55% and 53.45% in precision, recall, mAP@0.5 and mAP@0.5:0.95.It is worth noting that the fluctuation range each metric is minimal in different cross-validation experiments, which validates that the automotive sealing ring dataset we constructed has an excellent and balanced data distribution.

Comparison with Other Methods

47To assess the detection performance of the proposed model, we conducted a comparative analysis with other lightweight models on the automotive sealing ring dataset.The comparison results from the crossvalidation experiment are shown in Table 2.While the Enhanced YOLO may not hold the edge in terms of inference speed and FLOPs, its performance in accuracy metrics stands out.Specifically, it achieves mAP@0.5 and mAP@0.5:0.95scores of 85.73% and 54.36%, respectively, indicating superior performance levels.In addition, the parameters of proposed model are 2.8 M in total, lower than other existing methods.This makes it suitable for embedded devices and reduces hardware strain.This experiment offers a valuable benchmark for the industrial community when determining the optimal model for defect detection in automotive sealing rings.

Validation Results on COCO2017 Dataset

48To assess our model's robustness, we compared it with mainstream object detection models using the COCO dataset.Detailed numerical results are presented in the Table 3.As depicted in Table 3, although EfficientDet-D0, NanoDet, and MobileDet are comparable to our model in terms of the amount of parameter computation, the Enhanced YOLO outperforms in accuracy.Moreover, while SpineNet-49s achieves similar accuracy, and Deformable DETR and Efficient DETR perform slightly better than ours, it is noteworthy that our model retains a significant advantage in both parameter count and computational complexity.The outstanding performance on the COCO dataset demonstrates the robust generalization capability of the Enhanced YOLO across diverse scenarios.

Ablation Experiments

49To assess the effect of each enhancement, we performed a detailed ablation study.The visualization process of the model training is shown in Fig. 7.The specific results are shown in Table 4.For each enhancement strategy, respective control groups were set up to evaluate its impact on model performance.Specifically, "+DCN", "+SPD", "+BAWDLoss" and "Ours" represent the introduction of the DCN module, the introduction of the SPD module, adding the BAWD loss function, and our proposed model, respectively.As shown in Table 4, adding the DCN module, the SPD module, or changing the loss function each enhances performance metrics like Recall, mAP@0.5, and mAP@0.5:0.95.Moreover, introducing both modules consistently and substantially improved the model compared to the enhancements achieved by introducing a single module.The performance of the improvements with both modules also steadily improves compared to that of separate modules.Ultimately, when all three modules were simultaneously introduced, the model achieved optimal performance.In conclusion, the ablation study facilitated a precise understanding of the contribution of each enhancement.It also provided clarity on how individual and collective integrations of the strategies influenced the model's performance, guiding future optimizations and decisions.The detection results and the heatmaps of the original model and the improved model are shown in Figs. 8 and 9, respectively.

Method

50Recall mAP@0.5 mAP@0.

Conclusion

51This paper proposes an improved model based on the state-of-the-art model YOLOv8 in order to solve the task of automotive sealing ring defect detection.The introduction of the MAFE module enhances the model's ability to capture long-range dependencies and aggregate spatial features, significantly improving its robustness in detecting defects under complex industrial conditions.Additionally, the incorporation of the BAWD loss enhances the model's precision in identifying small objects by more accurately modeling the bounding box similarity, especially in challenging scenarios with blurry or uncertain object boundaries.These improvements enable the model proposed in this paper to obtain significant performance enhancement while maintaining the characteristics of lightweight design and high-speed inference.It is worth mentioning that this paper achieves advanced accuracy performance on a specially constructed automotive sealing ring dataset.This approach significantly reduces the leakage and false detection rates, providing an excellent example for the field of automotive sealing ring defect detection and other rubber industrial products.

Figure 1 :

52Figure 1: Automotive sealing ring defect detection process

Figure 2 :

53Figure 2: Enhanced YOLO network structure

Figure 3 :

54Figure 3: MAFE module

Figure 4 :

55Figure 4: The process of SPD-Conv operation

Figure 5 :Figure 6 :

56Figure 5: The data acquisition system

Figure 7 :Table 4 :

57Figure 7: The model's performance variations with different improvements on the automotive sealing ring dataset.Different curves highlight changes in metrics like mAP and recall over epochs, evaluating the impact of each enhancement

Figure 8 :

58Figure 8: The detection results of the original model and the improved model

Figure 9 :

59Figure 9: The heatmaps of the original model and the improved model

Table 1 :

60Cross-validation results on automotive sealing ring dataset

Table 2 :

61Results of different lightweight models on the automotive sealing ring dataset

Table 3 :

62Comparison results with state-of-the-art models on the COCO dataset

참고문헌 21건

  1. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2016 10.1109/tpami.2016.2577031
  2. Fully-Automatic Surface Inspection of O-Ring Seals SAE technical papers on CD-ROM/SAE technical paper series · 2015 10.4271/2015-01-0596
  3. Deep Learning for Safe Autonomous Driving: Current Challenges and Future Directions IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.3032227
  4. Focal and efficient IOU loss for accurate bounding box regression Neurocomputing · Elsevier BV · 2022 10.1016/j.neucom.2022.07.042
  5. A Review of Vehicle Detection Techniques for Intelligent Vehicles IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tnnls.2021.3128968
  6. A Review of Yolo Algorithm Developments Procedia Computer Science · Elsevier BV · 2022 10.1016/j.procs.2022.01.135
  7. A Predictive Analysis of Electronic Control Unit System Defects Within Automotive Manufacturing Journal of Failure Analysis and Prevention · Springer Science+Business Media · 2022 10.1007/s11668-022-01401-0
  8. Investigation on the sealing performance of polymers at ultra high pressures International Polymer Processing · De Gruyter · 2022 10.1515/ipp-2022-4226
  9. An improved faster RCNN-based weld ultrasonic atlas defect detection method Measurement and Control · SAGE Publishing · 2022 10.1177/00202940221092030
  10. Wheel hub defect detection based on the DS-Cascade RCNN Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.112208
  11. Deep learning-based detection of aluminum casting defects and their types Engineering Applications of Artificial Intelligence · Elsevier BV · 2022 10.1016/j.engappai.2022.105636
  12. Deep Learning Based Online Nondestructive Defect Detection for Self-Piercing Riveted Joints in Automotive Body Manufacturing IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3226246
  13. Domain adaptation via Transferable Swin Transformer for tire defect detection Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.106109
  14. PCB defects target detection combining multi-scale and attention mechanism Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.106359
  15. A detection method of spangle defects on zinc-coated steel surfaces based on improved YOLO-v5 The International Journal of Advanced Manufacturing Technology · Springer Science+Business Media · 2023 10.1007/s00170-023-11963-4
  16. Wavelet-Guided Promotion-Suppression Transformer for Surface-Defect Detection IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2023 10.1109/tip.2023.3293770
  17. Fabric defect detection and classification via deep learning-based improved Mask RCNN Signal Image and Video Processing · Springer Science+Business Media · 2023 10.1007/s11760-023-02884-6
  18. YOLO-FDD: efficient defect detection network of aircraft skin fastener Signal Image and Video Processing · Springer Science+Business Media · 2024 10.1007/s11760-023-02983-4
  19. A shunted-swin transformer for surface defect detection in roller bearings Measurement · Elsevier BV · 2024 10.1016/j.measurement.2024.115283
  20. SDD-DETR: Surface Defect Detection for No-Service Aero-Engine Blades With Detection Transformer IEEE Transactions on Automation Science and Engineering · Institute of Electrical and Electronics Engineers · 2024 10.1109/tase.2024.3457829
  21. SSA-YOLO: An Improved YOLO for Hot-Rolled Strip Steel Surface Defect Detection IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2024 10.1109/tim.2024.3488136