IDEAS home Printed from https://ideas.repec.org/a/eee/socmed/v383y2025ics0277953625006598.html

Large language models’ varying accuracy in recognizing risk-promoting and health-supporting sentiments in public health discourse: The cases of HPV vaccination and heated tobacco products

Author

Listed:
  • Kim, Soojong
  • Kim, Kwanho
  • Kim, Hye Min

Abstract

Machine learning methods are increasingly applied to analyze health-related public discourse based on large-scale data, but questions remain regarding their ability to accurately detect different types of health sentiments. Especially, Large Language Models (LLMs) have gained attention as a powerful technology, yet their accuracy and feasibility in capturing different opinions and perspectives on health issues are largely unexplored. Thus, this research examines how accurate the three prominent LLMs (GPT, Gemini, and LLAMA) are in detecting risk-promoting versus health-supporting sentiments across two critical public health topics: Human Papillomavirus (HPV) vaccination and heated tobacco products (HTPs). Drawing on data from Facebook and Twitter, we curated multiple sets of messages supporting or opposing recommended health behaviors, supplemented with human annotations as the gold standard for sentiment classification. The findings indicate that all three LLMs generally demonstrate substantial accuracy in classifying risk-promoting and health-supporting sentiments, although notable discrepancies emerge by platform, health issue, and model type. Specifically, models often show higher accuracy for risk-promoting sentiment on Facebook, whereas health-supporting messages on Twitter are more accurately detected. An additional analysis also shows the challenges LLMs face in reliably detecting neutral messages. These results highlight the importance of carefully selecting and validating language models for public health analyses, particularly given potential biases in training data that may lead LLMs to overestimate or underestimate the prevalence of certain perspectives.

Suggested Citation

  • Kim, Soojong & Kim, Kwanho & Kim, Hye Min, 2025. "Large language models’ varying accuracy in recognizing risk-promoting and health-supporting sentiments in public health discourse: The cases of HPV vaccination and heated tobacco products," Social Science & Medicine, Elsevier, vol. 383(C).
  • Handle: RePEc:eee:socmed:v:383:y:2025:i:c:s0277953625006598
    DOI: 10.1016/j.socscimed.2025.118328
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0277953625006598
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.socscimed.2025.118328?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Luella Fu & Megan A Jacobs & Jody Brookover & Thomas W Valente & Nathan K Cobb & Amanda L Graham, 2017. "An exploration of the Facebook social networks of smokers and non-smokers," PLOS ONE, Public Library of Science, vol. 12(11), pages 1-15, November.
    2. repec:plo:pone00:0089177 is not listed on IDEAS
    3. Roberts, John & Baker, Max & Andrew, Jane, 2024. "Artificial intelligence and qualitative research: The promise and perils of large language model (LLM) ‘assistance’," CRITICAL PERSPECTIVES ON ACCOUNTING, Elsevier, vol. 99(C).
    4. Valdez, Danny & Soto-Vásquez, Arthur D. & Montenegro, María S., 2023. "Geospatial vaccine misinformation risk on social media: Online insights from an English/Spanish natural language processing (NLP) analysis of vaccine-related tweets," Social Science & Medicine, Elsevier, vol. 339(C).
    5. Jamison, Amelia M. & Quinn, Sandra Crouse & Freimuth, Vicki S., 2019. "“You don't trust a government vaccine”: Narratives of institutional trust and influenza vaccination among African American and white adults," Social Science & Medicine, Elsevier, vol. 221(C), pages 87-94.
    6. Jiayan Gu & Lorien C. Abroms & David A. Broniatowski & W. Douglas Evans, 2022. "An Investigation of Influential Users in the Promotion and Marketing of Heated Tobacco Products on Instagram: A Social Network Analysis," IJERPH, MDPI, vol. 19(3), pages 1-11, February.
    7. Yaqub, Ohid & Castle-Clarke, Sophie & Sevdalis, Nick & Chataway, Joanna, 2014. "Attitudes to vaccination: A critical review," Social Science & Medicine, Elsevier, vol. 112(C), pages 1-11.
    8. Patrick Sturgis & Ian Brunton-Smith & Jonathan Jackson, 2021. "Trust in science, social consensus and vaccine confidence," Nature Human Behaviour, Nature, vol. 5(11), pages 1528-1534, November.
    9. Allison Koenecke & Andrew Nam & Emily Lake & Joe Nudell & Minnie Quartey & Zion Mengesha & Connor Toups & John R. Rickford & Dan Jurafsky & Sharad Goel, 2020. "Racial disparities in automated speech recognition," Proceedings of the National Academy of Sciences, Proceedings of the National Academy of Sciences, vol. 117(14), pages 7684-7689, April.
    10. Argyle, Lisa P. & Busby, Ethan C. & Fulda, Nancy & Gubler, Joshua R. & Rytting, Christopher & Wingate, David, 2023. "Out of One, Many: Using Language Models to Simulate Human Samples," Political Analysis, Cambridge University Press, vol. 31(3), pages 337-351, July.
    11. Joshua O. Barker & Julia Vassey & Julia C. Chen-Sankey & Jon-Patrick Allem & Tess Boley Cruz & Jennifer B. Unger, 2021. "Categorizing IQOS-Related Twitter Discussions," IJERPH, MDPI, vol. 18(9), pages 1-10, April.
    12. Lakon, C.M. & Pechmann, C. & Wang, C. & Pan, L. & Delucchi, K. & Prochaska, J.J., 2016. "Mapping engagement in twitter-based support networks for adult smoking cessation," American Journal of Public Health, American Public Health Association, vol. 106(8), pages 1374-1380.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Željko Pavić & Emma KovaÄ ević & Adrijana Å uljok & Juraj Jurlina & Maja MiÅ¡kulin & Aida Mujkić & Ivan MiÅ¡kulin, 2023. "The Deficit and Contextual Models of Vaccine Hesitancy: A Test of the Mediation Paths," SAGE Open, , vol. 13(4), pages 21582440231, December.
    2. Athias, Laure & Macina, Moudo, 2022. "Demand for vaccination in Sub-Saharan Africa: The vertical legacy of the slave trade," Social Science & Medicine, Elsevier, vol. 293(C).
    3. Lahijani, Ariana Y. & King, Adrian R. & Gullatte, Mary M. & Hennink, Monique & Bednarczyk, Robert A., 2021. "HPV Vaccine Promotion: The church as an agent of change," Social Science & Medicine, Elsevier, vol. 268(C).
    4. Chao Gu & Yi Feng, 2025. "The Influence of Public Engagement with Science on Trust in Science During the COVID-19 Pandemic: Testing a Mediation Model," SAGE Open, , vol. 15(4), pages 21582440251, December.
    5. Philipp Wassler & Giacomo Del Chiappa & Thi Hong Hai Nguyen & Giancarlo Fedeli & Nigel L. Williams, 2022. "Increasing vaccination intention in pandemic times: a social marketing perspective," Italian Journal of Marketing, Springer, vol. 2022(1), pages 37-58, March.
    6. Joana Mendonça & Ana Patrícia Hilário, 2023. "Healthism vis-à-vis Vaccine Hesitancy: Insights from Parents Who Either Delay or Refuse Children’s Vaccination in Portugal," Societies, MDPI, vol. 13(8), pages 1-15, August.
    7. Shi, Runyu & Petrakaki, Dimitra, 2026. "User-AI intimacy in digital health," Social Science & Medicine, Elsevier, vol. 389(C).
    8. Felipe A. Csaszar & Harsh Ketkar & Hyunjin Kim, 2024. "Artificial Intelligence and Strategic Decision-Making: Evidence from Entrepreneurs and Investors," Strategy Science, INFORMS, vol. 9(4), pages 322-345, December.
    9. repec:beo:swcetp:23-03 is not listed on IDEAS
    10. Theiss Bendixen, 2020. "How cultural evolution can inform the science of science communication—and vice versa," Humanities and Social Sciences Communications, Palgrave Macmillan, vol. 7(1), pages 1-10, December.
    11. Andrew Katz & Gabriella Coloyan Fleming & Joyce B. Main, 2026. "Thematic analysis with open-source generative AI and machine learning: a new method for inductive qualitative codebook development," Humanities and Social Sciences Communications, Palgrave Macmillan, vol. 13(1), pages 1-17, December.
    12. Hongshen Sun & Juanjuan Zhang, 2025. "From Model Choice to Model Belief: Establishing a New Measure for LLM-Based Research," Papers 2512.23184, arXiv.org.
    13. Narae Kim & Jeong-Nam Kim, 2024. "A COVID-19 Paradox of Communication, Ignorance, and Vaccination Intention," SAGE Open, , vol. 14(3), pages 21582440241, September.
    14. Nils Köbis & Jean-François Bonnefon & Iyad Rahwan, 2021. "Bad machines corrupt good morals," Nature Human Behaviour, Nature, vol. 5(6), pages 679-685, June.
    15. Koji Takahashi & Joon Suk Park, 2025. "Generative AI for Surveys on Payment Apps: AIs' View on Privacy and Technology," IMES Discussion Paper Series 25-E-13, Institute for Monetary and Economic Studies, Bank of Japan.
    16. Vincenzo Carrieri & Raffele Lagravinese & Giuliano Resce, 2021. "Predicting vaccine hesitancy from area‐level indicators: A machine learning approach," Health Economics, John Wiley & Sons, Ltd., vol. 30(12), pages 3248-3256, December.
    17. Sukayna Younger-Khan & Nils B. Weidmann & Lisa Oswald, 2024. "Consistent effects of science and scientist characteristics on public trust across political regimes," Humanities and Social Sciences Communications, Palgrave Macmillan, vol. 11(1), pages 1-14, December.
    18. Hui Chen & Antoine Didisheim & Mohammad & Pourmohammadi & Luciano Somoza & Hanqing Tian, 2025. "A Financial Brain Scan of the LLM," Papers 2508.21285, arXiv.org, revised Feb 2026.
    19. Antonini, Marcello & Genie, Mesfin G. & Attwell, Katie & Attema, Arthur E. & Ward, Jeremy K. & Melegaro, Alessia & Torbica, Aleksandra & Kelly, Brian & Berardi, Chiara & Sequeira, Ana Rita & McGregor,, 2025. "Are we ready for the next pandemic? Public preferences and trade-offs between vaccine characteristics and societal restrictions across 21 countries," Social Science & Medicine, Elsevier, vol. 366(C).
    20. Gabriele Letta & Mario Cesare Nurchis & Luca Salmasi & Gilberto Turati, 2026. "Do vaccination-based access restriction policies curb hesitancy? A comparison between Italy and Spain," DISCE - Working Papers del Dipartimento di Economia e Finanza def153, Università Cattolica del Sacro Cuore, Dipartimenti e Istituti di Scienze Economiche (DISCE).
    21. Jamison, Amelia M. & Quinn, Sandra Crouse & Freimuth, Vicki S., 2019. "“You don't trust a government vaccine”: Narratives of institutional trust and influenza vaccination among African American and white adults," Social Science & Medicine, Elsevier, vol. 221(C), pages 87-94.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:socmed:v:383:y:2025:i:c:s0277953625006598. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/wps/find/journaldescription.cws_home/315/description#description .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.