Abstract
In the wake of the COVID-19 pandemic, social media platforms like Twitter became primary channels for real-time information dissemination. However, the prevalence of uninformative content necessitates automated filtering systems. This paper details the development of BERT+, a classification system that integrates deep contextual embeddings from a fine-tuned BERT model with handcrafted Twitter-specific metadata features. Evaluated on the WNUT-2020 Task 2 dataset, BERT+ achieved a state-of-the-art F1-score of 0.8713, demonstrating that hybrid models effectively bridge the gap between formal language models and the informal lexicon of social media.
Introduction
The early stages of the COVID-19 pandemic saw a surge in social media activity, creating a "firehose" of data that included both vital public health updates and irrelevant personal commentary. For public health officials and researchers, the ability to distinguish "informative" tweets—those reporting specific news about recovered cases, suspected infections, or confirmed deaths—from "noise" is paramount.
Twitter presents unique linguistic challenges, including slang, emojis, and irregular punctuation, which often hinder standard Natural Language Processing (NLP) models. This study explores whether combining state-of-the-art transformer architectures with traditional feature engineering can improve classification accuracy in this noisy domain.
Methods
The researchers utilized the WNUT-2020 Task 2 dataset, comprising 10,000 English tweets. The training set (7,000 tweets) was balanced, with approximately 47% labeled as informative.
Preprocessing and Baselines
A custom preprocessing pipeline was developed to normalize Twitter-specific text, including emoji-to-word conversion and character compression (e.g., "yessss" to "yess"). Traditional machine learning baselines, such as Logistic Regression and Random Forest, were implemented using TF-IDF vectorization.
The BERT+ Architecture
The core of the proposed system is BERT+. The model starts with a BERT-large-uncased base, fine-tuned on the COVID-19 tweet dataset. To capture social media nuances, the authors extracted the 1024-dimensional embedding from the final BERT layer and concatenated it with seven handcrafted features:
- Counts of URLs, hashtags, user mentions, and emojis.
- Total word and syllable counts.
- A binary flag for profanity.
This augmented vector was then classified using a Support Vector Machine (SVM).
Results and Analysis
The experimental results highlight the necessity of domain-specific fine-tuning. Notably, a pre-trained BERT model without fine-tuning was outperformed by a simple Logistic Regression baseline (0.8312 vs 0.8422), suggesting that massive models require task-specific context to handle niche datasets effectively.
As shown in the performance comparison, BERT+ achieved the highest F1-score of 0.8713. This improvement over the standard fine-tuned BERT (0.8701) validates the inclusion of metadata features.
Furthermore, feature analysis identified specific n-grams that most strongly correlate with informative content. Words such as "cases," "positive," and "deaths" were found to have the highest weights in identifying relevant reports.
Discussion and Future Work
The success of BERT+ demonstrates that handcrafted features still hold significant value in the era of deep learning. While BERT provides deep semantic understanding, simple counts of hashtags or the presence of profanity offer distinct signals that help the model navigate the informal nature of tweets.
However, limitations remain. BERT's original training on formal text (Wikipedia) is a mismatch for social media. Future research should explore domain-specific pre-trained models like BERTweet or the use of Convolutional Neural Networks (CNNs) to better capture local linguistic patterns in short-form text.
Summary updated