Reinforcement Learning to Send Reminders at Right Moments in Smartphone Exercise Application: A Feasibility Study

Shihan Wang, Karlijn Sporrel, Herke van Hoof, Monique Simons, R. De Boer, Dick Ettema, Nicky Nibbeling, Marije Deutekom, Ben KröseInternational Journal of Environmental Research and Public Health 2021

TL;DR

This paper explores using Reinforcement Learning (RL) to deliver timely exercise reminders via a smartphone app, aiming to boost physical activity. A feasibility study with 7 users showed that RL-driven reminders were generally well-received and often prompted user reactions and subsequent activity, suggesting the approach's potential.

What Problem Does This Paper Address?

Many people struggle to maintain regular physical activity, despite its known health benefits. Mobile health applications offer a promising avenue for intervention, but their effectiveness hinges on delivering support at the right moment. Simply bombarding users with notifications can be ineffective or even counterproductive. This paper tackles the challenge of identifying these opportune moments for delivering "just-in-time adaptive interventions" (JITAIs) for physical activity, specifically focusing on when to send reminders, rather than what to say. The core problem is how to adaptively determine the optimal timing for reminders based on a user's dynamic context.

Methods

The researchers developed a smartphone exercise application called the "PAUL app" that integrates a Reinforcement Learning (RL) model. This RL model acts as a decision-maker, observing the user's "momentary temporal context" (including time, calendar availability, and reminders left for the week) to decide whether to send a reminder. The RL model learns from user behavior, specifically by rewarding actions that lead to physical activity.

The RL problem was framed as a Markov Decision Process (MDP), where:

  • States (S) included contextual variables like time of day, day of the week, calendar availability, and reminder counts.
  • Actions (A) were binary: "send a reminder" or "not send a reminder."
  • Rewards (R) were given (R=1) if a user performed physical activity after a reminder, and zero otherwise.

To mitigate the "cold-start problem" common in RL (where models need extensive data to learn), they pre-learned an initial strategy using a large dataset of historical running data. The study involved a 4-week feasibility trial: 3 weeks of baseline usage without adaptive reminders, followed by 1 week with RL-driven reminders.

Datasets

  • Pre-learning Data: A large-scale dataset of historical running data (440,000 runs over 4 years from over 10,000 users) was used to pre-learn an initial RL strategy. This data included timestamps and weather information.
  • Feasibility Study Data: Data was collected from 7 participants over a 4-week period. This included:
  • PAUL app logs: Tracking user interactions with the app and reminders.
  • Physical activity session data: Summarizing distance, duration, and start times of activities.
  • Questionnaire and interview data: Capturing user experience and perceptions.

Key Insights and Ideas

  • The "Right Moment" Matters: The study strongly suggests that timing is critical for the effectiveness of mobile health interventions. Reminders delivered at opportune moments are more likely to be noticed and acted upon.
  • RL for Adaptive Timing is Feasible: The integration of an RL model into a smartphone app to dynamically determine reminder timing proved feasible in a real-world setting.
  • Balancing Frequency and Effectiveness: The study highlights the challenge of finding the right reminder frequency. While users want reminders to prompt activity, too many can be annoying. The RL model's constraint on the number of reminders per week was a key design choice.
  • Bridging Objective and Subjective Data: Combining quantitative app usage data with qualitative feedback from questionnaires and interviews provided a richer understanding of user behavior and experience. This revealed discrepancies, such as a user reporting not receiving reminders while app logs showed they clicked on them.

Key Results

  • High Reaction Rate: 83.3% of reminders sent at adaptive moments elicited a user reaction (clicking the notification) within 50 minutes.
  • Activity Triggered: 66.7% of physical activities performed during the intervention week were initiated within 5 hours of a reminder.
  • User Engagement: All 7 participants reacted to at least one reminder.
  • Perceived Usefulness: Participants generally found reminders useful for initiating activity and preventing forgetfulness, though some desired more control over timing and frequency.
  • Low Annoyance: Most participants did not feel annoyed or interrupted by the reminders, even when they weren't perfectly timed.

Limitations and Future Work

  • Small Sample Size: The study involved only 7 participants, limiting the generalizability of the findings.
  • Short Intervention Duration: The 1-week intervention period was too short for the RL model to fully adapt and learn individual user preferences.
  • Gender Bias: The participant pool was predominantly female (71.4%), and only Android users could participate due to technical constraints.
  • Limited Contextual Information: The RL model primarily used time and calendar data. Future work should incorporate more contextual factors like weather, mood, and user-defined preferences to further refine timing.
  • Future Directions: The authors propose larger-scale studies with longer intervention periods, a comparison between adaptive and non-adaptive timing, better balancing of participant demographics, and incorporating a wider range of contextual data to improve reminder effectiveness and personalization.

Summary updated

Abstract

Just-in-time adaptive intervention (JITAI) has gained attention recently and previous studies have indicated that it is an effective strategy in the field of mobile healthcare intervention. Identifying the right moment for the intervention is a crucial component. In this paper the reinforcement learning (RL) technique has been used in a smartphone exercise application to promote physical activity. This RL model determines the 'right' time to deliver a restricted number of notifications adaptively, with respect to users' temporary context information (i.e., time and calendar). A four-week trial study was conducted to examine the feasibility of our model with real target users. JITAI reminders were sent by the RL model in the fourth week of the intervention, while the participants could only access the app's other functionalities during the first 3 weeks. Eleven target users registered for this study, and the data from 7 participants using the application for 4 weeks and receiving the intervening reminders were analyzed. Not only were the reaction behaviors of users after receiving the reminders analyzed from the application data, but the user experience with the reminders was also explored in a questionnaire and exit interviews. The results show that 83.3% reminders sent at adaptive moments were able to elicit user reaction within 50 min, and 66.7% of physical activities in the intervention week were performed within 5 h of the delivery of a reminder. Our findings indicated the usability of the RL model, while the timing of the moments to deliver reminders can be further improved based on lessons learned.
BibTeX
@article{wang2021reinforcement,
  author = {Shihan Wang and Karlijn Sporrel and Herke van Hoof and Monique Simons and R. De Boer and Dick Ettema and Nicky Nibbeling and Marije Deutekom and Ben Kröse},
  title = {{Reinforcement Learning to Send Reminders at Right Moments in Smartphone Exercise Application: A Feasibility Study}},
  journal = {International Journal of Environmental Research and Public Health},
  year = {2021},
  doi = {10.3390/ijerph18116059},
}
Figure