Public Sentiment Analysis of Online Gambling Using Naïve Bayes and SVM on TikTok Social Media Data

Authors

  • Raditya Agung Master of Information Systems, Dinamika University, Indonesia
  • Jasmir Jasmir Master of Information Systems, Dinamika University, Indonesia
  • Effiyaldi Master of Information Systems, Dinamika University, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.5.5739

Keywords:

Naïve Bayes, Online Gambling, Sentiment Analysis, Support Vector Machine, TikTok

Abstract

This study investigates public sentiment toward online gambling on TikTok social media and evaluates the performance of two machine learning algorithms, Multinomial Naïve Bayes and Support Vector Machine (SVM), for sentiment classification. The increasing spread of online gambling content on social media platforms has raised concerns regarding its social impact and the need to understand public responses toward this phenomenon. Therefore, this research aims to analyze the sentiment expressed in TikTok comments and to compare the effectiveness of Naïve Bayes and SVM in classifying sentiments into positive, negative, and neutral categories.The dataset consists of 99,065 TikTok comments obtained from Kaggle. The research process includes data collection, text preprocessing, feature extraction using TF–IDF, model training, and evaluation using a confusion matrix along with accuracy, precision, recall, and F1-score metrics. The experimental results show that the dataset is highly imbalanced, with neutral sentiment dominating the distribution.The evaluation results indicate that the Support Vector Machine model performs better than Multinomial Naïve Bayes. SVM achieved an accuracy of 98.74%, outperforming Naïve Bayes which obtained 94.72%. In addition, SVM also demonstrates higher macro-averaged precision, recall, and F1-score. These findings indicate that SVM provides more robust performance for sentiment classification in large-scale social media data and can support data-driven monitoring of public opinion regarding online gambling on social media platforms.

Downloads

Download data is not yet available.

References

M. Kaakinen, A. Oksanen, A. Sirola, I. Savolainen, and D. Garcia, “Emotions in Online Gambling Communities: A Multilevel Sentiment Analysis,” pp. 542–550, 2020, doi: 10.1007/978-3-030-49570-1_38.

M. van der Maas and J. Samuel, “Online gambling forums as a potential target for harm reduction: an exploratory natural language processing analysis of a reddit.com forum,” Harm Reduct. J., vol. 22, no. 1, p. 77, May 2025, doi: 10.1186/s12954-025-01220-0.

T. Brown, A. Caruana, M. Mulvey, and L. Pitt, “Understanding the Emotions of Those with a Gambling Disorder: Insights from Automated Text Analysis,” J. Gambl. Issues, no. 47, Mar. 2021, doi: 10.4309/jgi.2021.47.5.

R. J. E. James and A. Bradley, “The Use of Social Media in Research on Gambling: a Systematic Review,” Curr. Addict. Rep., vol. 8, no. 2, pp. 235–245, Jun. 2021, doi: 10.1007/s40429-021-00364-w.

A. Hernández-Ruiz and Y. Gutiérrez, “Analysing the Twitter accounts of licensed Sports gambling operators in Spain: a space for responsible gambling?” Communication & Society, vol. 34, no. 4, pp. 65–79, Oct. 2021, doi: 10.15581/003.34.4.65-79.

M. Andrade, S. Sharman, L. Y. Xiao, and P. W. S. Newall, “Safer gambling and consumer protection failings among 40 frequently visited cryptocurrency-based online gambling operators.,” Psychology of Addictive Behaviors, vol. 37, no. 3, pp. 545–557, May 2023, doi: 10.1037/adb0000885.

Ministry of Communication and Informatics (Kominfo). (n.d.). TikTok Indonesia and Kominfo launch the #LawanJudol campaign. Riau Pos.

Ministry of Communication and Informatics (Kominfo), “Minister of Communication and Informatics: Fighting Online Gambling, nearly 1.9 million Pieces of Content Have Been Blocked,” Garda Jatim, May 2024.

M. A. F. Chowdhury, M. Abdullah, and M. Albashrawi, “Analyzing public sentiment toward economic stimulus using natural language processing,” Transforming Government: People, Process and Policy, vol. 18, no. 4, pp. 657–677, Oct. 2024, doi: 10.1108/TG-03-2024-0062.

Rimpy, A. Dhankhar, and A. Dhankhar, “Sentimental analysis of social networks: A comprehensive review (2018-2023),” Multidisciplinary Reviews, vol. 7, no. 7, p. 2024126, Apr. 2024, doi: 10.31893/multirev.2024126.

I. Ahmad, I. A. Khan, A. Verma, and S. Sharma, “Recent trends in sentiment analysis tools,” 2023, p. 020054. doi: 10.1063/5.0152220.

E. D. Madyatmadja, H. Candra, J. Nathaniel, M. R. Jonathan, and Rudy, “Sentiment Analysis on User Reviews of Threads Applications in Indonesia,” Journal Européen des Systèmes Automatisés, vol. 57, no. 4, pp. 1165–1171, Aug. 2024, doi: 10.18280/jesa.570423.

Dionisius, H. D. Putra, N. Ardhytama, and Y. Purnama, “Analysis of Public Sentiment About Economic Recession Threat in Indonesia on Twitter (X),” in 2024 International Conference on Informatics, Multimedia, Cyber and Information System (ICIMCIS), IEEE, Nov. 2024, pp. 133–138. doi: 10.1109/ICIMCIS63449.2024.10957495.

J. O. Leandro and M. I. Fianty, “Evaluation of Sentiment Analysis Methods for Social Media Applications: A Comparison of Support Vector Machines and Naïve Bayes,” JOIV: International Journal on Informatics Visualization, vol. 9, no. 2, p. 796, Mar. 2025, doi: 10.62527/joiv.9.2.2905.

R. Raman, V. Kumar, B. G. Pillai, D. Rabadiya, P. K. Bhoyar, and N. Kumbhojkar, “Analyzing Sentiments in Motorku X App Reviews using the Naive Bayes Classifier Approach,” in 2024 Second International Conference on Data Science and Information System (ICDSIS), IEEE, May 2024, pp. 1–5. doi: 10.1109/ICDSIS61070.2024.10594505.

Y. Durachman, Syopiansyah Jaya Putra, Herlino Nanang, and Husni Teja Sukmana, “Analysis Sentiment of Public Opinion on Social Media Using Naïve Bayes and TF-IDF Algorithms,” 3rd International Conference on Creative Communication and Innovative Technology (ICCIT), 2024.

M. M. Danyal, S. S. Khan, M. Khan, S. Ullah, M. B. Ghaffar, and W. Khan, “Sentiment analysis of movie reviews based on NB approaches using TF–IDF and count vectorizer,” Soc. Netw. Anal. Min., vol. 14, no. 1, p. 87, Apr. 2024, doi: 10.1007/s13278-024-01250-9.

N. V Patel and H. Chhinkaniwala, “Investigating Machine Learning Techniques for User Sentiment Analysis,” International Journal of Decision Support System Technology, vol. 11, no. 3, pp. 1–12, Jul. 2019, doi: 10.4018/IJDSST.2019070101.

S. Thenappan, A. R. Krishnan, P. S. B. Murugan, A. S. Valarmathy, P. Chitra, and H. Sayyed, “Machine Learning Approaches for Sentiment Analysis in Social Media Data,” in 2023 7th International Conference on Electronics, Communication and Aerospace Technology (ICECA), IEEE, Nov. 2023, pp. 684–688. doi: 10.1109/ICECA58529.2023.10395612.

S. Ahmad, M. Kumar, and S. Bhardwaj, “Sentiment analysis using support vector machine techniques on Twitter data,” ICCMST 2024 Proceedings, 2025.

C. D. Manning, P. Raghavan, and H. Schütze, Introduction to Information Retrieval, Online ed. Cambridge, U.K.: Cambridge University Press, 2021.

T. M. Alvionita, A. Hindasyah, A. Khalid, D. B. Riset, and N. Inovasi, “Sentiment Analysis of Users’ Perceptions of the Merdeka Belajar Curriculum Using the Naïve Bayes Classifier (NBC) and Support Vector Machine (SVM) Methods.

I. Juventius, T. Gurning, P. P. Adikara, and R. S. Perdana, “Sentiment Analysis of Twitter Documents Using the Naïve Bayes Method with GU Metric Feature Selection,” 2023. [Online]. Available: http://j-ptiik.ub.ac.id

H. K. Yadla dan P. V. R. D. P. Rao, “Pengklasifikasi teks berbasis pembelajaran mesin yang berpusat pada vektorisasi TF-IDF,” Int. J. Sci. Technol. Res., 2020.

D. Chaurasia, K. Vimala Devi, dan M. Bhatta, “Meningkatkan peringkasan teks melalui paralelisasi: pendekatan algoritma TF-IDF,” Proc. 2nd Int. Conf. Intelligent Cyber Physical Systems and Internet of Things (ICoICI), 2024.

Additional Files

Published

2026-10-10

How to Cite

[1]
R. . Agung, J. Jasmir, and E. Effiyaldi, “Public Sentiment Analysis of Online Gambling Using Naïve Bayes and SVM on TikTok Social Media Data”, J. Tek. Inform. (JUTIF), vol. 7, no. 5, pp. 5097–5114, Oct. 2026.

Most read articles by the same author(s)