Automated Detection and Segmentation of Cracks in Urban Underground Structures Based on YOLOv8-SAM2

With the expansion of urban underground space, the structural safety of underground infrastructure has become increasingly critical. The urban underground utility tunnel is a typical deeply buried lifeline project. Its internal environment is humid and confined, and the structure is subjected to long-term heavy loads and earth pressure. Under such conditions, micro-cracks readily propagate into leakage channels and eventually cause structural damage. However, the slender morphology, low contrast, and complex background of cracks make it difficult for traditional inspection methods and general-purpose models to achieve reliable identification and accurate segmentation. This study proposes a two-stage framework that combines YOLOv8 with SAM2 and incorporates a coordinate attention module for high-quality crack segmentation. For image processing, a topology-aware post-processing strategy is introduced, together with a scoring function based on crack morphological features and a post-processing constraint mechanism, to ensure crack continuity and geometric consistency and to mitigate the over-segmentation that may occur during segmentation. YOLOv8-SAM2 achieves 85.2%, 90.5%, 77.2%, and 71.6% in mIoU, mDice, Recall, and Precision, respectively. Compared with YOLOv8-seg, mIoU and Precision are improved by 46.3 and 17.2 percentage points, respectively; compared with the baseline SAM2, mIoU and Precision are improved by 23.0 and 16.9 percentage points, respectively. In summary, on the self-built underground utility tunnel crack dataset, the proposed model significantly outperforms standalone YOLOv8 segmentation and the direct application of SAM2 in terms of intersection-over-union and precision, demonstrating its high-quality segmentation capability.

Authors

Institutions

Publication Details

Journal
Buildings
Published
2026-08-12
DOI
https://doi.org/10.3390/buildings16163211
Primary Topic
Infrastructure Maintenance and Monitoring
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Automated Detection and Segmentation of Cracks in Urban Underground Structures Based on YOLOv8-SAM2

Xianfeng Shi, Botao Fu, Zhentao Li, Cheng Chen et al.
Buildings
Infrastructure Maintenance and Monitoring
article

Automated Detection and Segmentation of Cracks in Urban Underground Structures Based on YOLOv8-SAM2

Xianfeng Shi, Botao Fu, Zhentao Li, Cheng Chen, Yukai Wang, Yajie Wang, Quanming Li, Zhijie Duan, Chao Geng, Hong Zhang, Wei Li
article en

Abstract

With the expansion of urban underground space, the structural safety of underground infrastructure has become increasingly critical. The urban underground utility tunnel is a typical deeply buried lifeline project. Its internal environment is humid and confined, and the structure is subjected to long-term heavy loads and earth pressure. Under such conditions, micro-cracks readily propagate into leakage channels and eventually cause structural damage. However, the slender morphology, low contrast, and complex background of cracks make it difficult for traditional inspection methods and general-purpose models to achieve reliable identification and accurate segmentation. This study proposes a two-stage framework that combines YOLOv8 with SAM2 and incorporates a coordinate attention module for high-quality crack segmentation. For image processing, a topology-aware post-processing strategy is introduced, together with a scoring function based on crack morphological features and a post-processing constraint mechanism, to ensure crack continuity and geometric consistency and to mitigate the over-segmentation that may occur during segmentation. YOLOv8-SAM2 achieves 85.2%, 90.5%, 77.2%, and 71.6% in mIoU, mDice, Recall, and Precision, respectively. Compared with YOLOv8-seg, mIoU and Precision are improved by 46.3 and 17.2 percentage points, respectively; compared with the baseline SAM2, mIoU and Precision are improved by 23.0 and 16.9 percentage points, respectively. In summary, on the self-built underground utility tunnel crack dataset, the proposed model significantly outperforms standalone YOLOv8 segmentation and the direct application of SAM2 in terms of intersection-over-union and precision, demonstrating its high-quality segmentation capability.

BuildingsVol. 16(16)
Ministry of Public Security of the People's Republic of China (CN), North China University of Technology (CN), Institute of Disaster Prevention (CN), China Academy of Safety Sciences and Technology (CN), Data Assurance and Communication Security (CN), Langfang Normal University (CN)
North China University of Technology
Sustainable cities and communities
Openalex Percentile: Top 15%
Infrastructure Maintenance and Monitoring
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon