[Paper Review] A Convolutional-Transformer Network for Crack Segmentation with Boundary Awareness
This paper proposes a lightweight convolutional-transformer network for crack segmentation that combines a Dilated Residual Block (DRB) for local detail capture and a Boundary Awareness Module (BAM) to enhance edge detection, integrated with a MobileViT-based encoder for global context. The method achieves state-of-the-art performance on Crack500 and DeepCrack datasets, with an F1-score of 73.3% and 88.3%, respectively, while maintaining low parameter count (22.88M).
Cracks play a crucial role in assessing the safety and durability of manufactured buildings. However, the long and sharp topological features and complex background of cracks make the task of crack segmentation extremely challenging. In this paper, we propose a novel convolutional-transformer network based on encoder-decoder architecture to solve this challenge. Particularly, we designed a Dilated Residual Block (DRB) and a Boundary Awareness Module (BAM). The DRB pays attention to the local detail of cracks and adjusts the feature dimension for other blocks as needed. And the BAM learns the boundary features from the dilated crack label. Furthermore, the DRB is combined with a lightweight transformer that captures global information to serve as an effective encoder. Experimental results show that the proposed network performs better than state-of-the-art algorithms on two typical datasets. Datasets, code, and trained models are available for research at https://github.com/HqiTao/CT-crackseg.
Motivation & Objective
- Address the challenge of segmenting long, narrow cracks with complex backgrounds and sharp boundaries in civil infrastructure images.
- Improve crack segmentation accuracy by combining local receptive field enhancement with global context modeling in a parameter-efficient architecture.
- Design specialized modules—DRB and BAM—that focus on fine-grained crack features and boundary delineation, respectively.
- Balance model efficiency and performance to enable deployment on resource-constrained devices like drones and mobile phones.
- Provide open-source code, datasets, and trained models to support reproducibility and further research in crack segmentation.
Proposed method
- Proposes a U-Net-based encoder-decoder architecture integrating a Dilated Residual Block (DRB) that uses hybrid dilated convolutions (rates 1, 2, 5) to expand receptive field without holes.
- Introduces a Boundary Awareness Module (BAM) that learns boundary features from dilated crack labels to improve segmentation precision at crack edges.
- Employs a lightweight MobileViT block as the global encoder to capture long-range dependencies with minimal parameter increase.
- Uses dense upsampling convolution (DUC) in the decoder to preserve fine details lost in bilinear upsampling.
- Applies squeeze-and-excitation (SE) blocks in DRB to recalibrate channel-wise feature importance and residual connections to stabilize training.
- Trains the model using Adam optimizer with data augmentation (flipping, rotation, color jitter) and patch-based inference for large image processing.
Experimental results
Research questions
- RQ1Can a hybrid convolutional-transformer architecture improve crack segmentation accuracy by jointly modeling local and global features?
- RQ2How effective is a Boundary Awareness Module (BAM) in enhancing segmentation performance at crack boundaries compared to standard convolutional modules?
- RQ3To what extent does a lightweight MobileViT block improve global context modeling while maintaining low parameter count?
- RQ4Does the integration of DRB and BAM lead to measurable improvements in precision, recall, and F1-score on benchmark crack segmentation datasets?
- RQ5Can the proposed model achieve state-of-the-art performance while remaining efficient enough for deployment on mobile and edge devices?
Key findings
- The proposed method achieves an F1-score of 73.3% on the Crack500 dataset, outperforming U-Net (66.1%), Deepcrack (65.1%), and TransUNet (64.7%) by 7.2%, 8.2%, and 8.6 percentage points, respectively.
- On the DeepCrack dataset, the method achieves an F1-score of 88.3%, surpassing U-Net (83.0%), Deepcrack (86.5%), and TransUNet (83.7%) by 5.3%, 1.8%, and 4.6 percentage points.
- The Boundary Awareness Module (BAM) improves recall by 2.5% over the baseline with only 0.01M additional parameters, demonstrating its efficiency in boundary detection.
- The addition of the MobileViT block (v2) increases F1-score by 1.6 percentage points over the DRB-only variant (v1), with only 5.19M additional parameters.
- The full model (v3) achieves the highest precision (89.8%) and recall (86.9%) on DeepCrack, confirming the synergistic effect of DRB, BAM, and MobileViT.
- The model maintains a relatively low parameter count of 22.88M, significantly lower than TransUNet (101.19M), making it suitable for edge deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.