计算机工程与应用 ›› 2025, Vol. 61 ›› Issue (19): 249-259.DOI: 10.3778/j.issn.1002-8331.2406-0288

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

结合局部强化和改进YOLOv8的隧道螺栓锈蚀检测

武晓春,李鲁豫   

  1. 兰州交通大学 自动化与电气工程学院,兰州 730070
  • 出版日期:2025-10-01 发布日期:2025-09-30

Tunnel Bolt Rust Detection Combining Local Enhancement and Improvement of YOLOv8

WU Xiaochun, LI Luyu   

  1. School of Automation and Electrical Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
  • Online:2025-10-01 Published:2025-09-30

摘要: 针对地铁隧道检修环境光线不足,不可避免地导致人工检修螺栓准确率低、漏诊率高的问题,提出了基于局部强化(local enhancement algorithm,LEA)和改进YOLOv8的隧道螺栓锈蚀检测模型(YOLOv8s+LEA+MSSf+FL,YOLO-LMF),将人工检修变为智能检测,提高检修效率。使用带有邻域检查(neighbor check)的局部强化算法增强螺栓锈蚀部位,使模型更好识别锈蚀特征。提出多尺度通道组混排卷积(multi-scale channel group shuffle convolution,MSCGSC),将MSCGSC融入YOLOv8的C2f(cross stage partial network fusion)模块中,得到新的模块MSSf(multi-scale shuffle fusion),使模型更好地学习锈蚀螺栓与色斑在螺栓附近时的不同的表现,提高模型检测精度。考虑到锈蚀螺栓中困难样本限制了模型检测的精度且螺栓样本不平衡的问题,引入了焦点损失函数(focal loss,FL),降低数量庞大的样本在训练中所占的权重,使模型集中对分类困难样本的学习。实验结果表明:所提出的模型相较于原模型分别增长了0.032、0.05、0.011和0.003,参数量减少了10.4%。模型在地铁隧道螺栓数据集上具有更好的表现,能够为地铁隧道维护作业研发检测机器人提供参考,减少隧道养护工人工作量,提高工作效率。

关键词: 隧道螺栓, 局部强化, YOLOv8, 多尺度通道组混排卷积, 焦点损失

Abstract: A tunnel bolt corrosion detection model based on local enhancement algorithm (LEA) and improved YOLOv8(YOLOv8s+LEA+MSSf+FL, YOLO-LMF) is proposed to address the problem of low accuracy and high missed diagnosis rate of manual bolt inspection due to insufficient lighting in the maintenance environment of subway tunnels, transforming manual maintenance into intelligent detection to improve maintenance efficiency. Firstly, a local enhancement algorithm with neighbor check is used to enhance the bolt corrosion location, enabling the model to better identify corrosion features. Secondly, multi-scale channel group shuffle convolution (MSCGSC) is proposed. Integrating MSCGSC into the C2f (cross stage partial network fusion) module of YOLOv8, a new module MSSf (multi-scale shuffle fusion) is obtained, which enables the model to better learn the different behaviors of corroded bolts and stains near the bolts, and improve the detection accuracy of the model. Finally, considering the limitation of difficult samples in corroded bolts on the accuracy of model detection and the problem of imbalanced bolt samples, focal loss (FL) is introduced to reduce the weight of a large number of samples in training, allowing the model to concentrate on learning difficult samples for classification. The results show that the proposed model has increased by 0.032, 0.05, 0.011, and 0.003 respectively compared to the original model, and the number of parameters has decreased by 10.4%. The model performs better on the bolt dataset of subway tunnels, providing reference for the development of inspection robots for subway tunnel maintenance operations, reducing the workload of tunnel maintenance workers, and improving work efficiency.

Key words: tunnel bolts, local enhancement, YOLOv8, multi-scale channel group shuffle convolution (MSCGSC), focal loss