figure b

Introduction

Depression and diabetes are complex disease conditions that commonly co-occur [1]. People with type 2 diabetes are at higher risk of presenting with depressive symptoms compared with those without type 2 diabetes [1, 2]. Meta-analyses suggest that the global prevalence of depression in type 2 diabetes has risen from 20% (results published in 2007) to 32%, based on studies published in 2018, and diabetes is associated with a 36–64% increased risk of developing depression [3, 4]. The co-occurrence of depression and type 2 diabetes is associated with poorer adherence to medical treatment, lower quality of life and increased risk of developing long-term microvascular and macrovascular complications, as well as increased mortality risk [5, 6].

While the connection between type 2 diabetes and depression is well-known, the specific burdens of depression in young-onset type 2 diabetes (YOD, diagnosis at age <40 years) and usual-onset type 2 diabetes (diagnosis at age ≥40 years) have received little attention. Recent studies suggest that there is an increasing trend for YOD in many countries, particularly in the USA and the UK, with YOD having more of an aggressive disease phenotype, leading to premature development of complications [5,6,7,8,9]. People with YOD are more likely to develop mental illnesses and microvascular and macrovascular complications as they age [5,6,7, 10], with higher rates of hospitalisations.

Recent studies addressing the diabetes/depression association are primarily based on cross-sectional data, with little longitudinal population-level data addressing the presumed temporal associations [2, 11]. Furthermore, while some studies have reported that depression is less common in the older type 2 diabetes population (>60 years old) [12], other studies have contradicted these findings [13, 14]. The relationship between age and risk of depression among people with type 2 diabetes is inherently complex and requires further investigation to support effective primary care-led chronic disease management and reduction in health cost. To the best of our knowledge, no study has yet examined the temporal trends for depression at type 2 diabetes onset using population-level data. While YOD has been shown to be associated with an increased risk of major chronic conditions [7, 15], its interaction with other comorbidities in men and women, and the impact of such interaction on the risk of developing depression in people with incident type 2 diabetes, have not been studied. Previous studies have shown and discussed fundamental differences in people with and without cardiometabolic comorbidities at type 2 diabetes diagnosis [5, 9]. The various combinations of comorbidities present before and after diagnosis of diabetes may drive different levels of risk between different age groups and between men and women. Finally, while recent longitudinal studies based on electronic medical records (EMRs) have reported an increasing prevalence of YOD in the USA and the UK, which have different healthcare systems [5, 8, 9], it is of great importance to also evaluate whether the risk dynamics of depression along with other comorbidities in people with a new diagnosis of type 2 diabetes are similar at the population level in these different healthcare systems.

Using nationally representative EMRs from the UK and USA for people with incident type 2 diabetes, the aims of this study were to: (1) explore temporal trends in the prevalence and incidence of depression in people with young- and usual-onset type 2 diabetes by sex; (2) examine the risk of developing depression in people with YOD compared with those with older-onset type 2 diabetes by sex; and (3) evaluate the effect of the interaction between YOD and comorbidities at type 2 diabetes diagnosis on the risk of developing depression.

Methods

This study was performed according to the Reporting of Studies Conducted Using Observational Routinely Collected Data (RECORD) guidelines (http://www.record-statement.org).

Data

Two nationally representative EMRs were used in this study: the Health Improvement Network (THIN), which represents over 770 primary care practices across the UK, and Centricity Electronic Medical Records (CEMR), which represents over 40 000 ambulatory and primary care medical practices from across all states in the USA. These databases are generally representative of the UK and US populations with respect to demographics, major disease prevalence and cardiometabolic risk factors [16, 17]. Longitudinal records were available from 2006 to 2017 for more than 17/46 million individuals from THIN/CEMR, with comprehensive patient-level information on demographic and anthropometric variables, clinical and laboratory measures, prescription drugs and disease events. All disease diagnoses were coded according to the Read codes (https://digital.nhs.uk/article/1104/Read-Codes) in the 9th and 10th revisions to the International Classification of Diseases (ICD-9 and ICD-10) (http://www.icd9data.com/2007/Volume1/default.htm; http://apps.who.int/classifications/icd10/browse/2016/en).

Study cohort identification

The study cohorts from the UK and US databases were identified using the following conditions: (1) data available for age and sex, (2) aged 18–80 years at the time of type 2 diabetes diagnosis; (3) diagnosed on or after 1 January 2006 to 30 September 2017; and (4) date of type 2 diabetes diagnosis at least 6 months after registering into the EMRs to reduce bias in identifying incident cases. The clinically guided machine learning-based algorithms to identify patients with type 2 diabetes from EMRs have been described previously [18, 19]. The date of type 2 diabetes diagnosis was defined as the index date.

Study variables

For both cohorts of people with incident type 2 diabetes, data on prescriptions, disease diagnoses, demographic variables, and clinical and laboratory measurements were extracted. Details of the methodology used for data extraction and assessment of longitudinal patient-level risk factors, disease events and medication data from THIN and CEMR databases have been described previously [5, 19,20,21,22]. Baseline demographic variables and clinical and laboratory measures included age at type 2 diabetes diagnosis (18–39, 40–49, 50–59, 60–69 and 70–79 years), sex, ethnicity (USA only), Townsend deprivation score (UK only), smoking status, BMI, HbA1c, and systolic BP. Young-onset diabetes included patients diagnosed with type 2 diabetes at age <40 years while usual-onset diabetes included patients diagnosed at age ≥40 years.

Any mental illness (AMI) was defined as the presence of (1) mental illness that meet diagnostic criteria specified within DSM-5, excluding developmental and substance use disorders [23], or (2) at least two prescriptions for antidepressant medication. AMI included depression, anxiety, bipolar disorder, schizophrenia, post-traumatic stress disorder, eating disorder, gender dysphoria, personality disorder and other unspecified mental illnesses. Depression was defined using a clinically guided machine learning-based algorithm [24, 25]. The definition included those with a diagnostic code or at least two prescriptions (within a 6-month window) for antidepressants used for treating depression: antidepressant medications were limited to those commonly prescribed for depression (electronic supplementary material [ESM] Tables 1 and 2). The algorithm accounted for other mental illnesses specified within AMI, and all diagnoses of depression or AMI were based on first occurrences of the disease during the study period. Atherosclerotic cardiovascular disease was identified as a clinical diagnosis of myocardial infarction, ischaemic heart disease, unstable angina, ischaemic stroke, haemorrhagic stroke, transient ischaemic attack, peripheral vascular disease or cerebrovascular disease. The definition of any cardiovascular disease included atherosclerotic cardiovascular disease and heart failure. Chronic kidney disease included diagnostic codes for stages 2–5 or end-stage renal disease, nephropathy and kidney dialysis, or a GFR <60 ml/min per 1.73 m2 or a urine albumin/creatinine ratio >30 mg/mmol (300 mg/g). Microvascular disease was defined as a clinical diagnosis of neuropathy, retinopathy or chronic kidney disease. Cancer included any malignant neoplasm excluding skin cancer. Hypertension/dyslipidaemia were defined as the presence of a clinical diagnosis or use of antihypertensive/lipid-lowering drugs. Comorbidities included any cardiovascular disease, microvascular diseases, obesity grade 2 + (BMI ≥35 kg/m2) or cancer. A disease was considered as prevalent if its first available diagnostic date was on or prior to the index date, and incident if the first diagnosis occurred after the index date.

Ethics statement

The protocol for the UK data was approved by the Scientific Review Committee of IQVIA Medical Research Data UK, incorporating THIN (protocol number SRC Protocol 19THIN081-v1-11-102019). This study also involved the use of EMRs from the USA in which patients could not be identified directly or through identifiers linked to them. According to US Department of Health and Human Services Exemption 4 (CFR 46.101(b)(4)), this study is exempt from ethics approval from an institutional review board and informed consent.

Statistical analysis

Baseline characteristics are summarised by number (%), mean ± SD or median (IQR) as appropriate by age groups. Results are reported in the order UK/USA where appropriate.

The crude prevalence (95% CI) of depression was estimated by age at type 2 diabetes diagnosis, sex, and year of type 2 diabetes diagnosis. This was done by summing the number of patients with prevalent events and dividing by the total number at index date. Among patients without history of AMI at the index date, we estimated the crude incidence rates of depression per 1000 person-years (PTPY; 95% CI) by age at type 2 diabetes diagnosis, sex, baseline comorbidities and year at type 2 diabetes diagnosis. The follow-up time was measured from type 2 diabetes diagnosis date to the date of occurrence of depression or the end of the study follow-up if depression did not occur.

To evaluate the changing patterns in individual trends for prevalence and incidence of depression, the joinpoint regression based on annual percentage change estimates was obtained [26]. Among people without AMI at type 2 diabetes diagnosis, survival models were used to evaluate the risk of developing depression in people aged 18–39 years compared with older age groups, separately in men and women and by comorbidity status [27, 28]. The HRs and 95% CIs were obtained in addition to absolute risk (AR, additional number of depression cases PTPY) in the youngest age group compared with the older age groups.

Several survival models were assessed using Akaike’s information criteria, from which the Weibull model was chosen as the best fit for estimating the HR, while Aalen’s additive hazards model was used to estimate the AR of depression. The baseline survival model included age at diagnosis, deprivation status (UK only), smoking status, ethnicity (USA only), hypertension and dyslipidaemia.. Based on Akaike’s information criteria, dyslipidaemia was dropped from the final model. Missing data for ethnicity, deprivation and smoking status were included as a categorical field (missing or unknown).

Results

Patient characteristics at type 2 diabetes diagnosis

A total of 230,932/1,143,122 people diagnosed with type 2 diabetes in the UK/USA met the inclusion criteria (ESM Fig. 1), with a mean follow-up of 5.0/4.6 years (Table 1). At baseline, the mean age (±SD) was 58 ± 13/60 ± 13 years, with 57%/46% men, 21%/21% current smokers, 61%/73% with hypertension, 48%/33% with AMI and 53%/62% with one or more comorbidity (Tables 1 and 2). Obesity was significantly higher among young adults (71%/77% in those aged 18–39 years at diagnosis, and 72%/79% in those aged 40–49 years), compared with older age groups. The mean HbA1c and proportion with HbA1c ≥59 mmol/mol (7.5%) among the group diagnosed at 18–39 years old (70 mmol/mol [8.6%]/64 mmol/mol [8.0%] and 58%/45%, respectively) were significantly higher compared with those diagnosed at 40–49 years old. The prevalence of comorbidities was highest in the group aged 70–79 years (70%/65%), and that in the group aged 18–39 years were 36%/59%. In the UK, younger adults were most deprived compared with older adults, and in the USA, the distributions of ethnicity were similar across age groups (ESM Tables 3 and 4).

Table 1 Patients’ demographic and clinical characteristics at the time of type 2 diabetes diagnosis by age groups in the UK and US cohorts
Table 2 Patients’ comorbidities at the time of type 2 diabetes diagnosis by age groups in the UK and US cohorts

Temporal trends in the prevalence and incidence of depression

The overall prevalence of AMI and depression by age groups is presented in Table 2. The depression prevalence was similar between the group aged 18–39 years (32/26%) and those aged 70–79 years (32/21%). The temporal trend in the prevalence of depression has been significantly increasing over the last 10 years across all age groups in both men and women, with women having a consistently significantly higher prevalence compared with men in both countries (Fig. 1). Overall, the prevalence of depression increased from 29% (95% CI 28, 30)/22% (95% CI 21, 23) in 2006 to 43% (95% CI 42, 44)/29% (95% CI 28, 29) in 2017 (ESM Fig. 2), with annual increasing rates of 3.8%/2.8%.

Fig. 1
figure 1

Observed and modelled trends in the prevalence of depression among incident type 2 diabetes (T2DM) patients from the UK and the USA. The trends are represented separately by age at diagnosis of type 2 diabetes and sex. (a–e) UK trends for the 18–39 (a), 40–49 (b), 50–59 (c), 60–69 (d) and 70–79 (e) year age groups; (f–j) US trends for the 18–39 (f), 40–49 (g), 50–59 (h), 60–69 (i) and 70–79 (j) year age groups. The black diamonds and red circles represent observed prevalence for men and women, respectively; the lines are estimates from the joinpoint regression model [29]. The numbers shown within the plots are the mean annual percentage change (95% CI)

The overall incidence PTPY for depression also increased from 40 PTPY (95% CI 39, 41)/33 PTPY (95% CI 32, 34) in 2006 to 50 PTPY (95% CI 45, 55)/62 PTPY (95% CI 60, 64) in 2016 (ESM Fig. 2). Men and women in the UK aged <50 years had numerically higher incidence rates compared with those aged 50–69 years at type 2 diabetes diagnosis, with or without comorbidity at baseline (Table 3). However, the presence of a baseline comorbidity led to a significant increase in depression incidence among those aged 18–39 years at diagnosis, compared with older age groups, consistent across sex in both countries.

Table 3 Unadjusted rates for depression onset by age, sex and baseline comorbidity in individuals with incident type 2 diabetes from the UK and USA

Risk of depression in YOD compared with usual-onset type 2 diabetes patients

The adjusted HR (95% CI) and AR for depression in people aged 18–39 years compared with older age groups, separately in men and women by baseline comorbidity status, are presented in Fig. 2 and ESM Table 5. In the UK, compared with people aged ≥50 years, the youngest men had a 23–57% significantly higher risk of developing depression (AR 8.6–19.0 cases PTPY) and the youngest women had a 20–55% significantly higher risk of developing depression (AR 10.4–27.3 cases PTPY); the results were, similar for those with and those without comorbidity at type 2 diabetes diagnosis. In the USA, an increased depression risk in those aged 18–39 years was observed compared with those aged ≥60 years with or without comorbidities: the risk increased in men by 5–17% (AR 1.3–5.1 cases PTPY) and that in women increased by 8–37% (AR 3.7–17.2) (all p <0.01).

Fig. 2
figure 2

Adjusted HR (95% CI) of developing depression in patients diagnosed with type 2 diabetes at age 18–39 years compared with those diagnosed at 40–49 years (a, b), those aged 18–39 years compared with those aged 50–59 years (c, d), those aged 18–39 years compared with those aged 60–69 years (e, f), and those aged 18–39 years compared with those aged 70–79 years (g, h) in the UK cohort (a, c, e, g) and the USA cohort (b, d, f, h). Comparisons were made for patients with baseline comorbidities (red symbols) and without baseline comorbidities (black symbols). AR represents the absolute risk (additional depression cases PTPY). The horizontal dashed lines represent an HR of 1, indicating no difference between young- and usual-onset diabetes

Discussion

This longitudinal study, based on two cohorts of approximately 1.4 million people with incident type 2 diabetes from population-representative EMRs from two different healthcare systems, offers new insight into the depression risk dynamics in YOD and usual-onset type 2 diabetes patients. The primary findings are: (1) a significant increasing trend in the prevalence of depression at the time of type 2 diabetes diagnosis, which is similar across all age groups in both countries, and (2) that men and women with YOD (aged <40 years at time of diagnosis) have a significantly higher risk of developing depression compared with those who developed type 2 diabetes at ≥50 years, with the risk being similar irrespective of cardiometabolic comorbidities at the time of type 2 diabetes diagnosis.

We observed a significant increasing trend in the prevalence of depression and AMI at the time of type 2 diabetes diagnosis, which was similar across all age groups in men and women in both countries. Although the prevalence of a cardiometabolic comorbidity at the time of type 2 diabetes diagnosis has been found to be highest among people aged ≥60 years at the time of type 2 diabetes diagnosis in both countries [2, 5, 29], we observed that the depression prevalence is similar across all age groups.

Although our depression prevalence estimates at the time of type 2 diabetes diagnosis for the UK are higher than in the USA (UK 35%; USA 25%), the estimates are comparable with those obtained in earlier studies from Europe and the USA in established type 2 diabetes populations: 23% (CI 18, 28%) in Europe [3] and 25% (CI 23, 28%) in the USA [11].

A novel finding of our study is the significantly higher risk of developing depression in patients with YOD compared with patients with usual-onset type 2 diabetes, with the risk estimates being similar for people with and without comorbidities at the time of type 2 diabetes diagnosis. In the UK, these risk estimates were similar for people with and without comorbidities in both men and women across all increasing age groups. A similar trend was observed in US men. However, the patterns of risk among US women were different by baseline comorbidity status, particularly in the comparisons with age groups 40–49 and 50–59 years (Fig. 2b and d). The observed difference could be due to unmeasured mediation effects, which requires further investigation. This clearly indicates the mental health implications of developing diabetes at an early age irrespective of underlying comorbidities. While the pathophysiology of depression in people with type 2 diabetes has been discussed [1, 6], several factors, including a higher burden of risk factors including obesity in YOD, may partially explain the higher risk of developing depression in patients with YOD compared with usual-onset type 2 diabetes. A recent USA CEMR data-based study reported a similar mediation effect of depression across all age groups after diagnosis of type 2 diabetes on the increased cardiovascular risk [5]. However, to further evaluate the observed higher depression risk in YOD irrespective of comorbidity status at type 2 diabetes diagnosis, future studies evaluating the mediation effects of the time-varying cardiometabolic diseases and risk factors before and after type 2 diabetes diagnosis on depression risk in different age groups, sex and ethnicity would be of great importance.

As observed in this study, the prevalence and incidence of depression in people with type 2 diabetes are significantly higher among women in both countries, with the rate of increase in the prevalence of depression among women also being consistently higher across all age groups, compared with men. While recent studies using these UK or USA EMRs have reported the overall prevalence of depression and other comorbidities at onset of type 2 diabetes [2, 5, 15, 29], we are not aware of any study that explored the population-level trend in depression prevalence at the time of type 2 diabetes diagnosis across age groups and sex [11]. Understanding the recent changing dynamics of cardiometabolic comorbidity and depression in patients with YOD and usual-onset type 2 diabetes is of paramount importance for proactive engagement of primary care teams in population-level mental health management and healthcare cost reduction. The 2004–2011 Medical Expenditure Panel Survey from the USA showed that the average medical cost for patients with diabetes and symptomatic depression was more than double compared with people with diabetes and no depression [30].

Despite the sociodemographic and healthcare system differences between the UK and the USA, all age groups experienced statistically significant increases in comorbid depression during the study period (Fig. 1). A plausible reason for the 2–9% annual increase in the rates of comorbid depression is an increased awareness and likelihood of diagnosis in primary/ambulatory care, as more research and education about the association between diabetes and depression emerges [3, 11]. In addition, better record-keeping as a result of the transition to EMRs would have resulted in an increased likelihood of capturing secondary medical diagnoses including depression. This is reflected in the overall temporal prevalence of depression for the USA, with a significant annual percentage change observed from 2009 onwards (ESM Fig. 2).

Proactive management of comorbid depression in terms of timely screening, early diagnosis and pharmacotherapeutic treatment may lead to improved glycaemic and other risk factor control in people with diabetes, delayed onset of complications and lower healthcare-associated costs. Petrak et al [31] recommend treating depression first, as the response to medications is usually seen within weeks after initiation of antidepressant treatment, while improvement in the glycaemic control requires several months. Given the increasing rate of comorbidities and the varying dynamics of different sociodemographic populations, innovative approaches to identify subgroups of patients for proactive management will be beneficial. More research is required to understand the dynamics and patterns of management of patients with depression to improve outcomes for patients with diabetes and other comorbidities including depression. In addition, given the complexity of the roles of comorbidities in the interplay of diabetes and depression, detailed evaluation of the bidirectional association between these conditions in different ethnicities, age groups and sex is crucial [32].

The main strength of our study is the simultaneous evaluation of longitudinal data from two nationally representative primary/ambulatory care EMRs from different healthcare systems in the UK and the USA over a period of 11 years. Compared with cross-sectional surveys that primarily capture self-reported symptomatology at a single point in time, EMR data provides information on a wealth of comorbidities based on reliable clinical diagnoses. In addition, patient data in EMRs can be linked to longitudinal patient-level medical and clinical records; making it possible to explore temporal associations between risk factors and disease outcomes, including depression [5].

There are several unavoidable limitations in outcome studies based on EMRs. The under-reporting of depression is a common problem globally. Mis-coding of conditions is a common limitation when using EMRs. However, we used clinically guided machine learning-based methods to identify people with type 2 diabetes and depression. There is bias in recording of depression over time, and difficulties identifying people who have been receiving prescriptions for antidepressants that are meant to be used for treating depression only (in the absence of clinical codes for depression). The increasing prevalence of comorbid depression may reflect an increase in the actual incidence of depression but may also be due to several other factors, including physician awareness and diagnosis or documentation practices. Also, the availability of socioeconomic, smoking status and ethnicity data was not consistent in the EMRs from the UK and the USA. Other limitations include unavoidable indication bias and residual confounding, which are common problems in any EMR-based outcome studies, together with a lack of data on physical activity, the nature of insurance, education, income, other cultural drivers, missing HbA1c results and lack of reliable data on competing risks such as death. While mortality is an important competing risk in the context of outcome studies with real-world longitudinal EMRs, we were unable to perform any sensitivity analysis accounting for competing risks due to death, as the CEMR database does not provide death data and deaths are poorly recorded in the THIN database. Furthermore, while obtaining reliable information on medication adherence is a common problem in all clinical studies, detailed validation studies of these EMRs suggested a high level of agreement between EMR prescription data and pharmacy claims data, especially for chronic diseases [33].

In conclusion, the prevalence and incidence of depression among people with incident type 2 diabetes in the UK and the USA are rapidly increasing across all age groups, particularly in those with YOD. Men and women with YOD have a significantly higher risk of developing depression compared with those with usual-onset type 2 diabetes, with the risk being similar in people with and without comorbidities at type 2 diabetes diagnosis. It is recommended that clinicians screen regularly for depression in people with incident type 2 diabetes, particularly among those who are <50 years old, irrespective of their cardiometabolic comorbidity status.