[Paper Review] Disaster Tweets Classification using BERT-Based Language Model
This paper proposes a BERT-based fine-tuning approach for classifying disaster-related tweets with binary labels (disaster or not). Using the Kaggle Disaster Tweets dataset, it achieves an F1-score of 0.8867, significantly outperforming traditional machine learning models like TF-IDF with Logistic Regression (F1: 0.80177), demonstrating BERT's superior performance in disaster detection via transfer learning.
Social networking services have became an important communication channel in time of emergency. The aim of this study is to create a machine learning language model that is able to investigate if a person or area was in danger or not. The ubiquitousness of smartphones enables people to announce an emergency they are observing in real-time. Because of this, more agencies are interested in programmatically monitoring Twitter (i.e. disaster relief organizations and news agencies). Design a language model that is able to understand and acknowledge when a disaster is happening based on the social network posts will become more and more necessary over time.
Motivation & Objective
- To develop a machine learning model capable of automatically classifying Twitter posts as disaster-related or not, enabling real-time emergency response.
- To compare the effectiveness of traditional machine learning models (e.g., SVM, Logistic Regression) with deep learning approaches using pre-trained language models.
- To evaluate the performance of various text encoding techniques—such as TF-IDF, Count Vector, CBoW, and Skip-gram—on the disaster tweet classification task.
- To fine-tune BERT-large uncased for binary text classification and optimize hyperparameters for maximum F1-score.
- To establish a benchmark for disaster detection using NLP, supporting rapid response by relief organizations and news agencies.
Proposed method
- Employed BERT-base uncased architecture with 24 layers, 1024 hidden size, 16 attention heads, and 340M parameters for contextual representation learning.
- Applied transfer learning by fine-tuning the BERT encoder on the disaster tweet dataset using binary cross-entropy loss and Adam optimizer.
- Preprocessed tweets via case normalization, URL/email removal, HTML tag stripping, emoji removal, abbreviation replacement, stopword removal, and special character filtering.
- Used a classification head on the [CLS] token output to predict binary labels (disaster or not disaster) with sigmoid activation.
- Optimized hyperparameters including learning rate (6×10⁻⁶), dropout rate (0), batch size (16), number of epochs (3), and validation split (15%).
- Evaluated models using F1-score, precision, and recall, with confusion matrix analysis to assess performance.
Experimental results
Research questions
- RQ1How does BERT-based fine-tuning compare to traditional machine learning models (e.g., SVM, Logistic Regression) in classifying disaster-related tweets?
- RQ2Which text encoding method—TF-IDF, Count Vector, CBoW, or Skip-gram—yields the highest performance in this binary classification task?
- RQ3What hyperparameter settings (learning rate, batch size, dropout, etc.) yield the optimal F1-score in BERT fine-tuning for disaster detection?
- RQ4Can pre-trained language models like BERT significantly improve classification performance over frequency-based embeddings on low-resource, informal text like tweets?
- RQ5How does the model’s performance vary across precision and recall, and what does the confusion matrix reveal about false positives and negatives?
Key findings
- The BERT-based model achieved the highest F1-score of 0.8867, significantly outperforming the best traditional model (Logistic Regression with TF-IDF, F1: 0.80177).
- TF-IDF and Count Vector representations outperformed prediction-based embeddings (CBoW and Skip-gram), with mean F1-scores of 0.71902 and 0.70751, respectively.
- The optimal BERT fine-tuning configuration used a learning rate of 6×10⁻⁶, 3 training epochs, a batch size of 16, and no dropout, yielding the best F1-score.
- The confusion matrix of the fine-tuned BERT model showed balanced precision and recall, indicating strong generalization with low false positive and false negative rates.
- The study confirms that pre-trained transformer-based models like BERT are highly effective for low-resource, informal text classification tasks such as disaster detection on social media.
- Future improvements may include exploring advanced BERT variants like RoBERTa or ERNIE to further enhance performance.
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.