Introduction

The prevalence of depression in patients with diabetes is twice that of those without diabetes and even more elevated in women than in men [1, 2]. Diabetes may increase the risk of subsequent depression and vice versa [3]. A systematic review of the bidirectional relationship has discussed the potential mechanisms. For individuals with diabetes, these include the psychosocial burden of having a chronic disease, the need for a high level of self-care including blood glucose monitoring, management of medication and strict nutrition, and the biochemical changes associated with diabetes—all of which may lead to depression. For persons with depressive disorders, behavioral factors such as diet, exercising, and smoking habits associated with obesity and insulin resistance, poor self-care behavior, and biochemical changes, including increased hypothalamic-pituitary-adrenocortical axis activity and sympathetic nervous system activity resulting in elevated cortisol levels, together with increased synthesis of pro-inflammatory cytokines, may lead to diabetes [4]. However, a full understanding of the correlation between type 2 diabetes (T2D) and depression is yet lacking. It would appear that important knowledge concerning certain biological factors is missing that would help to explain this association.

Several previous studies have demonstrated an association between low levels of vitamin D and increased risk of impaired glucose tolerance, insulin resistance, and incidence of T2D [5, 6]. Furthermore, systematic reviews and meta-analyses have shown an association between low vitamin D levels and risk of depression [7, 8], which has been replicated in more recent studies [9,10,11,12,13,14]. The majority of previous studies have been cross-sectional, while in most [10, 13, 15, 16], but not all [17], longitudinal studies, an association between low baseline blood 25(OH)D (25-hydroxyvitamin D) and development of depressive symptoms has been found. The association between vitamin D and mood disorders has been explored in patients with cardiovascular disease [16], obesity [18], and post-stroke [14]. To the best of our knowledge, only two studies of patients with T2D concerning the association between vitamin D and depression have been published, these presenting contradictory results. In the first study, serum 25(OH)D level was not a mediatory factor in the association between impaired glucose tolerance/impaired fasting glucose or T2D and depressive symptoms [19]; however, this study was small with only 104 T2D patients. In the second study, an inverse association between serum 25(OH)D levels and depression was found in patients with T2D [20]; however, since the participants were recruited from hospital-based clinics, they may not be representative of all individuals with T2D. Another study examined the effects of vitamin D supplementation on dimensions of health-related quality of life in patients with T2D [21].

Given the high prevalence of T2D, depression, and vitamin D deficiency, an association between vitamin D deficiency and mental well-being in T2D patients could have potential public health implications. Thus, we explored the association between data from patient questionnaires measuring mental well-being in terms of vitality and mental health at baseline and after 4 years together with baseline levels of vitamin D in a community-based sample of participants with T2D in primary care.

Methods

Participants

We analyzed data from T2D patients aged 55–66 years (n = 761) who participated in a prospective observational community-based cohort study: CARDIPP (Risk factors in Patients with Diabetes—a Prospective study in Primary Care), which has been described previously [22,23,24]. The participants were consecutively recruited from 22 primary health care centers in southern Sweden. The baseline examination was performed between 2005 and 2008 and all participants were invited to a reinvestigation after 4 years.

General questionnaire

The study participants filled out a questionnaire about their marital status, occupation, well-being, and lifestyle factors, which included exercising, smoking, and drinking habits at baseline. A standardized anamnesis was taken that included ongoing medication inclusive of vitamin D and other supplements.

Questions on mental well-being

The short form health survey SF-36 was used to measure mental well-being in terms of vitality and mental health. SF-36 is a widely used, standardized questionnaire derived from the Medical Outcomes study in the 1980s measuring self-reported physical and mental health status [25]. The study participants were asked to answer the questions regarding the health concepts vitality and mental health depicted in Table 1. The items were assessed with a range from 1 to 6, i.e., 1 = all of the time, 2 = most of the time, 3 = a good bit of the time, 4 = some of the time, 5 = a little of the time, and 6 = none of the time. According to a standardized scoring protocol [26], the responses to each item were scored and summed, and the scores for each health concept were expressed as a score between 0 and 100, where a higher score represents better self-perceived health. An evaluation of SF-36 regarding data quality, scaling assumptions, reliability, and construct validity has been made in Sweden with reliable results [27].

Table 1 Questions on vitality and mental health from the short form health survey SF-36

Physical measurements

Nurses dedicated to treatment of diabetes measured body weight to the nearest 0.1 kg and height to the nearest centimeter with the patients wearing light clothing and without shoes, using a standardized protocol and standardized equipment in the local laboratory of the health care centers. BMI (body mass index) was calculated from the weight in kilograms divided by the square of the height in meters. The average of three manually measured sitting blood pressures with 1 min between each measurement was used for analysis [28].

Laboratory methods

A venous blood sample was taken from participants at baseline in the fasting state and was used for immediate routine laboratory analyses and for biobanking of plasma/serum/urine aliquots frozen and stored for later analyses. From the frozen samples, serum 25(OH)D3 (25-hydroxyvitamin D3) was analyzed using chemoluminiscense on a Cobas e602 unit (Roche Diagnostics Scandinavia AB, Bromma, Sweden). Details of the laboratory methods have been described previously [24].

Statistical analyses

For the statistical analyses, we used IBM SPSS Statistics 23 (International Business Machines Corporation, New York, USA). Non-parametric tests were used, as the quantitative variables were not normally distributed. Median was used as average value and interquartile range (IQR) as a measure of statistical dispersion. The Mann-Whitney U test and Kruskal-Wallis H test were used to compare median levels of continuous variables between groups. Regarding the results of SF-36, we also presented mean and standard deviation (SD), and the one sample t test was used to compare our results with the mean values of the Swedish population. The chi-square test was used to investigate the associations between categorical data. We analyzed Spearman’s correlation coefficients to assess associations between serum 25(OH)D3 and key continuous variables, vitality, and mental health. To calculate OR (odds ratio) for vitality and mental health associated with serum 25(OH)D3, we used binary logistic regression analyses. The median scores were used to dichotomize the concepts of vitality and mental health from the SF-36. All covariates used in all the logistic regression models were measured at baseline. Statistical significance was defined as p < 0.05. We categorized April–September as summer, and January–March and October–December as winter in order to adjust for the season when the blood samples for vitamin D were drawn.

Results

CARDIPP had 761 participants. In total, 63 subjects were excluded because of vitamin D supplementation (n = 20) or missing data on vitamin D status (n = 44). One subject had both vitamin D supplementation and missing data on vitamin D status. Of the 698 subjects remaining for further analyses, 463 (66%) were male and 235 (34%) female.

Serum 25(OH)D3 and baseline measurements

The range of serum 25(OH)D3 was 7.5–164.9 nmol/l and the median (IQR) 25(OH)D3 concentration was 47.5 (26.3) nmol/l. The baseline characteristics of the study population, categorized by serum 25(OH)D3 quartiles, are shown in Table 2. There was no difference in marital/cohabiting status between the quartiles. No difference in occupation regarding professional work, unemployment, long-term sick leave, or early retirement was seen, but there was a difference between the quartiles regarding retirement due to old age with a higher proportion of old-age retirees in the highest 25(OH)D3 quartile (p = 0.030). There was a variation between the vitamin D quartiles in self-reported exercising habits with the highest proportions of participants categorized as sedentary or doing mild exercise being in the quartile with the lowest vitamin D levels (p = 0.005). Regarding alcohol use and smoking habits, no variation was seen. The baseline characteristics regarding age, gender, anthropometric measurements, and laboratory data have been described previously [24]. Spearman’s correlation coefficients between 25(OH)D3 and key continuous variables are presented in Supplementary Table 1.

Table 2 Baseline characteristics according to serum 25(OH)D3 quartiles

Mental well-being from SF-36 and follow-up

Data on vitality and mental health according to SF-36 was available for 98% (n = 687 for vitality/n = 686 for mental health) of the study participants at baseline and for 67% (n = 469 for vitality/n = 467 for mental health) at the follow-up after 4 years. In total, the median (IQR) score for vitality was 70 (30), and the mean (SD) score was 63.7 (23.2) at baseline. At follow-up, the median (IQR) score for vitality was 70 (35), and the mean (SD) score was 64.8 (22.5). The median (IQR) score for mental health was 84 (20) both at baseline and at follow-up. The mean (SD) score was 80.4 (17.5) at baseline and 80.4 (17.1) at follow-up. The Spearman’s correlation coefficients between 25(OH)D3 and vitality and mental health scores are presented in Supplementary Table 2.

Although the average vitality and mental health scores did not change over the follow-up period, there were individual differences. The number of study participants with deteriorated scores in vitality respective to mental health at follow-up compared with baseline was 188. The number of study participants with deteriorated scores of both health concepts at follow-up was 109. There were no differences between the participants who showed deterioration in vitality and/or mental health at follow-up and the participants who had unchanged/improved scores regarding the baseline characteristics except for occupational status. This is further elaborated in Supplementary Table 3.

The study participants who did not attend the follow-up (n = 229) more often were unmarried/living alone, sedentary, current smokers, and obese compared with participants who attended the follow-up (n = 469). Furthermore, the non-attendees at follow-up had longer diabetes duration but lower diastolic blood pressure and lower levels of PTH, 25(OH)D3, and creatinine (p < 0.05). The median (IQR) baseline 25(OH)D3 for those who attended the reinvestigation was 49.0 (26.3) nmol/l compared with 44.7 (26.1) nmol/l for those who did not attend the reinvestigation (p = 0.006). This is further elaborated in Supplementary Table 4.

Adjusted associations between 25(OH)D3 and mental well-being

Table 3 shows the ORs of vitality and mental health for a 10 nmol/l increase in baseline serum 25(OH)D3 in five models. Baseline serum 25(OH)D3 was inversely associated with poor mental health in all models in the baseline analyses (p < 0.05) but not in the 4-year follow-up analyses. Serum 25(OH)D3 was not associated with vitality at baseline. At follow-up, baseline serum 25(OH)D3 was associated inversely with low vitality in three models but not when adjusting for diabetes-related data or lifestyle factors.

Table 3 Odds ratios of mental well-being at baseline and at 4-year follow-up associated with a 10 nmol/l increase in baseline 25(OH)D3

Discussion

In this community-based cohort study with T2D patients, we found an inverse association between vitamin D and poor mental health at baseline, and the association remained significant when adjusting for confounders such as season, clinical data, and lifestyle factors. This finding is consistent with one [20] of the two studies confined to populations with diabetes and with the majority of previous studies in non-diabetic populations [7,8,9, 11, 12, 14]; however, it is not consistent with most of the cohort studies reporting an association between low baseline vitamin D levels and future development of depressive symptoms [10, 13, 15, 16], as we did not find any association at follow-up.

For vitality, no association with vitamin D was found at baseline. At follow-up, the significant association first seen disappeared when clinical data regarding diabetes status and lifestyle factors were added into the analyses. Our results indicate that other factors have a larger impact on vitality than vitamin D in patients with T2D. The participants in our study had a significantly lower mean score for vitality compared with the Swedish general population (mean score 68.8) [27] both at baseline (p < 0.001) and at follow-up (p < 0.001), which is not surprising as T2D is a chronic disease. In contrast, no difference was seen for mental health (p > 0.05) compared with the Swedish general population (mean score 80.9) [27].

Our study is different compared with previous studies, as the outcomes in our study (dimensions of mental well-being) differ compared with those of previous studies (depressive disorders/symptoms), which may weaken the association. In our study, we used self-reported answers in questionnaires to measure mental well-being. In a previous meta-analysis, the association between vitamin D status and risk of depression was strongest in cross-sectional studies using a structured clinical diagnostic interview or clinical diagnosis to identify depression instead of a self-reported symptom scale [7].

The baseline characteristics of the study population have partly been described previously in a study exploring the association between vitamin D and cardiovascular morbidity and mortality [24]. However, the current study targets the issue concerning the association between vitamin D levels and mental well-being in the study cohort. As the previous research on vitamin D and mental health in patients with T2D is limited and inconsistent, our results expand the current knowledge on the association between vitamin D and mental well-being.

Different mechanisms through which vitamin D may influence brain functions and lead to depressive symptoms have been proposed. VDR (vitamin D receptor) [29] and the enzyme 1-alpha-hydroxylase, required for production of the active form of vitamin D, 1,25(OH)2D3 (1,25-dihydroxyvitamin D3) [30], are distributed throughout the human brain, suggesting possible autocrine/paracrine effects of vitamin D in the brain. An interaction between vitamin D and glucocorticoids in the hippocampus has been found [31]. Vitamin D is involved in several different brain processes including regulation of neurotrophic factors, neuroplasticity, and neuroprotection [32]. Vitamin D also has a modulatory effect on pro-inflammatory cytokines and downregulates inflammatory mediators, which is a possible link between vitamin D deficiency and depression [33]. Vitamin D might also have direct neuroregulatory effects, as genetic variance in the VDR gene influences cognitive functions and the prevalence of depressive symptoms in older individuals [34]. It is also plausible that depressive disorders lead to a poor diet and fewer outdoor activities, resulting in less sunlight exposure and lower 25(OH)D3 concentrations, i.e., low vitamin D levels are not the cause but the effect of the depression.

Strengths and limitations

The main strength of this study is that it is a community-based study among patients with T2D, and the results could be generalized to all patients with T2D. Other strengths include the prospective study design and the fact that several confounders could be integrated in the analyses. This study also has some weaknesses. We had no data on the medical history of depression or other prior diagnoses of affective disorders, nor any data on antidepressant medication. We had to rely on a single 25(OH)D3 value drawn at baseline for calculations of the association between vitamin D and the mental well-being both at baseline and follow-up, which is a weakness of the follow-up analyses. One-third of the study population was lost to follow-up after 4 years. There are several differences between those of the groups who did not attend the reinvestigation, including significantly lower baseline vitamin D values, compared with those who did attend the reinvestigation. This potential selection bias might weaken the association between vitamin D and mental health and vitality at follow-up. There is a discrepancy between the size of the associations between serum 25(OH)D3 and vitality and mental health in Spearman’s correlations and the size of the results of the logistic regression analyses, which is why we cannot rule out moderation of an unrecognized factor or a non-linear association. Due to the observational study design, we cannot preclude residual confounding and cannot draw conclusions about causality.

In summary, in this study with middle-aged patients with T2D, we found an inverse association between serum 25(OH)D3 and poor mental health at baseline but not at follow-up. We found no association between serum 25(OH)D3 and vitality at baseline, while at follow-up, the association first seen disappeared after controlling for confounding factors. Future prospective studies and clinical trials are warranted to better define the association between vitamin D and mental well-being in patients with T2D.