Jurnal Penelitian Pendidikan IPA (JPPIPA)
Vol 11 No 12 (2025): December

Design and Implementation of a Public Sentiment Prediction Framework on Budget Efficiency Policy using Support Vector Machine, Naïve Bayes, and Random Forest

Sahyudi, M (Unknown)
Riskiono, Sampurna Dadi (Unknown)
Suryono, Ryan Randy (Unknown)



Article Info

Publish Date
25 Dec 2025

Abstract

Public sentiment toward government budget efficiency policies has become increasingly visible through social media platforms, where citizens actively express opinions, support, and criticism. This study aims to analyze public sentiment toward budget efficiency policies using data collected from the social media platform X (formerly Twitter). A total of 2,000 public comments related to budget efficiency policies were collected through web scraping using the X API. The data were preprocessed through normalization, case folding, text cleaning, tokenization, stopword removal, and stemming. Sentiment classification was conducted using three machine learning algorithms: Naive Bayes, Support Vector Machine (SVM), and Random Forest. Model performance was evaluated using accuracy, precision, recall, and F1-score. The results indicate that SVM achieved the highest accuracy, while Random Forest demonstrated superior recall in identifying positive sentiment. These findings suggest that Random Forest is particularly suitable for sentiment analysis tasks where minimizing false negatives is important, while SVM performs well in overall classification accuracy. This research contributes to the comparative evaluation of machine learning models for public sentiment analysis on policy-related issues using social media data.  

Copyrights © 2025






Journal Info

Abbrev

jppipa

Publisher

Subject

Agriculture, Biological Sciences & Forestry Biochemistry, Genetics & Molecular Biology Chemical Engineering, Chemistry & Bioengineering Chemistry Education Materials Science & Nanotechnology Physics

Description

Science Educational Research Journal is international open access, published by Science Master Program of Science Education Graduate Program University of Mataram, contains scientific articles both in the form of research results and literature review that includes science, technology and teaching ...