An Automated Diabetic Retinopathy Detection System