JITAI decision rules: seven examples you can adapt

A decision rule is only complete once the trigger, threshold, intervention option, guardrails and proximal outcome are written down. The seven rules here are starting points that you need to adapt to your research question and sample.

Updated on

How to read the examples

The terms follow the framework by Nahum-Shani et al. (2018). Each rule follows the pattern “condition → action” and states the limits within which it may trigger. All thresholds, gaps and maximums are chosen starting points for a pilot, not empirically established cut-offs. Scales run from 0 to 100.

Seven example rules

Target behaviourTrigger and conditionIntervention optionGuardrailsProximal outcome
1. Regulating acute stressAnswer in a scheduled survey: stress of 70 or higher → exerciseTwo-minute breathing exercise, otherwise nothingAt most as often as the survey, for example three times a day between 9 am and 9 pmStress right after the exercise and in the next survey
2. Pointing to a support serviceEvening survey at 8 pm: mood below 30 → pointerInformation page with an agreed support serviceOnce a day, only with the evening surveyPointer opened, mood the next morning
3. More movement in the afternoonSteps from midnight to 3 pm: fewer than 3,000 → suggestionShort suggestion to go for a walkOnce a day, only on selected weekdays, no trigger without step dataSteps in the 30 minutes after delivery
4. Using a strategy at a risk locationEntering a self-marked place, radius 200 m, after staying 5 minutes → reminderReminder of the strategy chosen in advanceTwice a day, 240 minutes apart, 8 am to 10 pmNotification opened within 30 minutes, self-reported use of the strategy
5. Switching off after workLeaving the place “work” after staying at least 60 minutes → taskShort reflection question or exercise on detachmentOnce a day, response window 60 minutesRating of detachment within the task
6. Reflecting on smartphone useSelected apps used for 10 minutes without a break → questionReflection question on mood, optionally a self-set time limitThree times a day, 120 minutes apart, 8 am to 10 pm, response window 30 minutesMomentary mood, decision for or against a limit
7. Re-engaging with the studyNo survey answered for 48 hours → messageShort message with a direct route to the next surveyOnce per gap, again after 48 hours at the earliest, 10 am to 8 pmAt least one answer in the following 24 hours

Rule 2 touches on possible crises. The threshold of 30 is not a clinical cut-off. A rule like this needs a procedure agreed with the ethics committee and clinical oversight, specifying which service is named and who responds to signals. The rule does not promise help: an automated message is no substitute for emergency care, and the participant information has to say so.

What does the literature say about the rules?

  • Rule 1: Sense2Stop tests prompts for a stress management exercise in smokers whom sensors classify as stressed or not stressed. It plans 2.5 to 3 prompts a day, with stress and smoking in the following two hours as outcomes (Battalio et al., 2021). What has been published is the study protocol with 75 planned participants.
  • Rule 3: In HeartSteps, walking suggestions raised the step count in the following 30 minutes by 24% on average, suggestions to interrupt sitting had no detectable effect, and the effect diminished over six weeks (Klasnja et al., 2019).
  • Rule 4: Q Sense used geofences to trigger smoking cessation support at personal high-risk locations. Of the notifications triggered this way, 50.0% (137 of 274) were tapped within 30 minutes. The study included 15 people with Android phones (Naughton et al., 2016).
  • Rule 7: We found no study on re-engagement after a gap in answering. A related micro-randomised trial followed 1,255 users of a workplace well-being app over 89 days: when a push notification with a tailored health message was sent, a self-monitoring entry in the app within the following 24 hours was 3.9% more likely (risk ratio 1.039; 95% CI 1.01 to 1.08; Bidargaddi et al., 2018).
  • For rules 2, 5 and 6 we found no study that tests exactly this rule. Treat all seven rules as hypotheses, including those with related literature.

Choosing thresholds

A threshold mainly determines how often a rule triggers. Estimate that frequency before you start:

  1. Collect the tailoring variable in a run-in phase or pilot without any intervention.
  2. For several candidate values, count how often the condition would be met per person and day.
  3. Pick the value at which the expected number matches the burden you are willing to impose. HeartSteps worked with up to five decision points a day, and Sense2Stop plans 2.5 to 3 prompts.
  4. Check the distribution across people. If a fixed threshold never applies to some and constantly applies to others, a threshold relative to the personal mean may fit better.
  5. Decide what happens when data are missing. Missing step data are not zero steps.

Consider receptivity as well. In a study with 189 participants over six weeks, the response to intervention messages was associated with time of day, battery level, phone interaction, physical activity and location (Künzler et al., 2019). A daily window is therefore a substantive criterion too.

Why does “do nothing” belong to every rule?

Every rule above has a second branch: if the condition is not met or a guardrail has been reached, nothing happens. This branch limits burden and provides the comparison. If you want to know whether the breathing exercise does anything under high stress, you need moments of high stress without the exercise. In a micro-randomised trial this comparison is created by chance at every decision point (Qian et al., 2022). In the study by Bidargaddi et al., sending and not sending were equally likely.

Testing rules before the start

  • Walk through every rule on an iPhone and an Android phone, using short test thresholds and no minimum gap.
  • Check both branches: does the rule trigger when it should, and does it stay silent when a guardrail applies?
  • Measure the time between the event and the notification.
  • Afterwards, reset all test values to the study values and have a few people use the rules for several days.

What should you log?

A rule can only be evaluated if the cases without an intervention are documented as well. For every decision point, record:

  • Time and value of the tailoring variable
  • Whether the condition was met and which option was chosen
  • For suppressed triggers the reason, such as minimum gap, daily maximum or daily window
  • Time of delivery, of opening, and of the answer or expiry
  • The proximal outcome in the specified period
  • Version of the rule, operating system and device

Frequently asked questions

How many interventions per day are acceptable?

There is no established upper limit. HeartSteps used up to five decision points a day, and Sense2Stop plans 2.5 to 3 prompts. Two to three per rule are a possible starting point. Use a pilot to check how participants experience them.

How do I set the threshold of a JITAI rule?

From your own data. Collect the variable beforehand without an intervention, calculate the number of triggers per person and day for several thresholds, and pick the value that matches the planned burden.

What is a good proximal outcome for a JITAI rule?

One that the intervention can change in the short term and that you can measure without extra effort, such as steps in the 30 minutes after an activity suggestion as in HeartSteps, or the stress rating after an exercise.

May a JITAI respond to signs of a crisis?

Only with a procedure agreed with the ethics committee and clinical oversight. Specify which support service is named, who sees the signals, and what the study explicitly does not provide. An automated rule is not crisis support.

With PULSE

In PULSE, the research platform of the Center for Computation of Human Behavior, you set up rules 1 and 2 as a follow-up task: a condition on the answer in a source task opens the second task immediately in the same session, without a notification, a minimum gap or a daily maximum. Rule 3 uses the step count trigger, which checks at the end of the time window, triggers at most once a day and may arrive late. Rules 4 and 5 use the place trigger with fixed or self-marked places, a radius of 100 to 2,000 metres and a dwell time of up to 60 minutes. Rule 6 uses time spent in particular apps (1 to 120 minutes), optionally with the content for a self-set time limit. For place and app usage you set the minimum gap, the daily maximum (up to 10) and the daily window; the daily window is off at first. Rule 7 is not among the documented triggers; what is documented is a reminder within the response window. Triggers and suppressed triggers, with the reason, stay in the app logs for 180 days. Event-based tasks appear in the export only once they have been answered. Clarify whether your export also lists unanswered triggers before you rely on a response rate per trigger. Test values have to be reset before the study goes live.

Further reading

Sources

  1. Nahum-Shani, I., Smith, S. N., Spring, B. J., Collins, L. M., Witkiewitz, K., Tewari, A., & Murphy, S. A. (2018). Just-in-Time Adaptive Interventions (JITAIs) in Mobile Health: Key Components and Design Principles for Ongoing Health Behavior Support. Annals of Behavioral Medicine, 52(6), 446-462. https://doi.org/10.1007/s12160-016-9830-8
  2. Klasnja, P., Smith, S., Seewald, N. J., Lee, A., Hall, K., Luers, B., Hekler, E. B., & Murphy, S. A. (2019). Efficacy of Contextually Tailored Suggestions for Physical Activity: A Micro-randomized Optimization Trial of HeartSteps. Annals of Behavioral Medicine, 53(6), 573-582. https://doi.org/10.1093/abm/kay067
  3. Battalio, S. L., Conroy, D. E., Dempsey, W., Liao, P., Menictas, M., Murphy, S., Nahum-Shani, I., Qian, T., Kumar, S., & Spring, B. (2021). Sense2Stop: A micro-randomized trial using wearable sensors to optimize a just-in-time-adaptive stress management intervention for smoking relapse prevention. Contemporary Clinical Trials, 109, 106534. https://doi.org/10.1016/j.cct.2021.106534
  4. Naughton, F., Hopewell, S., Lathia, N., Schalbroeck, R., Brown, C., Mascolo, C., McEwen, A., & Sutton, S. (2016). A Context-Sensing Mobile Phone App (Q Sense) for Smoking Cessation: A Mixed-Methods Study. JMIR mHealth and uHealth, 4(3), e106. https://doi.org/10.2196/mhealth.5787
  5. Bidargaddi, N., Almirall, D., Murphy, S., Nahum-Shani, I., Kovalcik, M., Pituch, T., Maaieh, H., & Strecher, V. (2018). To Prompt or Not to Prompt? A Microrandomized Trial of Time-Varying Push Notifications to Increase Proximal Engagement With a Mobile Health App. JMIR mHealth and uHealth, 6(11), e10123. https://doi.org/10.2196/10123
  6. Künzler, F., Mishra, V., Kramer, J.-N., Kotz, D., Fleisch, E., & Kowatsch, T. (2019). Exploring the State-of-Receptivity for mHealth Interventions. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 3(4), 1-27. https://doi.org/10.1145/3369805
  7. Qian, T., Walton, A. E., Collins, L. M., Klasnja, P., Lanza, S. T., Nahum-Shani, I., Rabbi, M., Russell, M. A., Walton, M. A., Yoo, H., & Murphy, S. A. (2022). The microrandomized trial for developing digital interventions: Experimental design and data analysis considerations. Psychological Methods, 27(5), 874-894. https://doi.org/10.1037/met0000283