Abstract
Ecological momentary assessments (EMA) have transformed mobile mental health by capturing real-time fluctuations in psychological states and behavior. While forecasting future states from EMA data is crucial for adaptive interventions, most current approaches to modeling the underlying psychological mechanisms rely on linear assumptions. These include common network-based methods such as vector autoregression (VAR) or Kalman filtering, which assume fixed and proportional relationships among variables. However, a growing body of evidence suggests that psychological dynamics exhibit nonlinear properties, raising concerns about the adequacy of linear models for both interpretation and prediction. Here, we leverage three independent 40-day micro-randomized trials (N=145) to benchmark a spectrum of models—from naïve baselines and linear network models to autoregressive Transformers and nonlinear state-space models (SSMs) built on piecewise-linear recurrent neural networks (PLRNNs). PLRNNs provided the most accurate forecasts, including predictions of how individuals responded to interventions. Beyond superior forecasting, the PLRNN’s latent-network structure allowed us to simulate how changes in individual psychological states spread through the system. This revealed interpretable patterns of influence—highlighting central network nodes like sad or down as high-impact intervention targets based on their strong ripple effects. Critically, performance remained robust under real-time retraining constraints and varying data completeness, underscoring the practical viability of nonlinear SSMs in deployed mobile mental health systems. Our results establish PLRNN-based forecasting as a powerful, interpretable foundation for real-time, model-predictive control of digital mental health.
Introduction: The Challenge of Nonlinearity in Mental Health
Digital mental health applications increasingly rely on Ecological Momentary Assessment (EMA)—frequent, real-time surveys of a user's psychological state—to track well-being. The ultimate goal of these tools is to provide Just-in-Time Adaptive Interventions (JITAIs), delivering support exactly when a user needs it most.
However, a significant hurdle remains: most current forecasting tools utilize linear models, such as Vector Autoregression (VAR), which assume fixed and proportional relationships between variables. Human psychology is notoriously nonlinear, characterized by sudden shifts, feedback loops, and complex interactions. If models are too simplistic, forecasts become unreliable, leading to poorly timed or ineffective interventions. This research seeks to establish a more robust, nonlinear framework for modeling these dynamics using Piecewise-Linear Recurrent Neural Networks (PLRNNs).
Methodology and Benchmarking
The study utilized data from three independent 40-day micro-randomized trials (N=145 total) conducted via the AI4U living lab. Participants reported on 15 primary well-being items (e.g., mood, stress, loneliness) multiple times daily. The trials also included eight different Ecological Momentary Interventions (EMIs), such as breathing exercises or journaling, allowing models to learn how users respond to specific "nudges."
Researchers benchmarked a hierarchy of models:
- Static Baselines: Simple "guess the mean" or "last value" approaches.
- Linear Network Models: VAR and Kalman filters.
- Autoregressive Transformers: Modern AI sequence models.
- Nonlinear State-Space Models (SSMs): Specifically the PLRNN, which uses piecewise-linear activations to capture complex dynamics while remaining mathematically tractable.
Key Results: Accuracy and Robustness
The benchmarking results highlighted a critical flaw in traditional approaches: linear models (VAR) often performed worse than simple baselines, suggesting their "fixed relationship" assumption is fundamentally mismatched with psychological data.
In contrast, the PLRNN consistently achieved the lowest Mean Absolute Error (MAE) across all test sets (Sample 2 MAE = 0.831; Sample 3 MAE = 0.795), significantly outperforming both linear models and Transformers. Furthermore, the PLRNN demonstrated remarkable robustness to "ghosting" (missing data), maintaining accuracy even when 80% of data was absent. It also successfully predicted intervention responses in 70–81% of participants, showing a positive correlation between predicted and observed changes.
The "Ripple Effect" and Interpretability
Unlike "black box" deep learning models, the PLRNN allows for perturbation analysis. By "nudging" a specific latent variable, researchers can analytically calculate how that change spreads through the psychological network over time—a metric called the relative Cumulative Impulse Response (rCIR).
This analysis revealed that not all emotions are created equal. As shown in the network visualization (Figure 5), states like "sad" or "down" act as central hubs. Intervening on these nodes creates a massive "ripple effect" across the entire network. Conversely, intervening on peripheral nodes like "tiredness" might have a much weaker, localized impact. This interpretability allows clinicians to identify high-leverage targets for digital interventions.
Conclusion and Future Directions
While the current model excels at predicting proximal effects (immediate responses to interventions), validating long-term outcomes remains a challenge due to external life factors. Future work will focus on integrating multimodal data, such as passive sensing from wearables (heart rate, GPS), to provide richer context. The ultimate vision is model-predictive control: an AI system that doesn't just forecast mood, but actively calculates the optimal intervention to steer a user's mental health trajectory toward a healthy state.
Summary updated