Automatic detection of diabetic retinopathy and its progression in sequential fundus images of patients with diabetes