计算机工程与应用 ›› 2026, Vol. 62 ›› Issue (8): 270-284.DOI: 10.3778/j.issn.1002-8331.2501-0226

• 图形图像处理 • 上一篇    下一篇

面向焊缝表面缺陷的双向星聚融合检测网络

徐成,单文桃+,张陈,陈泽明,杨汶睿,韩振华   

  1. 江苏理工学院 机械工程学院,江苏 常州 213001
    + 通信作者 E-mail:shanwentao520@163.com
  • 收稿日期:2025-01-14 修回日期:2025-04-24 在线发布日期:2026-04-15 出版日期:2026-04-15
  • 基金资助:
    国家自然科学基金(52005229);江苏省高校自然科学重大项目(19KJA510001)。

Bidirectional Star Fusion Detection Network for Weld Surface Defects

XU Cheng, SHAN Wentao+, ZHANG Chen, CHEN Zeming, YANG Wenrui, HAN Zhenhua   

  1. School of Mechanical Engineering, Jiangsu University of Technology, Changzhou, Jiangsu 213001, China
    + Corresponding author E-mail:shanwentao520@163.com
  • Received:2025-01-14 Revised:2025-04-24 Online:2026-04-15 Published:2026-04-15

摘要: 针对焊缝表面缺陷检测中的目标存在空间聚集分布、背景纹理复杂、特征显著性不足等挑战,以及传统模型在低信噪比环境下特征表征能力弱、计算冗余等问题,基于YOLOv8n设计星聚双向融合网络(LSBi-YOLO)。构建星聚融合网络(SANet),利用三阶异构卷积融合策略保留关键特征;开发方向增强型空间金字塔池化模块(OS-SPPF),通过线性纹理特征权重优化提升多类缺陷辨识度;进而设计自适应双向多尺度融合网络(ABiMFN),建立跨层级双向交互机制以强化缺陷特征表达并抑制背景噪声;提出融合双重聚焦机制的(PIoU)损失函数,通过抑制冗余检测框有效提升模型收敛速度。实验结果表明,LSBi-YOLO模型在焊缝缺陷检测任务中综合性能显著提升,相较于基线模型,其测试集准确率、召回率和mAP@0.5分别提高3.6、4.6和3.2个百分点,模型参数量减少0.39×106,检测速度达到108.3?FPS;在嵌入式设备上的检测速度为59.2?FPS,平均精度为86.3%,结果证明整体性能优于当前主流焊缝缺陷检测算法。

关键词: 缺陷检测, YOLOv8n, 星型操作, 注意力机制, 加权特征金字塔, 损失函数

Abstract: To address the challenges in weld seam surface defect detection, including spatially aggregated target distributions, complex background textures, and insufficient feature saliency, as well as the weak feature representation and computational redundancy of traditional models in low signal-to-noise ratio environments, this paper proposes a lightweight bidirectional fusion network (LSBi-YOLO) based on the YOLOv8n architecture. Firstly, the star convergence fusion network (SANet) is constructed, and its key features are preserved through a third-order heterogeneous convolution fusion strategy. Secondly, an orientation-enhanced spatial pyramid pooling module (OS-SPPF) is developed to optimize the weight distribution of linear texture features, thereby improving the recognition accuracy of multiple types of defects. Furthermore, an adaptive bidirectional multi-scale fusion network (ABiMFN) is designed to establish a cross-level bidirectional interaction mechanism, enhancing defect feature expression while suppressing background noise. Finally, a dual-focusing PIoU loss function is introduced to suppress redundant detection boxes, thereby accelerating model convergence. The experimental results demonstrate that the LSBi-YOLO model achieves a significant enhancement in comprehensive performance for weld defect detection. Compared with the baseline model, the test set accuracy, recall rate, and mAP@0.5 are improved by 3.6, 4.6, and 3.2 percentage points, respectively. Additionally, the model reduces the number of parameters by 0.39×106 while achieving a detection speed of 108.3?FPS. The embedded device achieves a detection speed of 59.2?FPS with an average accuracy of 86.3%. These results demonstrate that the overall performance surpasses that of the current mainstream weld defect detection algorithms.

Key words: defect detection, YOLOv8n, star operation, attention mechanism, weighted feature pyramid, loss function