Introduction
Type 2 diabetes mellitus (T2DM) and depression are increasingly significant global public health issues, exacerbated by rapid socioeconomic development and profound lifestyles changes [Reference Sun, Saeedi, Karuranga, Pinkepank, Ogurtsova and Duncan1, Reference Lu, Lin and Su2]. Among adults aged 20–79 years, the global prevalence of diabetes was 10.5% (536.6 million people) in 2021, with a projected increase to 12.2% (783.2 million individuals) by 2045 [Reference Sun, Saeedi, Karuranga, Pinkepank, Ogurtsova and Duncan1]. Furthermore, the worldwide prevalence of prediabetes, characterized by impaired glucose tolerance or impaired fasting glucose, is ~9%, with a projected upward trend [Reference Rooney, Fang, Ogurtsova, Ozkan, Echouffo-Tcheugui and Boyko3]. Depression has been the leading cause of years lived with disability since 2010, affecting ~280 million people worldwide [4]. Compared to individuals with normal glucose metabolism, the prevalence of depression is moderately increased in prediabetic patients, and significantly higher in those previously diagnosed with T2DM [Reference Chen, Zhang, Dai, Hu, Zhu and Su5]. A systematic review revealed that the occurrence of depression is two to three times more prevalent in individuals with T2DM than in those without diabetes [Reference Roy and Lloyd6]. Besides, research has confirmed that depression is significantly associated with increased all-cause mortality in patients with T2DM [Reference Coleman, Katon, Lin and von Korff7]. Both T2DM and depression are chronic diseases that constitute a substantial and increasing proportion of the global disease burden [8]. Given the high prevalence and impact of depression in individuals with T2DM, enhancing T2DM surveillance and identifying risk factors for the progression from incident T2DM to subsequent depression are crucial for implementing effective depression prevention strategies and interventions.
Loneliness and social isolation are the most formidable contemporary public health challenges [9]. Their prevalence is extensive, with approximately one-fourth of adults aged 65 years and older reporting social isolation and one-third of adults aged 45 years and older reporting feelings of loneliness [Reference Donovan and Blazer10]. Loneliness is primarily characterized by subjective emotional experiences of isolation, reflecting individuals’ authentic social interactions, while social isolation is determined by objective circumstances such as limited contact with others and disengagement from social groups and activities [Reference Cacioppo, Grippo, London, Goossens and Cacioppo11, Reference Escalante, Golden and Mason12]. Loneliness and social isolation are associated with a spectrum of adverse health consequences, encompassing T2DM and depression, which can impact individuals throughout their lifespan [Reference Zhang, Liu, Zhou, Ye, Zhang and Yang13, Reference Zhang, Kuang, Xin, Fang, Song and Yang14]. Two large prospective cohorts conducted in Europe and East Asia revealed a significant association between loneliness, social isolation, and an increased risk of T2DM [Reference Song, Zhu, Shi, Song, Cui and Chang15]. Both experimental and observational data support the notion that loneliness and social isolation can lead to immune inflammatory response and alterations in the hypothalamic–pituitary–adrenal (HPA) axis, potentially triggering the onset of T2DM and increasing the likelihood of severe hyperglycemic events that may lead to depression [Reference Zilioli and Jiang16, Reference Mosili, Mkhize, Sibiya, Ngubane and Khathi17]. However, limited research has systematically focused on the impact of loneliness and social isolation on the transitions from a healthy state to incident T2DM, then to subsequent depression, and finally to death, highlighting the need for further investigation to inform targeted prevention strategies for disease progression.
While loneliness and social isolation increase the risk of both depression and T2DM, the trajectory from incident T2DM to subsequent depression remains underexplored. Chronic inflammation links T2DM and depression, as T2DM induces elevation of TNF-α, IL-6, and high-sensitivity C-reactive protein (hsCRP), and elevated hsCRP is associated with depressive severity, poor treatment response, and suicidality, suggesting that T2DM-derived inflammation synergizes with loneliness- or isolation-amplified dysregulation to increase depression risk [Reference Orsolini, Ricci, Pompili, Cicolini and Volpe18–Reference Orsolini, Pompili, Tempia Valenta, Salvi and Volpe21]. Furthermore, loneliness often precedes the onset of T2DM and is strongly associated with depression among diabetic patients [Reference Cho and Demiris22, Reference Henriksen, Nilsen and Strandberg23]. In particular, a T2DM diagnosis may interact with preexisting loneliness through chronic stress and metabolic burden to trigger subsequent depression [Reference Ahmed, Cerda and Maloof24]. Therefore, we conceptualize T2DM not as a mediator but as an intermediate disease state to examine the influence of loneliness and social isolation on the progression from incident T2DM to subsequent depression in the UK Biobank cohort.
To achieve this goal, we initially employed multistate models to explore the separate and joint effects of loneliness and social isolation on various disease transitions, including the progression from baseline to incident T2DM, then to subsequent depression, and ultimately to mortality. Additionally, we investigated the relationships between loneliness, social isolation, and the risk of transitioning from incident T2DM to subsequent depression under different glycemic metabolism statuses, including normal glucose tolerance (NGT) and prediabetes, while accounting for potential covariates. Finally, we adjusted the multistate models for glucose and lipid metabolic measures and excluded participants developing T2DM within the first year to validate the associations of loneliness and social isolation with the different disease transitions.
Methods
Study design and participants
This study utilized data from a largely prospective cohort sourced from the UK Biobank, which recruited over 500,000 participants aged 40–69 years between 2006 and 2010, conducting multiple follow-up assessments [Reference Sudlow, Gallacher, Allen, Beral, Burton and Danesh25]. Upon enrollment, participants completed touchscreen questionnaires, underwent physical measurements, and submitted blood samples. Subsequent follow-ups were conducted regularly, with the database receiving frequent updates. Approval for the UK Biobank study was granted by the North West Multicenter Research Ethics Committee (11/NW/0382), and all participants provided written informed consent. This study is identified by application number 46478.
A total of 502,537 participants were included at baseline. We excluded 35,734 participants due to missing values related to loneliness and social isolation. Furthermore, we excluded 4,481 participants with a previous diagnosis of depression, 33,856 with a previous diagnosis of T2DM, and 872 participants who experienced depression before being diagnosed with T2DM. The diagnosis of T2DM at baseline was determined by the following criteria: a diagnosis made by doctor (Field ID 2443), use of anti-diabetic medications (Field ID 20003, 6153, and 6177), records from hospital inpatient admissions (E10–14), fasting blood glucose (FBG, Field ID 30740) ≥ 7.0 mmol/L, or glycosylated hemoglobin A1c (HbA1C, Field ID 30750) ≥ 6.5%. The diagnosis of depression at baseline was based on hospital inpatient records (F32–33). Ultimately, 427,594 participants were included to evaluate the impact of loneliness and social isolation on different disease transitions (Figure 1).
Flowchart of the study design: participant selection, multistate analysis, and robustness evaluation. BMI, body mass index; T2DM, type 2 diabetes mellitus.

Figure 1 Long description
The flowchart begins at the top with 502,537 participants recruited between 2006-2010 from the UK Biobank.
An arrow points down to the next stage, while a side arrow to the right indicates the exclusion of 35,734 participants without data on social isolation and loneliness.
The second central box shows 466,803 participants with data on social isolation and loneliness. An arrow points down, while a side arrow to the right indicates exclusions: 4,481 participants without depression; 33,856 participants without T2 DM; and 872 participants where depression occurred before T2 D M.
The third central box shows 427,594 participants without T2 DM and depression were finally included. Below this, a median follow-up of 13.66 years is noted. A side arrow to the right lists outcomes: 14,141 incident cases of T2 DM; 1,149 subsequent cases of depression; and 33,024 death events.
The fourth central box describes Multistate analyses for the risk of five transitions, including:
* Separate effects of loneliness and social isolation
* Joint effects of loneliness and social isolation
* Specific items of loneliness and social isolation
* Interactions of loneliness and social isolation
The flow then splits into two parallel boxes at the bottom:
1. Left box: Subgroup analysis covering different glycemic statuses and covariates such as age, sex, ethnicity, BM I, income, education, employment, smoking, drinking, physical activity, sun exposure, sleep, and medical history.
2. Right box: Sensitivity analysis including adjustments for glucose and lipid metabolism, neuroticism score, exclusion of early T2 DM cases (n=426,686), and leave-one-item analysis for social isolation.
Assessment of exposures
The variables examined in this study encompassed loneliness and social isolation. Loneliness was assessed using a scale ranging from 0 to 2 points, derived from responses to two specific questionnaire items: (1) “Do you often feel lonely?” (Field ID 2020). Participants indicating “yes” were assigned 1 point, while those responding “no” were allocated 0 points. (2) “How often are you able to confide in someone close to you?” (Field ID 2110). Participants reporting “never or almost never” were scored 1 point, whereas those reporting varying frequencies from “once every few months,” “once a month,” “once a week,” “2–4 times a week,” or “almost daily” received 0 points. Subsequently, participants were categorized into either the no-loneliness group (0–1 point) or the loneliness group (2 points) [Reference Song, Zhu, Shi, Song, Cui and Chang15].
Social isolation scores were evaluated on a scale of 0–3 points, based on responses to three specific questions within the questionnaires: (1) “How often do you visit friends or family or have them visit you?” (Field ID 1031). Responses including “once a month,” “once every few months,” “never or almost never,” or “no friends or family outside the household” were scored 1 point, while responses like “once a week,” “2–4 times a week,” and “almost daily” were scored 0 points. (2) “Which of the following leisure or social activities do you engage in once a week or more often?” (Field ID 6160). Participants selecting “none of above” were scored 1 point, whereas those engaging in activities including “sports club or gym,” “pub or social club,” “religious group,” “adult education class,” or “other group activity” were scored 0 point. (3) “Including yourself, how many people live in your household? Include those who usually live in the house such as students living away from home during term time, and partners in the armed forces or in professions such as pilots” (Field ID 709). Respondents indicating “1” were given 1 point, while those reporting more than one individual were given 0 points. The scores from these questions were aggregated to determine the social isolation scores, leading to the classification of participants into the least isolated group (0 points), moderately isolated group (1 point), and most isolated group (2–3 points) [Reference Song, Zhu, Shi, Song, Cui and Chang15].
Assessment of outcome
The primary outcomes investigated in this study included incident T2DM, subsequent depression, and death. These outcomes were identified and confirmed through hospital admissions and death records data, which were obtained from the National Health Service (NHS), Hospital Episode Statistics (HES), and the International Classification of Diseases-10 (ICD-10; Field ID 41270 and 41280). Participants were diagnosed with T2DM using the code E11, while subsequent depression was identified using the codes F32 and F33. For participants without T2DM or depression at baseline of the study, follow-up continued until the end of their follow-up period, which was determined by the earliest occurrence of either the date of death (Field ID 40000), loss to follow-up (Field ID 191), or the end of the current follow-up period (October 31, 2022).
Assessment of covariates
This study included a variety of covariates, encompassing age, sex, ethnicity, body mass index (BMI), household income, educational attainment, current employment status, smoking status, drinking status, physical activity, sun exposure time, healthy sleep score, history of medical conditions, glucose (FBG and HbA1c) or lipid metabolic measures obtained from laboratory tests on blood samples, and neuroticism score. Detailed descriptions of these covariates, along with their corresponding field IDs, can be found in Supplement 1 and Supplementary Table S1.
For missing covariate data, linear regression models were employed to impute continuous variables, while logistic regression models were utilized to impute categorical variables using the “Mice” package in R. Multiple imputations via chained equations with five imputations were conducted to fill in the missing values of covariates. The proportions of missing data for each covariate are presented in Supplementary Table S2.
Statistical analyses
The baseline characteristics were presented as either the means ± standard errors or the medians (interquartile ranges) for continuous variables, and as frequencies (percentages) for categorical variables. When the continuous data met the assumptions of normal distribution and homogeneity of variance, statistical differences were evaluated using Student’s t-tests for comparisons between two groups and ANOVA tests for comparisons among three groups. Otherwise, comparisons between two groups were conducted using Mann–Whitney U tests, and comparisons among three groups were performed using Kruskal–Wallis K tests. For categorical variables, χ 2 tests were employed to examine the statistical variances.
Multistate models were employed to evaluate the effects of loneliness and social isolation on the progression from baseline to incident T2DM, further to subsequent depression, and ultimately leading to mortality. The multistate model, characterized by its probabilistic nature, accommodates multiple states, allowing for the analysis of transition rates between them [Reference Wang, Chen, Cai, Tian, Zou and Qian26, Reference Wang, Ran, Xia, Shi, Wu and Zhang27]. Expanding the Cox proportional hazards model to a multistate model enables the inclusion of multiple endpoints, providing a more comprehensive understanding of the disease trajectory [Reference Bisquera, Turner, Ledwaba-Chapman, Dunbar-Rees, Hafezparast and Gulliford28]. Specifically, our study delineated five transitions within the multistate models (Figure 2), which include: (1) the transition from baseline to incident T2DM; (2) the transition from baseline to death; (3) the transition from incident T2DM to subsequent depression; (4) the transition from incident T2DM to death; and (5) the transition from subsequent depression to death. In cases where participants reported multiple diagnoses or events on the same day, we adopted the convention of considering the theoretical entry date of the preceding state as half a day before the entry date of the subsequent state, in accordance with previous research [Reference Wang, Chen, Cai, Tian, Zou and Qian26, Reference Wang, Ran, Xia, Shi, Wu and Zhang27, Reference Han, Hu, Yu, Guo, Pei and Yang29]. For instance, if a participant succumbed to incident T2DM, the date of the incident T2DM was recorded as half a day before the date of death. A variety of baseline covariates were included and categorized into two models: Model 1 adjusted for age, sex, ethnicity, BMI, household income, educational attainment, current employment status, smoking status, drinking status, physical activity, sun exposure time, and healthy sleep score; and Model 2, which additionally accounted for a history of cardiovascular disease, hypertension, and cancer. We examined the separate and joint associations of loneliness and social isolation with the risk of five transitions. Furthermore, we explored the specific items of loneliness and social isolation that influenced the risk of these transitions, as well as the trends in transition risks associated with increasing scores of loneliness and social isolation. In addition, we investigated the risk of the five transitions based on different levels of social isolation within varying categories of loneliness, and vice versa.
Numbers (percentages) of participants in transitions from baseline to incident type 2 diabetes mellitus (T2DM), further to subsequent depression and finally to death.

Figure 2 Long description
The flowchart consists of four rectangular boxes representing health states and five labeled arrows representing transitions.
Health States:
* Baseline: White box at the top left, N equals 427,594.
* Incident T2 DM: Orange box at the top center, N equals 14,141.
* Depression: Blue box at the top right, N equals 1,149.
* Death: Gray box at the bottom center, N equals 33,024.
Transitions:
* Transition 1: An orange arrow points from Baseline to Incident T2 D M, labeled 14,141 or 3.31 percent.
* Transition 2: A gray arrow points from Baseline down to Death, labeled 30,749 or 7.19 percent.
* Transition 3: A blue arrow points from Incident T2 DM to Depression, labeled 1,149 or 8.12 percent.
* Transition 4: A gray arrow points from Incident T2 DM down to Death, labeled 2,072 or 14.65 percent.
* Transition 5: A gray arrow points from Depression down to Death, labeled 203 or 17.67 percent.
In addition to examining the entire population, we further explored the separate and joint associations of loneliness and social isolation on the risk of five transitions, as well as the interactions between loneliness and social isolation in relation to these transitions, among individuals with diverse glycemic statuses, including normal glucose tolerance (NGT) and prediabetes. The participants classified as having prediabetes met the criteria of a FBG level of 5.6–6.9 mmol/L or an HbA1c level of 5.7–6.4% [Reference ElSayed, Aleppo, Aroda, Bannuru, Brown and Bruemmer30].
Subgroup analyses were conducted based on sex (female or male), age (≤65 years or > 65 years), ethnicity (white or non-white), BMI (normal, overweight or obesity), household income (<£52,000 or ≥ £52,000), current employment status (employed or others), education level (college and above or others), smoking status (never or smoker), drinking status (never or drinker), physical activity (less than the median or above the median), sleep pattern (unhealthy or healthy), sun exposure time (less than the median or above the median), cardiovascular disease (no or yes), hypertension (no or yes), and cancer (no or yes). The subgroup analysis models were adjusted for the same covariates as Model 2, except for the stratification variable when used for stratification purposes. Interaction terms between the stratifying variable and loneliness or social isolation were included to assess differences between subgroups [Reference Wang, Qian, Zhang, Cai, Chen and Wu31].
To ensure the reliability of our results, we conducted sensitivity analyses to examine the separate and combined effects of loneliness and social isolation on the risk of five transitions, as well as the interactions between loneliness and social isolation in relation to these transitions. We conducted additional models developed with adjustments for glucose metabolism (FBG and HbA1c), lipid metabolism (TC, TG, LDL, HDL, and Lp(a)), and glucose and lipid metabolism. Besides, participants diagnosed with T2DM within the first year of follow-up were excluded to minimize the potential impact of reverse causality (n = 426,686). Moreover, with additional adjustment for neuroticism score, we examined the separate and combined effects of loneliness and social isolation on the risk of five transitions. Finally, we performed a leave-one-item sensitivity analysis for the social isolation score. Specifically, we iteratively removed each component item of the social isolation score and recalculated the sum score using the remaining items. We examined the association between each reduced score and the risk of five transitions.
Data cleaning and analyses were performed using R version 4.4.1 in this study. The “mstate” R package was predominantly utilized to implement the multistate models. Statistical significance was defined as a p-value of <0.05.
Results
Baseline characteristics
A total of 427,594 participants were included in this study. The median age of the participants was 57 years, and 44.5% were male. The baseline characteristics of participants, categorized by loneliness and social isolation and various disease statuses during follow-up, are presented in Table 1 and Supplementary Table S3, respectively. Individuals with higher levels of social isolation or loneliness tended to be male, have obesity, have a low household income, have a history of cardiovascular disease or hypertension, and exhibit unhealthier lifestyle behaviors, including being previous/current smokers, less physical activity, and unhealthier sleep patterns.
Baseline characteristics of the study population grouped by loneliness and social isolation

Table 1 Long description
The table is structured with columns for All participants, Loneliness (No loneliness, Loneliness, P-value), and Social isolation (Least isolated, Moderate isolated, Most isolated, P-value).
Key data points include:
* Sample size (N): Total 427,594. Loneliness group: 19,160. Most isolated group: 59,384.
* Sex: Females make up 55.5% of the total population but only 50.4% of the loneliness group.
* Age: Median age is 57 across most groups.
* Ethnicity: 95.8% are White.
* Household income: 72.8% are in the Low category. This rises to 82.2% in the loneliness group and 78.2% in the most isolated group.
* Lifestyle factors: The loneliness group has a higher percentage of current smokers (17.4% vs 9.9% in the no loneliness group) and unhealthy sleep patterns (66.6% vs 49.2%).
* Clinical variables: P-values for most characteristics (Sex, Age, Ethnicity, BM I, Income, Employment, Education, Smoking, Drinking, Physical activity, Sleep, CV D, Hypertension, Cancer, HbA1 c, T C, T G, HD L, and Neuroticism) are less than 0.001, indicating significant differences across groups.
* Neuroticism score: Significantly higher in the loneliness group (median 7) compared to the no loneliness group (median 4).
Abbreviations: CVD, cardiovascular disease; FBG, fasting blood glucose; HbA1c, glycated hemoglobin; HDL, high-density lipoprotein cholesterol; LDL, low-density lipoprotein cholesterol; Lp(a), lipoprotein A; T2DM, type 2 diabetes mellitus; TC, cholesterol; TG, triglycerides.
Over a median follow-up period of 13.66 years, there were 14,141 documented cases of incident T2DM, 1,149 subsequent cases of depression, and 33,024 recorded death events. Participants who experienced adverse events tended to exhibit higher levels of loneliness and social isolation, obesity, low educational attainment, low household income, a history of smoking (either previous or current), and a history of cardiovascular disease, hypertension, or cancer.
Loneliness, social isolation, risk of disease transitions: multistate analyses
The multistate analyses revealed that loneliness and social isolation were associated with varying degrees of increased risk for disease progression, with the exception of the transition from subsequent depression to death (Table 2 and Supplementary Table S4). Notably, the impact of loneliness and social isolation on the progression from incident T2DM to subsequent depression was most pronounced among the four significant transitions. Notably, for the transition from incident T2DM to subsequent depression, individuals in the loneliness group exhibited a significantly higher risk, with a hazard ratio (HR) of 1.802 (95% confidence interval, CI: 1.521–2.135), compared to those in the no-loneliness group after adjusting for sociodemographic characteristics and lifestyle factors in Model 1 (Table 2). This HR slightly decreased to 1.793 (1.513–2.124) after accounting for comorbidities in Model 2 (Supplementary Table S4). Similarly, participants in the most isolated group had an HR of 1.390 (1.185–1.632) compared to those in the least isolated group, with a significant trend (P-trend = 1.08 × 10−4) in Model 1 (Table 2).
Separate and joint association of loneliness and social isolation with the risk of five transitions (Model 1)

Table 2. Long description
The table is structured with 12 columns. The first column lists categories, the second lists sample size N, and the remaining 10 columns are paired as H R (95% CI) and P-value for five transitions: Baseline to incident T2 D M, Baseline to death, Incident T2 DM to subsequent depression, Incident T2 DM to death, and Subsequent depression to death.
Key data points from the Separate effects section:
* Loneliness: For the transition from Baseline to incident T2 D M, the HR is 1.240 (1.161, 1.324) with a P-value of 1.50 times 10 super minus 10. For Baseline to death, the HR is 1.196 (1.139, 1.255).
* Social isolation: The ‘Most isolated’ group shows an HR of 1.184 for T2 DM and 1.405 for death compared to the ‘Least isolated’ reference group. The P trend for social isolation across most transitions is highly significant (e.g., 6.94 times 10 super minus 13 for T2 DM).
Key data points from the Joint effects section:
* No loneliness and Most isolated: HR for Baseline to incident T2 DM is 1.166 (1.107, 1.227).
* Loneliness and Most isolated: This group shows the highest risks, with an HR of 1.398 (1.253, 1.560) for Baseline to incident T2 D M, 1.540 (1.424, 1.665) for Baseline to death, and 2.127 (1.620, 2.792) for Incident T2 DM to subsequent depression.
Boldface indicates statistically significant associations. Abbreviations used: HR for hazard ratio, CI for confidence interval, and T2 DM for type 2 diabetes mellitus.
Abbreviations: CI, confidence interval; HR, hazard ratio; T2DM, type 2 diabetes mellitus.
In terms of the joint effects of loneliness and social isolation, individuals experiencing both loneliness and the most isolated had a significantly elevated risk of transitioning from incident T2DM to subsequent depression, with an HR of 2.127 (1.620–2.792) compared to those in the no-loneliness and least isolated group. Furthermore, the analysis of potential interactions between loneliness and social isolation revealed that loneliness had a greater effect size than social isolation across the five transitions (Supplementary Tables S5 and S6).
In addition, positive dose-gradient associations were identified between loneliness and social isolation scores and an increased risk of transitions from baseline to incident T2DM, from baseline to death, and from T2DM to subsequent depression (P trend < 0.001; Supplementary Tables S7 and S8). Furthermore, for the items related to loneliness and social isolation, most of the specific elements significantly associated with an increased risk of transitioning from incident T2DM to subsequent depression in Model 2, including feeling lonely (HR = 1.786, 95% CI: 1.578–2.021), being unwilling to confide (HR = 1.282, 95% CI: 1.115–1.475), less social activities (HR = 1.176, 95% CI: 1.043–1.327), and living alone (HR = 1.214, 95% CI: 1.061–1.388) (Supplementary Table S8).
Loneliness, social isolation, risk of disease transitions: under different glycemic statuses
Regardless of participants’ glycemic status, the association between loneliness, social isolation, and increased risk of disease progression remained statistically significant, except for the transition from subsequent depression to death (Figure 3; Supplementary Table S9). The participants with prediabetes exhibited a greater risk of incident depression among T2DM compared to those with normal glucose tolerance (loneliness: HR [95% CI] = 1.818 [1.463–2.258] in prediabetes vs. 1.771 [1.346–2.330] in NGT; social isolation: HR [95% CI] = 1.401 [1.141–1.719] in prediabetes vs. 1.301 [1.006–1.683] in NGT for the most isolated). However, loneliness and social isolation in participants with normal glucose tolerance (HR [95% CI] = 1.172 [1.048–1.310] for loneliness; 1.067 [1.003–1.135] for the moderate isolated and 1.205 [1.110–1.308] for the most isolated) were more strongly associated with the risk of the transition from baseline to incident T2DM than in those with prediabetes (HR [95% CI] = 1.119 [1.031–1.214] for loneliness; 1.060 [1.013–1.109] for the moderate isolated and 1.092 [1.028–1.160] for the most isolated).
Separate effects of social isolation and loneliness on the risk of depression among subjects with T2DM under different glycemic statuses (Model 2). The analysis was performed in Model 2 (adjusted for sex, age, ethnicity, body mass index, household income, current employment status, education level, smoking status, drinking status, physical activity, sleep pattern, sun exposure time, history of CVD, history of hypertension, and history of cancer). Abbreviations: CI, confidence interval; CVD, cardiovascular disease; HR, hazard ratio; NGT, normal glucose tolerance; T2DM, type 2 diabetes mellitus.

Figure 3 Long description
The forest plot is divided into two primary vertical sections: NGT and Prediabetes. A vertical dashed line at HR equals 1 serves as the null effect reference.
In the NGT section:
* Loneliness: ‘No loneliness’ is the reference. ‘Loneliness’ has an HR of 1.771 (1.346, 2.330) with a P value of 4.52 times 10 super minus 5. The error bar is entirely to the right of the null line.
* Social isolation: ‘Least isolated’ is the reference. ‘Moderate isolated’ has an HR of 1.009 (0.812, 1.253) with a P value of 9.39 times 10 super minus 1. ‘Most isolated’ has an HR of 1.301 (1.006, 1.683) with a P value of 4.49 times 10 super minus 2. The P trend is 7.09 times 10 super minus 2.
In the Prediabetes section:
* Loneliness: ‘No loneliness’ is the reference. ‘Loneliness’ has an HR of 1.818 (1.463, 2.258) with a P value of 6.55 times 10 super minus 8. The error bar is entirely to the right of the null line.
* Social isolation: ‘Least isolated’ is the reference. ‘Moderate isolated’ has an HR of 1.134 (0.956, 1.344) with a P value of 1.48 times 10 super minus 1. ‘Most isolated’ has an HR of 1.401 (1.141, 1.719) with a P value of 1.25 times 10 super minus 3. The P trend is 1.63 times 10 super minus 3.
The X-axis at the bottom represents HR (95% CI) on a scale from 0 to 2.5.
Joint analysis for social isolation and loneliness indicated a positive correlation between loneliness, social isolation, and the risk of transitioning from incident T2DM to subsequent depression in both the normal glucose tolerance and prediabetes groups (P trend<0.001; Supplementary Table S10). Moreover, the impact of loneliness and social isolation was more pronounced in the prediabetes group compared to the normal glucose tolerance group (Supplementary Tables S10 and S11).
Subgroup analysis
Subgroup analyses for the separate associations of social isolation and loneliness with risk of five transitions are presented in Supplementary Tables S12 and S13. No significant interactions were observed between the majority of covariates and either social isolation or loneliness related to the risk of five transitions. However, employment status (P interaction = 0.001) and having a history of cancer (P interaction < 0.001) exhibited interactions with loneliness in the transition from baseline to death. On the other hand, covariates, including sex, BMI, household income, employment status, smoking status, physical activity, and a history of cancer, displayed significant interactions with social isolation in the transition from baseline to death. Additionally, ethnicity and drinking status had interactions with social isolation in the transition from baseline to incident T2DM.
Sensitivity analysis
For separate associations, joint associations, and potential interactions of loneliness and social isolation in relation to the five transitions, the findings were consistent in models that included additional adjustments for glucose metabolism, lipid metabolism, as well as glucose and lipid metabolic biomarkers (Supplementary Tables S14–S19). Furthermore, even after excluding participants diagnosed with T2DM within the first year, our results retained their significance (Supplementary Tables S20 and 21). Besides, the results remained consistent after additional adjustment for neuroticism score, confirming that our main conclusions were not confounded by this personality trait (Supplementary Table S22). Moreover, the leave-one-item analysis for the social isolation score yielded consistent effect estimates across all iterations, with no single item driving the observed associations (Supplementary Table S23).
Discussion
In this study, we have discovered that both loneliness and social isolation are found to be independently and jointly associated with varying degrees of increased risk for disease progression, as indicated by multistate analyses, except for the progression from subsequent depression to death. Particularly striking was the pronounced impact of loneliness and social isolation on the transition from incident T2DM to subsequent depression among the four significant transitions observed. The relationships between social isolation, loneliness, and the increased risk of transitioning from incident T2DM to subsequent depression remained statistically significant even after adjusting for glucose and lipid metabolic biomarkers in the models. Furthermore, the connections between loneliness, social isolation, and the elevated risk of progressing from incident T2DM to subsequent depression were notably stronger in individuals with prediabetes compared to those with normal glucose tolerance.
Consistent with previous research findings, our results indicate that loneliness and social isolation correlate with an increased risk of T2DM and depression. Two longitudinal studies demonstrated that individuals experiencing social isolation and loneliness faced an ~20% greater risk of developing incident T2DM, independent of the genetic predisposition to T2DM [Reference Song, Zhu, Shi, Song, Cui and Chang15, Reference Chen, Xue, Ai, Liu, Nie and Ai32]. Furthermore, individuals with greater social isolation exhibited a higher prevalence of both newly diagnosed and previously diagnosed T2DM, while a lack of social engagement was linked to pre-diabetes and previously diagnosed T2DM [Reference Brinkhues, Dukers-Muijrers, Hoebe, van der Kallen, Dagnelie and Koster33]. Additionally, previous investigations have highlighted that individuals who are socially inactive and lonely are at a heightened risk of depression compared to those with socially active and non-lonely [Reference Matthews, Danese, Wertz, Odgers, Ambler and Moffitt34, Reference Wang, Liu, Yang, Chen, Wang and Liu35]. From a clinical perspective, these findings suggest that routine screening for social isolation and loneliness could be integrated into primary care settings, particularly for individuals at risk of metabolic or mental disorders, enabling early detection and targeted psychosocial support.
In addition, our findings revealed that loneliness and social isolation could increase the risk of transitioning from incident T2DM to subsequent depression, with loneliness exerting a more pronounced influence on this progression compared to social isolation. Network analysis highlighted that loneliness was predominantly influenced by social isolation [Reference Wolters, Mobach, Wuthrich, Vonk, van der Heijde and Wiers36]. The transition from social isolation to loneliness may link metabolic dysregulation to affective disturbance through several interconnected pathways. Both loneliness and social isolation have been associated with chronic stress, hyperactivation of the HPA axis, and elevated pro-inflammatory cytokines, like interleukin-6 and C-reactive protein [Reference Nowland, Robinson, Bradley, Summers and Qualter37–Reference Nguyen, Perlman, Kim, Wu, Daher and Zhou40]. Among patients with T2DM, loneliness may amplify maladaptive cognitive appraisals, such as perceived loss of control and stigma, perpetuating HPA axis dysfunction and disrupting glucose–insulin homeostasis, thereby creating a bidirectional metabolic–affective loop [Reference Ahmed, Cerda and Maloof24]. Moreover, loneliness and social isolation correlate with poorer medication adherence, dietary compliance, and physical activity, leading to suboptimal glycemic control, a factor significantly linked to depression [Reference Lu, Qu, Xie, Shu, Gao and Zou41–Reference Lustman, Anderson, Freedland, de Groot, Carney and Clouse43]. Loneliness also erodes a sense of mastery and belonging, reducing diabetes-related self-efficacy and fostering helplessness [Reference Lee, Lee, Chae, Lee, Hong and Kim44]. Furthermore, socially isolated individuals are less likely to attend regular follow-ups or seek help for emerging mood symptoms [Reference Kim, Kim and Shin45]. Understanding the interplay between loneliness, social isolation, and the progression from incident T2DM to subsequent depression could provide valuable insights for the prevention of depression in individuals with T2DM. A key public health implication is that interventions targeting loneliness, such as cognitive-behavioral therapy for social cognition or peer-support programs, might be more effective than simply reducing objective social isolation, particularly among recently diagnosed patients.
Previous studies have demonstrated that social isolation and loneliness are more strongly associated with an increased risk of T2DM in individuals with normoglycemia than in those with prediabetes, a finding consistent with our results [Reference Zhang, Liu, Zhou, Ye, Zhang and Yang13]. This suggests that social isolation and loneliness may independently contribute to a higher risk of T2DM in individuals without prediabetes. However, our study further revealed that, compared to individuals with normal glucose tolerance, those with prediabetes exhibited a significantly higher risk of incident depression among patients with T2DM when analyzed across different glycemic statuses. This underscores the pivotal role of glycemic status as a critical determinant in the development of depression, particularly in prediabetes [Reference Yu and Wan46]. Emerging evidence suggests that hyperglycemia and hyperinsulinemia in prediabetes may induce neuroendocrine alterations, which could ultimately contribute to the pathogenesis of depression [Reference Zhang, Miao, Qian, Wang, Qi and Zhang47, Reference Golden48]. Furthermore, research has demonstrated that glycemic variability is closely associated with cognitive impairment, a key factor implicated in the progression of depression [Reference Kinoshita, Shimoda, Sanada, Fushimi, Hirata and Irie49, Reference Perini, Cotta Ramusino, Sinforiani, Bernini, Petrachi and Costa50]. Clinically, these findings highlight that individuals with prediabetes should be considered a high-risk group for depression following T2DM diagnosis, warranting routine mental health surveillance and early psychological intervention even before overt T2DM develops. From a public health standpoint, integrating loneliness assessment into diabetes prevention programs could improve both metabolic and mental health outcomes simultaneously.
The findings also highlight significant differences in the impact of loneliness and social isolation across various subgroups. The adverse effects of loneliness and social isolation on mortality were stronger among unemployed individuals, partly due to the protective role of purposeful employment [Reference Modini, Joyce, Mykletun, Christensen, Bryant and Mitchell51], but weaker among cancer patients, who often adopt healthier lifestyles [Reference Hawkins, Buys, Gren, Simonsen, Kirchhoff and Hashibe52]. Social isolation also posed a higher risk of incident T2DM in drinkers than in nondrinkers, suggesting that alcohol consumption may exacerbate the adverse health outcomes [Reference Engler, Ramsey and Smith53]. In young adults, problematic digital use is linked to emotional loneliness and boredom, which mediate the relationship between depressive symptoms and digital behaviors [Reference Orsolini, Longo and Volpe54, Reference Orsolini, Longo and Volpe55]. Extending this, younger individuals may be more susceptible to loneliness- and isolation-related distress, potentially strengthening the transition from new-onset T2DM to depression. These findings highlight the need to consider individual circumstances and behaviors when assessing loneliness and social isolation across disease transitions. Accordingly, age-specific strategies targeting emotional regulation and boredom coping may help interrupt the pathway from T2DM onset to depression in younger populations.
Several limitations should be acknowledged. First, loneliness and social isolation were assessed only at baseline using brief, nonvalidated indices, failing to capture their temporal dynamics or multidimensional nature. Future studies should employ repeated, validated measures and serial biomarkers to test mediation. Second, depression was defined using hospital-recorded ICD-10 codes (F32–F33), capturing primarily moderate-to-severe cases and missing milder or primary-care-managed depression. Moreover, delays between symptom onset and recorded diagnosis may introduce nondifferential misclassification of outcome timing. Third, despite covariate adjustment, residual confounding from unmeasured factors cannot be excluded. Additionally, although multiple imputation was appropriately performed, high missing rates may introduce imputation uncertainty. Fourth, while participants with T2DM diagnosed within the first follow-up year were excluded, prodromal or subclinical depression at baseline may still have influenced self-reported loneliness or social isolation, leaving directionality unresolved. Fifth, loneliness and depression share phenomenological features, raising construct overlap concerns. Although we adjusted for baseline mental health indicators, this conceptual proximity limits causal interpretation. Consequently, our findings represent robust associations rather than proof of causality, which cannot be established from this observational study alone. Lastly, the UK Biobank cohort is predominantly White, healthier, and of higher socioeconomic status than the general population [Reference Fry, Littlejohns, Sudlow, Doherty, Adamska and Sprosen56]. Thus, generalizability to more diverse, deprived, or clinically vulnerable populations may be limited, though internal validity remains strong.
In conclusion, our findings demonstrate that loneliness and social isolation are significantly associated with an elevated risk of progression from baseline to incident T2DM, to subsequent depression and further to death. Notably, the impact of loneliness and social isolation on the transition from incident T2DM to subsequent complications was more pronounced among individuals with prediabetes compared to those with normal glucose tolerance. A more comprehensive understanding of these associations can guide the development of targeted interventions aimed at mitigating loneliness and social isolation, thereby reducing the risk of disease progression and mortality.
Supplementary material
The supplementary material for this article can be found at http://doi.org/10.1192/j.eurpsy.2026.12244.
Data availability statement
All of our study samples were derived from the UK Biobank (application ID 46478). The UKB data are available through the UK Biobank Access Management System (https://www.ukbiobank.ac.uk/).
Acknowledgments
The authors would like to thank the UK Biobank participants and the UK Biobank team for their work in collecting, processing, and disseminating these data for analysis.
Financial support
This study was supported by the Natural Science Basic Research Plan in Shaanxi Province of China: 2021JCW-08 and 2025JC-YBQN-1224.
Competing interests
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this article.
Ethics approval and consent to participate
Approval for the UK Biobank study was granted by the North West Multicenter Research Ethics Committee (11/NW/0382), and all participants provided written informed consent.
Consent for publication
All authors have given consent to publish.
Comments
No Comments have been published for this article.