Abstract
Sentiment analysis on Twitter faces significant challenges due to the high computational cost of processing millions of tweets and the noise introduced by objective, non-sentimental content. This paper presents a novel classification pipeline that filters training data based on subjectivity scores. By training models on a smaller, high-quality subset of subjective tweets and employing an "Effective Word Score" (EFWS) heuristic, the researchers achieved an accuracy of 81.7%, outperforming standard distant supervision baselines while reducing training data requirements and computational time by 50%.
Introduction
Twitter sentiment analysis typically relies on "Distant Supervision," where emoticons serve as proxy labels for training. While effective at scale, this method is inefficient because many tweets are factual or objective, lacking the sentiment markers necessary for effective model training. These objective tweets act as noise, requiring models to process larger datasets to achieve high accuracy. This research addresses these inefficiencies by proposing a subjectivity-based filtering mechanism that improves the signal-to-noise ratio in training data.
Methodology
The authors developed a multi-layered approach to optimize sentiment classification:
Subjectivity Filtering
Using the TextBlob library, each tweet is assigned a subjectivity score (0 to 1). By establishing a threshold (typically 0.5), the system discards objective tweets, creating a concentrated training set of highly subjective content. This filtering process is computationally inexpensive compared to the subsequent sentiment classification.
EFWS Heuristic and Preprocessing
A rule-based "Effective Word Score" (EFWS) heuristic was implemented to automatically label highly polar tweets using a dictionary of 2,500 words. Additionally, the pipeline includes robust preprocessing steps:
- Hashtag Parsing: Extracting sentiment from camel-case hashtags (e.g.,
#ThisSucks). - Acronym Mapping: Translating over 5,000 Twitter-specific acronyms into standard English.
- Normalization: Reducing feature space by standardizing repeated letters (e.g., "wooowww" to "woow").
Results and Discussion
The study evaluated the performance of Naive Bayes, Support Vector Machines (SVM), and Logistic Regression on the filtered datasets.
Accuracy Gains
The proposed model, utilizing Logistic Regression with Unigrams and Bigrams, achieved 81.7% accuracy on a 100K subjective dataset, surpassing the 80.2% accuracy of a baseline model trained on 200K unfiltered tweets. As illustrated in the following figure, classification accuracy consistently improves as the subjectivity threshold is raised.
Computational Efficiency
The reduction in training set size led to a dramatic decrease in computational overhead. Training times were cut by approximately 50% across all tested classifiers. This speedup is particularly valuable for large-scale applications where training complexity often grows non-linearly with data size.
Conclusion
This research demonstrates that subjectivity is a powerful filter for improving the efficiency of sentiment analysis. By prioritizing subjective content, models can achieve superior performance with significantly less data and lower computational costs. Future work will explore the application of this methodology to domain-specific datasets and the expansion of the EFWS lexicon to further automate the labeling process.
Summary updated