Skip to main content

Abstract

Social networking and micro-blogging sites are stores of opinion-bearing content created by human users. Sentiment analysis extracts and measures the sentiment or “attitude” of documents as well as the topics within documents. The attitude may be the person’s judgment (e.g., positive vs. negative) or emotional tone (e.g., objective vs. subjective). In this paper we define a supervised learning solution for sentiment analysis on twitter messages which gives profound accuracy using Naïve Bayes Classification. It classifies the tweets either positive or negative. Our dataset consists of tweets containing move reviews retrieved from twitter using certain keywords on a cloud platform. The experiment and analysis has 3 major steps. In the first step, the algorithm used is Naïve Bayes which performed Boolean classification on bag of words, resulting in 71 % of accuracy. In the second step, Naïve Bayes algorithm is applied on bag of words without stop words which gave 72 % accuracy. In the third step, using the concept of Information gain, high value features are selected using Chi Square, which gave maximum accuracy. The evaluating metrics used in this work are Accuracy, Precision, Recall and F-Measure for both the sentiment classes. The results show that Naïve Bayes algorithm with the application of feature selection using the minimum Chi Square value of 3 gave an Accuracy of 89 %, Positive Precision 83.07 %, Positive Recall 97.2 %, Positive F-Measure 89.9 %, Negative Precision 96.6 %, Negative Recall 81.2 % and Negative F-Measure 88.2 %. The significant increase in Positive Recall specifies that the classifier classifies positive words with more probability when compared to the negative words. This paper also describes the preprocessing steps needed in order to achieve high accuracy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  • Hussain, A.R., Hameed, M.A., Hegde, N.P.: Mining Twitter using Cloud Computing. In: World Congress on Information and Communication Technologies, pp. 187-190 (2011)

    Google Scholar 

  • Pang, B., Lee, L.: Opinion Mining and Sentiment Analysis. In: Foundations and Trends in Information Retrieval (2008)

    Google Scholar 

  • Das, S.R., Chen, M.Y.: Yahoo! for Amazon: Sentiment Extraction from Small Talk on the Web. In: Management Science, pp. 1375-1388 (2007)

    Google Scholar 

  • Forman, G.: An extensive empirical study of feature selection metrics for text classification. In: The Journal of Machine Learning Research, pp. 1289-1305 (2003)

    Google Scholar 

  • Rennie, J.D.M, Shih, L., Teevan, J., Karger, D.R.: Tackling the Poor Assumptions of Naïve Bayes Text Classifiers. In: Proceedings of the Twentieth International Conference on Machine Learning, pp. 616-63 (2003)

    Google Scholar 

  • Agarwal, A., Xie, B., Vovsha, I., Rambow, O., Passonneau, R.: Sentiment Analysis of Twitter Data. In: Proceedings of the Workshop on Languages in Social Media, pp. 30-38 (2011)

    Google Scholar 

  • Jiang, L., Yu, M., Zhou, M., Liu, X., Zhao, T.: Target-dependent Twitter sentiment classification. In: Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pp. 151-160 (2011)

    Google Scholar 

  • Pandey, V., Iyer, C.: Sentiment analysis of microblogs. Technical Report, Stanford University (2009)

    Google Scholar 

  • Lewin, J. S., Pribula, A.: Extracting Emotion from Twitter. Technical Report, Stanford University (2009)

    Google Scholar 

  • Pang, B., Lee, L., Vaithyanatan, S.: Thumbs up?: sentiment classification using machine learning techniques. In: Proceedings of the ACL-02 conference on Empirical methods in natural language processing, pp. 79-86 (2002)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to S. Fouzia Sayeedunnissa .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer India

About this paper

Cite this paper

Fouzia Sayeedunnissa, S., Hussain, A.R., Hameed, M.A. (2013). Supervised Opinion Mining of Social Network Data Using a Bag-of-Words Approach on the Cloud. In: Bansal, J., Singh, P., Deep, K., Pant, M., Nagar, A. (eds) Proceedings of Seventh International Conference on Bio-Inspired Computing: Theories and Applications (BIC-TA 2012). Advances in Intelligent Systems and Computing, vol 202. Springer, India. https://doi.org/10.1007/978-81-322-1041-2_26

Download citation

  • DOI: https://doi.org/10.1007/978-81-322-1041-2_26

  • Published:

  • Publisher Name: Springer, India

  • Print ISBN: 978-81-322-1040-5

  • Online ISBN: 978-81-322-1041-2

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics