Joint Self-Supervised Image-Volume Representation Learning with Intra-inter Contrastive Clustering

Duy M. H. Nguyen, Hoang Nguyen, Truong Thanh Nhat Mai, Tri Cao, Binh T. Nguyen, Nhat Ho, Paul Swoboda, Shadi Albarqouni, Pengtao Xie, Daniel Sonntag

Abstract

Self-supervised learning (SSL) has become a cornerstone for medical image analysis due to the high cost of expert annotations. However, existing SSL frameworks typically focus on either 2D images or 3D volumes, creating a "dimensionality gap" that limits data efficiency and model versatility. This paper introduces a novel SSL framework designed to jointly learn representations from both 2D and 3D medical data. By integrating a 2D CNN with a Deformable Attention Transformer, the proposed architecture captures both local slice-level features and global volumetric dependencies. Our method employs three proxy tasks: intra-dependence clustering, inter-dependence clustering, and masked feature prediction. Experimental results across various modalities (X-ray, CT, MRI) and tasks (segmentation, classification, detection) demonstrate that our unified approach significantly outperforms state-of-the-art dimension-specific SSL methods while maintaining parameter efficiency.

Introduction

The scarcity of labeled medical data has driven the adoption of self-supervised learning (SSL). Despite its success, a significant limitation remains: the architectural and data-level separation between 2D images (e.g., X-rays) and 3D volumes (e.g., CT/MRI). 3D-only models cannot leverage the abundance of 2D data, while 2D models ignore the spatial context of 3D scans. Furthermore, 3D pre-trained backbones are often incompatible with 2D downstream tasks due to rigid input requirements.

Comparison of the proposed joint 2D-3D SSL framework against traditional dimension-specific prior works.

To address these challenges, we propose a "universal" representation learning framework that bridges the dimensionality gap, allowing a single backbone to be fine-tuned for both 2D and 3D clinical applications.

Methodology

The core of our approach is a hybrid architecture designed for multi-dimensional data processing, combined with multi-level SSL objectives.

Architecture

  1. 2D CNN ($f_{intra}$): A ResNet-50 backbone extracts feature embeddings from individual 2D slices, capturing local anatomical details.
  2. Deformable Attention Transformer ($f_{inter}$): This component processes the sequence of slice embeddings to learn holistic 3D representations. By utilizing deformable attention, the model focuses on a sparse, flexible set of key slices, ensuring computational feasibility for large 3D volumes compared to standard Vision Transformers.

SSL Proxy Tasks

The model is trained using three synergistic tasks:

  • Intra-dependence Clustering: Groups similar 2D slices to learn local features based on frameworks like SwAV.
  • Inter-dependence Clustering: Ensures global consistency by clustering augmented views of the same 3D volume.
  • Masked Feature Embedding Prediction: A BERT-like task where the model predicts masked slice embeddings from their neighbors, forcing the learning of structural volumetric relationships.
Detailed overview of the joint SSL pipeline, including the 2D CNN extractor, inter-deformable attention, and the contrastive clustering and masking tasks.

Results and Discussion

We evaluated our model on a diverse set of downstream tasks. In 3D segmentation (BraTS2018), the model achieved a Dice score of 73.03%, outperforming specialized 3D architectures like SwinViT3D and TransVW. For 3D classification (LUNA2016), it reached an AUC of 94.22%, surpassing the Models Genesis baseline.

Notably, the model also excelled in 2D detection (VinDR-CXR) with a mAP of 28.47, demonstrating superior cross-dimension transferability. The use of deformable attention allows the model to maintain high performance with only 31.16M parameters—nearly half that of competing 3D transformers like SwinViT3D (62.19M).

Conclusion

By jointly learning from 2D and 3D data, our framework provides a versatile and efficient solution for medical image representation. This unified approach overcomes the limitations of dimension-specific SSL, paving the way for more generalizable medical AI models that can leverage the full spectrum of clinical imaging data.

Summary updated

BibTeX
@inproceedings{nguyen2023joint,
  author = {Duy M. H. Nguyen and Hoang Nguyen and Truong Thanh Nhat Mai and Tri Cao and Binh T. Nguyen and Nhat Ho and Paul Swoboda and Shadi Albarqouni and Pengtao Xie and Daniel Sonntag},
  title = {{Joint Self-Supervised Image-Volume Representation Learning with Intra-inter Contrastive Clustering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i12.26687},
}
Figure