Tailored Behavior-Change Messaging for Physical Activity: Integrating Contextual Bandits and Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Song, Haochen, Hofer, Dominik, Islambouli, Rania, Hawkins, Laura, Bhattacharjee, Ananya, Hassanzadeh, Zahra, Smeddinck, Jan, Franklin, Meredith, Williams, Joseph Jay
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910038418784256
author Song, Haochen
Hofer, Dominik
Islambouli, Rania
Hawkins, Laura
Bhattacharjee, Ananya
Hassanzadeh, Zahra
Smeddinck, Jan
Franklin, Meredith
Williams, Joseph Jay
author_facet Song, Haochen
Hofer, Dominik
Islambouli, Rania
Hawkins, Laura
Bhattacharjee, Ananya
Hassanzadeh, Zahra
Smeddinck, Jan
Franklin, Meredith
Williams, Joseph Jay
contents 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, and regulatory focus. Over the trial, participants received daily messages assigned by one of five models: equal randomization (RCT), cMAB only, LLM only, LLM with interaction history, or cMABxLLM. Outcomes include motivation towards physical activity and message usefulness, assessed via ecological momentary assessments (EMAs). We evaluate and compare the five delivery models using pre-specified statistical analyses that account for repeated measures and time trends. We find that the cMABxLLM approach retains the perceived acceptance of LLM-generated messages, while reducing token usage and providing an explicit, reproducible decision rule for intervention selection. This hybrid approach also avoids the skew in intervention delivery by improving support for under-delivered intervention types. More broadly, our approach provides a deployable template for combining Bayesian adaptive experimentation with generative models in a way that supports both personalization and interpretability.
format Preprint
id arxiv_https___arxiv_org_abs_2506_07275
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Tailored Behavior-Change Messaging for Physical Activity: Integrating Contextual Bandits and Large Language Models
Song, Haochen
Hofer, Dominik
Islambouli, Rania
Hawkins, Laura
Bhattacharjee, Ananya
Hassanzadeh, Zahra
Smeddinck, Jan
Franklin, Meredith
Williams, Joseph Jay
Machine Learning
Human-Computer Interaction
Applications
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, and regulatory focus. Over the trial, participants received daily messages assigned by one of five models: equal randomization (RCT), cMAB only, LLM only, LLM with interaction history, or cMABxLLM. Outcomes include motivation towards physical activity and message usefulness, assessed via ecological momentary assessments (EMAs). We evaluate and compare the five delivery models using pre-specified statistical analyses that account for repeated measures and time trends. We find that the cMABxLLM approach retains the perceived acceptance of LLM-generated messages, while reducing token usage and providing an explicit, reproducible decision rule for intervention selection. This hybrid approach also avoids the skew in intervention delivery by improving support for under-delivered intervention types. More broadly, our approach provides a deployable template for combining Bayesian adaptive experimentation with generative models in a way that supports both personalization and interpretability.
title Tailored Behavior-Change Messaging for Physical Activity: Integrating Contextual Bandits and Large Language Models
topic Machine Learning
Human-Computer Interaction
Applications
url https://arxiv.org/abs/2506.07275