Abstract:AIM: To develop a useful diabetic retinopathy (DR) screening tool for patients with type 2 diabetes mellitus (T2DM). METHODS: A DR prediction model based on the Logistic regression algorithm was established on the development dataset containing 778 samples (randomly assigned to the training dataset and the internal validation dataset at a ratio of 7:3). The generalization capability of the model was assessed using an external validation dataset containing 128 samples. The DR risk calculator was developed through WeChat Developer Tools using JavaScript, which was embedded in the WeChat Mini Program. RESULTS: The model revealed risk factors (duration of diabetes, diabetic nephropathy, and creatinine level) and protective factors (annual DR screening and hyperlipidemia) for DR. In the internal and external validation, the recall ratios of the model were 0.92 and 0.89, respectively, and the area under the curve values were 0.82 and 0.70, respectively. CONCLUSION: The DR screening tool integrates education, risk prediction, and medical advice function, which could help clinicians in conducting DR risk assessments and providing recommendations for ophthalmic referral to increase the DR screening rate among patients with T2DM.