Cognitive impairment and short sleep duration were associated with headache in Chinese middle-aged and elderly adults, with associations varying by sex, and a significant interaction observed between sex and sleep duration.
Key Findings
Results
The overall prevalence of headache in the study population was 18.76%, with a substantially higher rate in females than in males.
Overall headache prevalence was 18.76% across 13,117 participants.
Female headache prevalence was 25.56% compared to 12.40% in males.
Data were drawn from the 2020 wave of the China Health and Retirement Longitudinal Study (CHARLS).
The sample included middle-aged and elderly Chinese adults.
Results
Poor cognitive ability was associated with significantly increased odds of headache compared to excellent cognitive ability.
OR = 1.352 (95% CI: 1.162–1.574) for poor versus excellent cognitive ability.
Association was identified using multivariable logistic regression.
No significant interaction was found between sex and cognitive ability (P = 0.695).
RCS analysis revealed a nonlinear, inverted U-shaped association between cognitive ability and headache in the overall population.
Results
Both moderate and long sleep durations were associated with reduced odds of headache compared to short sleep duration (less than 6 hours).
Moderate sleep duration (6–8 hours) was associated with OR = 0.569 compared to short sleep duration.
Long sleep duration (≥8 hours) was associated with OR = 0.528 compared to short sleep duration.
A significant interaction was observed between sex and sleep duration (P = 0.036).
RCS analysis revealed a U-shaped association between sleep duration and headache in the overall population.
Results
Sex-stratified analyses showed approximately linear associations in males but distinct nonlinear patterns in females for both cognitive ability and sleep duration.
In males, associations between cognitive ability and headache, and between sleep duration and headache, were approximately linear.
In females, both associations showed distinct nonlinear patterns.
The interaction between sex and sleep duration was statistically significant (P = 0.036).
The interaction between sex and cognitive ability was not statistically significant (P = 0.695).
Methods
Nonlinear relationships and threshold effects between sleep duration, cognitive ability, and headache were identified using restricted cubic spline models and two-stage linear regression.
Restricted cubic spline (RCS) models were used to examine nonlinear relationships.
Two-stage linear regression was used to examine threshold effects.
The overall population showed an inverted U-shaped curve for cognitive ability and a U-shaped curve for sleep duration in relation to headache.
These analyses were applied to 13,117 cross-sectional participants from CHARLS 2020.
What This Means
This research suggests that among middle-aged and older adults in China, both poorer thinking and memory abilities and sleeping less than 6 hours per night are linked to a higher likelihood of experiencing headaches. The study analyzed data from over 13,000 people and found that headaches were nearly twice as common in women (about 1 in 4) as in men (about 1 in 8). People with poor cognitive function had about 35% higher odds of headache compared to those with excellent cognitive function, and people who slept a moderate or longer amount (6 or more hours) had roughly half the odds of headache compared to short sleepers.
The relationship between these factors and headaches was not always simple and straight-line. For the overall group, cognitive ability showed an inverted U-shaped relationship with headache risk, and sleep duration showed a U-shaped relationship, meaning both extremes of sleep (too little or very long) were associated with higher headache risk. Importantly, these patterns differed between men and women: men showed more straightforward linear patterns, while women showed more complex nonlinear patterns. Sleep duration also interacted significantly with sex in relation to headache risk.
This research suggests that sleep habits and cognitive health may both be relevant factors in understanding why some people experience headaches more than others, particularly in older populations. The findings also highlight that the same factors may affect men and women differently, which could be important for how headache prevention and management strategies are developed. Because this was a cross-sectional study (a snapshot in time), it cannot confirm whether poor cognition or poor sleep directly cause headaches, but it does show these factors are meaningfully associated.
Zhang M, Zhao E, Sun G. (2026). Association of cognitive ability and sleep duration with headache : insights from a Chinese middle-aged and elderly population.. BMC public health. https://doi.org/10.1186/s12889-025-26122-5