Fake News Detection on Social Media Based on Indonesian Public Opinion Sentiment Analysis Using Naïve Bayes and Deep Neural Networks

Authors

  • Nuril Lutvi Azizah Informatics, Faculty of Science and Technology, Universitas Muhammadiyah Sidoarjo, Indonesia
  • Ade Eviyanti Informatics, Faculty of Science and Technology, Universitas Muhammadiyah Sidoarjo, Indonesia
  • Mochamad Alfan Rosid Informatics, Faculty of Science and Technology, Universitas Muhammadiyah Sidoarjo, Indonesia
  • Julia Atmaranti Informatics, Faculty of Science and Technology, Universitas Muhammadiyah Sidoarjo, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.5.5786

Keywords:

Deep Neural Network, Fake News Detection, Naïve Bayes, Sentiment Analysis, Social Media

Abstract

The rapid growth of social media in Indonesia has intensified the spread of fake news, posing serious threats to public opinion, social stability, and democratic processes. This research proposes a fake news detection model based on sentiment analysis of Indonesian public opinion using Naïve Bayes and Deep Neural Network (DNN) classification methods. Textual data were collected from 4,990 records across Instagram (1,298), Twitter/X (2,004), and Facebook (1,690), with fact-checking verification conducted using TurnBackHoax (MAFINDO). After preprocessing — including normalization, tokenization, stopword removal, and stemming — 4,548 records were retained. Sentiment analysis was applied to capture public emotional tendencies, followed by TF-IDF feature extraction. The Naïve Bayes classifier achieved 87.25% accuracy, with macro recall of 0.5633 and macro F1-score of 0.6382. The DNN model achieved higher accuracy at 90.99%, with macro recall of 0.7204 and macro F1-score of 0.7951, demonstrating better performance across minority sentiment classes. These findings confirm that integrating sentiment analysis with machine learning and deep learning approaches significantly enhances fake news detection on Indonesian social media, with DNN models showing strong potential for deployment in automated detection systems driven by public opinion, thereby supporting more effective misinformation mitigation and national digital literacy initiatives in Indonesia.

Downloads

Download data is not yet available.

References

S. G. Alexander, A. T. Ananto, I. P. Adhitya, P. Mangku, and B. Liano, “Analisis Sentimen Opini Masyarakat Indonesia Terhadap Konten Deepfake Tokoh Publik,” KAKIFIKOM (Kumpulan Artik. Karya Ilm. Fak. Ilmu Komputer), vol. 05, no. 02, pp. 95–102, 2023, [Online]. Available: https://ejournal.ust.ac.id/index.php/KAKIFIKOM/article/view/3073%0Ahttps://ejournal.ust.ac.id/index.php/KAKIFIKOM/article/view/3073/2545

KOMDIGI, “Komdigi Identifikasi 1.923 Konten Hoaks Sepanjang Tahun 2024,” 2024. [Online]. Available: https://www.komdigi.go.id/berita/siaran-pers/detail/komdigi-identifikasi-1923-konten-hoaks-sepanjang-tahun-2024

T. T. Ho and Y. Huang, “Stock price movement prediction using sentiment analysis and candlestick chart representation,” Sensors, vol. 21, no. 23, 2021, doi: 10.3390/s21237957.

S. Nurohanisah, R. Astuti, and F. Muhammad Basysyar, “Deteksi Berita Palsu Menggunakan Algoritma Random Forest,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 1, pp. 422–428, 2024, doi: 10.36040/jati.v8i1.8418.

T. Zubair, “COMBATING FAKE NEWS , MISINFORMATION , AND MACHINE LEARNING GENERATED FAKES : INSIGHTS FROM”.

N. L. Azizah, A. Evyanti, and N. Ariyanti, “ANALYSIS OF APRIORI AND K-NEAREST NEIGHBOR ( KNN ) ALGORITHM IN RECOMMENDING APPROPRIATE LEARNING,” vol. 20, no. 1, pp. 573–588, 2026.

S. V Balshetwar, A. Rs, and D. J. R, “Fake news detection in social media based on sentiment analysis using classifier techniques,” 2023.

T. Y. Pahtoni and H. Jati, “Analisis Sentimen Data Twitter Terkait Chatgpt Menggunakan Orange Data Mining,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 2, pp. 329–336, 2024, doi: 10.25126/jtiik.20241127276.

I. M. K. Karo, A. Khosuri, and R. Setiawan, "Hoax Detection on Indonesian Tweets using Naïve Bayes Classifier with TF-IDF," Journal of Information System Research (JOSH), vol. 4, no. 3, pp. 734–742, 2023, doi: 10.47065/josh.v4i3.3317.

S. V. Balshetwar, A. RS, and D. J. R, "Fake News Detection in Social Media Based on Sentiment Analysis Using Classifier Techniques," Multimedia Tools and Applications, vol. 82, no. 23, pp. 35781–35811, 2023, doi: 10.1007/s11042-023-14883-3.

A. Zahra and M. N. Fauzan, “Sistem Identifikasi ‘ Fake News ’ menggunakan Metode Multinomial Naïve Bayes Sistem Identifikasi ‘ Fake News ’ Menggunakan Metode Multinomial Naïve Bayes,” vol. 10, no. 4, pp. 489–494, 2022, doi: 10.26418/justin.v10i4.52441.

A. M. Putri, J. G. Setiawan, and R. Fahrezi, “Penggunaan Deep Neural Networks Untuk Deteksi Dini Alzheimer Dari Data MRI,” vol. 2, no. 7, pp. 2022–2025, 2024.

M. Rizky and A. Pramuntadi, “Implementation of Deep Neural Network Method on Classification of Type 2 Diabetes Mellitus Disease Implementasi Metode Deep Neural Network pada Klasifikasi Penyakit Diabetes Melitus Tipe 2,” vol. 4, no. July, pp. 1043–1050, 2024.

A. R. Isnain, J. Supriyanto, and M. P. Kharisma, “Implementation of K-Nearest Neighbor (K-NN) Algorithm For Public Sentiment Analysis of Online Learning,” IJCCS (Indonesian J. Comput. Cybern. Syst., vol. 15, no. 2, p. 121, 2021, doi: 10.22146/ijccs.65176.

D. Indra, J. Endro, and W. Amien, “Sentiment Analysis of Customer Reviews Using Support Vector Machine and Smote-Tomek Links For Identify Customer Satisfaction,” vol. 01, pp. 1–9, 2023, doi: 10.21456/vol13iss1pp1-9.

R. Hidayat, M. Fikry, F. Yanto, and E. P. Cynthia, “Penerapan Naïve Bayes Classifier dalam Klasifikasi Sentimen Publik di Twitter terhadap Puan Maharani,” vol. 6, pp. 100–108, 2024.

S. K. Wardani and Y. A. Sari, “Analisis Sentimen menggunakan Metode Naïve Bayes Classifier terhadap Review Produk Perawatan Kulit Wajah menggunakan Seleksi Fitur N-gram dan Document Frequency Thresholding,” vol. 5, no. 12, pp. 5582–5590, 2021.

S. K. Hamed, M. Juzaiddin, A. Aziz, and M. R. Yaakub, “Fake News Detection Model on Social Media by Leveraging Sentiment Analysis of News Content and Emotion Analysis of,” 2023.

H. Tran and T. Nguyen-thoi, “State-of-the-Art Review of Studies on the Flexural Behavior and Design of FRP-Reinforced Concrete Beams,” pp. 1–30, 2025.

A. K. Yadav, S. Kumar, and D. Kumar, "Fake News Detection Using Hybrid Deep Learning Method," SN Computer Science, vol. 4, no. 845, 2023, doi: 10.1007/s42979-023-02296-w.

F. Aftab, S. U. Bazai, S. Marjan, L. Baloch, and S. Aslam, “A Comprehensive Survey on Sentiment Analysis Techniques,” vol. 14, no. May, pp. 1288–1298, 2023, doi: 10.14716/ijtech.v14i6.6632.

S. K. Hamed, M. J. Ab Aziz, and M. R. Yaakub, "Fake News Detection Model on Social Media by Leveraging Sentiment Analysis of News Content and Emotion Analysis of Users' Comments," Sensors, vol. 23, no. 4, p. 1748, 2023, doi: 10.3390/s23041748.

M. B. Sulthan et al., “Analisis sentimen pada tweet bencana alam menggunakan deep neural network dan information gain,” vol. 2, no. 2, pp. 65–71, 2021.

A. N. Hadianti, Mochamad Alfan Rosid, N. L. Azizah, and N. Ariyanti, “Hybrid Machine Learning for Sentiment Analysis of Dana Application Reviews,” JICTE (Journal Inf. Comput. Technol. Educ., vol. 7, no. 2, pp. 51–58, 2023, doi: 10.21070/jicte.v7i2.1651.

I. B. Setiawan and J. Maulindar, “Penerapan Algoritma Naive Bayes untuk Analisis Sentimen Pada Aplikasi Kesehatan Digital,” vol. 8, no. 4, pp. 2301–2312, 2024.

D. H. Qudsi, J. H. Lubis, K. U. Syaliman, and N. F. Najwa, “ANALISIS SENTIMEN PADA DATA SARAN MAHASISWA TERHADAP KINERJA DEPARTEMEN DI PERGURUAN TINGGI MENGGUNAKAN SENTIMENT ANALYSIS IN THE STUDENT ’ S REVIEWS OF COLLEGE DEPARTMENT PERFORMANCE USING,” vol. 8, no. 5, pp. 1067–1076, 2021, doi: 10.25126/jtiik.202184842.

S. Subramani, H. U. A. Wang, H. U. Y. Q. Vu, G. Li, and S. Member, “Domestic Violence Crisis Identification From Facebook Posts Based on Deep Learning,” IEEE Access, vol. 6, pp. 54075–54085, 2018, doi: 10.1109/ACCESS.2018.2871446.

F. F. Mailoa, “Analisis sentimen data twitter menggunakan metode text mining tentang masalah obesitas di indonesia,” J. Inf. Syst. Public Heal., vol. 6, no. 1, p. 44, 2021, doi: 10.22146/jisph.44455.

J. A. Reshi and R. Ali, "Leveraging Transfer Learning for Detecting Misinformation on Social Media," International Journal of Information Technology, vol. 16, no. 2, pp. 949–955, 2024, doi: 10.1007/s41870-023-01564-5.

J. M. Kikon and R. K. Bania, "Towards Development of Machine Learning Models for Fake News Detection and Sentiment Analysis," in Proc. NIELIT's International Conference on Communication, Electronics and Digital Technology (NICEDT 2024), Springer, 2024, doi: 10.1007/978-981-97-3601-0_8.

M. S. Hamid, A. Eviyanti, H. Hindarto, and N. Ariyanti, “Analisis Sentimen Tingkat Kepuasan Aplikasi WordPress Menggunakan Metode K-Nearest Neighbor dan Naive Bayes,” Smatika J., vol. 15, no. 01, pp. 102–114, 2025, doi: 10.32664/smatika.v15i01.1522.

Hindarto, A. Eviyanti, and N. L. Azizah, “View of Analisis Sentimen Layanan Pelanggan Provider Internet dengan Algoritma Support Vector Machine dan Naïve Bayes.pdf.”

M. Shrestha, “Detecting Fake News with Sentiment Analysis and Network Metadata”.

M. R. Zuhdi, H. Syihabuddin, A. Jauhar, A. Achmad, and R. Fernandes, “COMPARISON OF DBSCAN AND K-MEANS CLUSTER ANALYSIS WITH PATH- ANOVA IN CLUSTERING WASTE MANAGEMENT BEHAVIOUR PATTERNS PERBANDINGAN ANALISIS CLUSTER DBSCAN DAN K-MEANS DENGAN PATH-ANOVA DALAM PENGELOMPOKAN POLA PERILAKU PENGELOLAAN,” vol. 6, no. 1, pp. 105–112, 2025.

T. Jiang, J. P. Li, A. U. Haq, A. Saboor, and A. Ali, "A Novel Stacking Approach for Accurate Detection of Fake News," IEEE Access, vol. 9, pp. 22626–22639, 2021, doi: 10.1109/ACCESS.2021.3056079.

M. A. Alonso, D. Vilares, C. Gómez-Rodríguez, and J. Vilares, "Sentiment Analysis for Fake News Detection," Electronics, vol. 10, no. 11, p. 1348, 2021, doi: 10.3390/electronics10111348.

E. P. Hari, “DETEKSI BERITA HOAX DENGAN PENDEKATAN LEXICON BASED DAN LSTM THESIS Oleh : EDWIN HARI AGUS PRASTYO,” 2024.

S. P. Simanjuntak, S. S. Berutu, G. C. Setyawan, P. S. Informatika, F. Sains, and U. K. Immanuel, “Implementasi Metode CNN pada Klasifikasi Sentimen terhadap Pelaksanaan Piala Dunia U-17 ( Implementation of the CNN Method in Classifying Sentiments Regarding the Implementation of the U-17 World Cup ),” vol. 02, no. 01, pp. 23–32, 2024.

P. Nandwani and R. Verma, “A review on sentiment analysis and emotion detection from text,” Soc. Netw. Anal. Min., vol. 11, no. 1, pp. 1–19, 2021, doi: 10.1007/s13278-021-00776-6.

R. Ghasemi and S. Momtazi, "Fake News Detection: Deep Semantic Representation with Enhanced Feature Engineering," International Journal of Data Science and Analytics, vol. 17, pp. 37–55, 2024, doi: 10.1007/s41060-023-00387-8.

K. Nurfebia, “Sentiment Analysis of Skincare Products Using the Naive Bayes Method,” vol. 6, no. 3, pp. 1663–1676, 2024, doi: 10.51519/journalisi.v6i3.817.

Additional Files

Published

2026-10-10

How to Cite

[1]
N. L. . Azizah, A. Eviyanti, M. A. Rosid, and J. Atmaranti, “Fake News Detection on Social Media Based on Indonesian Public Opinion Sentiment Analysis Using Naïve Bayes and Deep Neural Networks”, J. Tek. Inform. (JUTIF), vol. 7, no. 5, pp. 5133–5150, Oct. 2026.