Identifying Substance Use and High-Risk Sexual Behavior Among Sexual and Gender Minority Youth by Using Mobile Phone Data: Development and Validation Study
Authors:
- Mehrab BeikzadehMBMehrab Beikzadeh
- Ian W HollowayIHIan W Holloway
- Kimmo KärkkäinenKKKimmo Kärkkäinen
- Chenglin HongCHChenglin Hong
- Cory CascalheiraCCCory Cascalheira
- Elizabeth S C WuEWElizabeth S C Wu
- Callisto BokaCBCallisto Boka
- Alexandra C AvendañoAAAlexandra C Avendaño
- Elizabeth A YonkoEYElizabeth A Yonko
- Majid SarrafzadehMSMajid Sarrafzadeh
Open Access
- 12 August 2025
- journal article
- research article
- Published by JMIR Publications Inc. in Online Journal of Public Health Informatics
- Vol. 17, e68013
Abstract
Background: Sexual and gender minority (SGM) individuals are at heightened risk for substance use and sexually transmitted infections than their non-SGM peers. Collecting mobile phone usage data passively may open new opportunities for personalizing interventions, as behavioral risks could be identified without user input. Objective: This study aimed to determine (1) whether passively sensed mobile phone data can be used to identify substance use and sexual risk behaviors for sexually transmitted infection (STI) and HIV transmission among young SGM who have sex with men, (2) which outcomes can be predicted with a high level of accuracy, and (3) which passive data sources are most predictive of these outcomes. Methods: We developed a mobile phone app to collect participants’ messaging, location, and app use data and trained a machine learning model to predict risk behaviors for STI and HIV transmission. We used Scikit-learn to train logistic regression and gradient boosting classification models with simple linear model specification to predict participants' substance use and sexual behaviors (ie, condomless anal sex, number of sexual partners, and methamphetamine use), which were validated using self-report questionnaires. F1-scores were used to quantify prediction accuracy of the model using different data sources (and combinations of these sources) for prediction. Differences between text, location, app use, and Linguistic Inquiry and Word Count (LIWC) domains by outcome were investigated using independent t tests where associations were considered significant at P<.05. Results: Among participants (n=82) who identified as SGM, were sexually active, and reported recent substance use, our model was highly predictive of methamphetamine use and having ≥6 sexual partners (F1-scores as high as 0.83 and 0.69, respectively). The model was less predictive of condomless anal sex (highest F1-score 0.38). Overall, text-based features were found to be most predictive, but app use and location data improved predictive accuracy, particularly for detecting ≥6 sexual partners. Methamphetamine use was significantly associated with dating app use (P=.01) and use of sex-related words (P=.002). Having ≥6 sex partners was associated with dating app use (0.02), use of sex-related words (P=.001), and traveling a further distance from home (P=.03), on average, compared to participants with fewer sex partners. Methamphetamine users were more likely to use social (P=.002) and affect words (P=.003) and less likely to use drive-related words (P=.02). People having 6 or more partners were more likely to use social, affect words, and cognitive process-related words (P=.003 and .004 respectively). Conclusions: Our results show that passively collected mobile phone data may be useful in detecting sexual risk behaviors. Expanding data collection may improve the results further, as certain behaviors, such as injection drug use, were quite rare in the study sample. These models may be used to personalize STI and HIV prevention as well as substance use harm reduction interventions.Keywords
This publication has 52 references indexed in Scilit:
- Analysis of substance use and its outcomes by machine learning I. Childhood evaluation of liability to substance use disorderDrug and Alcohol Dependence, 2020
- Using Smartphone Survey Data and Machine Learning to Identify Situational and Contextual Risk Factors for HIV Risk Behavior Among Men Who Have Sex with Men Who Are Not on PrEPPrevention Science, 2019
- Interventions to address substance use and sexual risk among gay, bisexual and other men who have sex with men who use methamphetamine: A systematic reviewDrug and Alcohol Dependence, 2019
- Mobile phone sensors and supervised machine learning to identify alcohol use events in young adults: Implications for just-in-time adaptive interventionsAddictive Behaviors, 2018
- Collecting Mobility Data with GPS Methods to Understand the HIV Environmental Riskscape Among Young Black Men Who Have Sex with Men: A Multi-city Feasibility Study in the Deep SouthAIDS and Behavior, 2018
- The rush to risk when interrogating the relationship between methamphetamine use and sexual practice among gay and bisexual menInternational Journal of Drug Policy, 2018
- Health Disparities by Sexual Orientation: Results and Implications from the Behavioral Risk Factor Surveillance SystemJournal of Community Health, 2017
- Syndemic Production and Sexual Compulsivity/Hypersexuality in Highly Sexually Active Gay and Bisexual Men: Further Evidence for a Three Group ConceptualizationArchives of Sexual Behavior, 2015
- Acceptability and Preliminary Efficacy of a Tailored Online HIV/STI Testing Intervention for Young Men who have Sex with Men: The Get Connected! ProgramAIDS and Behavior, 2015
- Number of Sexual Partners and Associations with Initiation and Intensity of Substance UseAIDS and Behavior, 2010