Open Access   Article Go Back

Sentiment Analysis of Tweets using Naïve Bayes Algorithm through R Programming

Annie Syrien1 , M. Hanumanthappa2 , B. Sundaravadivazhagan3

Section:Research Paper, Product Type: Journal Paper
Volume-6 , Issue-11 , Page no. 884-889, Nov-2018

CrossRef-DOI:   https://doi.org/10.26438/ijcse/v6i11.884889

Online published on Nov 30, 2018

Copyright © Annie Syrien, M. Hanumanthappa, B. Sundaravadivazhagan . This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

View this paper at   Google Scholar | DPI Digital Library

How to Cite this Paper

  • IEEE Citation
  • MLA Citation
  • APA Citation
  • BibTex Citation
  • RIS Citation

IEEE Style Citation: Annie Syrien, M. Hanumanthappa, B. Sundaravadivazhagan, “Sentiment Analysis of Tweets using Naïve Bayes Algorithm through R Programming,” International Journal of Computer Sciences and Engineering, Vol.6, Issue.11, pp.884-889, 2018.

MLA Style Citation: Annie Syrien, M. Hanumanthappa, B. Sundaravadivazhagan "Sentiment Analysis of Tweets using Naïve Bayes Algorithm through R Programming." International Journal of Computer Sciences and Engineering 6.11 (2018): 884-889.

APA Style Citation: Annie Syrien, M. Hanumanthappa, B. Sundaravadivazhagan, (2018). Sentiment Analysis of Tweets using Naïve Bayes Algorithm through R Programming. International Journal of Computer Sciences and Engineering, 6(11), 884-889.

BibTex Style Citation:
@article{Syrien_2018,
author = {Annie Syrien, M. Hanumanthappa, B. Sundaravadivazhagan},
title = {Sentiment Analysis of Tweets using Naïve Bayes Algorithm through R Programming},
journal = {International Journal of Computer Sciences and Engineering},
issue_date = {11 2018},
volume = {6},
Issue = {11},
month = {11},
year = {2018},
issn = {2347-2693},
pages = {884-889},
url = {https://www.ijcseonline.org/full_paper_view.php?paper_id=3262},
doi = {https://doi.org/10.26438/ijcse/v6i11.884889}
publisher = {IJCSE, Indore, INDIA},
}

RIS Style Citation:
TY - JOUR
DO = {https://doi.org/10.26438/ijcse/v6i11.884889}
UR - https://www.ijcseonline.org/full_paper_view.php?paper_id=3262
TI - Sentiment Analysis of Tweets using Naïve Bayes Algorithm through R Programming
T2 - International Journal of Computer Sciences and Engineering
AU - Annie Syrien, M. Hanumanthappa, B. Sundaravadivazhagan
PY - 2018
DA - 2018/11/30
PB - IJCSE, Indore, INDIA
SP - 884-889
IS - 11
VL - 6
SN - 2347-2693
ER -

VIEWS PDF XML
670 286 downloads 306 downloads
  
  
           

Abstract

The enlargement in development of web 2.0 and web enabled devices smacked huge user generated data hence attracted many researchers in the past years in the field of social media mining. The focal point in mining social media is for obtaining the important decision making opinions, attitudes, sentiments, and emotions. This paper uses naïve bayes algorithm to classify the sentiments and polarity of the tweets of Bengaluru traffic in detail with the help of opinion lexicon through R studio. The tweets on Bengaluru traffic are first accessed from twitter through streaming API, then preprocessed and functions containing naïve bayes classifier is used to classify the tweets into emotions and polarity, through classify emotions and classify polarity functions. Classify emotions functions makes use of naïve bayes algorithm for classifying the emotions into seven categories such as anger, disgust, fear, joy, sadness, surprise, and best fit. Classify polarity function receives two arguments, cleaned tweets and naïve bayes algorithm for classifying the polarity into positive sentiment and negative sentiment. The results are represented through plots in R studio.

Key-Words / Index Term

Sentiment analysis, Naïve bayes, R programming, Data mining and Polarity detection

References

[1] Peerapon Vateekul and Thanabhat Koomsubha, "A study of sentiment analysis using deep learning techniques on Thai Twitter data," in Computer Science and Software Engineering (JCSSE), 2016 13th International Joint Conference on, 2016, pp. 1-6.
[2] Zahra and Jalali, Mehrdad Rezaei, "Sentiment Analysis on Twitter using McDiarmid Tree Algorithm," in 7th International Conference on Computer and Knowledge Engineering (ICCKE 2017), October 26-27 2017, Ferdowsi University of Mashhad, 2017, pp. 33-36.
[3] Monu Kumar and Anju Bala, "Analyzing Twitter sentiments through big data," in Computing for Sustainable Global Development (INDIACom), 2016 3rd International Conference on, 2016, pp. 2628-2631.
[4] Zhou Jin, Yujiu Yang, Xianyu Bao, and Biqing Huang, "Combining user-based and global lexicon features for sentiment analysis in twitter," in Neural Networks (IJCNN), 2016 International Joint Conference on, 2016, pp. 4525-4532.
[5] Manju Venugopalan and Deepa Gupta, "Exploring sentiment analysis on twitter data," in Contemporary Computing (IC3), 2015 Eighth International Conference on, 2015, pp. 241-247.
[6] Paramita Ray and Amlan Chakrabarti, "Twitter sentiment analysis for product review using lexicon method," in Data Management, Analytics and Innovation (ICDMAI), 2017 International Conference on, 2017, pp. 211-216.
[7] Zhao Jianqiang and Cao Xueliang, "Combining Semantic and Prior Polarity for Boosting Twitter Sentiment Analysis," in Smart City/SocialCom/SustainCom (SmartCity), 2015 IEEE International Conference on, 2015, pp. 832-837.
[8] Umme Aymun Siddiqua, Tanveer Ahsan, and Abu Nowshed Chy, "Combining a rule-based classifier with weakly supervised learning for twitter sentiment analysis," in Innovations in Science, Engineering and Technology (ICISET), International Conference on, 2016, pp. 1-4.
[9] Hima Suresh and others, "An unsupervised fuzzy clustering method for twitter sentiment analysis," in Computation System and Information Technology for Sustainable Solutions (CSITSS), International Conference on, 2016, pp. 80-85.
[10] Aliza Sarlan, Chayanit Nadam, and Shuib Basri, "Twitter sentiment analysis," in Information Technology and Multimedia (ICIMU), 2014 International Conference on, 2014, pp. 212-216.
[11] Suvarna D. Tembhurnikar and Nitin N. Patil, "Topic detection using BNgram method and sentiment analysis on twitter dataset," in Reliability, Infocom Technologies and Optimization (ICRITO)(Trends and Future Directions), 2015 4th International Conference on, 2015, pp. 1-6.
[12] Rif’at Ahdi Ramadhani, Fatma Indriani, and Dodon T. Nugrahadi, "Comparison of Naive Bayes smoothing methods for Twitter sentiment analysis," Comparison of Naive Bayes Smoothing Methods for Twitter Sentiment Analysis, 2016.
[13] Zhao Jianqiang, "Combing Semantic and Prior Polarity Features for Boosting Twitter Sentiment Analysis Using Ensemble Learning," in Data Science in Cyberspace (DSC), IEEE International Conference on, 2016, pp. 709-714.
[14] Sonia Anastasia and Indra Budi, "Twitter sentiment analysis of online transportation service providers," in Advanced Computer Science and Information Systems (ICACSIS), 2016 International Conference on, 2016, pp. 359-365.
[15] Abhijit Janardan Patankar, Kshama V. Kulhalli, and Kotrappa Sirbi, "Emotweet: Sentiment Analysis tool for twitter," in Advances in Electronics, Communication and Computer Technology (ICAECCT), 2016 IEEE International Conference on, 2016, pp. 157-159.
[16] Fotis Aisopos, Dimitrios Tzannetos, John Violos, and Theodora Varvarigou, "Using n-gram graphs for sentiment analysis: an extended study on Twitter," in Big Data Computing Service and Applications (BigDataService), 2016 IEEE Second International Conference on, 2016, pp. 44-51.
[17] Chintan Dedhia and Jyoti Ramteke, "Ensemble model for Twitter sentiment analysis," in Inventive Systems and Control (ICISC), 2017 International Conference on, 2017, pp. 1-5.
[18] Mohit Mertiya and Ashima Singh, "Combining naive bayes and adjective analysis for sentiment detection on Twitter," in Inventive Computation Technologies (ICICT), International Conference on, vol. 2, 2016, pp. 1-6.
[19] Anurag P. Jain and Vijay D. Katkar, "Sentiments analysis of Twitter data using data mining," in Information Processing (ICIP), 2015 International Conference on, 2015, pp. 807-810.
[20] David Zimbra, Manoochehr Ghiassi, and Sean Lee, "Brand-related Twitter sentiment analysis using feature engineering and the dynamic architecture for artificial neural networks," in System Sciences (HICSS), 2016 49th Hawaii International Conference on, 2016, pp. 1930-1938.
[21] Huma Parveen and Shikha Pandey, "Sentiment analysis on Twitter Data-set using Naive Bayes algorithm," in Applied and Theoretical Computing and Communication Technology (iCATccT), 2016 2nd International Conference on, 2016, pp. 416-419.
[22] Mondher Bouazizi and Tomoaki Ohtsuki, "Opinion mining in Twitter: How to make use of sarcasm to enhance sentiment analysis," in Advances in Social Networks Analysis and Mining (ASONAM), 2015 IEEE/ACM International Conference on, 2015, pp. 1594-1597.
[23] M. S. Neethu and R. Rajasree, "Sentiment analysis in twitter using machine learning techniques," in Computing, Communications and Networking Technologies (ICCCNT), 2013 Fourth International Conference on, 2013, pp. 1-5.
[24] Omar Abdelwahab, Mohamed Bahgat, Christopher J. Lowrance, and Adel Elmaghraby, "Effect of training set size on SVM and Naive Bayes for Twitter sentiment analysis," in Signal Processing and Information Technology (ISSPIT), 2015 IEEE International Symposium on, 2015, pp 46-51.
[25] Angelpreethi, P. kiruthika , S. BrittoRameshKumar, “A Methodological Framework for Opinion Mining” in International Journal of Computer Sciences and Engineering, 2018, Vol.6(2)