Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparative Analysis of LSTM, GRU, and BERT Models for Fake News Detection
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
Blekinge Institute of Technology, Faculty of Computing, Department of Computer Science.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Background: The dissemination of misinformation through online platforms is a serious concern in today’s information-based world. As it has become easier to publish and share information online, fake news has emerged as a critical threat, influencing public perception and distorting facts. It is therefore important to correctly identify fake news in order to maintain the integrity of information and ensure public awareness.

Objectives: The objective of this study is to perform a comparative analysis ofthe Deep Learning (DL) models namely Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and Bidirectional Encoder Representations from Transformers (BERT) for fake news detection. By evaluating the performance of these models using metrics such as accuracy, precision, recall, and F1-score, the study aims toidentify the most effective method for detecting misinformation in text data.

Methods: The research adopts an experimental approach, by training and testing various DL models on a labeled fake news dataset sourced from Kaggle. Preprocessing steps such as tokenization and sequence padding are applied to prepare the text data for model input. The LSTM and GRU models are implemented using recurrent neural network layers, while BERT is employed using transfer learning techniques. Each model is evaluated on the same dataset to ensure a fair and consistent comparison.

Results: The evaluation indicates that transformer-based models perform significantly better than recurrent neural networks (RNNs) in fake news detection. The BERT model achieved the highest accuracy, reaching 99% among the evaluated models. The LSTM and GRU models achieved approximately 98% and 93% accuracy, respectively. The experimental results highlight the effectiveness of contextual word embeddings and multi-head attention mechanisms in capturing complex textual patterns.

Conclusions: This work demonstrates the effectiveness of the BERT model compared to conventional RNNs for fake news detection. By leveraging contextual understanding of textual data, BERT proves to be a robust tool for detecting misinformation with high accuracy. These results highlight the importance of transformer-based methods in constructing more stable and trustworthy fake news detection systems.

Place, publisher, year, edition, pages
2025. , p. 55
Keywords [en]
Fake news detection, Deep learning, LSTM, GRU, BERT, Natural Language Processing, Transformer models.
National Category
Engineering and Technology
Identifiers
URN: urn:nbn:se:bth-28271OAI: oai:DiVA.org:bth-28271DiVA, id: diva2:1980396
Subject / course
DV1478 Bachelor Thesis in Computer Science
Educational program
DVGDT Bachelor Qualification Plan in Computer Science 60.0 hp
Presentation
(Swedish)
Supervisors
Examiners
Available from: 2025-07-03 Created: 2025-07-02 Last updated: 2025-09-30Bibliographically approved

Open Access in DiVA

Fake News Detection(2282 kB)1295 downloads
File information
File name FULLTEXT01.pdfFile size 2282 kBChecksum SHA-512
f3344b06c50fdad7b80a02c0aaede30292e0101253a306f1db13d38992f83001475f7a32531613beaa9b3e40e729aeaf82f20e1e9b610987e2721f39657a02b5
Type fulltextMimetype application/pdf

By organisation
Department of Computer Science
Engineering and Technology

Search outside of DiVA

GoogleGoogle Scholar
Total: 1296 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 434 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf