arXiv:2610.06494cs.CVOct 2026

Manuscript Offprint

arXiv:2610.06494

Topology-Informed Prompt-Conditioned Universal Segmentation of Uterine Structures from Ultrasound and MRI

Yongheng Sun, Yuexi Gu, Jingwen Sun, Maureen Kohi, Mingxia Liu

ABSTRACT

Multi-structure segmentation of the uterus is important for computer-assisted screening, diagnosis, and treatment planning of uterine diseases, where ultrasound and MRI provide complementary clinical information. However, developing a unified model across these modalities is challenging due to their substantially different image appearances, anatomical contexts, spatial resolutions, and label spaces. Moreover, existing datasets often define different segmentation targets, making joint learning challenging and potentially leading to negative transfer across heterogeneous tasks. To this end, we propose a Topology-informed Prompt-conditioned Universal Segmentation (TPUS) framework for segmenting multiple uterine structures across ultrasound and MRI. TPUS introduces a graph-based multi-dataset backbone comprising modality-specific stems and a modality-shared graph-based encoder-decoder to support modality-sensitive input adaptation, structural feature reasoning, and joint representation learning across heterogeneous uterine segmentation tasks. In addition, TPUS uses task-aware class prompts to condition the segmentation process for different datasets and label spaces, a dynamic convolutional adaptation module to generate task-specific output responses, and a topology-informed loss to encourage anatomically consistent predictions. Experiments on a uterine ultrasound dataset and a T2-weighted uterine myoma MRI dataset demonstrate that TPUS achieves Dice scores of 0.898 and 0.693 on the two held-out test sets, respectively, outperforming several generic and universal segmentation baselines. Source code can be accessed online.

Index Terms— Uterine Structure Segmentation, Ultrasound, Magnetic Resonance Imaging

1. INTRODUCTION

Multi-structure segmentation of the uterus is an important task in medical image analysis, supporting computer-assisted screening, diagnosis, disease characterization, and treatment planning for a wide range of uterine diseases [1,2][1, 2]. Accurate delineation of the uterus and its internal structures, such as the uterine cavity and myometrium, as well as focal lesions including uterine fibroids and Nabothian cysts, can provide quantitative anatomical and pathological information for clinical assessment [2][2]. Ultrasound and MRI are two commonly used imaging modalities for evaluating uterine anatomy and pathology [1,2][1, 2], offering complementary information regarding accessibility, spatial detail, soft-tissue contrast, and tissue characterization. Developing robust methods to segment multiple uterine structures and lesions across ultrasound and MRI could facilitate comprehensive automated analysis of uterine diseases.

However, achieving unified segmentation across ultrasound and MRI remains challenging due to substantial differences between the two modalities in image appearance, anatomical context, spatial resolution, and tissue contrast [1,2][1, 2]. Beyond these modality-specific differences, publicly available datasets are often designed for different clinical objectives and therefore provide heterogeneous segmentation targets and label definitions. For example, one dataset may focus on delineating the uterus and its internal structures, whereas another may primarily target uterine lesions such as fibroids. Consequently, directly combining such datasets for joint model training can introduce substantial task heterogeneity and lead to negative transfer, where knowledge beneficial to one segmentation task may interfere with another. Most existing methods are designed for a single modality, dataset, or fixed label space, and thus are not well suited for jointly learning heterogeneous uterine segmentation tasks across ultrasound and MRI.

To address these challenges, we propose a Topology-informed Prompt-conditioned Universal Segmentation (TPUS) framework for unified multi-structure segmentation across uterine ultrasound and MRI. As shown in Fig. 1, TPUS is designed to jointly learn representations across heterogeneous datasets while adapting the segmentation process to dataset-specific label spaces. Specifically, we introduce task-aware class prompts to explicitly condition the model on different segmentation targets, enabling flexible prediction across heterogeneous label definitions. A dynamic convolutional adaptation module further generates task-specific output responses, allowing the representation to be effectively adapted to different modalities and segmentation tasks. To preserve anatomical consistency, we incorporate a topology-informed loss that encourages structurally plausible predictions. In addition, we develop a graph-based multi-dataset backbone comprising modality-specific stems and a modality-shared graph-based encoder-decoder, enabling modality-sensitive input adaptation and joint representation learning across heterogeneous uterine segmentation tasks. These components enable TPUS to jointly learn from ultrasound and MRI while mitigating negative transfer and improving multi-structure uterine segmentation. Experiments on uterine ultrasound and T2-weighted MRI datasets demonstrate that the proposed TPUS consistently outperforms several generic and universal segmentation methods.