Saved in:
Bibliographic Details
Main Authors: Li, Xiancheng, Karampatakis, Georgios D., Wood, Helen E., Griffiths, Chris J., Mihaylova, Borislava, Coulson, Neil S., Pasinato, Alessio, Panzarasa, Pietro, Viviani, Marco, De Simoni, Anna
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.14032
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911111270367232
author Li, Xiancheng
Karampatakis, Georgios D.
Wood, Helen E.
Griffiths, Chris J.
Mihaylova, Borislava
Coulson, Neil S.
Pasinato, Alessio
Panzarasa, Pietro
Viviani, Marco
De Simoni, Anna
author_facet Li, Xiancheng
Karampatakis, Georgios D.
Wood, Helen E.
Griffiths, Chris J.
Mihaylova, Borislava
Coulson, Neil S.
Pasinato, Alessio
Panzarasa, Pietro
Viviani, Marco
De Simoni, Anna
contents 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 domain-specific knowledge through targeted prompting rather than extensive training. Six GPT models validated alongside DeepSeek and LLaMA 3.1 are compared with pre-trained language models (BioBERT variants) and lexicon-based methods, using 400 expert-annotated posts from two OHCs. LLMs achieve superior performance while demonstrating expert-level agreement. This high agreement, with no statistically significant difference from inter-expert agreement levels, suggests knowledge integration beyond surface-level pattern recognition. The consistent performance across diverse LLM models, supported by in-context learning, offers a promising solution for digital health analytics. This approach addresses the critical challenge of expert knowledge shortage in digital health research, enabling real-time, expert-quality analysis for patient monitoring, intervention assessment, and evidence-based health strategies.
format Preprint
id arxiv_https___arxiv_org_abs_2508_14032
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Promise of Large Language Models in Digital Health: Evidence from Sentiment Analysis in Online Health Communities
Li, Xiancheng
Karampatakis, Georgios D.
Wood, Helen E.
Griffiths, Chris J.
Mihaylova, Borislava
Coulson, Neil S.
Pasinato, Alessio
Panzarasa, Pietro
Viviani, Marco
De Simoni, Anna
Computation and Language
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 domain-specific knowledge through targeted prompting rather than extensive training. Six GPT models validated alongside DeepSeek and LLaMA 3.1 are compared with pre-trained language models (BioBERT variants) and lexicon-based methods, using 400 expert-annotated posts from two OHCs. LLMs achieve superior performance while demonstrating expert-level agreement. This high agreement, with no statistically significant difference from inter-expert agreement levels, suggests knowledge integration beyond surface-level pattern recognition. The consistent performance across diverse LLM models, supported by in-context learning, offers a promising solution for digital health analytics. This approach addresses the critical challenge of expert knowledge shortage in digital health research, enabling real-time, expert-quality analysis for patient monitoring, intervention assessment, and evidence-based health strategies.
title The Promise of Large Language Models in Digital Health: Evidence from Sentiment Analysis in Online Health Communities
topic Computation and Language
url https://arxiv.org/abs/2508.14032