A Review of Contextual Bandits for Just-in-Time Adaptive Interventions in Mobile Health
Abstract
Mobile health interventions are now common, but many still run on fixed schedules even though people's needs can change a lot within the same day, which can lead to missed opportunities for timely support and reduced effectiveness of the interventions. This limitation is one reason JITAI research has become important. A JITAI is not only about what support should be given, but also about when it should be given and withheld. This review examines that problem through the lens of contextual bandits. It explains how JITAIs are structured, why they require dynamic behavior models, and how repeated intervention decisions can be studied and formalized in mobile health. HeartSteps and Oralytics are used to show how these ideas look in practice. This study finds that contextual bandits offer a workable framework for JITAIs in mobile health, but their use is still limited by small samples, heterogeneity, changing responsivity, intervention burden, availability, and the difficulty of defining reward well.
References
- Nahum-Shani, I., Smith, S. N., Spring, B. J., Collins, L. M., Witkiewitz, K., Tewari, A., & Murphy, S. A. (2018). Just-in-time adaptive interventions (JITAIs) in mobile health: Key components and design principles for ongoing health behavior support. Annals of Behavioral Medicine, 52(6), 446-462. https: //doi.org/10.1007/s12160-016-9830-8
- Nahum-Shani, I., Hekler, E. B., & Spruijt-Metz, D. (2015). Building health behavior models to guide the development of just-in-time adaptive interventions: A pragmatic framework. Health Psychology, 34(Suppl), 1209-1219. https: //doi.org/10.1037/hea0000306
- Klasnja, P., Hekler, E. B., Shiffman, S., Boruvka, A., Almirall, D., Tewari, A., & Murphy, S. A. (2015). Microrandomized trials: An experimental design for developing just-in-time adaptive interventions. Health Psychology, 34(Suppl), 1220-1228. https: //doi.org/10.1037/hea0000305
- Tewari, A., & Murphy, S. A. (2017). From ads to interventions: Contextual bandits in mobile health. In J. M. Rehg, S. A. Murphy, & S. Kumar (Eds.), Mobile health: Sensors, analytic methods, and applications (pp. 495-517). Cham, Switzerland: Springer. https: //doi.org/10.1007/978-3-319-51394-2_25
- Greenewald, K., Tewari, A., Klasnja, P., & Murphy, S. A. (2017). Action centered contextual bandits. Advances in Neural Information Processing Systems, 30, 5973-5981.
- Tomkins, S., Liao, P., Klasnja, P., & Murphy, S. (2021). IntelligentPooling: Practical Thompson sampling for mHealth. Machine Learning, 110(7), 2117-2156. https: //doi.org/10.1007/s10994-021-05995-8
- Liao, P., Greenewald, K., Klasnja, P., & Murphy, S. A. (2020). Personalized HeartSteps: A reinforcement learning algorithm for optimizing physical activity. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 4(1), 1-22. https: //doi.org/10.1145/3381007
- Spruijt-Metz, D., Marlin, B. M., Pavel, M., Rivera, D. E., Hekler, E., De La Torre, S., et al. (2022). Advancing behavioral intervention and theory development for mobile health: The HeartSteps II protocol. International Journal of Environmental Research and Public Health, 19(4), 2267. https: //doi.org/10.3390/ijerph19042267
- Trella, A. L., Zhang, K. W., Nahum-Shani, I., Shetty, V., Doshi-Velez, F., & Murphy, S. A. (2022). Designing reinforcement learning algorithms for digital interventions: Pre-implementation guidelines. Algorithms, 15(8), 255. https: //doi.org/10.3390/a15080255
- Trella, A. L., Zhang, K. W., Nahum-Shani, I., Shetty, V., Doshi-Velez, F., & Murphy, S. A. (2023). Reward design for an online reinforcement learning algorithm supporting oral self-care. Proceedings of the AAAI Conference on Artificial Intelligence, 37(13), 15724-15730. https: //doi.org/10.1609/aaai.v37i13.26866
- Trella, A. L., Zhang, K. W., Jajal, H., Nahum-Shani, I., Shetty, V., Doshi-Velez, F., & Murphy, S. A. (2025). A deployed online reinforcement learning algorithm in an oral health clinical trial. Proceedings of the AAAI Conference on Artificial Intelligence, 39(28), 28792-28800. https: //doi.org/10.1609/aaai.v39i28.35143