Abstract
Recent advances in deep learning have shown that learning robust feature representations is critical for the success of many computer vision tasks, including medical image segmentation. In particular, both transformer and convolutional-based architectures have benefit from leveraging pretext tasks for pretraining. However, the adoption of pretext tasks in 3D medical imaging has been less explored and remains a challenge, especially in the context of learning generalizable feature representations. We propose a novel pretraining strategy using diffusion models with anatomical guidance, tailored to the intricacies of 3D medical image data. We introduce an auxiliary diffusion process to pretrain a model that produce generalizable feature representations, useful for a variety of downstream segmentation tasks. We employ an additional model that predicts 3D universal body-part coordinates, providing guidance during the diffusion process and improving spatial awareness in generated representations. This approach not only aids in resolving localization inaccuracies but also enriches the model's ability to understand complex anatomical structures. Empirical validation on a 13-class organ segmentation task demonstrate the effectiveness of our pretraining technique. It surpasses existing restorative pretraining methods in 3D medical image segmentation by $7.5\%$, and is competitive with the state-of-the-art contrastive pretraining approach, achieving an average Dice coefficient of 67.8 in a non-linear evaluation scenario.
Introduction
Medical image segmentation is a cornerstone of diagnostic imaging, yet it typically requires vast amounts of manually labeled data—a resource that is both expensive and time-consuming to acquire. While Self-Supervised Learning (SSL) offers a path forward by leveraging unlabeled data, existing methods face significant hurdles. Contrastive learning often fails to capture the fine-grained, voxel-level details necessary for high-resolution segmentation. Conversely, restorative methods like autoencoders often lack "spatial awareness"; without global context, a model may struggle to distinguish between similar-looking tissues in different parts of the body, such as the liver versus the kidney.
Proposed Methodology
To address these challenges, we introduce a pretraining framework based on Denoising Diffusion Probabilistic Models (DDPM) enhanced with anatomical guidance. Due to the memory constraints of 3D CT scans, the model is trained on smaller 3D patches, learning to predict noise to recover the original image ($x_0$) from a noisy input ($x_t$).
A key innovation is the integration of a pretrained Body Part Regressor (BPR). This auxiliary model assigns universal coordinates to every voxel, acting as a spatial "GPS" that is concatenated with the image data. This provides the diffusion model with the necessary global context to resolve local ambiguities. For evaluation, the pretrained backbone is frozen, and a non-linear probing head is trained to perform segmentation, ensuring that the results reflect the intrinsic quality of the learned features.
Experimental Results
Our method was pretrained on a large-scale corpus of over 6,500 unlabeled CT scans and evaluated on the BTCV (Beyond the Cranial Vault) and FLARE datasets. On the BTCV 13-class organ segmentation task, the proposed DDPM-BPR framework achieved an average Dice coefficient of 67.8, significantly outperforming popular architectures like SwinUNETR (58.5) and restorative methods like TransVW.
Analysis revealed a "sweet spot" for diffusion timesteps, where segmentation quality for smaller organs peaks at approximately 10 steps. Furthermore, the model proved exceptionally effective for larger organs, such as the liver and spleen, achieving Dice scores in the mid-80s. While contrastive methods like vox2vec still maintain a slight lead in certain benchmarks, our generative diffusion approach offers a highly competitive alternative that excels at capturing localized structural nuances.
Conclusion
This work demonstrates that anatomically guided diffusion is a powerful tool for self-supervised pretraining in 3D medical imaging. By providing the model with a sense of "where it is" in the body, we significantly improve the discriminative power of generative features. Future research will focus on optimizing hardware efficiency to allow for larger batch sizes and exploring hybrid models that combine the global discriminative strengths of contrastive learning with the fine-grained generative capabilities of diffusion models.
Summary updated