Early detection of diabetic retinopathy