Tailored Behavior-Change Messaging for Physical Activity: Integrating Contextual Bandits and Large Language Models
Haochen Song, Dominik Hofer, Rania Islambouli, Laura Hawkins, Ananya Bhattacharjee, Zahra Hassanzadeh, Jan Smeddinck, Meredith Franklin, Joseph Jay Williams

TL;DR
This paper introduces a hybrid approach combining contextual bandits and large language models to personalize behavioral messages for physical activity, improving intervention effectiveness and interpretability in a 30-day trial.
Contribution
It presents a novel hybrid cMABxLLM method that personalizes messages using contextual factors, reducing token usage and enhancing intervention balance compared to prior fixed-template methods.
Findings
cMABxLLM retains message acceptance and personalization.
Reduces token usage in message generation.
Improves support for under-delivered intervention types.
Abstract
Contextual multi-armed bandit (cMAB) algorithms offer a promising framework for adapting behavioral interventions to individuals over time. However, cMABs often require large samples to learn effectively and typically rely on a finite pre-set of fixed message templates. In this paper, we present a hybrid cMABxLLM approach in which the cMAB selects an intervention type, and a large language model (LLM) which personalizes the message content within the selected type. We deployed this approach in a 30-day physical-activity intervention, comparing four behavioral change intervention types: behavioral self-monitoring, gain-framing, loss-framing, and social comparison, delivered as daily motivational messages to support motivation and achieve a daily step count. Message content is personalized using dynamic contextual factors, including daily fluctuations in self-efficacy, social influence,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBehavioral Health and Interventions · Digital Mental Health Interventions · Innovative Human-Technology Interaction
MethodsCausal inference
