Analisis Sentimen Opini Publik Terhadap Kunjungan Paus Fransiskus di Indonesia Menggunakan Algoritma Naïve Bayes
Abstract
The X social media platform (formerly known as Twitter) has become one of the main media for discussing various issues and public opinions, including Pope Francis' visit to Indonesia on September 3-6, 2024. This study aims to analyze public opinion sentiment based on tweet data by applying the Naïve Bayes algorithm. Data collection was carried out through crawling techniques using the Twitter API, which was run on Google Colab. The Naïve Bayes algorithm is used to classify data into three types of sentiment: positive, negative, and neutral. Testing was conducted using training and testing data, and then evaluated through a confusion matrix to measure accuracy, precision, recall, and F1-score. The analysis results show that public opinion regarding the visit is positive, with an evaluation yielding average accuracy metric results, namely the 90:10 ratio reaching 74.37%, followed by the 80:20 ratio with 73.26%, the 70:30 ratio with 70.91%, and the 60:40 ratio with 66.44%. The best precision, recall, and F1-score metrics were obtained from the 90:10 ratio, which were 59.72%, 59.29%, and 59.48%, respectively. This research provides an overview of public perception regarding Pope Francis' visit and demonstrates the results of applying the Naïve Bayes algorithm. Thus, this application is expected to contribute to the advancement of sentiment analysis methods in public opinion analysis on various social issues.
Downloads
Copyright (c) 2025 Lanny Sitanayah

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright Notice
The author who published the article on Journal of Informatics and Engineering (Jointer) (e-issn : 2723-7958) agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike 4.0 International License that allows others to share the work with an acknowledgment of the work’s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal’s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors should sign a Copyright Transfer Agreement when they have approved the final proofs sent by JOINTERprior to the publication.





