Comparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTubeComparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTube
Indonesian Journal of Data and Science · 30.12.2025 · 6 (3) · 527-537
DOI: 10.56705/ijodas.v6i3.366 ↗Kurz gefasst
Fachartikel in der Zeitschrift Indonesian Journal of Data and Science, online erschienen am 30.12.2025. Verfasst von Ni Wayan Indah Juliandewi und 4 weiteren Autor:innen. Die Arbeit wurde bisher 1-mal zitiert (Crossref). Der Volltext ist frei zugänglich (Open Access, CC BY-NC 4.0).
Abstract (Originalsprache)
The advancement of digital technology has increased public engagement in expressing opinions and responding to issues on social media platforms such as X and YouTube. A prominent topic of recent public debate concerns Danantara's management of state-owned banks. This study analyzes public sentiment regarding this issue by comparing the performance of the Naïve Bayes and Random Forest classification methods. A dataset comprising 25,565 entries was collected from both platforms between January 2025 and May 2025. The data underwent text pre-processing, labeling with the InSet Lexicon, and feature weighting using term frequency-inverse document frequency (TF-IDF). The dataset was split at 80:20, and class imbalance was addressed using the Synthetic Minority Over-sampling Technique (SMOTE) prior to classification. Model performance was evaluated using accuracy, precision, recall, and F1-score metrics. The results demonstrate that Random Forest performed stably, achieving 84% accuracy both before and after sampling. In contrast, Naïve Bayes achieved 74% accuracy before sampling, which increased to 79% after sampling. These findings suggest that Random Forest is more robust to data imbalance than Naïve Bayes, which is more susceptible to bias toward the majority class.
Zitieren
APA
Juliandewi, N. W. I., Kusuma, A. S., Putri, K. M. D., Indrawan, I. G. A., & Aristamy, I. G. A. A. M. (2025). Comparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTubeComparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTube. Indonesian Journal of Data and Science, 6(3), 527-537. https://doi.org/10.56705/ijodas.v6i3.366
Vancouver
Juliandewi NWI, Kusuma AS, Putri KMD, Indrawan IGA, Aristamy IGAAM. Comparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTubeComparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTube. Indonesian Journal of Data and Science. 2025;6(3):527-537. doi:10.56705/ijodas.v6i3.366
BibTeX
@article{Juliandewi2025,
author = {Juliandewi, Ni Wayan Indah and Kusuma, Aniek Suryanti and Putri, Kompiang Martina Dinata and Indrawan, I Gusti Agung and Aristamy, I Gusti Ayu Agung Mas},
title = {Comparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTubeComparison of Naïve Bayes and Random Forest in Sentiment Analysis of State-Owned Banks Management by Danantara on X and YouTube},
journal = {Indonesian Journal of Data and Science},
year = {2025},
volume = {6},
number = {3},
pages = {527--537},
doi = {10.56705/ijodas.v6i3.366}
}
EUVIMED