[Paper Review] Twitter Sentiment Analysis using Distributed Word and Sentence Representation
This paper proposes a deep learning approach to Twitter sentiment analysis using distributed word and sentence representations, leveraging LSTM, CNN, and MLP models on Word2Vec Skipgram, CBOW, and FastText embeddings. It achieves up to 81.66% training and 80.32% test accuracy, identifying Word2Vec Skipgram as the optimal method for sentiment classification due to its balance of performance and efficiency.
An important part of the information gathering and data analysis is to find out what people think about, either a product or an entity. Twitter is an opinion rich social networking site. The posts or tweets from this data can be used for mining people's opinions. The recent surge of activity in this area can be attributed to the computational treatment of data, which made opinion extraction and sentiment analysis easier. This paper classifies tweets into positive and negative sentiments, but instead of using traditional methods or preprocessing text data here we use the distributed representations of words and sentences to classify the tweets. We use Long Short Term Memory (LSTM) Networks, Convolutional Neural Networks (CNNs) and Artificial Neural Networks. The first two are used on Distributed Representation of words while the latter is used on the distributed representation of sentences. This paper achieves accuracies as high as 81%. It also suggests the best and optimal ways for creating distributed representations of words for sentiment analysis, out of the available methods.
Motivation & Objective
- To improve Twitter sentiment classification by replacing traditional bag-of-words and BOW-based features with distributed word and sentence representations.
- To evaluate the performance of LSTM, CNN, and MLP models on word and sentence vector representations for sentiment analysis.
- To identify the most effective method for generating distributed word vectors—Word2Vec CBOW, Skipgram, or FastText—for sentiment classification tasks.
- To determine the optimal hyperparameters, including word vector dimensions and network depth, for maximizing classification accuracy.
- To compare the performance of models trained on word vectors versus sentence vectors, assessing which representation yields better sentiment classification results.
Proposed method
- The study employs Long Short-Term Memory (LSTM) networks with 1 and 4 hidden layers, each containing 100 neurons, to classify tweets using distributed word representations.
- Convolutional Neural Networks (CNNs) with 1 and 4 hidden layers are also used, with ReLU activation and dropout (0.2) applied to all layers except the final sigmoid output layer.
- A Multilayer Perceptron (MLP) with 3 hidden layers is applied to sentence vectors, using ReLU activation and sigmoid output for binary sentiment classification.
- Word vectors are generated using three methods: Word2Vec Skipgram, Word2Vec CBOW, and FastText, with vector dimensions tested at 100, 200, and 300.
- Sentence vectors are created by averaging word vectors per sentence and used as input to the MLP model, with no preprocessing or token filtering applied.
- All models are trained end-to-end on raw text without non-word tokens or symbols, and Laplace smoothing is applied in the Naïve Bayes baseline model.
Experimental results
Research questions
- RQ1Which deep learning architecture—LSTM, CNN, or MLP—performs best on distributed word and sentence representations for Twitter sentiment classification?
- RQ2Which word vector generation method—Word2Vec Skipgram, CBOW, or FastText—yields the highest accuracy in sentiment analysis while balancing training time and memory efficiency?
- RQ3How does the dimensionality of word vectors (100, 200, 300) affect the performance of sentiment classification models?
- RQ4Does using sentence-level distributed representations outperform word-level representations in sentiment classification tasks?
- RQ5What is the optimal number of hidden layers in LSTM and CNN models for sentiment classification on Twitter data?
Key findings
- LSTM models with four hidden layers outperform both single-layer LSTMs and CNNs, achieving 80.32% test accuracy on the Skipgram word vector representation.
- FastText achieves the highest test accuracy (80.622%) among word vector methods, but requires significantly more training time and 15 epochs, compared to Skipgram’s 9 epochs.
- Word2Vec Skipgram is identified as the most optimal method due to its strong performance (80.32% test accuracy) and faster convergence compared to FastText.
- Increasing word vector dimensions to 200 improves test accuracy slightly (81.027%) compared to 100 (80.321%), but 300 dimensions show a decline (80.892%), indicating a potential performance plateau or overfitting.
- Sentence-level representations using MLPs yield significantly lower accuracy (68.431% test accuracy) compared to word-level representations, indicating word vectors are more effective for sentiment classification.
- The CBOW model overfits rapidly, achieving only 50.019% test accuracy despite a low 5-epoch training time, highlighting its instability for 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.