Skip to main content
QUICK REVIEW

[Paper Review] Twitter Sentiment Analysis: Lexicon Method, Machine Learning Method and Their Combination

Olga Kolchyna, Thársis T. P. Souza|arXiv (Cornell University)|Jul 3, 2015
Sentiment Analysis and Opinion MiningComputer Science60 references133 citations
TL;DR

This paper proposes a hybrid sentiment analysis method for Twitter that combines lexicon-based sentiment scoring with machine learning, using a cost-sensitive SVM to handle class imbalance. The approach improves F-score to 73%, outperforming both standalone lexicon and machine learning methods, with emoticon and slang-enhanced lexicons boosting accuracy over traditional ones.

ABSTRACT

This paper covers the two approaches for sentiment analysis: i) lexicon based method; ii) machine learning method. We describe several techniques to implement these approaches and discuss how they can be adopted for sentiment classification of Twitter messages. We present a comparative study of different lexicon combinations and show that enhancing sentiment lexicons with emoticons, abbreviations and social-media slang expressions increases the accuracy of lexicon-based classification for Twitter. We discuss the importance of feature generation and feature selection processes for machine learning sentiment classification. To quantify the performance of the main sentiment analysis methods over Twitter we run these algorithms on a benchmark Twitter dataset from the SemEval-2013 competition, task 2-B. The results show that machine learning method based on SVM and Naive Bayes classifiers outperforms the lexicon method. We present a new ensemble method that uses a lexicon based sentiment score as input feature for the machine learning approach. The combined method proved to produce more precise classifications. We also show that employing a cost-sensitive classifier for highly unbalanced datasets yields an improvement of sentiment classification performance up to 7%.

Motivation & Objective

  • To evaluate and compare lexicon-based and machine learning-based sentiment analysis methods for Twitter.
  • To investigate whether enhancing sentiment lexicons with emoticons, abbreviations, and social-media slang improves classification accuracy.
  • To explore the integration of lexicon-derived sentiment scores as features in machine learning models for improved performance.
  • To assess the impact of cost-sensitive learning on sentiment classification in highly unbalanced Twitter datasets.
  • To benchmark the proposed hybrid method against state-of-the-art approaches using the SemEval-2013 Twitter sentiment dataset.

Proposed method

  • Constructed three sentiment lexicons: a base Opinion Lexicon (OL), OL enhanced with manually curated emoticons, abbreviations, and slang (OL + EMO), and OL + EMO further expanded with automatically generated terms (OL + EMO + AUTO).
  • Applied the bag-of-words (BOW) model to represent Twitter messages as $ n \times m $ binary matrices, where $ n $ is the number of instances and $ m $ is the number of features.
  • Used sentiment lexicon scores as an additional input feature in machine learning models, with feature selection based on information gain to rank feature relevance.
  • Trained multiple classifiers—Naive Bayes, Decision Trees, SVM, and cost-sensitive SVM—on the benchmark SemEval-2013 Task 2-B dataset.
  • Employed a cost-sensitive SVM to minimize misclassification costs, particularly for positive and negative instances misclassified as neutral, due to dataset imbalance.
  • Evaluated models using F-score between positive and negative classes, as per SemEval-2013 evaluation protocol.

Experimental results

Research questions

  • RQ1Does enhancing a sentiment lexicon with emoticons, abbreviations, and social-media slang improve sentiment classification accuracy on Twitter?
  • RQ2How does the performance of a hybrid method—using lexicon scores as features in a machine learning model—compare to standalone lexicon or machine learning approaches?
  • RQ3To what extent does cost-sensitive learning improve sentiment classification performance on highly unbalanced Twitter datasets?
  • RQ4Which features, particularly the lexicon-derived sentiment score, are most informative for sentiment classification in Twitter text?
  • RQ5Can the proposed hybrid method achieve superior performance compared to existing state-of-the-art systems on the SemEval-2013 benchmark?

Key findings

  • The OL + EMO lexicon, enhanced with manually curated emoticons and social-media expressions, outperformed both the base OL and the larger OL + EMO + AUTO lexicon, indicating that targeted lexical enrichment improves accuracy.
  • The hybrid method, which uses the lexicon sentiment score as a feature in a machine learning model, produced more precise classifications than either method alone.
  • The cost-sensitive SVM classifier achieved an F-score of 73%, representing a 7% improvement over standard SVM, demonstrating the effectiveness of addressing class imbalance in Twitter sentiment analysis.
  • Among the tested classifiers, cost-sensitive SVM outperformed Naive Bayes (64%), Decision Trees (62%), and standard SVM (66%), ranking highest on the SemEval-2013 test set.
  • The lexicon-based sentiment score emerged as one of the top-ranked features in the information gain-based feature selection process, confirming its strong predictive relevance.
  • The proposed hybrid model achieved an F-score of 73%, surpassing the winning team’s result of 69.02% in the SemEval-2013 competition, indicating superior performance on the benchmark dataset.

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.