{"id":1533,"date":"2025-09-16T16:12:59","date_gmt":"2025-09-16T09:12:59","guid":{"rendered":"https:\/\/ehainstitute.org\/old\/?p=1533"},"modified":"2025-09-19T11:39:02","modified_gmt":"2025-09-19T04:39:02","slug":"sentiment-analysis-of-twitter-data-on-indonesias-cabinet-using-naive-bayes-and-support-vector-machine-algorithms","status":"publish","type":"post","link":"https:\/\/ehainstitute.org\/old\/sentiment-analysis-of-twitter-data-on-indonesias-cabinet-using-naive-bayes-and-support-vector-machine-algorithms\/","title":{"rendered":"Sentiment Analysis of Twitter Data on Indonesia\u2019s Cabinet Using Na\u00efve Bayes and Support Vector Machine Algorithms"},"content":{"rendered":"\n<p>August 2025<\/p>\n\n\n\n<p>Author: Riyantoro Djati [1] Fauziah [2]<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"687\" height=\"449\" src=\"https:\/\/ehainstitute.org\/old\/wp-content\/uploads\/2025\/09\/rd.png\" alt=\"\" class=\"wp-image-1534\" srcset=\"https:\/\/ehainstitute.org\/old\/wp-content\/uploads\/2025\/09\/rd.png 687w, https:\/\/ehainstitute.org\/old\/wp-content\/uploads\/2025\/09\/rd-300x196.png 300w\" sizes=\"(max-width: 687px) 100vw, 687px\" \/><\/figure>\n\n\n\n<p><strong>Abstract<\/strong><\/p>\n\n\n\n<p>Twitter has become a widely used platform for information dissemination among internet users and it serves as a valuable data source for sentiment analysis and decision-making. In this context, sentiment analysis is used to automatically categorize user tweets into positive or negative opinions. The Indonesia Maju Cabinet, the current administration under President Joko Widodo has emerging various public opinions regarding their performance and responsibilities. Sentiment analysis provides a method to categorize public opinions on social media. This study uses a dataset collected through a crawling process on Twitter with the keyword &#8220;Menteri Jokowi&#8221; (Jokowi&#8217;s Ministers). The obtained data was then analyzed using two algorithms: Na\u00efve Bayes Classifier (NBC) and Support Vector Machine (SVM), to compare their cross-validation results. The analysis results show that the Na\u00efve Bayes Classifier algorithm achieved 91.70% accuracy, 91.69% recall, and 91.69% precision. Meanwhile, the SVM algorithm achieved 96.77% accuracy, 96.71% recall, and 96.71% precision. The difference in accuracy is due to NBC\u2019s tendency to misclassify neutral tweets as positive, whereas SVM, despite optimizing class separation, struggled with detecting sarcasm and subtle sentiment shifts, sometimes misclassifying negative tweets as neutral. Based on these results, it can be concluded that both algorithms can be effectively used for classifying opinions about ministers through sentiment analysis, although SVM demonstrates higher accuracy.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Keywords<\/h5>\n\n\n\n<p>Na\u00efve Bayes, presidential cabinet, sentiment analysis, SVM, twitter<\/p>\n\n\n\n<p>&nbsp;DOI:&nbsp;<a href=\"http:\/\/dx.doi.org\/10.35760\/tr.2025.v30i2.13953\">http:\/\/dx.doi.org\/10.35760\/tr.2025.v30i2.13953<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>August 2025 Author: Riyantoro Djati [1] Fauziah [2] Abstract Twitter has become a widely used platform for information dissemination among internet users and it serves as a valuable data source<\/p>\n<p><a href=\"https:\/\/ehainstitute.org\/old\/sentiment-analysis-of-twitter-data-on-indonesias-cabinet-using-naive-bayes-and-support-vector-machine-algorithms\/\" class=\"av-btn av-btn-secondary av-btn-bubble\">Continue Reading<span class=\"screen-reader-text\">Sentiment Analysis of Twitter Data on Indonesia\u2019s Cabinet Using Na\u00efve Bayes and Support Vector Machine Algorithms<\/span><i class=\"fa fa-arrow-right\"><\/i><span class=\"bubble_effect\"><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span><span class=\"circle top-left\"><\/span><span class=\"button effect-button\"><\/span><span class=\"circle bottom-right\"><\/span><span class=\"circle bottom-right\"><\/span><span class=\"circle bottom-right\"><\/span><\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":1534,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87],"tags":[72,39,107,108,93,94,109,110],"class_list":["post-1533","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-publication","tag-eha-institute","tag-journal","tag-naive-bayes","tag-presidential-cabinet","tag-research","tag-riyantoro-djati","tag-sentiment-analysis","tag-svm"],"_links":{"self":[{"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/posts\/1533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/comments?post=1533"}],"version-history":[{"count":4,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/posts\/1533\/revisions"}],"predecessor-version":[{"id":1562,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/posts\/1533\/revisions\/1562"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/media\/1534"}],"wp:attachment":[{"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/media?parent=1533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/categories?post=1533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ehainstitute.org\/old\/wp-json\/wp\/v2\/tags?post=1533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}