MedSegFactory: Text-Guided Generation of Medical Image-Mask Pairs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mao, Jiawei, Wang, Yuhan, Tang, Yucheng, Xu, Daguang, Wang, Kang, Yang, Yang, Zhou, Zongwei, Zhou, Yuyin
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908446413029376
author Mao, Jiawei
Wang, Yuhan
Tang, Yucheng
Xu, Daguang
Wang, Kang
Yang, Yang
Zhou, Zongwei
Zhou, Yuyin
author_facet Mao, Jiawei
Wang, Yuhan
Tang, Yucheng
Xu, Daguang
Wang, Kang
Yang, Yang
Zhou, Zongwei
Zhou, Yuyin
contents This paper presents MedSegFactory, a versatile medical synthesis framework that generates high-quality paired medical images and segmentation masks across modalities and tasks. It aims to serve as an unlimited data repository, supplying image-mask pairs to enhance existing segmentation tools. The core of MedSegFactory is a dual-stream diffusion model, where one stream synthesizes medical images and the other generates corresponding segmentation masks. To ensure precise alignment between image-mask pairs, we introduce Joint Cross-Attention (JCA), enabling a collaborative denoising paradigm by dynamic cross-conditioning between streams. This bidirectional interaction allows both representations to guide each other's generation, enhancing consistency between generated pairs. MedSegFactory unlocks on-demand generation of paired medical images and segmentation masks through user-defined prompts that specify the target labels, imaging modalities, anatomical regions, and pathological conditions, facilitating scalable and high-quality data generation. This new paradigm of medical image synthesis enables seamless integration into diverse medical imaging workflows, enhancing both efficiency and accuracy. Extensive experiments show that MedSegFactory generates data of superior quality and usability, achieving competitive or state-of-the-art performance in 2D and 3D segmentation tasks while addressing data scarcity and regulatory constraints.
format Preprint
id arxiv_https___arxiv_org_abs_2504_06897
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MedSegFactory: Text-Guided Generation of Medical Image-Mask Pairs
Mao, Jiawei
Wang, Yuhan
Tang, Yucheng
Xu, Daguang
Wang, Kang
Yang, Yang
Zhou, Zongwei
Zhou, Yuyin
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
This paper presents MedSegFactory, a versatile medical synthesis framework that generates high-quality paired medical images and segmentation masks across modalities and tasks. It aims to serve as an unlimited data repository, supplying image-mask pairs to enhance existing segmentation tools. The core of MedSegFactory is a dual-stream diffusion model, where one stream synthesizes medical images and the other generates corresponding segmentation masks. To ensure precise alignment between image-mask pairs, we introduce Joint Cross-Attention (JCA), enabling a collaborative denoising paradigm by dynamic cross-conditioning between streams. This bidirectional interaction allows both representations to guide each other's generation, enhancing consistency between generated pairs. MedSegFactory unlocks on-demand generation of paired medical images and segmentation masks through user-defined prompts that specify the target labels, imaging modalities, anatomical regions, and pathological conditions, facilitating scalable and high-quality data generation. This new paradigm of medical image synthesis enables seamless integration into diverse medical imaging workflows, enhancing both efficiency and accuracy. Extensive experiments show that MedSegFactory generates data of superior quality and usability, achieving competitive or state-of-the-art performance in 2D and 3D segmentation tasks while addressing data scarcity and regulatory constraints.
title MedSegFactory: Text-Guided Generation of Medical Image-Mask Pairs
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2504.06897