Infotech Journal
Vol. 11 No. 2 (2025)

IMPLEMENTASI ALGORITMA NAÏVE BAYES PADA SENTIMEN PUBLIK TERHADAP SOLUSI MENGHADAPI RESESI DI INDONESIA

Nasywa Mutia Efendi (Universitas Bina Sarana Informatika)
Muhammad Ryan Adam Saputra (Universitas Bina Sarana Informatika)
Dian Srikandi (Universitas Bina Sarana Informatika)
Septiana Girsang (Universitas Bina Sarana Informatika)
Rizky Maulana Dzuhry (Universitas Bina Sarana Informatika)
Mohamad Andi Budiono (Universitas Bina Sarana Informatika)



Article Info

Publish Date
09 Dec 2025

Abstract

A recession is a condition in which economic activity declines significantly, characterized by a weakening Gross Domestic Product, decreasing household income, and rising unemployment rates. This condition triggers diverse public opinions, prompting this study to analyze public sentiment toward proposed solutions for addressing a potential recession in Indonesia through YouTube comments. A total of 1,204 comments were collected via web scraping and processed through several preprocessing stages, including cleansing, normalization, tokenization, stopword removal, and stemming. The cleaned data were then converted into numerical representation using TF-IDF and classified using the Naïve Bayes algorithm. Evaluation was carried out using accuracy, precision, recall, F1-score, and confusion matrix metrics. The results show that the model performed well, with evaluation scores ranging from 0.81 to 0.82 and a majority of predictions being correct. The sentiment analysis also revealed a dominance of negative comments, approximately 700 comments, while 504 comments were categorized as positive. These findings demonstrate that Naïve Bayes is effective in classifying public opinions related to recession issues and can serve as a foundation for further studies in the field of digital economic analysis.

Copyrights © 2025






Journal Info

Abbrev

infotech

Publisher

Subject

Computer Science & IT

Description

Infotech Journal is a Scientific Paper published by the Informatics Study Program of the Faculty of Engineering, Majalengka University. The areas of competence covered by Infotech are Information Systems, Programming, Networks, Robotics, Artificial Intelligence and ...