Using a large language model as the primary coder in health content analysis: a verification framework, per-variable reliability and proposed reporting items.
Listed in
This article is not in any list yet, why not save it to one of your lists.Abstract
Objective: To describe and evaluate a framework for using a large language model (LLM) as the primary coder in health content analysis, and to propose reporting items for LLM assisted studies, because no reporting standard exists. Methods: An LLM coded 6,982 Instagram and TikTok posts using a human written, human calibrated instrument. The framework has six components: human authorship of the instrument; two round human calibration; source discipline; quote anchored coding; verification in a representative and an outcome enriched sample, blinded in both directions; and per variable reliability reporting against a prespecified threshold, with the consequence of failure fixed in advance. Agreement was measured with Gwets AC1, prespecified because the outcome distribution was heavily skewed. Results: Agreement between the two human coders on the primary outcome rose from AC1 0.456 to 0.977 after two ambiguous rules were rewritten. LLM human agreement was 0.847 in the representative sample (N = 150) and 0.868 in the enriched sample (N = 50). Five of eight conditional variables fell below the 0.80 threshold and became exploratory: variables asking whether a defined textual feature was present met it, whereas those requiring graded judgement did not. The human coder identified misinformation more often than the LLM, so prevalence estimates are likely underestimates. Agreement on female targeting was lower for self-identified ethnic minority creators (0.744 versus 0.902). Conclusion: LLM coding cannot be computationally reproduced, so its reliability must be shown empirically: per variable agreement with independent human coding, the direction of remaining error, and a prespecified response to shortfall. The authors propose 18 reporting items for LLM assisted content analysis.