Skip to content
Open access

Semantic segmentation and quantitative analysis of tunnel cracks and water leakage using a TransUNet framework

Aug 2026 · PLoS ONE · Vol 21, pp. e0349175 - e0349175 · 0 citations · 31 references
Medicine

Abstract

As a vital component of structural health monitoring, the detection of cracks and water leakage in tunnel linings is essential for ensuring structural durability and operational safety. However, due to complex site conditions, such as non-uniform illumination, surface texture interference, and the slender, blurred nature of defects, traditional manual inspections and threshold-based algorithms often fail to provide reliable damage identification. To address these challenges, this study proposes an end-to-end semantic segmentation framework based on TransUNet. By integrating the local feature extraction of convolutional neural networks (CNNs) with the global dependency modeling of Transformers, the framework significantly enhances the characterization of multi-scale defects and boundary features. A comprehensive dataset comprising public benchmarks and real-world engineering images was developed using a standardized preprocessing and validation pipeline. The proposed method was systematically evaluated against state-of-the-art models like U-Net and DeepLabv3 + . Experimental results demonstrate that the TransUNet framework achieves an IoU of 71.57% for crack segmentation and a Precision of 91.51% for water leakage. Crucially for engineering applications, the geometric error for length and area measurements is maintained within 5%, while the inference latency remains under 200 ms. In terms of precision, boundary preservation, and geometric consistency, the proposed method shows clear advantages over the comparison models, while U‑Net exhibits stronger region overlap for water leakage detection. Overall, the method meets the requirements of offline inspection and near-real-time applications. This data-driven approach provides a robust technical foundation for tunnel defect detection and subsequent maintenance decision-making.

Read PDF