Teknika
Vol. 14 No. 3 (2025): November 2025

Performance Comparison of 10 Machine Learning Algorithms in Sentiment Classification on Platform X Regarding the Government’s Priority Program: Makanan Bergizi Gratis (MBG)

Deni Utama (Information Systems and Technology, Faculty of Engineering, Universitas Negeri Jakarta, DKI Jakarta, Indonesia)
Rauhil Fahmi (Information Systems and Technology, Faculty of Engineering, Universitas Negeri Jakarta, DKI Jakarta, Indonesia)
Muhammad Ridho Kurniawan Pratama (Information Systems and Technology, Faculty of Engineering, Universitas Negeri Jakarta, DKI Jakarta, Indonesia)



Article Info

Publish Date
03 Nov 2025

Abstract

This study evaluates public sentiment on Platform X regarding the Government’s Priority Free Nutritious Food Program. A total of 2031 user comments were analyzed using 10 machine learning algorithms: Naive Bayes, Gradient Boosting, AdaBoost, Random Forest, Extra Trees, Logistic Regression, Linear SVM, SGD Classifier, Ridge Classifier, and Bagging. The dataset underwent preprocessing including lowercasing, stopword removal, stemming, and tokenization, followed by TF-IDF vectorization with 5000 features. Models were evaluated using accuracy, precision, recall, weighted F1-score, and 5-fold cross-validation. Bagging achieved the highest accuracy (81%) and weighted F1-score (81%), followed by Gradient Boosting (81%) and Random Forest (77%). Feature analysis revealed negative sentiment indicators such as ‘racun’, ‘stop’, ‘korupsi’, and positive indicators like ‘sehat’, ‘enak’, ‘bergizi’. These findings provide actionable insights for policy communication and program improvement.

Copyrights © 2025






Journal Info

Abbrev

teknika

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

Teknika is a peer-reviewed journal dedicated to disseminate research articles in Information and Communication Technology (ICT) area. Researchers, lecturers, students, or practitioners are welcomed to submit paper which has topic below: Computer Networks Computer Security Artificial Intelligence ...