Optics and Precision Engineering, Volume. 33, Issue 11, 1818(2025)

Online detection of plate weld defects incorporating triple attention mechanism

Lingyuan MENG1, Yingjun LI1,2、*, Guicong WANG1,2, Yuan LIU1, Jialong GAO1, and Peng XU1
Author Affiliations
  • 1School of Mechanical Engineering, University of Jinan, Jinan250022, China
  • 2Shandong Provincial Key Laboratory of Sensor Technology and High Precision Weighing Instruments, Jinan50004, China
  • show less

    Existing weld defect detection algorithms exhibit limitations such as inaccurate detection of small-scale defects, suboptimal real-time performance, and excessive parameter counts. To overcome these challenges, a novel online detection algorithm, termed YOLO-TR, has been developed for the identification of five prevalent weld defects: burnt-on, burn-through, slag entrapment, unfused joints, and misalignment. The YOLO-TR algorithm integrates a Triplet Attention mechanism within the YOLOv5 feature extraction network to enhance feature representation. The neck network employs a dynamic up-sampling (DySample) module, replacing the original up-sampling component of YOLOv5, thereby improving feature map resolution to satisfy high-precision inspection requirements. The incorporation of a distributed focus detection head (CLLAHead) augments robustness to scale variations while concurrently reducing the model’s parameter count. Furthermore, the original YOLOv5 loss function is substituted with the Shape-IoU loss function to enhance regression accuracy and accelerate convergence. The effectiveness of the proposed algorithm is validated through ablation and comparative experiments. Ablation results demonstrate that the YOLO-TR model achieves a precision of 92.5% (an increase of 3.6%), a recall of 88.8% (an increase of 2.1%), and an average precision (mAP@0.5) improvement of 0.8%, with only a 4.4% increase in parameter count. The proposed algorithm delivers high efficiency and accuracy in online weld defect detection, exhibiting strong robustness and generalization capabilities, thereby substantiating its efficacy in industrial defect detection applications.

    Keywords
    Tools

    Get Citation

    Copy Citation Text

    Lingyuan MENG, Yingjun LI, Guicong WANG, Yuan LIU, Jialong GAO, Peng XU. Online detection of plate weld defects incorporating triple attention mechanism[J]. Optics and Precision Engineering, 2025, 33(11): 1818

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category:

    Received: Apr. 23, 2025

    Accepted: --

    Published Online: Aug. 14, 2025

    The Author Email: Yingjun LI (me_liyj@ ujn.edu.cn)

    DOI:10.37188/OPE.20253311.1818

    Topics