Analisis Sentimen Publik terhadap Purbaya Yudhi Sadewa di X menggunakan Metode Naive Bayes
Main Article Content
Abstract
The rapid growth of the social media platform X (Twitter) has made it an essential medium for observing how the public responds to influential figures and economic policy issues. This study investigates public sentiment toward Purbaya Yudhi Sadewa by applying the Naive Bayes Classifier to tweet data collected from X. A total of 500 tweets containing the keyword “Purbaya Yudhi Sadewa” were gathered through API crawling between January and November 2025, and 451 tweets were retained after filtering irrelevant and duplicate entries. The workflow of this research consists of text preprocessing steps—such as case folding, tokenization, stopword removal, and stemming—followed by TF-IDF–based feature extraction, model training using Naive Bayes, and performance evaluation. The classifier produced an accuracy of 91.1%, with precision and recall values of 0.92 and 0.97 for negative sentiment, and 0.60 and 0.33 for positive sentiment. Further analysis showed that negative opinions dominated the dataset (427 tweets), while positive sentiments appeared far less frequently (32 tweets), primarily criticizing economic performance, inflation, and the stability of the rupiah. These findings highlight the capability of the Naive Bayes algorithm in effectively categorizing sentiment toward economic figures in Indonesian-language social media content.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
Andrian, B. W., Adline, F., & Tobing, T. (2023). Implementation Of Naïve Bayes Algorithm In Sentiment Analysis Of Twitter Social Media Users Regarding Their Interest To Pay The Tax. 1733–1742.
Anton Purwadi, Kismartini Kismartini, Retno Sunu Astuti, & T. A. (2022). Keterlibatan Warga Terhadap Akun Twitter Pemerintah Provinsi Jawa Tengah, Jawa Timur, Jawa Barat : Analisa Data Mining. 11(1), 42–49. https://doi.org/10.31289/perspektif.v11i1.5283
Cahyono, Y. (2019). Analisis Sentiment Tweets Berbahasa Sunda Menggunakan Naive Bayes Classifier dengan Seleksi Feature Chi Squared Statistic. 4(3), 87–94.
Classifier, F., Kasus, S., & Sinovac, V. (2022). Analisis Sentimen Masyarakat Terhadap Vaksinasi Covid-19 di Twitter Menggunakan Metode Random Forest Classifier (Studi Kasus: Vaksin Sinovac). 8106, 64–72.
Kaplan, A. M., & Haenlein, M. (2017). Users of the world , unite ! The challenges and opportunities of Social Media. February 2010. https://doi.org/10.1016/j.bushor.2009.09.003
Mario, G., Paridy, C., Aristo, A., Sinlae, J., & Ngaga, E. (2024). Analisis Sentimen di Media Sosial X tentang IKN dengan Naïve Bayes. 417–426.
No, V., Setiawan, A., & Suryono, R. R. (2024). Analisis Sentimen Ibu Kota Nusantara menggunakan Algoritma Support Vector Machine dan Naïve Bayes. 8(1), 183–192. https://doi.org/10.29408/edumatic.v8i1.25667
Puluhulawa, F. Y. (2022). What Do Opinion Leaders Share from the New Normal on Twitter ?: A Qualitative Content Analysis. 2020, 183–196.
Sualman, I. (2023). Social Media Usage and Interactions : An In-Depth Interview on BERSIH 2 . 0 Social Media Visual Framing. 39(1), 224–239.
Susanto, A., & Atho, M. (2021). Sentiment Analysis on Indonesia Twitter Data Using Naïve Bayes and K-Means Method. 6(1), 40–45.