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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-nd-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-image
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- medical
|
| 9 |
+
- ophthalmology
|
| 10 |
+
- glaucoma
|
| 11 |
+
- OCT
|
| 12 |
+
- fundus
|
| 13 |
+
- RNFLT
|
| 14 |
+
- deep-learning
|
| 15 |
+
- tensorflow
|
| 16 |
+
- keras
|
| 17 |
+
pretty_name: Fundus2RNFLTNorm
|
| 18 |
+
viewer: false
|
| 19 |
---
|
| 20 |
+
|
| 21 |
+
# Dataset Card: Fundus2RNFLTNorm Weights
|
| 22 |
+
|
| 23 |
+
## Dataset Summary
|
| 24 |
+
|
| 25 |
+
Pretrained model weights for **Deep Learning Prediction of Personalized Peripapillary Retinal Nerve Fiber Layer Thickness Norms from Fundus Images in Glaucoma** (Yildiz et al., 2026).
|
| 26 |
+
|
| 27 |
+
Fundus2RNFLTNorm is a deep learning framework that predicts a personalized expected-normal retinal nerve fiber layer thickness (RNFLT) map from an OCT en face fundus image. The predicted RNFLT norm is intended to capture patient-specific retinal anatomy and can be compared with the observed RNFLT map to derive a personalized RNFLT deviation map for glaucoma research.
|
| 28 |
+
|
| 29 |
+
This repository provides the pretrained weights associated with the Fundus2RNFLTNorm project.
|
| 30 |
+
|
| 31 |
+
**Code:** https://github.com/Harvard-AI-and-Robotics-Lab/Fundus2RNFLTNorm
|
| 32 |
+
|
| 33 |
+
**Paper:** https://doi.org/10.64898/2026.05.26.26354081
|
| 34 |
+
|
| 35 |
+
## Dataset Details
|
| 36 |
+
|
| 37 |
+
### Dataset Description
|
| 38 |
+
|
| 39 |
+
| Field | Value |
|
| 40 |
+
|---|---|
|
| 41 |
+
| Institution | Harvard Ophthalmology AI Lab, Schepens Eye Research Institute of Massachusetts Eye and Ear, Harvard Medical School |
|
| 42 |
+
| Task | Personalized RNFLT normative map prediction |
|
| 43 |
+
| Input | OCT en face fundus image |
|
| 44 |
+
| Output | Predicted personalized expected-normal RNFLT map |
|
| 45 |
+
| Architecture | U-Net-based deep learning model |
|
| 46 |
+
| Framework | TensorFlow / Keras |
|
| 47 |
+
| Input resolution | 256 × 256 |
|
| 48 |
+
| Model weights | `octfundus_to_rnflt_model.h5` |
|
| 49 |
+
| License | CC BY-NC-ND 4.0 |
|
| 50 |
+
|
| 51 |
+
- **Authors:** Elif Yildiz, Lucy Zha, Nazlee Zebardast, Min Shi, Mengyu Wang
|
| 52 |
+
- **Contact:** harvardophai@gmail.com, harvardairobotics@gmail.com
|
| 53 |
+
|
| 54 |
+
### Model File
|
| 55 |
+
|
| 56 |
+
| File | Description |
|
| 57 |
+
|---|---|
|
| 58 |
+
| `octfundus_to_rnflt_model.h5` | Pretrained OCT en face fundus → personalized RNFLT norm prediction model |
|
| 59 |
+
|
| 60 |
+
## How to Download
|
| 61 |
+
|
| 62 |
+
### Download from the Hugging Face website
|
| 63 |
+
|
| 64 |
+
Open **Files and versions** and download:
|
| 65 |
+
|
| 66 |
+
```text
|
| 67 |
+
octfundus_to_rnflt_model.h5
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
Place the downloaded file in the `checkpoint/` directory of the Fundus2RNFLTNorm GitHub repository:
|
| 71 |
+
|
| 72 |
+
```text
|
| 73 |
+
Fundus2RNFLTNorm/
|
| 74 |
+
├── checkpoint/
|
| 75 |
+
│ └── octfundus_to_rnflt_model.h5
|
| 76 |
+
├── models/
|
| 77 |
+
├── samples/
|
| 78 |
+
├── utils/
|
| 79 |
+
├── infer.py
|
| 80 |
+
├── inference.ipynb
|
| 81 |
+
├── octfundus2rnflt.py
|
| 82 |
+
├── requirements.txt
|
| 83 |
+
└── train.py
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Download with Hugging Face Hub
|
| 87 |
+
|
| 88 |
+
```bash
|
| 89 |
+
pip install -U huggingface_hub
|
| 90 |
+
|
| 91 |
+
hf download harvardairobotics/Fundus2RNFLTNorm \
|
| 92 |
+
octfundus_to_rnflt_model.h5 \
|
| 93 |
+
--repo-type dataset \
|
| 94 |
+
--local-dir checkpoint
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
## Usage
|
| 98 |
+
|
| 99 |
+
The released implementation uses:
|
| 100 |
+
|
| 101 |
+
- Python 3.8
|
| 102 |
+
- TensorFlow 2.4.0
|
| 103 |
+
- OpenCV-Python 4.5.5
|
| 104 |
+
|
| 105 |
+
Clone the code repository:
|
| 106 |
+
|
| 107 |
+
```bash
|
| 108 |
+
git clone https://github.com/Harvard-AI-and-Robotics-Lab/Fundus2RNFLTNorm.git
|
| 109 |
+
cd Fundus2RNFLTNorm
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
Load a sample OCT en face fundus image:
|
| 113 |
+
|
| 114 |
+
```python
|
| 115 |
+
from octfundus2rnflt import *
|
| 116 |
+
import cv2
|
| 117 |
+
import numpy as np
|
| 118 |
+
|
| 119 |
+
oct_fundus = cv2.resize(
|
| 120 |
+
cv2.imread("samples/sample_oct_fundus.png", 0),
|
| 121 |
+
(256, 256)
|
| 122 |
+
)
|
| 123 |
+
|
| 124 |
+
img = np.array([
|
| 125 |
+
np.transpose(
|
| 126 |
+
np.array([oct_fundus, oct_fundus, oct_fundus]),
|
| 127 |
+
(1, 2, 0)
|
| 128 |
+
)
|
| 129 |
+
])
|
| 130 |
+
|
| 131 |
+
mask = np.ones_like(img)
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
Load the pretrained model:
|
| 135 |
+
|
| 136 |
+
```python
|
| 137 |
+
octfundus2rnflt = PCModel(img_rows=256, img_cols=256)
|
| 138 |
+
|
| 139 |
+
octfundus2rnflt.load(
|
| 140 |
+
"checkpoint/octfundus_to_rnflt_model.h5",
|
| 141 |
+
train_bn=False,
|
| 142 |
+
lr=0.00001
|
| 143 |
+
)
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
Generate the predicted personalized RNFLT norm map:
|
| 147 |
+
|
| 148 |
+
```python
|
| 149 |
+
pred = octfundus2rnflt.model.predict([img, mask])[0][:, :, 0]
|
| 150 |
+
|
| 151 |
+
plot_2dmap(pred, show_cup=True)
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
A complete example is provided in `inference.ipynb` in the GitHub repository.
|
| 155 |
+
|
| 156 |
+
> **Compatibility note:** Earlier versions of the GitHub code refer to the checkpoint as `octfundus_to_rnflt_new2.final.h5`. If using such a version, either update the checkpoint path in the code to `octfundus_to_rnflt_model.h5` or rename the downloaded file accordingly.
|
| 157 |
+
|
| 158 |
+
## Study Overview
|
| 159 |
+
|
| 160 |
+
The model was developed using OCT scans and visual fields from the Massachusetts Eye and Ear Glaucoma Service. In the associated study, 10,000 OCT scans with normal visual fields were used for model training, and 8,000 additional OCT scans were used for evaluation.
|
| 161 |
+
|
| 162 |
+
The model predicts patient-specific expected-normal RNFLT maps from OCT en face fundus images. These predictions can be compared with observed RNFLT maps to generate personalized RNFLT deviation maps and support research into glaucoma structure-function relationships.
|
| 163 |
+
|
| 164 |
+
## Uses
|
| 165 |
+
|
| 166 |
+
### Direct Use
|
| 167 |
+
|
| 168 |
+
The pretrained weights are intended for research applications including:
|
| 169 |
+
|
| 170 |
+
- Reproducing the Fundus2RNFLTNorm model without retraining
|
| 171 |
+
- Predicting personalized expected-normal RNFLT maps from OCT en face fundus images
|
| 172 |
+
- Generating personalized RNFLT deviation maps
|
| 173 |
+
- Investigating glaucoma structure-function relationships
|
| 174 |
+
- Developing and evaluating personalized OCT normative modeling methods
|
| 175 |
+
|
| 176 |
+
### Out-of-Scope Use
|
| 177 |
+
|
| 178 |
+
These weights are provided for research purposes only.
|
| 179 |
+
|
| 180 |
+
They are not intended for autonomous clinical diagnosis, clinical decision-making, treatment selection, or direct patient care. The associated study was released as a preprint and should be interpreted in that context.
|
| 181 |
+
|
| 182 |
+
## Training Data
|
| 183 |
+
|
| 184 |
+
The underlying clinical data are private, internal data owned by Massachusetts Eye and Ear and are not distributed through this repository.
|
| 185 |
+
|
| 186 |
+
The associated study used:
|
| 187 |
+
|
| 188 |
+
- 10,000 OCT scans with normal visual fields for training
|
| 189 |
+
- 8,000 OCT scans for evaluation, including 2,419 scans with normal visual fields
|
| 190 |
+
|
| 191 |
+
See the associated publication for complete cohort definitions and evaluation methodology.
|
| 192 |
+
|
| 193 |
+
## Access
|
| 194 |
+
|
| 195 |
+
The weights are released under the **CC BY-NC-ND 4.0** license for non-commercial research use.
|
| 196 |
+
|
| 197 |
+
The “Harvard” designation indicates that this research originated from investigators affiliated with the Department of Ophthalmology at Harvard Medical School and Massachusetts Eye and Ear. It does not imply endorsement, sponsorship, or assumption of responsibility by Harvard University or Harvard Medical School.
|
| 198 |
+
|
| 199 |
+
## Citation
|
| 200 |
+
|
| 201 |
+
If you use the Fundus2RNFLTNorm code or pretrained weights, please cite:
|
| 202 |
+
|
| 203 |
+
```bibtex
|
| 204 |
+
@article{yildiz2026rnfltnorm,
|
| 205 |
+
title={Deep Learning Prediction of Personalized Peripapillary Retinal Nerve Fiber Layer Thickness Norms from Fundus Images in Glaucoma},
|
| 206 |
+
author={Yildiz, Elif and Zha, Lucy and Zebardast, Nazlee and Shi, Min and Wang, Mengyu},
|
| 207 |
+
journal={medRxiv},
|
| 208 |
+
year={2026},
|
| 209 |
+
doi={10.64898/2026.05.26.26354081},
|
| 210 |
+
url={https://pubmed.ncbi.nlm.nih.gov/42245038/}
|
| 211 |
+
}
|
| 212 |
+
```
|
| 213 |
+
|
| 214 |
+
## Contact
|
| 215 |
+
|
| 216 |
+
For questions about the pretrained model or code, please contact:
|
| 217 |
+
|
| 218 |
+
- harvardophai@gmail.com
|
| 219 |
+
- harvardairobotics@gmail.com
|