Background

Dementia, characterised by progressive cognitive decline, is a major public health concern, with substantial impacts on the person with dementia as well as society, the economy, and healthcare systems [1]. Alzheimer’s disease (AD) is the major disease leading to dementia. Currently, there is no cure or effective disease-modifying treatment available. Consequently, identifying and targeting modifiable risk factors for dementia to implement preventive strategies are urgent needs [2].

Musculoskeletal pain is common in the general population, leading to limited physical function, poor quality of life, and disability [3]. It is a major public health concern, with an estimated prevalence of 74% in community-dwelling older adults [4,5,6]. Musculoskeletal pain often occurs in multiple sites, with studies including our own reporting 41–75% of people with musculoskeletal pain experiencing pain in two or more sites [6,7,8,9]. Compared to single-site pain, pain in multiple sites was associated with poorer physical and mental health [10, 11] as well as worse health-related outcomes [12,13,14].

Few cohort studies investigated the associations of musculoskeletal pain with cognitive decline and dementia, with some showing that pain is related to memory decline, accelerated cognitive decline [15, 16], or increased risk of dementia [17,18,19,20]. Although the precise mechanisms are not yet clear, several mechanisms by which pain contributes to cognitive impairment or dementia have been proposed. For example, it has been hypothesised that pain-induced neuroinflammation may be implicated in AD [21], and pain may divert attention by directly competing for cognitive processing resources [22]. In addition, pain may contribute to structural and functional changes in the brain which are also involved in cognitive function [23,24,25], although pain processing itself has a cognitive-evaluative component, and thus, they may share an inherent overlap. Living with chronic pain may also undermine the resilience of the brain to the accumulating burden of dementia-related pathology on the brain [26].

In contrast, others have reported no association between pain and cognitive impairment or dementia [27, 28] and suggested that pain may be a correlate or prodromal symptom rather than a cause of dementia [29]. The potential reasons for the inconsistency between studies may be due to variations in the study design, study population, follow-up length, and pain and outcome measures. For instance, most prior studies had a short (≤ 5 years) follow-up period among individuals aged ≥ 65 years [17,18,19, 27], did not assess the chronicity of pain [17,18,19,20, 27], and used different criteria to define dementia cases. Other than these, differences in controlling for confounding factors in previous studies could be one of the possible explanations, for example, no or few studies have considered some important factors such as sleep problems [30] and opioid use [31]. Thus, it remains unclear whether the excess risk is attributable to these potential confounding factors.

Currently, there is no study exploring the associations between chronic pain in multiple sites and risk of incident dementia as well as its subtypes. Therefore, this study examined whether pain in multiple sites increased the risk of all-cause dementia, AD, vascular, and frontotemporal dementia using large-scale data from a population-based cohort study where participants were followed for a period of 13 years with chronic pain assessed using a standardised definition, dementia cases and its subtypes ascertained by validated methods, and a wide range of potential confounders measured. Since chronic pain has been linked to cognitive impairment and dementia, we, therefore, hypothesised that chronic pain in multiple sites is associated with an increased risk of dementia and its subtypes in a dose–response relationship.

Methods

Study population

This study utilised data from the UK Biobank study, which is a large, population-based prospective cohort, with > 500,000 participants (aged 40–69 years) who attended one of 22 assessment centres across the UK between 2006 and 2010. A detailed description of the UK Biobank study was previously published [32]. The UK Biobank study was approved by the North West Multi-centre Research Ethics Committee, and all participants provided electronic informed consent. The current analyses were restricted to participants without self-reported or prevalent dementia at baseline.

Pain assessment (exposure)

Participants were asked at baseline whether they had experienced pain at the sites of the hip, knee, back, and neck/shoulder in the last month that interfered with their usual activities. The question was asked via a touchscreen pain questionnaire, where more than one site could be selected. Participants could also choose pain ‘all over the body’, but they could not choose self-selected individual pain sites. If participants reported pain in at least one site or pain ‘all over the body’, they were then asked whether the reported pain had lasted for ≥ 3 months. Based on these questions, the number of painful sites which lasted for ≥ 3 months was summed to create a total number of chronic pain sites which categorised participants into six groups: no chronic pain; 1, 2, 3, and 4 sites of chronic pain; and chronic pain ‘all over the body’.

Dementia diagnosis (outcomes)

All-cause dementia and its subtypes were ascertained using hospital inpatient and death registry records. Hospital inpatient records contained data on admissions and diagnoses obtained from Hospital Episode Statistics for England, Scottish Morbidity Record for Scotland, and Patient Episode Database for Wales. Death registry records were obtained from National Health Service (NHS) Digital for England and Wales and Information and Statistics Division for Scotland also provided additional cases. The International Classification of Diseases (ICD9 and ICD10) coding system was used to record primary and secondary hospital diagnoses and causes of death according to a set of algorithms developed by the UK Biobank outcome adjudication group (Additional file 1: Table S1). The algorithmically defined all-cause dementia and its subtypes (including AD, vascular dementia, and frontotemporal dementia) as outcomes for the current analyses were validated by the UK Biobank outcome adjudication group [33].

Covariates

A range of baseline variables which are associated with both chronic pain and dementia were considered potential confounding factors based on existing literature within the field [1, 34], including (1) sociodemographic factors—age, sex, ethnicity (White and non-White), highest education qualification, and household income; (2) body mass index (BMI) and lifestyle factors—smoking status, frequency of alcohol consumption, and recommended moderate/vigorous physical activity (PA) (yes/no); (3) health factors—presence of any comorbidities (including hypertension, diabetes, stroke, cardiovascular disease, cancer, and lung disease), use of non-steroidal anti-inflammatory drugs (NSAIDs) (Additional file 1: Supplementary Text 1), and use of opioid (Additional file 1: Supplementary Text 2); and (4) psychological problems and sleep duration (Additional file 1: Supplementary Text 3). The presumed relationships between the selected covariates and pain/dementia are shown in Additional file 1: Fig. S1. Covariate subsets were selected and adjusted in the models based on their presumed relationships to avoid misinterpretation of the effects of each variable by including all covariates in one model.

Patient and public involvement

Patients and/or the public were not involved in the design, conduct, reporting, or dissemination plans of this research.

Statistical analyses

The mean (standard deviation [SD]) and percentage (number) were used to describe the continuous and categorical variables, respectively. ANOVA and ordinal χ2 test (Kruskal–Wallis test) were used to test if there was a trend of the mean of each continuous and categorical variable across a number of chronic pain groups. Cox proportional hazards regression models were used to examine the associations of a number of chronic pain sites with time to incident all-cause dementia, AD, vascular dementia, and frontotemporal dementia, where free of chronic pain served as the reference group. The follow-up period was calculated from the date of attending the baseline assessment until the date of the first incident dementia diagnosis, date of death, or censoring date (5 July 2022), whichever came first. In addition to univariable analysis, (1) analyses were also adjusted for sociodemographic, BMI, and lifestyle factors for model 1; (2) model 2—model 1 and health factors (i.e. presence of any comorbidities, use of NSAIDs, and use of opioid); (3) model 3—model 2 and psychological problems and sleep duration. Variance inflation factor (VIF) was used to determine the occurrence of multicollinearity. A variable whose VIF value is greater than 10 may merit further investigation. The proportional hazard assumptions of all analyses were validated using Schoenfeld residuals except for all-cause dementia and AD where the analyses were restricted to participants with a follow-up period of 6 years and over to meet the assumption. The proportional hazard assumption was also graphically assessed using Schoenfeld residuals plots (Additional file 1: Fig. S2). Subgroup analyses by the follow-up length (≤ 5 and > 5 years) were performed to examine the possibility that pain is a prodromal symptom of dementia thereby avoiding a possible reverse causality. Additional analyses were conducted among participants who underwent a fluid intelligence test, which measures various aspects of cognitive performance (Additional file 1: Supplementary Text 4). We detected a significant interaction between the number of chronic pain sites and age; therefore, subgroup analyses by age category (< 65 and ≥ 65 years) were performed to investigate the associations between the number of chronic pain sites and incident dementia. Competing risk analyses were performed with death and loss to follow-up as the competing causes using the Fine–Gray proportional subhazards model [35]. We also performed a sensitivity analysis using propensity score weighting based on generalised boosted models (GBM) for propensity score estimations in the context of multiple treatments [36]. All analyses were performed with the STATA software, version 17 (Stata Corp, College Station, TX 77,845, USA). A two-tailed P value less than 0.05 was considered statistically significant. To account for the potential issue of multiple testing, the Bonferroni correction was applied with a P value of 0.0125 (0.05 divided by 4 outcomes) considered significant.

Results

A total of 356,383 participants who did not have all-cause dementia at baseline and had complete data on pain and covariates were included in the observational analyses (Fig. 1). At baseline, their mean age was 56.5 (SD 8.1) years; 51.6% of participants were females. During a median follow-up of 13.3 years (interquartile range [IQR] 12.6–14.0), there were 4959 new dementia events recorded including 2083 AD, 1092 vascular dementia, and 166 frontotemporal dementia cases. The baseline characteristics of participants by number of chronic pain sites are shown in Table 1. At baseline, 58.8% of participants reported no chronic pain and 24.4%, 10.3%, 3.9%, 1.3%, and 1.3% had chronic pain in 1, 2, 3, and 4 sites and ‘all over the body’, respectively. Participants reporting a greater number of chronic pain sites appeared to have a higher proportion of developing incident all-cause dementia, AD, and vascular dementia than those without chronic pain. Compared with participants without chronic pain, participants who experienced a greater number of chronic pain sites were older, more likely to be female, a current smoker, physically inactive, and non-White ethnicity; had a greater BMI, lower education level and household income, less regular alcohol consumption, more comorbidities, higher reported use of NSAIDs and opioids; more likely to have psychological problems; and less likely to have recommended sleep duration (Table 1).

Fig. 1
figure 1

Flow chart of the study. AD, Alzheimer’s disease; VD, vascular dementia; FD, frontotemporal dementia

Table 1 Characteristics of participants at baseline, by number of chronic pain sites

The associations between the number of chronic pain sites and the risk of incident all-cause dementia and its subtypes are shown in Figs. 2 and 3 and Table 2. There was a significant association between the number of chronic pain sites and an increased risk of incident all-cause dementia in univariable analysis and even fully adjusted model (hazard ratio [HR] = 1.08 per 1 site increase, 95% confidence interval [CI] 1.05–1.11) (Fig. 2). A dose–response relationship was observed for this association with participants reporting one or more chronic pain sites showing a gradually increased risk for incident all-cause dementia, as compared to those without chronic pain (Fig. 3 and Table 2). Although the effect sizes became smaller after adjustment for covariates including sociodemographic, BMI, lifestyle, comorbidities, pain medications, psychological problems, and sleep factors, the associations remained statistically significant with participants reporting chronic pain ‘all over the body’ having the highest risk (Fig. 3 and Table 2).

Fig. 2
figure 2

Univariable and multivariable estimates for the association between number of chronic pain sites and risk of incident dementia and its subtypes. Hazard ratio (HR) and 95% confidence interval (CI) were derived from Cox regression and refer to HR of risk of incident dementia and its subtypes associated with per one increment of the number of chronic pain sites. Model 1 adjusted for baseline age, sex, body mass index, ethnicity, highest education level, house income, smoking status, alcohol frequency, and physical activity. Model 2 further adjusted for the presence of comorbidity, non-steroidal anti-inflammatory medication use, and opioid medication use from model 1. Model 3 further adjusted for psychological problems and sleep duration from model 2

Fig. 3
figure 3

Association of number of chronic pain sites with risk of incident dementia, Alzheimer’s disease, and vascular dementia. HR (95% CI): hazard ratio (95% confidence interval) representing the HR of risk of incident dementia and its subtypes with free of chronic pain as a reference group. P refers to P for trend which was derived from Cox regression. Model 1 adjusted for baseline age, sex, body mass index, ethnicity, highest education level, house income, smoking status, alcohol frequency, and physical activity. Model 2 further adjusted for the presence of comorbidity, non-steroidal anti-inflammatory medication use, and opioid medication use from model 1. Model 3 further adjusted for psychological problems and sleep duration from model 2

Table 2 Associations between the number of chronic pain sites and the incidence of dementia and its subtypes over follow-up (n = 356,383)

There was also a tendency towards a higher risk of incident AD with an increasing number of chronic pain sites in univariable analysis (Figs. 2 and 3). The significant association persisted in the adjusted models. Relative to those without chronic pain, participants having 2, 3, and 4 pain sites and pain ‘all over the body’ had a 29%, 27%, 30%, and 37% higher risk of incident AD in the fully adjusted model, respectively, of which 4 pain sites and pain ‘all over the body’ were of borderline significance (Fig. 3 and Table 2). Although the trend of the association between the number of chronic pain sites and incident vascular dementia was non-significant in the fully adjusted model, participants who had chronic pain ‘all over the body’ had a higher risk in comparison with those without chronic pain (Figs. 2 and 3 and Table 2). No significant trend and association were observed between the number of chronic pain sites and incident frontotemporal dementia (Fig. 2 and Table 2).

Subgroup analyses in participants with ≤ 5 and > 5 years of follow-up showed a significant association between the number of chronic pain sites and incident all-cause dementia, as shown in Fig. 4. A significant association for incident AD was only observed in those with > 5 and years of follow-up (Fig. 4). There was no significant association between the number of chronic pain sites and incident all-cause dementia among participants with the fluid intelligence test, either before or after further adjustment for fluid intelligence score (Additional file 1: Table S2). We also observed significant associations of the number of chronic pain sites with both incident all-cause dementia and AD among participants aged < 65 years and ≥ 65 years, while the effect size was slightly larger among those aged 65 years and older (Fig. 5). Competing risk analyses also revealed similar results when considering death and loss to follow-up as competing risks (Additional file 1: Table S3). In addition, after adjusting for propensity scores only and both propensity scores and other covariates, we found that the results did not substantially change, and the effect size of the associations was larger when we adjusted for propensity scores only, as shown in Additional file 1: Table S4.

Fig. 4
figure 4

Subgroup analyses by the follow-up period on the association between number of chronic pain sites and risk of incident dementia and Alzheimer’s disease. Hazard ratio (HR) and 95% confidence interval (CI) were derived from Cox regression and refer to HR of risk of incident dementia and Alzheimer’s disease associated with per one increment of the number of chronic painful sites. Multivariable adjustment was for age, sex, body mass index, ethnicity, highest education level, house income, smoking status, alcohol frequency, physical activity, presence of comorbidity, non-steroidal anti-inflammatory medication use, opioid medication use, psychological problems, and sleep duration

Fig. 5
figure 5

Associations of number of chronic pain sites with incident dementia and Alzheimer’s disease by age group. Hazard ratio (HR) and 95% confidence interval (CI) were derived from Cox regression and refer to HR of risk of incident dementia and Alzheimer’s disease associated with per one increment of the number of chronic painful sites. Multivariable adjustment was for age, sex, body mass index, ethnicity, highest education level, house income, smoking status, alcohol frequency, physical activity, presence of comorbidity, non-steroidal anti-inflammatory medication use, opioid medication use, psychological problems, and sleep duration

Discussion

This study leveraging data from > 356,000 individuals in a population-based cohort found that per one chronic pain site increase was associated with an 8% increased risk of incident all-cause dementia over a median follow-up of 13 years and that there was a tendency towards a higher risk of incident all-cause dementia as the number of chronic pain sites increased, with the cumulative incidence of dementia of > 40% higher in those with pain in four sites or ‘all over the body’ compared to those without chronic musculoskeletal pain. These associations remained statistically significant after controlling for potential confounding factors such as sociodemographics, BMI, lifestyle, comorbidities, pain medications, psychological problems, and sleep factors, although the effect sizes of the associations were attenuated. Similar associations were observed for AD but not for vascular and frontotemporal dementia, which may reflect the difference in mechanisms mediating different subtypes of dementia in chronic musculoskeletal pain. To the best of our knowledge, this is the first study to examine the associations between the number of chronic pain sites and the risk of all-cause dementia and its subtypes.

The findings of this study that greater number of chronic pain sites was associated with a higher risk of all-cause dementia in part agree with previous longitudinal studies showing an increased risk of dementia in individuals with chronic pain or pain conditions [18,19,20, 37], although these studies did not assess the number of painful sites as in the current study. Two recent retrospective US cohort studies found an increased risk of AD and related dementias in individuals with non-cancer chronic pain conditions compared to those without pain conditions during 2 years of follow-up [18, 19]. In a study with a median follow-up of 8.6 years, Whitlock et al. showed that persistent pain was associated with accelerated memory decline and increased probability of dementia [15]. Tzeng et al. also reported that fibromyalgia, a widespread musculoskeletal pain disorder, had a 2.77-fold increased risk of all-cause dementia than the age- and sex-matched control group in a study with 10 years of follow-up [37]. Similarly, analyses of the Framingham Heart Study estimated a 43% increase in all-cause dementia risk in people with widespread pain over a median follow-up of 10 years [20].

In contrast, a recent study with 24 years of follow-up in a small sample (n = 593) found the presence of chronic pain was not associated with all-cause dementia [28]. Another study also failed to detect a positive association between pain and cognitive decline over 4 years of follow-up [27]. Variations in the study design, study population, follow-up length, pain, and cognition measurement/dementia diagnosis between our study and the previous studies may be a part of the explanation for the discrepant results. However, previous studies seldom considered some important factors common to both pain and dementia such as sleep problems [30] and opioid use [31], thus increasing the possibility of confounding and reverse causation. The analyses of this study took into account all potential covariates, revealing that number of chronic pain sites per se is linked to an increased risk of all-cause dementia, thus providing the evidence that individuals experiencing a greater number of chronic pain sites have adverse outcomes [12,13,14]. Moreover, this is further strengthened by the findings from subgroup analyses that the direction and strength of the association between the number of chronic pain sites and dementia were consistent between participants ≤ 5 and > 5 years of follow-up. Of note, the significant associations between the number of chronic pain sites and all-cause dementia persisted after adjustment for covariates, but the effect sizes were slightly attenuated, suggesting the association of chronic pain with incident all-cause dementia may be partially, but not fully influenced by these covariates. Our findings appear to support a greater number of chronic pain sites as a risk factor instead of prodromal symptom for dementia [29, 38] since one would expect a positive association between number of chronic pain sites and dementia in a shorter but not a longer follow-up if chronic pain is a prodromal symptom of dementia.

In addition, the current study found that greater number of chronic pain sites was associated with incident dementia in both participants aged < 65 years and ≥ 65 years, and the effect size was larger among those aged ≥ 65 years. These findings highlight the risk of incident dementia in those with a greater number of chronic pain sites is modified by age and may reflect that the early-onset of dementia (< 65 years) may develop much earlier in life among people experiencing a greater number of chronic pain sites. Therefore, this study provides new evidence that significant associations between chronic pain and incident dementia are not only observed in older adults as previously shown [17,18,19, 27] but in middle-aged adults. The latter finding provides further support that the number of chronic pain sites may be a risk factor for incident dementia as the younger group is less likely to be affected by reverse causality. Although the underlying mechanisms mediating pain-dementia are not clear, it might be plausible that chronic pain may not only directly compete with cognitive processing resources and divert attention [22], but also leads to neuroinflammation and neuropathological changes involved in cognition processing and dementia [21, 23, 24].

Our analyses also provide evidence for an association between the greater number of chronic pain sites and the risk of AD, but not vascular and frontotemporal subtypes of dementia. More specifically, there is a dose–response relationship between the increasing number of chronic pain sites and incident AD after controlling for a range of potential confounders. The underlying reason for this difference is unclear as evidence on other dementia subtypes other than AD is scarce, but it may be speculated that chronic pain-induced neuroinflammation may exert a different effect on the neuropathological changes responsible for cognition processing [21, 23, 24]. However, the discrepancy could also be explained by the small number of vascular and frontotemporal dementia cases which may reduce the statistical power to detect the differences, particularly for frontotemporal dementia.

This study has several strengths. The observational analyses had a prospective design with a very large sample size and long-term follow-up, enabling us to assess the incidence of dementia. In addition, we were able to explore the relationships between pain chronicity and number of chronic pain sites and different subtypes of dementia. Detailed information on all known confounders was available, allowing us to determine whether the number of chronic pain sites is associated with the excess risk of dementia. However, several limitations of this study need to be acknowledged. First, our findings may not be generalised to other ethnicities since individuals from the UK Biobank are primarily of White British origin and there is evidence suggesting ethnic differences in pain perception [39]. In addition, participants from the UK Biobank were relatively healthy and young [40], so the overall incident rate of dementia was relatively low, leading to the overall small effects of chronic pain on dementia. Second, the relatively short follow-up periods in some individuals make it hard to rule out the possibility that pain is a prodromal symptom; however, only 1.9% of participants had ≤ 5 years of follow-up, and consistent results were found between those with ≤ 5 years and > 5 years of follow-up. Third, dementia diagnoses were from the registry-based data without detailed neuropsychological assessments, which may lead to misclassification, particularly in subtypes of dementia; however, the overall accuracy of dementia diagnoses through registries has been reported to be reasonable [33]. Fourth, although we were able to consider a range of confounding factors, residual confounding (e.g. due to baseline cognitive status) may still have occurred given the nature of the observational study. In this study, we did not find a significant association between the number of chronic pain sites and incident all-cause dementia among participants with the fluid intelligence test, either before or after further adjustment for fluid intelligence score; therefore, the significant findings observed in the whole sample may need to be interpreted with caution. One possible explanation for the lack of association is that fluid intelligence was only measured in a subsample of the cohort, and only 93,995 participants had complete data on pain, dementia, and covariates. This reduced sample resulted in a smaller number of events in each pain group, particularly in those with pain in four sites (which had only 11 cases) and ‘all over the body’ (which had only three cases). However, we found similar results when we excluded those with ≤ 5 years of follow-up (Fig. 4), which may have helped to minimise the influence of baseline cognitive status. Moreover, previous research has shown that pain is longitudinally associated with cognitive decline [15, 16], suggesting that cognitive function may play a mediating role, rather than being a confounder, in the relationship between pain and dementia. Therefore, adjusting for cognitive status in the model may have resulted in over-adjustment and loss of statistical power. Lastly, the severity of pain was not measured in the UK Biobank, so we were unable to explore the association between pain severity and incident dementia. However, evidence suggests that widespread pain or pain in multiple sites is indicative of increased pain sensitisation in the central nervous system [41,42,43], which is positively correlated with pain severity [44]. It may be reasonable to postulate that increasing pain severity may predispose people to develop dementia as well. Furthermore, this is an observational study, so whether participants with chronic pain may have been taking pain management strategies is unknown. We, therefore, cannot determine whether pain would last in the future.

Conclusions

Greater number of chronic pain sites was associated with an increased risk of incident all-cause dementia and AD. The association was not fully explained by a range of potential confounders including sociodemographic, BMI, lifestyle, comorbidities, pain medications, psychological problems, and sleep factors. These findings suggest that chronic pain in multiple sites may represent an accessible marker to assess an individual’s dementia risk and identify ‘at-risk’ individuals at early stages.