REECAP: Contrastive learning of retinal aging reveals genetic loci linking morphology to eye disease

Lyubov Shilova, Daniel Sens, А. Алиева, Shubham Chaudhary, Qiang Xu, Emmanuelle Salin, Johannes Schiefelbein, Ben Asani, Oana V. Amarie, Elida Schneltzer, Ayellet V. Segrè, Julia A. Schnabel, Na Cai, Bjoern M. Eskofier, Francesco Paolo CasalemedRxiv 2025

Abstract

Deep learning foundation models excel at disease prediction from medical images, yet their potential to bridge tissue morphology with the genetic architecture of disease remains underexplored. Here, we present REECAP (Representation learning for Eye Embedding Contrastive Age Phenotypes), a framework that fine-tunes the RETFound retinal foundation model using a contrastive objective guided by chronological age. Applied to 87,478 fundus images from 52,742 UK Biobank participants, REECAP aligns image representations along the aging axis, yielding multivariate ageing phenotypes for genome-wide association studies (GWAS). GWAS of REECAP embeddings identifies 178 loci, including 27 that colocalize with risk loci of age-related eye diseases, 14 of which remained undetected by conventional disease-label GWAS. By enabling conditional image synthesis, REECAP further links genetic variation to interpretable anatomical changes. Benchmarking against alternative embedding models, we show that REECAP enhances both locus discovery and disease relevance of genetic associations, suggesting that aging-informed tissue embeddings represent a powerful intermediate phenotype to discover and interpret disease loci.

Introduction

Genome-wide association studies (GWAS) are the cornerstone of modern genetics, identifying the genomic regions associated with various diseases. However, traditional GWAS often rely on simplistic, low-dimensional labels—such as binary disease diagnoses or manual anatomical measurements—which fail to capture the subtle, high-dimensional patterns of tissue change visible in medical imaging. While deep learning foundation models like RETFound are highly effective at clinical prediction, their internal representations have not been fully leveraged to bridge the gap between visual morphology and genetic architecture.

REECAP addresses this by targeting biological aging, the primary driver for most common eye diseases. Rather than treating age as a nuisance variable, REECAP utilizes it as a rich source of biological signal to organize image representations into a continuous, aging-informed latent space.

Methodology

The REECAP framework (Representation learning for Eye Embedding Contrastive Age Phenotypes) consists of a three-stage pipeline designed to extract and analyze high-dimensional phenotypes from retinal fundus images.

  1. Contrastive Fine-Tuning: The process begins with RETFound, a Vision Transformer (ViT) pretrained on millions of retinal images. The model is fine-tuned using Rank-N-Contrast (RnC), a technique that organizes the latent space such that images from individuals of similar ages are clustered together and ordered chronologically.
  2. Multivariate GWAS: The top 40 principal components are extracted from these embeddings to serve as a "multivariate phenotype." This high-dimensional mathematical description of the eye's appearance is then used in a GWAS to identify genetic variants associated with these dimensions simultaneously.
  3. Interpretable Synthesis: To visualize the biological meaning of these genetic associations, a Conditional Generative Adversarial Network (GAN) is used to "invert" the embeddings. By shifting an embedding along a specific genetic risk axis, the model generates synthetic images that illustrate how a variant is predicted to alter retinal anatomy.
Overview of the REECAP framework, from contrastive embedding alignment to GWAS discovery and biological characterization.

Datasets and Validation

The study primarily utilized the UK Biobank (UKB), featuring 87,478 fundus images from 52,742 participants. For external validation and biological context, the researchers employed FinnGen for colocalization analysis with clinical disease markers and the Human Eye Transcriptome Atlas to verify gene activity in specific eye tissues like the retina and macula.

Key Results

REECAP demonstrated significant improvements in both discovery power and clinical relevance compared to baseline models. The framework identified 178 independent genetic loci, outperforming the untuned RETFound (164 loci) and standard ResNet50 (94 loci). Notably, of the 27 loci that overlapped with major eye diseases, 14 were previously undetected by traditional GWAS using disease labels alone.

Predictive performance and generative visualization of retinal aging and disease risk.

Furthermore, REECAP embeddings proved superior at predicting the 5-year risk for glaucoma, age-related macular degeneration (AMD), and refraction disorders. The discovered genes were heavily enriched in pathways related to pigmentation, immune regulation, and oxidative stress—hallmarks of retinal aging. The generative component allowed clinicians to validate that the synthetic changes (e.g., narrowing vessels or altered peripheral brightness) were clinically plausible and aligned with known disease progression.

Discussion and Future Work

REECAP demonstrates that aging-informed embeddings can serve as powerful intermediate phenotypes for genetic discovery. By capturing the continuous spectrum of tissue change, the model identifies precursors of disease before clinical diagnosis.

However, limitations remain, particularly regarding ancestry bias, as the study was primarily conducted on individuals of European descent. Future work will focus on validating these findings in more diverse populations and extending the REECAP framework to other imaging modalities and biological axes, such as cardiovascular or metabolic health trajectories.

Summary updated

BibTeX
@misc{shilova2025reecap,
  author = {Lyubov Shilova and Daniel Sens and А. Алиева and Shubham Chaudhary and Qiang Xu and Emmanuelle Salin and Johannes Schiefelbein and Ben Asani and Oana V. Amarie and Elida Schneltzer and Ayellet V. Segrè and Julia A. Schnabel and Na Cai and Bjoern M. Eskofier and Francesco Paolo Casale},
  title = {{REECAP: Contrastive learning of retinal aging reveals genetic loci linking morphology to eye disease}},
  year = {2025},
  doi = {10.1101/2025.11.19.25340555},
  howpublished = {medRxiv},
}
Figure