NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Micro-Randomized Trial for Developing Digital Interventions: Data Analysis Methods

Tianchen Qian, Michael A. Russell, Linda M. Collins, Predrag Klasnja, Stephanie T. Lanza, Hyesun Yoo, Susan A. MurphyarXiv 2020 · DOI

Abstract

Although there is much excitement surrounding the use of mobile and wearable technology for the purposes of delivering interventions as people go through their day-to-day lives, data analysis methods for constructing and optimizing digital interventions lag behind. Here, we elucidate data analysis methods for primary and secondary analyses of micro-randomized trials (MRTs), an experimental design to optimize digital just-in-time adaptive interventions. We provide a definition of causal "excursion" effects suitable for use in digital intervention development. We introduce the weighted and centered least-squares (WCLS) estimator which provides consistent causal excursion effect estimators for digital interventions from MRT data. We describe how the WCLS estimator along with associated test statistics can be obtained using standard statistical software such as SAS or R. Throughout we use HeartSteps, an MRT designed to increase physical activity among sedentary individuals, to illustrate potential primary and secondary analyses.

Introduction

Mobile health (mHealth) and wearable technologies have revolutionized the delivery of "Just-In-Time Adaptive Interventions" (JITAIs). These systems, such as smartwatches that prompt a user to walk after an hour of inactivity, aim to provide support at the precise moment it is needed. To optimize these interventions, researchers utilize Micro-Randomized Trials (MRTs). In an MRT, participants are randomized to receive or not receive an intervention hundreds or even thousands of times over the course of the study. However, the high-frequency, longitudinal nature of this data presents unique statistical challenges that traditional models are ill-equipped to handle.

The Challenge of Feedback Loops in mHealth

Standard longitudinal data tools, such as Generalized Estimating Equations (GEE) or Multi-Level Models (MLM), often produce biased results when applied to MRT data. The primary issue is "endogeneity": a participant’s current state (e.g., their current step count or mood) is often a direct result of whether they received a treatment in a previous time step.

These feedback loops create a complex dependency structure. Because researchers cannot perfectly model every variable influencing a participant's daily life, standard models struggle to isolate the true effect of the intervention from the background noise of the participant's evolving state. There is a critical need for an estimator that remains consistent even when the model for the participant's baseline behavior is mis-specified.

The Weighted and Centered Least-Squares (WCLS) Estimator

To address these challenges, this research introduces the Weighted and Centered Least-Squares (WCLS) estimator. This framework is built around the concept of the Causal Excursion Effect, which measures the expected change in a near-term "proximal" outcome when the researcher deviates from the current treatment schedule at a specific decision point.

The WCLS estimator employs two primary mechanisms to ensure robustness:

  1. Centering: By subtracting the randomization probability from the treatment indicator, the estimator creates "orthogonality" between the treatment effect and the background noise. This ensures that the estimate of the treatment's effect remains consistent even if the model for the participant's baseline behavior is incorrect.
  2. Weighting: In real-world trials, interventions cannot always be delivered—for instance, a notification should not be sent if sensors detect the user is driving. WCLS incorporates "availability" weights to account for these periods, ensuring the analysis reflects the actual opportunities for intervention.

One of the most practical aspects of WCLS is its accessibility; the authors demonstrate how standard statistical software (such as R or SAS) can be adapted to calculate WCLS using existing GEE functions.

Case Study: The HeartSteps MRT

The paper illustrates these methods using the HeartSteps dataset, a 42-day MRT designed to increase physical activity in sedentary individuals. The study involved 37 participants with five decision points per day, totaling 210 decision points per person. The primary outcome measured was the step count in the 30 minutes following a decision point, supplemented by contextual data such as location, weather, and current activity levels.

Key Findings

Analysis of the HeartSteps data using WCLS revealed several critical insights into the dynamics of digital interventions:

  • Primary Effect: On average, providing an activity suggestion led to a 14% increase in step count over the subsequent 30 minutes.
  • Habituation (The "Boredom" Effect): The intervention's effectiveness was not static. While it provided an approximately 66% increase on Day 1, the effect decreased by roughly 1.8% every day. By the end of the six-week trial, the effect became negligible, suggesting that participants habituate to the prompts over time.
  • Contextual Moderation: The environment played a significant role in intervention success. Suggestions were significantly more effective when users were at home or work compared to other locations, likely due to the increased freedom to move in those settings.

Discussion and Future Directions

The WCLS method provides a robust foundation for analyzing MRTs, particularly through its resilience to model mis-specification. By focusing on "excursion" effects, researchers can better understand how the burden of past interventions influences the effectiveness of current ones.

However, limitations remain. The current WCLS framework is tailored for continuous outcomes; while work on binary outcomes is ongoing, a unified framework is still required. Additionally, the current method focuses on "marginal effects" (group averages) rather than individual-level predictions. Future research will focus on extending these models to handle "zero-inflated" data—common in step counts—and developing multi-level models to capture person-specific causal excursions, moving closer to the goal of truly personalized digital medicine.

Summary updated

BibTeX
@misc{qian2020micro,
  author = {Tianchen Qian and Michael A. Russell and Linda M. Collins and Predrag Klasnja and Stephanie T. Lanza and Hyesun Yoo and Susan A. Murphy},
  title = {{The Micro-Randomized Trial for Developing Digital Interventions: Data Analysis Methods}},
  year = {2020},
  eprint = {2004.10241},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.10241},
}
Figure