Disentangled representation learning in cardiac image analysis

Agisilaos Chartsias, Thomas Joyce, Giorgos Papanastasiou, Scott Semple, Michelle C. Williams, David E. Newby, Rohan Dharmakumar, Sotirios A. Tsaftaris · DOI

Introduction

Medical image analysis often struggles with the dual nature of image data: the underlying biological structure (anatomy) and the specific rendering characteristics of the imaging device (modality). Standard deep learning models frequently conflate these factors, leading to significant challenges in data scarcity and domain sensitivity. Training robust models typically requires vast amounts of manually labeled data, and models trained on one modality (e.g., MRI) often fail when applied to another (e.g., CT).

To address these issues, the authors propose SDNet (Spatial Decomposition Network), a framework designed to factorize medical images into independent spatial anatomy and non-spatial modality components. This disentanglement enables high-performance segmentation with minimal labeled data and facilitates cross-modality image synthesis.

Methods: The Spatial Decomposition Network (SDNet)

The core contribution is the SDNet architecture, which decomposes an input image into a spatial factor $s$ (anatomy) and a latent vector $z$ (modality).

Overview of the SDNet architecture showing the decomposition of an input image into anatomical and modality factors for reconstruction and segmentation.

The architecture comprises four primary modules:

  1. Anatomy Encoder ($f_{anatomy}$): A U-Net-based network that generates a multi-channel spatial map. A critical design choice is the binarization of this map using a straight-through estimator, ensuring it captures only structural information without intensity data.
  2. Modality Encoder ($f_{modality}$): A Variational Autoencoder (VAE) that compresses the image and its anatomy map into a low-dimensional latent vector $z$, capturing the "style" or intensity distribution.
  3. Segmentor ($h$): A compact network that produces the final segmentation mask from the anatomy map.
  4. Decoder ($g$): Reconstructs the original image by combining the anatomy map with the modality vector. It utilizes FiLM (Feature-wise Linear Modulation) layers to apply modality characteristics to the anatomical structure.
Detailed architecture of the convolutional blocks (CB), dense blocks (DB), and FiLM networks used within SDNet.

To prevent "posterior collapse"—where the model ignores the modality factor—a z-reconstruction loss is employed, ensuring the latent vector can be recovered from the reconstructed image.

Key Insights and Innovations

Binarization as a Structural Bottleneck

By forcing the anatomy factor to be binary, the model is prevented from "hiding" modality-specific intensity information within the spatial map. This bottleneck forces the modality encoder to capture all non-spatial variance, leading to true disentanglement.

Latent Space Arithmetic and Synthesis

The independence of $s$ and $z$ allows for novel image manipulation. By pairing the anatomy factor from an MRI with a modality vector derived from a CT, the decoder can synthesize a realistic "pseudo-CT" for a specific patient.

Multi-task and Cross-Modality Synergy

The researchers observed that training on auxiliary tasks, such as predicting left ventricle volume, enhances the anatomical representation. Furthermore, joint training on MRI and CT data helps the model learn a more universal definition of cardiac structures, improving performance across both modalities.

Results

The SDNet framework was evaluated on several datasets, including ACDC (MRI), MM-WHS (CT/MRI), and CP-BOLD (canine MRI).

  • Extreme Data Efficiency: On the ACDC dataset, SDNet achieved a 73% Dice score using only 1.5% of the labeled data (equivalent to one subject). In comparison, a standard U-Net baseline achieved only 26% under the same conditions.
  • Modality Discrimination: The modality factor $z$ proved highly representative; a simple classifier could distinguish between MRI and CT images with 92% accuracy using only the 8-dimensional latent vector.
  • Semi-Supervised Performance: Through the use of adversarial loss on unlabeled data, SDNet maintains robust performance even when ground-truth masks are scarce.

Conclusion

SDNet demonstrates that disentangling anatomy from modality is a powerful strategy for medical image analysis. By creating a representation invariant to scanner types, the model achieves remarkable data efficiency and enables cross-modality applications. Future work may extend this framework to 3D volumes to capture better spatial consistency and explore fully unsupervised anatomical discovery.

Code Availability: https://github.com/agis85/anatomy_modality_decomposition

Summary updated

BibTeX
@article{chartsias2019disentangled,
  author = {Agisilaos Chartsias and Thomas Joyce and Giorgos Papanastasiou and Scott Semple and Michelle C. Williams and David E. Newby and Rohan Dharmakumar and Sotirios A. Tsaftaris},
  title = {{Disentangled representation learning in cardiac image analysis}},
  journal = {Medical Image Analysis},
  year = {2019},
  doi = {10.1016/j.media.2019.101535},
}
Figure