Introduction

Patients with diabetes mellitus (DM) develop several ocular problems. Common complications include cataracts, diabetic retinopathy, optic neuropathy, and uveitis. DM affects the oculovisual apparatus of the eye and is thus a leading cause of visual loss. Studies have confirmed that fluctuations in refraction occur with changes in blood sugar levels. The Barbados Eye Study1 and the Los Angeles Latino Eye Study2 have demonstrated that DM is an independent risk factor for myopia1,2. A study revealed that poor glycemic control is a major risk factor for myopia3. However, a population study reported that the presence of DM was related to an increased shift toward hyperopia4.

Patients with DM have a higher surface curvature of the lens compared with individuals without DM. However, the equivalent refractive index of patients with DM is lower; thus, lenticular powers are similar between both patients with DM and those without DM. However, DM was not associated with a shift in ocular refraction in other epidemiological studies (Andhra Pradesh Eye Disease Study [37], Blue Mountains Eye Study [19]). Duke-Elder5 suggested that hyperglycemia caused by DM leads to osmotic interactions between the lens materials and the aqueous anterior chamber of the eye5. Hyperglycemia affects refraction changes by an osmotic fluid shift, resulting in the hydration of the lens and consequent myopia6. Hyperglycemia thus causes myopic refraction, whereas less myopic or hyperopic refraction is associated with low hyperglycemia or hypoglycemia7,8,9. However, other investigators have reported that increased blood glucose resulted in hyperopia instead of myopia8,10,11,12. Hyperopia is common during the earlier phases of hyperglycemia because of a decrease in lens volume, which further proceeds to myopia when lens volume starts to increase13,14. An acute or transient rise in serum glucose levels is also related to hyperopia because of changes in the refractive index of the lens15. Diverging results have been reported in patients with hyperglycemia and higher HbA1c before intensive sugar control8,16.

Findings indicate that myopia is increasingly common, and the global prevalence of myopia is expected to increase from 27% in 2010 to 52% by 205017. Moreover, high myopia (≤ − 6.0 diopters [D]) increases the risk of irreversible vision loss, which is associated with a heavy socioeconomic burden18. Clinical studies on the prevalence of refractive errors in diabetic and nondiabetic populations are also controversial. Some studies have revealed no differences in refraction between patients with and without DM19,20,21, whereas another study reported a higher level of myopic refraction in patients with DM22. A population-based study conducted in India reported that poor glycemic control was associated with myopia23. A regional population study conducted in Taiwan also reported a higher myopia prevalence among patients with DM24. However, this study only represented regional data and had a relatively small sample size. Therefore, we aimed to explore risk factors for and the predictors of myopia in the Taiwanese population with DM.

Materials and methods

Study cohort

This study was conducted using the largest database of the Taiwanese population, the National Health Insurance Research Database (NHIRD), which covers the health care services of over 99% of Taiwan’s 23 million residents. The NHIRD is currently managed centrally and supervised by the Data Science Center of the Ministry of Health and Welfare. Therefore, the sample tracking time is sufficiently long to perform a complete generational retrospective cohort study. Risk factors for myopia and the relationship between DM and myopia were explored and compared between patients with DM (DM group) and controls (control group). All data in the NHIRD are connected and deidentified. The NHIRD provides information regarding outpatient, inpatient and, emergency visits and drug, and disease diagnosis records of all insured persons and were coded by the International Classification of Disease-9th Revision-Clinical Modification (ICD-9 CM). In addition, the enrollment files of beneficiaries and providers were included. The data period used in this study was 2001 to 2012. The present study had been approved by the Human Research Ethics Committee of Taipei Medical University (TMU-JIRB: N202002017). The Taiwan Ministry of Health and Welfare and Joint Institutional Review Board of Taipei Medical University determined that patient consent was not required because all data were anonymized by the data holder, the Taiwan National Health Insurance Administration (NHIA). Taiwan NHI system, established since 1995, acts as a single-payer insurance system and has been co-funded by Taiwan government, employers, and beneficiaries. Taiwan citizens and stay holders living inside Taiwan for more than 6 months are eligible to be enrolled in NHI. The NHI database is a complete dataset which included comprehensive registration information and claims data since 1995. Patient characteristics, physical examinations, diagnoses, detail information on drugs prescription, surgical operations and procedures, medical costs were recorded in the dataset. Thus, this is the largest national dataset included approximately 23 million beneficiaries with a coverage rate of 99.5% at the end of 201625. Moreover, the whole database was prevented from confidentiality leaks by unique national personal identification which was anonymized and consistent across the NHI database and in between other data sets, allowing valid internal and external linkage26. International Classification of Diseases, 9th Revision, Clinical Modification (ICD-9-CM) codes from 1997 through 2015; ICD-10-CM codes since 2016 were used to record the diagnoses and procedures. In our study, all methods were performed as in accordance with the relevant guidelines and regulations approved by the Data Science Center of the Ministry of Health and Welfare and TMU-JIRB.

Objectives

From January 1, 2001, to December 31, 2012, ICD-9-CM codes (International Classification of Diseases, Ninth Revision, Clinical Modification) were used for outpatient, emergency, and inpatient diagnoses, and patients with DM were thus identified. Criteria for inclusion were as follows: (1) Patients with new onset DM since January 1, 2001 (2) patients with two outpatient diagnoses of DM or one inpatient diagnosis of DM within 1 year after the initial diagnosis and (3) administration of two or fewer oral glycemic drug prescription within 90 days after the initial diagnosis. After selecting patients with DM for inclusion in the study, one comparative group without a diagnosis of DM were randomly selected using age and sex pairing (at a ratio of 1:2). The start date (index date) of the DM group entering the study was set as the time of the first diagnosis of DM, and the same date was set for the matched comparative population. DM group and non-DM control group with following events were excluded (1) those with myopia before the index date and (2) those with cataracts before the index date. After pairing was completed and myopia and cataract before index date were excluded from both study groups, 35,538 patients with DM and 71,076 non-DM population were finally selected.

We included a total of 2174 patients with Type 1 DM, 33,364 patients with Type 2 DM.

Definitions and variables

The purpose of this study was to investigate the relationship between DM and myopia. Three dependent terms were employed: (1) general myopia (ICD-9-CM code 367.1); (2) progressive high (degenerative) myopia (ICD-9-CM code 360.21); and (3) general myopia, high myopia, or astigmatism (regular astigmatisms with (ICD-9-CM) codes 367.1, 360.21, and 367.21). The start date (index date) was defined as the date when each patient with DM was first diagnosed as having DM during the 2001–2012 study period, whereas the comparison group without DM during the study period was assigned the same start date as that of matched patients with DM. Age and sex were matched at a 1:2 ratio. Among DM and non-DM group who developed general myopia, high myopia, or astigmatism twice within one year, the end time was defined as the date of diagnosis. The end date for other populations was defined as death, loss to follow-up, or the end of the study (December 31, 2012). The tracking time was calculated by subtracting the end time from the index date.

Common variables in this study were demographic characteristics namely age (divided into eight groups: 0–9, 10–19, 20–29, 30–39, 40–49, 50–59, 60–69, and ≥ 70 years), sex (male or female), degree of urbanization (urban, suburban, and rural areas), monthly income (0, 1–21,000, 21,001–33,300, and ≥ 33,301 NTD), and residential area (north, middle, south, east, and outlying islands). The following comorbidities were evaluated using Charlson’s comorbidity index (CCI, 0, 1, 2, and ≥ 3): heart failure (HF; ICD-9-CM code 428), acute myocardial infarction (AMI; ICD-9-CM code 410), stroke (ICD-9-CM codes 430–438), ischemic heart disease (ICD-9-CM codes 410–414), angina (ICD-9-CM code 413), peripheral vascular disease (ICD-9-CM codes 440–448), hypertension (ICD-9-CM codes 401–405), hyperlipidemia (ICD-9-CM code 272), renal failure (ICD-9-CM codes 582, 583, 585, 586, and 588), chronic liver disease (ICD-9-CM codes 456, 571, and 572), chronic obstructive pulmonary disease (ICD-9-CM codes 491, 492, and 496), and cataract (ICD-9-CM code 366).

Statistical analysis

The significance level (α level) of this study was set at 0.05, and the statistical software packages SAS 9.4 and R (version 3.4.3 × 64) were used for data collation and statistical analysis. Nationwide data were used in this retrospective generational study to explore the relationship between DM and myopia. First, descriptive statistics were used to describe the distribution of demographic variables and comorbidities. The distributions of demographic variables of the DM and control groups are described using statistical values, such as the frequency, percentage, average, and standard deviation. Continuous data are presented as means and standard deviations; categorical data are presented as numbers and percentages. The chi-square test and t test were used to examine whether the DM and control groups populations displayed significantly different demographic distributions. Kaplan–Meier analysis combined with log-rank testing was performed to explore differences in the myopia-free survival rate between patients with Type 1 DM and those with Type 2 DM in the DM group. Cox regression analysis (Cox proportional hazard model) was performed to estimate the difference in the subsequent myopia risk between the DM and control groups. The end of follow-up was defined as the occurrence of myopia, death, loss of follow-up or at the end of the study (December 31, 2012) if no event occurred. The following control variables were used to adjust the model: age, sex, socioeconomic status, comorbidities, and history of living areas. Risk-adjusted hazard ratios and 95% confidence intervals (CIs) were calculated to explore the relationship between DM and myopia and to analyze differences between different types of DM and comparative ethnic groups.

Ethics statement

We presented a nationwide cohort study by retrieving all patients with diabetes and age, sex matched controls, following up until the development of myopia from January, 2001 to December, 2012, from Taiwan's National Health Insurance Research Database (NHIRD). The NHIRD has been described in detail in previous studies. In brief, it consists of detailed health care data from 23 million enrollees, representing 99% of Taiwan's entire population. For the purpose of protecting patient privacy, our data sources had been ID delinked. In addition, this study had been approved by the ethical review board of the Taipei Medical University, Taiwan (certificate no. TMU-JIRB N202002017).

Results

Demographic and clinical characteristics of study participants

The flowchart of study participant enrollment is presented in Fig. 1. A total of 151,605 patients were newly diagnosed as having Type 1 or Type 2 DM from 2000 to 2012. Exclusion criteria include: (1) patients diagnosed as having DM before 2001 (n = 33,025), (2) Diabetes was not diagnosed in at least two outpatient clinic records or at least one inpatient clinic record after the first new onset DM within one year (n = 31,424). (3) Patients who had not received at least 2 times prescriptions of anti-glycemic medications within 90 days after new onset of DM (n = 30,239). We therefore randomly recruited 1:2 age and sex matched DM and non-DM pairing and use the new onset DM date as the index date. We then further exclude the following subjects from both DM and non-DM group. (4) Myopia diagnosis before the index date (n = 3266) (5) Cataract diagnosis before index date (n = 18,113). Eligible patients with Type 1 DM (n = 2714) and Type 2 DM (n = 33,364) were finally recruited as the study cohort. The control group include subjects without DM (n = 71,076) was age- and sex-matched with the study group at a 1:2 ratio (Fig. 1). The characteristics and demographic variables of study patients are listed in Table 1. The DM group had significantly higher CCI scores than did the control group (≥ 4 points, 20.08% vs. 15.06%). The DM group had significantly higher rates of comorbid conditions than did the control group, including HF (6.78% vs. 3.99%), AMI (1.34% vs. 0.85%), stroke (13.45% vs. 9.53%), ischemic heart disease (23.32% vs. 15.91%), angina (8.60% vs. 5.84%), peripheral vascular disease (6.96% vs. 5.10%), hypertension (51.29% vs. 30.24%), hyperlipidemia (30.38% vs. 17.74%), renal failure (9.11% vs. 6.53%), chronic liver disease (27.70% vs. 18.56%), and COPD (20.83% vs. 17.58%). Significantly more patients with DM lived in rural (7.75% vs. 7.28%) and suburban areas (17.82% vs. 17.48%). Furthermore, patients with DM had a lower total income (≥ 33,301 NTD, 32.21% vs. 36.02%). More cases of new-onset general myopia were noted in the DM group (1.93% vs. 1.34%). However, the rates of new-onset high myopia or myopia progression to high myopia cases were non-significantly higher in the DM group than in the control group.

Figure 1
figure 1

Data selection process. Follow-up of Myopia new-onset; patients with DM were matched with DM-free counterparts, who had the same index dates as the DM diagnostic date.

Table 1 Characteristics of the sample population.

Risks of different myopias between the DM and control groups

The results of the analysis of the incidence and the adjusted hazard ratio (aHR) for myopia in the DM and control groups are presented in Table 2. The incidence rates for myopia, high myopia, myopia progression to high myopia, and myopia-related diseases were 315.8, 41.2, 5.5, and 387.2, respectively, per 100,000 people in the DM group and 215.7, 38.6, 4.5, and 269.0, respectively, per 100,000 people in the control group. The risk of myopia remained significantly higher in the DM group than in the control group after adjustment for demographic characteristics, including age, sex, CCI, comorbidities, socioeconomic status, and area of residence (aHR 1.48; 95% CI .36, 1.61). The risk of myopia-related diseases was also significantly higher in the DM group than in the control DM group (aHR 1.44; 95% CI 1.33, 1.55). The risk of high myopia and myopia progression to high myopia was not significantly different between the two groups. We further stratified the groups according to age and sex. Among the population aged 0–39 and 40–59 years, the risk of general myopia and myopia-related diseases was significantly higher in the DM group than in the control DM group; in the age group of 0–39 years, the risk of general myopia (aHR 1.96; 95% CI 1.67, 2.30) and myopia-related diseases (aHR 1.96; 95% CI 1.68, 2.28) was significantly higher in the DM group than in the control group; in the age group of 40–59 years, the risk of general myopia (aHR 1.48; 95% CI 1.32, 1.65) and myopia-related diseases (aHR 1.44; 95% CI 1.30, 1.60) was significantly higher in the DM group than in the control DM group. However, significant differences in the risk of general myopia and myopia-related diseases were not observed in the age group of > 60 years. The risk of high myopia and general myopia progression to high myopia was not significantly different among all the groups. The risk of myopia and myopia-related diseases was the highest in men with and without DM (aHR 1.89; HR 1.81). The risk of general myopia and myopia-related diseases differed between the DM and control groups in both sexes (female general myopia: aHR 1.36, 95% CI 1.20, 1.54; female myopia-related diseases: aHR 1.29, 95% CI 1.16, 1.44; male general myopia: aHR 1.65, 95% CI  1.48, 1.85; male myopia-related diseases: aHR 1.62, 95% CI 1.47, 1.80).

Table 2 Risk of varieties of myopia between DM and control cohorts.

Risk of different myopias among Type 1 DM, Type 2 DM, and control groups

Sensitivity analysis was performed using the Cox risk model to explore differences in the risk of myopia, high myopia, and myopia-related diseases among the Type 1 DM, Type 2 DM, and control groups. The results are presented in Table 3. Compared with the control group, both the Type 1 DM (aHR 2.28; 95% CI 1.89, 2.76) and Type 2 DM (aHR 1.45; 95% CI 1.33, 1.58) groups had a significantly higher risk of myopia, especially in the age groups of 0–39 years (aHR 3.65 in Type 1 DM, aHR 1.67 in Type 2 DM) and 40–59 years (aHR 1.37 in Type 1 DM, aHR 1.49 in Type 2 DM) in both sexes. The risk of myopia-related diseases was significantly higher in both Type 1 (aHR 2.07; 95% CI 1.73, 2.47) and Type 2 DM groups (aHR 1.41; 95% CI 1.31, 1.52), especially in the age groups of 0–39 years (aHR 3.52 in Type 1 DM, aHR 1.70 in Type 2 DM) and 40–59 years (aHR 1.38 in Type 1 DM, aHR 1.45 in Type 2 DM) in both sexes. The results of the subgroup analysis revealed that Type 1 DM was associated with a higher risk of myopia and myopia-related diseases than Type 2 DM in the age group of ≤ 40 years (aHR 3.65 in Type 1 DM vs. aHR 1.67 in Type 2 DM for myopia; aHR 3.52 in Type 1 DM vs. aHR 1.70 in Type 2 DM for myopia-related diseases). Similarly, a higher risk of myopia and myopia-related diseases was observed in patients with Type 1 DM than in patients with Type 2 DM in both sexes (female sex, HR 2.11 in Type 1 DM vs. aHR 1.23 in Type 2 DM; male sex, HR 2.07 in Type 1 DM vs. aHR 1.59 in Type 2 DM). The rates of high myopia and myopia progression to high myopia did not differ significantly between the two types of DM and the control groups in all age groups and both sexes. No significant differences in the risk of myopia, myopia progression to high myopia, and myopia-related diseases were observed among Type 1 DM, Type 2 DM, and control groups in older patients aged ≥ 60 years.

Table 3 Risk of various myopia among different types of DM and the control cohort.

Predictors of new-onset myopia between DM and control groups

Table 4 lists the findings of univariate and multivariate analyses of variables related to new-onset myopia in the DM and control groups. Age was a significant factor affecting myopia. The risk of myopia decreased with progressive aging. Men had a lower risk of myopia than did women (aHR 0.77; 95% CI 0.72, 0.82). A higher CCI score was associated with a higher risk of myopia. People living in urbanized areas and people with higher incomes (≥ 33,301 NT$) had a higher risk of myopia. People living in northern and eastern areas displayed a significantly higher risk of myopia than did those living in middle and southern areas.

Table 4 Predictors of new-onset low myopia, high myopia, and astigmatism in the DM and control groups.

Survival analysis: myopia-free survival rate in DM and control groups

The difference in the myopia-free survival rate between the DM and control groups is presented in Fig. 2. The survival curve indicated that the rate of myopia in the DM group was significantly higher than that in the control group (P < 0.001). The Cox risk model was used to explore differences in the risk of myopia, high myopia, and flash between the DM and control groups. The difference in the myopia-free survival rate between patients with Type 1 DM and Type 2 DM and controls is presented in Fig. 3. Patients with Type 1 DM exhibited the highest myopia-free survival rate, and patients with Type 2 DM displayed a significantly higher rate of myopia than did the control group (P < 0.001).

Figure 2
figure 2

Myopia events in the study cohort (n = 106,614) from January 1, 2001, to December 31, 2012, in Taiwan, stratified by DM and without DM t (log–rank test, χ2 = 107.226; df = 1; p < 0.001).

Figure 3
figure 3

Myopia events in the study cohort (n = 106,614) from January 1, 2001, to December 31, 2012, in Taiwan, stratified by Type 1 DM, Type 2 DM, and without DM (log-rank test, χ2 = 148.929; df = 2; p < 0.001).

Discussion

The baseline data of the present study indicated that the DM group had significantly higher Charlson Comorbidity Index scores and more comorbid conditions than did the control group. Compared with controls, significantly more patients with DM lived in rural and suburban areas and they had a significantly lower total income. More cases of new-onset myopia were noted in the DM group than in the control group. However, the numbers of new-onset high myopia and myopia progression to high myopia cases were not significantly higher in the DM group than in the control group. This finding is consistent with that reported by Kinmen who indicated that the prevalence of myopia was higher than that of high myopia or hyperopia.

The adjusted hazard ratios for myopia and myopia-related diseases were significantly higher in the DM group than in the control group (Table 2). Based on the survival curve, we determined that the rate of myopia was significantly higher in the DM group than in the control group (P < 0.001; Fig. 2). However, the risk of high myopia and myopia progression to high myopia was not significantly different between the two groups (Table 2). This finding may be because the degree of myopia and the progression of myopia are more highly associated with conditions other than hyperglycemia and hypoglycemia. High myopia is a critical concern because it is associated with scleral thinning27,28, which can progress to local outpouchings, staphylomas29, and myopic macular degeneration (MMD) if not controlled30,31. Staphyloma and MMD represent pathological myopia. Similar findings were noted in both sexes. Furthermore, we analyzed the risk of different myopias in our study cohort. In the population aged 0–39 and 40–59 years, the risk of myopia and myopia-related diseases was significantly higher in the DM group than in the control group (Table 2). However, no such relationship was noted in patients aged ≥ 60 years. Hyperopia is a natural sign of aging. However, myopia is associated with comorbid conditions other than DM status.

We performed a sensitivity analysis by using the Cox risk model to explore differences in the risk of myopia, high myopia, and myopia-related diseases in patients with Type 1 DM, Type 2 DM, and controls (Table 3). The prevalence of myopia in patients with Type 1 DM varied in different populations. Among patients aged ≤ 40 years, Type 1 DM was associated with the highest risk of myopia and myopia-related diseases. Patients with type 2 DM had a higher risk of myopia and myopia-related diseases than did controls. These findings may be caused by myopic errors that evolve from the teenage years in Type 1 DM and can progress up to later years3,32. Among patients aged 40–59 years, those with Type 2 DM had significantly higher myopia and astigmatism compared to both patients with Type 1 DM and control. In these patients, the vision status fluctuates with blood sugar levels, and changes in the refractive index of the intraocular lens cause blurred vision5. Juvenile cataract is another lens complication related to DM33, which is also closely associated with index or transient myopia. Our findings are consistent with those a population study in Danish adults aged 16–66 years; Fledelius34 reported that patients with DM had a higher frequency of myopia than did nondiabetic individuals. Another study also demonstrated that myopia and late-onset myopia were more prevalent among patients with DM than among patients without DM35. However, in the age group of ≥ 60 years, we determined no significant differences in myopia, high myopia, myopia progression to high myopia, or myopia-related diseases between patients with Type 1 DM and Type 2 DM and controls. This pattern of change indicated that the risk of myopia decreased as an intrinsic age-related decrease in individuals’ myopia, rather than because of diabetic control. Notably, we did not identify significant differences in the rates of high myopia and myopia progression to high myopia between patients with Type 1 DM and those with Type 2 DM and between the DM and control groups in all age and sex groups. Hyperglycemia was not independently related with the degree of myopia or myopia progression, which may be because of genetic and environmental factors.

A comparison of the risk of new-onset myopia between the DM and control groups is presented in Table 4. Age was a significant factor affecting the risk of myopia. The risk of myopia decreased with natural aging among patients with DM. Men also displayed a significantly lower risk of myopia than did women. A higher Charlson Comorbidity Index score was associated with a higher risk of myopia. A higher income and living in the northern and eastern regions of Taiwan or urbanized areas were associated with a higher risk of myopia. Studies have reported that intensive near tasks, downward gaze36,37, less time spent outdoors38, widespread education, and urbanization are associated with DM. Cataract appears to be protective against onset of myopia, however, it might be possible that some people in the control group had cataract but not had an eye exam. They would then not have been excluded for cataract and seemingly to be protected against myopia.

Our study has limitations. First, a major limitation of the NHIRD is that it does not include laboratory data. Nonetheless, we identified the variables of interest, and the representative population was followed for a long study period with confirmed diagnoses. Second, national databases are reported to have lower accuracy in diagnostic codes compared with clinical charts. Therefore, the National Health Administration cites the standard protocols of diagnosis codes, verifies the accuracy of patients’ diagnoses, and frequently assesses the cross-consistency of claims and chart data. Third, the NHIRD lacks data on lifestyles and habits, including smoking, and is based on the reported data system. Fourth, the results may not represent the entire population because the NHIRD lacks data on the population that is not under medical health care. However, in Taiwan, most health costs are covered by the national insurance, and the missing population is negligible.

To summarize, our population database revealed that DM is an important risk factor for myopia and astigmatism among patients aged less than 60 years. New-onset myopia in a patient with diabetes could be an early indicator of poor DM control and subsequently associated with worsening diabetic retinopathy. Thus, active surveillance and earlier treatment of myopia are critical for patients with DM especially those with poor glycemic control.