KaplanMeier plots for the prediction of DR progression. The x axis indicates the time in years. The y axis is the survival probability, measuring the probability of no DR progressing in 5 years. One-sided log-rank test was used for the comparison between the low-risk and high-risk groups. The P values for the internal test set and the external validation datasets 1, 2, 4 and 5 are 1.554 x 10 -41 , 3.258 x 10 -46 , 4.867 x 10 -17 , 2.946 x 10 -19 and 1.888 x 10 -4 , respectively.