The Free Nutritional Meal Program (MBG) is a government policy that is widely discussed by the public through social media, especially TikTok. Various comments that have emerged indicate differences in public opinion towards the program, so an analysis is needed to determine the tendency of public sentiment. This study aims to analyze TikTok user sentiment towards the Free Nutritional Meal Program using the Naive Bayes method. The research method is carried out through several steps, namely collecting TikTok comment data, preprocessing text, labeling sentiment data into positive, negative, and neutral, feature transformation using TF-IDF, and classification using the Naive Bayes algorithm. Based on the analysis of 500 comment data, the results show that positive sentiment dominates public opinion by 42% (210 data), followed by negative sentiment by 36% (180 data), and neutral sentiment by 22% (110 data). Testing the classification model using Naive Bayes produces excellent performance with an accuracy rate of 86%, precision of 84%, recall of 85%, and F1-score of 84%. The conclusion of this study shows that the Naive Bayes method is effective as an approach in social media sentiment analysis to map public responses to government policies.
Copyrights © 2026