ContIG: Self-supervised Multimodal Contrastive Learning for Medical Imaging with Genetics

Aiham Taleb, Matthias Kirchler, Remo Monti, Christoph Lippert

Abstract

Deep learning in medical imaging is often limited by the high cost of expert annotations. ContIG (Contrastive Imaging with Genetics) is a novel self-supervised learning framework that addresses this "annotation bottleneck" by leveraging the inherent relationship between medical images and an individual's genetic blueprint. By aligning retinal fundus images with multiple genetic modalities—including Single Nucleotide Polymorphisms (SNPs), Polygenic Risk Scores (PGS), and rare variant burden scores—in a shared embedding space, ContIG learns biologically rich representations. Our results demonstrate that ContIG significantly outperforms standard self-supervised methods on diverse clinical diagnostic tasks and exhibits superior data efficiency in low-label regimes.

Introduction

The rapid growth of large-scale biobanks, such as the UK Biobank (UKB), has provided researchers with vast amounts of medical imaging data. However, the utility of these datasets for supervised learning is frequently constrained by the "annotation bottleneck": the prohibitive expense and time required for expert clinicians to provide manual labels.

ContIG proposes a paradigm shift by utilizing genetics as a "free" source of supervision. Every medical image in a biobank is paired with the patient's unique genome, which serves as a natural ground truth for biological variation. Unlike traditional self-supervised methods that rely on artificial image augmentations (e.g., cropping or color jittering) to learn features, ContIG learns to organize its feature space based on actual biological relationships. This paper explores whether the cross-modal alignment of genomes and medical images can yield superior visual representations without the need for manual labels.

Methods

The core of the ContIG framework is a multimodal contrastive learning objective designed to bridge the gap between high-dimensional genetic data and medical imagery.

Multimodal Encoding

The architecture employs specialized encoders for different data types:

  • Image Encoder: A ResNet-50 backbone processes retinal fundus images into high-level visual embeddings.
  • Genetic Encoders: Separate Multi-Layer Perceptrons (MLPs) are used for three distinct genetic modalities: Raw SNPs (common variations), Polygenic Risk Scores (aggregated disease susceptibility), and Burden Scores (rare damaging mutations).
The ContIG framework architecture, illustrating the multimodal encoding of retinal images and genetic data into a shared embedding space for contrastive alignment.

Contrastive Alignment and Missing Data

The model is trained to maximize the similarity between the image and genetic embeddings of the same individual while minimizing similarity between different individuals. To handle the messy nature of real-world biobank data, where individuals may have missing genetic modalities, the authors implemented an "Outer Aggregation" scheme. This allows the model to leverage all available data points, ensuring robust training even with incomplete genetic profiles.

Experimental Setup

The model was pretrained on the UK Biobank dataset, which includes approximately 155,000 retinal fundus images paired with comprehensive genomic data. To evaluate the quality of the learned representations, the authors performed downstream fine-tuning on four distinct clinical tasks:

  1. APTOS 2019: Detection of Diabetic Retinopathy.
  2. RFMiD: Multi-disease classification in retinal images.
  3. PALM: Segmentation of Pathological Myopia.
  4. UKB Cardiovascular: Prediction of systemic risk factors (e.g., age, BMI, blood pressure) directly from eye images.

Results and Discussion

ContIG consistently outperformed established self-supervised baselines, including SimCLR, BYOL, and Barlow Twins, across all evaluation benchmarks.

State-of-the-Art Performance

As shown in the table below, ContIG variants (particularly those using PGS or aggregated genetic features) achieved superior results. For instance, on the APTOS retinopathy task, ContIG reached a QwKappa of 85.93, a significant improvement over SimCLR’s 81.83.

Quantitative evaluation of ContIG variants against state-of-the-art self-supervised baselines across multiple clinical diagnostic tasks.

Data Efficiency and Biological Validity

A key strength of ContIG is its data efficiency. In low-data scenarios, the model pretrained with genetics and fine-tuned on just 1% of labeled data often surpassed the performance of standard self-supervised models fine-tuned on 10% of labeled data.

Furthermore, the biological validity of the learned features was confirmed through a Genome-Wide Association Study (GWAS). The analysis identified 22 independent genetic regions associated with the image features learned by ContIG—far exceeding the 2 to 17 regions found by other self-supervised methods. These regions were linked to clinical markers such as skin pigmentation and cardiovascular health, proving the model captures meaningful biological signals.

Conclusion

ContIG demonstrates the power of using genetics as a supervisory signal for medical imaging. While the current study is limited by the predominantly European ancestry of the UK Biobank and focuses on 2D retinal images, it paves the way for future multimodal research. Expanding this framework to 3D modalities like cardiac or brain MRI and incorporating more diverse global populations are promising directions for developing more robust and biologically grounded medical AI.

Summary updated

BibTeX
@inproceedings{taleb2021contig,
  author = {Aiham Taleb and Matthias Kirchler and Remo Monti and Christoph Lippert},
  title = {{ContIG: Self-supervised Multimodal Contrastive Learning for Medical Imaging with Genetics}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.02024},
}
Figure