Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jun 20:13:1609749.
doi: 10.3389/fpubh.2025.1609749. eCollection 2025.

Sentiment analysis in public health: a systematic review of the current state, challenges, and future directions

Affiliations

Sentiment analysis in public health: a systematic review of the current state, challenges, and future directions

Ismael Villanueva-Miranda et al. Front Public Health. .

Abstract

Introduction: Sentiment analysis, using natural language processing to understand opinions in text, is increasingly relevant for public health given the volume of online health discussions. Effectively using this approach requires understanding its methods, applications, and limitations. This systematic review provides a comprehensive overview of sentiment analysis in public health, examining methodologies, applications, data sources, challenges, evaluation practices, and ethical considerations.

Methods: We conducted a systematic review following PRISMA guidelines, searching academic databases through Semantic Scholar and screening studies for relevance. A total of 83 papers analyzing the use of sentiment analysis in public health contexts were included.

Results: The review identified a trend toward the use of advanced deep learning methods and large language models (LLMs) for a wide range of public health applications. However, challenges remain, particularly related to interpretability and resource demands. Social media is the predominant data source, which raises concerns about data quality, bias, linguistic complexity, and ethical issues.

Discussion: Sentiment analysis offers the potential for gaining public health insights but faces significant methodological, data-related, and ethical challenges. Reliable and ethical application demands rigorous validation, improved model interpretability, the development of ethical frameworks, and continued research to support responsible development and deployment.

Keywords: LLM; mental health; natural language processing; public health; sentiment analysis; systematic review.

PubMed Disclaimer

Conflict of interest statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Figure 1
Figure 1
PRISMA 2020 flow diagram illustrating the study identification, screening, eligibility, and inclusion process.
Figure 2
Figure 2
Frequency of the main sentiment analysis techniques reported in the 83 studies included in this review. Techniques are grouped into four categories: large language models (LLMs), machine learning (ML), deep learning (DL), and lexicon-based methods. Bars indicate the number of studies that applied each category, with example models/techniques shown alongside the corresponding frequency values (e.g., BERT, Naïve Bayes, LSTM, VADER).
Figure 3
Figure 3
Hierarchical distribution of the main data sources used across the 83 studies included in this review, all of which applied sentiment analysis in public health. The diagram illustrates the relationship between broad data source categories (e.g., Social Media, Survey Data, Clinical Data) and their specific instances (e.g., Twitter, Reddit, EHR data). Flow widths are proportional to the number of studies referencing each source. The numbers in parentheses next to each node indicate the frequency of use across the included studies, highlighting the predominance of social media platforms–particularly Twitter—as primary input data for sentiment analysis.
Figure 4
Figure 4
Frequency of main six evaluation metric categories reported across the 83 studies included in this review. Accuracy was the most commonly reported metric, followed by F1-score, precision, and recall. A smaller number of studies incorporated fairness- or engagement-related metrics, reflecting an emerging emphasis on ethical and participatory evaluation frameworks in public health sentiment analysis.

Similar articles

References

    1. Prasinos M, Basdekis I, Anisetti M, Spanoudakis G, Koutsouris D, Damiani E, et al. Modelling framework for evidence-based public health policy making. IEEE J Biomed Health Inform. (2022) 26:2388–99. 10.1109/JBHI.2022.3142503 - DOI - PubMed
    1. Nayak A, Raghatate K. Health policy reforms and their effect on healthcare delivery: Utilizing Natural Language Processing (NLP) to analyze public sentiment and policy feedback. South East Eur J Public Health. (2024). 10.70135/seejph.vi.713 - DOI
    1. Arias F, Núñez MZ, Guerra-Adames A, Tejedor-Flores N, Vargas-Lombardo M. Sentiment analysis of public social media as a tool for health-related topics. IEEE Access. (2022) 10:74850–72. 10.1109/ACCESS.2022.3187406 - DOI
    1. Yigitcanlar T, Kankanamge N, Preston A, Gill PS, Rezayee M, Ostadnia M, et al. How can social media analytics assist authorities in pandemic-related policy decisions? Insights from Australian states and territories. Health Inform Sci Syst. (2020) 8:9. 10.1007/s13755-020-00121-9 - DOI - PMC - PubMed
    1. Adenyi AO, Okolo CA, Olorunsogo TO, Babawarun O. Leveraging big data and analytics for enhanced public health decision-making: a global review. GSC Adv Res Rev. (2024).

Publication types

LinkOut - more resources