Natural Language Processing Analysis of WhatsApp Messages to Identify Unrecognized HIV Prevention Needs Among Young Women in Kenya.
Jessica E Haberer, Bernard Rono, Rakesh Ravi, Vinal Bagaria, Sinchana Shetty, Shanmukh Moparthi, Kevin Oware, Josephine B Odoyo,
Center for Global Health, Massachusetts General Hospital, Boston, Massachusetts, USA. · Centre for Microbiology Research, Kenya Medical Research Institute, Kisumu, Kenya.
Key points
From the paper's conclusion- Using natural language processing techniques like topic modelling on WhatsApp messages from 378 young women (18-24 years) in Kisumu, Kenya, to identify unrecognized HIV prevention needs.
- Topic models showed differential correlation with the VOICE HIV risk score, with romance/affection topics most strongly positive (0.12) and faith/transactions topics most strongly negative (-0.09).
- Natural language processing of routine WhatsApp messages may yield meaningful individual-level information about HIV prevention needs.
Abstract
INTRODUCTION: Identifying HIV prevention needs is challenging. Common approaches (e.g. public health campaigns, HIV risk scores) have limited sensitivity. Natural language processing techniques, such as topic modelling and computational linguistics, can extract meaning and subjective information from text. This study used these techniques with WhatsApp messages to identify unrecognized HIV prevention needs among young women in Kenya. METHODS: Prior work established key ethical protections (e.g. privacy, confidentiality). Between July and December 2024, women (18-24 years) who used WhatsApp were enrolled from four clinical sites in Kisumu, Kenya. After completing a socio-demographic questionnaire, participants securely transferred all WhatsApp messages from the prior 6 months and provided anonymized relationship types (e.g. friend, sexual partner) for their 20 most frequent contacts. Data were de-identified, and only outgoing messages were retained; all photos and incoming messages were deleted. WhatsApp data were pre-processed using a downloaded large language model to translate Swahili and Dholuo to English and account for slang linguistic patterns. We explored multiple approaches to topic modelling in the WhatsApp data using latent Dirichlet allocation. Non-negative matrix factorization and uniform manifold approximation and projection allowed for comparison of participant word topics with the VOICE HIV risk score (range 0-8, 8 indicating high risk). RESULTS: Of 413 eligible young women, 13 (3%) declined to provide WhatsApp data, and 22 had insufficient data for analysis. Participants had a mean age of 22 years and a VOICE risk score of 5.7. The remaining 378 women provided a median of 14 chats per individual. Participants most commonly chatted with friends (62.4%), followed by sexual partners (18.1%). The median VOICE risk score was 7 for women whose most messaged relationship was a sexual partner versus 5 for those messaging a friend most often. Topic models had differential correlation with the VOICE risk score that was most strongly positive (0.12) when indicating romance/affection and most strongly negative (-0.09) when describing faith/transactions. Dimensional analysis of linguistic similarity identified discrete participant populations with distinct VOICE risk scores. CONCLUSIONS: This study provides proof-of-concept that natural language processing of routine WhatsApp messages can yield meaningful individual-level information about HIV prevention needs. Future work should compare such findings with HIV incidence to optimally determine its ability to identify unrecognized HIV prevention needs, thus potentially expanding HIV prevention services to individuals not currently engaged in care.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Using natural language processing techniques like topic modelling on WhatsApp messages from 378 young women (18-24 years) in Kisumu, Kenya, to identify unrecognized HIV prevention needs.
- Topic models showed differential correlation with the VOICE HIV risk score, with romance/affection topics most strongly positive (0.12) and faith/transactions topics most strongly negative (-0.09).
- Natural language processing of routine WhatsApp messages may yield meaningful individual-level information about HIV prevention needs.
Readers' thoughts
No reader thoughts yet.
Related papers
- Conversational artificial intelligence technology for cervical cancer screening awareness among women living with HIV in resource-limited settings: A co-design approach.PLOS digital health · 2026
- Integrating Stakeholder Engagement and Participatory Design in the Development of a Training Dataset for a Culturally Adapted Multilingual HIV Awareness Chatbot in KenyaOxford Open Digital Health · 2026
- Window-Aware Scheduling for Health Messaging under Platform Delivery Constraints: Evidence from an AI-Powered WhatsApp Maternal and Infant Health Chatbot in NigeriaarXiv · 2026
- Detecting Patterns of Intimate Partner Violence Using Qualitative Analyses and Machine Learning AlgorithmsPrevention Science · 2026
- Contextualizing Sexual and Reproductive Health (SRH) Information to Develop an AI-enabled Chatbot for Adolescents with Disabilities in Ghana: Challenges and StrategiesOxford Open Digital Health · 2026
- Co-developing a women-centered HIV prevention intervention to reduce stigma, increase HIV self-testing, and improve pre-exposure prophylaxis (PrEP) uptake in Ghana (WISE WOMAN): A study protocol.PloS one · 2026