Dynamic Context Modeling for Longitudinal Mental Health Monitoring under Distribution Shift
Abstract
Mobile and wearable sensing offer a scalable pathway to longitudinal mental health monitoring, yet accurate prediction remains limited by two fundamental forms of distribution shift in human behavior. The first arises across users, where similar sensor patterns can carry different clinical meanings, a phenomenon we call inter-subject heterogeneity. The second arises within a single user, where behavioral baselines themselves evolve over time, producing intra-subject behavioral drift. In this domain, ground-truth labels come from Ecological Momentary Assessment (EMA), brief self-reports collected in everyday life that are intrusive and often sparse. As a result, approaches that address these distribution shifts by updating model parameters are difficult to apply. To address this gap, we propose DyCon (Dynamic Context Modeling), a dual-loop framework that personalizes by building and evolving a separate natural-language personal context for each user, without updating any model parameters. Within each session, a momentary refinement loop restructures this personal context using EMA feedback to account for inter-subject heterogeneity. Across sessions, a longitudinal update loop incorporates the refined context when the associated prediction meets a predefined error criterion, linking momentary refinement to subsequent predictions. Extensive offline experiments on four public benchmarks (GLOBEM, PMData, StudentLife, LifeSnaps) suggest that DyCon supports longitudinal personalization under sparse supervision, with relative predictive benefits on GLOBEM during substantial changes in self-reported states. Our results suggest that evolving an explicit personal context offers a practical pathway for longitudinal personalization in real-world health monitoring. Code is available at https://github.com/seun9wanjin/DyCon.