Cross-platform Prediction of Depression Treatment Outcome Using Location Sensory Data on Smartphones

Soumyashree Sahoo, Chinmaey Shende, Md. Zakir Hossain, Parit Patel, Yushuo Niu, Xinyu Wang, Shweta Ware, Jinbo Bi, Jayesh Kamath, Alexander Russel, Dongjin Song, Qian Yang, Bing Wang

TL;DR

Passive smartphone location data can predict depression treatment outcomes just as effectively as tedious weekly questionnaires. By using domain adaptation to bridge the gap between how Android and iOS collect location data, researchers built machine learning models that achieve an $F_1$ score of up to 0.67 using only passive sensing and a single baseline clinical score.

What Problem Does This Paper Address?

Monitoring how a patient responds to depression treatment typically requires frequent self-reported questionnaires or clinician interviews. These methods are burdensome for patients, costly, and highly susceptible to recall or social desirability biases.

While passive sensing via smartphone GPS offers a continuous, objective alternative, it faces a major technical roadblock: cross-platform heterogeneity. Android allows apps to poll location periodically in the background (e.g., every 10 minutes), whereas iOS enforces strict background limits, forcing apps to rely on event-based triggers (like moving a certain distance). This difference creates vastly different feature distributions, making it incredibly difficult to train a single, unified machine learning model without severely reducing sample sizes or degrading performance.

Methods

To solve the cross-platform data mismatch, the authors developed a pipeline centered around domain adaptation:

  1. Data Fusion & Pre-processing: The authors combined raw GPS data with WiFi association events (using the access point's location to approximate the user's position) to fill in missing data gaps. The final timeline was upsampled to 1-minute intervals.
  2. Feature Extraction: They extracted 8 distinct mobility features using DBSCAN clustering, including location variance, entropy (variability of time spent at different places), and percentage of time spent at home.
  3. Cross-Platform Domain Adaptation: They adapted a technique called CORrelation ALignment (CORAL) to align the second-order statistics (covariance matrices) of the Android and iOS feature spaces. They tested three setups: Android-transformed (mapping Android to iOS space), iOS-transformed, and a novel dual-transformed approach that maps both platforms simultaneously into a brand-new, shared feature space.
  4. Classification: They trained Support Vector Machines (SVM with an RBF kernel) and XGBoost models using a leave-one-user-out cross-validation strategy to predict whether a patient's depression was "improved" or "not improved."

Datasets

The study evaluated data from a community sample tracking 104 participants initially, which filtered down to 66 active users (21 Android, 45 iOS) monitored for up to 12 weeks.

  • Ground Truth: Monthly clinician-administered Clinical Global Impressions-Improvement (CGI-I) scores.
  • Clinical Metrics: Quick Inventory of Depressive Symptomatology (QIDS) scores collected at baseline and every 7 days.

Key Insights and Ideas

  • The Platform Gap is Real: Operating system restrictions fundamentally distort behavioral data. As shown in Figure 1, Android intervals cluster tightly around the 10-minute polling rate, while iOS intervals are widely distributed due to event-driven logging.
Fig. 1. Time duration for which a location measurement is valid when merging GPS and WiFi location data (considering the data collected 6am - 10pm each day).
  • Shared Spaces Win: Instead of forcing one platform's data to look like the other, mapping both to a completely new, joint feature space (dual-transformation) yields the best alignment and predictive accuracy.
  • Baseline + Passive Sensing = Success: You don't need continuous questionnaires to track improvement. Combining passive location tracking with just one initial baseline questionnaire score provides enough context to match the accuracy of invasive weekly tracking.

Key Results

  • The Questionnaire Baseline: Models using weekly self-reported QIDS questionnaires achieved an $F_1$ score of 0.68 (SVM) and 0.69 (XGBoost).
  • The Impact of Domain Adaptation: Without domain adaptation, combining Android and iOS data yielded poor results ($F_1$ around 0.51 for location-only features).
  • Passive Sensing Performance: Using the dual-transformed domain adaptation approach with SVM, a model utilizing current location data, location baseline, and the initial baseline QIDS score achieved an $F_1$ score of 0.65 overall, and up to 0.67 for the iOS subset—nearly matching the performance of the burdensome weekly questionnaires.

Limitations and Future Work

  • Small & Imbalanced Cohort: The dataset was limited to 66 participants and was heavily skewed toward female users (82.81%) and iOS devices, which can introduce bias.
  • Missing Data Gaps: Despite GPS-WiFi fusion, significant chunks of location data were still missing, forcing the authors to throw out several participants' intervals entirely.
  • Future Directions: The authors suggest developing more advanced data imputation techniques to handle large missing data blocks, testing on larger and more gender-balanced cohorts, and exploring less diverse demographic groups to build highly customized models.

Summary updated

BibTeX
@misc{sahoo2025cross,
  author = {Soumyashree Sahoo and Chinmaey Shende and Md. Zakir Hossain and Parit Patel and Yushuo Niu and Xinyu Wang and Shweta Ware and Jinbo Bi and Jayesh Kamath and Alexander Russel and Dongjin Song and Qian Yang and Bing Wang},
  title = {{Cross-platform Prediction of Depression Treatment Outcome Using Location Sensory Data on Smartphones}},
  year = {2025},
  eprint = {2503.07883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.07883},
}
Figure