The Accuracy of Large Language Models With in-Context Learning: How to Detect Alcohol More Accurately in Social Media Data.
Jingda Du, Zhen He, Emmanuel Kuntsche, Dan Anderson-Luxford, Jack Delmenico, Joshua Millward, Benjamin Riordan
Computer Science & Information Technology, La Trobe University, Melbourne, Australia. · Centre for Alcohol Policy Research, La Trobe University, Melbourne, Australia.
Key points
From the paper's conclusion- We found variations in performance across models and strategies; however, overall, we observed that using recent LLMs for ZSL was accurate in detecting alcohol references in Instagram posts (72%-95% accuracy). Accuracy improved slightly when including examples in the prompt (F1 scores with examples 0.92 vs. without examples 0.90) and when splitting posts into smaller text chunks prior to analysis (F1 score for 45-word chunks 0.92 vs. no splitting 0.90).
Abstract
INTRODUCTION: Research suggests that alcohol-related content is common on social media, but it is difficult to determine just how common it is with current methods (i.e., content analyses). Using large language models (LLM) without further training (known as zero-shot learning (ZSL)) may be an efficient strategy for analysing large text data. We aimed to determine whether LLMs could accurately detect whether alcohol is mentioned in Instagram posts. Additionally, we aimed to identify how to improve results by: (i) comparing different models that can be used for ZSL; (ii) including examples in the prompt (in-context learning); and (iii) breaking the posts into smaller text chunks prior to analysis. METHODS: We annotated whether alcohol was present or not in 8522 Instagram posts from top influencers. We then compared the predictions of different LLMs and techniques to the annotated data to estimate accuracy. RESULTS: We found variations in performance across models and strategies; however, overall, we observed that using recent LLMs for ZSL was accurate in detecting alcohol references in Instagram posts (72%-95% accuracy). Accuracy improved slightly when including examples in the prompt (F1 scores with examples 0.92 vs. without examples 0.90) and when splitting posts into smaller text chunks prior to analysis (F1 score for 45-word chunks 0.92 vs. no splitting 0.90). DISCUSSION AND CONCLUSIONS: LLMs can accurately estimate whether alcohol is referenced in text, particularly when including representative examples in a prompt (in-context learning). The application of these approaches should allow for more accurate estimates of alcohol in social media posts.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Assessing Generative AI Chatbots for Alcohol Misuse Support: A Longitudinal Simulation StudyNEJM AI · 2026
- Evaluating Harm Reduction Advice From Large Language ModelsDrug and Alcohol Review · 2026
- Tracing artificial campaigns in social media streams: From controlled experiments to real-world detection.PloS one · 2026
- Detecting stigmatizing language in clinical notes with large language models for addiction carenpj Health Systems · 2026
- LLM-Assisted Detection and Community-Based Review of Promotional Texts in OpenStreetMap: An Empirical StudyISPRS International Journal of Geo-Information · 2026
- LLM-based content analysis: evaluating consistency, relevance, and interpretationEuropean Journal of Public Health · 2026