Abstract
Typically, a medical image offers spatial information on the anatomy (and pathology) modulated by imaging specific characteristics. Many imaging modalities including Magnetic Resonance Imaging (MRI) and Computed Tomography (CT) can be interpreted in this way. We can venture further and consider that a medical image naturally factors into some spatial factors depicting anatomy and factors that denote the imaging characteristics. Here, we explicitly learn this decomposed (disentangled) representation of imaging data, focusing in particular on cardiac images. We propose Spatial Decomposition Network (SDNet), which factorises 2D medical images into spatial anatomical factors and non-spatial modality factors. We demonstrate that this high-level representation is ideally suited for several medical image analysis tasks, such as semi-supervised segmentation, multi-task segmentation and regression, and image-to-image synthesis. Specifically, we show that our model can match the performance of fully supervised segmentation models, using only a fraction of the labelled images. Critically, we show that our factorised representation also benefits from supervision obtained either when we use auxiliary tasks to train the model in a multi-task setting (e.g. regressing to known cardiac indices), or when aggregating multimodal data from different sources (e.g. pooling together MRI and CT data). To explore the properties of the learned factorisation, we perform latent-space arithmetic and show that we can synthesise CT from MR and vice versa, by swapping the modality factors. We also demonstrate that the factor holding image specific information can be used to predict the input modality with high accuracy. Code is available at https://github.com/agis85/anatomy_modality_decomposition.
Introduction
Medical image segmentation is a cornerstone of clinical diagnosis and treatment planning. However, deep learning models for this task typically require vast amounts of pixel-perfect labeled data, which is both expensive and time-consuming to acquire. Furthermore, models trained on one modality, such as Magnetic Resonance Imaging (MRI), often fail to generalize to others, like Computed Tomography (CT), because they entangle anatomical features with modality-specific pixel intensities.
In this work, we address these challenges by explicitly learning a factorised representation of cardiac images. We introduce the Spatial Decomposition Network (SDNet), which disentangles an image into two distinct components: a spatial map representing the underlying anatomy and a latent vector representing the imaging modality. By separating "what" the anatomy is from "how" it was imaged, we enable robust semi-supervised learning and cross-modality synthesis.
The SDNet Framework
The core of our approach is an autoencoder-based architecture designed to force a strict separation between spatial and non-spatial information.
Architecture Components
- Anatomy Encoder ($f_{anatomy}$): A U-Net-based encoder that outputs a multi-channel spatial map ($s$). To prevent the network from encoding intensity information within this map, we apply a thresholding step to binarize the output during the forward pass. This ensures that each pixel is assigned to a specific anatomical class, creating a clean anatomical bottleneck.
- Modality Encoder ($f_{modality}$): A Variational Autoencoder (VAE) that compresses the input image into a low-dimensional latent vector ($z$). This vector captures global characteristics such as intensity distributions and noise patterns.
- Decoder ($g$): The decoder reconstructs the original image by combining the spatial map $s$ and the modality vector $z$. We utilize Feature-wise Linear Modulation (FiLM) layers to inject the modality information. FiLM applies global scaling and shifting to the feature maps, ensuring that $z$ influences the "style" of the image without altering its spatial structure.
Training Objectives
The model is trained using a multi-objective loss function, including VAE KL-divergence, image reconstruction loss, and a $z$-reconstruction loss to prevent posterior collapse. For segmentation tasks, we incorporate adversarial and Dice losses to leverage both labeled and unlabeled data.
Experimental Results
We evaluated SDNet on several cardiac datasets, including ACDC (cine-MR), MM-WHS (CT and MRI), and a canine dataset (CP-BOLD).
Semi-Supervised Segmentation
SDNet demonstrates remarkable efficiency in low-data regimes. When trained with labels from just a single subject (approximately 1.5% of the ACDC dataset), SDNet achieved a Dice score of 73%. In contrast, a standard fully-supervised U-Net collapsed under the same constraints, achieving only 21%.
Multimodal and Multi-task Learning
Aggregating data from different modalities improves performance across the board. For instance, training on both MR and CT data improved CT segmentation Dice scores from 77% to 81%. Additionally, incorporating auxiliary tasks, such as regressing Left Ventricular Volume (LVV) directly from the anatomical factor, acts as a regularizer. This multi-tasking approach boosted Myocardium segmentation accuracy from 63.3% to 70.6% on a challenging test split.
Latent Space Arithmetic and Synthesis
The explicit factorisation allows for "free" image-to-image translation. By pairing the anatomical map of an MRI with the modality vector extracted from a CT, we can synthesize realistic CT images without the need for complex Generative Adversarial Networks (GANs).
The learned modality vector $z$ is highly descriptive; a simple classifier can predict the input modality (MRI vs. CT) with 92% accuracy based solely on $z$. It can even distinguish subtle oxygenation differences in BOLD imaging with 96% accuracy.
Discussion and Future Work
SDNet provides a powerful framework for disentangled representation learning in medical imaging. By enforcing an anatomical bottleneck, we achieve state-of-the-art semi-supervised performance and enable intuitive cross-modality synthesis.
Future research will focus on extending this architecture to 3D volumes, which is critical for comprehensive brain and abdominal analysis. We also aim to improve reconstruction fidelity by explicitly modeling complex textures, which would enhance performance on noisier modalities like ultrasound. Finally, exploring completely unsupervised settings remains a promising avenue for future development.
Summary updated