A Deployed Online Reinforcement Learning Algorithm in an Oral Health Clinical Trial

Anna L. Trella, Kelly W. Zhang, Hinal Jajal, Inbal Nahum-Shani, Vivek Shetty, Finale Doshi-Velez, Susan A. Murphy

Abstract

Deploying Reinforcement Learning (RL) in live clinical settings presents unique challenges, ranging from rigid regulatory constraints to extreme data scarcity. This paper details the deployment of Oralytics, a mobile health (mHealth) system using a contextual bandit algorithm to optimize oral health prompts. By utilizing a "full-pooling" strategy and robust fallback mechanisms, the system successfully navigated a 70-day clinical trial, demonstrating that engineering for autonomy and stability is as critical as algorithmic design in real-world applications.

Introduction

Dental disease remains a significant public health issue, largely driven by low adherence to basic oral hygiene routines. While mHealth interventions can improve habits, they often face "prompt fatigue," where users habituate to or become annoyed by frequent notifications. Finding the optimal timing for these prompts is a classic sequential decision-making problem, yet standard RL approaches struggle in clinical environments.

Clinical trials funded by organizations like the NIH impose a "straightjacket" of pre-registration, requiring algorithms to be autonomous and replicable without mid-trial manual tuning. Furthermore, the short duration of these trials and the limited number of participants create a high-noise, low-data environment where traditional RL agents fail to converge.

System Design and Methods

The Oralytics system employs a Thompson-sampling contextual bandit to decide whether to send an engagement prompt. The state space includes user-specific features such as time of day, recent brushing quality, and prior app engagement.

System architecture of the Oralytics platform, integrating the RL Service with the clinical trial controller.

To address data scarcity, the team implemented a Full-Pooling strategy. Instead of learning individual models for each user, the algorithm aggregates data from all 79 participants into a single shared reward model. This approach stabilizes the learning signal by trading off fine-grained personalization for reduced variance.

Deployment and Robustness

A key contribution of this work is the formalization of "Safety Nets" within the RL pipeline. In a live trial, technical failures—such as server outages or database timeouts—cannot be allowed to compromise the intervention. The authors pre-registered three fallback methods to ensure the trial's integrity.

Frequency and impact of fallback methods triggered during the 70-day clinical trial.

As shown in the deployment data, these fallbacks were essential. For instance, a pre-generated schedule of actions was pushed to participants' apps when the RL service was unreachable, preventing large-scale data loss and ensuring that the "intervention" (the prompts) continued as planned.

Key Results and Insights

The deployment yielded several critical insights for applied RL:

  • Pooling vs. Personalization: Counter-intuitively, simulations showed that a "No-Pooling" approach performed worse than the shared global model. In high-noise human behavior data, the stability of a pooled model outweighs the benefits of individual tailoring in the short term.
  • Evidence of Learning: Through re-sampling analysis, the researchers confirmed the algorithm learned meaningful patterns. It identified that prompts were most effective in the evening for users exhibiting poor brushing habits and low recent engagement.
  • Quantitative Performance: The Full-Pooling approach achieved a higher average Oral Self-Care Behavior (OSCB) score (69.724) compared to the No-Pooling baseline (69.375) in counterfactual simulations.

Conclusion

The Oralytics trial demonstrates that successful real-world RL deployment requires treating engineering robustness and clinical constraints as primary design requirements. While the current study assumed participant homogeneity through full-pooling, future work will explore "partial pooling" to balance group-level stability with individual needs. A full-scale Randomized Controlled Trial (RCT) is planned for 2025 to evaluate long-term clinical health outcomes.

Summary updated

BibTeX
@inproceedings{trella2025deployed,
  author = {Anna L. Trella and Kelly W. Zhang and Hinal Jajal and Inbal Nahum-Shani and Vivek Shetty and Finale Doshi-Velez and Susan A. Murphy},
  title = {{A Deployed Online Reinforcement Learning Algorithm in an Oral Health Clinical Trial}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i28.35143},
}
Figure