LiteCrackSeg: A lightweight hybrid CNN–transformer for efficient crack segmentation

K Kaleb Amsalu Gobena M MD Youshuf Khan Rakib F Fiseha Berhanu Tesema G Galana Fekadu Asafa S Shengbing Ren

Abstract

Infrastructure cracks are critical indicators of structural deterioration in pavements, bridges, and buildings. Automated crack segmentation has therefore become an important component of structural health monitoring systems. However, accurate pixel-level crack segmentation on resource-constrained devices remains challenging due to the thin, low-contrast, and curvilinear morphology of cracks, as well as severe foreground–background class imbalance. To address these challenges, we propose LiteCrackSeg, a lightweight hybrid CNN–transformer architecture designed for efficient and accurate crack segmentation. The proposed framework adopts a hybrid MobileViT encoder that captures both local spatial details and long-range contextual dependencies while maintaining a compact model size. To enhance morphological sensitivity to elongated crack structures, we introduce a Morphology-Aware MobileViT (MAM-ViT) bottleneck, which integrates dual-branch Dynamic Snake Convolutions (DSConv) to align receptive fields with crack trajectories. Furthermore, a transformer-based decoder with local self-attention progressively reconstructs spatial details, while an attention-guided multi-scale fusion strategy improves boundary precision and structural continuity. To mitigate severe class imbalance, the model is trained using the Tversky loss, which explicitly balances false positives and false negatives. Extensive experiments on three public crack segmentation datasets (DeepCrack, CrackMap, and TUT) demonstrate that LiteCrackSeg achieves state-of-the-art segmentation performance while maintaining high computational efficiency. The proposed model requires only 2.72M parameters and 3.23 GFLOPs, achieving real-time inference at 56 FPS on 512 × 512 images, making it suitable for deployment on resource-constrained edge devices for practical infrastructure inspection.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 4
Published April 30, 2026
Pages e0347765
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (5)

K

Kaleb Amsalu Gobena

M

MD Youshuf Khan Rakib

F

Fiseha Berhanu Tesema

G

Galana Fekadu Asafa

S

Shengbing Ren