As the leading cause of vision loss in working-age adults, diabetic retinopathy requires routinely retinal screening. Here the authors develop a deep learning system that can facilitate the screening by providing real-time image quality assessment, lesions detection, and grades across the disease spectrum.