Bulletin of Intelligent Machines and Algorithms
Vol. 1 No. 3 (2026): BIMA March 2026 Issue

Sentiment Analysis Model for the Free Lunch Program in Indonesia on Twitter (X) Based on Machine Learning

Amelia Tifany Dewi (Unknown)
Nur Alamsyah (Unknown)
Sinaga, Arnold Ropen (Unknown)



Article Info

Publish Date
31 Mar 2026

Abstract

Social media has become a primary platform for the public to voice their opinions on various public policies, including the free lunch program initiated by the Indonesian government. This study aims to analyze public sentiment toward this program through the Twitter (X) platform by utilizing machine learning algorithms. Data collection was conducted from January 2025 to June 2025, with a total of 2,045 comments successfully gathered. Sentiment labeling was performed manually, and only positive and negative sentiments were considered. The data, in the form of relevant comments, were pre-processed and classified into positive and negative sentiments. Three algorithms used in this study are Support Vector Machine (SVM), Naïve Bayes, and Random Forest. Evaluation was performed using data splitting schemes of 70:30 and 80:20, along with 5-fold cross-validation. Unlike previous studies, which primarily focused on sentiment analysis of general social issues or specific topics without emphasizing public policy, this study specifically investigates the public's sentiment regarding a government policy (the free lunch program) and compares the performance of different machine learning models. The results of the study show that the Random Forest model outperformed SVM and Naïve Bayes, achieving an accuracy of 89.41% with a standard deviation of 0.0138. Meanwhile, SVM achieved an accuracy of 88.96% and Naïve Bayes 88.72%. These findings suggest that Random Forest is the most optimal and consistent model for sentiment analysis of public policies on social media.

Copyrights © 2026






Journal Info

Abbrev

AI

Publisher

Subject

Computer Science & IT

Description

BIMA (Bulletin of Intelligent Machines and Algorithms) is an international peer-reviewed journal dedicated to promoting research in the fields of artificial intelligence, machine learning, and algorithms. BIMA serves as a platform for publishing the latest research findings and innovative ...