Skip to main content
Dryad

Data from: Detecting diabetic retinopathy through machine learning on electronic health record data from an urban, safety net healthcare system

Data files

Sep 21, 2026 version files 5.17 MB

Click names to download individual files

Abstract

Diabetic retinopathy is a major diabetes-related eye complication and an important cause of preventable vision loss. Timely identification of patients at higher risk can help healthcare systems prioritize screening and follow-up care. This dataset contains de-identified electronic health record data used to develop, test, and externally validate machine learning models for predicting the presence of diabetic retinopathy among patients with diabetes in a large urban public safety net healthcare system. The data include clinical and demographic predictors such as duration of diabetes, hemoglobin A1C, blood urea nitrogen, age, systolic and diastolic blood pressure, hemoglobin, sex, ethnicity, insulin dependence, nephropathy, neuropathy, stroke, and triglycerides.

The dataset is organized into three analytic cohorts. The training and internal test cohorts were derived from 40,631 unique patients with diabetes seen between January 1, 2015, and December 31, 2017. A random 67% of this dataset, consisting of 27,223 cases, was used for model training and cross-validation, while the remaining 33%, consisting of 13,408 cases, was reserved as an internal test set. A temporally distinct cohort of 9,300 patients seen between January 1, 2018, and December 31, 2018, was used as an external validation set. For each cohort, this submission provides two versions of the data: original de-identified data with missing values retained where applicable and imputed data used for machine learning analyses. These files support reproducibility of the associated machine learning analyses and further development of diabetic retinopathy risk prediction approaches using structured EHR data. The data support the associated JAMIA Open publication, the DRRisk web-based prediction tool, and its publication. All protected health information was removed, and the study was approved by the Charles R. Drew University of Medicine and Science Institutional Review Board.