计算机科学 ›› 2025, Vol. 52 ›› Issue (12): 175-188.doi: 10.11896/jsjkx.241200214
胡鹏, 夏晓华, 钟预全
HU Peng, XIA Xiaohua, ZHONG Yuquan
摘要: 针对基于深度学习的路面裂缝检测模型在嵌入式平台部署应用中存在模型复杂、处理速度慢等问题,基于YOLO提出一种面向嵌入式应用的路面裂缝检测方法。首先,在主干网络中构建两级串联卷积模块,优化卷积通道和输入空间的特征感知,并使用考虑预测框与真实框间向量角度的平滑交并比SIoU作为网络的损失函数,提高预测框回归的准确率和速率。其次,提出联级通道逐卷积剪枝的方法,先后进行通道剪枝和权重剪枝,移除非必要通道并逐卷积去除冗余权重,在保证模型性能稳定的同时显著压缩模型。接着,将YOLOv5l模型对裂缝特征的泛化能力蒸馏到剪枝后模型中,进一步提高模型对裂缝的表征能力。最后,在TensorRT引擎下,通过层优化等方式提高模型推理速度。实验结果表明,提出的方法与原模型相比,平均精度均值提高2.7%,模型参数量、模型体积分别减小78.24%和76.13%,检测速率提高587.88%;模型经TensorRT部署在NVIDIA Jetson Nano嵌入式设备上进行测试,在检测精度不受影响的同时,检测速率提高140%,与YOLOv5-Lite等常用模型及YOLOv10,RT-DERT等最新模型相比,具有最高检测精度以及最显著的轻量化效果,适合在嵌入式端应用。
中图分类号:
| [1]WANG R,QI T Y.Research on crack features based on machine vision detection[J].China Civil Engineering Journal,2016,49(7):123-128. [2]ZHANG K,CHEN D F,GAO M X,et al.Edge recognitionmethod for structural cracks in urban railway tunnels under supervised learning[J].China Mechanical Engineering,2021,32(4):446-453. [3]KANG D,BENIPAL S S,GOPAL D L,et al.Hybrid pixel-level concrete crack segmentation and quantification across complex backgrounds using deep learning[J].Automation in Construction,2020,118:103291. [4]ZHU J Q,ZHONG J T,MA T,et al.Pavement distress detection using convolutional neural networks with images captured via UAV[J].Automation in Construction,2022,133:103991. [5]LUO H,JIA C,LI J.Highway pavement disease detection algorithm based on improved YOLOv4[J].Laser & Optoelectronics Progress,2021,58(14):336-344. [6]HU H,LI Z,HE Z,et al.Road surface crack detection methodbased on improved YOLOv5 and vehicle-mounted images[J].Measurement,2024,229:114443. [7]SHUVO M M H,ISLAM S K,CHENG J,et al.Efficient acce-leration of deep learning inference on resource-constrained edge devices:a review[J].Proceedings of the IEEE,2022,111(1):123-156. [8]CHEN J,LIU Y,HOU J.A lightweight deep learning network based on knowledge distillation for applications of efficient crack segmentation on embedded devices[J].Structural Health Monitoring,2023,22(5):3027-3046. [9]WU C G,YE M,ZHANG J L,et al.YOLO-LWNet:A lightweight road damage object detection network for mobile terminal devices[J].Sensors,2023,23(6):3268. [10]HAO J M,YANG J Y,HAN S M,et al.YOLOv4 highway pavement crack detection method with the introduction of Ghost module and ECA[J].Journal of Computer Applications,2023,43(4):1284-1290. [11]GENG H T,LIU Z Y,JIANG J,et al.Embedded road crack detection algorithm based on improved YOLOv8[J].Journal of Computer Applications,2024,44(5):1613-1618. [12]LI P C,SUN L S,XIE Z W,et al.Road crack image detection algorithm based on improved MobileNet-SSD[J].Laser Journal,2022,43(7):123-127. [13]ZHENG Y H,LIN X C,WU F,et al.A lightweight tobaccostem recognition method based on improved YOLOv4[J].Journal of Hefei University of Technology(Natural Science),2023,46(9):1196-1202,1253. [14]GUO F,SUN X D,ZHU Q B,et al.Low resolution ceramic substrate image defect detection based on knowledge dis-tillation[J].Optics and Precision Engineering,2023,31(20):3065-3076. [15]HINTON G,VINYALS O,DEAN J.Distilling the knowledge in a neural network[J].arXiv:1503.02531,2015. [16]ZHANG L,MA K.Improve object detection with feature-based knowledge distillation:towards accurate and efficient detectors[C]//International Conference on Learning Representations.Addis Ababa,Ethiopia:OpenReview,2020. [17]CHU J H,SHI L D,JING P G,et al.Context aware knowledge distillation network for object detection[J].Journal of Zhejiang University(Engineering Science),2022,56(3):503-509. [18]CHO J H,HARIHARAN B.On the efficacy of knowledge distillation[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.IEEE,2019:4794-4802. [19]ARASH A.AerialCrackDetection[EB/OL].http://github.com/arasharchor/AerialCrackDetection_Keras. [20]REZATOFIGHI H,TSOI N,GWAK J Y,et al.Generalized intersection over union:A metric and a loss for bounding box regression[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.IEEE,2019:658-666. [21]ZHENG Z,WANG P,REN D,et al.Enhancing geometric factors in model learning and inference for object detection and instance segmentation[J].IEEETransactions on Cybernetics,2021,52(8):8574-8586. [22]YANG Z,WANG X,LI J.EIoU:an improved vehicle detection algorithm based on vehiclenet neural network[C]//Journal of physics:Conference series.IOP Publishing,2021. [23]GEVORGYAN Z.SIoU loss:More powerful learning for bounding box regression[J].arXiv:2205.12740,2022. [24]TONG Z,CHEN Y,XU Z,et al.Wise-IoU:bounding box re-gression loss with dynamic focusing mechanism[J].arXiv:2301.10051,2023. [25]MA S,XU Y.Mpdiou:a loss for efficient and accurate bounding box regression[J].arXiv:2307.07662,2023. [26]LIU C,WANG K,LI Q,et al.Powerful-IoU:More straightforward and faster bounding box regression loss with a nonmonotonic focusing mechanism[J].Neural Networks,2024,170:276-284. [27]GUO L,LI R,JIANG B.A road surface damage detection method using Yolov4 with pid optimizer[J].International Journal of Innovative Computing,Information and Control,2021,17(5):1763-1774. [28]SHIHAB U L M A,APSAAN M,AHAMED M H F,et al.An adaptive YOLO model for detection of faulty insulators in power transmission network using unmanned aerial vehicle[C]//2023 Moratuwa Engineering Research Conference(MERCon).IEEE,2023:282-287. [29]CHEN X,GONG Z.Yolov5-lite:lighter,faster and easier to deploy[EB/OL].https://github.com/superrichiesui/YOLOv5-Lite. [30]GE Z,LIU S,WANG F,et al.YOLOX:exceeding YOLO series in 2021[J].arXiv:2107.08430,2021. [31]DUAN J,BAI T,LV B,et al.Lightweight detection of fasteners with YOLOv8 combined with ShuffleNetV2[C]//International Conference on Electrical and Information Technologies for Rail Transportation.Springer,2023:480-489. [32]HUANG M,CAI Z.Steel surface defect detection based on improved YOLOv8[C]//International Conference on Algorithms,High Performance Computing,and Artificial Intelligence(AHPCAI 2023).IEEE,2023:1356-1360. [33]WANG A,CHEN H,LIU L,et al.YOLOv10:Real-Time End-to-End object detection[J].arXiv:2405.14458,2024. [34]LI M,WU J,WANG X,et al.Aligndet:aligning pre-training and fine-tuning in object detection[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.IEEE,2023:6866-6876. [35]DU Z,HU Z,ZHAO G,et al.Cross-Layer feature pyramidtransformer for small object detection in aerial images[J].ar-Xiv:2407.19696,2024. [36]ZHAO Y,LV W,XU S,et al.Detrs beat yolos on real-time object detection[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.IEEE,2024:16965-16974. |
|
||