FlowSDF: Flow Matching for Medical Image Segmentation Using Distance Transforms
Lea Bogensperger, Dominik Narnhofer, Alexander Falk, Konrad Schindler, Thomas Pock
TL;DR
FlowSDF addresses the challenge of robust medical image segmentation by learning a conditional flow that transports a simple prior to a distribution of smooth, implicit segmentation maps expressed as a signed distance function. The method conditions on the input image to generate multiple plausible segmentations and corresponding uncertainty maps, enabling robust predictions and uncertainty-aware decision making. By combining image-guided flow matching with an SDF-based representation, FlowSDF yields smoother boundaries, improved sample diversity, and practical uncertainty estimates, while reducing artefacts common in binary-mask approaches. Empirical results on MoNuSeg and gland segmentation demonstrate competitive performance and potential benefits for clinical decision support through probabilistic segmentation outputs.
Abstract
Medical image segmentation plays an important role in accurately identifying and isolating regions of interest within medical images. Generative approaches are particularly effective in modeling the statistical properties of segmentation masks that are closely related to the respective structures. In this work we introduce FlowSDF, an image-guided conditional flow matching framework, designed to represent the signed distance function (SDF), and, in turn, to represent an implicit distribution of segmentation masks. The advantage of leveraging the SDF is a more natural distortion when compared to that of binary masks. Through the learning of a vector field associated with the probability path of conditional SDF distributions, our framework enables accurate sampling of segmentation masks and the computation of relevant statistical measures. This probabilistic approach also facilitates the generation of uncertainty maps represented by the variance, thereby supporting enhanced robustness in prediction and further analysis. We qualitatively and quantitatively illustrate competitive performance of the proposed method on a public nuclei and gland segmentation data set, highlighting its utility in medical image segmentation applications.
