Exercise types and depressive symptom severity among older adults: A cross-sectional machine learning analysis of predictive importance and heterogeneous associations
Figures
Abstract
Depressive symptoms are an important mental health concern in later life, but the relative relevance of specific exercise types and potential subgroup differences remain uncertain. This cross-sectional secondary analysis examined walking, aerobic exercise, resistance exercise, cycling, and swimming in relation to depressive symptom severity among 1,147 Chinese adults aged 60 years or older. The continuous Patient Health Questionnaire-9 (PHQ-9) total score was the primary outcome. Random forest models compared the unadjusted predictive importance of exercise types, causal forest models estimated covariate-adjusted associations, conventional multivariable regression was used as a benchmark, and exercise × moderator interactions were evaluated with false-discovery-rate correction. Walking was the most prevalent activity (87.79%) and showed the highest and most stable predictive importance. After adjustment for demographic, socioeconomic, health, functional, and lifestyle characteristics, walking was associated with a 1.05-point lower PHQ-9 score (95% CI: −1.64 to −0.46; FDR-adjusted q < 0.01), with a similar estimate from conventional linear regression. Estimates for aerobic exercise, resistance exercise, cycling, and swimming were also negative but were not statistically supported after correction for multiple comparisons. FDR-corrected interaction analyses indicated selected heterogeneity, particularly for walking across education, urban–rural residence, age, and body mass index, and for age across several exercise types. The main pattern was preserved in sensitivity analyses using alternative outcome coding, expanded adjustment, mobility restriction, and propensity-score trimming. Because exercise was self-reported and the data were cross-sectional, reverse causation and residual confounding cannot be excluded. Walking showed the clearest observational association with lower depressive symptom severity, while subgroup findings warrant confirmation in longitudinal or intervention studies.
Citation: Song G, Wang J (2026) Exercise types and depressive symptom severity among older adults: A cross-sectional machine learning analysis of predictive importance and heterogeneous associations. PLoS One 21(12): e0362970. https://doi.org/10.1371/journal.pone.0362970
Editor: Bala Munipalli, Mayo Clinic College of Medicine and Science, UNITED STATES OF AMERICA
Received: July 19, 2026; Accepted: November 2, 2026; Published: December 2, 2026
Copyright: © 2026 Song, Wang. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The data analyzed in this study were obtained from the 2021 Psychology and Behavior Investigation of Chinese Residents (PBICR) through the project’s formal data-access approval process. PBICR is a third-party database administered by the PBICR project team, and the authors are not authorized to redistribute or publicly deposit the individual-level data. Data-access decisions are made by the PBICR project team rather than by the authors, and the authors cannot grant access to the dataset. The project team announced the suspension of data-application channels on December 12, 2025 while data-security and access procedures were being reviewed. Researchers should contact the project team to confirm the current availability, eligibility requirements, and procedures for access; access remains subject to the project team’s approval and applicable restrictions. Data access contact: Tingyu Duan, Project Secretary, Psychology and Behavior Investigation of Chinese Residents. Project email: pbicr_zgjmxlyxwdc@163.com. Project website: https://www.x-mol.com/groups/pbicr Data access information: https://www.x-mol.com/groups/pbicr/shujukukaifang Announcement concerning data access: https://www.x-mol.com/groups/pbicr/news/106111 Author-generated code is supplied as S2 File (S2_File_Main_Analysis_Code.py) for the core analyses and S3 File (S3_File_Supplementary_Analysis_Code.py) for the ordinal, duration, and additional sensitivity analyses reported in S6–S8. Both files document required variable names, execution instructions, fixed random seeds where applicable, and model settings.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
Population ageing is reshaping health priorities worldwide. China is undergoing this transition particularly rapidly, with more than 300 million adults aged 60 years or older [1]. Depressive symptoms have become an important mental health challenge among older Chinese adults. Evidence from the China Health and Retirement Longitudinal Study (CHARLS) indicates that depressive symptoms remain highly prevalent among older adults in China, with substantial variation across time and population groups [2]. Depression in later life is associated with impaired functioning and poorer health-related quality of life [3]. Although pharmacological treatment remains an important component of depression care, adherence challenges and substantial treatment gaps can limit its population-level reach, particularly where access to mental health services is constrained [4,5]. Identifying safe, acceptable, and scalable non-pharmacological approaches is therefore an important priority for healthy ageing.
Physical exercise is widely regarded as one of the most promising behavioral strategies for supporting mental health among older adults. Systematic reviews indicate that physical activity interventions can reduce depressive symptoms and psychological distress while improving physical and cognitive functioning [6,7]. Comparative evidence further suggests that walking, aerobic exercise, resistance training, mind–body exercise, and multicomponent programmes may not produce identical mental health outcomes [8]. Clinical guidelines recognize physical activity or exercise within depression management but provide limited specificity about which exercise modalities are preferable for older adults [9,10]. A 2025 network meta-analysis similarly reported variation across exercise modalities, but several direct comparisons remained uncertain and the overall certainty of evidence varied [11]. Recent work on personalized exercise prescription has also emphasized that exercise type should be considered together with dose, health condition, risk, accessibility, and individual preference [12]. These uncertainties motivate examination of whether associations with depressive symptoms differ across exercise modalities and participant characteristics.
Exercise types differ in physical demands, skill requirements, social context, facility dependence, and safety constraints. Walking can often be incorporated into everyday life with little equipment, whereas resistance exercise may require guidance or suitable facilities. Swimming and cycling depend more strongly on environmental access, confidence, balance, and physical capacity, while aerobic activities vary in intensity and opportunities for social participation. Older adults also differ in age, socioeconomic resources, health status, residence, and family support. Evidence on human trainability indicates substantial variation in adaptive responses to exercise [13], and research among adults aged 60 years and older likewise suggests that responses differ across interventions and participant characteristics [14]. Heterogeneity analysis can therefore extend population-average estimates by examining systematic differences across social and individual contexts [15,16].
Important gaps nevertheless remain. Many observational studies collapse physical activity into a single exposure, which can obscure modality-specific patterns, while intervention studies may not fully reflect self-selected activity in community settings. Evidence is also limited on whether modality-specific associations vary across older adults with different resources and capacities. Conventional regression estimates specified average associations, whereas machine-learning methods can complement it by flexibly characterizing nonlinear prediction and heterogeneous associations. Predictive importance, covariate-adjusted association, and causal inference address distinct questions [17,18]. Accordingly, random-forest importance was used for relative prediction, whereas causal forests estimated covariate-adjusted average associations and interaction models assessed heterogeneity.
Using data from the 2021 Psychology and Behavior Investigation of Chinese Residents, this study examined walking, aerobic exercise, resistance exercise, cycling, and swimming in relation to depressive symptoms among adults aged 60 years and older. It addressed three questions: which exercise types contribute more strongly to the prediction of depressive symptoms; which types show the clearest covariate-adjusted associations with lower depressive symptom scores; and whether these associations vary across demographic, socioeconomic, and health-related characteristics. The aim was to characterize modality-specific patterns in this observational sample.
2 Materials and methods
2.1 Data source
Data were obtained through an approved research access procedure from the 2021 Psychology and Behavior Investigation of Chinese Residents (PBICR), a cross-sectional survey conducted from July to September 2021 across 120 cities in 31 provincial-level administrative regions in mainland China. Participants were recruited using a multistage quota-based approach aligned with census distributions by sex, age, and urban–rural residence. The survey yielded 11,031 valid questionnaires. Survey weights were unavailable; analyses were therefore unweighted and interpreted for the analytic sample rather than as nationally representative estimates.
The present study was restricted to respondents aged 60 years or older. Excluding 9,867 younger respondents left 1,164 age-eligible participants; 17 with missing depressive-symptom, exercise, or covariate data were excluded, yielding a final complete-case sample of 1,147. Participant selection and missingness are reported in S1 Table in S1 File, and included versus excluded participants are compared in S2 Table in S1 File. The analytic sample covered all 31 provincial-level administrative regions and all 120 original PBICR sampling cities.
2.2 Variables
2.2.1 Depressive symptoms.
Depressive symptoms were assessed using the nine-item Patient Health Questionnaire. Each item was scored from 0 to 3, producing a total score ranging from 0 to 27, with higher scores indicating greater depressive symptom severity [19]. The scale showed high internal consistency in the present sample (Cronbach’s α = 0.930).
The continuous PHQ-9 total score (0–27) was the primary outcome. Standard severity categories were used for descriptive reporting: minimal (0–4), mild (5–9), moderate (10–14), moderately severe (15–19), and severe (20–27). For random-forest classification and ordinal sensitivity analysis, the two highest categories were combined because of the small severe subgroup, yielding four ordered classes: 537 (46.8%), 392 (34.2%), 153 (13.3%), and 65 (5.7%) participants (S4 Table in S1 File).
2.2.2 Exercise types.
Exercise participation was assessed with the question, ‘During the past week, how much time did you spend on the following activities?’ Responses used five duration categories: none, < 30 minutes, 30–59 minutes/week, 1–3 hours/week, and >3 hours/week. Walking, swimming, and cycling were listed directly. Resistance exercise was operationalized from ‘fitness exercise’ (e.g., serial movements and dumbbell lifting) and treated as a resistance-related proxy; aerobic exercise corresponded to ‘other aerobic exercise’ (e.g., running and table tennis). The survey presented these as separate questionnaire items, and no additional mutually exclusive classification rule was documented. Available survey documentation did not report reliability or validity estimates for these distinct exercise items, for which internal-consistency measures were not applicable.
For primary analyses, each activity was coded as no participation versus any participation. Because respondents could report multiple activities, the five exercise exposures were not mutually exclusive. The original five-level duration categories were retained for sensitivity analysis. The other exercise types were treated as correlated co-exposures in extended adjustment models; total physical activity was not additionally adjusted because it partly incorporated the focal exercise exposures.
2.2.3 Covariates and heterogeneity characteristics.
Covariates were selected based on conceptual relevance as factors plausibly related to both exercise participation and depressive symptoms. The primary adjustment set included sex, age, urban–rural residence, education, monthly per capita income, marital status, body mass index (BMI), chronic disease burden, mobility limitation, self-rated health, smoking status, alcohol use, and living arrangement.
Age and BMI were entered as categorical variables in the primary analyses using the groups shown in Table 1; education and income were also entered categorically. Mobility limitation was coded as no difficulty versus any difficulty for primary adjustment, with the original severity categories retained for the mobility-restriction sensitivity analysis.
Extended sensitivity models additionally included medication use, diagnosed mood disorder, and the other four exercise types. Medication use indicated current use of at least one medication (excluding health supplements), and diagnosed mood disorder indicated any current mood-disorder diagnosis reported in the survey. Age, sex, residence, education, income, marital status, and BMI were examined as heterogeneity characteristics. Variable coding is summarized in Table 1.
2.3 Analysis methods
2.3.1 Variable importance measurement based on random forest.
A random forest classifier was used to compare the relative predictive importance of the five exercise types for the four-level depressive-symptom outcome [20]. The model included only the five exercise indicators and therefore quantified unadjusted predictive importance. It used 1,000 trees, Gini splitting, square-root feature sampling, a minimum leaf size of 5, bootstrap sampling, balanced subsample class weights, and a fixed random seed of 2026.
Importance was quantified using normalized mean decrease in impurity (MDI) and permutation importance, defined as the decrease in balanced accuracy after permuting an exercise variable. Model performance was evaluated from out-of-bag predictions. Repeated stratified five-fold cross-validation with 10 repeats provided validation-fold permutation estimates, and 1,000 participant-level bootstrap samples assessed ranking stability. For permutation stability, each bootstrap-trained model was evaluated on participants not selected in that bootstrap sample, using 30 permutations per variable; the 2.5th–97.5th percentile ranges summarize resampling stability.
Higher importance values indicate greater predictive contribution but not the direction or magnitude of an adjusted association. Pairwise dependence among the five exercise indicators was assessed using phi coefficients.
2.3.2 Covariate-adjusted association estimation using causal forest.
Separate causal-forest models were fitted for walking, aerobic exercise, resistance exercise, cycling, and swimming to estimate covariate-adjusted associations with depressive symptoms [21]. In each model, the focal exercise type was treated as the binary exposure, continuous PHQ-9 score as the outcome, and the primary covariate set described above was used for adjustment; the other four exercise types were additionally included in an extended sensitivity model. For each exercise type, the forest estimate was expressed as the sample-average covariate-adjusted difference in predicted PHQ-9 score between participants and non-participants, with negative values indicating lower predicted scores among participants.
Forest estimates were interpreted as covariate-adjusted associations rather than causal effects. Conventional multivariable linear regression using the same outcome and covariate set served as a benchmark, with city-clustered robust standard errors. For the five primary exercise comparisons, two-sided P values were adjusted using the Benjamini–Hochberg false discovery rate procedure, with q < 0.05 considered statistically supported.
2.3.3 Heterogeneity analysis.
Heterogeneity was evaluated using covariate-adjusted exercise × moderator interaction models in the same analytic sample and was interpreted as exploratory moderation. Seven moderators were examined: income, education, urban–rural residence, sex, age, marital status, and BMI. One exercise × moderator interaction was added at a time to linear regression models containing the exercise main effect and primary covariate set, with city-clustered robust standard errors. Income, education, age group, and BMI group were coded as ascending ordered categories for the interaction term, whereas residence, sex, and marital status were binary indicators. Income, education, age group, and BMI group retained categorical main effects in the adjusted models; ordered-moderator coefficients therefore represent linear trends across categories.
Because 35 interaction tests were performed across five exercise types and seven moderators, P values were adjusted using the Benjamini–Hochberg false discovery rate procedure, with q < 0.05 considered statistically supported.
2.3.4 Model validation and parameter settings.
Random-forest validation included out-of-bag accuracy, balanced accuracy, macro-F1, the confusion matrix, and class-specific sensitivity. Phi coefficients were used to assess pairwise dependence among exercise indicators, and importance estimates were interpreted together with model performance and resampling stability.
Association models used CausalForestDML with five-fold stratified cross-fitting and discrete treatment. The treatment nuisance model was unweighted logistic regression without class weighting or penalty; the outcome nuisance model was a 500-tree random-forest regressor (minimum leaf size 10), and the final forest used 400 trees, honest splitting, max_samples = 0.45, min_samples_leaf = 5, subforest_size = 4, inference = True, and random_state = 2026. Uncertainty was estimated using bootstrap-of-little-bags intervals. Binary covariates were entered as indicators, multi-level categorical variables were dummy encoded, and self-rated health retained its original continuous scale.
Propensity scores from the cross-fitted treatment models were examined for overlap for each exercise exposure. No trimming was applied in the primary analysis; trimming observations outside 0.05–0.95 was evaluated as a sensitivity analysis. City-clustered benchmark and interaction models used the original PBICR sampling-city identifier, whereas forest intervals did not incorporate city clustering. Analyses used Python 3.11 with scikit-learn 1.5.2, EconML 0.16.0, and statsmodels 0.14.4.
2.3.5 Sensitivity and benchmark analyses.
As an outcome-specification sensitivity analysis, causal forests were repeated using the four-level depressive-symptom score (0–3), while continuous PHQ-9 remained the primary outcome. Proportional-odds ordinal logistic regression using the same covariate set provided a conventional categorical-outcome benchmark (S6 Table in S1 File).
Additional analyses examined adjustment strategy, exposure coding, functional-health restriction, and propensity-score overlap. The extended model added the other four exercise types, medication use, and diagnosed mood disorder. The original five-level weekly-duration categories were analyzed as ordered predictors in covariate-adjusted linear models with continuous PHQ-9 (S7 Table in S1 File). The primary analysis was also repeated after excluding participants with moderate or worse mobility difficulty (n = 1,093) and after propensity-score trimming to 0.05–0.95 (S8 Table in S1 File). Benjamini–Hochberg FDR correction was applied within each five-exercise comparison family.
3 Results
3.1 Participant characteristics
The analytic sample comprised 1,147 adults aged 60 years or older (Table 2). The mean PHQ-9 score was 5.73 (SD = 4.96); 46.8% had minimal symptoms, 34.2% mild symptoms, 13.3% moderate symptoms, 5.0% moderately severe symptoms, and 0.7% severe symptoms. Walking participants had a lower mean PHQ-9 score than non-participants (5.21 vs 9.46). Selected characteristics by aerobic exercise, resistance exercise, cycling, and swimming participation are summarized in S3 Table in S1 File.
3.2 Exercise participation and predictive importance
Walking was the most prevalent activity (87.79%), followed by resistance exercise (33.83%), aerobic exercise (29.64%), cycling (27.64%), and swimming (16.39%) (Table 3). Walking ranked highest on both normalized mean decrease in impurity (MDI = 0.276, resampling range 0.245–0.309) and permutation importance (0.112, resampling range 0.086–0.137). It ranked first in 79.4% of bootstrap samples for MDI and 75.8% for permutation importance, whereas the ordering of aerobic and resistance exercise was less stable. With the four-level outcome (537, 392, 153, and 65 participants), OOB accuracy was 0.567, balanced accuracy was 0.469, and macro-F1 was 0.485; class-specific sensitivities were 0.726, 0.464, 0.379, and 0.308, respectively (S4 Table in S1 File). These metrics indicate modest classification performance, particularly for the more severe symptom categories, so the importance rankings were interpreted as relative predictive information rather than as evidence of strong classification accuracy.
3.3 Covariate-adjusted associations between exercise types and depressive symptoms
In the primary causal-forest models, walking showed the clearest inverse association with continuous PHQ-9 score (adjusted mean difference=−1.050, 95% CI −1.638 to −0.462; FDR q = 0.002) (Table 4). Propensity-score distributions showed broad but incomplete overlap across all five exercise types (Fig 1); proportions within 0.10–0.90 were 93.2% for walking, 95.4% for aerobic exercise, 98.0% for resistance exercise, 92.8% for cycling, and 90.2% for swimming. Aerobic exercise (−0.530, 95% CI −1.079 to 0.019; q = 0.097) and resistance exercise (−0.460, 95% CI −0.930 to 0.010; q = 0.097) had inverse point estimates but were not statistically supported after multiplicity correction. Estimates for cycling and swimming were closer to zero, and none of the four non-walking exercise estimates was statistically supported after FDR correction. A conventional multivariable linear-regression benchmark yielded a closely aligned pattern, with walking remaining the only exercise type supported after FDR correction (S5 Table in S1 File).
Propensity scores were estimated using cross-fitted logistic models. Red, non-participants; blue, participants. Participant/non-participant n: walking, 1,007/140; aerobic exercise, 340/807; resistance exercise, 388/759; cycling, 317/830; swimming, 188/959.
3.4 Heterogeneity in exercise–depressive symptom associations
After FDR correction across 35 interaction tests, evidence of heterogeneity was selective (Table 5; Fig 2). Walking showed negative interaction coefficients for educational attainment (βinteraction=−0.55; q = 0.001), urban residence (βinteraction=−0.78; q = 0.005), and BMI group (βinteraction=−0.41; q = 0.024), and a positive age-group interaction (βinteraction = 0.49; q = 0.005). Positive age-group interactions were also observed for resistance exercise (βinteraction = 0.57; q = 0.004), cycling (βinteraction = 0.76; q < 0.001), and swimming (βinteraction = 0.44; q = 0.010). Swimming showed a negative BMI-group interaction (βinteraction=−0.33; q = 0.038), whereas aerobic exercise showed a positive income interaction (βinteraction = 0.46; q = 0.005). Other interactions were not supported after FDR correction. These coefficients describe differences in adjusted associations and do not establish statistically supported inverse associations within every subgroup.
Cells show exercise × moderator coefficients (PHQ-9 points) from covariate-adjusted linear models with city-clustered robust SEs. Blue indicates more negative associations at higher/present moderator levels; red, the reverse. Ordered moderators increase across categories; binary present levels are urban, male, and married. *q < 0.05, **q < 0.01, ***q < 0.001; BH-FDR across 35 tests.
3.5 Sensitivity and benchmark analyses
Across alternative outcome and benchmark models, walking remained the only exercise type supported after FDR correction, including with the four-level depressive-symptom outcome (Table 6). The continuous and categorized outcomes represent different scales and estimands, so their coefficients are not directly comparable. Categorization also discards information; continuous PHQ-9 was therefore retained as the primary outcome. Proportional-odds ordinal logistic regression produced a similar pattern (OR=0.68, 95% CI 0.54–0.85; q = 0.004; S6 Table in S1 File). The walking estimate was similar after additional adjustment for the other exercise types, medication use, and diagnosed mood disorder (−0.980 PHQ-9 points, 95% CI −1.568 to −0.392), after excluding participants with moderate or worse mobility difficulty (−0.930, 95% CI −1.538 to −0.322), and after propensity-score trimming (−1.010, 95% CI −1.601 to −0.419). Analyses using the original five-level weekly-duration categories also showed the strongest inverse pattern for walking (S7 Table in S1 File). The reported exercise-specific estimates for expanded adjustment, mobility restriction, and propensity-score trimming are summarized in S8 Table in S1 File.
4 Discussion
4.1 Associations between exercise types and depressive symptoms
Walking was the most common exercise type, whereas participation in resistance exercise, aerobic exercise, cycling, and swimming was substantially lower. This pattern is consistent with evidence that feasibility and access shape physical activity participation in later life [22,23]. Walking can be incorporated into routine mobility with little equipment, whereas structured resistance exercise, swimming, cycling, and some aerobic activities may depend more strongly on facilities, safe environments, supervision, or specific physical capacities.
Walking combined the highest predictive importance with the clearest inverse adjusted association with depressive symptom severity. Its high participation and compatibility with daily routines may contribute to sustained participation in community settings. Outdoor and nature-based activities have been associated with better mental health [24], although PBICR did not assess exercise setting, social interaction, or environmental exposure. Reverse causation remains plausible because older adults with fewer depressive symptoms may have been more willing or physically able to walk or engage in exercise. The confidence intervals for the other exercise types included zero, so the present data did not provide statistical support for those associations. Prior intervention evidence nevertheless suggests that aerobic and resistance exercise may reduce depressive symptoms in older adults [25].
Potential pathways may differ across exercise modalities. Resistance exercise has been linked to improvements in physical function and metabolic health, while the broader physical activity literature identifies neuroplastic, inflammatory, self-efficacy, and social-support pathways relevant to depression [26–30]. Aquatic exercise may provide a lower-impact context for maintaining physical function and has been associated with mood and well-being, while cycling may support mobility, autonomy, and outdoor engagement [31–34]. These pathways remain plausible explanations rather than tested mediators.
In this sample, walking showed the clearest adjusted association; estimates for the other four exercise types were closer to zero and had confidence intervals that included zero, and none was supported after FDR correction. Exercise selection should continue to consider physical capacity, preferences, safety, and local opportunities [35].
4.2 Heterogeneity in adjusted exercise–depressive symptom associations
Interaction analyses indicated selective heterogeneity in adjusted exercise–depressive symptom associations. Walking showed supported interactions with education, urban–rural residence, age, and BMI, while the remaining exercise types had fewer supported modifiers. These same-sample interaction tests provide exploratory evidence of moderation rather than independent validation of forest-derived heterogeneity.
Socioeconomic patterns differed by exercise type. Walking showed more negative adjusted associations at higher educational levels and in urban areas, whereas the aerobic-exercise association became more positive with increasing income. The urban–rural pattern was most evident for walking. In urban settings, walking may be supported by parks, residential walking routes, and informal community groups while requiring little specialized equipment; by comparison, swimming, cycling, and structured resistance or aerobic activities may depend more heavily on facility availability, safe routes, transport access, or supervision [22,23,35]. PBICR did not directly measure these environmental features, so this interpretation remains contextual.
Age was the most consistent modifier across exercise types. The associations of walking, resistance exercise, cycling, and swimming with PHQ-9 scores became more positive across increasing age groups. Age-related changes in mobility, functional reserve, confidence, comorbidity, and safety considerations may influence both exercise selection and observed associations [36]. Sex and marital-status interactions were not supported after correction for multiple testing.
Higher BMI categories were associated with more negative walking and swimming coefficients after FDR correction. This pattern may reflect differences in functional needs, activity selection, or baseline health among older adults with greater weight-related burden. Lifestyle-intervention research in older adults with obesity supports the importance of exercise for physical function, while psychosocial outcomes are less consistently characterized [37].
These findings can also be situated within emerging digital and precision-health approaches to mental-health support. Mobile-health applications and conversational technologies have shown feasibility for supporting mental health and well-being in older adults [38], while recent reviews describe expanding roles for artificial intelligence and assistive technologies in mental-health assessment and intervention [39]. AI-supported exercise programmes have likewise been proposed for adapting activity recommendations to multimorbidity and functional capacity [40]. The subgroup patterns identified here may provide candidate features for future decision-support systems, subject to prospective and external validation.
4.3 Strengths and limitations
This study integrated predictive modeling, covariate-adjusted association analysis, and heterogeneity assessment across five exercise types. The use of continuous PHQ-9 scores, broader covariate adjustment, conventional regression benchmarks, sensitivity analyses, overlap assessment, and FDR correction strengthened the analytical rigor.
Several limitations should be considered. First, the cross-sectional design does not establish temporal or causal relationships, and residual confounding or reverse causation cannot be excluded. Second, exercise was self-reported and the questionnaire-defined activity categories may not fully capture differences in intensity, frequency, or specific training characteristics, which may introduce exposure misclassification. Third, cognitive status was not available in the dataset, and some potentially relevant social, behavioral, and environmental factors were not captured in sufficient detail. Complete-case analysis excluded 17 of 1,164 age-eligible participants, but selection bias cannot be entirely excluded. Finally, quota sampling and the absence of survey weights may limit population generalizability. Although regression and interaction models used city-clustered robust standard errors, the primary forest intervals did not incorporate city clustering. The heterogeneity findings should therefore be interpreted as exploratory and confirmed in longitudinal or intervention studies.
5 Conclusions
This study compared five exercise types across predictive relevance, covariate-adjusted associations, and subgroup heterogeneity in older adults. Walking was most prevalent, ranked highest in predictive importance, and showed the clearest adjusted inverse association with depressive symptom severity. Interaction analyses identified selected subgroup differences, particularly for walking and for age across several exercise types. Longitudinal and intervention studies are needed to establish causal and clinical relevance.
Supporting information
S3 File. Supplementary-analysis code for S6–S8.
https://doi.org/10.1371/journal.pone.0362970.s003
(PY)
Acknowledgments
The authors thank the PBICR research team and all survey participants for their contributions to the study.
References
- 1.
National Bureau of Statistics of China. Statistical communiqué of the People’s Republic of China on the 2025 national economic and social development. Beijing: National Bureau of Statistics of China; 2026. Available from: https://www.stats.gov.cn/sj/zxfb/202602/t20260228_1962662.html
- 2. Li K, Wang P, Wang L, Wang Z, Xu C, Zhao X, et al. Spatiotemporal evolution of the prevalence of depressive symptoms among older adults—China, 2013–2020. China CDC Wkly. 2025;7(21):732–6.
- 3. Kok RM, Reynolds CF 3rd. Management of depression in older adults: A review. JAMA. 2017;317(20):2114–22. pmid:28535241
- 4. Rossom RC, Shortreed S, Coleman KJ, Beck A, Waitzfelder BE, Stewart C, et al. Antidepressant adherence across diverse populations and healthcare settings. Depress Anxiety. 2016;33(8):765–74. pmid:27320786
- 5. Moitra M, Santomauro D, Collins PY, Vos T, Whiteford H, Saxena S, et al. The global gap in treatment coverage for major depressive disorder in 84 countries from 2000–2019: A systematic review and Bayesian meta-regression analysis. PLoS Med. 2022;19(2):e1003901. pmid:35167593
- 6. Singh B, Olds T, Curtis R, Dumuid D, Virgara R, Watson A, et al. Effectiveness of physical activity interventions for improving depression, anxiety and distress: An overview of systematic reviews. Br J Sports Med. 2023;57(18):1203–9. pmid:36796860
- 7. Gallardo-Gómez D, Del Pozo-Cruz J, Noetel M, Álvarez-Barbosa F, Alfonso-Rosa RM, Del Pozo Cruz B. Optimal dose and type of exercise to improve cognitive function in older adults: A systematic review and bayesian model-based network meta-analysis of RCTs. Ageing Res Rev. 2022;76:101591. pmid:35182742
- 8. Tian S, Liang Z, Tian M, Qiu F, Yu Y, Mou H, et al. Comparative efficacy of various exercise types and doses for depression in older adults: A systematic review of paired, network and dose-response meta-analyses. Age Ageing. 2024;53(10):afae211. pmid:39348911
- 9. Gelenberg AJ, Freeman MP, Markowitz JC, Rosenbaum JF, Thase ME, Trivedi MH. Practice guideline for the treatment of patients with major depressive disorder. Am J Psychiatry. 2010;167(Suppl 10):1–152.
- 10. Malhi GS, Bell E, Bassett D, Boyce P, Bryant R, Hazell P, et al. The 2020 Royal Australian and New Zealand College of Psychiatrists clinical practice guidelines for mood disorders. Aust N Z J Psychiatry. 2021;55(1):7–117. pmid:33353391
- 11. Huang K, Zhang G, Gains H, He R, Jiao Y, Jia Y, et al. Effectiveness of exercise-based interventions on depressive symptoms in older adults: A systematic review and network meta-analysis. J Am Med Dir Assoc. 2025;26(9):105583. pmid:40188850
- 12. Li D, Du J, Bao T, Zhang Y, Feng J, Liu X, et al. PEPRKD-depression: A knowledge database supporting evidence-based personalized exercise prescription recommendations in depression. Digit Health. 2026;12:20552076261456560. pmid:42238682
- 13. Marsh CE, Thomas HJ, Naylor LH, Scurrah KJ, Green DJ. Exploring human trainability: Design and rationale of Studies of Twin Responses to Understand Exercise as a Therapy (STRUETH) study. Contemp Clin Trials Commun. 2020;19:100584. pmid:32577581
- 14. Oliveira JS, Gilbert S, Pinheiro MB, Tiedemann A, Macedo LB, Maia L, et al. Effect of sport on health in people aged 60 years and older: A systematic review with meta-analysis. Br J Sports Med. 2023;57(4):230–6. pmid:36450439
- 15. Brand JE, Xie Y. Who benefits most from college? Evidence for negative selection in heterogeneous economic returns to higher education. Am Sociol Rev. 2010;75(2):273–302. pmid:20454549
- 16. Prosperi M, Guo Y, Sperrin M, Koopman J, Min J, He X. et al. Causal inference and counterfactual prediction in machine learning for actionable healthcare. Nat Mach Intell. 2020;2:369–75.
- 17. Dyer BP. The distinction between causal, predictive, and descriptive research-there is still room for improvement. J Clin Epidemiol. 2026;189:111960. pmid:40902863
- 18. Feuerriegel S, Frauen D, Melnychuk V, Schweisthal J, Hess K, Curth A, et al. Causal machine learning for predicting treatment outcomes. Nat Med. 2024;30(4):958–68. pmid:38641741
- 19. Kroenke K, Spitzer RL, Williams JBW. The PHQ-9: Validity of a brief depression severity measure. J Gen Intern Med. 2001;16(9):606–13. pmid:11556941
- 20. Breiman L. Random forests. Mach Learn. 2001;45(1):5–32.
- 21. Wager S, Athey S. Estimation and inference of heterogeneous treatment effects using random forests. J Am Stat Assoc. 2018;113(523):1228–42.
- 22. Sun F, Norman IJ, While AE. Physical activity in older people: A systematic review. BMC Public Health. 2013;13:449. pmid:23648225
- 23. Dai J. The behavioral characteristics of physical exercise in older adults in China. Chin J Gerontol. 2017;37(1):252–5.
- 24. Coventry PA, Brown JE, Pervin J, Brabyn S, Pateman R, Breedvelt J, et al. Nature-based outdoor activities for mental and physical health: Systematic review and meta-analysis. SSM Popul Health. 2021;16:100934. pmid:34646931
- 25. Mahmoudi A, Amirshaghaghi F, Aminzadeh R, Turkmani EM. Effect of aerobic, resistance, and combined exercise training on depressive symptoms, quality of life, and muscle strength in healthy older adults: A systematic review and meta-analysis of randomized controlled trials. Biol Res Nurs. 2022;24(4):541–59. pmid:35619569
- 26. Ihalainen JK, Inglis A, Mäkinen T, Newton RU, Kainulainen H, Kyröläinen H, et al. Strength training improves metabolic health markers in older individual regardless of training frequency. Front Physiol. 2019;10:32. pmid:30774600
- 27. Huang X, Zhao X, Li B, Cai Y, Zhang S, Wan Q, et al. Comparative efficacy of various exercise interventions on cognitive function in patients with mild cognitive impairment or dementia: A systematic review and network meta-analysis. J Sport Health Sci. 2022;11(2):212–23. pmid:34004389
- 28. Kandola A, Ashdown-Franks G, Hendrikse J, Sabiston CM, Stubbs B. Physical activity and depression: Towards understanding the antidepressant mechanisms of physical activity. Neurosci Biobehav Rev. 2019;107:525–39. pmid:31586447
- 29. Zhou YS, Meng FC, Cui Y, Xiong YL, Li XY, Meng FB, et al. Regular aerobic exercise attenuates pain and anxiety in mice by restoring serotonin-modulated synaptic plasticity in the anterior cingulate cortex. Med Sci Sports Exerc. 2022;54(4):566–81. pmid:34935710
- 30. Schuch FB, Dunn AL, Kanitz AC, Delevatti RS, Fleck MP. Moderators of response in exercise treatment for depression: A systematic review. J Affect Disord. 2016;195:40–9. pmid:26854964
- 31. Waller B, Ogonowska-Słodownik A, Vitor M, Rodionova K, Lambeck J, Heinonen A, et al. The effect of aquatic exercise on physical functioning in the older adult: A systematic review with meta-analysis. Age Ageing. 2016;45(5):593–601. pmid:27496935
- 32. Denton H, Aranda K. The wellbeing benefits of sea swimming: Is it time to revisit the sea cure?. Qual Res Sport Exerc Health. 2020;12(5):647–63.
- 33. Tang Z, Wang Y, Liu J, Liu Y. Effects of aquatic exercise on mood and anxiety symptoms: A systematic review and meta-analysis. Front Psychiatry. 2022;13:1051551. pmid:36465296
- 34. Leyland L-A, Spencer B, Beale N, Jones T, van Reekum CM. The effect of cycling on cognitive function and well-being in older adults. PLoS One. 2019;14(2):e0211779. pmid:30785893
- 35. Vella SA, Aidman E, Teychenne M, Smith JJ, Swann C, Rosenbaum S, et al. Optimising the effects of physical activity on mental health and wellbeing: A joint consensus statement from Sports Medicine Australia and the Australian Psychological Society. J Sci Med Sport. 2023;26(2):132–9. pmid:36737260
- 36. Valenzuela PL, Castillo-García A, Morales JS, Izquierdo M, Serra-Rexach JA, Santos-Lozano A, et al. Physical exercise in the oldest old. Compr Physiol. 2019;9(4):1281–304. pmid:31688965
- 37. Torbahn G, Schoene D, Galicia Ernst I, Schwingshackl L, Rücker G, Knüttel H, et al. EffectS of Lifestyle Interventions in Older PEople With Obesity (Effective SLOPE): A systematic review with network meta-analyses. Obes Rev. 2026;27(10):e70123. pmid:41933504
- 38. Chou YH, Lin C, Lee SH, Chang Chien YW, Cheng LC. Potential mobile health applications for improving the mental health of the elderly: A systematic review. Clin Interv Aging. 2023;18:1523–34. pmid:37727447
- 39. Abrar M, ur Rehman M, Khalid S, Ullah R. The intersection of artificial intelligence and assistive technologies in the diagnosis and intervention of mental health conditions. Artif Intell Rev. 2026;59:40.
- 40. Keast J, Simpson G, Smith L, Dambha-Miller H. Artificial intelligence-driven exercise programmes in personalising the management of multimorbidity. BJGP Open. 2025;9(3):BJGPO.2025.0094.