Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Formative Research

Date Submitted: Feb 15, 2024
Date Accepted: Sep 20, 2024

The final, peer-reviewed published version of this preprint can be found here:

Public Health Discussions on Social Media: Evaluating Automated Sentiment Analysis Methods

Gandy L, Ivanitskaya LV, Bacon L, Bizri-Baryak R

Public Health Discussions on Social Media: Evaluating Automated Sentiment Analysis Methods

JMIR Form Res 2025;9:e57395

DOI: 10.2196/57395

PMID: 39773420

PMCID: 11784633

Public Health Discussions on Social Media: An Evaluation of Automated Sentiment Analysis Methods

  • Lisa Gandy; 
  • Lana V Ivanitskaya; 
  • Leeza Bacon; 
  • Rodina Bizri-Baryak

ABSTRACT

Background:

Sentiment analysis is the most popular artificial intelligence method to mine and examine text. Popular sentiment analysis tools were used to analyze YouTube comments from videos discussing the opioid epidemic, inform health policy, and improve population health.

Objective:

This study compared manually coded sentiment scores to scores from three automated sentiment analysis tools: VADER, TEXT2DATA, and the tone summary measure from LIWC-22.

Methods:

Evaluation methods included descriptive statistics, ROC curves, confusion matrices, Cohen’s kappa, accuracy, specificity, precision, sensitivity (recall), and F1 harmonic means.

Results:

Overall, LIWC’s tone sentiment analysis measure most closely matched manual coding (88% F1 score), followed by VADER (83% F1 score) and TEXT2DATA (82% F1 score).

Conclusions:

We recommend applying these tools to social media analysis, considering imbalances in positive and negative affect, comment length, and other practical considerations, such as costs and programming needs.


 Citation

Please cite as:

Gandy L, Ivanitskaya LV, Bacon L, Bizri-Baryak R

Public Health Discussions on Social Media: Evaluating Automated Sentiment Analysis Methods

JMIR Form Res 2025;9:e57395

DOI: 10.2196/57395

PMID: 39773420

PMCID: 11784633

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.