Espinosa Laura, Salathé Marcel
Digital Epidemiology Lab, School of Life Sciences, School of Computer and Communication Sciences, EPFL, Switzerland.
PLOS Digit Health. 2024 Oct 14;3(10):e0000631. doi: 10.1371/journal.pdig.0000631. eCollection 2024 Oct.
Online public health discourse is becoming more and more important in shaping public health dynamics. Large Language Models (LLMs) offer a scalable solution for analysing the vast amounts of unstructured text found on online platforms. Here, we explore the effectiveness of Large Language Models (LLMs), including GPT models and open-source alternatives, for extracting public stances towards vaccination from social media posts. Using an expert-annotated dataset of social media posts related to vaccination, we applied various LLMs and a rule-based sentiment analysis tool to classify the stance towards vaccination. We assessed the accuracy of these methods through comparisons with expert annotations and annotations obtained through crowdsourcing. Our results demonstrate that few-shot prompting of best-in-class LLMs are the best performing methods, and that all alternatives have significant risks of substantial misclassification. The study highlights the potential of LLMs as a scalable tool for public health professionals to quickly gauge public opinion on health policies and interventions, offering an efficient alternative to traditional data analysis methods. With the continuous advancement in LLM development, the integration of these models into public health surveillance systems could substantially improve our ability to monitor and respond to changing public health attitudes.
在线公共卫生话语在塑造公共卫生动态方面正变得越来越重要。大语言模型(LLMs)为分析在线平台上大量的非结构化文本提供了一种可扩展的解决方案。在此,我们探讨大语言模型(LLMs),包括GPT模型和开源替代方案,从社交媒体帖子中提取公众对疫苗接种态度的有效性。我们使用一个由专家注释的与疫苗接种相关的社交媒体帖子数据集,应用各种大语言模型和一个基于规则的情感分析工具来对疫苗接种态度进行分类。我们通过与专家注释以及通过众包获得的注释进行比较,评估了这些方法的准确性。我们的结果表明,对一流大语言模型的少样本提示是性能最佳的方法,并且所有其他方法都存在严重误分类的重大风险。该研究突出了大语言模型作为一种可扩展工具的潜力,可供公共卫生专业人员快速评估公众对卫生政策和干预措施的意见,为传统数据分析方法提供了一种高效的替代方案。随着大语言模型开发的不断进步,将这些模型整合到公共卫生监测系统中可以显著提高我们监测和应对不断变化的公众卫生态度的能力。