Model card: correct training data, output, held-out results and scope, in line with the paper
Browse files11 unmodified lines1213141516171819204 unmodified lines25262728293031323334353637381 unmodified line40414243444546471 unmodified line49505152535455565758596061626311 unmodified lines# CM-Oculomics fine-tuned weightsFine-tuned DINOv2 ViT-L/14 weights (`dino_deploy.pth`) for predicting anti-VEGFintolerance in diabetic retinopathy from a single pretreatment colour fundusphotograph.**This is a research prototype. It is not a medical device and must not be usedto guide patient care.**4 unmodified lines|---|---|| Backbone | DINOv2 ViT-L/14 (Meta AI), Apache-2.0 || Input | one colour fundus photograph, 224 x 224 || Output | probability of anti-VEGF intolerance, plus a Grad-CAM map || Training data | 489 patients, 988 photographs, single centre (Longhua Hospital, Shanghai) || Preprocessing | burned-in acquisition overlays outside the fundus disc are masked to black before training and inference || Label | progression to proliferative diabetic retinopathy after six consecutive monthly ranibizumab injections |## Reported performance- Internal, five-fold cross-validation: patient-level AUC 0.914 (95% CI 0.870-0.951), image-level 0.952- Run-to-run spread over three independent training runs: image-level 0.945 +/- 0.006- External, zero fine-tuning, DDR (proliferative vs non-proliferative proxy): AUC 0.9341 unmodified linePerformance depends strongly on the cohort. Applied without fine-tuning to sevenpublic cohorts on three continents, external AUC ranged from **0.698 to 0.970**.The spread attributable to cohort (0.140) was roughly 2.6-fold that attributableto the choice of pretraining strategy (0.054).We tested whether that dependence can be anticipated from unlabelled targetimages alone, using four published estimators of out-of-distribution performance1 unmodified linethresholded confidence) and five simpler label-free signals. **None of thempredicted which cohorts the model would transfer to**, and the estimators weresystematically optimistic: mean absolute error 0.180 to 0.244 against 0.094 forsimply guessing the mean observed accuracy.**Validate locally before use outside the development population.** Around 50labelled target images bound balanced accuracy to within +/-0.10, and a median of90 to within +/-0.05.Further limitations: the development cohort is single-centre and retrospective,the intolerant class has 95 images, the held-out test set contains 11proliferative events, and the endpoint is an outcome-anchored proxy rather than aper-injection refractoriness criterion.## Licence11 unmodified lines1213141516171819204 unmodified lines2526272829303132333435363738391 unmodified line4142434445464748491 unmodified line515253545556575859606162636465666711 unmodified lines# CM-Oculomics fine-tuned weightsFine-tuned DINOv2 ViT-L/14 weights (`dino_deploy.pth`) for predicting progression toproliferative diabetic retinopathy during an anti-VEGF course ("anti-VEGF intolerance"in the paper) from a single pretreatment colour fundus photograph.**This is a research prototype. It is not a medical device and must not be usedto guide patient care.**4 unmodified lines|---|---|| Backbone | DINOv2 ViT-L/14 (Meta AI), Apache-2.0 || Input | one colour fundus photograph, 224 x 224 || Output | a model risk score in [0, 1] (not a calibrated probability: it overstates absolute risk), plus a Grad-CAM map || Training data | cross-validation folds 1-4 of a single-centre cohort (639 images, 57 intolerant; Longhua Hospital, Shanghai), early stopping on fold 0 (166 images); the held-out test split was never used || Preprocessing | identifying text burned into two cameras' images was removed outside the fundus disc before training; images are resized to 224 x 224 at inference || Label | progression to proliferative diabetic retinopathy after six consecutive monthly ranibizumab injections |## Reported performance- Internal, five-fold cross-validation: patient-level AUC 0.914 (95% CI 0.870-0.951), image-level 0.952 (optimistic: early stopping used the evaluated fold)- Held-out test split (140 images, 11 intolerant), five-seed ensemble: image-level AUC 0.930 (0.877-0.973); at the cross-validation threshold of 0.62 sensitivity was only 0.55- Run-to-run spread over three independent training runs: image-level 0.945 +/- 0.006- External, zero fine-tuning, DDR (proliferative vs non-proliferative proxy): AUC 0.9341 unmodified linePerformance depends strongly on the cohort. Applied without fine-tuning to sevenpublic cohorts on three continents, external AUC ranged from **0.698 to 0.970**.It varied more between cohorts than between pretraining strategies: the mean AUC ofthe Chinese cohorts exceeded that of the non-Chinese cohorts by 0.140, whereas thepooled difference between the two backbones was 0.054 and not consistent in direction.We tested whether that dependence can be anticipated from unlabelled targetimages alone, using four published estimators of out-of-distribution performance1 unmodified linethresholded confidence) and five simpler label-free signals. **None of thempredicted which cohorts the model would transfer to**, and the estimators weresystematically optimistic: mean absolute error 0.180 to 0.244 against 0.094 fora constant equal to the mean observed accuracy (which itself needs target labels).The estimators were applied across a change of task and class prevalence.**Validate locally before use outside the development population.** In class-balancedpublic cohorts, 50 labelled target images bounded balanced accuracy to within +/-0.10and a median of 87 (range 25-200) to within +/-0.05; a site with fewer intoleranteyes will need more. Set the decision threshold on local data.Further limitations: the development cohort is single-centre and retrospective,the intolerant class has 95 images, the held-out test set contains 11proliferative events, the photographs come from three camera set-ups, and the endpoint is an outcome-anchored proxy rather than aper-injection refractoriness criterion.## Licence
README.md+18-14