A Semi-Supervised Sparsity-Aware Loss Function for Crack Segmentation

Detecting and identifying cracks is critical for infrastructure health monitoring. In surface images, cracks often appear as thin structures with background-like intensity due to low contrast and noise from road elements. Although deep learning has greatly advanced image segmentation techniques, pixel-level loss functions are insufficient for maintaining the connection and topology of thin curvilinear structures such as cracks, which causes sparsity. In this paper, a semi-supervised sparsity-aware loss function for crack segmentation is proposed to address this problem, which incorporates an unsupervised sparsity-aware loss with supervised losses ${\mathcal{L}_{{\text{BCE}}}}{\text{ and }}{\mathcal{L}_{{\text{Dice}}}}$. First, we propose an unsupervised Sparsity-Aware loss function, ${\mathcal{L}_{{\text{SA}}}}$ to penalize the model's intention to create more regions. Then, we combine the ${\mathcal{L}_{{\text{BCE}}}}{\text{ with }}{\mathcal{L}_{{\text{SA}}}}$ to reduce fragmented segmentation. Eventually, in order to resolve the imbalance in pixel-level crack segmentation, we integrate it with ${\mathcal{L}_{{\text{Dice}}}}$ to obtain the proposed Semi-Supervised Sparsity-Aware loss ${\mathcal{L}_{{\text{SSSA}}}}$. We demonstrate the proposed method with crack segmentation models on three public datasets: Crack500, DeepCrack, and Gaps384. Compared to the most widely used ${\mathcal{L}_{{\text{BCE - Dice}}}}$ loss in public datasets, our proposed ${\mathcal{L}_{{\text{SSSA}}}}$ improved recall, F<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">1</inf>-score, and IoU by as much as 4.1%, 2.2%, and 3.2%, respectively.

Authors

Institutions

Publication Details

Published
2025-08-14
DOI
https://doi.org/10.1109/mapr67746.2025.11133807
Primary Topic
Infrastructure Maintenance and Monitoring
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Semi-Supervised Sparsity-Aware Loss Function for Crack Segmentation

Tran Hiep Dinh, Tuan Ngo
Infrastructure Maintenance and Monitoring
article

A Semi-Supervised Sparsity-Aware Loss Function for Crack Segmentation

Tran Hiep Dinh, Tuan Ngo
article en

Abstract

Detecting and identifying cracks is critical for infrastructure health monitoring. In surface images, cracks often appear as thin structures with background-like intensity due to low contrast and noise from road elements. Although deep learning has greatly advanced image segmentation techniques, pixel-level loss functions are insufficient for maintaining the connection and topology of thin curvilinear structures such as cracks, which causes sparsity. In this paper, a semi-supervised sparsity-aware loss function for crack segmentation is proposed to address this problem, which incorporates an unsupervised sparsity-aware loss with supervised losses ${\mathcal{L}_{{\text{BCE}}}}{\text{ and }}{\mathcal{L}_{{\text{Dice}}}}$. First, we propose an unsupervised Sparsity-Aware loss function, ${\mathcal{L}_{{\text{SA}}}}$ to penalize the model's intention to create more regions. Then, we combine the ${\mathcal{L}_{{\text{BCE}}}}{\text{ with }}{\mathcal{L}_{{\text{SA}}}}$ to reduce fragmented segmentation. Eventually, in order to resolve the imbalance in pixel-level crack segmentation, we integrate it with ${\mathcal{L}_{{\text{Dice}}}}$ to obtain the proposed Semi-Supervised Sparsity-Aware loss ${\mathcal{L}_{{\text{SSSA}}}}$. We demonstrate the proposed method with crack segmentation models on three public datasets: Crack500, DeepCrack, and Gaps384. Compared to the most widely used ${\mathcal{L}_{{\text{BCE - Dice}}}}$ loss in public datasets, our proposed ${\mathcal{L}_{{\text{SSSA}}}}$ improved recall, F<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">1</inf>-score, and IoU by as much as 4.1%, 2.2%, and 3.2%, respectively.

VNU University of Science (VN), Hanoi University of Science and Technology (VN)
Openalex Percentile: Top 76%
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.