Abstract
Digital phenotyping studies using smartphone-sensed data have identified several behavioral markers associated with depression. However, the generalizability of these markers is constrained by multiple factors, including variability in depressive symptoms and associated behaviors, both between and within individuals over time. This study explores variability in depression symptoms and associated behaviors using smartphone-sensed data collected from participants diagnosed with depression. It examines behavioral features derived from smartphone sensing as potential markers of depression. We analyzed smartphone-sensed behavioral data from 62 patients with major depressive episodes across three subgroups: major depressive disorder (MDD, n = 41), borderline personality disorder (BPD, n = 12), and bipolar disorder (BD, n = 9). Depression symptoms were assessed with the 9-item Patient Health Questionnaire (PHQ-9). Symptoms differed between subgroups and across severity levels. Association analysis suggested variability in correlations between depression severity and behavioral features, both between participants and over time. Multilevel modeling identified two demographic predictors, employment status (β = − 4.79, 95% CI [− 7.65, − 1.80], p = 0.004) and age (β = − 0.12, 95% CI [− 0.25, 0.00], p = 0.050), along with one behavioral predictor, lower nighttime movement (β = − 0.79, 95% CI [− 1.29, − 0.29], p = 0.024), that were associated with depression severity.
Supplementary Information
The online version contains supplementary material available at 10.1038/s41598-026-48625-w.
Keywords: Digital phenotyping, Digital behavioral data, Depressive symptoms, mHealth, Smartphone, Multilevel modeling
Subject terms: Biomarkers, Diseases, Psychology, Psychology
Introduction
Depressive disorders rank among the most prevalent mental disorders and are among the most burdensome health conditions worldwide1. In 2021, an estimated 330 million people worldwide were living with depressive disorders, affecting approximately 4.4% of the global population2. Clinical assessment of depression relies on structured interviews, observer scales, and questionnaires3, which are prone to biases such as recall bias4. Additionally, the heterogeneous nature of depressive symptoms5 adds further complexity to diagnosis.
The ubiquity of smartphones and other personal smart devices has inspired research to use data from these devices to detect and predict depression symptoms objectively. Digital phenotyping is a field of research that utilizes personal digital devices to measure human behavior and physiology unobtrusively and continuously in real-life settings6. Collecting and analyzing data on individuals’ behavior using these devices can provide new information about mental health disorders, including depression and behavioral patterns associated with them7. Ideally, the knowledge produced by digital phenotyping research could be applied in practice as new methods and tools for symptom monitoring and prediction, supplementing current means of mental healthcare. Furthermore, these methods could help design early warning systems, which can be integrated with interventions for symptom worsening8.
Research on digital phenotyping of depression has mainly focused on identifying associations between smartphone-sensed behavior and depression symptoms, predicting depression symptom severity and diagnostic classification, and forecasting future mood9. The studies typically rely on behavioral data representing participants’ physical activity, mobility, sociability, sleep, and smartphone usage patterns10. Although these approaches have achieved promising results, the reported associations between behavior and depression vary across studies in both statistical significance and direction (positive or negative) (see, e.g.,10,11, implying that the results may not generalize well across different samples and contexts. The differences may arise partly from heterogeneity in study objectives, samples, used methodologies, and reporting practices10, device usage differences between the study participants12, but also from the differences in depressive symptoms between participants13 and temporal variability of symptoms within the participants14–18. The heterogeneity in depression symptoms and related observable behavior characterizes the depressive disorder; for example, both insomnia and hypersomnia, a decrease or increase in appetite, are regarded as depression symptoms19. Further, research has identified heterogeneous temporal characteristics of individual depression symptoms20 and variability in long-term trajectories of depression severity and stability21.
This study aims to explore variability in depression symptoms and related behavioral features as observed through digital phenotyping. Moreover, it assesses the underexplored contribution of between- and within-participant effects in behavior-depression relationships, aiming to identify features associated with depression. The distinction between these effects is important for evaluating how both long-term, between-participant differences in behavior and short-term fluctuations within participants’ behavior reflect depression severity. We investigated variability from two angles. The first angle looked at differences in self-reported depression symptoms through answers to questionnaires. The second angle focused on the smartphone-sensed behavioral features and their associations with depression severity. The first angle was represented by our first study objective, in which the questionnaire answers were compared at the symptom level, across diagnostic groups, and by severity level. The second angle led to our second and third study objectives. The second objective was to explore correlations between behavioral features and depression across the study population, at the participant level, and over time. The third objective was to assess both within- and between-participant variability in behavioral features using multilevel modeling and to identify potential behavioral features that could be indicative of depression while controlling for participants’ background and contextual factors.
The study analyzed smartphone-collected behavioral data from outpatients diagnosed with depression. Self-reported scores from the 9-item Patient Health Questionnaire (PHQ-9)22 were used to assess the severity of depression. We extracted features from smartphone data that reflect daily behavioral aspects: physical activity, mobility, sociability, phone usage, and sleep. These features served as proxies for behavioral patterns, possibly associated with depression.
Exploratory analysis indicated heterogeneity in depressive symptom representations between the patient groups and in behavior-depression associations across the study population. The associations showed differences in strength and direction (positive and negative) over time within participants. This observed variability aligns with the prior literature describing the heterogeneous nature of depressive symptoms and suggests that such heterogeneity may also be reflected in behavioral data collected through smartphones. Furthermore, multilevel modeling suggested that variability in behavior over time within individual participants was more predictive of depression severity than the behavioral differences between participants. These findings suggest that smartphone-sensed behavioral features may have limited predictive utility in population-level analyses, particularly when simple, unimodal linear models are applied and when homogeneous associations between behavioral features and depression are assumed across participants.
Instead, the results indicate that modeling may benefit from focusing on behavioral changes over time within participants and on individual symptoms, which could improve the accuracy of depression monitoring and prediction.
Results
PHQ-9 questionnaire analysis
Our first objective was to assess the variability in depression symptoms through PHQ-9 answers at the item (symptom), diagnostic group, and severity levels. The summary statistics showed that the MDD patients had, on average, the lowest average depression level (mean = 11.6, SD = 6.0), while BPD had the highest average (mean = 14.9, SD = 4.8). At the study population level, moderate depression severity (PHQ-9 scores from 10 to 14) was the most frequent (27.5%). For a group-level summary of depression severity, refer to Table S1 in Multimedia Appendix 1. Considering PHQ-9 score variability, the BD group showed a wider distribution than others, reflecting higher within-group differences in depression variability. Nonetheless, the Kruskal-Wallis test23 indicated that these differences in mean score or standard deviation were not statistically significant. Figure 1 shows the distribution of PHQ-9 mean scores and standard deviations for each group.
Fig. 1.
PHQ-9 score group-level summary statistics. The scores were first averaged within participants and then visualized. (A) Boxplots of group-level mean scores: MDD (µ = 11.65, σ = 5.96), BPD (µ = 14.89, σ = 5.87), and BD (µ = 12.12, σ = 4.83), (B) Boxplots of standard deviations of scores: MDD (µ = 2.65, σ = 1.28), BPD (µ = 3.44, σ = 2.49), and BD (µ = 3.78, σ = 2.61). A wider interquartile range for BD suggests greater fluctuations in depression severity among BD patients compared to others.
An exploratory comparison of the PHQ-9 item distributions at different depression severity levels exhibited differences across the patient groups. However, conducting the Kruskal-Wallis test indicated that these differences were not statistically significant. At the lowest depression level, items 3 (trouble with sleep) and 4 (tiredness or low energy) are more pronounced in the BPD group, while item 7 (trouble concentrating) has higher scores for the BD group than others. At the mild and moderate depression levels, the items are more evenly distributed across all groups. At the moderately severe level, item 9 (suicidal ideation) scores higher in the BD group, while item 1 (anhedonia) is pronounced in the MDD group, and the BPD group also exhibits higher scores for item 6 (low self-worth). Finally, at the highest severity level, the BD group differs from the BPD group, particularly in items 8 (psychomotor retardation) and 9 (suicidal ideation). Figure 2 illustrates these differences in distributions across groups and depression severity levels. For detailed results, refer to Appendix 1 Table S2 and Table S3 for a summary of PHQ-9 questions.
Fig. 2.
Average PHQ-9 item scores by diagnosis group and depression severity. For visualization purposes, we treated PHQ-9 items (ordinal) as continuous variables. The radar charts show the average of PHQ-9 item scores across different depression severity levels for BD, BPD, and MDD groups. Letters from I1 to I9 denote the items, and different colors represent severity levels. The scale, ranging from 0 (center) to 3 (outer circle), denotes item values.
Further exploration of the item score distributions across depression severity levels revealed that, on average, PHQ-9 items do not increase at the same rate or linearly with the total score. Items 3 (trouble with sleep) and 4 (tiredness or low energy) constantly contributed to the total score across all the severity levels. Also, item 6 (low self-worth) had high scores across the severity levels. On the other hand, item 8 (psychomotor retardation) stayed relatively low across all depression severity levels. Items 3, 4, 5 (poor appetite or overeating), and 6 showed the greatest relative changes, transiting between mild depression and moderate depression. These changes suggest that these items (and corresponding symptoms) might be particularly informative for detecting depression severity above the clinical threshold (a PHQ-9 score of 10). Further, item 9 (suicidal ideation) only emerged at higher depression levels. Figure 3 illustrates the PHQ-9 item distributions across the severity levels.
Fig. 3.
PHQ-9 item average score distributions across depression severity levels, combining the data from all patient groups. For exploratory analysis purposes, we treated the (ordinal) items as continuous variables and visualized the distribution shapes. The comparison shows that the items neither increase at the same rate nor in a linear manner with total depression severity. Notably, items 8 and 9 have higher values only at higher severity levels. Additionally, comparing the mild (scores from 5 to 9) and moderate (scores from 10 to 14) levels of depression severity, items 3 to 6 exhibit the highest differences.
Association analysis
To address the second objective, we examined the associations between behavioral features and depression severity. We conducted an exploratory correlation analysis, calculating pairwise Kendall rank correlation coefficients between the behavioral features and PHQ-9 scores by pooling data from participants, and at the individual participant level, thus comparing general, study population-level associations and individual participant-level variability. The results revealed that pooling the participants, all behavioral data features had weak to moderate correlations (Kendall rank correlation coefficient between − 0.3 and 0.3) with PHQ-9 depression scores. Nonetheless, these correlations were not significant after controlling for false positives with false discovery rate (FDR) correction at a significance level of = 0.05. On the other hand, inspecting the correlations at the individual participant level resulted in a broader range of coefficients, summarized in Table 1.
Table 1.
Association analysis summary: the proportion of correlation types across the behavioral features.
| Correlation type | Range | Pooled participants (%) | Individual participants (%) |
|---|---|---|---|
| Very strong negative | 0.5 to 1.0 | 0.0 | 5.7 |
| Strong negative | 0.3 to 0.5 | 0.0 | 10.8 |
| Moderate negative | 0.1 to 0.3 | 29.7 | 17.5 |
| No/Weak correlation | − 0.1 to 0.1 | 53.6 | 23.0 |
| Moderate positive | − 0.3 to − 0.1 | 16.7 | 20.6 |
| Strong positive | − 0.5 to − 0.3 | 0.0 | 11.8 |
| Very strong positive | − 1 to − 0.5 | 0.0 | 10.6 |
The correlation was measured by Kendall rank correlation coefficients, calculated by pooling the participants and at the participant level. In general, participant-level coefficients exhibited broader distributions than pooled-level coefficients.
Further, we examined how the associations varied over time within the participants with exploratory rolling-window correlation analysis. We counted the proportion of users and features exhibiting both positive and negative correlations during the data collection period across different window sizes. The results indicated that correlation directions (positive or negative) might change over time. In general, the proportions of mixed correlation, reflecting that participants had both positive and negative correlations, are higher with shorter windows. These findings suggest that the associations are not static and should be considered dynamic in modeling tasks. Appendix 1 Figure S1 summarizes the average proportion of features exhibiting both positive and negative correlations across participants.
Multilevel modeling
To address the third objective, we used multilevel modeling to examine both within- and between-participant variability in behavior and to identify features indicative of depression. We employed a stepwise modeling strategy, starting with a baseline model that included only the random intercepts for each participant and subsequently adding background information, between- and within-effects as predictors. The baseline model, including only random intercepts, explained 72.0% of the total variance. The first model, which included demographic and contextual information, increased the conditional R2-score (accounting for both fixed and random effects) to 0.737 and the marginal R2-score (reflecting only fixed effects) to 0.162. The second model, adding time-varying within-participant features, further increased the conditional R2 to 0.743 and the marginal R2-score to 0.172. Finally, the complete model combines background, contextual, and within- and between-participant behavioral features, resulting in a conditional R2-score of 0.797 and a marginal R2-score of 0.207.
The results from multilevel models showed that the intraclass correlation coefficient (ICC) was relatively high across models (ranging from 0.69 to 0.73), indicating that a substantial proportion of the variability in self-reported depression severity was attributed to the between-participant differences. Model comparisons with ANOVA revealed that adding within-participant behavioral features (Model 2) improved model fit over the baseline model (Model 1) (χ² = 26.22, df = 16, P = 0.05; AIC = 3613.76, BIC = 3721.02). However, incorporating between-participant features (Model 3) led to a significant chi-square change over Model 2 (χ² = 54.78, df = 16, P < 0.001; AIC = 3590.9, BIC = 3769.74). Therefore, the increase in BIC suggests that Model 2 represents the most parsimonious model.
In Model 2, employment status (β = − 4.79, 95% CI − 7.65 to − 1.80, P = 0.004) and age (β = − 0.12, 95% CI − 0.25 to − 0.00, P = 0.050) emerged as significant demographic predictors of depression severity, with unemployment and younger age linked to higher symptom levels. Among behavioral features, higher nighttime movement (β = − 0.35, 95% CI − 0.63 to − 0.06, P = 0.024) was linked to reduced symptom severity. Notably, when taking into account the between-participant effect, outgoing SMS count emerges as a significant predictor. The effect is positive at the between-participant level (β = 2.20, 95% CI 1.12 to 3.32, P = < 0.001) but negative at the within-participant level (β = − 0.56, 95% CI − 1.00 to − 0.17, P = 0.004). Table 2 shows the condensed model summaries, displaying only the features with P-values below 0.05. For the detailed results, refer to Table S4 in Multimedia Appendix 1.
Table 2.
Multilevel model summaries.
| Model 1 | Model 2 | Model 3 | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Estimate | CI | p | Estimate | CI | p | Estimate | CI | p | |
| Age | − 0.1 | − 0.22–0.03 | 0.142 | − 0.12 | − 0.25 – − 0.00 | 0.05 | − 0.09 | − 0.24–0.05 | 0.218 |
| Gender (Male) | 1.05 | − 2.28–4.34 | 0.534 | 1.3 | − 2.08–4.48 | 0.458 | 1.53 | − 2.15–5.22 | 0.404 |
| Children (Yes) | − 1.9 | − 5.05–1.09 | 0.23 | − 2.39 | − 5.69–0.95 | 0.162 | − 2.60 | − 5.58–1.047 | 0.166 |
| Pet (Yes) | − 0.67 | − 3.53–2.29 | 0.656 | − 1.13 | − 4.14–1.83 | 0.442 | − 1.48 | − 4.99–1.87 | 0.400 |
| Employed (Yes) | − 4.18 | − 7.01 – − 1.38 | 0.004 | − 4.79 | − 7.65 – − 1.80 | 0.004 | − 5.40 | − 8.75 – − 1.93 | 0.002 |
| SMS count out W | 0.01 | − 0.38–0.38 | 0.954 | − 0.56 | − 1.00 – − 0.17 | 0.004 | |||
| Acc STD night W | − 0.38 | − 0.68 – − 0.07 | 0.012 | − 0.79 | − 1.29 – − 0.29 | 0.002 | |||
| SMS count out B | 2.20 | 1.12–3.32 | < 0.001 | ||||||
| Random effects | |||||||||
| σ2 | 11.85 | 11.15 | 10.89 | ||||||
| τ00 | 25.95 user | 27.36 user | 29.49 user | ||||||
| ICC | 0.69 | 0.71 | 0.73 | ||||||
| N | 57 user | 57 user | 57 user | ||||||
| Observations | 645 | 645 | 645 | ||||||
| Marginal R2/conditional R2 | 0.162/0.737 | 0.172/0.743 | 0.201/0.797 | ||||||
For brevity, the table shows only the statistically significant behavioral predictors (P-values ≤ 0.05 are shown in bold). Model 2 is the best-fitting and most parsimonious, showing within-participant behavioral features: nighttime accelerometer variability with lower severity. Additionally, higher age and employed status are associated with lower depression severity.
W denotes the within-participant effect, σ2 residual variance, τ00 intercept variance, and ICC intra-class correlation coefficient.
Model 1 includes background demographics and contextual predictors, with random intercepts for each participant.
Model 2 adds within-participant effects (features) into Model 1.
Model 3 adds between-participant effects (features) into Model 2.
Discussion
This study investigated the variability in self-reported symptoms of depression and associated smartphone-sensed behaviors. We observed variability in PHQ-9 items between the patient groups and across different levels of depression severity. Associations between behavioral features and depression severity varied considerably between the study participants and over time within participants. The multilevel model results indicate that approximately 70% of the variability in self-assessed depression is attributable to between-participant differences in depression severity. Adding demographic background, context, and time-varying within-participant behavioral features improves the model’s explanatory power by up to 76.3%. Multilevel modeling identified that demographic factors, age, and employment status, and within-participant behavioral features of daily outgoing SMS count, as well as physical nighttime activity, are associated with depression severity. Notably, while these findings exemplify variability in this study population, the limited sample size warrants interpreting them as exploratory observations.
Inspection of PHQ-9 item distributions suggested differences in the representation of depression across the diagnostic subgroups. The differences suggest that accommodating individual differences in depression manifestations at the symptom level and modeling each participant individually or pooling together participants with similar symptoms might benefit the modeling accuracy. Additionally, these differences in symptom profiles may hint at possible subgroup distinctions within depressive disorder; a unique symptom profile may characterize each subgroup. However, as the subgroups in this study were small, caution should be exercised when generalizing such findings.
Further, we observed the highest difference in PHQ-9 score distributions between mild and moderate depression on items 3 (trouble with sleep), 4 (tiredness or low energy), 5 (poor appetite or overeating), and 6 (low self-worth). These differences suggest a possible pattern worth further investigation, specifically exploring whether the transition from lower depression into moderate level may be identifiable through monitoring behavior related to these items, such as sleep disturbances, daily activity and mobility, and sociability. Additionally, we noticed that item 8 (psychomotor retardation) exhibits higher scores only at higher depression severity levels, aligning with clinical knowledge that psychomotor retardation typically occurs only in severe depression and is an important characteristic of the DSM-5 melancholic specifier or subtype of major depressive episodes19,24. Similarly, item 9 (suicidal ideation) gets higher scores only at higher depression levels. This finding aligns with other studies and is a clinically important point—the alleviation of depression results in the alleviation of suicidal thoughts25.
Correlation analysis results indicated that most behavioral features had weak correlations with PHQ-9 depression scores at the population level. In contrast, at the individual participant level, the correlations exhibited a wider range of both positive and negative values, which may cancel each other out when aggregated at the population level. Notably, the number of data points provided by each participant varies. Thus, some of the higher correlations might stem from the relatively low observation count by change. On the other hand, the low variability in PHQ-9 scores could explain the low correlations for some participants. Likewise, considering application usage-related features, low correlations may occur because some participants use smartphone applications infrequently. Finally, the complementary rolling-window correlation analysis explored the within-participant variability in time, revealing periods with varying correlation strengths and directions. This observation suggests that the relationship between behavioral features and depression severity should be considered time-dependent rather than static, aligning with existing literature that emphasizes the need for models that can accommodate the time-varying dynamics of the depression-behavior relationship14,16.
The multilevel modeling results regarding the explanatory power of random and fixed effects align with other studies using hierarchical linear modeling (e.g.,26–28. Adding behavioral features increased the marginal R2 -score by 2.1%, indicating modest explanatory power of passively sensed, time-varying participant-level behavioral features. Further, a significant portion of PHQ-9 variance is explained by between-participant variability in depression severity. Together, these findings suggest that for the purpose of depression monitoring, the clinical focus should be on detecting deviations from a patient’s own baseline (within-person) rather than comparing them to others (between-person), while accounting for participants’ depression severity history. Notably, outgoing SMS count showed opposite associations at the between- and within-participant levels. At the between-participant level, higher average outgoing SMS count correlated with higher depression severity, possibly reflecting a tendency for more distressed individuals to rely on text-based communication as a means of seeking support. At the within-participant level, however, the association reverses: temporary increases in outgoing SMS relative to one’s own baseline may reflect periods of better functioning or greater social engagement.
The validity and generalizability of this study’s findings are primarily limited by the amount of available data; the sample size, participants dropping out of the study, and missing intermediate observations (the dropout rate and data missingness are discussed more thoroughly in our previous work29,30. These factors may reduce the statistical power and contribute to greater uncertainty in estimates for subgroup comparison and heterogeneity analyses. Limited yet high-dimensional data is a common issue across studies involving personal digital devices for data collection31,32. While the quantity of passively collected raw data is relatively high in this study, more bi-weekly sampled active data for each participant would have benefited the analysis, leading to higher statistical power and making modeling less prone to overfitting. Also, combining data sets across different studies may provide a feasible approach to obtaining larger and more heterogeneous samples.
Additionally, the temporal nature of the data might bias the analysis results. The feature standardization and imputation techniques used in this study assume stationarity of variance over time, which might not hold with behavior in participants with mood disorders. These issues could be mitigated by considering time-aware standardization and thoroughly analyzing the nature of missing observations (whether they are missing completely at random, at random, or not at random) and thoroughly comparing between different imputation techniques, such as multiple imputation using chained equations (MICE)33.
It is also worth exploring whether the changes in behavior are more common in moderate to severe depression. If sensitive digital phenotyping measures for the milder range of depression are to be explored, they probably must tackle more subjective and internal aspects of depression. Achieving this might require measures that are sensitive to the negative emotional and self-referential cognitive biases in depression, such as changes in speech prosody or the linguistic content of written texts (for example, in emails and social media platforms), consumed media content, or facial expressions.
Due to the limited explanatory power of linear modeling in this dataset, we suggest that future work explore multiple features in modeling, including feature interactions and non-linear relationships in the data with modeling techniques, such as gradient-boosting trees, and personalizing the models. Previous research has addressed the problem of between-participant variability through personalized modeling that adapts to the differences between participants. The models can be personalized, for example, by using a participant-specific (idiographic) approach (e.g.,28), personalizing the depression symptom profiles (e.g.,34), hierarchical modeling (e.g.,35,36), symptom similarity-based grouping (e.g.,37), combining the training data from participants with similar behavioral feature distributions (e.g.,38), or collaborative filtering modeling (e.g.,39).
This study illustrates how self-reported depressive symptoms and associated mobile-sensed behaviors vary between and within patients clinically diagnosed as experiencing major depressive episodes. Our multilevel modeling indicated that a substantial portion of depression variability is due to individual differences. In summary, these findings suggest that smartphone-sensed behavioral features may have limited clinical utility in monitoring depression using digital phenotyping within this study population. Hence, we propose that future research could focus on improving depression prediction and forecasting accuracy by utilizing data from multiple sources using advanced techniques capable of modeling non-linear and time-varying relationships, feature interactions, and differences between participants. Through these results, we bring into focus the importance of addressing and reporting heterogeneity within the study population, as it may provide useful information for future research design, identifying useful behavioral markers, and optimizing sample size through power analysis.
Methods
Setting
This study analyzed behavioral data from the Mobile Monitoring of Mood (MoMo-Mood) study29, which includes continuously sensed smartphone behavioral data (passive data), self-reported responses to biweekly depression questionnaires (active data), and background demographic and contextual information. The study involved 164 participants: healthy controls (n = 31) and patients (n = 133). All patients were experiencing an ongoing major depressive episode (MDE) at the time of recruitment and were diagnosed with either major depressive disorder (MDD, n = 85), major depressive episodes with bipolar disorder (MDE|BD, n = 21), or major depressive disorder with comorbid borderline personality disorder (MDD|BPD, n = 27). The patients were voluntarily recruited from primary care and psychiatric outpatient treatment clinics in Finland, while healthy controls were recruited from university students and healthcare personnel. The patients were under treatment and were diagnosed as having ongoing major depressive episodes with structured interviews, the Mini-International Neuropsychiatric Interview40, and the Structured Clinical Interview for DSM-IV Axis II Personality Disorders41.
The study used continuous enrollment, allowing the participants to enter or withdraw from the study at different times, with a recommended participation period of one year. All participants were informed about the study prior to enrolment, including the data collection and their option to leave the study at any time. Informed written consent was obtained from all the study participants. The participants were compensated with four movie tickets. The Helsinki and Uusimaa Hospital District’s Ethics Committee approved the study research protocols (including the data stream and collection platform security), and Helsinki and Uusimaa Hospital District Psychiatry granted a research permit (approval number § 125/2018). A written data security statement was authorized by the local research ethics committee and IT support. All research procedures followed the ethical standards of the Declaration of Helsinki. For more details, refer to earlier work29,30,42.
Dataset description
The passive data used in our analysis originated from various smartphone sensors and logs, collected using the AWARE app43 and curated using the Niima platform44. The data encompasses five aspects of daily behavior: physical activity and mobility, sociability, phone interactions, and sleep. Behavioral features related to these aspects have been identified as being associated with depression severity in previous research ( e.g., for physical activity45–47, mobility48,49, sociability50,51, phone interactions52,53, and sleep39,54). We operationalized these behavioral aspects through specific features extracted from raw smartphone data, serving as proxies for real-world behaviors. The active data has participants’ self-reported PHQ-9 questionnaires, which assess the depression severity. The PHQ-9 is a tool used for screening for diagnosis and monitoring of depressive symptoms55. The PHQ-9 survey comprises nine items, each addressing the main symptoms of depression, such as having little interest or pleasure in doing things. According to the survey, patients were asked to respond based on their experience over the last two weeks, with each item rated from 0 (not at all) to 3 (nearly every day). The Background demographics include categorical variables, including participants’ age and sex, used as control variables. Contextual information includes details about full-time work, shift work, cohabitation status, the number of children, and whether the participants have pets. We selected these factors since they may affect participants’ daily behaviors. Participation adherence, assessed via PHQ-9 responses, declined over the study period, with 65.7% of participants still active by week 8. Adherence varied across subgroups, ranging from 50% in BPD to 83% in BD. Passive data missingness, proxied by battery data availability, averaged 10.5% across all participants, with notable variation by group (BD: 4.5%, BPD: 20.4%, control: 1.2%, MDD: 14.1%). A survival analysis of dropout and missingness is provided in our previous work29.
Data preparation and preprocessing
Of the 164 participants, we excluded the control participants from the analysis since they exhibited low levels and variability (mean = 1.2, std = 1.8) of self-measured depression30. Further, we excluded the participants who provided less than one month of passive data (equaling at least two biweekly PHQ-9 responses), resulting in a total of 62 (39%) participants from three different groups: (1) patients with BD (n = 9), (2) patients with BPD (n = 12), and (3) patients with MDD (n = 41). Descriptive statistics and demographic information of the participants are presented in Table 3.
Table 3.
Demographic and clinical characteristics.
| Observation counts | 671 |
|---|---|
| Age | 35.1 (sd 12.2) |
| Gender | |
| Male | 16 |
| Female | 46 |
| Employment | |
| Fulltime | 20 |
| Other | 42 |
| PHQ9 scores | 11.3 (sd 5.8) |
The raw passive data comprised accelerometer readings, application usage logs, battery level, GPS locations, phone call logs, SMS logs, and screen usage. We used the Niimpy behavioral analysis toolbox56 to preprocess the raw sensor data and extract behavioral features. We extracted three types of features: volume-based, temporal, and contextual features. The volume-based features represent counts and durations of specific activities, such as smartphone screen usage time. Temporal features were derived by segmenting the volume-based features into 6-hour bins based on the time of day (12:00 a.m.–6:00 a.m., 6:00 a.m.–12:00 p.m., 12:00 p.m.–6:00 p.m., and 6:00 p.m.–12:00 a.m.) for more precise information in daily rhythms, similar to our previous work30. Considering the behavioral aspects, physical activity was captured through phone accelerometer data, providing temporal information about movement intensity and variability. Mobility was assessed using GPS location data, which provided spatial (e.g., total distance traveled) and contextual information (e.g., daily time spent at home) on behavior. Sociability was measured by phone call counts, durations, and the number of messages sent and received. Phone interactions were inferred from application usage logs (e.g., application category, usage count, and duration), screen usage counts (on and off), usage duration, and battery charge level. Sleep duration and timing were approximated using the longest period of inactivity measured through screen activity data, following a process similar to that demonstrated in29. This method gives comparable results with other methodologies for measuring sleep in this population57. For further details, refer to Table S1 in Multimedia Appendix 1. The average number of completed PHQ-9 assessments and aligned passive data observations per participant, reported overall and by diagnostic group, are provided in Table S4 in Multimedia Appendix S4.
For active data, we used scores from individual items and assessed the depression severity with the total sum of item scores, with the result ranging from 0 (no depression) to 27 (severe depression). Further, categorical background demographics and contextual variables were used as control variables. We used demographics, including age and gender, as well as contextual variables that might influence daily behavior, such as having children, owning a pet, and being employed. The variables were used in multilevel modeling, encoded using one-hot encoding.
Extracted temporal and volume-based behavioral features were aligned with biweekly depression questionnaires and aggregated by calculating the arithmetic mean over the 14 days preceding the days the PHQ-9 measurement took place. Location data features (including distance-based and significant places-based features) were calculated directly over 14-day windows, thus requiring no averaging. Further, we pre-filtered redundant features based on prior knowledge (for example, screen off count, since it reflects the same information as screen on count). The resulting data comprised 671 biweekly observations covering 224 behavioral features, two background demographics, five contextual variables, and one external variable. Figure 4 shows the details of data preprocessing and aggregation schematics.
Fig. 4.
Participant selection, data collection, and processing schema. For this study, we selected participants from three patient groups (BD, BPD, and MDD) who answered at least two bi-weekly (14-day) PHQ-9 questionnaires and provided passive data for 14 days prior to each PHQ-9 answer. Smartphone-collected data encompassed: (1) passive data, consisting of raw smartphone-sensed data, including accelerometer readings, phone call and SMS logs, app and screen usage logs, battery level logs, and GPS location data; (2) active data, consisting of PHQ-9 questionnaires; and (3) demographic information, such as participants’ age and work status. The merged datapoints are denoted by t1 to t26, and day d0 represents the day the PHQ-9 was reported, and d− 14 to d− 1 the preceding 14-day period, during which passive data was collected. Data collection lasted up to one year.
For the first study objective, to assess how depressive symptoms differ between patient groups, we used the raw values from the PHQ-9 questionnaire items, removing missing or incomplete records. For the second objective, behavior–depression association analysis, we used aligned passive (behavioral features) and active (self-assessed PHQ-9 scores) data, removing observations where either the feature or questionnaire was missing. For the third objective, we imputed the missing intermittent passive data observations. For sociability features (e.g., call and SMS counts), we used zero imputation to distinguish true missingness from observed zeros using battery information: we treat a person-day as missing only if there is no battery record (used as a proxy for the phone not being active or observed). When battery data indicate the phone was active on a given day but no call or text events are detected, we interpret this as a valid zero (that is, no communication recorded that day), and coding it as 0 is consistent with the measurement process rather than an imputation of unknown behavior. For the remaining variables, participant-median imputation was used only for intermittent missingness where battery data indicate the device was active, but a specific feature value is unavailable. Further, to examine within- and between-participant effects of behavior using multilevel modeling, we disaggregated passive data features using participant-mean and grand-mean centering58. The within-participant components reflect fluctuations relative to an individual’s average and their relationship to the severity of depression. Contrarily, between-participant effects reflect how differences in average behavior relate to depression severity (e.g., whether participants sleeping longer on average have higher or lower depression levels). For within-participant centering, we centered each variable around the participant’s mean to account for variability over time. Second, for between-participant centering, the variables were averaged within participants and then centered across the study population’s mean. This centering approach enables the detection of both individual-level behavioral fluctuations and broader population-level patterns.
PHQ-9 questionnaire analysis
To assess the heterogeneity in self-reported depression, we conducted a descriptive analysis of PHQ-9 scores, applied the Kruskal–Wallis test23 to evaluate group-wise differences in score means and standard deviations, and performed an exploratory analysis for each item across the groups and different depression severity levels. Additionally, we utilized exploratory data analysis to examine the scores across the groups and severity levels.
Association analysis
To investigate the associations between behavioral features and self-reported depression among participants, we conducted exploratory correlation analysis, calculating pair-wise Kendall’s rank correlation coefficients between the behavioral features and PHQ-9 scores. We selected Kendall rank correlation since it does not require the compared variables to be normally distributed or linearly related, and it can be used with ordinal data. For analysis, we used a function implemented in the SciPy library59. We employed two approaches: pooling data from all participants and calculating the coefficients for each participant individually. Due to the multiple comparisons, we applied the FDR correction with the Benjamini-Hochberg procedure60 to control Type I errors. Additionally, we examined whether the associations between behavioral features and depression symptoms varied within participants over time by conducting an exploratory rolling-window correlation analysis. We tested various window sizes, ranging from 28 days to one year. Within each window, we computed the Kendall rank correlation coefficient, shifting the window forward by 14 days to calculate successive correlations. We excluded participants who did not have enough data to fill at least one complete window for a given window size (and subsequent longer window sizes) from the analysis. For each window size, we used 1000 bootstrapping samples to generate more robust distributions of correlation coefficients.
Multilevel modeling
To assess the within- and between-participant effects of behavioral features on PHQ-9 scores, we used multilevel modeling with random intercepts to account for the data’s hierarchical structure. Independent variables consisted of features representing behavioral aspects, including sleep, activity, mobility, sociability, and device usage. PHQ-9 scores were used as the dependent variable. Participants were used as grouping variables. Generalized variance inflation factor (GVIF) was used to assess multicollinearity, keeping only variables with GVIF < 10. We employed a stepwise modeling strategy. First, we started with a baseline model that included only random intercepts for each participant. Second, we included demographic and contextual variables. Next, within-participant variables were added to the model. Finally, between-participant variables were included. The lme4 package61 in R was used for fitting the models, and 95% confidence intervals were estimated using bootstrapping (1000 iterations) with the sjPlot package62. For model comparison, we used the likelihood ratio tests to assess explanatory power and ensure model parsimony. The model formulas and the final list of predictors are shown in Appendix 3.
Supplementary Information
Below is the link to the electronic supplementary material.
Acknowledgements
The computational resources provided by the Aalto Science-IT project are gracefully acknowledged. The collection of data used in this manuscript was made possible with the help of Richard Darst, Jesper Ekelund, Roope Heikkilä, Joel Holmén, Kirsi Riihimäki, and Outi Saleva. We thank them for their valuable efforts at different stages. This research was supported by Wihuri Foundation through a personal research grant to Arsi Ikäheimonen.
Abbreviations
- AIC
Akaike information criterion
- ANOVA
Analysis of variance
- BD
Bipolar disorder
- BH
Benjamini–Hochberg
- BIC
Bayesian information criterion
- BPD
Borderline personality disorder
- CI
Confidence interval
- FDR
False discovery rate
- GPS
Global positioning system
- GVIF
Generalized variance inflation factor
- HUS
Helsinki and Uusimaa Hospital District
- ICC
Intraclass correlation coefficient
- MDD
Major depressive disorder
- MICE
Multivariate Imputation by Chained Equations
- PHQ-9
9-Item Patient Health Questionnaire
- SMS
Short message service
Author contributions
Arsi Ikäheimonen: conceptualization, data analysis, data preprocessing, methodology, study design, visualization, writing—original draft, writing—review & editing, Nguyen Luong: data preprocessing, methodology, study design, multilevel-modeling, writing—review & editing, Ilya Baryshnikov: methodology, data collection, Ti John: methodology, study design, writing—review & editing, Annasofia Martikkala: data collection, writing—review & editing, Erkki Isometsä: conceptualization, data collection, project administration, supervision. Talayeh Aledavood: conceptualization, data collection, methodology, project administration, supervision, writing—review & editing. All authors reviewed the manuscript and approved the final version.
Funding
Wihuri Foundation personal one-year fulltime working grant (00230125).
Data availability
The dataset analyzed in the current study is not publicly available, as the conditions of the granted research permit restrict its use in order to protect the participants’ privacy. However, the data is available from the corresponding author on reasonable request.
Code availability
The code used for preprocessing the data is available on GitHub63.
Declarations
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Ferrari, A. J. et al. Global incidence, prevalence, years lived with disability (YLDs), disability-adjusted life-years (DALYs), and healthy life expectancy (HALE) for 371 diseases and injuries in 204 countries and territories and 811 subnational locations, 1990–2021: a systematic analysis for the Global Burden of Disease Study 2021. Lancet403 (10440), 2133–2161. 10.1016/S0140-6736(24)00757-8 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Global Burden of Disease: findings from the GBD 2021 study|Institute for Health Metrics and Evaluation. (2021). https://www.healthdata.org/research-analysis/library/global-burden-disease–2021-findings-gbd–2021-study. Accessed 18 Feb 2025.
- 3.Simon, G. E., Moise, N. & Mohr, D. C. Management of depression in adults: a review. JAMA332 (2), 141. 10.1001/jama.2024.5756 (2024). [DOI] [PubMed] [Google Scholar]
- 4.James, T. A. et al. Depression and episodic memory across the adult lifespan: a meta-analytic review. Psychol. Bull.147 (11), 1184 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Spiller, T. R. et al. Unveiling the Structure in Mental Disorder Presentations. JAMA Psychiatry. 10.1001/jamapsychiatry.2024.2047 (2024). (Published online 7 August 2024) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Torous, J., Kiang, M. V., Lorme, J. & Onnela, J. P. New tools for new research in psychiatry: a scalable and customizable platform to empower data driven smartphone research. JMIR Ment Health. 3 (2), e16. 10.2196/mental.5165 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Huckvale, K., Venkatesh, S. & Christensen, H. Toward clinical digital phenotyping: a timely opportunity to consider purpose, quality, and safety. Npj Digit. Med.2 (1), 1–11. 10.1038/s41746-019-0166-1 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Bufano, P., Laurino, M., Said, S., Tognetti, A. & Menicucci, D. Digital phenotyping for monitoring mental disorders: systematic review. J. Med. Internet Res.25, e46778. 10.2196/46778 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Leaning, I. E. et al. From smartphone data to clinically relevant predictions: a systematic review of digital phenotyping methods in depression. Neurosci. Biobehav Rev.158, 105541. 10.1016/j.neubiorev.2024.105541 (2024). [DOI] [PubMed] [Google Scholar]
- 10.De Angel, V. et al. Digital health tools for the passive monitoring of depression: a systematic review of methods. Npj Digit. Med.5 (1), 3. 10.1038/s41746-021-00548-8 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Rohani, D. A., Faurholt-Jepsen, M., Kessing, L. V. & Bardram, J. E. Correlations between objective behavioral features collected from mobile and wearable devices and depressive mood symptoms in patients with affective disorders: systematic review. JMIR MHealth UHealth. 6 (8), e9691. 10.2196/mhealth.9691 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Lee, K. et al. Using digital phenotyping to understand health-related outcomes: a scoping review. Int. J. Med. Inf.174, 105061. 10.1016/j.ijmedinf.2023.105061 (2023). [DOI] [PubMed] [Google Scholar]
- 13.Fried, E. I. & Nesse, R. M. Depression is not a consistent syndrome: an investigation of unique symptom patterns in the STAR*D study. J. Affect. Disord. 172, 96–102. 10.1016/j.jad.2014.10.010 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Brietzke, E. et al. Integrating digital phenotyping in clinical characterization of individuals with mood disorders. Neurosci. Biobehav Rev.104, 223–230. 10.1016/j.neubiorev.2019.07.009 (2019). [DOI] [PubMed] [Google Scholar]
- 15.Price, G. D., Heinz, M. V., Song, S. H., Nemesure, M. D. & Jacobson, N. C. Using digital phenotyping to capture depression symptom variability: detecting naturalistic variability in depression symptoms across one year using passively collected wearable movement and sleep data. Transl Psychiatry. 13 (1), 1–10. 10.1038/s41398-023-02669-y (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Lekkas, D., Gyorda, J. A., Price, G. D. & Jacobson, N. C. Depression deconstructed: wearables and passive digital phenotyping for analyzing individual symptoms. Behav. Res. Ther.168, 104382. 10.1016/j.brat.2023.104382 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Bowen, R., Peters, E., Marwaha, S., Baetz, M. & Balbuena, L. Moods in clinical depression are more unstable than severe normal sadness. Front. Psychiatry. 10.3389/fpsyt.2017.00056 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Kleiman, E. M. et al. Examination of real-time fluctuations in suicidal ideation and its risk factors: results from two ecological momentary assessment studies. J. Abnorm. Psychol.126 (6), 726–738. 10.1037/abn0000273 (2017). [DOI] [PubMed] [Google Scholar]
- 19.American Psychiatric Association, ed. Diagnostic and Statistical Manual of Mental Disorders: DSM–5-TR™. Fifth edition, text revision (American Psychiatric Association Publishing, 2022). [Google Scholar]
- 20.van Eeden, W. A., van Hemert, A. M., Carlier, I. V. E., Penninx, B. W. & Giltay, E. J. Severity, course trajectory, and within-person variability of individual symptoms in patients with major depressive disorder. Acta Psychiatr Scand.139 (2), 194–205. 10.1111/acps.12987 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Musliner, K. L., Munk-Olsen, T., Eaton, W. W. & Zandi, P. P. Heterogeneity in long-term trajectories of depressive symptoms: patterns, predictors and outcomes. J. Affect. Disord. 192, 199–211. 10.1016/j.jad.2015.12.030 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Kroenke, K. & Spitzer, R. L. The PHQ–9: a new depression diagnostic and severity measure. Psychiatr Ann.32 (9), 509–515. 10.3928/0048-5713-20020901-06 (2002). [Google Scholar]
- 23.Kruskal, W. H. & Wallis, W. A. Use of ranks in one-criterion variance analysis. J. Am. Stat. Assoc.47 (260), 583–621. 10.1080/01621459.1952.10483441 (1952). [Google Scholar]
- 24.Buyukdura, J. S., McClintock, S. M. & Croarkin, P. E. Psychomotor retardation in depression: biological underpinnings, measurement, and treatment. Prog Neuropsychopharmacol. Biol. Psychiatry. 35 (2), 395–409. 10.1016/j.pnpbp.2010.10.019 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Söderholm, J. J., Socada, J. L., Rosenström, T. H., Ekelund, J. & Isometsä, E. Borderline personality disorder and depression severity predict suicidal outcomes: a six-month prospective cohort study of depression, bipolar depression, and borderline personality disorder. Acta Psychiatr Scand.148 (3), 222–232. 10.1111/acps.13586 (2023). [DOI] [PubMed] [Google Scholar]
- 26.Zhang, Y. et al. Longitudinal relationships between depressive symptom severity and phone-measured mobility: dynamic structural equation modeling study. JMIR Ment Health. 9 (3), e34898. 10.2196/34898 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Stamatis, C. A. et al. Differential temporal utility of passively sensed smartphone features for depression and anxiety symptom prediction: a longitudinal cohort study. Npj Ment Health Res.3 (1), 1. 10.1038/s44184-023-00041-y (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Balliu, B. et al. Personalized mood prediction from patterns of behavior collected with smartphones. Npj Digit. Med.7 (1), 1–14. 10.1038/s41746-024-01035-6 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Aledavood, T. et al. Multimodal digital phenotyping study in patients with major depressive episodes and healthy controls (mobile monitoring of mood): observational longitudinal study. JMIR Ment Health. 12 (1), e63622. 10.2196/63622 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Ikäheimonen, A. et al. Predicting and monitoring symptoms in patients diagnosed with depression using smartphone data: observational study. J. Med. Internet Res.26, e56874. 10.2196/56874 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Berisha, V. et al. Digital medicine and the curse of dimensionality. Npj Digit. Med.4 (1), 1–8. 10.1038/s41746-021-00521-5 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Mohr, D.C., Zhang, M. & Schueller, S.M. Personal sensing: understanding mental health using ubiquitous sensors and machine learning. Annu. Rev. Clin. Psychol.13 (13, 2017), 23–47. 10.1146/annurev-clinpsy-032816-044949 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.White, I. R., Royston, P. & Wood, A. M. Multiple imputation using chained equations: issues and guidance for practice. Stat. Med.30 (4), 377–399. 10.1002/sim.4067 (2011). [DOI] [PubMed] [Google Scholar]
- 34.Akbarova, S. et al. Improving depression severity prediction from passive sensing: symptom-profiling approach. Sensors23 (21), 8866. 10.3390/s23218866 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Busk, J. et al. Forecasting mood in bipolar disorder from smartphone self-assessments: hierarchical Bayesian approach. JMIR MHealth UHealth10.2196/15028 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Zhang, Y. et al. Predicting depressive symptom severity through individuals’ nearby bluetooth device count data collected by mobile phones: preliminary longitudinal study. JMIR MHealth UHealth9(7):e29840. doi: 10.2196/29840 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Kathan, A. et al. Personalised depression forecasting using mobile sensor data and ecological momentary assessment. Front. Digit. Health10.3389/fdgth.2022.964582 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Adler, D. A., Wang, F., Mohr, D. C. & Choudhury, T. Machine learning for passive mental health symptom prediction: generalization across different longitudinal mobile sensing studies. PLOS ONE. 17 (4), e0266516. 10.1371/journal.pone.0266516 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Xu, X. et al. Leveraging collaborative-filtering for personalized behavior modeling: a case study of depression detection among college students. Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.5 (1), 411–4127. 10.1145/3448107 (2021). [Google Scholar]
- 40.Sheehan, D. V. The Mini-International Neuropsychiatric Interview (M.I.N.I.): The Development and Validation of a Structured Diagnostic Psychiatric Interview for DSM-IV and ICD–10. J Clin Psychiatry59 22–33 (1998). [PubMed] [Google Scholar]
- 41.First, M. B., Benjamin, L. S., Gibbon, M., Spitzer, R. L. & Williams, J. B. Structured Clinical Interview for DSM-IV Axis II Personality Disorders (American Psychiatric, 1997). [Google Scholar]
- 42.Baryshnikov, I. et al. Relationship between daily rated depression symptom severity and the retrospective self-report on PHQ–9: a prospective ecological momentary assessment study on 80 psychiatric outpatients. J. Affect. Disord. 324, 170–174. 10.1016/j.jad.2022.12.127 (2023). [DOI] [PubMed] [Google Scholar]
- 43.Ferreira, D., Kostakos, V. & Dey, A. K. AWARE: mobile context instrumentation framework. Front. ICT. 10.3389/fict.2015.00006 (2015). [Google Scholar]
- 44.Aledavood, T. et al. Data collection for mental health studies through digital platforms: requirements and design of a prototype. JMIR Res. Protoc.6 (6), e110 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Masud, M. T. et al. Unobtrusive monitoring of behavior and movement patterns to detect clinical depression severity level via smartphone. J. Biomed. Inf.103, 103371. 10.1016/j.jbi.2019.103371 (2020). [DOI] [PubMed] [Google Scholar]
- 46.Pedrelli, P. et al. Monitoring changes in depression severity using wearable and mobile sensors. Front Psychiatry (2020). 10.3389/fpsyt.2020.584711 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Chikersal, P. et al. Detecting depression and predicting its onset using longitudinal symptoms captured by passive sensing: a machine learning approach with robust feature selection. ACM Trans. Comput-Hum Interact.28 (1), 31–341. 10.1145/3422821 (2021). [Google Scholar]
- 48.Saeb, S., Lattie, E. G., Schueller, S. M., Kording, K. P. & Mohr, D. C. The relationship between mobile phone location sensor data and depressive symptom severity. PeerJ4, e2537 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Laiou, P. et al. The association between home stay and symptom severity in major depressive disorder: preliminary findings from a multicenter observational study using geolocation data from smartphones. JMIR MHealth UHealth. 10 (1), e28095. 10.2196/28095 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Cao, J. et al. Tracking and predicting depressive symptoms of adolescents using smartphone-based self-reports, parental evaluations, and passive phone sensor data: development and usability study. JMIR Ment Health. 7 (1), e14045. 10.2196/14045 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Sverdlov, O. et al. A study of novel exploratory tools, digital technologies, and central nervous system biomarkers to characterize unipolar depression. Front. Psychiatry10.3389/fpsyt.2021.640741 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Sun, S. et al. Challenges in using mHealth data from smartphones and wearable devices to predict depression symptom severity: retrospective analysis. J. Med. Internet Res.25, e45233. 10.2196/45233 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Zou, B. et al. Sequence modeling of passive sensing data for treatment response prediction in major depressive disorder. IEEE Trans. Neural Syst. Rehabil Eng. Publ IEEE Eng. Med. Biol. Soc.31, 1786–1795. 10.1109/TNSRE.2023.3260301 (2023). [DOI] [PubMed] [Google Scholar]
- 54.Bai, R. et al. Tracking and monitoring mood stability of patients with major depressive disorder by machine learning models using passive digital data: prospective naturalistic multicenter study. JMIR MHealth UHealth ;9(3):e24365. doi: 10.2196/24365 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Levis, B., Benedetti, A. & Thombs, B. D. Accuracy of Patient Health Questionnaire–9 (PHQ–9) for screening to detect major depression: individual participant data meta-analysis. BMJ Published online April. 9, l1476. 10.1136/bmj.l1476 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Ikäheimonen, A. et al. Niimpy: a toolbox for behavioral data analysis. SoftwareX23, 101472. 10.1016/j.softx.2023.101472 (2023). [Google Scholar]
- 57.Mahir, A. et al. Multimodal sleep measurement and alignment analysis in outpatients with major depressive episode: observational study. JMIR mHealth uHealth. 13 (1), e82465 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Curran, P. J. & Bauer, D. J. The disaggregation of within-person and between-person effects in longitudinal models of change. Annu. Rev. Psychol.62 (1), 583–619. 10.1146/annurev.psych.093008.100356 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Virtanen, P. et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods. 17 (3), 261–272. 10.1038/s41592-019-0686-2 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Benjamini, Y. & Hochberg, Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R Stat. Soc. Ser. B Methodol.57 (1), 289–300. 10.1111/j.2517-6161.1995.tb02031.x (1995). [Google Scholar]
- 61.Bates, D., Mächler, M., Bolker, B. & Walker, S. Fitting linear mixed-effects models using lme4. J. Stat. Softw.67, 1–48. 10.18637/jss.v067.i01 (2015). [Google Scholar]
- 62.Lüdecke, D. et al. Data Visualization for Statistics in Social Science. Published online November 29, (2024). https://cran.r-project.org/web/packages/sjPlot/index.html. Accessed 11 June 2025.
- 63.DigiTraces Lab. Niimpy. Published online 2025. https://github.com/digitraceslab/niimpy
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The dataset analyzed in the current study is not publicly available, as the conditions of the granted research permit restrict its use in order to protect the participants’ privacy. However, the data is available from the corresponding author on reasonable request.
The code used for preprocessing the data is available on GitHub63.




