Opinion Mining Pengguna X (Twitter) terhadap Putusan MK Tentang Pemilu 2024 dengan model Naive Bayes Classifier dan Gradient Boosted Machines
DOI:
https://doi.org/10.61434/technovatar.v2i4.385Keywords:
Sentiment Analysis, Naive Bayes, Gradient Boosting, X, TwitterAbstract
This study explores sentiment analysis of Twitter reactions to the Constitutional Court's verdict on Indonesia's 2024 election, using Naive Bayes and Gradient Boosted Machines (GBM). Aimed at assessing the efficacy of these models in categorizing sentiments as positive, negative, or neutral, the data were processed using TF-IDF vectorization. Results reveal that Naive Bayes excels in identifying positive sentiments with high precision and recall, yet struggles with negative and neutral sentiments. Conversely, GBM demonstrates a more balanced performance across all categories, particularly in detecting neutral sentiments. This highlights the strengths and weaknesses of each model, suggesting Naive Bayes for scenarios where positive sentiment detection is critical, and GBM for situations requiring nuanced sensitivity across diverse sentiments. This research offers insights into the strategic selection of models for sentiment analysis based on specific needs.
References
E. Afnira, “Optimalisasi Media Sosial sebagai Sarana Publikasi Pengawasan Pemilu 2024: Kasus Bawaslu Kota Tanjungpinang,” J. Mhs. Komun. Cantrik, vol. 3, no. 1, Art. no. 1, May 2023, doi: 10.20885/cantrik.vol3.iss1.art4.
BBC News Indonesia, “Putusan MK: Reaksi setelah MK tolak gugatan hasil Pilpres 2024, dari Prabowo hingga pengunjuk rasa,” BBC News Indonesia. Accessed: Apr. 23, 2024. Online.. Available: https://www.bbc.com/indonesia/articles/ce437lrlzwlo
J. Hutabarat, “Menjinakkan Polarisasi dan Politik Identitas Jelang Pemilu 2024,” tirto.id. Accessed: Apr. 23, 2024. Online.. Available: https://tirto.id/menjinakkan-polarisasi-dan-politik-identitas-jelang-pemilu-2024-gtQ8
M. F. Nur, “Potensi Polarisasi & Mencegah Konflik Pendukung di Pemilu 2024,” tirto.id. Accessed: Apr. 23, 2024. Online.. Available: https://tirto.id/potensi-polarisasi-mencegah-konflik-pendukung-di-pemilu-2024-gRPS
Komisi Pemilihan Umum Indonesia, “Daftar Sengketa Pemilu Presiden & Wakil Presiden Ri 2024 : Daftar Daerah Yang Mengalami Pemungutan Dan Penghitungan Suara Ulang/Susulan/Lanjutan (Baik Seluruhnya Maupun Sebagian),” Komisi Pemilihan Umum. Accessed: Apr. 23, 2024. Online.. Available: https://pemilu2024.kpu.go.id/pilpres/daftar-sengketa
A. Dhiman and D. Toshniwal, “AI-based Twitter framework for assessing the involvement of government schemes in electoral campaigns,” Expert Systems with Applications, vol. 203, p. 117338, Oct. 2022, doi: 10.1016/j.eswa.2022.117338.
W. R. Devi and C. Chingangbam, “Sentiment Analysis for Electoral Prediction Using Twitter Data,” in Emerging Technologies in Data Mining and Information Security, vol. 1300, A. E. Hassanien, S. Bhattacharyya, S. Chakrabati, A. Bhattacharya, and S. Dutta, Eds., in Advances in Intelligent Systems and Computing, vol. 1300. , Singapore: Springer Nature Singapore, 2021, pp. 25–33. doi: 10.1007/978-981-33-4367-2_3.
R. Vindua and A. U. Zailani, “Analisis Sentimen Pemilu Indonesia Tahun 2024 Dari Media Sosial Twitter Menggunakan Python,” Jur. Ris. Kom., vol. 10, no. 2, p. 479, Apr. 2023, doi: 10.30865/jurikom.v10i2.5945.
L. Septian, T. Aljauza, and C. Juliane, “Analisis Sentimen Putusan Mahkamah Konstitusi terhadap Batas Usia Capres dan Cawapres Menggunakan IndoBERT,” Indonesian Journal of Computer Science, vol. 12, no. 6, Art. no. 6, 2023, doi: 10.33022/ijcs.v12i6.3614.
A. R. Isnain, N. S. Marga, and D. Alita, “Sentiment Analysis Of Government Policy On Corona Case Using Naive Bayes Algorithm,” Indonesian J. Comput. Cybern. Syst., vol. 15, no. 1, p. 55, Jan. 2021, doi: 10.22146/ijccs.60718.
D. F. Zahra, “Analisis Sentimen penggunaan Mypertamina untuk Pembelian BBM Bersubsidi mengggunakan Algoritma Naive Bayes,” Explore. jurnal. sistem. inf. dan. telematika, vol. 14, no. 1, p. 94, Jul. 2023, doi: 10.36448/jsit.v14i1.3098.
S. Ansari, K. Hans, and S. K. Khatri, “A Naive Bayes classifier approach for detecting hypervisor attacks in virtual machines,” 2nd International Conference on Telecommunication and Networks, TEL-NET 2017, vol. 2018-January, pp. 1–6, Apr. 2018, doi: 10.1109/TEL-NET.2017.8343551.
H. K. Duan, M. A. Vasarhelyi, M. Codesso, and Z. Alzamil, “Enhancing the government accounting information systems using social media information: An application of text mining and machine learning,” International Journal of Accounting Information Systems, vol. 48, p. 100600, Mar. 2023, doi: 10.1016/j.accinf.2022.100600.
A. Nair, C. Paralkar, J. Pandya, Y. Chopra, and D. Krishnan, “Comparative Review on Sentiment analysis-based Recommendation system,” in 2021 6th International Conference for Convergence in Technology (I2CT), Apr. 2021, pp. 1–6. doi: 10.1109/I2CT51068.2021.9418222.
N. C. Dang, M. N. Moreno-García, and F. De la Prieta, “Sentiment Analysis Based on Deep Learning: A Comparative Study,” Electronics, vol. 9, no. 3, Art. no. 3, Mar. 2020, doi: 10.3390/electronics9030483.
K. Mehmood, D. Essam, K. Shafi, and M. K. Malik, “Sentiment Analysis for a Resource Poor Language—Roman Urdu,” ACM Trans. Asian Low-Resour. Lang. Inf. Process., vol. 19, no. 1, p. 10:1-10:15, Aug. 2019, doi: 10.1145/3329709.
E. Gogia, “A Review on Sentiment Analysis techniques and applications.,” GRET, pp. 24–29, Dec. 2021, doi: 10.47893/GRET.2021.1041.
U. Kuckartz, Qualitative text analysis: a guide to methods, practice & using software. Los Angeles London New Delhi Singapore Washington, DC: Sage, 2014.
A. V. Mohan Kumar and A. N. Nandkumar, “A Survey on Challenges and Research Opportunities in Opinion Mining,” SN COMPUT. SCI., vol. 1, no. 3, p. 171, May 2020, doi: 10.1007/s42979-020-00149-4.
A. Osmani and J. B. Mohasefi, “Opinion Mining Using Enriched Joint Sentiment-Topic Model,” Int. J. Info. Tech. Dec. Mak., vol. 22, no. 01, pp. 313–375, Jan. 2023, doi: 10.1142/S0219622022500584.
J. Foster and J. Wagner, “Naive Bayes versus BERT: Jupyter notebook assignments for an introductory NLP course,” in Proceedings of the Fifth Workshop on Teaching NLP, Online: Association for Computational Linguistics, 2021, pp. 112–114. doi: 10.18653/v1/2021.teachingnlp-1.20.
F. Alzamzami, M. Hoda, and A. E. Saddik, “Light Gradient Boosting Machine for General Sentiment Classification on Short Texts: A Comparative Evaluation,” IEEE Access, vol. 8, pp. 101840–101858, 2020, doi: 10.1109/ACCESS.2020.2997330.
M. Khalid, I. Ashraf, A. Mehmood, S. Ullah, M. Ahmad, and G. S. Choi, “GBSVM: Sentiment Classification from Unstructured Reviews Using Ensemble Classifier,” Applied Sciences, vol. 10, no. 8, p. 2788, Apr. 2020, doi: 10.3390/app10082788.
S. V. Balshetwar, A. Rs, and D. J. R, “Fake news detection in social media based on sentiment analysis using classifier techniques,” Multimed Tools Appl, vol. 82, no. 23, pp. 35781–35811, Sep. 2023, doi: 10.1007/s11042-023-14883-3.
S. Huang, X. Wu, X. Wu, and K. Wang, “Sentiment analysis algorithm using contrastive learning and adversarial training for POI recommendation,” Soc. Netw. Anal. Min., vol. 13, no. 1, p. 75, Apr. 2023, doi: 10.1007/s13278-023-01076-x.
Q. Lu, X. Sun, Y. Long, Z. Gao, J. Feng, and T. Sun, “Sentiment Analysis: Comprehensive Reviews, Recent Advances, and Open Challenges,” IEEE Trans. Neural Netw. Learning Syst., pp. 1–21, 2024, doi: 10.1109/TNNLS.2023.3294810.
S. Singh, D. Krishnan, P. Sehgal, H. Sharma, T. Surani, and J. Singh, “Gradient Boosting Approach for Sentiment Analysis for Job Recommendation and Candidate Profiling,” in 2022 IEEE Bombay Section Signature Conference (IBSSC), Dec. 2022, pp. 1–6. doi: 10.1109/IBSSC56953.2022.10037443.
B. Chen, W. Peng, and J. Song, “CharAs-CBert: Character Assist Construction-Bert Sentence Representation Improving Sentiment Classification,” Sensors, vol. 22, no. 13, p. 5024, Jul. 2022, doi: 10.3390/s22135024.
H. A. Adamu, M. Muhammad, and A. M. Jingi, “Application of Gradient Boosting Algorithm In Statistical Modelling,” 2019. Accessed: Apr. 26, 2024. Online.. Available: https://www.semanticscholar.org/paper/Application-of-Gradient-Boosting-Algorithm-In-Adamu-Muhammad/5dbf9b52f1afdaba9f6c858c02b84227193f4310
A. Karimi, L. Rossi, and A. Prati, “Adversarial Training for Aspect-Based Sentiment Analysis with BERT,” in 2020 25th International Conference on Pattern Recognition (ICPR), Milan, Italy: IEEE, Jan. 2021, pp. 8797–8803. doi: 10.1109/ICPR48806.2021.9412167.
M. L. D. Nicolas, A. Desroziers, F. Caccioli, and T. Aste, “ESG reputation risk matters: An event study based on social media data,” Finance Research Letters, vol. 59, p. 104712, Jan. 2024, doi: 10.1016/j.frl.2023.104712.
A. Makhi and Abd. C. Fauzan, “SISTEM INFORMASI MANAJEMEN ADMINISTRASI PADA LEMBAGA SERTIFIKASI PROFESI P1 UNIVERSITAS NAHDLATUL ULAMA BLITAR MENGGUNAKAN MODEL RAPID APPLICATION DEVELOPMENT,” jatim, vol. 3, no. 1, pp. 21–34, Apr. 2022, doi: 10.31102/jatim.v3i1.1423.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 TECHNOVATAR Jurnal Teknologi, Industri, dan Informasi

This work is licensed under a Creative Commons Attribution 4.0 International License.