Skip to main content
Alzheimer's & Dementia : Diagnosis, Assessment & Disease Monitoring logoLink to Alzheimer's & Dementia : Diagnosis, Assessment & Disease Monitoring
. 2025 Jul 28;17(3):e70149. doi: 10.1002/dad2.70149

Loneliness, social isolation, and effects on cognitive decline in patients with dementia: A retrospective cohort study using natural language processing

James A C Myers 1,2,3,4, Tom Stafford 1,2, Ivan Koychev 3,5, Robert Perneczky 2,6,7,8,9,10, Oliver Bandmann 2,6, Nemanja Vaci 1,2,3,4,
PMCID: PMC12301694  PMID: 40726520

Abstract

INTRODUCTION

The study aimed to compare cognitive trajectories between patients with reports of social isolation and loneliness and those without.

METHODS

Reports of social isolation, loneliness, and Montreal Cognitive Assessment (MoCA) scores were extracted from dementia patients' medical records using natural language processing models and analyed using mixed‐effects models.

RESULTS

Lonely patients (n = 382), compared to controls (n = 3912), showed an average MoCA score that was 0.83 points lower at diagnosis (P = 0.008) and throughout the disease. Socially isolated patients (n = 523) experienced a 0.21 MoCA point per year faster rate of cognitive decline in the 6 months before diagnosis (P = 0.029), but were comparable to controls before this period. This led to average MoCA scores that were 0.69 MoCA points lower at diagnosis (P = 0.011).

DISCUSSION

Lower cognitive levels in lonely and socially isolated patients suggest that these factors may contribute to dementia progression.

Highlights

  • Developed Natural Language Processing model to detect social isolation and loneliness in electronic health records.

  • Patients with loneliness reports have lower Montreal Cognitive Assessment (MoCA) scores than other patients.

  • Social isolation was related to the faster decline in MoCA scores before diagnosis.

  • Social isolation and loneliness are promising targets for slowing cognitive decline.

Keywords: cognitive decline, electronic health records, loneliness, natural language processing, social isolation

1. INTRODUCTION

Social isolation (SI) and loneliness are recognized as priority public health problems, 1 showing impact on physical and mental health, 2 , 3 , 4 , 5 , 6 , 7 with effects on mortality comparable to smoking and obesity. 8 Population attributable fraction, a measure that combines relative risk and prevalence of social isolation in a population, estimates that low social contact in older people explains up to 4% of the risk for dementia development. 9 , 10 , 11 , 12 While much of the research has focused on SI and loneliness as risk factors for dementia, 13 these factors may also manifest as symptoms of the disease itself, 14 particularly in its early stages. In this study, we examine how SI and loneliness, when reported in the presymptomatic or symptomatic stage of dementia, influence the cognition of patients and the progression of the disease.

SI and loneliness are related but distinct concepts. SI is operationalized as an objective lack of social and support networks, while loneliness is seen as a negative, subjective feeling resulting from the discrepancy between desired and actualized social connections and closeness to other people. 1 Participation in wider social network structures is associated with higher global cognitive function and moderates the association between cognitive functioning and amygdala volume, an indicator of neuropathological progression in Alzheimer's disease (AD), in cognitively normal people as well as patients with mild cognitive impairment (MCI) and early‐stage AD. 15 , 16 These findings support the idea that SI influences cognitive reserve by moderating cognitive function despite indicators of AD neuropathology. 17 , 18 Feelings of loneliness have been shown to predict dementia onset 19 and are associated with higher amyloid burden 7 in cognitively normal people, as well as with higher rates of cognitive decline 20 , 21 in patients with MCI, but not in participants with the diagnosis of AD. 22 , 23

Despite these studies, findings for the effect of SI and loneliness on cognitive trajectories are mixed. 24 , 25 The main challenge in reliably estimating the impact of SI and loneliness symptoms on the cognitive function of dementia patients lies in the need for large‐scale longitudinal data, 26 which is essential to capture the progressive nature of the disease.

In this study, we used electronic health records (EHRs) to investigate the effect of SI and loneliness reports on the cognitive trajectories of patients with a dementia diagnosis. Using textual records of patient–care provider interaction, we identify documents that discuss patients’ reports about SI and loneliness, and combine them with longitudinal measures of cognitive functionality. Using data from > 4800 patients, we estimate the cognitive trajectories of patients with reports of social isolation and loneliness and compare them to trajectories of patients without such reports, while testing cognitive changes after the first social isolation or loneliness reports. Given previous findings on the effect of SI and loneliness on the risk of dementia, 9 , 12 , 20 we expected that perceived SI and loneliness would be associated with more severe cognitive decline throughout the disease.

RESEARCH IN CONTEXT

  1. Systematic review: We searched Web of Science and PubMed on June 4, 2024, for titles with terms (lonel* OR ‘social* isolat*’) AND (cognit*) AND (dementia OR ‘Alzheimer* disease’) and publication reference lists. Search findings included studies on the risk factors for the development of dementia, with some studies investigating the effects of loneliness in mild cognitive impairment and early stages of Alzheimer's disease. These are cited in the text.

  2. Interpretation: Results illustrate different impacts of loneliness and social isolation on patients’ cognition; patients with loneliness reports have lower cognitive trajectories across the disease, while patients with social isolation reports start declining faster several months before the diagnosis.

  3. Future directions: The article proposes different mechanisms of loneliness and social isolation and their effects on the cognitive functionality of dementia patients. The findings of loneliness and social isolation, as factors that influence disease progression, provide clinicians with indications of an increased rate of cognitive decline, especially before diagnosis in the case of socially isolated patients.

2. METHODS

2.1. Study design

The study followed a retrospective cohort design defined through the extraction of information from EHRs, collected by Oxford Health National Health Service (NHS) Foundation Trust in the UK. The data are accessible through the UK‐CRIS system, maintained by Akrivia Health (https://akriviahealth.com/). The system allows access to structured information, for example, demographic information and diagnosis codes, as well as unstructured textual information, such as clinical records. These documents collect free‐text information on the history of mental disorders under treatment, relevant cognitive assessments, and any other clinically relevant discussions between services and support that went on throughout the treatment.

2.2. Cohort information

Our cohort included data from all patients with a diagnosis of AD or other forms of dementia (International Classification of Diseases [ICD] codes: F00–F00.9, F01, F02, F03, G30, but excluding F06.7 as MCI is rarely followed up in a memory clinic). The full cohort included 34,469 patients who collectively contributed 6,388,715 medical documents from March 6, 2008, to June 25, 2022. To use the information that resides in rich clinical texts, we developed natural language processing (NLP) models that extracted information on cognitive health assessments in dementia and reports of loneliness and SI made by patients, caregivers, and clinical staff.

2.3. Cognitive outcomes

The main analysis used the Montreal Cognitive Assessment (MoCA) 27 measure, while in supporting information we report analysis using Mini‐Mental State Examination (MMSE) 28 scores. Both measures are widely used tools for assessing cognitive function, particularly in patients with dementia. MoCA detects mild cognitive impairments and early‐stage dementia through its heavier emphasis on frontal and parietal function, 29 while MMSE, even though not as sensitive as MoCA, captures moderate to severe cognitive impairment. Both measures are frequently used in clinical practice and research. 30 MoCA scores below the cut‐off point of 26 points are taken as suggestive of MCI, below 17 as suggestive of moderate impairment, and under 10 as suggestive of severe cognitive impairment. The minimum clinically important difference, the smallest change in the outcome that patients would find significant, is reported to be between 0.01 and 2 points, depending on the severity of the disease. 31

2.4. Procedure

We used structured and unstructured data from EHRs in this study. The unstructured data covered all textual records for the defined patient cohort, while structured data included information about the sex, ethnicity, and date of birth of patients, their marital and accommodation status, and ICD‐10 codes for dementia and depression diagnosis (F32.0 to F34.1). To extract information about the cognition of patients, we used the previously published NLP model 32 (for previous work on methodological considerations and description of the mental health EHR data, see Kormilitzin et al., 33 Senior et al., 34 Goodday et al., 35 Li et al., 36 and Vaci et al. 37 ).

2.5. NLP model for reports of SI and loneliness

A novel NLP model was developed for the SI and loneliness reports. The model was implemented in Python and processed textual records for reports of SI and loneliness in two stages: pattern matching and a classification stage. In the pattern matching stage, we used a statistical model for word processing from the Spacy library to identify words that describe SI and loneliness. This allowed us to find all documents, including expressions such as “loneliness,” “social isolation,” “living alone,” and so on. In the classification stage, we used sentence transformer models from Huggingface's Spacy‐Setfit library to process and classify sentences with SI and loneliness mentions. Sentence transformers 38 are types of neural network models that produce numerical representations of sentence‐ and paragraph‐level linguistic content. This vector space encodes semantic relationships, allowing us to identify and categorize semantically similar sentences. We trained sentence transformers to classify sentences with reports of SI and loneliness into four different categories: (1) SI, (2) loneliness, (3) non‐informative isolation, and (4) non‐informative sentences.

Reports that mention lack of social contact, living alone, and being away from family, or that mention barriers in receiving support from family, were used as an indication of social isolation. 3 Loneliness was operationalized as consisting of reports on emotional aspects of feeling lonely and suffering due to the lack of social connections. 39 The non‐informative isolation category included reports of temporary and physical isolation (e.g., “isolated fall” or “isolating in the TV room”), while the non‐informative sentences category covered all incorrectly included sentences from the pattern matching stage forwarded to the sentence classification stage (see Table 1 for examples of sentences and NLP categories).

TABLE 1.

Example of sentences that express the social isolation and loneliness of patients and used categorization when training the natural language processing model.

Sentence Categorization
“Is very lonely—lost husband and more recently best friend.” Loneliness
“Lonely and unfriended.” Loneliness
“Reports feeling lonely but is not trying to change this.” Loneliness
“Patient would wish to go out as remains isolated at home.” Social isolation
“Social isolation, lives in 2nd floor flat, can manage stairs.” Social isolation
“Due to XXX impairments and symptoms, she has gradually isolated from others." Social isolation
“On the morning of the event was feeling isolated.” Non‐informative isolation
“Alone in the tv lounge as wanting some peace.” Non‐informative isolation
“has suffered an isolated fall.” Non‐informative isolation
“XXX will be discharged back to your care.” Non‐informative sentence
“Complained feeling dizzy.” Non‐informative sentence
“Had a lovely day.” Non‐informative sentence

The full model was trained on a randomly selected subset of 11,000 medical documents from the corpus. The terms for the pattern matching stage were derived from a combination of the UCLA Loneliness Scale 40 and linguistic phrases observed in the training set, specifically those referring to reports of SI and loneliness. Sentences identified by the pattern matching in the training data were then used to train the classifiers.

2.6. NLP accuracy

To evaluate the model's performance in identifying reports of SI and loneliness, we conducted a manual annotation process using an unseen sample of 5000 documents. The annotation was performed independently by the first and last authors. In instances of disagreement, the annotations were discussed collaboratively, and a consensus was reached to ensure consistent labeling.

The annotated data served as the ground truth for evaluating the model's classification performance. Standard classifier performance metrics were used, including sensitivity, specificity, and balanced or F1 accuracy. Across four different categories, the NLP model achieved an average F1 accuracy of 0.74, reaching 0.83 accuracy for SI sentences (sensitivity: 0.73 and specificity: 0.93) and 0.91 accuracy for sentences reporting loneliness (sensitivity: 0.88 and specificity: 0.95). Full Python and R code, detailed measure of model performance, and sensitivity analysis are reported in Supplemental Materials Folder.

Once trained, the NLP models were deployed on the data from the full cohort, effectively processing > 6 million medical records. To focus on the symptomatic interpretation of SI and loneliness, we only considered reports that were made 5 years before or after the initial dementia diagnosis. Our data indicate that most of these reports occur several months before and at the time of diagnosis, and that there was a substantial increase in both types of reports during the first year of the COVID‐19 pandemic.

2.7. Participants

The final data used in this study combined patients with measures of cognitive performance, as measured by MoCA scores, clinical diagnosis information, and loneliness or SI reports, consisting of 4817 patients with 9298 observations. The patient flow chart in Figure 1 outlines the procedure used to derive the sample. Our procedure identified 382 patients (851 observations) with loneliness reports and 523 patients (1185 observations) with SI reports compared to the 3912 patients without such mentions, which were defined as a control group in our study (see Table 2 for a split between the groups on main variables). As the retrospective cohort data were collated from EHRs, diversity, equality, and inclusion could not be directly addressed during data collation.

FIGURE 1.

FIGURE 1

Patient flow chart illustrating sample derivation. MMSE, Mini‐Mental State Examination; MoCA, Montreal Cognitive Assessment.

TABLE 2.

Descriptive statistics for variables of interest (mean and SD for quantitative variables and percentage and number of cases for categorical variables).

Variables Whole cohort Controls (no reports) Patients with loneliness reports Patients with social isolation reports
Number of cases 4817 3912 382 523
MoCA score 18.15 (5.86) 18.33 (5.86) 17.66 (5.60) 17.27 (5.92)
Age 80.68 (7.20) 80.84 (7.08) 79.04 (6.86) 81.71 (7.91)
Sex (% women) 2765 (57%) 2162 (55%) 288 (75%) 315 (60%)
Number of observations per patient 1.93 (1.37) 1.85 (1.21) 2.26 (1.70) 2.22 (1.78)
Number of cases with:
1 observation 2931 2522 183 226
2 observations 952 736 93 123
3 observations 384 282 33 69
4 and more 550 372 73 105
Ethnicity:
White 2610 (54%) 2075 (53%) 221 (57%) 314 (60%)
Other 59 (1.2%) 45 (1.1%) 7 (1.5%) 7 (1.3%)
Missing 2148 (45%) 1792 (45%) 154 (40%) 202 (38%)
Marital status:
Married 1240 (26%) 1065 (27%) 48 (12%) 127 (24%)
Divorced 145 (3.0%) 104 (2.7%) 19 (5.0%) 22 (4.2%)
Single 78 (1.6%) 60 (1.5%) 7 (1.8%) 11 (2.1%)
Widowed 735 (15%) 542 (13%) 100 (26%) 93 (17%)
Missing 2619 (54%) 2141 (54%) 208 (54%) 270 (51%)
Diagnosis type:
AD 2266 (47%) 1864 (47%) 166 (43%) 236 (45%)
Lewy body 86 (1.8%) 67 (1.7%) 10 (2.6%) 9 (1.7%)
Other 153 (3.2%) 138 (3.5%) 6 (1.6%) 9 (1.7%)
Unspecified 1591 (33%) 1260 (32%) 143 (37%) 188 (35%)
Vascular 388 (8.1%) 314 (8.0%) 25 (6.5%) 49 (9.4%)
Missing 333 (6.9%) 269 (6.9%) 32 (8.4%) 32 (6.1%)
Accommodation:
Mainstream housing 1765 (37%) 1364 (34%) 171 (44%) 230 (43%)
Supported accommodation 461 (10%) 302 (7%) 70 (18%) 89 (17%)
Missing 2550 (53%) 2219 (56%) 137 (35%) 194 (37%)
Depression:
Mild 75 (1.6%) 57 (1.5%) 7 (1.8%) 11 (2.1%)
Moderate 147 (3.1%) 81 (2.1%) 22 (5%) 44 (8.4%)
Severe 32 (0.66%) 15 (0.38%) 7 (1.8%) 10 (1.9%)
Severe with psychotic episode 40 (0.83%) 15 (0.38%) 5 (1.3%) 20 (3.8%)
Other 40 (0.83%) 23 (0.59%) 5 (1.3%) 12 (2.3%)
Without depression 4483 (93%) 3721 (95%) 336 (87%) 426 (81%)

Note: Categories with a less than five observations were either excluded from the analysis or grouped with similar concepts (e.g., F33.0, F33.1, F33.2 placed in the “Other” category); ICD‐10 codes for depression were used as ever‐depressed variable.

Abbreviations: AD, Alzheimer's disease; ICD, International Classification of Diseases; MoCA, Montreal Cognitive Assessment; SD, standard deviation.

2.8. Statistical analysis

The data were analyzed using a combination of generalized additive mixed‐effect modeling (GAMMs) 41 and linear mixed‐effect modeling (LME). 42 GAMM is a non‐parametric data‐driven method that estimates a non‐linear relationship between predictors of interest and outcome variables. Using this model, we estimated and visualized average changes in cognitive function throughout the disease and tested how trajectories differed between patients who reported loneliness and SI compared to the control group of patients without such reports in their EHRs. To investigate the parametric effects of individual predictors on the slope of cognitive decline, we used LME.

The primary outcome in the analysis was cognitive function, as measured by MoCA and MMSE tests, while we tested the effect of SI and loneliness, and controlled for the effects of age, type of dementia, sex, marital status, accommodation status, and whether patients had a diagnosis of depression in their medical history. In the case of missing information for marital and accommodation status, these patients were included in the analysis under “Missing” categories, while models without these predictors or cases with missing data are reported in the sensitivity analysis. The random by‐patient intercept effects were adjusted in all models, which allowed intercepts to vary for each patient. 32 The adjustment of the random‐effect structure allowed us to model repeated measures of cognitive scores and guarded us against overfitting of the model. Specifically, the random structure in GAMM and LME models enables us to weigh intra‐individual changes over time and inter‐individual differences, allowing us to estimate cognitive trajectories over time. Patients with multiple observations provide more information about the rate and direction of change, while those with fewer observations provide more information about the variability at the group level. In addition to modeling how SI and loneliness are associated with the cognitive ability of patients throughout their disease, we also explored the rate of cognitive change after patients’ first reports of loneliness and SI.

The sensitivity analysis included looking at reports of SI and loneliness in shorter time windows around the diagnosis date, different methods for dealing with missing observations in predictor variables, and MMSE score analysis. We also report analysis focusing on patients with both sets of reports, SI and loneliness, in their EHRs. Compared to the other three groups, these patients are seen four times more frequently by the health and social services but have fewer measures of cognition, potentially indicating a more complex disease phenotype.

2.9. Ethical approvals

We state that all procedures contributing to this work comply with the ethical standards of the relevant national and institutional committees on human experimentation and with the Declaration of Helsinki of 1975, as revised in 2008. The study was approved by the local UK‐CRIS oversight committees and the University of Sheffield Ethics Application Review Board (ID: 045869). Individual patient consent was not required for the use of anonymized data. The R and Python code used to analyze the data and develop NLP models is reported in Supporting Materials.

3. RESULTS

The full cohort consisted of 4817 dementia patients with a mean age of 80.79 years, of whom 57% (n = 2765) were female and 26% (n = 1,240) were married. Of these, 8% (n = 382) reported loneliness, 11% (n = 523) reported social isolation, and 81% (n = 3912) had no reports of either. Patients with loneliness were more likely to be women (75%) and widowed (26%), while those with SI were older (mean age 81.71 years). Controls had the highest percentage of married individuals (27%) and fewer cases of depression (4%). Table 2 reports full descriptive statistics for all variables of interest.

3.1. The effect of loneliness and SI on cognitive trajectories

The results show a significant difference in average MoCA scores between patients with loneliness and SI reports in their EHRs, and those without such reports. In the case of patients with loneliness reports, MoCA scores (see Figure 2A) were lower throughout the disease, as illustrated by Figure 2C. When estimated using LME, we see that the scores of patients who reported being lonely are lower by 0.83 MoCA points at the time of dementia diagnosis (see Table 3).

FIGURE 2.

FIGURE 2

The effect of loneliness and social isolation on the non‐linear changes in cognition as measured by MoCA. A, Cognitive trajectories of the control group (full green line) and patients with loneliness reports (purple dashed line). B, Cognitive trajectories of the control group (full green line) and patients with social isolation reports (purple dashed line). C, Differences in the cognitive functionality between the two groups (average difference in MoCA scores between the control group and loneliness group), where disease periods estimated as statistically different are highlighted by the red line. D, Differences in the cognitive functionality between the two groups (average difference in MoCA scores between the control group and social isolation group), where disease periods estimated as statistically different are highlighted by the red line. MoCA, Montreal Cognitive Assessment.

TABLE 3.

Linear mixed‐effect model coefficients.

Estimate Standard error df t value P value
Main exposures
Intercept a 26.41 1.02 4463 25.78 <0.001
Diagnosis duration b −0.38 0.04 7991 −8.71 <0.001
Social isolation −0.69 0.27 4438 −2.53 0.011
Loneliness −0.83 0.31 4381 −2.64 0.008
Diagnosis duration x social isolation −0.21 0.10 7062 −2.18 0.029
Diagnosis duration x loneliness 0.01 0.11 7495 0.14 0.885
Demographic factors
Male 1.07 0.17 4377 6.15 0.001
Accommodation status
Supported −1.65 0.30 4213 5.53 <0.001
Other −1.40 0.88 4269 1.59 0.110
Missing 0.67 0.18 4391 3.64 <0.001
Clinical factors
Depressed c 2.10 0.33 4214 6.28 <0.001
Diagnosis type
Lewy body −0.07 0.60 4190 −0.12 0.903
Other d −0.65 0.46 4334 −0.14 0.158
Unspecified 0.15 0.18 4422 0.85 0.390
Vascular −1.47 0.30 4440 −4.82 <0.001
Missing −1.20 0.49 4445 −2.43 0.016

Abbreviations: AD, Alzheimer's disease; ICD, International Classification of Diseases; SI, social isolation.

a

Reference group has no complaints of SI or loneliness, is female, living in mainstream housing, not depressed, with a diagnosis of AD.

b

Diagnosis duration indicates the change in estimated score per year of disease progression.

c

The depressed variable represents patients who were ever depressed based on ICD‐10 codes.

d

The type of dementia labeled “Other” consisted of cases with fronto‐temporal dementia, mixed Alzheimer's and vascular dementia, and primary psychiatric disorders, while “Other accommodation” included clinical, no fixed abode, and incarcerated.

Patients with SI reports have comparable MoCA scores to control patients before being diagnosed. Approximately 6 months before diagnosis, the slope of MoCA changes for SI patients, becomes more severe, and they start declining faster than control patients (see Figure 2B and 2D). This pattern is illustrated in the parametric model in which the reference group of patients with no loneliness or SI reports shows an average decline of –0.38 MoCA points per year (P < 0.001), whereas the significant interaction between SI reports and slope of diagnosis duration shows SI patients decline faster by a further –0.21 MoCA points per year relative to controls (P = 0.029). The interaction between loneliness reports and diagnosis duration was not significant, suggesting rates of decline were similar to those of patients with no SI or loneliness reports (see Table 3).

3.2. Cognitive change after the first report of SI or loneliness

The change in MoCA scores after the first SI and loneliness report behaves differently between the two groups of patients. In the case of patients reporting loneliness, the cognitive function continues to decline at the same rate as before the report of loneliness (see Figure 3A). The cognitive function of patients experiencing SI improves on average after the first mention of SI (see Figure 3B). Looking at differences in MoCA scores, before and after the reports, results show that MoCA scores are on average higher after the report in the SI group (before = 17.32 vs. after = 18.08, t = 2.11, df = 1048.6, P = 0.034), but not in the loneliness group (before = 17.36 vs. after = 17.08, t = –0.67, df = 770.62, P = 0.49). However, when we identify patients with at least one MoCA measure before and after the first report and calculate repeated measure t tests, we see that both groups of patients decline in their MoCA scores (loneliness reports: before = 17.58 vs. after = 16.62, t = 2.31, df = 85, P = 0.023 and SI reports: before = 18.03 vs. after = 16.87, df = 115, t = 3.35, P = 0.001).

FIGURE 3.

FIGURE 3

The non‐linear cognitive change, as measured by MoCA, before and after the first report for loneliness and social isolation group. A, Cognitive trajectories of patients with report(s) of loneliness. B, Cognitive trajectories of patients with report(s) of social isolation. MoCA, Montreal Cognitive Assessment.

4. DISCUSSION

The effect of SI on the risk of dementia development is well established. 9 , 15 Still, the status of SI and loneliness when presented in presymptomatic and symptomatic stages of the disease and their effect on the progression of the disease is less explored.

We examined the effect of reported SI and loneliness on the rate of cognitive change of patients with dementia using EHRs from a UK NHS mental health trust. We showed that patients with evidence of loneliness have worse cognition throughout their disease course. Patients whose EHRs mention SI have comparable cognition, before diagnosis, to patients without mentions of such symptoms. However, 6 months before being diagnosed, the cognitive ability of socially isolated patients starts declining at a higher rate, resulting in worse cognition at the point of dementia diagnosis and later in the disease course.

4.1. Mechanisms of SI and loneliness

The conceptualization of the two concepts, SI and loneliness, likely underlies the estimated differences between the three groups of patients in our study. 1 SI represents more of a physical barrier to receiving social support and/or maintaining social connections, while loneliness reflects emotional aspects of this feeling. We found that socially isolated patients have stronger rates of cognitive deterioration several months before a dementia diagnosis while being comparable to controls in the preceding period. In the context of a life‐changing and stigmatizing diagnosis such as dementia, the lack of social contact prevents patients from receiving needed support, and their cognition declines at higher rates. 43 When reported for the first time, we show that average values of MoCA scores increase for this subgroup of patients. This improvement may reflect positive action taken by health‐care and/or social services in response to the report. In contrast, patients who experience loneliness have worse cognition throughout the disease course. Such results indicate that loneliness might be an intermediary for depressive symptomatology or might be caused by common origins. 44 , 45 , 46 This interpretation is also supported by the demographic differences split by group, where we see that patients with reports of SI and loneliness also have higher rates of ICD‐10 codes for depression. These patients also do not observe any improvement in their cognition after the first report of loneliness, which might be expected given that improvement in feelings of loneliness requires a change in the availability of social networks, psychological well‐being, life satisfaction, activities, and other psychiatric symptoms. 47

4.2. Strengths and limitations

Our study illustrates the potential of medical records from mental health institutions to provide evidence‐based results on the effect of symptoms in dementia diseases. 9 , 48 Using large data and advanced statistical modeling, our study shows that SI can be seen as a disease progression factor. Not only is this a novel finding in the domain, contrasting with some previous studies which showed limited effects or their complete absence 20 , 22 , 23 but we show differing effects of SI and loneliness on the cognitive trajectories of patients with dementia.

There are several limitations when using large observational datasets. 49 We cannot allocate patients’ membership in the group and can only control for a limited number of factors that could have moderating effects on SI and loneliness, such as depression. Lack of control over the allocation of patients and barriers when accessing health care may have led to inadequacies regarding diversity, equality, and inclusion, which may reduce the wider generalizability of findings. Similarly, patients with SI or loneliness reports recorded considerably before diagnosis may be a sign of additional health‐care needs and could additionally limit the generalizability of findings. The correlational nature of the data limits the causal interpretation of our findings, and even though we see improvement in cognition after the first report of SI, we cannot ascertain what change in patients’ social circumstances followed. There are multiple sources of support that patients can receive after SI is identified, such as closer family connections, social services provision of care, or a change to their living conditions (e.g., admittance to residential care). Our interpretation of SI relies on a subjective perception from the patient, caregiver, or clinician, rather than an objective measure, for example, of frequency of social contact. Automated and trained NLP model architectures are probabilistic, and even though they achieve high levels of accuracy, they introduce an additional layer of noise to the later data analysis. 50

4.3. Clinical implications

While acknowledging limitations, we show that SI and loneliness could be seen as a disease progression factor for dementia patients, given their effect on cognitive trajectories, even before a formal diagnosis. This means patients experiencing SI or loneliness might benefit from closer monitoring of their cognitive health. While cognitive decline is expected in dementia, the rate of decline can have significant impacts on both patient care and quality of life. By recognizing SI and loneliness as potential factors influencing the speed of decline, these findings could have direct implications for clinical practice, such as identifying potential avenues for intervention, informing treatment strategies, and strengthening the rationale for social prescribing. We hope that these effects could steer the debate concerning modifiable symptoms, as part of a holistic assessment, that could be used to support the care of patients and outline a research approach that could provide us with more evidence‐based studies of modifiable disease progression factors.

AUTHOR CONTRIBUTIONS

James A. C. Myers and Nemanja Vaci were granted access to the electronic health records. Nemanja Vaci developed natural language processing models, and James A. C. Myers supported their training and evaluation. James A. C. Myers cleaned and processed extracted data, James A. C. Myers and Nemanja Vaci jointly analyzed data, and all authors worked on the interpretation of the results. Ivan Koychev, Robert Perneczky, and Oliver Bandmann supervised the clinical interpretation of the findings, while Tom Stafford supervised analytical procedures. James A. C. Myers and Nemanja Vaci wrote the manuscript, and all authors revised and reviewed the manuscript. Nemanja Vaci, as the corresponding author, had final responsibility for the decision to submit the manuscript.

CONFLICT OF INTEREST STATEMENT

Ivan Koychev is a paid medical advisor to Five Lives, a digital health‐care company developing a platform for addressing preventable risk factors for dementia in ageing adults. All other authors declare no conflicts of interest. Author disclosures are available in the supporting information.

CONSENT STATEMENT

Informed consent was not required for the study as we use anonymized patients’ electronic health records. The data were accessed and analyzed in accordance with applicable legal and ethical guidelines to ensure the privacy and confidentiality of all subjects.

Supporting information

Supporting Information

DAD2-17-e70149-s003.pdf (971.3KB, pdf)

Supporting Information

Supporting Information

ACKNOWLEDGMENT

We acknowledge the work and support of the Oxford Research Informatics Team, Tanya Smith (Head of Research Informatics), Adam Pill and Suzanne Fisher (CRIS Academic Support and Information Analyst), Suzanne Fisher (Research Informatics Systems Analysts), and Lulu Kane (Research Informatics Administrator). Matthew Bladen's contribution to preparing the article for publication is greatly appreciated. The interpretation and conclusions contained in this report are those of the authors alone. The views expressed are those of the authors and not necessarily those of the NHS, the National Institute for Health Research or the Department of Health. This study was supported by CRIS Powered by Akrivia Health, using data, systems and support from the NIHR Oxford Health Biomedical Research Centre (NIHR203316) Research Informatics Team. IK is funded through MRC, NIHR Oxford Health Biomedical Research Facility and an investigator‐initiated grant by Novo Nordisk.

Myers JAC, Stafford T, Koychev I, Perneczky R, Bandmann O, Vaci N. Loneliness, social isolation, and effects on cognitive decline in patients with dementia: A retrospective cohort study using natural language processing. Alzheimer's Dement. 2025;17:e70149. 10.1002/dad2.70149

DATA AVAILABILITY STATEMENT

The source data for this work is owned by Oxford Health NHS Foundation Trust using anonymized patient records via CRIS Powered by Akrivia Health. The data cannot be made publicly available but can be accessed with permissions from Oxford Health NHS Foundation Trust for UK NHS staff and UK academics within a secure firewall, in the same manner as the authors.

REFERENCES

  • 1. World Health Organization . Social isolation and loneliness among older people: advocacy brief. World Health Organization; 2021:1‐17. [Google Scholar]
  • 2. Evans IE, Martyr A, Collins R, et al., Social isolation and cognitive function in later life: a systematic review and meta‐analysis. J Alzheimers Dis. 2019;70(s1):S119–S144. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Smith KJ, Victor C. Typologies of loneliness, living alone and social isolation, and their associations with physical and mental health. Ageing Soc. 2019;39(8):1709–1730. [Google Scholar]
  • 4. Zhou J, Tang R, Wang X, Li X, Heianza Y, Qi L. Improvement of social isolation and loneliness and excess mortality risk in people with obesity. JAMA Netw Open. 2024;7(1):e2352824–e2352824. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Lyu C, Siu K, Xu I, Osman I, Zhong J. Social isolation changes and long‐term outcomes among older adults. JAMA Netw Open. 2024;7(7):e2424519–e2424519. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Gerlach LB, Solway ES, Malani PN. Social isolation and loneliness in older adults. JAMA. 2024. [DOI] [PubMed] [Google Scholar]
  • 7. Donovan NJ, Okereke OI, Vannini P, et al. Association of higher cortical amyloid burden with loneliness in cognitively normal older adults. JAMA Psychiatry. 2016;73(12):1230–1237. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Holt‐Lunstad J, Smith TB, Baker M, Harris T, Stephenson D. Loneliness and social isolation as risk factors for mortality: a meta‐analytic review. Perspect Psychol Sci. 2015;10(2):227–237. [DOI] [PubMed] [Google Scholar]
  • 9. Livingston G, Huntley J, Sommerlad A, et al. Dementia prevention, intervention, and care: 2020 report of the Lancet Commission. Lancet. 2020;396(10248):413–446. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Kelly ME, Duff H, Kelly S, et al. The impact of social activities, social networks, social support and social relationships on the cognitive functioning of healthy older adults: a systematic review. Syst. Rev. 2017;6(1):1–18. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11. Penninkilampi R, Casey A‐N, Singh MF, Brodaty H. The association between social engagement, loneliness, and risk of dementia: a systematic review and meta‐analysis. J Alzheimers Dis. 2018;66(4):1619–1633. [DOI] [PubMed] [Google Scholar]
  • 12. Sommerlad A, Sabia S, Singh‐Manoux A, Lewis G, Livingston G. Association of social contact with dementia and cognition: 28‐year follow‐up of the Whitehall II cohort study. PLoS Med. 2019;16(8):e1002862. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Lara E, Martín‐María N, De la Torre‐Luque A, et al. Does loneliness contribute to mild cognitive impairment and dementia? A systematic review and meta‐analysis of longitudinal studies. Ageing Res. Rev. 2019;52:7–16. [DOI] [PubMed] [Google Scholar]
  • 14. Victor CR. Is loneliness a cause or consequence of dementia? A public health analysis of the literature. Front Psychol. 2021;11:612771. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15. Perry BL, Roth AR, Peng S, Risacher SL, Saykin AJ, Apostolova LG. Social networks and cognitive reserve: network structure moderates the association between amygdalar volume and cognitive outcomes. J Gerontol B Psychol Sci Soc Sci. 2022;77(8):1490–1500. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Bennett DA, Schneider JA, Tang Y, Arnold SE, Wilson RS. The effect of social networks on the relation between Alzheimer's disease pathology and level of cognitive function in old people: a longitudinal cohort study. Lancet Neurol. 2006;5(5):406–412. [DOI] [PubMed] [Google Scholar]
  • 17. Mathys H, Peng Z, Boix CA, et al. Single‐cell atlas reveals correlates of high cognitive function, dementia, and resilience to Alzheimer's disease pathology. Cell. 2023;186(20):4365–4385. e27. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Stern Y, Albert M, Barnes CA, Cabeza R, Pascual‐Leone A, Rapp PR. A framework for concepts of reserve and resilience in aging. Neurobiol Aging. 2023;124:100–103. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Holwerda TJ, Deeg DJ, Beekman AT, et al. Feelings of loneliness, but not social isolation, predict dementia onset: results from the Amsterdam Study of the Elderly (AMSTEL). J Neurol Neurosurg Psychiatry. 2014;85(2):135–142. [DOI] [PubMed] [Google Scholar]
  • 20. Zhang Y, Tatewaki Y, Liu Y, et al. Perceived social isolation is correlated with brain structure and cognitive trajectory in Alzheimer's disease. GeroScience. 2022;44(3):1563–1574. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Freak‐Poli R, Wagemaker N, Wang R, et al. Loneliness, not social support, is associated with cognitive decline and dementia across two longitudinal population‐based cohorts. J Alzheimers Dis. 2022;85(1):295–308. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Sun W, Matsuoka T, Oba H, Narumoto J. Importance of loneliness in behavioral and psychological symptoms of dementia. Int. J. Geriatr. Psychiatry. 2021;36(4):540–546. [DOI] [PubMed] [Google Scholar]
  • 23. Victor CR, Rippon I, Nelis SM, et al. Prevalence and determinants of loneliness in people living with dementia: findings from the IDEAL programme. Int. J. Geriatr. Psychiatry. 2020;35(8):851–858. [DOI] [PubMed] [Google Scholar]
  • 24. Joyce J, Ryan J, Owen A, et al. Social isolation, social support, and loneliness and their relationship with cognitive health and dementia. Int. J. Geriatr. Psychiatry. 2022;37(1). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Boss L, Kang D‐H, Branson S. Loneliness and cognitive function in the older adult: a systematic review. Int Psychogeriatr. 2015;27(4):541–553. [DOI] [PubMed] [Google Scholar]
  • 26. Janssen O, Vos SJ, García‐Negredo G, et al. Real‐world evidence in Alzheimer's disease: the ROADMAP Data Cube. Alzheimers Dement. 2020;16(3):461–471. [DOI] [PubMed] [Google Scholar]
  • 27. Nasreddine ZS, Phillips NA, Bédirian V, et al. The Montreal Cognitive Assessment, MoCA: a brief screening tool for mild cognitive impairment. J Am Geriatr Soc. 2005;53(4):695–699. [DOI] [PubMed] [Google Scholar]
  • 28. Folstein MF, Folstein SE, McHugh PR. “Mini‐mental state”: a practical method for grading the cognitive state of patients for the clinician. J. Psychiatr. Res. 1975;12(3):189–198. [DOI] [PubMed] [Google Scholar]
  • 29. Pinto TC, Machado L, Bulgacov TM, et al. Is the Montreal Cognitive Assessment (MoCA) screening superior to the Mini‐Mental State Examination (MMSE) in the detection of mild cognitive impairment (MCI) and Alzheimer's Disease (AD) in the elderly?. Int Psychogeriatr. 2019;31(4):491–504. [DOI] [PubMed] [Google Scholar]
  • 30. National Institute for Health and Care Excellence . Dementia: assessment, management and support for people living with dementia and their carers (NICE Guideline NG97). National Institute for Health and Care Excellence; 2018. [PubMed] [Google Scholar]
  • 31. Stojanovic M, Mikula C, John S, Kiselica A. Clinical importance in Alzheimer's disease: effects of anchor agreement and disease severity. Aging Clin Exp Res. 2024;36(1):5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32. Vaci N, Koychev I, Kim C‐H, et al. Real‐world effectiveness, its predictors and onset of action of cholinesterase inhibitors and memantine in dementia: retrospective health record study. Br J Psychiatry. 2021;218(5):261–267. [DOI] [PubMed] [Google Scholar]
  • 33. Kormilitzin A, Vaci N, Liu Q, Nevado‐Holgado A. Med7: a transferable clinical natural language processing model for electronic health records. Artif Intell Med. 2021;118:102086. [DOI] [PubMed] [Google Scholar]
  • 34. Senior M, Burghart M, Yu R, et al. Identifying predictors of suicide in severe mental illness: a feasibility study of a clinical prediction rule (Ox ford M ental I llness and S uicide Tool or OxMIS). Front Psychiatry. 2020;11:268. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35. Goodday SM, Kormilitzin A, Vaci N, et al. Maximizing the use of social and behavioural information from secondary care mental health electronic health records. J Biomed Inform. 2020;107:103429. [DOI] [PubMed] [Google Scholar]
  • 36. Li Z, Kormilitzin A, Fernandes M, et al. Validation of UK Biobank data for mental health outcomes: a pilot study using secondary care electronic health records. Int J Med Inform. 2022;160:104704. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37. Vaci N, Liu Q, Kormilitzin A, et al. Natural language processing for structuring clinical text data on depression using UK‐CRIS. BMJ Ment Health. 2020;23(1):21–26. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38. Tunstall L, Reimers N, Jo UES, et al. Efficient few‐shot learning without prompts. arXiv preprint arXiv:220911055. 2022;2209:11055 [Google Scholar]
  • 39. De Jong‐Gierveld J, van Tilburg TG. A 6‐item scale for overall, emotional, and social loneliness: confirmatory tests on survey data. Res. Aging. 2006;28(5):582–598. [Google Scholar]
  • 40. Russell DW. UCLA Loneliness Scale (Version 3): reliability, validity, and factor structure. J. Pers. Assess. 1996;66(1):20–40. [DOI] [PubMed] [Google Scholar]
  • 41. van Rij J, Vaci N, Wurm LH, Feldman LB. Alternative Quantitative Methods in Psycholinguistics: Implications For Theory and Design. Word Knowledge Word Usage; 2020:83. [Google Scholar]
  • 42. Pinheiro JC, Bates DM. Linear mixed‐effects models: basic concepts and examples. Mixed‐effects models in S and S‐Plus. 2000:3–56. [Google Scholar]
  • 43. Murata C, Saito T, Saito M, Kondo K. The association between social support and incident dementia: a 10‐year follow‐up study in Japan. Int. J. Environ. Res. Public Health. 2019;16(2):239. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44. Erzen E, Çikrikci Ö. The effect of loneliness on depression: a meta‐analysis. Int. J. Soc. Psychiatry. 2018;64(5):427–435. [DOI] [PubMed] [Google Scholar]
  • 45. Weeks DG, Michela JL, Peplau LA, Bragg ME. Relation between loneliness and depression: a structural equation analysis. J Pers Soc Psychol. 1980;39(6):1238. [DOI] [PubMed] [Google Scholar]
  • 46. Shen C, Rolls ET, Cheng W, et al. Associations of social isolation and loneliness with later dementia. Neurology. 2022;99(2):e164–e175. [DOI] [PubMed] [Google Scholar]
  • 47. Åkerlind I, Hörnquist JO. Stability and change in feelings of loneliness: a two‐year prospective longitudinal study of advanced alcohol abusers. Scand. J. Psychol. 1989;30(2):102–112. doi: 10.1111/j.1467-9450.1989.tb01073.x [DOI] [PubMed] [Google Scholar]
  • 48. Oliver D, Arribas M, Perry BI, et al. Using electronic health records to facilitate precision psychiatry. Biol Psychiatry. 2024;96(7):532–542. [DOI] [PubMed] [Google Scholar]
  • 49. Meystre SM, Savova GK, Kipper‐Schuler KC, Hurdle JF. Extracting information from textual documents in the electronic health record: a review of recent research. Yearb Med Inform. 2008;17(01):128–144. [PubMed] [Google Scholar]
  • 50. Perera S, Sheth A, Thirunarayan K, Nair S, Shah N Challenges in understanding clinical notes: why NLP engines fall short and where background knowledge can help. presented at: Proceedings of the 2013 international workshop on Data management & analytics for healthcare; 2013; California, USA. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supporting Information

DAD2-17-e70149-s003.pdf (971.3KB, pdf)

Supporting Information

Supporting Information

Data Availability Statement

The source data for this work is owned by Oxford Health NHS Foundation Trust using anonymized patient records via CRIS Powered by Akrivia Health. The data cannot be made publicly available but can be accessed with permissions from Oxford Health NHS Foundation Trust for UK NHS staff and UK academics within a secure firewall, in the same manner as the authors.


Articles from Alzheimer's & Dementia : Diagnosis, Assessment & Disease Monitoring are provided here courtesy of Wiley

RESOURCES