IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0347336.html

YOLO-BP for detection of multi-scale and high intra-class variation electrode cap defects in resistance spot welding

Author

Listed:
  • Xiaomin Zhao
  • Siow Hoo Leong
  • Beng Yong Lee
  • Sofianita Mutalib
  • Bangchao Qiu
  • Meng Lyu
  • Zhijun Zuo

Abstract

Inspection of electrode cap surface conditions is crucial in resistance spot welding. Current solutions largely rely on manual inspection or sensor-based approaches, with limited exploration into vision-based approaches. This paper proposes a vision-based defect detection framework, YOLO-BP, for inspecting electrode cap tip surface defects, particularly the black burn mark defects that exhibit high variability in appearance. The key contribution is the incorporation of a new attention mechanism, BiLevel Spatial Selective Attention (BSSA), which synergistically integrates hierarchical and selective attentions within the YOLOv13 architecture. The hierarchical attention utilizes BiLevel Spatial Attention Module (BSAM) to strengthen extraction of global defect geometry when defects are spatially spread, and local defect irregularities when defects are small or dispersed. Meanwhile, the selective attention employs Partial Convolution (PConv) module to selectively detect defect-sensitive regions. To facilitate evaluation of defect detection, a new annotated Electrode Cap Tip Surface Defect (ECTSD) Dataset containing diverse electrode cap tip surface defects is constructed. The results show that YOLO-BP, achieves 66.5% mAP@0.5 and 31.3% mAP@0.5-0.95, corresponding to improvement of 2.9% and 2.1% respectively over the YOLOv13 baseline, along with gains of 1.7% in recall and 1.1% in F1-Score are observed, while maintains efficient inference time of 0.8 ms. Compared with YOLOv13 integrated with the Convolutional Block Attention Module (CBAM), YOLO-BP demonstrates a clear advantage in detecting the diverse defects, achieving 4.5% higher in mAP@0.5 and 8% higher in mAP@0.5-0.95. Furthermore, it attains the highest F1-Score of 67.7% when benchmarked against YOLOv5 through YOLOv12. The superiority of entire defect detection indicating the effectiveness of YOLO-BP in minimizing false negatives, underscoring its practical application in industrial inspection for defects.

Suggested Citation

  • Xiaomin Zhao & Siow Hoo Leong & Beng Yong Lee & Sofianita Mutalib & Bangchao Qiu & Meng Lyu & Zhijun Zuo, 2026. "YOLO-BP for detection of multi-scale and high intra-class variation electrode cap defects in resistance spot welding," PLOS ONE, Public Library of Science, vol. 21(4), pages 1-22, April.
  • Handle: RePEc:plo:pone00:0347336
    DOI: 10.1371/journal.pone.0347336
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0347336
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0347336&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0347336?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0347336. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.