Sentiment Analysis on Work from Home Policy Using Naïve Bayes Method and Particle Swarm Optimization

Authors

  • Rista Azizah Arilya Universitas Muhammadiyah Malang
  • Yufis Azhar Universitas Muhammadiyah Malang
  • Didih Rizki Chandranegara Universitas Muhammadiyah Malang

DOI:

https://doi.org/10.26555/jiteki.v7i3.22080

Keywords:

sentiment analysis, Naive Bayes, Particle Swarm Optimization

Abstract

At the beginning of 2020, the world was shocked by the coronavirus, which spread rapidly in various countries, one of which was Indonesia. So that the government implemented the Work from Home policy to suppress the spread of Covid-19. This has resulted in many people writing their opinions on the Twitter social media platform and reaping many pros and cons of the community from all aspects. The data source used in this study came from tweets with keywords related to work from home. Several previous studies in this field have not implemented feature selection for sentiment analysis, although the method used is not optimal. So that the contribution in this study is to classify public opinion into positive and negative using sentiment analysis and implement PSO for feature selection and Naïve Bayes for classifiers in building sentiment analysis models. The results showed that the best accuracy was 81% in the classification using Naive Bayes and 86% in the classification using naive Bayes based on PSO through a comparison of 90% training data and 10% test data. With the addition of an accuracy of 5%, it can be concluded that the use of the Particle Swarm Optimization algorithm as a feature selection can help the classification process so that the results obtained are more effective than before.

References

M. A. Hassonah, R. Al-Sayyed, A. Rodan, A. M. Al-Zoubi, I. Aljarah, and H. Faris, “An efficient hybrid filter and evolutionary wrapper approach for sentiment analysis of various topics on Twitter,†Knowledge-Based Syst., vol. 192, p. 105353, 2020. https://doi.org/10.1016/j.knosys.2019.105353

S. Bashir et al., “Twitter chirps for Syrian people: Sentiment analysis of tweets related to Syria Chemical Attack,†Int. J. Disaster Risk Reduct., vol. 62, no. May, p. 102397, 2021. https://doi.org/10.1016/j.ijdrr.2021.102397

K. Sailunaz and R. Alhajj, “Emotion and sentiment analysis from Twitter text,†J. Comput. Sci., vol. 36, p. 101003, 2019. https://doi.org/10.1016/j.jocs.2019.05.009

G. Li, Q. S. Zheng, L. Zhang, S. Z. Guo, and L. Y. Niu, “Sentiment Infomation based Model for Chinese text Sentiment Analysis,†2020 IEEE 3rd Int. Conf. Autom. Electron. Electr. Eng. AUTEEE 2020, pp. 366–371, 2020. https://doi.org/10.1109/AUTEEE50969.2020.9315668

T. Daudert, “Exploiting textual and relationship information for fine-grained financial sentiment analysis,†Knowledge-Based Syst., vol. 230, p. 107389, 2021. https://doi.org/10.1016/j.knosys.2021.107389

Z. Jianqiang, G. Xiaolin, and Z. Xuejun, “Deep Convolution Neural Networks for Twitter Sentiment Analysis,†IEEE Access, vol. 6, pp. 23253–23260, 2018. https://doi.org/10.1109/ACCESS.2017.2776930

M. Wongkar and A. Angdresey, “Sentiment Analysis Using Naive Bayes Algorithm Of The Data Crawler: Twitter,†Proc. 2019 4th Int. Conf. Informatics Comput. ICIC 2019, pp. 1–5, 2019. https://doi.org/10.1109/ICIC47613.2019.8985884

A. Idrus, H. Brawijaya, and Maruloh, “Sentiment Analysis of State Officials News on Online Media Based on Public Opinion Using Naive Bayes Classifier Algorithm and Particle Swarm Optimization,†2018 6th Int. Conf. Cyber IT Serv. Manag. CITSM 2018, 2018, pp. 1–7. https://doi.org/10.1109/CITSM.2018.8674331

L. Mandloi and R. Patel, “Twitter sentiments analysis using machine learning methods,†2020 Int. Conf. Emerg. Technol. INCET 2020, pp. 1–5, 2020. https://doi.org/10.1109/INCET49848.2020.9154183

W. S. J. Saputra, P. Eva Yulia, and Z. E. Sholikha, “C4.5 and naive bayes for sentiment analysis Indonesian Tweet on E-Money user during pandemic,†Proceeding - 6th Inf. Technol. Int. Semin. ITIS 2020, pp. 172–177, 2020. https://doi.org/10.1109/ITIS50118.2020.9321081

H. Zhao, Z. Liu, X. Yao, and Q. Yang, “A machine learning-based sentiment analysis of online product reviews with a novel term weighting and feature selection approach,†Inf. Process. Manag., vol. 58, no. 5, p. 102656, 2021. https://doi.org/10.1016/j.ipm.2021.102656

A. S. Neogi, K. A. Garg, R. K. Mishra, and Y. K. Dwivedi, “Sentiment analysis and classification of Indian farmers’ protest using twitter data,†Int. J. Inf. Manag. Data Insights, vol. 1, no. 2, p. 100019, 2021. https://doi.org/10.1016/j.jjimei.2021.100019

S. Fahmi, L. Purnamawati, G. F. Shidik, M. Muljono, and A. Z. Fanani, “Sentiment analysis of student review in learning management system based on sastrawi stemmer and SVM-PSO,†Proc. - 2020 Int. Semin. Appl. Technol. Inf. Commun. IT Challenges Sustain. Scalability, Secur. Age Digit. Disruption, iSemantic 2020, pp. 643–648, 2020. https://doi.org/10.1109/iSemantic50169.2020.9234291

G. A. Dalaorao, A. M. Sison, and R. P. Medina, “Integrating Collocation as TF-IDF Enhancement to Improve Classification Accuracy,†TSSA 2019 - 13th Int. Conf. Telecommun. Syst. Serv. Appl. Proc., pp. 282–285, 2019. https://doi.org/10.1109/TSSA48701.2019.8985458

H. Aljuaid, R. Iftikhar, S. Ahmad, M. Asif, and M. Tanvir Afzal, “Important citation identification using sentiment analysis of in-text citations,†Telemat. Informatics, vol. 56, p. 101492, 2021. https://doi.org/10.1016/j.tele.2020.101492

A. Poornima and K. S. Priya, “A Comparative Sentiment Analysis of Sentence Embedding Using Machine Learning Techniques,†2020 6th Int. Conf. Adv. Comput. Commun. Syst. ICACCS 2020, pp. 493–496, 2020. https://doi.org/10.1109/ICACCS48705.2020.9074312

K. U. Manjari, S. Rousha, D. Sumanth, and J. Sirisha Devi, “Extractive Text Summarization from Web pages using Selenium and TF-IDF algorithm,†Proc. 4th Int. Conf. Trends Electron. Informatics, ICOEI 2020, 2020, pp. 648–652. https://doi.org/10.1109/ICOEI48184.2020.9142938

U. Bhattacharjee, P. K. Srijith, and M. S. Desarkar, “Term Specific TF-IDF Boosting for Detection of Rumours in Social Networks,†2019 11th Int. Conf. Commun. Syst. Networks, COMSNETS 2019, pp. 726–731, 2019. https://doi.org/10.1109/COMSNETS.2019.8711427

A. Mustopa, Hermanto, Anna, E. B. Pratama, A. Hendini, and D. Risdiansyah, “Analysis of user reviews for the pedulilindungi application on google play using the support vector machine and naive bayes algorithm based on particle swarm optimization,†2020 5th Int. Conf. Informatics Comput. ICIC 2020, vol. 2, 2020. https://doi.org/10.1109/ICIC50835.2020.9288655

E. Souza, A. L. I. Oliveira, G. Oliveira, A. Silva, and D. Santos, “An Unsupervised Particle Swarm Optimization Approach for Opinion Clustering,†Proc. - 2016 5th Brazilian Conf. Intell. Syst. BRACIS 2016, pp. 307–312, 2017. https://doi.org/10.1109/BRACIS.2016.063

A. S. Daoud, A. Sallam, and M. E. Wheed, “Improving Arabic document clustering using K-means algorithm and Particle Swarm Optimization,†2017 Intell. Syst. Conf. IntelliSys 2017, vol. 2018-Janua, no. September, pp. 879–885, 2018. https://doi.org/10.1109/IntelliSys.2017.8324233

W. K. Jati and L. Kemas Muslim, “Optimization of Decision Tree Algorithm in Text Classification of Job Applicants Using Particle Swarm Optimization,†2020 3rd Int. Conf. Inf. Commun. Technol. ICOIACT 2020, pp. 201–205, 2020. https://doi.org/10.1109/ICOIACT50329.2020.9332101

X. Bai, X. Gao, and B. Xue, “Particle Swarm Optimization Based Two-Stage Feature Selection in Text Mining,†2018 IEEE Congr. Evol. Comput. CEC 2018 - Proc., pp. 1–8, 2018. https://doi.org/10.1109/CEC.2018.8477773

N. K. Suchetha, A. Nikhil, and P. Hrudya, “Comparing the wrapper feature selection evaluators on twitter sentiment classification,†ICCIDS 2019 - 2nd Int. Conf. Comput. Intell. Data Sci. Proc., pp. 1–6, 2019. https://doi.org/10.1109/ICCIDS.2019.8862033

S. Ernawati, E. R. Yulia, Frieyadie, and Samudi, “Implementation of the Naïve Bayes Algorithm with Feature Selection using Genetic Algorithm for Sentiment Review Analysis of Fashion Online Companies,†2018 6th Int. Conf. Cyber IT Serv. Manag. (CITSM), 2018, pp. 1–5. https://doi.org/10.1109/CITSM.2018.8674286

U. Pujianto, M. F. Hidayat, and H. A. Rosyid, “Text Difficulty Classification Based on Lexile Levels Using K-Means Clustering and Multinomial Naive Bayes,†Proc. - 2019 Int. Semin. Appl. Technol. Inf. Commun. Ind. 4.0 Retrosp. Prospect. Challenges, iSemantic 2019, pp. 163–170, 2019. https://doi.org/10.1109/ISEMANTIC.2019.8884317

P. Sudhir and V. D. Suresh, “Comparative Study of Various Approaches, Applications and Classifiers for Sentiment Analysis,†Glob. Transitions Proc., 2021. https://doi.org/10.1016/j.gltp.2021.08.004

S. Zahoor and R. Rohilla, “Twitter Sentiment Analysis Using Machine Learning Algorithms: A Case Study,†Proc. - 2020 Int. Conf. Adv. Comput. Commun. Mater. ICACCM 2020, pp. 194–199, 2020. https://doi.org/10.1109/ICACCM50413.2020.9213011

P. Liu, H. Yu, T. Xu, and C. Lan, “Research on archives text classification based on Naive Bayes,†Proc. 2017 IEEE 2nd Inf. Technol. Networking, Electron. Autom. Control Conf. ITNEC 2017, vol. 2018-January, pp. 187–190, 2018. https://doi.org/10.1109/ITNEC.2017.8284934

L. Xiao, G. Wang, and Y. Liu, “Patent Text Classification Based on Naive Bayesian Method,†Proc. - 2018 11th Int. Symp. Comput. Intell. Des. Isc. 2018, vol. 1, pp. 57–60, 2018. https://doi.org/10.1109/ISCID.2018.00020

Downloads

Published

2021-12-20

How to Cite

[1]
R. Azizah Arilya, Y. Azhar, and D. Rizki Chandranegara, “Sentiment Analysis on Work from Home Policy Using Naïve Bayes Method and Particle Swarm Optimization”, J. Ilm. Tek. Elektro Komput. Dan Inform, vol. 7, no. 3, pp. 433–440, Dec. 2021.

Issue

Section

Articles

Similar Articles

1 2 3 > >> 

You may also start an advanced similarity search for this article.