Community Opinion Sentiment Analysis on Social Media Using Naive Bayes Algorithm Methods

Taqwa Hariguna, Vera Rachmawati


The election of Governor is an election event for the Regional Head for the future of the region and the country. The Central Java Governor election in 2018 was held jointly on 27 June 2018, which was followed by 2 candidate pairs of the governor. Its many responses from people through twitter's social media to bring up opinions from the public. Sentiment analysis of 2 research objects of Central Java Governor 2018 candidates with a total of 400 tweets with each candidate being 200 tweets. The used of tweets are divided into 3 classes: positive class, neutral class and negative class. In this study the classification process used the Naive Bayes Classifier (NBC) method, while for data preprocessing is using Cleansing, Punctuation Removal, Stopword Removal, and Tokenisation, to determine the sentiment class with the Lexicon Based method produces the highest accuracy in the Ganjar Pranowo dataset with an accuracy of 87,9545%, Precision value is 0.891%, Recall value is 0.88% and F-Measure is 0.851% while Sudirman Said dataset has an accuracy rate of 84.322%, Precision value of 0.867%, Recall value of 0.843% and F-Measure of 0.815%. From these results, we can conclude that the Ganjar Pranowo dataset was higher compared to Sudirman Said's dataset.

Article Metrics

Abstract: 349 Viewers PDF: 192 Viewers


Sentiment analysis, Twitter, Naive bayes classifier.

Full Text:



J. Han, and M. Kamber, Data Mining Concepts And Techniques. Verlag Berlin Heidelberg : Spinger, 2006. Accessed 29 September 2018.

A.P. Jain, and V.D. Katkar, Sentimen analysis of Twitter data using data mining. In 2015 International Conferene on Information Processing (ICIP), 807-810, 2015.

P. Beineke, T. Hastie, C. Manning, and S. Vaithyananthan, Exploring Sentiment Summarization. In Y. Qu, J. Shanahan, & J. Weibe (eds) Proceedings of the {AAAI} Spring Symposium on Exploring Attitude and Affect in Text : Theories and Applications, AAAI Press, 2004.

Po-Wei Liang, Bi-Ru Dai. Opinion Mining on Social Media Data. IEEE 14th International Conference on Mobile Data Management, pp. 9196, 2013.

R. Li, K. H. Lei,R. Khadiwala, Chang. TEDAS: A Twitter-based Event Detection and Analysis System. ICDE, pp.1273-1276, 2012 IEEE 28th International Conference on Data Engineering, 2012.

Gonzalez-Marron D., Mejia-Guzman D., Enciso-Gonzalez A. (2017) Exploiting Data of the Twitter Social Network Using Sentiment Analysis. In: Sucar E., Mayora O., Munoz de Cote E. (eds) Applications for Future Internet. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 179. Springer, Cham

Birjali M., Beni-Hssane A., Erritali M. (2017) A Method Proposed for Estimating Depressed Feeling Tendencies of Social Media Users Utilizing Their Data. In: Abraham A., Haqiq A., Alimi A., Mezzour G., Rokbani N., Muda A. (eds) Proceedings of the 16th International Conference on

Hybrid Intelligent Systems (HIS 2016). HIS 2016. Advances in Intelligent Systems and Computing, vol 552. Springer, Cham

Kasturi D. V., Nurhafizah T. Suicide detection system based on Twitter. Science and Information Conference 2014, pp. 785-788, August 27-29, London, UK

Zhao, D. & Rosson, M.B., (n.d), Retrieved from http://research cw08_workshop.pdf

Dey P., Sinha A., Roy S. (2015) Social Network Analysis of Different Parameters Derived from Realtime Profile. In: Natarajan R., Barua G., Patra M.R. (eds) Distributed Computing and Internet Technology. ICDCIT 2015. Lecture Notes in Computer Science, vol 8956. Springer, Cham

Yang D., Zheng H., Yan J., Jin Y. (2012) Semantic Social Network Analysis with Text Corpora. In: Tan PN., Chawla S., Ho C.K., Bailey J. (eds) Advances in Knowledge Discovery and Data Mining. PAKDD 2012. Lecture Notes in Computer Science, vol 7301. Springer, Berlin, Heidelberg

Rawashdeh A., Rawashdeh M., Dz I., Ralescu A. (2014) Measures of Semantic Similarity of Nodes in a Social Network. In: Laurent A., Strauss O., Bouchon-Meunier B., Yager R.R. (eds) Information Processing and Management of Uncertainty in Knowledge-Based Systems. IPMU 2014. Communications in Computer and Information Science, vol 443. Springer, Cham

James W. Pennebaker, et al. The Development and Psychometric Properties of LIWC2007. The University of Texas at Austin and the University of Auckland, New Zealand,


  • There are currently no refbacks.

barcodeInternational Journal of Informatics and Information Systems (IJIIS)
ISSN: 2579-7069 (online)
Organized by Information System Department - Universitas Amikom Purwokerto - Indonesia, Laboratoire Signaux Et Systèmes (L2s) - Université Paris 13 - France, and Bright Publisher
Published by Bright Publisher
Website :
Email :,

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0