The Free Nutritious Meals (MBG) program is a major public policy initiative in Indonesia that has generated diverse public responses on social media. However, imbalanced sentiment distributions may bias classifiers toward majority classes and limit recognition of minority sentiments. This study aims to analyze public sentiment toward the MBG program on TikTok and to investigate the effect of SMOTE on the performance of machine learning classifiers. A total of 1,934 TikTok comments were collected via Apify and manually annotated, comprising 53.1% negative, 30.1% neutral, and 16.7% positive. The data were preprocessed through cleaning, case folding, tokenization, stop-word removal, and stemming, followed by TF-IDF representation. Ten machine learning classifiers were evaluated with and without SMOTE using Accuracy, Precision, Recall, and F1-score. Under NoSampling, SVM achieved the highest Accuracy (67.18%), while the SGD Classifier achieved the highest F1-score (0.6255). SMOTE reduced Accuracy but improved Recall and F1-score for several classifiers. Naïve Bayes increased its F1-score from 0.4850 to 0.5861, while Logistic Regression achieved the highest Recall (0.6412). These findings demonstrate a trade-off between overall classification performance and minority-sentiment recognition, and provide empirical evidence to inform model selection for monitoring public opinion toward MBG implementation.
Copyrights © 2027