Indonesian Journal of Computing, Engineering, and Design
Vol. 8 No. 2 (2026): IJoCED

Sentiment Analysis of Political Debates on YouTube: Comparative Performance of Naive Bayes and Logistic Regression

Lanny Sitanayah (Department of Informatics Engineering, Universitas Katolik De La Salle, Manado, 95253, Indonesia)
Apriandy Angdresey (Department of Informatics Engineering, Universitas Katolik De La Salle, Manado, 95253, Indonesia)
Indah Yessi Kairupan (Department of Information Systems, Institut Agama Kristen Negeri Manado, Minahasa, 95661, Indonesia)
Ignatius Lucky Henokh Tangka (Department of Informatics Engineering, Universitas Katolik De La Salle, Manado, 95253, Indonesia)



Article Info

Publish Date
12 Oct 2026

Abstract

The 2024 Indonesian Presidential Election aimed at electing the President and Vice President for the 2024-2029 term. Central to this election were candidate debates, critical moments for presenting their visions and enabling public evaluation. These debates, accessible on platforms such as YouTube, facilitate public commentary and form the basis for sentiment analysis. However, analyzing YouTube comments presents challenges due to the volume of data, language diversity, and varied expressions. Sentiment analysis, essential for gauging public opinion of political figures, uses algorithms such as Naive Bayes and Logistic Regression. While Naive Bayes assumes feature independence, facilitating rapid implementation in text analysis, Logistic Regression is a discriminative model that captures feature dependencies, allowing it to assign specific weights to words or phrases that strongly signal positive or negative political sentiment. Applied to YouTube comments on the 2024 Indonesian Presidential debates, Logistic Regression demonstrated superior performance with an average accuracy of 90.57% on the aggregated dataset of five debates, outperforming Naive Bayes, which achieved 85.24% using a standard 80:20 train-test split. These findings validate the use of Naive Bayes and Logistic Regression for sentiment analysis during significant political events, confirming the efficacy of integrating advanced transformer models for automated data labeling with classical classifiers for robust, real-time political sentiment analysis.

Copyrights © 2026






Journal Info

Abbrev

IJOCED

Publisher

Subject

Arts Chemical Engineering, Chemistry & Bioengineering Computer Science & IT Engineering Industrial & Manufacturing Engineering Materials Science & Nanotechnology Mechanical Engineering

Description

Indonesian Journal of Computing, Engineering and Design (IJoCED) is an international and open access peer-reviewed journal, published by Faculty of Engineering and Technology, Sampoerna University. IJoCED published original research papers, state of the art reviews and innovative projects on topics ...