MiWaves Reinforcement Learning Algorithm

Susobhan Ghosh, Yongyi Guo, Pei-Yao Hung, Lara N. Coughlin, Erin Bonar, Inbal Nahum-Shani, Maureen Walton, Susan A. MurphyarXiv 2024 · DOI

Introduction

Mobile health (mHealth) applications offer a transformative approach to delivering support for behavioral health issues, such as substance use. By providing Just-In-Time Adaptive Interventions (JITAIs), these apps can deliver nudges when users are most in need. However, a significant challenge in JITAI design is "message fatigue"—the tendency for users to disengage if prompts are too frequent or poorly timed. The MiWaves algorithm, developed by researchers from Harvard, the University of Wisconsin-Madison, and the University of Michigan, addresses this by using reinforcement learning (RL) to personalize intervention timing for emerging adults aiming to reduce cannabis use.

Methodology

The MiWaves algorithm is framed as a contextual bandit problem, where the system observes a user's state (e.g., time of day, recent substance use) and decides whether to send an intervention message (action) to maximize a reward (user engagement and reduced use).

Bayesian Mixed Linear Model

To handle the "cold start" problem where little data is available for new users, MiWaves employs a Bayesian Mixed Linear Model. This model incorporates both population-level effects—learning from the aggregate behavior of all users—and individual-level random effects. This "pooling" of data allows the algorithm to learn general trends quickly while gradually tailoring its policy to the specific nuances of each participant.

Action-Centering

To improve robustness, the researchers implemented "action-centering." This technique centers the action variable, allowing the model to isolate the specific treatment effect (the benefit of sending a message) from the user's baseline behavior. This prevents the algorithm from being confounded by natural fluctuations in user state that are independent of the intervention.

Smooth Posterior Sampling

A key innovation in MiWaves is the move away from traditional hard-threshold decision-making. Standard Thompson sampling often uses an indicator function to decide on an action based on whether the posterior probability exceeds a threshold. However, this can lead to erratic policy changes. MiWaves instead uses a generalized logistic function to create a "smooth" transition in intervention probabilities.

Comparison between a hard indicator function (a) and a smooth generalized logistic function (b) for posterior sampling.

This smoothing ensures "policy concentration," where the probability of an action changes gradually as evidence accumulates, leading to more stable and replicable intervention strategies.

Data and Simulation

The algorithm was developed using a simulation testbed based on the SARA (Substance Use Research Assistant) dataset, which included 30 days of data from 70 participants. Because SARA collected data weekly, researchers mathematically normalized it to simulate daily interactions.

The finalized algorithm was then deployed in a real-world pilot study involving 122 participants between March and May 2024. To ensure the algorithm was effective from Day 1, the SARA data was used to "warm-start" the model by setting informative priors.

Key Insights and Results

Simulations involving 500 trials across various environment types demonstrated that mixed-effects models consistently outperformed fully pooled models, particularly for users with lower initial engagement. The researchers also found that "shrinking" the prior variance for complex interactions helped the model remain simple and robust, only adopting complex patterns when supported by strong evidence.

While simpler models performed well in controlled simulations, the team opted for a more complex variant for the real-world trial to better capture the nuances of human psychology. The empirical validation confirmed that the algorithm could effectively detect intervention signals even with conservative variance settings.

Conclusion

The MiWaves algorithm represents a significant step forward in personalizing mHealth interventions. By balancing group-level learning with individual personalization and prioritizing policy stability through smooth posterior sampling, MiWaves offers a framework for more effective and less intrusive digital health support. Future work will analyze the clinical outcomes of the pilot study to quantify the algorithm's impact on reducing cannabis use.

Reference: Ghosh, S., et al. (2024). MiWaves Reinforcement Learning Algorithm. arXiv:2408.15076v1 [cs.LG].

Summary updated

BibTeX
@misc{ghosh2024miwaves,
  author = {Susobhan Ghosh and Yongyi Guo and Pei-Yao Hung and Lara N. Coughlin and Erin Bonar and Inbal Nahum-Shani and Maureen Walton and Susan A. Murphy},
  title = {{MiWaves Reinforcement Learning Algorithm}},
  year = {2024},
  eprint = {2408.15076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.15076},
}
Figure