Neuromorphologicaly-preserving Volumetric data encoding using VQ-VAE

Petru-Daniel Tudosiu, Thomas Varsavsky, Richard Shaw, Mark S. Graham, Parashkev Nachev, Sébastien Ourselin, Carole H. Sudre, M. Jorge CardosoarXiv 2020

Abstract

The increasing efficiency and compactness of deep learning architectures, together with hardware improvements, have enabled the complex and high-dimensional modelling of medical volumetric data at higher resolutions. Recently, Vector-Quantised Variational Autoencoders (VQ-VAE) have been proposed as an efficient generative unsupervised learning approach that can encode images to a small percentage of their initial size, while preserving their decoded fidelity. Here, we show a VQ-VAE inspired network can efficiently encode a full-resolution 3D brain volume, compressing the data to $0.825\%$ of the original size while maintaining image fidelity, and significantly outperforming the previous state-of-the-art. We then demonstrate that VQ-VAE decoded images preserve the morphological characteristics of the original data through voxel-based morphology and segmentation experiments. Lastly, we show that such models can be pre-trained and then fine-tuned on different datasets without the introduction of bias.

Introduction

Modeling 3D medical volumetric data, such as MRI scans, presents significant computational challenges due to high dimensionality. Standard generative models often face a trade-off between stability and fidelity. Generative Adversarial Networks (GANs) can produce sharp images but are prone to training instability and "mode collapse." Conversely, standard Variational Autoencoders (VAEs) are easier to train but often result in blurry reconstructions, losing critical high-frequency details. In clinical neuroimaging, reconstructions must not only look realistic but also preserve precise morphological characteristics—such as volumetric measurements of gray matter, white matter, and cerebrospinal fluid—to be useful for downstream diagnostic tasks like identifying Alzheimer’s Disease.

Methods

The authors adapted the Vector-Quantised Variational Autoencoder (VQ-VAE) framework for 3D data. Unlike continuous VAEs, the VQ-VAE maps inputs to a discrete "codebook" of learned vectors, which acts as a powerful regularizer and prevents the model from becoming "lazy" and blurry.

Architecture of the proposed 3D VQ-VAE, featuring hierarchical encoding and technical innovations like Sub-pixel convolutions and FixUp blocks.

Key technical innovations include:

  • Hierarchical Encoding: The model uses three levels of latent variables to capture both global brain shape and fine-grained local details.
  • 3D SubPixel Deconvolutions: Used during upsampling to eliminate "checkerboard artifacts" common in standard transpose convolutions.
  • FixUp Initialization: Stabilizes training with small batch sizes (common in 3D data) without requiring Batch Normalization, which often fails in these scenarios.
  • Frequency-Domain Loss: An adaptive loss function applied to 3D Discrete Cosine Transform (DCT) coefficients prioritizes structural gradients over simple pixel intensities.

Results

The study utilized major neuroimaging repositories (ADNI, OASIS, and Barcelona studies) for training and testing. The model achieved a bit-wise compression rate of 0.825% while maintaining exceptional fidelity.

Fidelity and Segmentation

The VQ-VAE significantly outperformed the previous state-of-the-art ($\alpha$-WGAN), achieving a Multi-Scale Structural Similarity (MS-SSIM) of 0.991–0.998, compared to the baseline's ~0.50. Segmentation of reconstructed images into White Matter (WM), Gray Matter (GM), and Cerebrospinal Fluid (CSF) yielded Dice scores as high as 0.94, indicating that tissue boundaries remain highly accurate after compression.

Clinical Validity via Voxel-Based Morphometry (VBM)

To ensure the encoding is "neuromorphologically-preserving," the authors performed Voxel-Based Morphometry (VBM) to compare healthy vs. Alzheimer's brains using both original and reconstructed data.

Statistical t-maps comparing the proposed VQ-VAE variants against the baseline, demonstrating the preservation of brain morphology.

The resulting statistical "t-maps" for the proposed method were much closer to zero than the baseline. This demonstrates that the reconstruction process introduces minimal artificial change to the brain's morphology, allowing for clinical conclusions nearly identical to those derived from original data.

Conclusion

This research demonstrates that a 3D VQ-VAE can efficiently compress volumetric brain data to less than 1% of its original size while preserving the precise morphological details required for clinical analysis. While the adaptive loss can occasionally over-smooth fine white matter textures, the model's ability to maintain structural integrity and avoid statistical bias marks a significant advancement in medical image encoding. Future work will explore hybrid loss functions and the use of these compressed representations for generative modeling and data augmentation.

Summary updated

BibTeX
@misc{tudosiu2020neuromorphologicaly,
  author = {Petru-Daniel Tudosiu and Thomas Varsavsky and Richard Shaw and Mark S. Graham and Parashkev Nachev and Sébastien Ourselin and Carole H. Sudre and M. Jorge Cardoso},
  title = {{Neuromorphologicaly-preserving Volumetric data encoding using VQ-VAE}},
  year = {2020},
  eprint = {2002.05692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.05692},
}
Figure