July 06, 2026
Depression screening from large-scale behavioral data is challenged by fragmented circadian indicators, limited interpretability, and the lack of intervention-oriented analysis. Existing approaches typically analyze sleep, activity, and social behaviors in isolation, failing to capture their joint circadian structure. To address this limitation, we first propose the Circadian Rhythm Score (CRS), a composite index that compresses multi-domain daily behaviors into a unified representation of circadian rhythm. CRS is constructed to maximize discriminative power for depression screening while preserving behavioral semantics through non-negativity constraints. Empirical results demonstrate near-lossless compression, where a single CRS retains almost the full predictive capability compared with multiple raw behavioral indicators. Building upon CRS, we develop an interpretable depression screening framework based on gradient-boosted trees and SHAP analysis, revealing nonlinear and saturation-like associations between circadian rhythm and depression risk. Beyond risk prediction, we further integrate interaction modeling and counterfactual regression to estimate heterogeneous and dose-dependent behavioral effects, enabling intervention-oriented reasoning under different circadian contexts. Experiments on the China Health and Retirement Longitudinal Study (CHARLS, n=15,233), demonstrate robust screening performance (ROC-AUC=0.825) and identify actionable behavioral thresholds, including a minimum effective exercise dose of approximately 300 MET-min/week and an optimal restorative nap duration of approximately 65 minutes for sleep-deprived individuals. By bridging supervised representation learning and interpretable modeling, this work provides a scalable framework for depression screening and intervention-aware healthcare data mining.
<ccs2012> <concept> <concept_id>10010405.10010444.10010449</concept_id> <concept_desc>Applied computing Health informatics</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10010147.10010341.10010342.10010343</concept_id> <concept_desc>Computing methodologies Modeling methodologies</concept_desc> <concept_significance>500</concept_significance> </concept> </ccs2012>
Challenges: Depression is a prevalent mental disorder characterized by persistent low mood and constitutes a major and growing global health burden, particularly among older adults [1]. The 2019 Global Burden of Disease study ranked depression as the second leading cause of years lived with disability worldwide [2]. Depression is strongly associated with reduced quality of life, functional impairment [3], increased mortality [4], and elevated risk of suicidal behavior [5]. In the context of rapid population aging, depression is projected to become the leading contributor to global disease burden by 2030 [6]. Despite extensive clinical efforts, conventional treatments—primarily pharmacotherapy and psychotherapy—often produce modest effect sizes, suggesting a ceiling in therapeutic efficacy [7]. Adverse medication effects and poor treatment adherence have further motivated interest in alternative and complementary interventions [8]. These therapeutic challenges are compounded by systemic barriers, including low rates of early detection and limited access to evidence-based mental healthcare [9]. Consequently, the early screening, and effective management of late-life depression remain urgent priorities for global public health [10].
Motivation: Depression is characterized by impaired neuroplasticity and structural abnormalities in key brain regions, including the hippocampus and prefrontal cortex [11]–[13]. Growing evidence indicates that circadian rhythm disruption—reflecting misalignment of the endogenous biological clock—is not merely a secondary manifestation but a core mechanism contributing to depressive pathogenesis [14], [15], a view supported by our prior studies in animal models demonstrating that circadian misalignment impairs hippocampal and prefrontal function and induces depressive-like behaviors [16]–[18]. Sleep and circadian rhythms are tightly coupled [19], and chronic sleep disturbances show a bidirectional, self-reinforcing relationship with depression [20]–[22], with consistent associations reported for sleep duration and regularity [23], [24]. This interplay extends to daytime napping, which exhibits heterogeneous and often bidirectional associations with depressive symptoms, particularly in older adults [25], [26]. Physical activity further modulates circadian function and mood regulation [27], with exercise demonstrating antidepressant effects and partial restoration of neuroplasticity in major depressive disorder [28], [29]. Collectively, sleep, napping, and physical activity shape the circadian rest–activity rhythm (RAR), a behavioral manifestation of circadian health that is strongly associated with depression risk [25], [30], [31]. Moreover, prior research suggests that jointly addressing cross-domain circadian behaviors may outperform isolated interventions [32], while large-scale survey data are typically self-reported and heterogeneous [33], underscoring the need for a unified circadian representation. Motivated by this evidence, we develop a machine-learning–oriented CRS that integrates sleep, napping, social activity, and physical activity into a unified representation for depression screening and intervention analysis.
Research Gaps: Although machine learning has been increasingly applied to depression research [34], several critical gaps remain:
Lack of an integrated representation for circadian rhythm quantification. Single-domain features are insufficient to capture systemic circadian risk. Existing studies typically examine sleep or physical activity in isolation, lacking an integrated score that quantifies cross-domain circadian rhythm. This limitation is notable given that circadian regulation spans sleep, social engagement, and physical activity [35]–[37], all of which have been independently linked to depressive symptoms across populations [23], [38], [39].
Limited interpretability and actionable insight. While modern machine learning models improve predictive accuracy, they often operate as black boxes. For clinical decision support, it is essential not only to identify influential risk factors (e.g., insufficient sleep) but also to characterize interpretable and actionable thresholds that can guide behavioral recommendations.
Emphasis on correlation over intervention. Most existing machine learning models focus on learning input–output associations and are therefore unable to address counterfactual or intervention-oriented questions (e.g., How much would depression risk decrease with increased exercise?). As a result, these models struggle to transition from risk prediction tools to decision support systems capable of informing personalized intervention strategies.
Our Contributions: To address the above research gaps, we design an analytical framework centered on CRS that enables interpretable, predictive, and intervention-oriented depression screening. The proposed framework identifies CRS as the most influential predictor for depression discrimination and demonstrates that CRS alone achieves strong screening performance, attaining an AUC of up to 0.83 in the 70–79 age group. Beyond risk prediction, the framework integrates causal inference to derive actionable intervention insights, some interesting conclusions like a protective sleep duration window of \(\sim\)6 hours and a supported minimum effective exercise dose of approximately 300 MET-min/week. This work makes the summarized key contributions:
We propose the CRS, a supervised and interpretable composite index that integrates heterogeneous daily behaviors into a compact, task-aligned representation of circadian robustness. Unlike prior single-domain or heuristic measures, CRS is constructed by optimizing screening performance while preserving behavioral semantics.
We demonstrate that CRS achieves near-lossless compression of rich circadian-related features, retaining most discriminative power of the full behavioral set and exhibiting strong standalone screening performance across demographic subgroups. This enables simplified yet effective depression risk assessment at population scale.
Building upon CRS-based screening, we integrate interpretable machine learning and counterfactual regression model to analyze heterogeneous and dose-dependent associations of modifiable behaviors under different circadian contexts. This framework supports principled exploration of who benefits, under what conditions, and within what dosage ranges, bridging depression screening with actionable, testable intervention hypotheses.
Depression and Circadian Rhythms. Depression is a leading cause of global disability [2], with growing evidence implicating circadian rhythm disruption as a core pathophysiological mechanism rather than merely a secondary symptom [37]. Disturbances in the sleep-wake cycle, such as insomnia, have been identified as crucial predictors of depression onset [20]. Beyond sleep duration, daytime napping exhibits complex, bidirectional associations with depressive symptoms, particularly in older adults [40]. Similarly, physical activity serves as a critical regulator of biological rhythms, with meta-analyses confirming its antidepressant effects [41]. While prior work often examines these behaviors in isolation [23], recent approaches advocate for integrated RAR markers to capture systemic circadian health [25]. However, traditional RAR measures often require longitudinal actigraphy, limiting their applicability in large-scale epidemiological screenings [31].
Machine Learning and Causal Intervention. To translate circadian-behavioral insights into scalable population screening, machine learning models have been increasingly applied to large-scale health surveys such as CHARLS [42]. Tree-based methods often outperform traditional linear models on tabular health data due to their ability to capture complex nonlinear relationships [43]. Despite their predictive success, many existing approaches remain largely black-box, limiting their utility for clinical interpretation and decision support [44]. More importantly, prediction alone do not reveal whether modifying a behavior would lead to improved mental health outcomes [10]. To bridge this gap, To bridge this gap, recent studies have incorporated Shapley-value explanations for model interpretability [45] and heterogeneous treatment effect estimation for counterfactual reasoning [46]. Nevertheless, existing frameworks rarely combine interpretable causal analysis with a unified circadian indicator, limiting their ability to generate actionable and personalized recommendations for depression prevention.
We propose a circadian rhythm score for depression screening and intervention-oriented analysis, centered on a compact composite indicator termed CRS. The framework consists of three main components: (1) Supervised construction of CRS from multiple behavioral factors; (2) Depression risk screening using a tree-based model with post-hoc interpretability; and (3) Counterfactual analysis to explore dose-dependent behavioral effects for actionable guidance. An overview of the framework is shown in Figure 2.
The study population was derived from the 2018 wave of the China Health and Retirement Longitudinal Study (CHARLS) [33], a nationally representative survey of middle-aged and older adults in China. Following data preprocessing and standard exclusion procedures, including the removal of participants with missing key variables, the final analytic cohort consisted of 15,233 individuals aged 45 years and above.
Problem Formulation. The depression screening task is formulated as a binary classification problem. We aim to learn a mapping function \(f: X \to \hat{y}\) that predicts the probability of elevated depressive risk. The input component \(X\) consists of three aspects: \[\label{ref:xcrs} X = \{ \mathbf{x}_{\text{CRS}}, \mathbf{x}_{\text{Rhythm}}, \mathbf{x}_{\text{Covariates}} \}\tag{1}\] where \(\mathbf{x}_{\text{CRS}}\) is the proposed composite score CRS, \(\mathbf{x}_{\text{Rhythm}}\) denotes the raw circadian behaviors (e.g., sleep duration, nap frequency), and \(\mathbf{x}_{\text{Covariates}}\) represents socio-demographic and health-related factors. Detailed variable description is displayed in Table 1. The screening model is then represented as: \[\hat{y} = \operatorname{LightGBM}(X)\]
The ground truth label \(y\) is derived according to the CES-D-10 scale [47] (see Appendix 6.1.2) , where participants with a total score \(\ge 10\) are labeled as having elevated depressive risk (i.e., \(y=1\)), consistent with established epidemiological cut-offs [48].
| Variable | Definition |
|---|---|
| Circadian rhythm–related variables | |
| sleep_quality_score (\(x_{i,1}\)) | Ordinal variable: 1 = very poor, 2 = poor, 3 = fair, 4 = good |
| night_sleep_duration_hr (\(x_{i,2}\)) | Continuous variable (hours per night) |
| nap_duration_min (\(x_{i,3}\)) | Continuous variable (minutes per day) |
| Primary_activity_purpose (\(x_{i,4}\)) | Categorical variable: 0 = no valid activity, 1 = job-related, 2 = entertainment, 3 = exercise, 4 = other |
| weighted_social_score | Used for \(x_{i,4}\) when available. Activity-based weighted score: high benefit = 3, moderate benefit = 2, low benefit = 1, no benefit = 0; summed across reported activities |
| social_activity_count | Used when weighted_social_score is unavailable. Count variable: number of reported social activities |
| Activity_regularity | Continuous variable (days per week), defined as \(\max(\text{da052\_1}, \text{da052\_2}, \text{da052\_3})\) |
| total_activity_level_met (\(x_{i,5}\)) | Continuous variable (MET (Metabolic Equivalent of Task)-hours per week), intensity-weighted sum with weights 8.0 (vigorous), 4.0 (moderate), and 3.3 (light) |
| Activity_intensity | Categorical variable: 0 = inactive (all da052_x = 0); 1 = light-dominant (da052_3 \(>\) 0); 2 = moderate-dominant (da052_2 \(>\) 0); 3 = vigorous-dominant (da052_1 \(>\) 0) |
| Socio-demographic-related variables | |
| Gender | 1 = male, 2 = female |
| Age | Continuous variable (years) |
| Residence | 1 = urban, 2 = rural |
| Education | Years of schooling coded as: 1 = illiterate; 3 = incomplete primary school; 6 = primary school; 9 = middle school; 12 = high school/vocational school; 15 = junior college/associate degree; 16 = four-year college/bachelor’s degree; 19 = master’s degree; 22 = doctoral degree (Ph.D.) |
| Marital_status | 1 = partnered (married/cohabiting), 2 = single (never married/divorced/widowed) |
| Work_life_status_code | 0 = missing; 1 = working (satisfied); 2 = working (dissatisfied); 3 = working (satisfaction unknown); 4 = recently retired (\(\le\) 5 years); 5 = mid-term retired (5–10 years); 6 = long-term retired (\(>\) 10 years); 7 = retired (duration unknown); 8 = never worked; 9 = unemployed/other |
| Health behavior-related variables | |
| Smoking_intensity | Continuous variable (cigarettes per day) |
| Smoking_status | 0 = never smoker, 1 = former smoker, 2 = current smoker |
| Total_alcohol_g_per_month | Continuous variable (grams per month) |
| Drink_status | 0 = never drinker, 1 = former drinker, 2 = current drinker |
| Health status-related variables | |
| Chronic_diseasesa | Continuous variable (count of diagnosed conditions) |
| Pain | Binary variable: 0 = no pain, 1 = pain reported |
3pt
Circadian regulation manifests through coordinated daily behaviors, including sleep, napping, physical activity, and social engagement. Existing studies typically model these behaviors independently, which fragments circadian information and complicates interpretation. We address this limitation by constructing a single composite index CRS (i.e., the \(\mathbf{x}_{\text{CRS}}\) in Formula 1 ) that summarizes overall circadian rhythm while remaining interpretable and predictive.
For each individual, we extract five raw circadian-related components \(\mathbf{x} = \big(x_{i,1}, \ldots, x_{i,5}\big)^{\top}\) and standardize it as \(\mathbf{z}\) (detailed in Appendix 6.2.1) reflecting sleep quality (\(z_{i,\mathrm{SleepQuality}}\)), nocturnal sleep duration (\(z_{i,\mathrm{NightSleep}}\)), daytime napping (\(z_{i,\mathrm{Nap}}\)), social activity (\(z_{i,\mathrm{SocialAct}}\)), and physical activity (\(z_{i,\mathrm{PhyAct}}\)). Notably, to capture the distinct physiological impacts of nap duration, daytime napping (\(z_{i,\mathrm{Nap}}\)) is processed via discrete encoding (rewarding short power naps while penalizing excessive duration), whereas other components like night sleep duration are treated as continuous variables. The components are aligned such that higher values contribute positively to CRS.
The \(\mathbf{x}_{\text{CRS}}^i\) for individual \(i\) is computed as the weighted sum of normalized components \(\mathbf{z}_i\), where weights are constrained to be non-negative: \[\label{xcrs} \mathbf{x}_{\text{CRS}}^i = \mathbf{w}^{\top} \mathbf{z}_i, \quad \mathbf{w} \ge 0,\tag{2}\] where \(\mathbf{x}_{\text{CRS}}^i\) and \(\mathbf{z}_i\) denote the CRS and standardized component vector for individual \(i\), respectively, and \(\mathbf{w}\) is the shared weight vector achieved via supervised learning.
Rather than assigning subjective or uniform weights, we determine the optimal weight vector \(\mathbf{w^*}\) through a supervised learning approach using LightGBM to maximize depression screening performance. Specifically, we conducted a randomized search over \(\mathbf{w}\) with 100,000 trials, sampling each component independently from a uniform distribution \(\mathcal{U}(0,1)\) subject to the non-negativity constraint \(\mathbf{w} \ge 0\).
For each candidate \(\mathbf{w}\), we computed the composite score \(\mathbf{x}_{\text{CRS}}\) using Eq. (2 ). To optimize the ROC-AUC via LightGBM, \(-\mathbf{x}_{\text{CRS}}\) is taken as the input with the maximization of the screening score. The best-performing weight vector was then \(L_1\)-normalized such that \(\|\mathbf{w^*}\|_1=1\) and fixed for all subsequent analyses. This procedure is computationally acceptable, requiring approximately 5 minutes. The resulting optimal weights are: \[\mathbf{w^*} = (0.6874,\; 0.1203,\; 0.0091,\; 0.1233,\; 0.0599).\] Consequently, the composite score \(\mathbf{x}_{\text{CRS}}^i\) for the individual \(i\) is defined as: \[\begin{align} \mathbf{x}_{\text{CRS}}^i &= 0.6874\, z_{i,\mathrm{SleepQuality}} + 0.1203\, z_{i,\mathrm{NightSleep}}\\ &\quad + 0.0091\, z_{i,\mathrm{Nap}} + 0.1233\, z_{i,\mathrm{SocialAct}} \\ &\quad + 0.0599\, z_{i,\mathrm{PhyAct}}. \end{align}\] To achieve interpretability, we next apply SHAP (SHapley Additive exPlanations) value to quantify feature contributions and identify nonlinear risk patterns. This allows us to examine how circadian rhythm characteristics influence depression risk beyond black-box prediction.
Prediction alone does not inform how modifiable behaviors might reduce depression risk. To address this concern, we complement screening with counterfactual and heterogeneous effect analyses focusing on modifiable circadian-related behaviors. Specifically, we investigate:
Intervention Analysis 1: whether intentional exercise1 yields greater mental health benefits than occupational physical labor at comparable intensity levels; and
Intervention Analysis 2: whether daytime napping compensates for insufficient nocturnal sleep.
To determine whether the mental health returns of physical activity depend on its purpose, we build the logistic regression model as
\[\begin{align} \text{logit}(P(Y=1)) = \alpha + \beta_1 x_{\text{MET}} + \beta_2 \mathbb{I}_{\text{Exercise}} \\+ \beta_3 (x_{\text{MET}} \times \mathbb{I}_{\text{Exercise}}) + \gamma \mathbf{x}_{\text{Covariates}} \end{align}\]
where \(x_{\text{MET}}\) represents the physiological load (MET-hours/week), i.e., the associated variable \(x_{i,5}\) in Table 1, and \(\mathbb{I}_{\text{Exercise}}\) acts as the psychological context switch (1=intentional exercise, 0=occupational labor). Regarding the coefficients, \(\beta_1\) (baseline labor efficiency) quantifies the effect of physical activity performed solely as occupational labor; \(\beta_2\) (contextual intercept) represents the fixed mental health difference independent of activity volume; and \(\beta_3\) (the intentionality bonus) measures the differential benefit of exercise over labor. Finally, \(\gamma \mathbf{x}_{\text{Covariates}}\) adjusts for demographics and health status.
To test the hypothesis that napping specifically rescues individuals from the risks of sleep deprivation, we build the logistic regression model as \[\begin{align} \text{logit}(P(Y=1)) = \alpha + \beta_1 \mathbb{I}_{\text{ShortSleep}} + \beta_2 x_{\text{Nap}} \\+ \beta_3 (\mathbb{I}_{\text{ShortSleep}} \times x_{\text{Nap}}) + \gamma \mathbf{x}_{\text{Covariates}} \end{align}\]
where \(\mathbb{I}_{\text{ShortSleep}}\) is a binary indicator serving as a context switch (1 = sleep deprived, 0 = normal) and \(x_{\text{Nap}}\) represents the dosage (nap duration in minutes), i.e., the associated variable \(x_{i,3}\) in Table 1. Regarding the coefficients, \(\beta_1\) (sleep deprivation penalty) quantifies the baseline risk increase due to insufficient nocturnal sleep; \(\beta_2\) (baseline nap effect) represents the napping effect for good sleepers; and \(\beta_3\) (compensatory rescue effect) measures the additional benefit of napping specifically triggered by the sleep deprived context. Finally, controls \(\gamma \mathbf{x}_{\text{Covariates}}\) adjusts for covariate factors.
The dataset is split into a training set (70%, \(n = 10{,}663\)) and an independent test set (30%, \(n = 4{,}570\)) with stratified sampling to preserve class proportions. Model hyperparameters tuning are implemented via cross-validation on the training set, and all experimental results are obtained from the held-out test set. Model performance is primarily assessed using ROC-AUC, complemented by PR-AUC and classification metrics to account for class imbalance. Confidence intervals are estimated via bootstrap resampling. Detailed experimental settings are provided in Appendix 6.3.
The optimized LightGBM model achieves screening performance on the test set with a ROC-AUC of 0.825 and PR-AUC of 0.726 (shown in Table 2), indicating robust discrimination between individuals with and without elevated depressive risk.
Figure 3 reports the resulting confusion matrix. In screening contexts, sensitivity (i.e., Recall) is prioritized over specificity to minimize false negatives. The model attains a recall of 0.751 for the depressed group, while maintaining acceptable specificity for non-depressed individuals. Statistical uncertainty is quantified via nonparametric bootstrapping on the independent test set (1,000 resamples with replacement), with 95% percentile confidence intervals (2.5th–97.5th CI) reported for ROC–AUC and PR–AUC.
| Metric / Class | Precision | Recall | F1-score | Support |
|---|---|---|---|---|
| Macro Average | 0.747 | 0.759 | 0.750 | 4,570 |
| Weighted Average | 0.772 | 0.761 | 0.764 | 4,570 |
| Non-depressed | 0.841 | 0.767 | 0.802 | 2,889 |
| Depressed | 0.652 | 0.751 | 0.698 | 1,681 |
| Metrics | Score | 95% CI | ||
| ROC-AUC | 0.825 | [0.813, 0.838] | ||
| PR-AUC | 0.726 | [0.703, 0.751] | ||
2pt
Ablation study. Table 3 reveals two complementary roles of CRS: standalone screening and circadian-feature compression. The univariate CRS-only model, which excludes both standard covariates and the five raw circadian components, achieves a ROC-AUC of 0.7856, accuracy of 0.729, and macro-F1 of 0.722. Although this performance is lower than that of the full model, the drop is expected because a one-dimensional score necessarily discards demographic, health-status, and residual component-level information. Importantly, as a single interpretable behavioral marker, CRS substantially outperforms the non-circadian covariates-only baseline, whose ROC-AUC is 0.7223. This indicates that CRS alone carries strong depression-relevant circadian information.
When standard covariates are included, the CRS-compressed model achieves a ROC-AUC of 0.8226, only 0.0028 lower than the full model using CRS, raw circadian components, and covariates. This result supports the role of CRS as a near-lossless representation of circadian-related information in multivariable screening. Therefore, CRS should not be interpreted as a complete substitute for the full screening model; rather, it provides a compact, interpretable, and discriminative rhythm-health summary that can serve as a low-burden standalone screening signal and an efficient circadian representation for downstream risk modeling.
| Model Configuration | ROC-AUC | Accuracy | Macro F1 |
|---|---|---|---|
| CRS + Five Circadian-related Components + Covariates | 0.8254 | 0.761 | 0.750 |
| CRS + Covariates | 0.8226 | 0.749 | 0.742 |
| Univariate CRS Only | 0.7856 | 0.729 | 0.722 |
| Circadian-related Components | 0.8242 | 0.737 | 0.733 |
| w/o Sleep Quality (\(z_{i,\mathrm{Quality}}\)) | 0.7456 | 0.649 | 0.647 |
| w/o Social Activity (\(z_{i,\mathrm{Social}}\)) | 0.8246 | 0.742 | 0.736 |
| w/o Night Sleep Duration (\(z_{i,\mathrm{Sleep}}\)) | 0.8238 | 0.738 | 0.733 |
| w/o Total Activity Level (\(z_{i,\mathrm{Activity}}\)) | 0.8253 | 0.753 | 0.745 |
| w/o Nap Duration (\(z_{i,\mathrm{Nap}}\)) | 0.8250 | 0.756 | 0.747 |
| Covariates Only | 0.7223 | 0.608 | 0.608 |
2pt
SHAP analysis of risk factors. We apply SHAP to examine how circadian rhythm characteristics influence depression risk. In Figure 4, each point corresponds to one individual, with color indicating
the feature value from low (blue) to high (red). It presents that the global SHAP summary, where CRS emerges as the most influential predictor, surpassing individual sleep or activity variables. Notably, higher CRS values are associated with negative SHAP
values, suggesting a protective effect, while severe pain and greater chronic disease burden contribute positively to predicted depression risk. Figure 5 further visualizes the relationship between CRS (i.e., the
circadian_rhythm_score in Figure 4) and its SHAP values. The plot reveals a monotonically decreasing, S-shaped pattern with saturation at higher CRS levels, indicating diminishing marginal protective
effects once circadian rhythm robustness exceeds a certain threshold.
Logistic regression analysis of CRS. We conduct a multivariable logistic regression to examine the association between CRS and depression risk, controlling for potential confounders including age, gender, education, marital status, chronic disease burden, smoking, and drinking status. As shown in Table 4, CRS exhibits a strong and statistically significant negative association with depression risk (\(\text{Coef}=-0.9407\), \(p<0.001\)).
| Variable | Coef. | Std. Err. | z | P\(>|z|\) | [0.025 | 0.975] |
|---|---|---|---|---|---|---|
| const | -0.2745 | 0.175 | -1.568 | 0.117 | -0.618 | 0.069 |
| CRS_Scaled | -0.9407 | 0.022 | -43.300 | 0.000 | -0.983 | -0.898 |
| age | -0.0139 | 0.002 | -6.522 | 0.000 | -0.018 | -0.010 |
| gender | 0.2956 | 0.050 | 5.938 | 0.000 | 0.198 | 0.393 |
| education_years | -0.0463 | 0.005 | -9.175 | 0.000 | -0.056 | -0.036 |
| marry | 0.0882 | 0.015 | 5.938 | 0.000 | 0.059 | 0.117 |
| chronic_disease_count | 0.2526 | 0.018 | 13.906 | 0.000 | 0.217 | 0.288 |
| smoking_status | 0.0184 | 0.028 | 0.658 | 0.511 | -0.036 | 0.073 |
| drinking_status | -0.0363 | 0.016 | -2.216 | 0.027 | -0.068 | -0.004 |
In terms of effect size, a one–standard deviation increase in CRS corresponds to an approximately \(61\%\) (\(1-0.39\)) reduction in the odds ratio (OR) of elevated depression risk (\(\text{OR}=e^{-0.9407}\approx0.39\)). This finding suggests that individuals with more robust circadian rhythms are substantially less likely to exhibit depression risks.
Figure 6 further illustrates a consistent monotonic relationship, whereby higher CRS values are associated with lower predicted depression risk, supporting the interpretation of CRS as a protective behavioral marker.
Performance of univariate CRS across demographic subgroups. We further assess the predictive performance of the CRS across diverse demographic subgroups. As shown in Figure 7, univariate CRS maintains especially strong discriminative performance in older age cohorts (70–79 and 80+), achieving AUCs of 0.830 and 0.805, respectively.
Beyond risk screening, we examine how the proposed framework can provide intervention-oriented insights into modifiable behaviors.
Answer to Intervention Analysis 1:Intentional exercise confers greater mental health benefits than occupational physical labor at comparable intensity levels. This conclusion is supported by a formal statistical hypothesis test using interaction-term logistic regression.
Occupational physical labor alone is not significantly associated with reduced depression risk (\(p=0.435\)) (details shown in Table 5 of Appendix 6.4). In contrast, the interaction between intentional exercise and activity intensity is statistically significant (\(\text{Coef.}=-0.1404\), \(P=0.006\)). This indicates that, conditional on comparable energy expenditure, engaging in intentional exercise is associated with an approximately 13.1% (1-0.869) depression reduction in the OR of elevated depressive risk relative to occupational physical labor (\(\text{OR}=e^{-0.1404}\approx0.869\); reduction computed as \(1-\text{OR}\)).
Suggested exercise volume and activity types for older adults. To inform exercise-related guidance for older adults, we analyze SHAP dependence plots for physical activity volume and conclude below suggestions:
Minimum effective dose and beneficial range. As shown in Figure 8, physical activity exhibits a non-linear protective association with depression risk. SHAP values cross zero at approximately 300 MET-min/week, indicating a minimum effective dose. The strongest protective effects are observed within the range of 1700–4200 MET-min/week, beyond which marginal benefits gradually attenuate, suggesting diminishing returns.
Walking as a preferred activity type. Stratification by activity type reveals that walking (see Figure 9 (a)) is associated with a robust and stable transition toward negative SHAP values, indicating a consistent protective association across intensity levels. In contrast, moderate intensity exercise (see Figure 9 (b)) exhibits substantially higher variability, with protective effects emerging primarily at higher intensities. Moreover, composition analysis (see Figure 10) suggests that maintaining walking as more than 40% of total physical activity is stably associated with lower predicted depression risk.
Answer to Intervention Analysis 2: Daytime napping plays a compensatory role for individuals with insufficient nocturnal sleep. This conclusion is supported by a formal hypothesis test using interaction-term logistic regression. Interaction analysis results (detailed in Table 6 of Appendix 6.4) reveals a significant rescue effect. While long daytime naps (\(\geq\)90 minutes) are not associated with reduced depression risk among individuals with sufficient nocturnal sleep, they are significantly protective for those with insufficient nocturnal sleep (\(<6\) hours). Specifically, the interaction term indicates a statistically significant reduction in depression risk (\(\text{Coef.}=-0.26\), \(P=0.03\)), corresponding to an approximately 22.9% reduction in the OR of elevated depressive risk (\(\text{OR}=0.771\)) for sleep deprived individuals.
Suggested optimal napping duration (a.k.a., dose–response analysis). To determine the sweet spot for napping intervention, we employed a counterfactual analysis based on gradient boosted decision trees. Unlike linear regression, this tree model captures non-linear interactions between behavioral dosage and risk response. We trained a tree model on the sleep deprived cohort and derived the dose-response trajectory by simulating hypothetical outcomes: we predicted depression probabilities across a continuous range of nap durations (\(t \in [0, 180]\) minutes) while holding other physiological and sociodemographic covariates constant at their population central tendencies.
The resulting curve (see Figure 11) reveals a U-shaped trajectory. The risk of depression initially decreases with nap duration, reaching its global minimum at approximately 65 minutes. This suggests a restorative window where the benefits of sleep compensation peak. However, beyond this threshold—particularly exceeding 90 minutes—the risk rebounds significantly, potentially reflecting the adverse effects of sleep inertia and disruption.
Limitations. This study has several limitations that warrant consideration.
First, the analysis is based on cross-sectional survey data. Although interaction modeling and counterfactual inference technique are used to explore heterogeneous and dose-dependent associations, the results reflect associations at a single time point and do not establish long-term temporal causality. Longitudinal validation using follow-up data is needed to assess dynamic circadian changes and depression trajectories.
Second, circadian-related behaviors are self-reported. Measures of sleep, napping, physical activity, and social engagement may be subject to recall and reporting bias. Future studies incorporating objective behavioral measurements could further improve measurement precision and external validity.
Third, intervention-oriented analyses rely on standard causal assumptions. Dose–response and heterogeneous-effect estimates assume adequate control of confounding, and thus should be interpreted as decision-support and hypothesis-generating evidence, rather than definitive causal effects.
Overall, these limitations delineate the scope of inference rather than undermine the proposed framework, which is designed for scalable, interpretable depression screening and intervention-oriented data mining.
Ethical Considerations. This research involves the secondary analysis of de-identified data from the China Health and Retirement Longitudinal Study (CHARLS), which is publicly available for academic research. The original CHARLS data collection was approved by the Biomedical Ethics Review Committee of Peking University (IRB00001052-11015), and informed consent was obtained from all participants at the time of data collection. As this study utilizes anonymized data without direct interaction with human subjects, it is exempt from additional institutional review board (IRB) approval. Furthermore, the proposed CRS framework and depression screening models are designed as decision support tools to identify at-risk populations and generate intervention hypotheses. They are not intended to replace professional clinical diagnosis. We have explicitly analyzed the model’s limitations and false-positive rates to prevent potential over-reliance on automated screening results.
This study proposes a circadian rhythm-aware framework for depression screening and intervention-oriented analysis using large-scale population survey data. By integrating a supervised CRS with interpretable machine learning and causal effect estimation, the framework enables scalable identification of depression risk while preserving clinically meaningful behavioral structure. Beyond risk screening, the proposed approach provides interpretable and subgroup-specific insights into how modifiable circadian-related behaviors—such as sleep, physical activity, and daytime napping—are associated with depression risk under different circadian contexts. From an AI for healthcare perspective, this work illustrates how observational health data can be leveraged to bridge population-level screening, interpretability, and intervention-oriented reasoning within a unified analytical pipeline. Future work will focus on longitudinal validation using multi-wave data, integration of objective behavioral measurements, and prospective evaluation of circadian rhythm-aware decision support tools for mental health prevention.
A generative AI tool Gemini3 Nanobanana Pro was used solely for layout and formatting refinement of Figure 1. No scientific content was generated by the tool.
This work was supported by the National Natural Science Foundation of China (Nos. 62402463, 62506049 and U2468207), the Young Scientists Fund of Shandong Province (No. ZR2023QH026), Prevention and Control of Emerging and Major Infectious Diseases-National Science and Technology Major Project (No. 2025ZD01902800), Sichuan Science and Technology Program (No. 2024NSFTD0036), and the Fundamental Research Funds for the Central Universities (No. 2682026ZT007).
To ensure data validity, we applied the following exclusion rules to the initial CHARLS 2018 cohort (\(N=19,716\)):
Missing Data: Participants with missing responses on CES-D-10 items (\(n=3,770\)) or age (\(n=370\)) were removed.
Outliers: We excluded physically implausible values, including night sleep \(>12\) hours (\(n=19\)), nap duration \(>200\) minutes (\(n=57\)), and extreme smoking/alcohol values (\(n=197\)).
Others: Residents in special zones were excluded (\(n=70\)).
The participant selection process is visualized in Figure 12.
Depressive symptoms were assessed using the 10-item Center for Epidemiologic Studies Depression Scale (CES-D-10) [47]. Participants rated the frequency of specific feelings during the past week on a 4-point scale: 0 (rarely or none of the time), 1 (some or a little of the time), 2 (occasionally or a moderate amount of the time), and 3 (most or all of the time). Items 5 ("I felt hopeful about the future") and 8 ("I was happy") were reverse-coded prior to summation. The total score \(S_i\) ranges from 0 to 30. Consistent with established validation studies in Chinese elderly populations, a binary cutoff of \(\ge 10\) was applied to identify individuals with elevated depressive risk (\(y_i=1\)).
This section details the feature engineering and optimization process for the CRS.
Let \(\mathbf{z}_i\) denote the z-score normalized circadian-related component vector for individual \(i\). The five behavioral components are computed as follows:
Sleep Quality: Derived directly from the self-reported sleep quality score. \[z_{i,SleepQuality} = \texttt{sleep\_quality\_score}_i\]
Nocturnal Sleep Deviation: Quantifies the proximity to an ideal 8-hour sleep duration. \[z_{i,NightSleep} = -\left| \texttt{night\_sleep\_duration\_hr}_i - 8 \right|\]
Napping Pattern: A discrete scoring system rewarding short power naps while penalizing excessive daytime sleepiness. \[z_{i,Nap} = \begin{cases} 0, & \texttt{nap\_duration\_min}_i = 0, \\ 1, & 0 < \texttt{nap\_duration\_min}_i \le 30, \\ -1, & \texttt{nap\_duration\_min}_i > 30. \end{cases}\]
Social Activity and Physical Activity: Measured by the weighted social engagement score and total MET-hours/week, respectively. While the relationship between activity levels and health may be complex at extremes, we model them as monotonically positive factors in this screening context, assuming that higher engagement generally reflects better functional status in older adults. \[z_{i,SocialAct} = \begin{cases} \texttt{weighted\_social\_score}_i, & \text{if available}, \\ \texttt{social\_activity\_count}_i, & \text{otherwise}. \end{cases}\]
\[z_{i,PhyAct} = \texttt{total\_activity\_level\_met}_i\]
We utilized the python package Optuna [49] to optimize the hyperparameters of LightGBM. To ensure robustness against class
imbalance and overfitting, the objective function maximized the ROC-AUC score using stratified 5-fold cross-validation with a fixed random seed. The optimization process consisted of 100 trials. Fixed model parameters included
objective=’binary’, metric=’auc’, and notably is_unbalance=True to automatically weight the positive class. Early stopping with a patience of 100 rounds was applied during training. The search space of each
hyperparameter and the final selected value are as follows.
n_estimators: Integer search \([200, 2000]\) with step 100 (Selected: 2000)
learning_rate: Log-uniform search \([0.01, 0.1]\) (Selected: 0.0685)
num_leaves: Integer search \([20, 100]\) (Selected: 35)
max_depth: Integer search \([5, 20]\) (Selected: 8)
subsample: Uniform search \([0.6, 1.0]\) (Selected: 0.9392)
colsample_bytree: Uniform search \([0.5, 1.0]\) (Selected: 0.5665)
reg_alpha (L1): Log-uniform search \([0.1, 10.0]\) (Selected: 9.8709)
reg_lambda (L2): Log-uniform search \([0.1, 10.0]\) (Selected: 7.9652)
Operating Point Selection. To avoid test-set leakage, the operating threshold \(t^{*}\) was selected solely using out-of-fold (OOF) predictions from the training set. We chose the threshold that maximized the F1 score on the OOF precision–recall curve and subsequently applied this fixed threshold to the independent test set for all reported classification metrics.
Uncertainty Estimation. Statistical uncertainty is quantified via nonparametric bootstrapping on the independent test set (1,000 resamples with replacement), with 95% percentile confidence intervals (2.5th–97.5th percentiles) reported for ROC–AUC and PR–AUC.
For Intervention Analysis 1, the terminology used in the main text is mapped to the regression variables in Table 5. Let \(X_{\mathrm{MET}}\) denote the physical
activity volume measured in MET-hours/week. The variables purpose_labor, purpose_ent, and purpose_exe denote indicator variables for occupational physical labor, entertainment-related activity, and intentional
exercise, respectively. The interaction variables inter_mets_ent and inter_mets_exe are constructed by multiplying \(X_{\mathrm{MET}}\) by the corresponding activity-purpose indicators. Therefore,
purpose_labor corresponds to the main-text statement that occupational physical labor alone is not significantly associated with reduced depression risk, whereas inter_mets_exe corresponds to the reported interaction between
intentional exercise and activity intensity.
| Variable | Coef. | Std. Err. | z | P\(>|z|\) | [0.025 | 0.975] |
|---|---|---|---|---|---|---|
| const | -0.5443 | 0.206 | -2.636 | 0.008 | -0.949 | -0.140 |
| purpose_labor | -0.0217 | 0.028 | -0.781 | 0.435 | -0.076 | 0.033 |
| purpose_ent | -0.2177 | 0.096 | -2.279 | 0.023 | -0.405 | -0.031 |
| purpose_exe | -0.1539 | 0.049 | -3.132 | 0.002 | -0.250 | -0.058 |
| inter_mets_ent | -0.1321 | 0.106 | -1.246 | 0.213 | -0.340 | 0.076 |
| inter_mets_exe | -0.1404 | 0.051 | -2.744 | 0.006 | -0.241 | -0.040 |
| age | -0.0052 | 0.003 | -2.070 | 0.038 | -0.010 | -0.000 |
| gender | 0.3305 | 0.059 | 5.604 | 0.000 | 0.215 | 0.446 |
| education_years | -0.0869 | 0.006 | -14.880 | 0.000 | -0.098 | -0.075 |
| marry | 0.0910 | 0.017 | 5.298 | 0.000 | 0.057 | 0.125 |
| chronic_disease_count | 0.2827 | 0.021 | 13.449 | 0.000 | 0.242 | 0.324 |
| smoking_status | 0.0288 | 0.033 | 0.861 | 0.389 | -0.037 | 0.094 |
| drinking_status | -0.0608 | 0.019 | -3.142 | 0.002 | -0.099 | -0.023 |
For Intervention Analysis 2, the terminology used in the main text is mapped to the regression variables in Table 6. Insufficient nocturnal sleep refers to participants with night sleep
duration \(<6\) hours and is encoded by the binary variable sleep_deprived. Daytime napping is discretized into three categories: nap_1_Power for short power naps, nap_2_Restorative
for intermediate restorative naps, and nap_3_Long for long daytime naps with duration \(\geq 90\) minutes. Accordingly, inter_sleep_nap_3_Long represents the interaction between insufficient
nocturnal sleep and long daytime napping, testing whether long naps have an additional association with depression risk specifically among individuals sleeping less than 6 hours per night. The non-significant coefficient of nap_3_Long
corresponds to the main-text statement that long daytime naps are not associated with reduced depression risk among individuals with sufficient nocturnal sleep, whereas the significantly negative coefficient of inter_sleep_nap_3_Long supports
the reported compensatory or rescue effect.
| Variable | Coef. | Std. Err. | z | P\(>|z|\) | [0.025 | 0.975] |
|---|---|---|---|---|---|---|
| const | -0.6434 | 0.166 | -3.879 | 0.000 | -0.968 | -0.318 |
| sleep_deprived | 0.9491 | 0.057 | 16.587 | 0.000 | 0.837 | 1.061 |
| nap_1_Power | -0.0341 | 0.066 | -0.520 | 0.603 | -0.163 | 0.094 |
| nap_2_Restorative | -0.0556 | 0.055 | -1.019 | 0.308 | -0.163 | 0.051 |
| nap_3_Long | 0.0541 | 0.069 | 0.779 | 0.436 | -0.082 | 0.190 |
| inter_sleep_nap_1_Power | -0.0022 | 0.102 | -0.021 | 0.983 | -0.202 | 0.198 |
| inter_sleep_nap_2_Restorative | -0.0403 | 0.090 | -0.447 | 0.655 | -0.217 | 0.136 |
| inter_sleep_nap_3_Long | -0.2602 | 0.120 | -2.172 | 0.030 | -0.495 | -0.025 |
| age | -0.0074 | 0.002 | -3.698 | 0.000 | -0.011 | -0.003 |
| gender | 0.2637 | 0.047 | 5.596 | 0.000 | 0.171 | 0.356 |
| education_years | -0.0775 | 0.005 | -16.347 | 0.000 | -0.087 | -0.068 |
| marry | 0.0893 | 0.014 | 6.413 | 0.000 | 0.062 | 0.117 |
| chronic_disease_count | 0.2686 | 0.017 | 15.607 | 0.000 | 0.235 | 0.302 |
| smoking_status | 0.0142 | 0.027 | 0.534 | 0.593 | -0.038 | 0.066 |
| drinking_status | -0.0657 | 0.016 | -4.228 | 0.000 | -0.096 | -0.035 |
We distinguish intentional exercise from occupational physical labor. Intentional exercise refers to planned, leisure-time physical activities undertaken primarily for fitness or health benefits (e.g., jogging, gym workouts, swimming). In contrast, occupational physical labor consists of work-related physical activities performed as part of one’s job responsibilities (e.g., construction work, farming, warehouse loading). Although both may involve comparable physical intensity, they differ in voluntariness, context, and psychosocial load, which may lead to distinct mental health effects.↩︎