Writing · 2025

From tweets to transcripts

A review of natural language processing for public health surveillance, from social media signals to clinical notes in electronic health records.

Introduction

Traditional public health surveillance is authoritative but often slow. Official reports from healthcare and laboratory systems carry time lags that limit how quickly health authorities can respond to emerging threats.

COVID-19 brought this into sharp focus and accelerated the use of alternative sources, especially the large streams of content people post on social media. Researchers now use natural language processing (NLP) to turn that data into near real time public health intelligence. This post covers the main methods, applications and open questions.

The data sources: a tale of two worlds

NLP-driven surveillance draws on two kinds of data: public web data and private clinical data.

1. Public web and social media data. Platforms like Twitter have become a leading source for epidemic intelligence. Their real-time nature and large user base make them useful for tracking disease trends and public sentiment. They are often supplemented with Google Trends queries and Wikipedia access logs.

2. Private clinical data from electronic health records. The detailed clinical notes in electronic health records (EHRs) are another valuable source for identifying cases and symptoms, though they are private.

The two sources serve complementary purposes: social media gives broad, real-time population trends, while EHRs give a validated basis for accurate case counting.

The toolkit: from SVMs to transformers

The methods have moved from traditional machine learning to deep learning architectures.

  • Early approaches. Foundational studies used algorithms such as the support vector machine (SVM), which worked well but depended on manual feature engineering.
  • The shift to deep learning. Models such as the long short-term memory (LSTM) network moved away from manual engineering and learned richer representations directly from the data.
  • The transformer era. The field is now dominated by large transformer models such as BERT, which reads the context of a word in both directions and significantly outperforms older models. Researchers have also built domain-specific models, such as COVID-Twitter-BERT (CT-BERT), pre-trained on millions of COVID-19 tweets.

Real-world applications

Beyond tracking outbreaks, NLP is used more widely. In one example, an NLP tool identified over 36% of the confirmed COVID-19 cases in the US Veterans Affairs system that lab-based reporting alone had missed.

  • Monitoring healthcare systems. Analysing social media for signs of hospital overcrowding and equipment shortages, or enriching official EHR data.
  • Assessing public and environmental wellbeing. Newer models analyse the public’s psychological and emotional state. The approach has also been applied to environmental health, where negative sentiment tweets correlated strongly with measured air pollution.

The road ahead

The field still faces data quality problems, demographic bias and ethical concerns about user privacy. Based on gaps in the literature, future work should focus on:

  1. Multilingual and cross-cultural models, to build a truly global intelligence network.
  2. Hybrid systems that combine the speed of social media data with the reliability of clinical data.
  3. Population-level analysis with better geolocation and more nuanced sentiment models.

Conclusion

NLP on digital data sources is a powerful adjunct to traditional public health surveillance. It does not replace traditional methods. It is a tool for modern practice, and future work should build more robust, integrated and ethically grounded systems that combine the speed of public data with the accuracy of clinical sources.

Back to all work