[Paper Review] Using Word Embeddings in Twitter Election Classification
This paper investigates the impact of word embedding configurations—background corpus, context window size, and dimensionality—on Twitter election classification using CNNs. It finds that aligning the background corpus with the classification data and using large context windows and high-dimensional embeddings significantly improves performance over TF-IDF and SVM baselines.
Word embeddings and convolutional neural networks (CNN) have attracted extensive attention in various classification tasks for Twitter, e.g. sentiment classification. However, the effect of the configuration used to train and generate the word embeddings on the classification performance has not been studied in the existing literature. In this paper, using a Twitter election classification task that aims to detect election-related tweets, we investigate the impact of the background dataset used to train the embedding models, the context window size and the dimensionality of word embeddings on the classification performance. By comparing the classification results of two word embedding models, which are trained using different background corpora (e.g. Wikipedia articles and Twitter microposts), we show that the background data type should align with the Twitter classification dataset to achieve a better performance. Moreover, by evaluating the results of word embeddings models trained using various context window sizes and dimensionalities, we found that large context window and dimension sizes are preferable to improve the performance. Our experimental results also show that using word embeddings and CNN leads to statistically significant improvements over various baselines such as random, SVM with TF-IDF and SVM with word embeddings.
Motivation & Objective
- To investigate how word embedding configuration affects classification performance in Twitter election detection.
- To determine whether background corpus type (e.g., Wikipedia vs. Twitter) influences model effectiveness.
- To evaluate the impact of Word2Vec hyperparameters—context window size and embedding dimensionality—on CNN-based classification.
- To compare CNNs with word embeddings against traditional baselines like SVM with TF-IDF and SVM with word embeddings.
- To provide practical guidelines for configuring word embeddings in low-resource, ambiguous Twitter classification tasks.
Proposed method
- Trained Word2Vec models on two distinct background corpora: Wikipedia articles and Twitter microposts.
- Used a 1D convolutional neural network (CNN) architecture to classify election-related tweets, with word embeddings as input.
- Systematically varied context window sizes (W1, W3, W5) and embedding dimensions (D200, D500, D800) to evaluate their impact.
- Employed TF-IDF and SVM with word embeddings as baseline models for comparison.
- Applied statistical significance testing (p < 0.05) to validate performance improvements.
- Used a dataset of 2015 Venezuela parliamentary election tweets, annotated for election relevance.
Experimental results
Research questions
- RQ1How does the choice of background corpus (e.g., Wikipedia vs. Twitter) affect the performance of CNN-based Twitter election classification?
- RQ2What is the optimal context window size for word embeddings in the context of election-related tweet classification?
- RQ3How does embedding dimensionality influence classification accuracy in this task?
- RQ4Do CNNs with word embeddings outperform traditional baselines like SVM with TF-IDF or SVM with word embeddings?
- RQ5Do the optimal hyperparameters for word embeddings in this task align with findings from other NLP tasks like NER or dependency parsing?
Key findings
- Using a background corpus aligned with the classification dataset (i.e., Twitter microposts) leads to significantly better classification performance than using a mismatched corpus like Wikipedia.
- Word embeddings trained with a large context window (W5) and high dimensionality (D800) yield the best performance, with F1 scores of 77.1% for CNNs, statistically superior to the best SVM+TF-IDF baseline (F1 = 74.8%).
- The CNN classifier outperforms SVM with word embeddings (SVM+WE), particularly when using high-dimensional embeddings, indicating that CNNs better exploit rich semantic representations.
- A larger context window (W5) consistently improves performance across all embedding dimensions, contradicting findings from NER and dependency parsing tasks where smaller windows were optimal.
- High-dimensional embeddings (D800) combined with large context windows (W5) produce the highest F1 score (77.1%) for the CNN model, demonstrating that richer representations enhance classification in ambiguous Twitter text.
- The performance gap between CNN with word embeddings and the best baseline (SVM+TF-IDF) is statistically significant, confirming the value of deep learning with optimized embeddings in this task.
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.