Sample size calculations for micro‐randomized trials in mHealth

Peng Liao, Predrag Klasnja, Ambuj Tewari, Susan A. MurphyStatistics 2015 · DOI

Abstract

Mobile health (mHealth) interventions are rapidly evolving, yet the statistical methods to evaluate their "just-in-time" effects have lagged behind. This paper introduces the Micro-randomized Trial (MRT) design, where treatments are sequentially randomized to test proximal, near-future impacts. We provide a formal test statistic and a sample size calculator specifically designed for these high-frequency longitudinal studies, validated through simulations based on the HeartSteps physical activity intervention.

The Challenge of Just-in-Time Interventions

Traditional Randomized Controlled Trials (RCTs) are often too broad to evaluate the specific "nudges" delivered by modern health apps. While an RCT can measure long-term weight loss, it cannot determine if a specific notification at a specific time successfully prompted a user to exercise. These immediate changes are known as proximal effects. Without rigorous testing, digital interventions risk being ineffective or even counterproductive. The authors address this by developing a framework to determine the minimum number of participants needed to detect these subtle, "in-the-moment" behavioral shifts.

The Micro-Randomized Trial (MRT) Framework

In an MRT, participants are randomized at every "decision point"—moments throughout the day when a treatment could potentially be delivered. For example, in the HeartSteps study, users might be randomized five times a day over 42 days, resulting in hundreds of randomization instances per person.

Accounting for User Availability

A unique challenge in mHealth is that a treatment can only be delivered if the user is "available." A nudge to walk is useless if the user is currently driving or if their phone is turned off. The proposed model explicitly incorporates an availability indicator ($I_t$).

Four simulated patterns of user availability over the course of a 42-day study, ranging from constant availability to oscillating or trending patterns.

The researchers tested their model against various availability patterns, as shown above, to ensure the sample size calculator remains robust even when user engagement fluctuates over the course of the study.

Statistical Methodology

The authors developed a test statistic based on a least-squares fit of a working model, utilizing a small-sample correction via Hotelling’s $T^2$ distribution. This ensures that the trial results remain valid even when the number of participants ($N$) is relatively small, which is common in pilot mHealth studies. The model also accounts for the "smoothness" of treatment effects—the idea that a nudge's effectiveness might follow a predictable curve (e.g., increasing as a habit forms, then decreasing due to "app fatigue").

Key Results and Sample Size Estimation

The primary output of this research is a practical tool for study designers. By defining a standardized effect size ($d$), researchers can determine the necessary cohort size based on their expected treatment impact and average user availability.

Extracted table from page 7 of Sample size calculations for micro‐randomized trials in mHealth

As shown in the table, the required sample size is highly sensitive to both the expected effect and the frequency of user availability. For instance, to detect a small effect ($d=0.06$) with 50% availability, a researcher would need approximately 109 participants. If availability drops to 40%, that requirement jumps to 135.

Conclusion and Future Directions

Micro-randomized trials offer a powerful, efficient way to optimize mHealth interventions by leveraging repeated within-person measurements. This paper provides the first rigorous foundation for sizing these trials, proving that high statistical power is achievable with manageable participant pools. Future work will look to extend this model to account for "carry-over" effects—where one nudge influences the response to the next—and the inclusion of baseline covariates to further refine the precision of these digital health experiments.

Summary updated

BibTeX
@inproceedings{liao2015sample,
  author = {Peng Liao and Predrag Klasnja and Ambuj Tewari and Susan A. Murphy},
  title = {{Sample size calculations for micro‐randomized trials in mHealth}},
  booktitle = {Statistics},
  year = {2015},
  doi = {10.1002/sim.6847},
}
Figure