Table of Contents
Fetching ...

A Text-Image Fusion Method with Data Augmentation Capabilities for Referring Medical Image Segmentation

Shurong Chai, Rahul Kumar JAIN, Rui Xu, Shaocong Mo, Ruibo Hou, Shiyu Teng, Jiaqing Liu, Lanfen Lin, Yen-Wei Chen

TL;DR

This paper tackles the problem of aligning text descriptions with spatial regions in medical image segmentation when applying data augmentation. It introduces an early fusion framework that combines text features and visual information before augmentation, augmented by a ROI-guided lightweight text generator that produces a pseudo image to bridge semantic gaps. The model optimizes a joint loss $\mathcal{L}_{total} = \mathcal{L}_{Dice} + \lambda \mathcal{L}_{1}$ with $\lambda = 0.1$, enabling effective learning under diverse augmentations and achieving state-of-the-art performance across three datasets and four backbones. The approach offers practical value for clinical settings by preserving spatial consistency while leveraging diverse augmentations, and code is released on GitHub for reproducibility.

Abstract

Deep learning relies heavily on data augmentation to mitigate limited data, especially in medical imaging. Recent multimodal learning integrates text and images for segmentation, known as referring or text-guided image segmentation. However, common augmentations like rotation and flipping disrupt spatial alignment between image and text, weakening performance. To address this, we propose an early fusion framework that combines text and visual features before augmentation, preserving spatial consistency. We also design a lightweight generator that projects text embeddings into visual space, bridging semantic gaps. Visualization of generated pseudo-images shows accurate region localization. Our method is evaluated on three medical imaging tasks and four segmentation frameworks, achieving state-of-the-art results. Code is publicly available on GitHub: https://github.com/11yxk/MedSeg_EarlyFusion.

A Text-Image Fusion Method with Data Augmentation Capabilities for Referring Medical Image Segmentation

TL;DR

This paper tackles the problem of aligning text descriptions with spatial regions in medical image segmentation when applying data augmentation. It introduces an early fusion framework that combines text features and visual information before augmentation, augmented by a ROI-guided lightweight text generator that produces a pseudo image to bridge semantic gaps. The model optimizes a joint loss with , enabling effective learning under diverse augmentations and achieving state-of-the-art performance across three datasets and four backbones. The approach offers practical value for clinical settings by preserving spatial consistency while leveraging diverse augmentations, and code is released on GitHub for reproducibility.

Abstract

Deep learning relies heavily on data augmentation to mitigate limited data, especially in medical imaging. Recent multimodal learning integrates text and images for segmentation, known as referring or text-guided image segmentation. However, common augmentations like rotation and flipping disrupt spatial alignment between image and text, weakening performance. To address this, we propose an early fusion framework that combines text and visual features before augmentation, preserving spatial consistency. We also design a lightweight generator that projects text embeddings into visual space, bridging semantic gaps. Visualization of generated pseudo-images shows accurate region localization. Our method is evaluated on three medical imaging tasks and four segmentation frameworks, achieving state-of-the-art results. Code is publicly available on GitHub: https://github.com/11yxk/MedSeg_EarlyFusion.
Paper Structure (11 sections, 7 equations, 5 figures, 3 tables)

This paper contains 11 sections, 7 equations, 5 figures, 3 tables.

Figures (5)

  • Figure 1: Comparison between conventional method (a) and proposed method (b).
  • Figure 2: Overview of the proposed early fusion approach. ks, c, s represent the kernel size, output channels and stride, respectively.
  • Figure 3: Motivation of proposed method. Example illustrating the limitation of data augmentation in conventional fusion methods. When a horizontal flip is applied to the input image, the associated free-text description (e.g., “a polyp on the bottom right side”) becomes semantically inconsistent with the augmented image (the polyp is on the bottom left side).
  • Figure 4: Visualization results of generated pseudo images on the QATA-Covid and Kvasir datasets, demonstrating the alignment and effectiveness of our proposed approach.
  • Figure 5: Qualitative visualization results for the QATA-Covid dataset using UNet.