Formosa Journal of Computer and Information Science
Vol. 5 No. 1 (2026): March 2026

The Application of Naive Bayes in Analyzing Public Sentiment Toward the Performance of the North Sumatra Regional Government in Handling Flash Floods

Siburian, Rivaldo (Unknown)
Tampubolon, Rikki Josua (Unknown)
Surbakti, Valentino (Unknown)
Haris, M. Irvandy (Unknown)
Rahmansyah, Rizky (Unknown)



Article Info

Publish Date
30 Mar 2026

Abstract

This study analyzes public sentiment towards the performance of the North Sumatra Regional Government in handling flash floods using the Multinomial Naive Bayes algorithm. A total of 1,132 opinion data points were collected from social media and news portals through web crawling from November 2025 to February 2026. Sentiment labeling was performed using a lexicon-based approach with the InSet dictionary. Classification results showed a dominance of negative sentiment at 88.4%, focusing on slow emergency response. Model evaluation with an 80:20 data split yielded 89.43% accuracy and an F1-Score of 0.844 for Naive Bayes, while SVM achieved the highest F1-Score (0.855). This study concludes that AI-based sentiment analysis can serve as an objective instrument for government performance auditing.

Copyrights © 2026






Journal Info

Abbrev

fjcis

Publisher

Subject

Computer Science & IT

Description

Formosa Journal of Computer and Information Science (FJCIS) is an international platform for scientists, academics, practitioners and engineers involved in all aspects of computer science and information sciences to publish high quality, up todate, peer review papers. It is an international research ...