CrossDiff: Diffusion Probabilistic Model With Cross-conditional Encoder-Decoder for Crack Segmentation
Xianglong Shi, Yunhan Jiang, Xiaoheng Jiang, Mingling Xu, Yang Liu
TL;DR
CrossDiff tackles the challenging problem of slender crack segmentation in industrial concrete by marrying diffusion probabilistic modeling with a cross-conditional encoder-decoder. The approach introduces a cross-shaped diffusion architecture that leverages a ViT-based Cross Encoder and a six-layer Cross Decoder, connected through a Fusion Nexus to condition the diffusion process on image priors while preserving fine crack details and semantic features. Empirical results across five crack datasets show sizable improvements (around 8 percentage points in IoU and Dice) over prior methods, with ablations confirming the contributions of both the Cross Encoder and Cross Decoder. This diffusion-based, cross-conditioned framework promises more robust and accurate crack delineation and offers a valuable direction for practical maintenance and automated inspection workflows.
Abstract
Crack Segmentation in industrial concrete surfaces is a challenging task because cracks usually exhibit intricate morphology with slender appearances. Traditional segmentation methods often struggle to accurately locate such cracks, leading to inefficiencies in maintenance and repair processes. In this paper, we propose a novel diffusion-based model with a cross-conditional encoder-decoder, named CrossDiff, which is the first to introduce the diffusion probabilistic model for the crack segmentation task. Specifically, CrossDiff integrates a cross-encoder and a cross-decoder into the diffusion model to constitute a cross-shaped diffusion model structure. The cross-encoder enhances the ability to retain crack details and the cross-decoder helps extract the semantic features of cracks. As a result, CrossDiff can better handle slender cracks. Extensive experiments were conducted on five challenging crack datasets including CFD, CrackTree200, DeepCrack, GAPs384, and Rissbilder. The results demonstrate that the proposed CrossDiff model achieves impressive performance, outperforming other state-of-the-art methods by 8.0% in terms of both Dice score and IoU. The code will be open-source soon.
