Introduction

Diabetic retinopathy (DR) is the leading cause of preventable visual loss in adults aged 20–74 years and the seventh most common cause of blindness globally1,2. As diabetes prevalence increases to 10.9% by 2045 and diabetic retinopathy impacts more than a third of diabetic patients, DR is projected to affect one in 28 individuals worldwide1,3. Despite glycemic exposure being the main risk factor of DR, 18–21% of diabetic patients with intensive glycemic control (glycated hemoglobin [HbA1C] < 7.0) or duration less than 10 years still develop DR4. Hence, it is essential to identify other risk factors in the natural course of DR.

Unlike pure hyperglycemia, metabolic derangements in diabetic ketoacidosis (DKA) results from combined effects of elevated counterregulatory hormones (glucagon, epinephrine) and insulin deficiency5. Various contributing factors beyond poor compliance are acknowledged in DKA, such as stressors, newly diagnosed type 2 diabetes (T2D)6. Recent studies demonstrate that DKA has a distinct long-term impact on the central nervous system, including an increased incidence of Alzheimer’s disease and stroke7,8. Moreover, DKA recurrence at approximately 21.6% exposes patients to repeated insults9. Patients who manifest proliferative DR (PDR) 5 years after T2D diagnosis exhibit significantly higher proportion of DKA history than those without10. The presence of ketone bodies in the cerebrospinal fluid in patients with DKA underscores their ready penetration through blood-brain barrier (BBB) and their incomplete metabolism in central nervous system11. Subsequent neuroinflammation triggered by DKA after BBB breakdown shares pivotal chemokines in pathogenic pathway of DR12. Given the physical and functional similarities of BBB and blood-retinal barrier (BRB), and the crucial role of damaged BRB in DR development, evaluating the impact of DKA on DR risk and progression is essential for improving the cost-effectiveness of DR screening.

To our knowledge, this is the first study to investigate the influence of DKA on the development of DR in individuals with T2D, which accounts for over 99% of the diabetic population and 30–32% of DKA13,14,15. We aimed to study the effects of acidosis and ketosis on DR, while minimizing bias from variations in baseline diabetes status, using a national cohort matched for medication regimen, gender and birth and diabetes onset year. We also examined the DKA onset and the time from T2D to DKA in relation to DR severity.

.

Methods

Data source

We conducted a retrospective cohort study using data from the National Health Insurance Research Database (NHIRD), a comprehensive longitudinal dataset that covers over 99% of the Taiwanese population through mandatory enrollment16. This database provides reliable healthcare information, such as diagnosis codes (International Classification of Diseases, Ninth Revision and Tenth Revision, Clinical Modification [ICD-9-CM, ICD-10-CM]), prescription details (dosages and dates), ophthalmologic procedures. The high quality of NHIRD has been demonstrated through studies focusing on diabetes and DR17. Our study cohort consisted of a random subset of two million individuals from the NHIRD, also known as the Longitudinal Generation Tracking Database (LGTD). The follow-up period lasted two decades, from 2000 to 2019. This study was approved by the Ethics Institutional Review Board of Chang Gung Memorial Hospital (202201107B1).

Study design

We identified newly-diagnosed T2D patients who had ≥ 1 hospitalization or ≥ 3 outpatient visits for T2D within a year (ICD-9-CM codes: 250 excluding 250.x1 or 250.x3; ICD-10-CM codes: E11) (Fig. 1, Supplementary Fig. 1)18,19. We excluded those with type 1 diabetes (ICD-9-CM codes: 250.x1, 250.x3; ICD-10-CM codes: E10), < 18 years of age, cancer history (ICD-9-CM codes: 140–208; ICD-10-CM codes: C00-C97), DKA preceding T2D, mortality during hospitalization due to DKA or within 3 months following the diagnosis of T2D or a lack of anti-diabetic prescription within the initial 3 months after T2D diagnosis. We matched each DKA patient having ≥ 1 DKA hospitalization (see Supplementary Table 1 for coding numbers) with one T2D patient without DKA by birth year, T2D diagnosis year, gender, and the initial pattern of anti-diabetic combination for 3 months at the outpatient department. Given the absence of biochemical data in NHIRD, this approach aimed to mitigate potential confounding related to baseline T2D status between groups and to better clarify the effect of DKA on DR at the population level. Glucose-lowering drugs were categorized by their mechanisms of action using the Anatomical Therapeutic Chemical code (ATC-code) before medication-matching (Supplementary Table 2). The three-month period was chosen as it aligns with HbA1C’s capacity to reflect average blood glucose levels over the same duration20. We analyzed and matched the initial anti-diabetic combination in the DKA group with the non-DKA group, considering only the medication classes from the prescription record ≥ 28 days, corresponding to one refill cycle for chronic disease prescriptions in NHIRD (Supplementary Fig. 2 A). The index date for the DKA group was the discharge date from DKA hospitalization if the duration from the initial diagnosis of T2D to DKA (T2D-to-DKA duration) exceeded 3 months; otherwise, it was 3 months after T2D diagnosis (Supplementary Fig. 2B)21. The non-DKA control had a pseudo-index date same as the matched individual with DKA to minimize immortal time bias. The matched pairs did not exhibit any outcomes or experience mortality before their respective index or pseudo-index dates.

Fig. 1
figure 1

The selection flow chart. LGTD: Longitudinal Generation Tracking Database. T2D: type 2 diabetes. T1D: type 1 diabetes. DKA: diabetic ketoacidosis. DME: diabetic macular edema. VH: vitreous hemorrhage. RD: retinal detachment. PDR: proliferative diabetic retinopathy. NPDR: nonproliferative diabetic retinopathy. IVI: intravitreal injection. PRP: panretinal photocoagulation. PPV: pars plana vitrectomy.

Outcomes

Our study aimed to evaluate DR and diabetes-related ocular complications (diabetic macular edema [DME] and retinal detachment [RD]) between DKA and non-DKA groups, which were recorded on ≥ 3 outpatient visits or ≥ 1 inpatient diagnosis (see Supplementary Table 1 for coding numbers). To better recognize the effect of DKA on different stages of DR, we classified DR into non-proliferative diabetic retinopathy (NPDR) and proliferative diabetic retinopathy (PDR), as the progression of NPDR to PDR was the main cause of visual decline and ophthalmologic complications (see Supplementary Table 1 for coding numbers). In cases where an individual received both PDR and NPDR diagnoses, we defined DR based on the first incidence to occur. Ophthalmologic procedures and surgical intervention that are performed to prevent advanced DR or at visual-threatening stage were also analyzed, including panretinal photocoagulation (PRP), pars plana vitrectomy (PPV) and intravitreal injection (IVI) (see Supplementary Table 3 for payment codes for surgery).

Statistical analysis

The study individuals were followed from T2D diagnosis until study outcomes, death or the end of 2019. Comorbidities that could affect DR progression were identified, including hypertension, coronary artery disease, chronic kidney disease (CKD), dialysis, chronic obstructive pulmonary disease (COPD), smoking, obesity, liver cirrhosis, autoimmune diseases (e.g. polymyositis, dermatomyositis, systemic lupus erythematosus, Sjogren’s disease, rheumatoid arthritis) (see Supplementary Table 1 for coding numbers)22,23. Additionally, We extracted medications previously demonstrated to either benefit DR prevention or be associated with a higher risk of vitreous hemorrhage, specifically if exposure ≥ 90 days within a year before index date was confirmed, such as statin, antiplatelets and anticoagulants17,24. Continuous variables were presented as means with standard deviation (SD) or median with lower and upper quartiles (Q1 and Q3), and categorical variables were reported as numbers and percentages. Categorical variables were assessed using Pearson’s χ2 test. To evaluate the subdistribution hazard ratio (SHR) between the two groups while considering death as a competing risk, we employed the Fine and Gray competing risk model25. Adjusted SHR were calculated to account for covariates showing significant differences between the two groups, including income level, CKD, COPD, smoking, obesity, use of antiplatelets/anticoagulation, and use of statins. To ensure model stability, multicollinearity diagnostics were performed: variance inflation factors (VIFs) for all covariates were < 5, and pairwise Cramer’s V coefficients for categorical variables were < 0.5, indicating no significant collinearity26. Covariates were retained based on clinical relevance, statistical significance, and absence of critical collinearity. Cumulative incidence of outcomes and statistical significance were assessed using Gray’s test. Furthermore, we used restricted cubic splines with four knots at fixed percentiles (5th, 35th, 65th, and 95th) to model continuous variables, including age at onset (or pseudo-onset) of DKA and the T2D-to-DKA duration, with DR, NPDR, PDR and PRP. Statistical significance was established for two-sided P values < 0.05. All analyses were conducted using SAS. Version 9.4 (SAS Inc., Cary, NC, USA).

Results

Demographics

A total of 288,542 patients with the diagnosis of T2D were enrolled for this study. Among those eligible patients, 1,815 were in the DKA group and 133,382 were in the non-DKA group. After one-to-one ratio matching, 1,007 patients enrollees in each group were analyzed (Table 1). The study population had a mean age of 52 years old at T2D diagnosis and 58.2% was male. The median follow-up duration for death was 6.4 years for the DKA group and 8.6 years for the non-DKA group. The mean duration from the diagnosis of T2D to DKA was 47.7 months. Baseline comorbidities were similar between groups, except CKD, COPD, smoking, and obesity. The predominance of CKD and COPD and/or smoking in DKA group may account for the fact that urinary tract infections and pneumonia commonly serve as most common precipitating factors for DKA27. Metformin was the most common glucose-lowering drug that > 60% of patients received during the first 3 months in both groups, aligning with the prevailing consensus of its status as a first-line therapy for diabetes. None of the patients in either group received glucagon-like peptide 1 (GLP-1) or sodium–glucose cotransporter 2 (SGLT2) inhibitors during the initial 3-month period following diagnosis. During the one-year period before the index/pseudo-index date, a higher proportion of non-DKA group patients were administered antiplatelets/anticoagulation and statins.

Table 1 Baseline characteristics of individuals enrolled in the study.

Association between DKA and risks of DR and PRP

The 2,014 patients had a total of 130 (12.9%) and 182 (18.1%) encounters of DR in non-DKA group and DKA group respectively (Table 2). Given the higher risk of death in DKA group (HR, 3.42; CI, 2.78–4.21; P < 0.001), which escalated with the onset age of DKA and T2D-to-DKA duration, the Fine-Gray SHR model was used to estimate outcome incidence considering competing risk over time (Supplementary Table 4, Supplementary Fig. 3). Cumulative incidence curves demonstrated an elevated risk of developing DR, PDR, NPDR and PRP in individuals with DKA (Fig. 2). The DKA group had significantly higher risk of developing DR (SHR, 1.71; CI, 1.43–2.05; P < 0.001), PDR (SHR, 1.35; CI, 1.07–1.69; P = 0.010) and NPDR (SHR, 1.62; CI, 1.31–2.01; P < 0.001). As for the ophthalmological intervention, patients with DKA had higher risk to receive PRP (SHR, 1.52; CI, 1.22–1.89; P < 0.001) and IVI (SHR, 1.64; CI, 1.11–2.41; P = 0.012). After adjusting for comorbidities that significantly differed between the two groups, the DKA group still had a higher cumulative risk for DR (SHR, 1.64; CI, 1.34–2.01; P < 0.001), PDR (SHR, 1.33; CI, 1.04–1.71; P = 0.026), NPDR (SHR, 1.51; CI, 1.20–1.91; P < 0.001), PRP (SHR, 1.43; CI, 1.11–1.86; P = 0.007) and IVI (SHR, 1.74; CI, 1.08–2.81; P = 0.024). The restricted cubic spline curve revealed a progressive rise in the adjusted SHR for DR, NPDR, PDR, and PRP in correlation with an increasing T2D-to-DKA duration (Supplementary Fig. 4A-D). However, these SHR markedly increase with the onset age of DKA from 46 to 55 years old, followed by a gradual decline from 56 to 65 years old (Supplementary Fig. 5A-D). Notably, the SHR for the DKA group surpassed that of the non-DKA group at all ages.

Table 2 Hazard of DR and associated complication and procedures in comparison to patients without DKA.
Fig. 2
figure 2

Cumulative incidence of (A) DR, (B) PDR, (C) NPDR, and (D) PRP in patients with and without DKA (Gray’s test P < 0.001 for all). DR: diabetic retinopathy. PDR: proliferative diabetic retinopathy. NPDR: nonproliferative diabetic retinopathy. PRP: panretinal photocoagulation. DKA: diabetic ketoacidosis.

Association between T2D-to-DKA duration and risks of PDR and NPDR

The median T2D-to-DKA duration was 28.3 months (IQR 0–79.2). Thus, we classified patients into three groups: 0 months, 1–24 months, and > 24 months (Table 3). Compared with the non-DKA group, the DKA group had a higher risk of PDR in the 1–24 months group (SHR, 2.50; CI, 1.42–4.39; P < 0.001) and of NPDR in the > 24 months group (SHR, 2.18; CI, 1.60–2.96; P < 0.001). This remained significant after adjusting for baseline differences. While the risk of receiving PRP was elevated in both the 1–24 months group (SHR, 1.77; CI, 1.07–2.91; P = 0.025) and the > 24 months group (SHR, 1.53; CI, 1.12–2.09; P = 0.008), this risk became statistically insignificant after adjustment (P = 0.077 and 0.153). Conversely, the 0-month group did not exhibit an increased risk for PDR (SHR, 1.41; CI, 0.90–2.20; P = 0.129) or NPDR (SHR, 1.00; CI, 0.65–1.55; P = 1.000).

Table 3 Hazard ratios of outcomes with stratified analysis based on T2D-to-DKA duration and onset (or pseudo-onset) age of DKA.

Association between DKA onset age and risks of PDR and NPDR

Furthermore, we grouped the patients by age at DKA diagnosis: 18–45, 46–55, 56–65, and > 65 years, based on their median age of 54 years (IQR 45–66) (Table 3). After adjusting for baseline differences, the DKA group aged 46–55 had a higher risk of PDR (SHR, 1.82; CI, 0.99–3.33; P = 0.054), although not significant, and the one aged 56–65 had a higher risk of NPDR (SHR, 6.52; CI, 2.30–18.49; P < 0.001) than the non-DKA control. The risk of requiring PRP was only significantly elevated in the 56–65 years age group after adjustment (SHR, 2.52; CI, 1.11–5.75; P = 0.028). No significant risk of PDR or NPDR was observed in the > 65 years group.

Subgroup analysis of DKA patients

In our subgroup analyses focused on DKA patients only, we used 0 months of T2D-to-DKA duration and an age range of 18–45 years at DKA diagnosis as reference groups (Table 4). Following adjustment for baseline differences, we observed a 99% higher risk of PDR in patients with a duration of 1–24 months (SHR, 1.99; CI, 1.15–3.44; P = 0.013) compared to those with DKA duration of 0 month. Furthermore, the risk of NPDR was 77% higher in patients with a duration of 1–24 months (SHR, 1.77, 95% CI 1.00–3.15, P = 0.050) and 159% higher in patients with a duration of > 24 months than those with DKA duration of 0 month (SHR, 2.59, 95% CI 1.62–4.14, P < 0.001). While stratifying by age at DKA diagnosis indicated that the 46–55 and 56–65 age groups had a greater risk of developing PDR and NPDR than the 18–45 group, these differences did not reach statistical significance. In contrast, the > 65 years age group exhibited more than a 50% lower risk of PDR (SHR, 0.31; 95% CI, 0.13–0.71; P = 0.006), NPDR (SHR, 0.46; 95% CI, 0.23–0.91; P = 0.027), and PRP (SHR, 0.28; 95% CI, 0.13–0.62; P = 0.002) than the 18–45 years group after adjusting for baseline differences.

Table 4 The within group analysis of patients with DKA stratified by onset (or pseudo-onset) age of DKA and T2D-to-DKA duration.

Discussion

We showed that DKA patients acquired higher risk of DR and related surgeries than controls matched with similar anti-diabetic medication, gender and birth and diabetes onset year. We also found that the risks of PDR and NPDR varied by the duration from T2D to DKA and by age at DKA diagnosis. Our study demonstrated that DKA as an important predictor of DR risk and identifies specific risk profiles is associated with DKA among similar T2D baseline characteristics.

Halting the progression from NPDR to PDR is crucial, as nearly half can result in severe vision loss without intervention. Both CLARITY and DRCR Retina Network studies have demonstrated efficacy of IVI with anti-vascular endothelial growth factor (VEGF) drugs in treating PDR, but their demanding schedules and adherence requirements pose substantial challenges to patients and make PRP indispensable28. Our study reveals that patients experiencing DKA face an elevated risk of requiring both IVI and PRP, aligning with the observed increased risk of DR. Patients who developed DKA within one month of their T2D diagnosis did not show an increased risk of DR. This subgroup represents individuals with DKA-prone diabetes, a milder form of T2D, who can often discontinue insulin and achieve normoglycemia through lifestyle modifications and oral hypoglycemic agents29. Furthermore, DKA recurrence appeared less likely in patients whose initial diabetes presentation was DKA30. Our findings also revealed a higher risk of PDR in DKA patients aged 46–55 years, with a T2D to DKA duration of 1–24 months. Conversely, the risk of NPDR and intervention with PRP were elevated in those aged 56–65 years with a T2D to DKA duration exceeding 24 months. The within group analysis of DKA also showed higher risk of PDR in 1–24 months group and of NPDR in > 24 months group. Numerous studies (SN-DREAMS-II, BISED II, SiMES, SINDI) have shown that PDR primarily develops from NPDR rather than absence of retinal diseases31. In addition, PDR progression links to younger age at diabetes diagnosis and can be mitigated by PRP32. Since individuals with more severe biochemical profiles of DKA also exhibit shorter diabetes durations and younger onset ages, we hypothesize that patients aged 46–55 years and with a duration of 1–24 months are at a higher risk of developing PDR due to more severe DKA33. PRP may provide protective effect on the progression from NPDR to PDR in patients aged 56–65 years and those with a T2D to DKA duration exceeding 24 months. Furthermore, individuals aged over 65 years demonstrated a higher risk of DR than their non-DKA counterparts; however, among DKA patients, those over 65 years had the lowest DR risk compared to patients aged 18–45 years, even after applying Fine-Gray competing risk models for mortality. This finding likely reflects survivor bias, as the > 65 year-old group experienced the highest mortality risk (HR, 4.67, 95% CI 3.57–6.12, P < 0.001; Supplementary Table 4), leading to truncated follow-up. The reduced DR incidence should therefore be interpreted in the context of limited survival time rather than a true protective association. Finally, our data revealed that DKA accelerates DR progression and the need for surgical intervention. The duration from T2D to DR was shorter in patients with DKA (median 7.7 years, IQR 4.8–11.9) compared to those without (median 9.8 years, IQR 5.8–14.2). Patients with DKA also required PRP sooner (median 7.7 years, IQR 4.6–11.0) than those without (median 9.4 years, IQR 5.9–13.3). Considering that HbA1C and diabetes duration together accounted for only approximately 11% of the risk of DR development, our study underscored the necessity of incorporating additional independent factors like DKA into DR screening protocols34. While the American Diabetes Association (ADA) and International Council of Ophthalmology (ICO) recommend a screening interval of 1–2 years for diabetes patients without DR at baseline in high-resource settings, our findings suggest that DKA patients might benefit from more frequent assessments to ensure timely detection and prevention strategies of PDR, given their unique risk profile35. Moreover, With the increasing use of sodium-glucose co-transporter-2 inhibitors in T2D, caution is necessary regarding their long-term use due to the heightened risk of euglycemic DKA in elderly patients36. Subsequent studies may need to explore whether this demographic faces an elevated risk of DR progression.

The increased risk of DR associated with DKA may be attributed to several mechanisms related to hyperglycemic crisis, ketonemia and acidosis. First, the high osmotic pressure during a DKA episode can disrupt the BBB, potentially damaging the integrity of the BRB37. Subsequently, the rapid decrease in extracellular osmolarity following treatment may lead to osmolyte stasis and protein accumulation, contributing to vascular hyperpermeability and endothelial cell leukostasis, the key factors in DR development38. Second, severe hyperglycemia in DKA can stimulate aerobic glycolysis in retinal pigmented epithelial cells, the key components of BRB, and lead to oxidative stress. Oxidative stress will activate Rac1-Nox2 pathway and cytosolic reactive oxygen species in the retina, further promoting DR39. Third, hyperglycemic crises in DKA are associated with elevated pro-inflammatory cytokines and C-reactive protein, creating a systemic pro-inflammatory state. Neuroinflammatory markers observed at the disrupted BBB of DKA patients are also elevated in the vitreous of diabetic patients and linked to the progression of PDR12,40,41. Finally, increased VEGF expression is detected in the retina of metabolic acidosis-induced rats, a key factor in neovascularization42. We propose that the breakdown of the BRB, oxidative stress, elevated inflammatory factors, and VEGF signaling in DKA collectively contribute to the intensified progression of DR.

Current ADA guidelines call for a dilated retinal exam at T2D diagnosis and at least annual follow‑up, with interval adjustments based on DR severity and glycemic control43,44. Our data—showing an early, steep rise in DR incidence after DKA (Fig. 2) and persistently higher SHR in the DKA group (Supplementary Fig. 4)—suggest that T2D patients with a DKA episode represent a distinct high‑risk subgroup. We therefore recommend adding a retinal evaluation at the time of DKA diagnosis, followed by more frequent surveillance than in the general T2D population (e.g., biennial without baseline retinopathy or annual with retinopathy). Additionally, intensive follow-up is advised for younger patients (age < 55) and those who experience a DKA episode within two years of their T2D diagnosis, as they warrant prioritized monitoring due to their heightened risk of developing PDR. Although the optimal interval requires validation in larger, multicenter cohorts, earlier and tighter monitoring after DKA is warranted to detect and treat emerging retinopathy promptly.

This study has some limitations. First, biochemical lab data (e.g., HbA1C, C-peptide, islet autoantibodies) were unavailable in the NHIRD, limiting our ability to assess glycemic control and accurately classify diabetes type. For example, cases of latent autoimmune diabetes in adults or monogenic diabetes may be misclassified as T2D in the absence of autoantibody or C-peptide testing45. Patients with severe insulin deficiency (low C-peptide) and poor glycemic control (elevated HbA1c) may experience more rapid progression of DR, potentially confounding associations between DKA and DR severity46.To address this limitation, we leveraged the NHIRD’s reimbursement policies to infer baseline glycemic control using initial three-month outpatient diabetic medication patterns, ensuring comparability across cohorts. Nevertheless, future studies incorporating linked laboratory data are warranted to improve diagnostic accuracy and enable adjustment for metabolic and immunologic variables. Second, DKA cases were identified solely by ICD codes. A recent validation study by Hodzic-Santor et al. reported high specificity (99.6%) and negative predictive value (99.7%) for ICD-coded DKA diagnoses, but only moderate positive predictive value (67.0%) and sensitivity (74.9%), suggesting potential for misclassification47. To reduce this risk, we restricted our analysis to DKA diagnoses documented during hospitalizations—where clinical confirmation and treatment are more likely—and excluded cases with DKA diagnoses preceding the diagnosis of T2D. For future research, we recommend combining ICD codes with laboratory criteria (e.g., pH ≤ 7.3, bicarbonate ≤ 18 mmol/L, anion gap > 10 mEq/L, ketonemia/ketonuria), medication records (e.g., insulin infusion), and confirmed hospitalization for DKA as the primary discharge diagnosis. This approach could improve case identification and causal inference in observational studies. Third, functional outcomes such as visual acuity changes were not evaluated, limiting our ability to assess DR progression. This limitation reflects the absence of clinical detail in claims data. Future studies should incorporate ophthalmologic data to better capture the functional impact of DR in patients with DKA. Fourth, the generalizability of our findings is limited by the ethnic composition of the NHIRD, which comprises over 95% Han Chinese, with small proportions of indigenous Taiwanese (2%), South Asians (1.3%), and Western residents (0.1%)48. Given that racial differences in DKA risk have been reported elsewhere, particularly among Black individuals in Western countries, future studies should examine similar associations using international or ethnically diverse datasets49,50. Fifth, antidiabetic medication use was assessed only during the initial 3-month period to ensure comparable baseline treatment, consistent with the landmark analysis design51,52. Fixing exposure at the index date mitigates immortal time bias but excludes post-landmark changes in treatment or disease status. While this strengthens causal inference for DKA effects, it precludes assessment of treatment modifications occurring after the landmark period, including later SGLT2 inhibitor initiation. Future studies with time-varying analyses are warranted to address these limitations. Finally, the wide confidence intervals observed in the stratified analyses likely reflect limited statistical power due to small sample sizes within subgroups, and these findings should be viewed as exploratory. This constraint is partly due to the substantial number of exclusions required to identify comparable initial diabetes regimens among individuals without DKA. To improve the robustness and inclusiveness of future analyses, we plan to examine the full population dataset to better support generalizable conclusions.

Conclusions

Our study revealed that DKA is associated with an increased risk of DR and a higher likelihood of receiving intervention in T2D patients with similar diabetic medication, year of birth, year of diabetes diagnosis, and gender, rather than the general T2D population. We also observed a shorter duration for DKA patients to develop DR and undergo surgical intervention following the onset of T2D. Furthermore, we elucidated that younger age at DKA onset or a shorter T2D-to-DKA duration is associated with a higher risk of developing PDR, a more severe form of the disease. Building on ADA guidelines, we propose incorporating DKA history into DR screening protocols by performing an initial retinal exam at the time of DKA diagnosis, with follow‑up thereafter more frequent than standard ADA recommendations to address the accelerated retinopathy risk in this population.