Instance Segmentation of Underground Roadway Fractures Based on an Improved YOLOv13n-Seg
Zhenyao Gao, Haiping Yang, Linfeng Zeng, Sihongren Shen, Dewei Zhang, Yunchen LiVisible fracture detection in underground roadways is challenging because fracture targets are often elongated, weakly contrasted, irregularly distributed, and easily confused with complex rock-wall textures. In addition, uneven illumination, dust interference, and blurred boundaries further reduce the reliability of conventional crack detection and segmentation methods. To improve fracture instance segmentation under such conditions, this study proposes YOLOv13n-seg-crack, an improved lightweight instance segmentation model based on a self-constructed YOLOv13n-seg baseline. The proposed model introduces three main improvements. First, a C2f-CA module is embedded into the backbone to enhance spatial-position perception and directional feature representation for elongated fractures. Second, a shallow high-resolution branch and auxiliary feature paths, denoted as B2 + H2 + P2, are constructed to strengthen the transmission of fine edge and texture information for small and discontinuous fracture targets. Third, an Edge-aware SIoU (EA-SIoU) loss is designed by adding edge-consistency and aspect-ratio constraints, thereby improving bounding-box localization for narrow and irregular fracture regions. Experiments were conducted on the public Crack Segmentation Dataset and an expanded self-built underground roadway dataset collected at the Woniushan Experimental Base. On the public dataset, YOLOv13n-seg-crack achieved detection Precision, Recall, mAP50, and mAP50:95 of 84.56%, 65.49%, 71.51%, and 52.72%, respectively, and mask Precision, Recall, mAP50, and mAP50:95 of 74.94%, 60.38%, 59.52%, and 21.99%, respectively. Compared with YOLOv13n-seg, the detection mAP50 and mask mAP50 increased by 1.91 and 3.19 percentage points, respectively, while the model maintained an inference speed of 168.73 FPS. Repeated-seed experiments, ablation studies, and degraded-image tests further demonstrate the stability and robustness of the proposed improvements. On the self-built underground roadway dataset containing 100 images and 118 annotated fracture instances, YOLOv13n-seg-crack improved detection mAP50 from 68.72% to 73.36% and mask mAP50 from 30.76% to 33.74%. These results indicate that the proposed method provides an effective and lightweight solution for visible fracture detection and instance segmentation in complex underground roadway scenes.