Sentiment Analysis of Twitter Tweets for Mobile Phone Brands

  • Mehnaz Anjum Khwaja Fareed University of Engineering & Information Technology, Rahim Yar khan
  • Akmal Khan Department of Computer Science, The Islamia University of Bahawalpur, Pakistan
  • Shabir Hussain School of Information Engineering, Zhengzhou University, Henan, China
  • M. Zeeshan Jhandir Department of Computer Science, The Islamia University of Bahawalpur, Pakistan
  • Rafaqat Kazmi Department of Computer Science, The Islamia University of Bahawalpur, Pakistan
  • Imran Sarwar Bajwa Department of Computer Science, The Islamia University of Bahawalpur, Pakistan
  • Muhammad Abid Ali Khwaja Fareed University of Engineering & Information Technology, Rahim Yar khan
Keywords: Opinion mining, Sentiment Analysis, Feature Extraction, Machine Learning, NLTK, Bigram words

Abstract

Sentiment Analysis is a method of extracting useful insight from text or expressions that help make decisions for different fields like establishing a new business, purchasing electronic products, or overall community analysis. Different techniques for sentiment analysis have been used in various researches. This research used a machine learning classification technique to perform sentiment analysis with and without Stopwords on unigram features and Bigram words. We used the Support Vector Machine, Maximum Entropy, Naïve Byes, Logistic Regressions machine learning classifiers using Python. NLTK and scikit learn packages used to perform sentiment analysis in this work with Twitter API. The performance of classifiers is measured in terms of Accuracy, Precision, Recall, and F-measure. Results showed that the current method for calculating sentiment from tweets is better than previous methods, as results showed improved accuracy. It is also observed that Bigram features accuracy after removing Stopwords from data has been improved. By analyzing our results, it is observed that logistic regression gives the best performance, and we achieved 93.74% accuracy; using all feature sets and Maximum Entropy also provides significant results. By Comparing previous sentiment analysis results with our results, it is evidenced that our techniques of finding sentiment are significant.

Published
2021-03-17
How to Cite
[1]
M. Anjum, “Sentiment Analysis of Twitter Tweets for Mobile Phone Brands”, PakJET, vol. 4, no. 1, pp. 131-138, Mar. 2021.