Background

The associations of sleep duration and cognitive function with subsequent adverse outcomes in elders have received increased research attention given that the world population is aging [1]. Sleeping problems and cognitive impairment are prevalent in the elders; in particular, about 50% of older adults have sleep problems [2] and more than 40% have cognitive impairment [3]. Sleeping is critical to maintain brain health because it can clear metabolic wastes from the brain [4] and support cognitive function and memory [5]. Sleep duration and cognitive loss individually lead to premature death in two meta‐analyses based on observational cohort studies [6, 7]. One of the meta-analysis identified 27 cohort studies and showed that long and short sleep durations were linked with increased risks of all-cause mortality in elders whereas long sleep duration was linked with cardiovascular mortality [6]. The other meta-analysis found 9 studies including 48,709 older individuals and reported that mild cognitive impairment was related to a 1.59-fold increase in mortality [7]. The interplay between sleep duration and cognitive function may confound their association with mortality; as such, the combined and independent effects of cognitive function and sleep duration on elders should be investigated for health monitoring.

A number of observational epidemiologic studies demonstrated the relationships of cognitive function and sleep duration with mortality from cross-sectional or cohort studies [8,9,10,11,12,13,14,15,16,17]. However, these studies did not consider simultaneously to explore their independent effects. In addition, limited data were reported on the dynamic associations of sleep duration and cognitive function with mortality [15,16,17]. Sleep duration and cognitive function undergo dynamic, time-varying changes throughout the lifespan of an individual [18, 19]. Previous studies chiefly focused on the adverse health effects of sleep duration and cognitive function measured at baseline [8,9,10,11, 15, 20]. Baseline measurement cannot determine whether the observed associations between exposures and outcomes are assessed by persistent exposure or whether decreased or increased exposure can change risk. After literature search, we found three recent studies conducted on elderly (aged ≥ 65 years) [15], postmenopausal women [16], and oldest-old (aged ≥ 80 years) [17] to examine the associations of time-varying sleep duration or cognitive function with mortality. One study including 10,768 persons aged ≥ 65 years found that sleep duration longer than 8 h per day, but not sleep duration shorter than 6 h per day, was associated with a 1.13-fold higher risk of all-cause mortality during a mean follow-up of 4.51 years. Another study consisting of 158,203 postmenopausal women aged 50–79 years was conducted to perform baseline and time-varying analyses; the results showed that sleep duration shorter than 5 h per day and longer than 9 per day were significantly associated with higher risk of total and cardiovascular disease (CVD) mortality [16]. The other study, which comprised 25,285 Chinese oldest-old adults aged ≥ 80 years, observed the persistent dose–response associations between cognitive impairment and mortality risk [17]. Thus far, longitudinal epidemiological investigations on time-varying cognitive function and sleep duration among elderly remain scarce [15,16,17]. The three cohort studies explored the impact of cognitive function or sleep duration without ruling out the confounding effects of the other factor. Furthermore, these studies are restricted to hospital sample, female gender, and special age groups in the oldest old. No study has evaluated the joint effect of time-varying sleep duration and cognitive function on death. Therefore, this study aims to assess the independent and combined associations of time-varying cognitive function and sleep duration with mortality during 12 years of follow up on community-dwelling elders.

Methods

Study design and subjects

The Taichung Community Health Study for Elders (TCHS-E) is a population-based prospective follow-up study carried on in 3,997 elderly aged 65 years and older and resided in North Area of Taichung, Taiwan in 2009. All elders of TCHS-E were identified from the population registry of Internal Affairs of Taichung City and invited to take part in by home visit, letter, and phone. There were a total of 2,750 eligible elders, and 1,347 of them were willing to participate, with an overall 49.0% response rate (2009). We excluded participants with missing information on sociodemographic factors (n = 42), lifestyle behavior (n = 9), history of disease (n = 356, including diabetes mellitus, hypertension, gout, hyperlipidemia, heart disease, arthritis, hyperuricemia, cancer, stroke, osteoporosis, cataract, sleep impairment, fall history, and taking sleeping pills), Mini-mental State Examination score (MMSE), frailty, or sleep duration (n = 28). Finally, 912 elderly participants were available for the analysis (Supplementary Fig. 1). They were followed up after 1, 10, and 12 years of baseline, resulting in 521 elders at wave 2 (2010), 218 elders at wave 3 (2018), and 97 elders in wave 4 data collection (2020) without considering those who were dead at subsequent years. All elders were required to undergo face-to-face interviews under a standardized questionnaire and check-up exams.

Measurements

Data were collected using a standard procedure with standardized instruments. The standardized questionnaire consists of socio-demographic variables, lifestyle behaviors, frailty status, disease history, and its components, sleep duration, and cognitive function.

Sociodemographic variables and lifestyle behaviors

Socio-demographic variables included gender, age, marital status and educational attainment. Lifestyle behavior included several variables, such as alcohol drinking, smoking habits, and leisure-time physical activity. Alcohol drinking was classified as never, current, and past. Those who self-reported they did not regularly drink wine, beer, or hard liquor were defined as never alcohol drinkers. Smoking was classified as never current, and past. Those who smoked < 100 cigarettes during their lifetime were never smokers; those who smoked at least 100 cigarettes but who did not currently smoke cigarettes were past smokers while who currently smoked as current smokers. Physical activity was classified as yes for those who exercised at least 30 min per week for at least 6 months. Weight (kilograms) was measured with an electronic medical scale (seca, Hamburg, Germany). Height (meters) was measured with a fixed stadiometer (seca). Body mass index (BMI) was derived as weight divided by height x height (kg/m2). Underweight was defined as BMI < 18.5, normal as BMI of 18.5–24.9 kg/m2, overweight as BMI of 25–29.9 kg/m2, and obesity as BMI > 30 kg/m2.

Covariate variables

Disease history and medication use

All disease history and medication use were binary (yes, no). Disease history variables included diabetes mellitus, hypertension, gout, hyperlipidemia, heart disease, arthritis, hyperuricemia, cancer, stroke, osteoporosis, cataract, sleep disturbance, and fall history. Medication use variables included hyperlipidemia medications, hypertension medications, anti-diabetes medications, cardiovascular medications, and sleeping pills.

Frailty status

Frailty was determined based on the standardized, and well-established phenotype proposed by Fried et al. [21]. It consists of five components, namely, weakness, slowness, shrinking, low physical activity, and poor endurance and energy. Weakness was determined by grip strength when the participants were in the lowest baseline quintile according to groups of BMI and gender [21]. Slowness was determined by the slowest quintile of the population’s walking time according to groups of standing height and gender [21]. Shrinking was determined by weight loss (no intention) greater than 3 kg during the past year. Low physical activity was determined by a summative kilocalories expended score per week deriving from each person’s report regarding time spent on each type of physical activity per session, and frequency of physical activity per week. Poor endurance and energy was determined by two self-reported items regarding exhaustion from the Center for Epidemiological Studies-Depression Scale [22]. Persons with two or more above components were defined as frail, those with one or two components as pre-frail, and those with no component as robust.

Cognitive function

Cognitive function was a time-varying variable, which was assessed by the MMSE questionnaire at baseline, first and second followed waves of data collection. The MMSE questionnaire was developed by Folstein et al. [23] for grading assessment of persons with cognitive impairment. It has been commonly used as a screen tool in epidemiological studies for cognitive disorders and cognitive monitoring in clinical trials. It contains items about place (maximum score of 5) and time (maximum score of 5) orientation with a total of 10 points, calculation (arithmetic such as serial sevens) and attention (maximum score of 5), recall (maximum score of 3), registration (repeating lists of words, maximum score of 3), and language use (naming a watch and a pencil), basic motor skills (maximum score of 1), and comprehension (maximum score of 8). The total score ranged from 0 to 30. The cutoff point of 27 is based on quartiles, i.e., based on statistical criterion. This cutoff point 27 has been used to define mild cognitive impairment in literature [24, 25].

Sleep duration

Sleep duration was a time-varying variable, which was assessed at baseline, first and second followed waves of data collection on the same day as cognitive function. The cutoff point of sleep duration is based on quartiles. An interviewer collected data about lifestyle behaviors including sleep duration through standardized questionnaire at each wave of data collection. The questionnaires were collected by in-person interview with standardized questionnaire and the standardization process can minimize measurement errors. Sleep duration was determined by the item “What are typical hours of sleep in a 24-h period, including day-time naps?” The time frame was set at a week before the date of interview. This type of data collection approach assumes the respondent can accurately average his/her behavior into a single estimate. Although there was no data about the validity of this question, the information of this question was collected under good quality approach.

Outcome ascertainment

The outcomes were all-cause mortality and expanded CVD mortality. Death information was ascertained through linkage with Health and Welfare Data Science Center database for cause of death data. The follow-up started with date of baseline and ended with the end of follow-up on December 31, 2021 or death. Deaths were grouped into all-cause and expanded CVD mortality (CVD: International Classification of Disease, Tenth Revision, Clinical Modification (ICD-10-CM) codes I00–I99, diabetes: ICD-10-CM codes E10– E14 and kidney diseases: ICD-10-CM N00–N29) [26].

Statistical analysis

Descriptive statistics for the baseline characteristics were presented as number (proportion) and assessed by Chi-squared test or Fisher’s exact test for categorical variables. Continuous factors were presented as means ± standard deviations (SDs) and assessed by two-sample t test or analysis of variance (ANOVA). Time-varying Cox proportional hazards regression analyses were employed to evaluate the longitudinal associations of sleep duration and cognitive function with mortality by considering time-varying covariance when an independent variable changes over time during the 12-year follow-up period (baseline, first and second followed waves). Hazard ratios (HRs) and 95% confidence intervals (CIs) were reported after multivariate adjustment [27]. The SAS codes followed the steps suggested by Thomas L [28]. The multivariate adjusted estimates of survival functions from the Cox models were applied for survival functions across groups of sleep duration and cognitive function. Tests for linear trend were performed by including sleep duration and MMSE quartiles as ordinal variables in the models. The dose‒response or non-linear relationship of sleep duration and MMSE to mortality was explored using restricted cubic spline plots based on multivariate Cox models.

Multivariate models were built for adjusting for the covariates by the following steps. In step 1, we built univariate models for sleep duration and cognitive function along with age, sex, and exercise program. In step 2, we built a multivariate model by simultaneously considering significant factors in the univariate models. In step 3, a multivariate model was additionally considered disease history and frailty status. All analyses were conducted with SAS version 9.4 (SAS, Cary, NC). A two-sided p-value < 0.05 was treated statistically significant.

Results

At the end of the 12-year study period, 912 sleep duration and cognitive function assessments were made (9,396 person-years), and 329 deaths were recorded, of which 102 were attributed to expanded CVD. At baseline, the mean age was 74.03 years [SD = 6.48], 52.30% were male, and the median follow-up time was 12.04 years (interquartile range [IQR] 9.24–12.19). Table 1 shows the sociodemographic and clinical characteristics according to survival status and comparison. Statistically significant differences were observed in sex, age, marital status, BMI, physical activity, disease history of heart disease, hypertension, diabetes, cancer, stroke, cataract, and fall, taking sleep pills, and frailty status and its components.

Table 1 The comparisons of baseline socio-demographic factors, lifestyle behaviors, disease history, frailty status, sleep duration and cognitive function according to death status in older adults (n = 912)

Table 2 shows the sociodemographic and clinical characteristics stratified by categories of sleep duration and MMSE. Compared with older persons with sleep duration of 7 h/day, those who had > 9 h/day of sleep were more likely to be older, men, and pursuing secondary or tertiary education, were less likely to have physical activity, and had high prevalence of diabetes, stroke, cataract, sleep impairment, taking sleeping pills, frailty status, low physical activity, poor endurance and energy, weakness, and slowness. Those with MMSE score < 27 were more likely to be older, female, and less educated but were less likely to be married and physical active, have a history of psychiatric symptoms, heart disease, cataract, fall, sleep impairment, taking sleeping pills, and have frailty status, low physical activity, slowness, and weakness.

Table 2 The comparisons of baseline socio-demographic factors, lifestyle behaviors, disease history and frailty status according to sleep duration and cognitive function in older adults (n = 912)

Table 3 presents the HRs of time-varying Cox regression for all-cause and expanded CVD mortality. Time-varying sleep duration and MMSE score were associated with a high risk of all-cause mortality (HR: 1.76, 95%CI: 1.25–2.48 for sleep duration > 9 h/day, p for trend = 0.006; 2.00, 1.43–2.81 for MMSE score < 27, p for trend < 0.001) and expanded CVD mortality (2.04, 1.12–3.69 for sleep duration > 9 h/day, p for trend = 0.005; and 2.49, 1.09–5.70 for MMSE score of 29, 2.77, 1.26–6.09 for MMSE score of 27–28, and 4.21, 1.93–9.18 for MMSE score ≤ 26, p for trend < 0.001) when only adjusted for age, sex, and exercise program. After controlling for sociodemographic factors and lifestyle behaviours, the magnitude of associations of time-varying sleep duration and MMSE score was attenuated but remained statistically significant for all-cause mortality (1.74, 1.23–2.47 for sleep duration > 9 h/day, p for trend = 0.01; and 1.97, 1.37–2.82 for MMSE score ≤ 26, p for trend < 0.001) and expanded CVD mortality (2.13, 1.17–3.90 for sleep duration > 9 h/day, p for trend = 0.005; and 2.43, 1.06–5.56 for MMSE score of 29, 2.51, 1.14–5.54 for MMSE score of 27–28, and 4.27, 1.91–9.57 for MMSE score ≤ 26, p for trend < 0.001). Finally, in the fully adjusted model, the relationships of time-varying sleep duration and MMSE score with all-cause mortality remained statistically significant (1.47, 95%CI: 1.02–2.12 for sleep duration > 9 h/day, p for trend = 0.10 and 1.81, 1.26–2.59 for MMSE score < 27, p for trend = 0.002). Meanwhile, time-varying MMSE score, but not sleep duration, were significantly and dose-dependently associated with expanded CVD mortality (2.91, 1.24–6.83 for MMSE score of 29, 2.69 1.20–6.05 for MMSE score of 27–28, 4.32, 1.92–9.74 for MMSE score < 27, p for trend < 0.001). In order to assess the robustness of the results, a sensitivity analysis was performed using the sleep duration and MMSE at baseline to predict mortality (shown in Supplementary Table 1). The results remain similar to those in Table 3 although the attenuation of HRs for MMSE and sleep duration was observed.

Table 3 Time-varying Cox regression analysis for sleep duration and MMSE on mortality in older adults (n = 912)

The adjusted estimates of 12-year all-cause and expanded CVD mortality rates were 32.48% and 11.76% for sleep duration < 7 (h/day), 36.61% and 14.39% for sleep duration of 7 (h/day), 34.89% and 14.65% for sleep duration of 7–8 (h/day), and 42.59% and 18.69% for sleep duration > 9 (h/day), respectively; moreover, the values were 27.86% and 8.81% for MMSE score of 30; 31.68% and 11.90% for MMSE score of 29; 36.21% and 15.36% for MMSE score of 27–28; and 46.58% and 19.67% for MMSE score < 27, respectively (Fig. 1). We fitted the restricted cubic spline models to show the non-linear relationship between sleep duration (Fig. 2A) and MMSE score (Fig. 2B) for all-cause and expanded CVD mortality, respectively.

Fig. 1
figure 1

Multivariate adjusted survival curves of death for (A) sleep duration and (B) MMSE score

Fig. 2
figure 2

Multivariable cubic spline plots of (A) sleep duration and (B) MMSE score

Figure 3 presents the joint associations of sleep duration and MMSE with the risk of all-cause and expanded CVD mortality. In the joint effect models, older persons with longer sleep duration (> 9 h/day) and lower MMSE score (< 27) had the highest risk of all-cause and expanded CVD mortality (2.78, 1.83–4.23; 4.39, 2.24–8.58, respectively) compared with those with sleep duration ≤ 9 h/day and high MMSE score (≥ 27) while individual long sleep duration (> 9 h/day) and low MMSE score did not affect all-cause and expanded CVD mortality. In addition, the interaction terms for sleep duration and MMSE were significant for both all-cause and expanded CVD mortality (p = 0.01 and p = 0.02, respectively).

Fig. 3
figure 3

Joint effect of sleep duration and MMSE on risk for all-cause and expanded CVD mortality. Adjusted for age, sex, exercising program, education, marital status, BMI, smoking, alcohol drinking, physical activity, hypertension, diabetes mellitus, heart disease, hyperlipidemia, gout, hyperuricemia, arthritis, osteoporosis, stroke, cataract, cancer, fall history, sleep impairment, taking sleeping pills and frailty

Discussion

This study demonstrates that time-varying sleep duration and cognitive function can independently predict mortality by ruling out the confounding effects of the other factor among community-dwelling elders in a 12-year follow-up period (2009–2020). Older people with long sleep duration (> 9 h/day) or the lowest MMSE quartile (< 27) had 47% and 81% higher risks of death, respectively; meanwhile, those who had MMSE scores of 29, 27–28, and > 27 had 2.91-fold, 2.69-fold, and 4.32-fold increases in the risk of expanded CVD mortality compared with older persons with MMSE score of 30. A significant dose-dependent relationship was found between time-varying MMSE and expanded CVD mortality but not between sleep duration and expanded CVD mortality. The joint effects of time-varying sleep duration and cognitive function were significantly linked with the risk of all-cause and expanded CVD mortality. These findings well support that time-varying sleep duration and MMSE score jointly influence death.

The joint association of dynamic changes in cognitive function and sleep duration over time with mortality was first reported in elders residing in community. Our study found 2.78- and 4.39-fold increases in the risk of all-cause and expanded CVD mortality, respectively, in elders with sleep duration greater than 9 h/day and MMSE score < 27. Previous studies that used time-varying analyses showed a dose–response relation between MMSE score and mortality [17], consistent with the present report. The findings regarding the relationships between sleep duration and mortality are conflicting. Our study found an elevated risk of mortality in elders with sleep duration longer than 9 h/day. A previous study showed a J-shaped relation between sleep duration and mortality [15]. Another study on postmenopausal women described the U-shaped relationships of sleep duration with mortality in time-varying analyses [16]. The discrepancy in the results could be attributed to two reasons. First, gender may modify the relationships between sleep duration and mortality, and the difference increased with follow-up time [29]. Therefore, the estimated relationships reported in postmenopausal women may not be true in the elderly population. Second, the distribution of sleep duration varied in these studies; as such, they may not have sufficient power to detect the relationships between sleep duration less than 7 h and mortality. However, these studies, including the present work, found that sleep duration longer than 9 h was linked with mortality [15, 16].

This line of research question is biologically plausible and can be supported by several biological mechanisms. The autonomic nervous system may play a crucial role in the human body and controls many important physiological functions, including sleep initiation, maintenance, and disruption [30]. Sleep problems, such as long or short duration, and sleep disorders, including sleep apnea, insomnia, and a decrease in sleep quality resulting from nap during day time, are associated with a series of adverse cognitive and health outcomes, which may be explained by the outcomes of autonomic dysfunction due to sleep-associated alterations [31, 32]. Sleep disturbances may be associated with autonomic dysfunction [33] and metabolic disorders, resulting in obesity [34], hypertension [35], and insulin resistance [35]. Insulin in the brain plays a modulatory role for learning and memory [36]. Animal and clinical studies indicate that insulin uptake from blood into the brain is crucial for cognition through neuronal signaling [37,38,39,40]. Brain insulin resistance may cause cognitive impairment and cerebrovascular lesions [37, 38]. This impairment process is associated with the misfolding and extracellular aggregation of amyloid-β (Aβ) peptides [41] and hyperphosphorylated tau [42] because of the inadequate function of the system to clear these toxic substances in the brain. The outcomes of sleep disturbances include the following: disorders in endocrine [43], impairment of immune function [43], oxidative stress [44], increase in inflammatory reactions [45], and endothelial dysfunction [44, 46], and impaired physiology/diseases [47,48,49], including obesity, hypertension, diabetes mellitus, stroke, and depression. These phenomena may cause adverse outcomes, such as white matter hyperintensity[50], cerebrovascular abnormality [51], cardiovascular death [52], and total death [53].

The major strengths of our study include the following: a longitudinal cohort targeting community-dwelling elders with more than 12 years of follow up, standardized protocols and instruments for subject recruitment and data collection, and controlling for a large umber of potential confounding variables, such as educational attainment, sleep impairment, taking sleeping pills, frailty status, etc. In addition, this study used time-varying sleep duration and MMSE scores in the follow-up period and accurately assessed the associations by reducing misclassification in sleep duration and MMSE scores to a large extent. Nevertheless, this study has the following limitations. First, a previous study pointed out short sleep duration was linked with an increased risk of all-cause mortality among elderly [6]. However, our sample size is not large enough or the outcome events in short sleep duration are few to detect significant findings. Second, sleep duration data are derived from self-reports, which might lead to measurement error. By contrast, studies found that self-report sleep was well-correlated with objective sleep measurement, such as wrist actigraphy [54, 55]. Third, although adjustment was conducted for many confounders, the influence of unrecognized and residual confounding factors may exist because our study is observational. Fourth, the attrition rate is high because it is difficult to follow up a cohort of elders for more than 12-year period. Thus, only about 30% of baseline older adults had three measurements (baseline, first and second followed-waves) over a 12-year period. Fifth, in order to assess the potential selection bias arising from the differences between those who had been excluded and included, we made comparisons in baseline characteristics between them (shown in Supplementary Table 2). Those who were excluded tended to be female gender, older, with a lower educational level, non-married, obese, with a lower level of physical activity, and to have a higher prevalence of hypertension, diabetes, heart disease, gout, hyperuricemia, stroke, cataract, fall history, and frailty, but to have a lower prevalence of cancer compared with those who were included. If there exists an association between cognitive function and mortality, the present study would underestimate the association between cognitive function and mortality because these excluded persons were more likely to have cognitive impairment. The underestimation of effect results in the effect toward the null, a lesser threat to validity. Last, because the measurement of sleep duration was determined by the item “What are typical hours of sleep in a 24-h period, including day-time naps?” We didn’t have a question separately asking about day-time naps information. Thus, we cannot explore the association between day-time naps and cognitive function and mortality.

Conclusion

Among older individuals, time-varying sleep duration and MMSE score are linked with increased risks of all-cause mortality, while time-varying MMSE score is associated with increased risks of expanded CVD mortality. Our study’s findings suggest time-varying sleep duration and MMSE score could be used as predictors of long-term death risk. As such, they should be incorporated into interventions for healthy sleep habits to improve survival and reduce immature mortality.