In order to address the issues of low accuracy and high missed detection rates in existing pavement crack detection algorithms, an improved pavement crack detection algorithm based on YOLOv8n, named YOLO-CD (YOLO-crack detection), has been proposed. The scale sequence feature fusion (SSFF) module and triple feature encoder (TFE) module from the ASF-YOLO architecture were utilized by the YOLO-CD algorithm to enhance the detection performance for multi-scale cracks and the perception capability of target features. Additionally, the coordinate attention(CA) mechanism was introduced at the end of the backbone network and in the neck network, with positional information embedded into channel attention, thereby strengthening the extraction capability of crack features. Furthermore, an additional P2 small object detection layer was added on top of the original three output layers of YOLOv8n, increasing the multi-scale receptive field of the network, allowing both global and local context information to be captured simultaneously, thereby improving the detection capability for small cracks in complex scenes. The original YOLOv8n detection head was replaced by the DyHead detection head, achieving the integration of scale, spatial, and task attention mechanisms, and further enhancing the network’s detection performance for cracks. Experimental results show that in the self-built PD-Dataset, the mAP50 of the improved YOLO-CD algorithm is increased by 4.1% compared to the original YOLOv8n algorithm. In the public dataset RDD2020, the mAP50 of the improved YOLO-CD algorithm is increased by 1.5% compared to the original YOLOv8n algorithm. Moreover, the algorithm’s detection speed is found to reach 89.9 frames/s, meeting the real-time requirements of pavement crack detection.
| 科 Family | 属数 Number of genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) | 属 Genus | 种数 Number of species | 占总种数比例 Percentage of total species (%) |
|---|---|---|---|---|---|---|
| 鹅膏菌科Amanitaceae | 2 | 11 | 5.26 | 鹅膏菌属 Amanita | 10 | 4.78 |
| 小菇科 Mycenaceae | 2 | 12 | 5.74 | 丝盖伞属 Inocybe | 5 | 2.39 |
| 多孔菌科 Polyporaceae | 8 | 14 | 6.70 | 蜡蘑属 Laccaria | 5 | 2.39 |
| 红菇科 Russulaceae | 3 | 23 | 11.00 | 小皮伞属 Marasmius | 6 | 2.87 |
| 小菇属 Mycena | 11 | 5.26 | ||||
| 光柄菇属 Pluteus | 5 | 2.39 | ||||
| 红菇属 Russula | 17 | 8.13 | ||||
| 栓菌属 Trametes | 5 | 2.39 |