Contour Flow Constraint: Preserving Global Shape Similarity for Deep Learning based Image Segmentation
Shengzhe Chen, Zhaoxuan Dong, Jun Liu
TL;DR
This paper addresses the challenge of preserving global shape similarity in deep image segmentation by introducing a contour flow constraint that links segmentation contours to ground-truth contours. It establishes a mathematical framework where global shape similarity is equivalent to an orthogonality condition between the segmentation gradient and a ground-truth contour flow, and provides two practical implementations: a shape loss that can be added to any segmentation network and an unrolled variational model that yields the CFSSnet architecture. The approach yields consistent improvements in boundary-related metrics (BD, BDSD) and robustness to noise across diverse medical imaging datasets, while also enabling a 3D extension via a 3D contour-flow term. The CFSSnet demonstrates how unrolled optimization can embed principled shape priors into network architectures, offering a principled, architecture-agnostic path to better shape-preserving segmentation with potential for multi-class extensions and topology-aware enhancements.
Abstract
For effective image segmentation, it is crucial to employ constraints informed by prior knowledge about the characteristics of the areas to be segmented to yield favorable segmentation outcomes. However, the existing methods have primarily focused on priors of specific properties or shapes, lacking consideration of the general global shape similarity from a Contour Flow (CF) perspective. Furthermore, naturally integrating this contour flow prior image segmentation model into the activation functions of deep convolutional networks through mathematical methods is currently unexplored. In this paper, we establish a concept of global shape similarity based on the premise that two shapes exhibit comparable contours. Furthermore, we mathematically derive a contour flow constraint that ensures the preservation of global shape similarity. We propose two implementations to integrate the constraint with deep neural networks. Firstly, the constraint is converted to a shape loss, which can be seamlessly incorporated into the training phase for any learning-based segmentation framework. Secondly, we add the constraint into a variational segmentation model and derive its iterative schemes for solution. The scheme is then unrolled to get the architecture of the proposed CFSSnet. Validation experiments on diverse datasets are conducted on classic benchmark deep network segmentation models. The results indicate a great improvement in segmentation accuracy and shape similarity for the proposed shape loss, showcasing the general adaptability of the proposed loss term regardless of specific network architectures. CFSSnet shows robustness in segmenting noise-contaminated images, and inherent capability to preserve global shape similarity.
