PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 21, 2025JAMIA Open3 citationsOpen Access

Automating inductive thematic analyses of health content using large language models: a proof-of-concept study using social media data

View Full Paper
JHJaMor HairstonRRRajiv RanjanSLSahithi Lakamana

Key Points

  • Automated thematic analysis achieved 90.9% accuracy with GPT-4o using 2-shot prompting, demonstrating high potential.
  • Model-derived thematic distributions for high-prevalence themes closely matched expert classifications, validating effectiveness.
  • The approach involved binary classifications across datasets related to xylazine, utilizing multiple prompting strategies for optimization.
  • Findings indicate that LLMs can serve as scalable supplements to qualitative research, enhancing thematic analysis capabilities.

Abstract

Large language models (LLMs) face challenges in inductive thematic analysis, a task requiring deep interpretive, domain-specific expertise. We evaluated the feasibility of using LLMs to replicate expert-driven thematic analysis of social media data. Using 2 temporally nonintersecting Reddit datasets on xylazine (n = 286 and 686, for model optimization and validation, respectively) with 12 expert-derived themes, we evaluated 5 LLMs against expert coding. We modeled the task as a series of binary classifications, rather than a single, multilabel classification, employing zero-, single-, and few-shot prompting strategies and measuring performance via accuracy, precision, recall, and F1 score. On the validation set, GPT-4o with 2-shot prompting performed best (accuracy: 90.9%; F1 score: 0.71). For high-prevalence themes, model-derived thematic distributions closely mirrored expert classifications (eg, xylazine: 13.6% vs 17.8%; medications for opioid use disorders: 16.5% vs 17.8%). Our findings suggest that few-shot LLM-based approaches can automate thematic analyses, offering a scalable supplement for qualitative research.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Hairston et al. (2025) studied this question.

synapsesocial.com/papers/68d46fd431b076d99fa6a258https://doi.org/10.1093/jamiaopen/ooaf102
Ask AI
Helpful
Bookmark
Share
View Full Paper