A Study of Public Opinion on the 2024 Regional Elections Using Cosine Similarity and TF-IDF Algorithms

https://doi.org/10.47194/orics.v6i1.364

Authors

  • Ari Hidayat Universitas Pakuan
  • Arie Qurania Universitas Pakuan
  • Mohamad Iqbal Universitas Pakuan

Abstract

The organization of general and regional head elections is an essential aspect of implementing an indirect democracy system. The primary objective of regional elections is to ensure that leaders are elected democratically and act on behalf of the people. The simultaneous holding of regional head elections has become a major topic of public discussion, giving rise to diverse opinions, particularly among Twitter users. This study aims to classify public opinion regarding the 2024 regional head elections using TF-IDF weighting, followed by a classification process with the Cosine Similarity algorithm. Of the 1,000 data points successfully scraped, 34.9% were classified as positive sentiment, 23.5% as negative sentiment, and 37.1% as neutral sentiment

References

Han, J., Kamber, M., & Pei, J. (2012). Data Mining Concepts and Techniques. Massachusetts: Elsevier Inc.

Melita, R., Amrizal, V., Suseno, H., & Dirjam, T. (2018). Application of Term Frequency Inverse Document Frequency (TF-IDF) and Cosine Similarity Methods in Information Retrieval Systems to Know Web-Based Hadith Syarah (Case Study: Syarah Umdatil Ahkam). J. Tek. Inform, 11(2), 149-164.

Nurmandi, A., Purnomo, E. P., Prianto, A. L., & Jaenuri, M. (2015). The current practice of citizen participation in Indonesia netizen and selected cases of local democracy in Indonesia. Citizen Participation, 21, 119-167.

Pratama, Y., Roberto Tampubolon, A., Diantri Sianturi, L., Diana Manalu, R., & Frietz Pangaribuan, D. (2019, March). Implementation of sentiment analysis on Twitter using Naïve Bayes algorithm to know the people responses to debate of DKI Jakarta governor election. In Journal of Physics: Conference Series (Vol. 1175, p. 012102). IOP Publishing.

Putra, B. A., & Afdal, M. (2023, December). Sentiment Analysis of Presidential Candidates of the Republic of Indonesia Using Naïve Bayes Classifier and Support Vector Machine. In 2023 7th International Conference on New Media Studies (CONMEDIA) (pp. 263-268). IEEE.

Resna, R. W., Lazuardi, L., Werdati, S., & Rochmah, W. (2019). Development of Detection Instrument Models for Mobility Impairment in The Older Adults Based on A Mobile Health Nursing Application in A Public Health Center. Jurnal Ners, 14(3), 86.

Rusland, N. F., Wahid, N., Kasim, S., & Hafit, H. (2017, August). Analysis of Naïve Bayes algorithm for email spam filtering across multiple datasets. In IOP conference series: materials science and engineering (Vol. 226, No. 1, p. 012091). IOP Publishing.

Sihombing, J. J., Arnita, A., Al Idrus, S. I., & Niska, D. Y. (2024). Implementation of text summarization on indonesian scientific articles using textrank algorithm with TF-IDF web-based. Journal of Soft Computing Exploration, 5(3), 310-319.

Wu, W., & Deng, Z. (2022). The analysis of public opinion in colleges and universities oriented to wireless networks under the application of intelligent data mining. Wireless Communications and Mobile Computing, 2022(1), 7597366.

Yapinus, G., Erwin, A., Galinium, M., & Muliady, W. (2014, October). Automatic multi-document summarization for Indonesian documents using hybrid abstractive-extractive summarization technique. In 2014 6th International Conference on Information Technology and Electrical Engineering (ICITEE) (pp. 1-5). IEEE.

Published

2025-04-23

How to Cite

Hidayat, A., Qurania, A., & Iqbal, M. (2025). A Study of Public Opinion on the 2024 Regional Elections Using Cosine Similarity and TF-IDF Algorithms . Operations Research: International Conference Series, 6(1), 28–38. https://doi.org/10.47194/orics.v6i1.364