Diagnosing pathologic myopia by identifying morphologic patterns using ultra widefield images with deep learning

Yang Liu, Keming Zhao, Lihui Luo, Ziheng Zhang, Zhenghang Qian, Cenk Jiang, Zhicheng Du, Simin Deng, Chengming Yang, Duanpo Wu, Shuai Wang, Xingru Huang, Chenggang Yan, Yingting Zhu, Yehong Zhuo, Chunsheng Qu, Jiaqi Chen, Zhenqiang Huang, Chenying Lu, Minjiang Chen, Dongmei Yu, Jiantao Wang, Peiwu Qin, Jiansong JiNpj Digit. Medicine 2025

Introduction

Pathologic myopia (PM) is a leading cause of irreversible blindness worldwide. While deep learning has significantly advanced myopia screening, most existing models utilize standard Color Fundus Photography (CFP), which provides a limited 30–60 degree view of the retina. This narrow field of view often fails to capture critical lesions in the periphery. Furthermore, clinical adoption of AI is hindered by the "black box" nature of many models and the challenge of data imbalance, where rare pathological features are difficult for standard algorithms to learn.

To address these challenges, researchers introduced RealMNet, a lightweight deep learning framework designed for PM diagnosis using ultra-widefield (UWF) retinal images.

Methods

RealMNet is an end-to-end framework built on a TinyViT backbone, optimized for both performance and clinical deployment. The framework incorporates several key innovations:

  • Knowledge Distillation: A "teacher-student" approach is employed where a small student model (21M parameters) is trained to mimic a high-performance teacher model, ensuring a lightweight architecture suitable for real-time clinical use.
  • Asymmetric Focusing: To handle data imbalance, cost-sensitive calibration adjusts the loss function, forcing the model to prioritize rare, difficult-to-detect positive samples.
  • Classifier Adaptation: A multi-head residual attention mechanism combines class-agnostic structural features with class-specific lesion patterns.
  • Interpretability: Enhanced Grad-CAM++ generates heatmaps that align with anatomical regions clinicians typically inspect, such as the macula for atrophy and the peripheral "dark gray ring" for staphyloma.
Overview of the RealMNet framework, including data processing, model architecture, and evaluation strategies.

Dataset: PSMM

The study utilized the PSMM (Posterior Staphyloma and Myopic Maculopathy) dataset, comprising 43,371 UWF images from 4,560 patients across five hospitals. Images were expert-annotated for posterior staphyloma (PS) and five grades of myopic maculopathy based on META-PM criteria. To demonstrate the necessity of UWF, the researchers also tested the model on "fake CFP" images created by cropping the UWF data.

Results and Discussion

RealMNet achieved an F1 Score of 0.7970, a mean Average Precision (mAP) of 0.8497, and an AUROC of 0.9745. Notably, the model trained on UWF images significantly outperformed those trained on cropped CFP images, confirming that peripheral information is essential for accurate PM diagnosis.

Detail of the RealMNet architecture featuring knowledge distillation and classifier adaptation.

Despite having only 21 million parameters, RealMNet outperformed massive foundation models like DINOv2 and VisionFM (~86M parameters), suggesting that task-specific optimization can be more effective than general-purpose scaling in medical contexts. The model also demonstrated "cyclic-source generalizability," maintaining performance across different clinical sites.

Conclusion

RealMNet provides a robust, interpretable, and efficient solution for diagnosing pathologic myopia using UWF imaging. While future work is needed to identify rare "plus" lesions and integrate 3D multimodal data (like OCT), this framework represents a significant step toward deploying high-performance AI in real-world ophthalmic workflows.

Summary updated

BibTeX
@article{liu2025diagnosing,
  author = {Yang Liu and Keming Zhao and Lihui Luo and Ziheng Zhang and Zhenghang Qian and Cenk Jiang and Zhicheng Du and Simin Deng and Chengming Yang and Duanpo Wu and Shuai Wang and Xingru Huang and Chenggang Yan and Yingting Zhu and Yehong Zhuo and Chunsheng Qu and Jiaqi Chen and Zhenqiang Huang and Chenying Lu and Minjiang Chen and Dongmei Yu and Jiantao Wang and Peiwu Qin and Jiansong Ji},
  title = {{Diagnosing pathologic myopia by identifying morphologic patterns using ultra widefield images with deep learning}},
  journal = {Npj Digit. Medicine},
  year = {2025},
  doi = {10.1038/s41746-025-01849-y},
}
Figure