Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Nov 10;9(11):e27779.
doi: 10.2196/27779.

Text Message Analysis Using Machine Learning to Assess Predictors of Engagement With Mobile Health Chronic Disease Prevention Programs: Content Analysis

Affiliations

Text Message Analysis Using Machine Learning to Assess Predictors of Engagement With Mobile Health Chronic Disease Prevention Programs: Content Analysis

Harry Klimis et al. JMIR Mhealth Uhealth. .

Abstract

Background: SMS text messages as a form of mobile health are increasingly being used to support individuals with chronic diseases in novel ways that leverage the mobility and capabilities of mobile phones. However, there are knowledge gaps in mobile health, including how to maximize engagement.

Objective: This study aims to categorize program SMS text messages and participant replies using machine learning (ML) and to examine whether message characteristics are associated with premature program stopping and engagement.

Methods: We assessed communication logs from SMS text message-based chronic disease prevention studies that encouraged 1-way (SupportMe/ITM) and 2-way (TEXTMEDS [Text Messages to Improve Medication Adherence and Secondary Prevention]) communication. Outgoing messages were manually categorized into 5 message intents (informative, instructional, motivational, supportive, and notification) and replies into 7 groups (stop, thanks, questions, reporting healthy, reporting struggle, general comment, and other). Grid search with 10-fold cross-validation was implemented to identify the best-performing ML models and evaluated using nested cross-validation. Regression models with interaction terms were used to compare the association of message intent with premature program stopping and engagement (replied at least 3 times and did not prematurely stop) in SupportMe/ITM and TEXTMEDS.

Results: We analyzed 1550 messages and 4071 participant replies. Approximately 5.49% (145/2642) of participants responded with stop, and 11.7% (309/2642) of participants were engaged. Our optimal ML model correctly classified program message intent with 76.6% (95% CI 63.5%-89.8%) and replies with 77.8% (95% CI 74.1%-81.4%) balanced accuracy (average area under the curve was 0.95 and 0.96, respectively). Overall, supportive (odds ratio [OR] 0.53, 95% CI 0.35-0.81) messages were associated with reduced chance of stopping, as were informative messages in SupportMe/ITM (OR 0.35, 95% CI 0.20-0.60) but not in TEXTMEDS (for interaction, P<.001). Notification messages were associated with a higher chance of stopping in SupportMe/ITM (OR 5.76, 95% CI 3.66-9.06) but not TEXTMEDS (for interaction, P=.01). Overall, informative (OR 1.76, 95% CI 1.46-2.12) and instructional (OR 1.47, 95% CI 1.21-1.80) messages were associated with higher engagement but not motivational messages (OR 1.18, 95% CI 0.82-1.70; P=.37). For supportive messages, the association with engagement was opposite with SupportMe/ITM (OR 1.77, 95% CI 1.21-2.58) compared with TEXTMEDS (OR 0.77, 95% CI 0.60-0.98; for interaction, P<.001). Notification messages were associated with reduced engagement in SupportMe/ITM (OR 0.07, 95% CI 0.05-0.10) and TEXTMEDS (OR 0.28, 95% CI 0.20-0.39); however, the strength of the association was greater in SupportMe/ITM (for interaction P<.001).

Conclusions: ML models enable monitoring and detailed characterization of program messages and participant replies. Outgoing message intent may influence premature program stopping and engagement, although the strength and direction of association appear to vary by program type. Future studies will need to examine whether modifying message characteristics can optimize engagement and whether this leads to behavior change.

Keywords: SMS; cardiovascular; chronic disease; digital health; engagement; mHealth; machine learning; mobile phone; prevention; text messaging.

PubMed Disclaimer

Conflict of interest statement

Conflicts of Interest: None declared.

Figures

Figure 1
Figure 1
Distribution of participant reply categories by program message intent during the 12-month TEXTMEDS (Text Messages to Improve Medication Adherence and Secondary Prevention) program. The 9 peak periods (4-day duration each) were defined as those which received >40 replies within each peak period. INFO: Informative; INST: Instructional; MOTI: Motivational; NOTI: Notification; TEXTMEDS: Text Messages to Improve Medication Adherence and Secondary Prevention; SUPP: Supportive.
Figure 2
Figure 2
Receiver operating characteristic curves for predicting program message intent. Generated under one-vs-rest assumption (ie, each curve is generated assuming a binary scenario with the selected class against all other classes). AUC: area under the curve; INFO: Informative; INST: Instructional; MOTI: Motivational; NOTI: Notification; SUPP: Supportive.
Figure 3
Figure 3
Receiver operating characteristic curves for predicting participant reply type. Generated under one-vs-rest assumption (ie, each curve is generated assuming a binary scenario with the selected category against all other categories). AUC: area under the curve.

References

    1. Klimis H, Thakkar J, Chow CK. Breaking barriers: mobile health interventions for cardiovascular disease. Can J Cardiol. 2018 Jul;34(7):905–13. doi: 10.1016/j.cjca.2018.02.012.S0828-282X(18)30172-7 - DOI - PubMed
    1. Fjeldsoe BS, Marshall AL, Miller YD. Behavior change interventions delivered by mobile telephone short-message service. Am J Prev Med. 2009 Feb;36(2):165–73. doi: 10.1016/j.amepre.2008.09.040.S0749-3797(08)00892-1 - DOI - PubMed
    1. Klimis H, Khan ME, Kok C, Chow CK. The role of text messaging in cardiovascular risk factor optimization. Curr Cardiol Rep. 2017 Jan;19(1):4. doi: 10.1007/s11886-017-0811-8.10.1007/s11886-017-0811-8 - DOI - PubMed
    1. Spohr SA, Nandy R, Gandhiraj D, Vemulapalli A, Anne S, Walters ST. Efficacy of SMS text message interventions for smoking cessation: a meta-analysis. J Subst Abuse Treat. 2015 Sep;56:1–10. doi: 10.1016/j.jsat.2015.01.011.S0740-5472(15)00026-4 - DOI - PubMed
    1. Chow CK, Redfern J, Hillis GS, Thakkar J, Santo K, Hackett ML, Jan S, Graves N, de KL, Barry T, Bompoint S, Stepien S, Whittaker R, Rodgers A, Thiagalingam A. Effect of lifestyle-focused text messaging on risk factor modification in patients with coronary heart disease: a randomized clinical trial. J Am Med Assoc. 2015 Sep;314(12):1255–63. doi: 10.1001/jama.2015.10945.2442937 - DOI - PubMed

Publication types