Manuscript Offprint

arXiv:2608.30371

MCSeg: Pre-training and Fine-tuning Volumetric Pyramid Transformer for Multi-modal Cardiac Image Segmentation

Zhiyu Ye, Hairong Zheng, Tong Zhang

Zhiyu Ye, Hairong Zheng, Senior Member, IEEE, and Tong Zhang, Member, IEEE

Abstract—Automatic cardiac image segmentation is pivotal for diagnosing and treating cardiac diseases. In this work, we introduce MCSeg, a volumetric transformer-based network tailored for multi-modal cardiac segmentation. To overcome the architectural mismatch inherent in existing hybrid networks, we propose a novel Scaling Feature Pyramid (SFP). Unlike conventional skip connections, the SFP effectively bridges the single-scale 3D Vision Transformer (ViT) encoder and the multi-scale CNN decoder by transforming the ViT's output into a hierarchical feature pyramid, ensuring that global contextual information is effectively leveraged. For the training paradigm, the ViT encoder first undergoes self-supervised pre-training via masked image modeling. Subsequently, the network is fine-tuned on downstream tasks, during which a regional mutual information (RMI) loss is integrated to improve boundary segmentation accuracy. In experiments, MCSeg consistently outperforms eleven SOTA methods on CT dataset ImageCHD, multi-modal dataset MM-WHS, MRI dataset HVSMR-2.0 and MSD Heart, highlighting the effectiveness of our MCSeg for multi-modal cardiac segmentation tasks. Furthermore, MCSeg's superior performance in few-shot experiment showcases its significant potential in adapting to limited data scenarios. Codes and pre-trained ViT-B weights are open-sourced at https://openi.pcl.ac.cn/OpenMedIA/MCSeg.

Index Terms—Multi-modal cardiac segmentation, volumetric vision transformer, scaling feature pyramid, self-supervised pre-training.

I. INTRODUCTION

MEDICAL image segmentation, an important application of artificial intelligence in healthcare [1], has been extensively researched, encompassing various organs and diseases [2]–[5]. Automated segmentation of cardiac images is a

This work was partly supported by the Major Key Project PCL under grant No. PCL2023A09, the Guangdong Provincial Science and Technology Department under Grant No. 2024A1515010245, the National Natural Science Foundation of China under Grant U21A20523, and the Key Laboratory for Magnetic Resonance and Multimodality Imaging of Guangdong Province under Grant No. 2023B1212060052. (Corresponding authors: T. Zhang and H. Zheng)

Z. Ye is joint with Shenzhen Institute of Advanced Technology, Shenzhen, China, with Pengcheng Laboratory, Shenzhen, China, and with University of Chinese Academy of Sciences, China. (e-mail: yezhy@pcl.ac.cn)

H. Zheng is with Shenzhen Institute of Advanced Technology, Shenzhen, China, and with University of Chinese Academy of Sciences, China. (e-mail: hr.zheng@siat.ac.cn)

T. Zhang is with Pengcheng Laboratory, Shenzhen, China. (e-mail: zhangt02@pcl.ac.cn)

Figure

Fig. 1: Qualitative visualizations of models in few-shot experiment on image with ID “1085” from ImageCHD dataset. Results are presented in axial, coronal and sagittal views.

crucial step for non-invasive assessment of cardiac structures and functions. It offers indispensable support for diagnosis, disease monitoring, treatment planning, and prognosis [6].

Cardiac imaging examinations commonly involve multimodal imaging techniques such as echocardiography, computed tomography (CT) and magnetic resonance imaging (MRI). Unlike echocardiography, which is highly operator-dependent, CT and MRI examinations can generate comprehensive and consistent 3D visual representations of the cardiac structure. Such capability enables the diagnosis and quantification of cardiac structural abnormalities and facilitates precise surgical planning. Consequently, whole-heart segmentation is routinely conducted on CT and MRI images.

Conventional methods for cardiac image segmentation, such as probability atlases [7], [8] and early machine learning methods [9], have largely been superseded by deep learning, particularly convolutional neural network (CNN) based approaches [10], [11]. While CNNs excel at learning hierarchical features on specific small datasets, their inductive biases often limit domain generalization across diverse datasets. Furthermore, medical image segmentation inherently suffers from a severe scarcity of finely annotated 3D data and a long-tailed distribution of rare diseases. Unlike natural image datasets with millions of samples, medical datasets typically contain only dozens to hundreds of cases, posing a significant obstacle to training robust and universally applicable models.

To tackle these challenges, especially in scenarios with lim-

IEEE TRANSACTIONS AND JOURNALS TEMPLATE

ited annotated data and relatively abundant unlabeled images, self-supervised learning (SSL) — particularly masked image modeling (MIM) — has emerged as a powerful paradigm. Within this context, the Vision Transformer (ViT) [12] has demonstrated exceptional pre-training capabilities and an innate ability to model long-range dependencies. Our objective is to leverage these advantages in developing a network that can be universally applied to diverse 3D cardiac segmentation tasks. Additionally, we aim to enhance the network's adaptability to images that are rarely or even never encountered.

Building upon our prior work CardiacSeg [13], we introduce MCSeg, a volumetric transformer-based network tailored for multi-modal cardiac segmentation. MCSeg employs a ViT encoder pre-trained via masked autoencoders (MAE) [14] on unannotated cardiac volumes to establish prior anatomical knowledge. Notably, this pre-training stage scales up the data volume by five times compared to our previous work. For downstream fine-tuning, this pre-trained encoder is integrated with our customized Scaling Feature Pyramid (SFP), which explicitly bridges single-scale ViT and multi-scale decoder. Furthermore, we incorporate the regional mutual information (RMI) loss [15] during the fine-tuning process to further enhance boundary segmentation accuracy. As illustrated in the few-shot experiment (Fig. 1), MCSeg significantly outperforms existing baselines, highlighting its exceptional capability in overcoming medical data scarcity.

The main contributions of this paper are outlined as follows:

• We introduce MCSeg, a volumetric transformer-based network tailored for multi-modal cardiac segmentation. The key innovation of this architecture is a novel Scaling Feature Pyramid (SFP), which explicitly bridges single-scale ViT and multi-scale decoder, thereby better exploiting the capabilities of the pre-trained 3D ViT.

• We adopt a two-stage training paradigm that combines self-supervised 3D MAE pre-training with downstream task fine-tuning. during the fine-tuning, we incorporate a regional mutual information (RMI) loss to improve boundary segmentation accuracy.

• We achieve state-of-the-art (SOTA) performance across four diverse cardiac datasets (ImageCHD, HVSMR-2.0, MM-WHS, and MSD). Extensive experiments demonstrate that MCSeg exhibits cross-modality adaptability and few-shot learning potential.

References (42)

  • Medical image segmentation using deep learning: A survey
  • The liver tumor segmentation benchmark (lits)
  • The state of the art in kidney and kidney tumor segmentation in contrast-enhanced ct imaging: Results of the kits19 challenge
  • Automatic brain tumor segmentation using cascaded anisotropic convolutional neural networks
  • The multimodal brain tumor image segmentation benchmark (brats)
  • Deep learning for cardiac image segmentation: a review
  • Multi-scale patch and multi-modality atlases for whole heart segmentation of mri
  • Multi-class probabilistic atlas-based whole heart segmentation method in cardiac ct and mri
  • Mrdff: A deep forest based framework for ct whole heart segmentation
  • A novel framework with weighted decision map based on convolutional neural network for cardiac mr segmentation
  • An improved combination of faster r-cnn and u-net network for accurate multi-modality whole heart segmentation
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Cardiacseg: Customized pre-training volumetric transformer with scaling pyramid for 3d cardiac segmentation
  • Masked autoencoders are scalable vision learners
  • Region mutual information loss for semantic segmentation
  • U-net: Convolutional networks for biomedical image segmentation
  • 3d u-net: learning dense volumetric segmentation from sparse annotation
  • V-net: Fully convolutional neural networks for volumetric medical image segmentation
  • nnformer: volumetric medical image segmentation via a 3d transformer
  • A robust volumetric transformer for accurate 3d tumor segmentation
  • Cotr: Efficiently bridging cnn and transformer for 3d medical image segmentation
  • Unetr: Transformers for 3d medical image segmentation
  • Self-supervised pre-training of swin transformers for 3d medical image analysis
  • Mednext: transformer-driven scaling of convnets for medical image segmentation
  • Sam-med3d: towards general-purpose segmentation models for volumetric medical images
  • BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
  • Beit: Bert pre-training of image transformers
  • Simmim: A simple framework for masked image modeling
  • Masked image modeling advances 3d medical image analysis
  • Feature pyramid networks for object detection
  • Panoptic feature pyramid networks
  • Exploring plain vision transformer backbones for object detection (opens arXiv in a new tab)
  • A topological loss function for deep-learning based image segmentation using persistent homology
  • Imagecas: A large-scale dataset and benchmark for coronary artery segmentation based on computed tomography angiography images
  • Imagechd: A 3d computed tomography image dataset for classification of congenital heart disease
  • Hvsmr-2.0: A 3d cardiovascular mr dataset for whole-heart segmentation in congenital heart disease
  • Challenges and methodologies of fully automatic whole heart segmentation: a review
  • The medical segmentation decathlon
  • Openmedia: Open-source medical image analysis toolbox and benchmark under heterogeneous ai computing platforms
  • Unet++: Redesigning skip connections to exploit multiscale features in image segmentation
  • nnu-net: a self-configuring method for deep learning-based biomedical image segmentation
  • Transunet: Rethinking the u-net architecture design for medical image segmentation through the lens of transformers