Skip to content
Open access

Implementation of the Multinomial Naïve Bayes Algorithm in a Web-Based System for Detecting Online News Hoaxes During the 2024 Elections

Sep 2026 · Journal of Vocational, Informatics and Computer Education · pp. 1-12 · 0 citations · 24 references

TL;DR

An automated hoax detection system that balances algorithmic efficiency with precision on imbalanced real-world election data and proves that SMOTE significantly enhances sensitivity in identifying disinformation, reducing the risk of false information bypassing the system.

Abstract

Purpose – This study addresses the escalation of disinformation during the 2024 Indonesian General Election by developing an automated hoax detection system. The primary focus is to evaluate the integration of data balancing methods to minimize detection failures in hoax narratives, which often appear less frequently than factual news in real-world scenarios. Methods – The dataset consists of 1,529 unique news documents, comprising 1,020 factual articles from Kompas.com and 509 hoax articles from TurnBackHoax.id. The modelling workflow involves text preprocessing, feature extraction via Term Frequency-Inverse Document Frequency (TF-IDF), and the application of the Synthetic Minority Over-sampling Technique (SMOTE) to address class imbalance. The model was developed using the Multinomial Naive Bayes algorithm and integrated into a web-based platform using the Flask framework. Findings – Results from 5-fold cross-validation demonstrated a stable average accuracy of 92.64% (±1.27%). On an independent test set, the model achieved 89.54% accuracy with a hoax class recall of 0.93. This proves that SMOTE significantly enhances sensitivity in identifying disinformation, reducing the risk of false information bypassing the system. Research implications – The study is limited to textual data from curated sources and cannot yet capture multimedia disinformation or high levels of sarcasm. Future research should explore Transformer-based models for deeper semantic context understanding. Originality – This research provides a functional public verification platform with a response time of under one second. Its novelty lies in a domain-specific detection system that balances algorithmic efficiency with precision on imbalanced real-world election data.

Read PDF

Similar papers

Open access Oct 2026

DESIGN AND IMPLEMENTATION OF A WEB-BASED FAKE NEWS DETECTION SYSTEM USING MACHINE LEARNING

In light of the exponential increase of misinformation on the Internet, there is a need for more efficient automatic methods for its detection. In this paper we propose a Web-based Fake News Detection System that combines machine learning and NLP techniques to classify news articles instantly. Our proposed architecture...

O. Adebanjo · 0 citations
Review Open access Oct 2026

Implementation of the Naïve Bayes Algorithm for Sentiment Analysis of Portos Coffee Shop Customer Reviews Using a Natural Language Processing (NLP) Approach

This study implements the Multinomial Naïve Bayes (MNB) algorithm with a Natural Language Processing (NLP) approach to classify customer sentiment toward Portos Coffee Shop and builds a web-based monitoring system. A total of 586 reviews from Google Maps (525) and Instagram (61), collected in 2026, were preprocessed wi...

Yakub Mas Arbi Sitompul, Marah Doly Nst · 0 citations
Open access Oct 2026

Fake News Classification Using the Multinomial Naive Bayes Algorithm with TF-IDF Weighting on the FakeNewsNet Dataset

The proliferation of digital and social media platforms has accelerated the production and dissemination of fake news, creating serious risks to public trust, democratic discourse, and social stability. Automatic detection of fake news at the point of publication is therefore an urgent research problem in text mining a...

Deny Pratama Silaban, Pesta Purba, Jaya Tata Hardinata · 0 citations
Open access Oct 2026

Analysis of Hoax News in News Media Using the K-Nearest Neighbor (K -NN) Method

The rapid development of internet technology has facilitated the dissemination of information within the community through various news media. However, this convenience has also fueled the widespread dissemination of unverified fake news (hoaxes), potentially causing social unrest, undermining the credibility of inform...

Putri Nabila, Bustami, W. Fuadi · 0 citations
Open access Oct 2026

A Computational Investigation of Fabricated News Identification Using TF-IDF and Machine Learning

The rapid expansion of digital communication has made it increasingly difficult to distinguish reliable journalism from fabricated or deliberately misleading information. False stories, altered claims, and unsupported statements can circulate within seconds through websites, social-media platforms, and online discussio...

Asane Shubhangi Bhimraj and Dr H. B. Jadhav · 0 citations
#large language models Open access Oct 2026

An NLP-Based Approach to Fake News Identification Using TF-IDF and Logistic Regression

Online news services and social networks enable information to circulate rapidly, but they also make it easier for inaccurate stories to reach large audiences. Checking every item manually is difficult when the volume of published content is high. This paper examines a text-classification pipeline that labels news arti...

Vidyasri G., K. Priya · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.