Fake News Classification Using the Multinomial Naive Bayes Algorithm with TF-IDF Weighting on the FakeNewsNet Dataset
DOI:
https://doi.org/10.59934/jaiea.v6i1.2671Keywords:
fake news detection, text mining, TF-IDF, Multinomial Naive Bayes, FakeNewsNetAbstract
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 and natural language processing. This study develops and evaluates a fake news classification pipeline based on the Multinomial Naive Bayes (MNB) algorithm combined with Term Frequency-Inverse Document Frequency (TF-IDF) feature weighting, using the FakeNewsNet benchmark corpus of news article titles labeled as real or fake. After parsing and cleaning the raw repository, 21,637 unique, non-empty news titles remained, comprising 16,399 real (75.8%) and 5,238 fake (24.2%) instances. The text was preprocessed through case folding, URL removal, numeral removal, punctuation removal, tokenization, stopword removal, and lemmatization prior to TF-IDF vectorization with a 5,000-term vocabulary. The dataset was partitioned using an 80:20 stratified train-test split (17,309 training and 4,328 testing instances), and a Multinomial Naive Bayes classifier was trained on the resulting TF-IDF matrix. On the held-out test set, the model achieved an overall accuracy of 82.62%, a weighted precision of 81.98%, a weighted recall of 82.62%, and a weighted F1-score of 80.41%. Class-level analysis revealed a pronounced asymmetry: the real-news class was recognized with high precision (83.28%) and recall (96.43%), whereas the fake-news class, being the minority class, achieved a lower recall of 39.41% despite a precision of 77.92%. These findings confirm that TF-IDF-weighted Multinomial Naive Bayes is a computationally efficient and reasonably accurate baseline for short-text fake news classification, while also highlighting the class-imbalance challenge that limits fake-news recall. The paper discusses the algorithmic rationale, the practical trade-offs of the approach, and directions for improving minority-class detection in future work.
Downloads
References
Xu, G., Qian, M., & Meng, L. (2025). Misinformation dissemination on social media: Key research themes and evolutionary paths between 2013 and 2023. Humanities and Social Sciences Communications, 12(1), Article 1775. https://doi.org/10.1057/s41599-025-06067-1
Shu, K., Sliva, A., Wang, S., Tang, J., & Liu, H. (2017). Fake news detection on social media: A data mining perspective. ACM SIGKDD Explorations Newsletter, 19(1), 22–36. https://doi.org/10.1145/3137597.3137600
Mishchenko, L., Klymenko, I., & Tkachenko, V. (2024). The fake news recognition method based on Naïve Bayes with improved TF-IDF algorithm. In V. Kazymyr et al. (Eds.), Mathematical modeling and simulation of systems (MODS 2023), Lecture Notes in Networks and Systems (Vol. 1091). Springer. https://doi.org/10.1007/978-3-031-67348-1_12
Siino, M., Tinnirello, I., & La Cascia, M. (2023). Is text preprocessing still worth the time? A comparative survey on the influence of popular preprocessing methods on Transformers and traditional classifiers. Information Systems, 121, 102342. https://doi.org/10.1016/j.is.2023.102342
Shu, K., Mahudeswaran, D., Wang, S., Lee, D., & Liu, H. (2020). FakeNewsNet: A data repository with news content, social context, and spatiotemporal information for studying fake news on social media. Big Data, 8(3), 171–188. https://doi.org/10.1089/big.2020.0062
Srivastava, R., & Singh, P. (2022). Fake news detection using Naive Bayes classifier: A comparative study. Journal of Management and Service Science, 2(1).
Kushwaha, N. S., & Singh, P. (2022). Fake news detection using machine learning: A comprehensive analysis. Journal of Management and Service Science, 2(1).
Febriyanty, N. E., Hariyadi, M. A., & Crysdian, C. (2023). Hoax detection news using Naive Bayes and Support Vector Machine algorithm. International Journal of Advanced Data and Information Systems, 4(2), 191–200. https://doi.org/10.25008/ijadis.v4i2.1306
Airlangga, G. (2024). Comparative analysis of machine learning algorithms for detecting fake news: Efficacy and accuracy in the modern information ecosystem. Journal of Computer Networks, Architecture and High Performance Computing, 6(1), 354–363. https://doi.org/10.47709/cnahpc.v6i1.3466
Zhang, L. (2025). Features extraction based on Naive Bayes algorithm and TF-IDF for news classification. PLOS ONE, 20(7), 1–17. https://doi.org/10.1371/journal.pone.0327347
Hidayat, W., Ong, J., Irsyad, H., & Rahman, A. (2025). Ekstraksi berita hoax pada Turn Back Hoax berbasis pendekatan TF-IDF & cosine similarity. Jurnal Ilmiah Computer Insight, 7(2). https://doi.org/10.30651/comp_insight.v7i2.26678
Mujianto, A. H. (2026). Implementation of Naive Bayes method and Natural Language Processing in web-based online hoax news detection system. SMATIKA Jurnal. https://jurnal.ubhinus.ac.id/index.php/SMATIKA/article/view/2338
Jurafsky, D., & Martin, J. H. (2024). Speech and language processing: An introduction to natural language processing, computational linguistics, and speech recognition (3rd ed. draft). Stanford University. https://web.stanford.edu/~jurafsky/slp3/
Manning, C. D., Raghavan, P., & Schütze, H. (2008). Introduction to information retrieval. Cambridge University Press.
Swaminathan, S., et al. (2024). Confusion matrix-based performance evaluation metrics. African Journal of Biomedical Research, 27(4s), 4031–4047.
Géron, A. (2022). Hands-on machine learning with Scikit-Learn, Keras, and TensorFlow: Concepts, tools, and techniques to build intelligent systems (3rd ed.). O'Reilly Media.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
Wang, W. Y. (2017). "Liar, liar pants on fire":
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








