The Promise of Large Language Models in Digital Health: Evidence from Sentiment Analysis in Online Health Communities
Xiancheng Li, Georgios D. Karampatakis, Helen E. Wood, Chris J. Griffiths, Borislava Mihaylova, Neil S. Coulson, Alessio Pasinato, Pietro Panzarasa, Marco Viviani, and Anna De Simoni

TL;DR
This paper demonstrates that large language models, enhanced with expert-encoded prompts, can perform high-quality sentiment analysis on online health community posts, addressing data scarcity and privacy issues in digital health analytics.
Contribution
It introduces a structured codebook for expert knowledge encoding in LLM prompts, enabling scalable, expert-level sentiment analysis without extensive model retraining.
Findings
LLMs outperform traditional models in sentiment analysis accuracy
Expert-level agreement achieved by LLMs is comparable to inter-expert agreement
In-context learning with structured prompts enhances LLM performance in health data analysis
Abstract
Digital health analytics face critical challenges nowadays. The sophisticated analysis of patient-generated health content, which contains complex emotional and medical contexts, requires scarce domain expertise, while traditional ML approaches are constrained by data shortage and privacy limitations in healthcare settings. Online Health Communities (OHCs) exemplify these challenges with mixed-sentiment posts, clinical terminology, and implicit emotional expressions that demand specialised knowledge for accurate Sentiment Analysis (SA). To address these challenges, this study explores how Large Language Models (LLMs) can integrate expert knowledge through in-context learning for SA, providing a scalable solution for sophisticated health data analysis. Specifically, we develop a structured codebook that systematically encodes expert interpretation guidelines, enabling LLMs to apply…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
