A multimodal visual-language foundation model for computational ophthalmology

Danli Shi, Weiyi Zhang, Jiancheng Yang, Siyu Huang, Xiaolan Chen, Pusheng Xu, Kai Jin, Shan Lin, Jin Wei, Mayinuer Yusufu, Shunming Liu, Qing Zhang, Zongyuan Ge, Xun Xu, Mingguang HeNpj Digit. Medicine 2025

Abstract

EyeCLIP is a multimodal visual-language foundation model for ophthalmology trained on a massive dataset of 2.77 million images across 11 modalities and clinical text. By combining self-supervised reconstruction with image-image and image-text contrastive learning, it achieves state-of-the-art performance in zero-shot disease diagnosis, visual question answering (VQA), and predicting systemic conditions like stroke and dementia from retinal scans.

Introduction

Most existing AI models in ophthalmology are "siloed," focusing on a single imaging modality (like fundus photos or OCT scans) and specific tasks. However, real-world clinical practice involves multiple types of examinations to provide a complete picture of a patient's health. Furthermore, many eye diseases are rare, creating a "long-tail" distribution where there isn't enough labeled data to train traditional supervised models. EyeCLIP aims to bridge these gaps by creating a universal "shared representation" of the eye that works across all common imaging types and links them to clinical terminology.

Methods

EyeCLIP builds upon the CLIP (Contrastive Language-Image Pre-training) architecture but introduces a sophisticated three-pronged pretraining strategy:

  1. Self-supervised Reconstruction: Using a Masked Autoencoder (MAE) approach, the model learns to reconstruct missing parts of an image, forcing the encoder to understand the underlying structural anatomy of the eye.
  2. Multimodal Image Contrastive Learning: The model is trained to recognize that different views of the same eye (e.g., an OCT scan and a fundus photo from the same patient) represent the same underlying reality, creating "modality-invariant" embeddings.
  3. Image-Text Contrastive Learning: The model aligns images with hierarchical keywords extracted from over 11,000 clinical reports.

Crucially, EyeCLIP uses a unified encoder for all 11 modalities, rather than modality-specific encoders, making it more scalable and better at transferring knowledge between different types of scans.

Datasets

The model was pretrained on a massive multi-center dataset from China containing 2,777,593 images and 11,180 reports from 128,554 patients. It covers 11 modalities, including Color Fundus Photography (CFP), OCT, Ultrasound (BUS), and Fluorescein Angiography (FFA).

Overview of the development dataset and multimodal characteristics.

Evaluation was conducted on 14 benchmark datasets across multiple countries, including single-modality sets (IDRiD, APTOS2019, MESSIDOR2, PAPILA, OCTID, OCTDL), multimodal sets (AngioReport, Retina Image Bank), and systemic disease data from the UK Biobank.

Key Results and Insights

EyeCLIP demonstrated superior performance across a wide range of downstream tasks, significantly outperforming existing foundation models like RETFound and BioMedCLIP.

Comprehensive downstream performance across classification, VQA, and retrieval tasks.
  • Zero-Shot Versatility: EyeCLIP achieved AUROCs up to 0.800 for OCT and 0.757 for Diabetic Retinopathy without any task-specific training. It also excelled in "few-shot" scenarios, identifying rare conditions with as few as 16 labeled examples.
  • Oculomics (Systemic Prediction): The model successfully identified "retinal fingerprints" for systemic diseases on the UK Biobank dataset, reaching an AUROC of 0.641 for stroke and 0.596 for myocardial infarction.
  • Visual Question Answering: When integrated with Llama2-7b, EyeCLIP ranked first in exact matching and F1 scores on the OphthalVQA benchmark.
  • Cross-Modal Retrieval: On the AngioReport dataset, it achieved a mean recall of 44.1% for text-to-image retrieval.

Discussion and Limitations

Ablation studies revealed that the image self-reconstruction (MAE) component was the most critical for performance, suggesting that learning basic ocular anatomy is a prerequisite for high-level disease alignment.

While the model generalized well to international datasets, the authors noted potential ethnic bias as the training data was primarily from Chinese cohorts. Future iterations aim to incorporate full 3D volumetric information from OCT scans and develop more specialized interpretability frameworks to establish explicit causal links in multimodal interactions.

Summary updated

BibTeX
@article{shi2025multimodal,
  author = {Danli Shi and Weiyi Zhang and Jiancheng Yang and Siyu Huang and Xiaolan Chen and Pusheng Xu and Kai Jin and Shan Lin and Jin Wei and Mayinuer Yusufu and Shunming Liu and Qing Zhang and Zongyuan Ge and Xun Xu and Mingguang He},
  title = {{A multimodal visual-language foundation model for computational ophthalmology}},
  journal = {Npj Digit. Medicine},
  year = {2025},
  doi = {10.1038/s41746-025-01772-2},
}
Figure