Introduction

There is considerable evidence from longitudinal observational studies that type 2 diabetes increases the risk of all-cause dementia, Alzheimer’s disease and vascular dementia [14]. In two recent meta-analyses, estimates of RR associated with type 2 diabetes were 1.51 and 1.73, respectively, for all-cause dementia, 1.46 and 1.56 for Alzheimer’s disease, and 2.48 and 2.27 for vascular dementia [2, 3]. The importance of this risk association is underscored by the already high and increasing global prevalence of type 2 diabetes [5] and the potential for maintenance of cognitive function through effective prevention and treatment of diabetes [6, 7].

There are, however, several reasons why research on this topic should continue. First, the epidemiology of both conditions may be changing. In several European countries, the number of people with dementia is stabilising despite an ageing population [810], possibly because of improvements in education, housing and cardiovascular health [10]. In diabetes, improvements in clinical care have been accompanied by reduced rates of complications and cardiovascular disease [11, 12]. How these two phenomena might affect the incidence of dementia in type 2 diabetes is unknown, but possible scenarios include an increased risk if more individuals with type 2 survive into old age or a reduction in risk if there are further improvements in diabetes care.

Second, there are grounds to suggest that published studies could have provided biased estimates of the risk of dementia in type 2 diabetes. It has been recommended that estimates of the population risk of age-related diseases should take into account premature mortality that may intervene before the disease of interest develops [13, 14]. Essentially, in conditions with a high mortality, the competing event of death can obscure the potential risk of dementia because individuals die before they can develop dementia. This is germane in studies of type 2 diabetes in which premature mortality is high [15]. Importantly, taking account of such competing risks tends to produce lower estimates of the magnitude of risk attributed to a specific condition, especially where the duration of follow-up is long [13, 14]. Perhaps unbeknown to the authors of the prior papers, they have estimated the cause-specific HR (csHR) which may not reflect the actual increased risk that an individual with type 2 diabetes experiences [24]. This hypothesis is supported by a recent study in which the csHR for cognitive decline in diabetes was higher than the subdistribution HR (sdHR), which included not only the association of diabetes with cognitive decline, but also the association of diabetes with the competing event of death that prevented individuals experiencing cognitive decline [16].

Third, relatively minor changes in incidence rates have a large impact on future dementia projections in population models [17]. However, despite the large number of studies that have explored the association between type 2 diabetes and dementia, relatively few have examined the natural history of dementia including age of onset and survival. In a recent large population-based investigation of individuals with dementia in the state of Western Australia, we reported that patients with comorbid diabetes had an onset approximately 2 years earlier and a shorter survival than those without diabetes [18]. In other studies, vascular dementia occurred at an earlier age in diabetes [19] and survival was also shorter when Alzheimer’s disease was accompanied by diabetes [20].

The Fremantle Diabetes Study Phase I (FDS1) is a longitudinal, community-based cohort study of known diabetes involving a representative patient sample from an urban Australian community. The participants were recruited between 1993 and 1996 and followed with annual face-to-face clinical assessments for a further 5 years [21]. We have previously reported risk factor data for dementia and cognitive decline in middle-aged and older subsamples of FDS1 survivors with type 2 diabetes [2224]. Outcome data sources in FDS1 include the Western Australian Data Linkage System (WADLS), an internationally renowned, validated, population-based data linkage system that creates links between a number of Western Australia state health administrative datasets [25]. In the present study we used the WADLS to identify incident patients with dementia between recruitment up until 2012 in all FDS1 participants with type 2 diabetes and in a large (4:1) matched sample of non-diabetic residents from the same community, with the aim of comparing the age of dementia onset (using age at index dementia record as a proxy), age at death, length of survival and incidence of dementia in those with and without prior diabetes. We also compared relative hazards obtained with and without consideration of the competing risk of death.

Methods

Patients

FDS1 is a longitudinal observational cohort study of residents with diabetes from a postcode-defined urban community of 120,097 people in the state of Western Australia. Descriptions of recruitment, sample characteristics, including classification of diabetes type, and details of non-recruited patients have been published elsewhere [21]. Of 2258 residents with diabetes identified between 1993 and 1996, 1426 (63%) were recruited to the FDS1 and 1296 had type 2 diabetes. Eligible residents who declined participation were a mean 1.4 years older than the participants, but their sex distribution, the proportion with type 2 diabetes and their use of blood glucose-lowering therapies were similar. Annual assessments, comprising a comprehensive questionnaire, physical examination and fasting blood and urine sample collection, continued until 2001, but the collection of morbidity and mortality data continues through health service linkages using the WADLS [25]. The FDS1 protocol was approved by the Human Rights Committee at Fremantle Hospital and all individuals gave informed consent before participation. Data linkage was approved by the WA Department of Health Human Research Ethics Committee.

Comparison cohort

To select a comparison cohort, we used the WADLS to identify matched adults without diabetes for each recruited FDS1 adult participant. Using the electoral roll, four age-, sex- and postcode-matched residents were randomly selected from the FDS1 catchment area for each FDS1 participant at the time of FDS1 study entry. Voting is compulsory for all Australians aged 18 years and over in Federal and State elections, and thus all adults resident in the FDS1 catchment area should be listed on the electoral roll. The requirement for postcode matching was based on the fact that there are differences in socioeconomic and migrant status between residential districts within the catchment area. The individuals without diabetes had not been coded as having diabetes at any time on any Western Australia health database, before, during or after the follow-up period. Five residents without diabetes died just before entry into FDS1 and were therefore excluded. Matches could not be made for five young and four elderly participants, and they were also excluded. This left 1291 (99.6%) FDS1 participants with type 2 diabetes who were matched with 5159 residents without diabetes.

Dementia case and comorbidity ascertainment

All hospital admissions, contacts with mental health services and deaths in Western Australia are recorded in the WADLS [25], and the combination of databases has been shown to improve the identification of individuals with dementia [2628]. The WADLS was used to determine prevalent dementia status at study entry from ICD coding from 1982 and incident dementia to the end of June 2012. The number with dementia included all patients diagnosed and registered on any of these registers and was defined using the following ICD-9-CM (www.icd9data.com/2007/Volume1) and ICD-10-AM (www.who.int/classifications/icd/en/) codes: Alzheimer’s disease (331.0, F00, G30), vascular dementia (290.4, F01), unspecified dementia (290.0, 290.1, 290.2, 290.3, 294.2, 331.2, F03, G31.1) and other dementia (046.1, 291.2, 292.82, 294.1, 331.1, 331.11, 331.19, 331.82, 797, A81.0, F02, F05.1, F10.27, F10.97, G31.0, G31.10, G31.09. G31.83).

A diagnostic dementia hierarchy was used to allocate dementia type to the participants with more than one dementia code in their records [27]: Huntington’s and Creutzfeldt–Jakob diseases took precedence over all other dementias, followed by Alzheimer’s disease, vascular dementia, frontotemporal dementia and Parkinson’s dementia. If the code for unspecified dementia was reported in addition to a more specific diagnosis, the latter was used. Dementia subdiagnoses were those documented by the wide range of treating physicians from both specialist and general settings. Because the diagnostic accuracy of these subdiagnoses may be low, we explored associations for all-cause dementia as the main endpoint but also investigated subdiagnoses (unspecified dementia, Alzheimer’s disease and vascular dementia) for comparison purposes.

The Mental Health Information System (MHIS) started as a register of inpatients in psychiatric hospitals in 1966, expanded in the 1970s to include all other hospitals and community mental health services, and since 1980 has covered all outpatient and community-based contacts with public mental health clinics and all inpatient admissions to private or public hospitals in the state where a diagnosis of mental health disorder or self-harm has been made or where contact has occurred with a specialist psychiatric service [29]. The Hospital Morbidity Data System (HMDS) was established in 1970 and collects comprehensive data on all public and private hospital admissions in Western Australia. All deaths are registered in the Western Australia Death Registry.

The HMDS was used to determine pre-existing comorbidity during the 5 years prior to study entry, excluding dementia, diabetes and diabetic complications, using the Charlson Comorbidity Index (CCI) [30]. This includes history of myocardial infarction, congestive heart failure, peripheral vascular disease, cerebrovascular disease, chronic pulmonary disease, rheumatic disease, peptic ulcer disease, hemiplegia or paraplegia, renal disease, liver disease and cancer. We extracted and included a history of schizophrenia from the HMDS and MHIS databases given its associations with diabetes and dementia [28, 31].

Data analysis

The computer packages IBM SPSS Statistics 22 (IBM, Armonk, NY, USA.) and STATA IC 13 (StataCorp LP, College Station, TX, USA) were used for statistical analyses. Data are presented as proportions, mean ± SD, geometric mean (SD range) or, in the case of variables that did not conform to a normal or log-normal distribution, median and interquartile range (IQR). For independent samples, two-way comparisons for proportions were analysed by Fisher’s exact test, for normally distributed variables by Student’s t test, and for non-normally distributed variables by the Mann–Whitney U test. FDS1 participants and matched residents without diabetes were followed from study entry to first record of any dementia, death or 30 June 2012, whichever came first.

The age at the index dementia record was taken as a proxy for the age of onset of dementia, also used to assess survival in those who died with dementia. Ten-year age- and sex-specific incident rates of all-cause dementia, Alzheimer’s disease, vascular dementia and unspecified dementia and all-cause deaths for the FDS1 cohort were compared with those derived for the comparison group without diabetes, and incident rate ratios (IRRs) were calculated. Ten-year age groups starting at 55 years of age were selected owing to the older age of people with dementia. Cox proportional hazards models were used to generate cause-specific HRs (csHRs), while Fine and Gray competing risk models [32] generated subdistribution HRs (sdHRs) for all-cause dementia, Alzheimer’s disease, vascular dementia and unspecified dementia in those with vs without type 2 diabetes, adjusting first for age as the time scale, and additionally for age at study entry, sex, CCI score and schizophrenia. Cox proportional HRs for all-cause death were also assessed. An increase in the csHR for dementia does not necessarily translate into an increase in the relative hazard as this will depend on the competing event of death. Given that the HR for all-cause death is higher in type 2 diabetes, one would expect the sdHR for dementia to be lower because individuals are likely to die before the development of dementia [32, 33]. Owing to the presence of covariates strongly associated with age, age was used as the time scale with left truncation of age at study entry [34]. A two-tailed significance level of p < 0.05 was used throughout. The proportional hazards assumption was checked using Schoenfeld residuals and the log e -minus-log e curves for Cox models, and the log e -minus-log e curves for the Fine and Gray models.

Results

Baseline characteristics and incident dementia

At study entry, the cohort with type 2 diabetes and the cohort without diabetes were closely matched on age (64.0 ± 11.2 vs 64.0 ± 11.2 years, p = 0.91) and sex (48.7% male sex in both groups), and the prevalence of dementia was similar (diabetes 5/1291 [0.4%], non-diabetes 27/5159 [0.5%], p = 0.66). After exclusion of prevalent dementia, 179/1286 (13.9%) of the cohort with type 2 diabetes and 636/5132 (12.4%) of the cohort without diabetes were recorded with incident dementia during follow-up (p = 0.15). With prevalent dementia included, there were 708 (54.8%) and 2122 (41.1%) deaths in those with and without diabetes, respectively (p < 0.001), of whom 151 (21.3%) and 543 (25.9%) died with dementia (p = 0.014).

The duration of type 2 diabetes at study entry was a median of 4.0 (IQR 1.0–9.0) years. Hospitalisations were significantly more frequent in the FDS1 cohort in the 5 years prior to study entry (median 1 [IQR 0–3] vs 1 [IQR 0–2], p < 0.001), but there was no significant difference by diabetes status with respect to the source of the index dementia record (14.0% and 19.2%, respectively, in individuals with vs without diabetes from the MHIS, 76.5% vs 69.7% from the HMDS, and 9.5% vs 11.2% from death certification, p = 0.19). Sex and comorbidity were both associated with the index dementia record: men had a younger age than women at both the index dementia record and death (both p < 0.001), and participants with a CCI score of 3–13 at study entry were significantly younger at the index dementia record than those with a CCI score of less than 3 (p = 0.017).

Age-specific incidence rates of dementia (all-cause, Alzheimer’s disease, vascular dementia and unspecified dementia) in 10-year age groups from age 55 years onwards, together with the respective IRRs, are presented in Table 1. Type 2 diabetes was associated with a significantly higher incidence rate of all-cause dementia (IRR 1.28 overall) that was significant in most age groups and higher in younger age groups (IRR 4.19, 1.64, 1.43 and 1.43 in the 55–64, 65–74, 75–84 and 85+ year age groups respectively). The IRRs were significantly increased for unspecified dementia in type 2 diabetes, non-significantly increased for vascular dementia and not increased for Alzheimer’s disease. The IRR for all-cause death in participants without dementia at baseline was significantly increased in type 2 diabetes (by 50% overall, significant for all age groups and higher in younger age groups; Table 1).

Table 1 Age-specific incidence rate per 100,000 patient-years and IRR for residents with diabetes (FDS1) vs matched residents without diabetes of index all-cause dementia and subtypes and all-cause deaths

Dementia onset and survival

To further investigate the increased incidence of dementia in type 2 diabetes, we compared ages of dementia onset, death and survival with dementia (Table 2). In type 2 diabetes, the index dementia record occurred at a significantly younger age (by 1.7 [95% CI 0.6, 2.9] years, p = 0.004) than in the non-diabetes cohort. During follow-up, 146 (81.6%) people with dementia and type 2 diabetes and 525 (82.6%) people with dementia and no diabetes died. Those with type 2 diabetes died a mean 2.3 (95% CI 1.1, 3.6) years (p < 0.001) earlier than those without diabetes, and median survival was a non-significant 0.6 years less (p = 0.08). Similar findings were seen for Alzheimer’s disease, vascular dementia and unspecified dementia. Type 2 diabetes was associated with a non-significant earlier age at onset of dementia for all three subtypes, a significant earlier age at death for all subtypes and shorter survival that was significant only for Alzheimer’s disease.

Table 2 Age at time of index dementia record, age at death and median survival after the index dementia record

Diabetes-associated dementia risk

The cause-specific and subdistribution HRs for all-cause dementia are presented in Table 3, and the HRs for the competing event of death in Table 4. The equivalent data for the dementia subtypes are presented in electronic supplementary material (ESM) Table 1. The proportional hazards assumption was met for type 2 diabetes status for both the cause-specific and subdistribution proportional hazards models for all-cause dementia and dementia subtypes (p ≥ 0.07 for Cox models). During 88,488 (13.8 ± 5.8 years) patient-years of follow-up, type 2 diabetes was associated with an sdHR of 1.09 (95% CI 0.92, 1.29) and a csHR of 1.48 (95% CI 1.26, 1.75) for all-cause dementia. With adjustment for age, sex and comorbidities, these relative hazards increased in both models, to 1.18 (95% CI 1.00, 1.39) for the sdHR and 1.51 (95% CI 1.27, 1.78) for the csHR. The cumulative incidence function curves for incident dementia among those with type 2 diabetes vs no diabetes adjusted for age, sex and comorbidities are shown in Fig. 1. The HR for the competing event of death for those with type 2 diabetes vs no diabetes decreased from 1.67 (95% CI 1.53, 1.82) to 1.57 (95% CI 1.44, 1.71) after adjustment (Table 4).

Table 3 Models of incident all-cause dementia in the combined cohort of residents with and without diabetes by type 2 diabetes status with age as the time scale unadjusted and adjusted for baseline age, sex, schizophrenia and CCI, using the Fine and Gray model, and Cox model
Table 4 Cox model of the competing event of death in the combined cohort of residents with and without diabetes by type 2 diabetes status with age as the time scale unadjusted and adjusted for baseline age, sex, schizophrenia and CCI
Fig. 1
figure 1

Cumulative incidence function of all-cause dementia by type 2 diabetes status adjusted for baseline age, sex, schizophrenia and CCI (from the Fine and Gray adjusted model in Table 3; sdHR 1.18, 95% CI 1.00, 1.39, p = 0.055). Solid line, type 2 diabetes cohort; dashed line, age-, sex-, and postcode-matched cohort without diabetes

This pattern of results was mirrored in the models for dementia subtypes. The sdHRs were consistently lower than the csHRs (ESM Table 1). Type 2 diabetes was associated with increased sdHRs for unspecified dementia only (1.34 [95% CI 1.05, 1.71] and 1.45 [95% CI 1.13, 1.85] in unadjusted and adjusted models, respectively) but with significantly increased csHRs for vascular dementia (1.90 [95% CI 1.13, 3.18] and 1.87 [95% CI 1.11, 3.15] for unadjusted and adjusted models, respectively) and unspecified dementia (1.88 [95% CI 1.46, 2.40] and 1.92 [95% CI 1.50, 2.47]) for unadjusted and adjusted models, respectively). There was no increased hazard for Alzheimer’s disease attributable to diabetes.

Discussion

In this matched cohort study, we used administrative health data sets to identify dementia in participants with type 2 diabetes from the FDS1, a representative sample from an urban Australian community [21], and residents without diabetes matched by age, sex and postcode. The main aim was to compare the natural history, incidence and risk of dementia in the two groups. Consistent with previous reviews and meta-analyses [14], we found that type 2 diabetes was associated with an increased incidence and risk of all-cause dementia. This was mainly explained by an earlier age at onset of dementia in diabetes, as survival with dementia was not significantly different between the groups. There was also an increased risk of premature death in type 2 diabetes, and the magnitude of the risk estimate for dementia was considerably attenuated when the competing event of death was accounted for.

The adjusted cause-specific relative hazard of dementia in type 2 diabetes (csHR 1.51) was virtually identical to estimates obtained in prior meta-analyses of studies using Cox models [2, 3]. In contrast, the Fine and Gray models, which included the association of type 2 diabetes with the competing event of death, resulted in a smaller relative hazard for dementia (sdHR 1.18). The adjusted HR for the competing event of death (1.57) was of similar magnitude to that for dementia (1.51). In age-related diseases where mortality is high, the competing event of death may obscure the potential risk of dementia had death been avoided. Presentation of the sdHRs of dementia alongside the csHRs of dementia and mortality are necessary to disentangle the effects of mortality on cause-specific dementia rates in individuals with vs without type 2 diabetes [13, 14].

To our knowledge, there have been no directly comparable studies of the association between dementia and type 2 diabetes that consider the competing event of death, but our findings are consistent with several other related studies. A recent study in older Mexican-American individuals with comparable follow-up to the present study reported lower risk estimates of the association between diabetes and a composite cognitive endpoint (cognitive impairment no dementia plus dementia) with Fine and Gray compared with Cox modelling [16]. The present findings on age at dementia onset, death and survival are also similar to those of a population-based study of incident dementia that employed the same dementia case ascertainment method using WADLS. In this latter study, the presence of any diabetes was associated with a dementia onset and death an average 2.2 and 2.6 years earlier and with significantly but modestly reduced survival times with dementia [18]. The survival times seen in the present and previous study [18] are short in comparison with those given in the literature [35]. This is likely to be explained by a number of factors including the known short survival times seen in late-onset dementia [35], by our use of a proxy age for dementia onset and by our reliance on clinically diagnosed rather than screened cases [36].

The present study has clinical and public health implications. First, fear of dementia is common in the general population [37], and this may be greater in people with diabetes who are aware that that they are at increased risk of cognitive decline. Information relating to the probability and time course of dementia could inform communications with patients with type 2 diabetes and help to reduce anxiety [38]. Second, there has been considerable interest in type 2 diabetes as a potential target for prevention of dementia [7], and risk scores for late-life dementia to be used in middle age have been tested [6]. Our finding that diabetes may be a less potent risk factor for late-life dementia may explain why diabetes did not improve the prediction of dementia in one recent model [6]. Nevertheless, a 2 year age difference in dementia onset has public health importance as even a 1 year delay in dementia onset has been estimated to have a major impact on projections for dementia populations [39]. Although there are currently no models to link cognitive trajectories with incidence of dementia, it has recently been demonstrated that type 2 diabetes confers the equivalent of a 2–3 year acceleration of cognitive ageing [40], suggesting that shared pathophysiological processes contribute to cognitive ageing and risk of dementia in diabetes.

We explored dementia subtypes and included these data for interest, but they should be interpreted with caution. Although all cases required a diagnosis of dementia to be recorded by a medical practitioner, the diagnostic criteria and accuracy cannot be determined given the broad-based source of the diagnostic information. Unspecified dementia (40.6%) and Alzheimer’s disease (39.9%) were the two most frequent subtypes, and vascular dementia was least common (9.1%). It is possible that the presence of diabetes could reduce the likelihood of an Alzheimer’s disease diagnosis being recorded. The dementia subtype data may aid interpretation in that the csHR and sdHR for Alzheimer’s disease suggest no significant association between type 2 diabetes and Alzheimer’s disease; the sdHR may be slightly lower than the csHR because those with type 2 diabetes are more likely to die before experiencing Alzheimer’s disease. For vascular dementia, both the csHR and sdHR were elevated, indicating an increased risk in diabetes. Unspecified dementia had estimates similar to those of vascular dementia, suggesting that much of this subtype could be related to vascular dementia or possibly mixed pathology.

The present study has several strengths. It was conducted in a community-based cohort with accurately diagnosed type 2 diabetes that was representative of the urban Australian diabetes community [21] and in carefully matched residents without diabetes, including matching to the level of Australian postcodes. Matching and dementia case-finding used WADLS, an established, well-developed and validated data linkage system. Although the comparison sample could have included individuals with diabetes, none had diabetes coded at any time before or during the study period.

The main limitation of the present study was the use of health administrative data to detect individuals with dementia. However, we used the same method for both participant groups and there is evidence supporting the validity of the approach. In Australia, the sensitivity, positive predictive value and κ value for ICD-10 dementia diagnoses in hospital records were 67%, 76%, and 0.71, respectively, suggesting substantial agreement between medical charts and registry data [41]. We have previously demonstrated that the use of combined databases in WADLS substantially increases the detection of individuals with dementia [26, 28]. In a Danish study, 86% of dementia and 81% of Alzheimer’s disease diagnoses in hospital registers were correct, while the accuracy for vascular dementia was lower [42].

The other major limitation relates to the potential for survival and selection bias related to the recruitment of the FDS1 cohort who were then matched with residents without diabetes. Such potential sources of bias are likely to result in an underestimate of the association between diabetes and dementia. We had limited ability to adjust for confounders, especially educational status, but matching on postcode may be a surrogate for socioeconomic, migrant and educational status. We were also unable to adjust for other potentially important variables such as diet, exercise, obesity, glycaemia and cardiovascular risk factors, but were able to adjust for comorbidities associated with these risk factors, incorporated into the CCI.

In conclusion, type 2 diabetes is associated with an increased incidence and relative hazard for dementia. Dementia in type 2 diabetes occurs with a younger age of onset compared with community-based residents without diabetes, but has a similar duration of survival. As a consequence of the higher risk of premature mortality, the increased risk of dementia in type 2 diabetes is not as marked as suggested by cause-specific HRs.