Abstract:In view of variable defect scales and complex background interference in road scenes, which lead to low detection accuracy and large computational complexity, a deformable convolution algorithm for road surface defect detection has thus been proposed based on YOLOv8n. Firstly, a deformable convolutional DCNv4 module is introduced to construct a C2f_DCNv4 module, replacing the C2f module in the original algorithm, which can more effectively handle deformation and dynamic changes in images to adapt to the wide range distribution and slender characteristics of cracks. Secondly, a hierarchical feature pyramid HS-FPN (High Level Screening Feature Fusion Pyramid) is designed in the neck network to capture more comprehensive crack feature information. Finally, the self attention detection head (Detect_SA) operator is used to improve the head of the model, thus achieving feature extraction while maintaining memory efficiency. The experimental results on the open-source road damage datasets RDD2022 and UAV-PDD 2023 demonstrate the average detection accuracy of the proposed method mAP@50. Compared with the original algorithm, it has increased by 6.5% and 5.0%, with 86.3% and 61.1% respectively, reducing parameter and computational complexity by 42.86% and 28.40%, respectively.