RCB-YOLOv5s:基于改进YOLOv5s算法的高速护栏安装立柱检测
RCB-YOLOv5s: Detection of Highway Guardrail Installation Poles Based on Improved YOLOv5s Algorithm
DOI: 10.12677/csa.2026.168281, PDF,   
作者: 田 哲, 阮久宏, 李国栋*:山东交通学院轨道交通学院,山东 济南
关键词: 目标识别YOLOv5高速立柱RepVGGCoTAttentionBiFPNObject Detection YOLOv5 Highway Pole RepVGG CoTAttention BiFPN
摘要: 随着高速公路里程的快速增长,高速公路立柱的自动化检测已成为智能交通基础设施安全巡检与维护的一项重要任务。然而,高速公路环境极为复杂,存在强烈的背景干扰以及目标尺度变化显著等问题,严重限制了传统检测算法的准确性。为应对这些关键的工程挑战,本文提出了一种基于YOLOv5的改进目标检测算法,这对于实现可靠、实时的高速公路基础设施监测具有重要意义。首先,在模型架构中集成了RepVGG模块,利用结构重参数化技术,在不降低推理速度的前提下,增强了对边缘和纹理特征的提取能力。其次,嵌入了上下文Transformer (CoTAttention)机制以抑制背景噪声,并采用双向特征金字塔网络(BiFPN)重构网络颈部(Neck),从而加强了针对远处小尺度目标的多尺度特征融合。在自建的高速公路立柱数据集上进行的大量实验验证了所提方法的优越性。与原始YOLOv5模型相比,改进算法的平均精度均值(mAP@0.5)提升了4.7%,精确率(Precision)和召回率(Recall)分别达到了88.4%和85.1%。综上所述,本研究成功实现了高检测精度与实时效率的有效平衡,为高速公路基础设施的智能巡检与安全预警系统提供了坚实的技术支撑与实际的工程应用价值。
Abstract: As the mileage of highways expands rapidly, the automated detection of highway poles has become a crucial task for the safety inspection and maintenance of intelligent transportation infrastructure. However, complex highway environments characterized by strong background interference and significant target scale variations severely limit the accuracy of conventional detection algorithms. To address these critical engineering challenges, this paper proposes an improved target detection algorithm based on YOLOv5, which is of great significance for achieving reliable and real-time highway infrastructure monitoring. First, the RepVGG block is integrated into the model architecture to enhance the extraction of edge and texture features without compromising inference speed through structural re-parameterization. Subsequently, the Contextual Transformer (CoTAttention) mechanism is embedded to suppress background noise, and a Bidirectional Feature Pyramid Network (BiFPN) is employed to reconstruct the network’s neck, thereby strengthening multi-scale feature fusion for distant small-scale targets. Extensive experiments conducted on a self-constructed highway pole dataset demonstrate the superiority of the proposed method. Compared with the original YOLOv5 model, the improved algorithm achieves a 4.7% increase in mean average precision (mAP@0.5), with precision and recall metrics reaching 88.4% and 85.1%, respectively. Consequently, this research successfully balances high detection accuracy with real-time efficiency, providing robust technical support and practical engineering value for intelligent inspection and safety early warning systems in highway infrastructure.
文章引用:田哲, 阮久宏, 李国栋. RCB-YOLOv5s:基于改进YOLOv5s算法的高速护栏安装立柱检测[J]. 计算机科学与应用, 2026, 16(8): 291-302. https://doi.org/10.12677/csa.2026.168281

参考文献

[1] Veres, M. and Moussa, M. (2019) Deep Learning for Intelligent Transportation Systems: A Survey of Emerging Trends. IEEE Transactions on Intelligent Transportation Systems, 21, 3152-3168.
https://doi.org/10.1109/tits.2019.2929020
[2] Spencer, B.F., Hoskere, V. and Narazaki, Y. (2019) Advances in Computer Vision-Based Civil Infrastructure Inspection and Monitoring. Engineering, 5, 199-222.
https://doi.org/10.1016/j.eng.2018.11.030
[3] Koch, C., Georgieva, K., Kasireddy, V., Akinci, B. and Fieguth, P. (2015) A Review on Computer Vision Based Defect Detection and Condition Assessment of Concrete and Asphalt Civil Infrastructure. Advanced Engineering Informatics, 29, 196-210.
https://doi.org/10.1016/j.aei.2015.01.008
[4] Redmon, J., Divvala, S., Girshick, R. and Farhadi, A. (2016) You Only Look Once: Unified, Real-Time Object Detection. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, 27-30 June 2016, 779-788.
https://doi.org/10.1109/cvpr.2016.91
[5] Bochkovskiy, A., Wang, C.Y. and Liao, H.Y.M. (2020) YOLOv4: Optimal Speed and Accuracy of Object Detection. arXiv:2004.10934.
[6] Zou, Z., Chen, K., Shi, Z., Guo, Y. and Ye, J. (2023) Object Detection in 20 Years: A Survey. Proceedings of the IEEE, 111, 257-276.
https://doi.org/10.1109/jproc.2023.3238524
[7] Howard, A.G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., et al. (2017) MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications. arXiv:1704.04861.
[8] Ma, N., Zhang, X., Zheng, H. and Sun, J. (2018) ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design. In: Ferrari, V., Hebert, M., Sminchisescu, C. and Weiss, Y., Eds., Lecture Notes in Computer Science, Springer International Publishing, 122-138.
https://doi.org/10.1007/978-3-030-01264-9_8
[9] Deng, B.L., Li, G., Han, S., Shi, L. and Xie, Y. (2020) Model Compression and Hardware Acceleration for Neural Networks: A Comprehensive Survey. Proceedings of the IEEE, 108, 485-532.
https://doi.org/10.1109/jproc.2020.2976475
[10] Hu, J., Shen, L. and Sun, G. (2018) Squeeze-and-Excitation Networks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, 18-23 June 2018, 7132-7141.
https://doi.org/10.1109/cvpr.2018.00745