Skip to main content
QUICK REVIEW

[Paper Review] Efficacy of BERT embeddings on predicting disaster from Twitter data

Ashis Kumar Chanda|arXiv (Cornell University)|Aug 8, 2021
Topic ModelingComputer Science33 references6 citations
TL;DR

This study evaluates BERT embeddings for classifying disaster-related tweets using both traditional machine learning and deep learning models. It demonstrates that contextual BERT embeddings significantly outperform context-free embeddings (GloVe, FastText, Skip-gram) across multiple metrics, achieving the highest AUC (0.8578) and accuracy (83.08%) with Bi-LSTM, proving their superiority in understanding contextual nuance for disaster prediction on short, ambiguous social media text.

ABSTRACT

Social media like Twitter provide a common platform to share and communicate personal experiences with other people. People often post their life experiences, local news, and events on social media to inform others. Many rescue agencies monitor this type of data regularly to identify disasters and reduce the risk of lives. However, it is impossible for humans to manually check the mass amount of data and identify disasters in real-time. For this purpose, many research works have been proposed to present words in machine-understandable representations and apply machine learning methods on the word representations to identify the sentiment of a text. The previous research methods provide a single representation or embedding of a word from a given document. However, the recent advanced contextual embedding method (BERT) constructs different vectors for the same word in different contexts. BERT embeddings have been successfully used in different natural language processing (NLP) tasks, yet there is no concrete analysis of how these representations are helpful in disaster-type tweet analysis. In this research work, we explore the efficacy of BERT embeddings on predicting disaster from Twitter data and compare these to traditional context-free word embedding methods (GloVe, Skip-gram, and FastText). We use both traditional machine learning methods and deep learning methods for this purpose. We provide both quantitative and qualitative results for this study. The results show that the BERT embeddings have the best results in disaster prediction task than the traditional word embeddings. Our codes are made freely accessible to the research community.

Motivation & Objective

  • To analyze the challenges in classifying disaster-related tweets from short, ambiguous social media text.
  • To compare the efficacy of contextual embeddings (BERT) against context-free embeddings (GloVe, FastText, Skip-gram) in disaster prediction.
  • To evaluate both traditional machine learning and deep learning models using different word representations for the task.
  • To provide a public codebase for reproducibility and future research in disaster-related NLP.

Proposed method

  • The study uses pre-trained BERT, GloVe, FastText, and Skip-gram embeddings as input representations for text classification.
  • It applies both shallow models (logistic regression, decision tree, random forest) and deep models (Bi-LSTM, softmax) to classify tweets as disaster-related or not.
  • The model performance is evaluated using standard NLP metrics: AUC, F1-score, and accuracy on both training and test sets.
  • Qualitative analysis compares predictions of Bi-LSTM models using GloVe (context-free) and BERT (contextual) embeddings on specific tweet examples.
  • The research leverages the Kaggle disaster tweets dataset and implements end-to-end training and inference pipelines.
  • All code is publicly released on GitHub to ensure reproducibility and community access.

Experimental results

Research questions

  • RQ1Can contextual word embeddings like BERT improve disaster prediction accuracy compared to context-free embeddings on short social media text?
  • RQ2How do traditional machine learning models compare to deep learning models (e.g., Bi-LSTM) when using different embedding types?
  • RQ3In what ways do contextual embeddings better capture the semantic meaning of disaster-related tweets compared to static embeddings?
  • RQ4How do model predictions differ between context-free and contextual embeddings for ambiguous tweets with disaster-related keywords?

Key findings

  • BERT embeddings achieved the highest test accuracy (83.08%) and AUC (0.8578) when combined with a Bi-LSTM model, outperforming all other embedding and model combinations.
  • The BERT+Bi-LSTM model improved AUC by 2% and accuracy by 2% over the best-performing context-free model (GloVe+Bi-LSTM).
  • Context-free embeddings like GloVe failed to correctly classify non-disaster tweets containing words like 'accident' or 'fire' when used out of context, while BERT correctly identified them as non-disaster.
  • BERT successfully classified serious but non-disaster tweets (e.g., 'fire-workers rush into burning buildings') as positive, demonstrating contextual understanding.
  • Tweets with clear disaster keywords (e.g., 'suicide bomber', 'bombing') were correctly classified by both GloVe and BERT, but BERT showed superior generalization on ambiguous cases.
  • Deep learning models like Bi-LSTM consistently outperformed shallow models like logistic regression and random forests across all embedding types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.