Improving Naïve Bayes sentiment classification with SMOTE–Tomek hybrid resampling
Abstract
Class imbalance remains a critical challenge in sentiment classification, particularly in reviews of digital education applications where minority sentiments are underrepresented. This study investigates a hybrid resampling framework that integrates Naïve Bayes with synthetic minority oversampling technique (SMOTE)–Tomek Links to improve sentiment classification under imbalanced conditions. Experiments were conducted on 9,700 Ruangguru application reviews collected from Google Play and represented using term frequency–inverse document frequency (TF-IDF) features. Results show that the baseline Naïve Bayes model achieves 83.52% accuracy but performs poorly on minority classes, while the proposed hybrid approach improves accuracy to 85.33% and yields more balanced macro- and weighted-average F1-scores. Confidence interval analysis (95%) further indicates improved performance stability compared to the baseline model. Given its low computational complexity and preprocessing-only resampling strategy, the proposed framework provides an efficient and scalable solution for reliable sentiment monitoring in digital education platforms.
Keywords
Classification; Naïve Bayes; Ruangguru; Sentiment analysis; SMOTE; Tomek Links;
DOI: http://doi.org/10.11591/ijeecs.v44.i1.pp164-176
Refbacks
- There are currently no refbacks.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Indonesian Journal of Electrical Engineering and Computer Science (IJEECS)
p-ISSN: 2502-4752, e-ISSN: 2502-4760
This journal is published by the Institute of Advanced Engineering and Science (IAES).