Abstract
This paper provides a practical framework for implementing online reinforcement learning (RL) within mobile health (mHealth) clinical trials. Using the LowSalt4Life 2 (LS4L2) trial as a case study, the authors address the challenges of balancing the theoretical power of contextual bandits with the practical constraints of small datasets, missing values, and high computational costs.
Introduction
While reinforcement learning is a staple of personalization in the technology sector, its application in clinical trials is fraught with unique challenges. In a typical mHealth study, researchers aim to deliver Just-In-Time Adaptive Interventions (JITAIs)—such as a notification to choose low-sodium food when a user enters a grocery store. However, standard RL algorithms often fail in this context because clinical data is scarce, rewards are often delayed or invisible (e.g., immediate sodium intake), and complex models can suffer from instability or "separation" when data is thin.
Methods and Study Design
The authors utilized a Contextual Bandit framework—specifically Thompson Sampling—to decide whether or not to send a notification. The core of their approach is a Hierarchical Bayesian Logistic Regression model.
Key innovations in the implementation include:
- Data-Adaptive Model Selection: Instead of a fixed model, a rule-based system determines which interaction terms to include based on the volume of data collected for a specific participant.
- Weakly Informative Priors: Specific Bayesian priors ensure the model remains stable and provides valid randomization probabilities even when data is sparse.
- Proxy Rewards: Since actual sodium intake is difficult to measure instantly, the researchers operationalized "app engagement within 30 minutes" as a measurable proxy for the behavioral goal.
- Tiered Updates: To manage computational costs and ensure trial stability, the algorithm updates every two months rather than after every decision point.
Evaluation and Results
The study evaluated this approach using synthetic datasets modeled after the parameters of the real-world LS4L2 trial, mimicking participant enrollment and the frequency of decision points (trips to grocery stores or restaurants). They compared three versions: a "Simple" model (main effects only), a "Complicated" model (all possible interactions), and the proposed adaptive "LS4L2" model.
Key Insights
- Stability over Optimization: In clinical settings, an algorithm failure is a protocol deviation. The authors prioritize stability, ensuring the model always produces a valid randomization probability.
- Computational Efficiency: While the "Complicated" model took over 14 days to complete a single simulation, the adaptive model achieved similar performance with a fraction of the computational cost, making it feasible for live trials.
- Partial Pooling: By using a hierarchical structure, the model can "borrow" information from the general population when an individual has little data, gradually personalizing as more data is acquired.
Performance
In simple scenarios with no contextual moderators, the adaptive model performed nearly as well as the simple model. In complex scenarios with high heterogeneity, the adaptive model significantly outperformed the simple model and matched the performance of the complicated model while remaining well-calibrated.
Limitations and Future Work
Contextual bandits are inherently "myopic," focusing on immediate rewards without accounting for long-term habituation. Future work may incorporate penalties for over-messaging. Additionally, while "app opening" is a functional proxy, future research should seek intermediate outcomes more tightly coupled with ultimate clinical goals, such as blood pressure reduction. As trials scale, the authors suggest exploring federated learning or approximate Bayesian methods to maintain computational feasibility.
Summary updated