A, Receiver operating characteristic curves for teacher, student, and bespoke manually coded models on the Messidor-2 internal data set. B, Respective model performance on the EyePACS internal data set. C, Respective model performance on the Egypt external data set. Ground-truth labels were adjudicated (Messidor-2) or arbitrated (EyePACS and Egypt).