Abstract
Today, fake information has become a significant problem, exacerbated by the acceleration of access to information. The spread of fake information has a dangerous impact, especially regarding global health issues, for example COVID-19. People can access various resources to obtain information, including online sites and social media. One of the methods to control the spread of false information is detecting hoaxes. Many methods have been developed to identify hoaxes; most previous studies have focused on developing hoax detection methods using data from a single source in English. The present study is carried out to detect fake news in Indonesian language using multiple data sources, including traditional and social media in the context of COVID-19. The study uses Long Short-Term Memory (LSTM) and the Robustly Optimised Bidirectional Encoder Representations from Transformers Pre-Training Approach (RoBERTa). The LSTM approach is used to develop four different architectures that varied based on: (1) the use of text-only versus the use of both title and text; (2) the number of LSTM and dense layers; and (3) the activation function. The LSTM model with text-only data, a single LSTM layer and two dense layers, outperformed other LSTM architectures, achieving the highest accuracy of 92.17%. The LSTM models require a considerably short training time of 23–27 minutes for 3,847 articles and has a detection time of 3.8–4.1 ms per article. The RoBERTa classifiers outperformed all LSTM models with an accuracy of over 97% and a significantly better training time, with a margin of more than 50% compared to LSTM classifiers, although it had a slightly longer test time. Both LSTM and RoBERTa models outperformed the Naïve Bayes and SVM benchmark methods in terms of accuracy, precision, and recall. Therefore, this study shows that both LSTM and RoBERTa methods are reliable and can be reasonably implemented for real-time fake news detection.
Introduction
The rapid acceleration of information access has turned fake news into a significant global challenge, particularly during health crises like the COVID-19 pandemic. In Indonesia, where social media serves as a primary news source for a vast demographic, the "infodemic" posed a severe threat to public health and social stability. While significant research exists for English-language hoax detection, Bahasa Indonesia remains a relatively low-resource language in the field of Natural Language Processing (NLP). This study addresses this gap by developing a robust detection system using multi-source data—including traditional news portals, government websites, and social media—to identify COVID-19 misinformation specifically in the Indonesian context.
Methodology
The research followed a structured pipeline starting from data collection to model evaluation.
Data Collection and Preprocessing
A custom dataset of 4,831 articles was compiled, spanning January 2020 to April 2022. The data, consisting of 65% real news and 35% fake news, was scraped from Twitter, Facebook, and various Indonesian news portals. Ground truth labels were verified against authoritative Indonesian fact-checking sources such as turnbackhoax.id and the official government portal covid19.go.id. Standard NLP preprocessing steps were applied, including lowercase conversion, stemming, and stop-word removal.
Model Architectures
The study compared two primary deep learning approaches against traditional machine learning benchmarks (Naïve Bayes and SVM):
- Long Short-Term Memory (LSTM): Four distinct architectures were developed. These included "Sequential" models (text-only) and "Functional" models (multi-input using both title and text). Variations in the number of layers and activation functions (ReLU vs. Sigmoid) were tested to optimize performance.
- RoBERTa (Robustly Optimized BERT Pre-training Approach): This transformer-based model was selected for its advanced ability to handle long sequences and dynamic masking. The researchers fine-tuned a pre-trained RoBERTa model with a simple transformer classification head.
Results and Discussion
The quantitative evaluation demonstrated a significant performance leap when moving from traditional machine learning to deep learning architectures.
| Model | Test Accuracy | Precision | Recall | Training Time |
|---|---|---|---|---|
| Naïve Bayes | 53.76% | 0.41 | 0.85 | 0.048s |
| SVM | 73.27% | 0.62 | 0.54 | 10.92s |
| LSTM (Best) | 92.17% | 0.89 | 0.89 | 1408s |
| RoBERTa | 97.50% | 0.97 | 0.96 | 700s |
Key Insights
- The "Title Trap": Interestingly, the "Functional" LSTM models that incorporated both titles and text performed worse than text-only models. This suggests that fake news often utilizes legitimate-sounding "clickbait" titles to mimic real news, which can mislead multi-input models.
- Efficiency and Performance: RoBERTa emerged as the superior model, not only in terms of accuracy (97.5%) but also in resource efficiency. It reduced training time by over 50% compared to the best LSTM model while maintaining high precision and recall.
- Real-Time Deployment: Both LSTM and RoBERTa models achieved detection times between 3.8 and 5.6 milliseconds per article, indicating their suitability for real-time monitoring systems or browser-based detection tools.
Conclusion
This study confirms that deep learning models, particularly transformer-based architectures like RoBERTa, are highly effective for detecting fake news in the Indonesian language. While LSTM models showed signs of slight overfitting due to the dataset size, they still significantly outperformed traditional benchmarks. Future research will focus on improving the handling of deceptive titles, expanding the dataset to broader news themes, and exploring lightweight transformer variants for even greater efficiency in low-resource settings.
Summary updated