This study aims to analyze the application and clinical translation value of the self-evolving machine learning methods in predicting diabetic retinopathy and visualizing clinical outcomes. A retrospective study was conducted on 300 diabetic patients admitted to our hospital between January 2022 and October 2023. The patients were divided into a diabetic retinopathy group (n=150) and a non-diabetic retinopathy group (n=150). The improved Beetle Antennae Search (IBAS) was used for hyperparameter optimization in machine learning, and a self-evolving machine learning model based on XGBoost was developed. Value analysis was performed on the predictive features for diabetic retinopathy selected through multifactor logistic regression analysis, followed by the construction of a visualization system to calculate the risk of diabetic retinopathy occurrence. Multifactor logistic regression analysis revealed that being male, having a longer disease duration, higher systolic blood pressure, fasting blood glucose, glycosylated hemoglobin, low-density lipoprotein cholesterol, and urine albumin-to-creatinine ratio were risk factors for the development of diabetic retinopathy, while non-pharmacological treatment was a protective factor. The self-evolving machine learning model demonstrated significant performance advantages in early diagnosis and prediction of diabetic retinopathy occurrence. The application of the self-evolving machine learning models can assist in identifying features associated with diabetic retinopathy in clinical settings, enabling early prediction of disease occurrence and aiding in the formulation of treatment plans to improve patient prognosis.