[Paper Review] Addressing machine learning concept drift reveals declining vaccine sentiment during the COVID-19 pandemic
This study demonstrates that machine learning models trained on pre-pandemic Twitter data suffer from severe concept drift when classifying vaccine sentiment during the COVID-19 pandemic, leading to systematic underestimation of declining vaccine sentiment. By applying FastText and BERT classifiers to annotated Twitter data from 2017–2020, the authors show that models trained before 2020 fail to detect the sharp decline in positive sentiment, highlighting the urgent need for continuous retraining and active learning frameworks in real-time social media monitoring during crises.
Social media analysis has become a common approach to assess public opinion on various topics, including those about health, in near real-time. The growing volume of social media posts has led to an increased usage of modern machine learning methods in natural language processing. While the rapid dynamics of social media can capture underlying trends quickly, it also poses a technical problem: algorithms trained on annotated data in the past may underperform when applied to contemporary data. This phenomenon, known as concept drift, can be particularly problematic when rapid shifts occur either in the topic of interest itself, or in the way the topic is discussed. Here, we explore the effect of machine learning concept drift by focussing on vaccine sentiments expressed on Twitter, a topic of central importance especially during the COVID-19 pandemic. We show that while vaccine sentiment has declined considerably during the COVID-19 pandemic in 2020, algorithms trained on pre-pandemic data would have largely missed this decline due to concept drift. Our results suggest that social media analysis systems must address concept drift in a continuous fashion in order to avoid the risk of systematic misclassification of data, which is particularly likely during a crisis when the underlying data can change suddenly and rapidly.
Motivation & Objective
- To investigate how concept drift in machine learning models affects the detection of changing public sentiment on social media during public health crises.
- To evaluate the performance of NLP models trained on pre-pandemic data when applied to vaccine sentiment data during the COVID-19 pandemic.
- To demonstrate that concept drift significantly undermines the reliability of static models in real-time sentiment analysis, especially during rapidly evolving events.
- To advocate for the integration of active learning and continuous retraining frameworks in social media monitoring systems to maintain accuracy during crises.
Proposed method
- Collected 57.5 million English-language tweets from July 2017 to October 2020 using Twitter’s public API, filtered by vaccine-related keywords.
- Annotated 44,843 tweets via Crowdbreaks platform using three-class labels: positive, neutral, or negative sentiment toward vaccines, with Fleiss’ kappa of 0.30.
- Trained FastText and BERT classifiers on the annotated data, using hyperparameter tuning for optimal performance on the full dataset.
- Applied a time-windowed evaluation strategy to compare model performance on pre-pandemic (2018) and pandemic-era (2020) data, isolating concept drift effects.
- Used the Crowdbreaks text-classification library and COVID-Twitter-BERT for BERT fine-tuning, with preprocessing including lowercase conversion, ASCII normalization, and anonymization of user mentions and URLs.
- Evaluated model performance across temporal splits to quantify performance degradation due to concept drift, distinguishing it from data distribution shifts.
Experimental results
Research questions
- RQ1To what extent does concept drift in NLP models compromise the detection of shifting public sentiment on social media during the COVID-19 pandemic?
- RQ2How does model performance on vaccine sentiment classification degrade when models trained before 2020 are applied to pandemic-era Twitter data?
- RQ3What is the impact of topical and linguistic shifts in vaccine-related discourse on classifier reliability, and how can this be mitigated?
- RQ4Can active learning and continuous retraining frameworks effectively address concept drift in real-time public health monitoring systems?
Key findings
- Models trained on pre-pandemic data (2018) showed significant performance degradation when applied to 2020 data, with F1-scores dropping substantially due to concept drift.
- The decline in positive vaccine sentiment during the pandemic was largely undetected by models trained before 2020, indicating a critical failure in real-time monitoring.
- The study confirms that concept drift is not a minor statistical fluctuation but a major threat to the reliability of NLP systems in crisis contexts.
- Both FastText and BERT models exhibited strong performance on in-sample data but failed to generalize to post-2020 data, underscoring the need for dynamic retraining.
- The observed concept drift was attributed to shifts in discourse—such as increased polarization and new terminology—rather than random noise or data bias.
- The results suggest that static models are insufficient for public health surveillance; continuous annotation and model retraining are essential for timely and accurate sentiment detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.