Language Processing for Detecting Fake News on Twitter Using a Long Short-Term Memory Architecture
DOI:
https://doi.org/10.29207/resti.v9i4.6570Keywords:
fake news detection, LSTM, misinformation, NLP, misinformatio, political hoaxes, social media analysisAbstract
The rapid spread of misinformation on social media platforms, particularly X (formerly Twitter), poses a significant challenge to public trust and democratic integrity. Fake news is often crafted to deceive readers and manipulate public opinion, especially in political contexts such as the 2024 Regional Head Elections (Pilkada 2024). Although various measures have been proposed to mitigate this issue, achieving an effective balance between controlling misinformation and preserving free speech remains a challenge. This study aims to address this problem by developing a fake news detection model based on Natural Language Processing (NLP) and Long Short-Term Memory (LSTM). The dataset used in this study was collected from public tweets related to Pilkada, with Kompas.com serving as the validation source to verify content authenticity. Experimental results show that the proposed LSTM model outperformed traditional classification methods, achieving a precision, recall, and F1-score of 0.95, along with an overall accuracy of 94.90%. Confusion matrix analysis further confirmed the reliability of the model by demonstrating low misclassification rates. This study contributes to the advancement of AI-driven hoax detection systems, offering an automated and scalable solution for combating misinformation in political discourse.
Downloads
References
N. I. Saputri, Y. Sibaroni, and S. S. Prasetiyowati, “Covid-19 Fake News Detection on Twitter Based on Author Credibility Using Information Gain and KNN Methods,” Jurnal RESTI, vol. 7, no. 1, pp. 185–192, 2023, doi: 10.29207/resti.v7i1.4871.
M. Nazari, L. D. Jiménez-Franco, M. Schroeder, A. Kluge, M. Bronzel, and S. Kimiaei, “Automated and robust organ segmentation for 3D-based internal dose calculation,” EJNMMI Res, vol. 11, no. 1, pp. 1–13, 2021, doi: 10.1186/s13550-021-00796-5.
A. S. Zamani, A. H. A. Hashim, S. S. I. Mohamed, and N. Alam, “Optimized Deep Learning Techniques to Identify Rumors and Fake News in Online Social Networks,” Journal of Computational and Cognitive Engineering, vol. 4, no. 2, pp. 142–150, 2025, doi: 10.47852/bonviewJCCE52023348.
C. Jocelynne, L. Tobing, I. Lanang Wijayakusuma, L. Putu, and I. Harini, “Detection of Political Hoax News Using Fine-Tuning IndoBERT,” Journal of Applied Informatics and Computing (JAIC), vol. 9, no. 2, pp. 354–360, 2025, [Online]. Available: http://jurnal.polibatam.ac.id/index.php/JAIC
Crisanadenta Wintang Kencana, Erwin Budi Setiawan, and Isman Kurniawan, “Hoax Detection System on Twitter using Feed-Forward and Back-Propagation Neural Networks Classification Method,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 4, no. 4, pp. 655–663, 2020, doi: 10.29207/resti.v4i4.2038.
W. S. Sayed, A. G. Radwan, H. A. H. Fahmy, and A. L. Elsedeek, “Trajectory control and image encryption using affine transformation of lorenz system,” Egyptian Informatics Journal, vol. 22, no. 2, pp. 155–166, 2021, doi: 10.1016/j.eij.2020.07.002.
L. Chiruzzo, S. María Jiménez-Zafra, and F. Rangel, “Overview of IberLEF 2024: Natural Language Processing Challenges for Spanish and other Iberian Languages,” in CEUR Workshop Proceedings, 2024, pp. 1–14. [Online]. Available: https://www.fing.edu.uy/index.php/es/node/40865
T. Sowmya and E. A. Mary Anita, “A comprehensive review of AI based intrusion detection system,” Measurement: Sensors, vol. 28, pp. 1–13, Aug. 2023, doi: 10.1016/j.measen.2023.100827.
M. S. Khan, Z. Shah, M. Roman, W. Khan, N. Vrinceanu, and M. H. Alshehri, “Entropy generation in magneto couple stress bionanofluid flow containing gyrotactic microorganisms towards a stagnation point on a stretching/shrinking sheet,” Sci Rep, vol. 13, no. 1, pp. 1–26, 2023, doi: 10.1038/s41598-023-48676-3.
A. Nistor and E. Zadobrischi, “The Influence of Fake News on Social Media: Analysis and Verification of Web Content during the COVID-19 Pandemic by Advanced Machine Learning Methods and Natural Language Processing,” Sustainability (Switzerland), vol. 14, no. 17, pp. 1–24, Sep. 2022, doi: 10.3390/su141710466.
X. Yang, Y. Wu, M. Yang, H. Chen, and X. Geng, “Exploring Diverse In-Context Configurations for Image Captioning,” in Conference on Neural Information Processing Systems, Jan. 2024, pp. 1–20. doi: 10.48550/arXiv.2305.14800.
M. K. Anam, S. Defit, Haviluddin, L. Efrizoni, and M. B. Firdaus, “Early Stopping on CNN-LSTM Development to Improve Classification Performance,” Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1175–1188, 2024, doi: 10.47738/jads.v5i3.312.
U. Gawande, K. Hajari, and Y. Golhar, “SIRA: Scale illumination rotation affine invariant mask R-CNN for pedestrian detection,” Applied Intelligence, vol. 52, no. 9, pp. 10398–10416, Jul. 2022, doi: 10.1007/s10489-021-03073-z.
F. Sriyono and A. Nasiri, “Detecting Hate Speech In Twitter Using Long Short-Term Memory And Naïve Bayes Method,” Syntax Literate, vol. 7, no. 2, pp. 685–695, 2022, doi: 10.36418/syntax-literate.v7i2.6313.
D. Mouratidis, A. Kanavos, and K. Kermanidis, “From Misinformation to Insight: Machine Learning Strategies for Fake News Detection,” Information (Switzerland), vol. 16, no. 3, pp. 1–30, Mar. 2025, doi: 10.3390/info16030189.
S. Yin et al., “Automatic kidney segmentation in ultrasound images using subsequent boundary distance regression and pixelwise classification networks,” Med Image Anal, vol. 60, pp. 1–14, Feb. 2020, doi: 10.1016/j.media.2019.101602.
D. Y. Yefferson, V. Lawijaya, and A. S. Girsang, “Hybrid model: IndoBERT and long short-term memory for detecting Indonesian hoax news,” IAES International Journal of Artificial Intelligence, vol. 13, no. 2, pp. 1911–1922, 2024, doi: 10.11591/ijai.v13.i2.pp1913-1924.
P. A. Cicalese, A. Mobiny, Z. Shahmoradi, X. Yi, C. Mohan, and H. Van Nguyen, “Kidney Level Lupus Nephritis Classification Using Uncertainty Guided Bayesian Convolutional Neural Networks,” IEEE J Biomed Health Inform, vol. 25, no. 2, pp. 315–324, 2021, doi: 10.1109/JBHI.2020.3039162.
S. Muzamil, T. Hussain, A. Haider, U. Waraich, U. Ashiq, and E. Ayguadé, “An intelligent iris based chronic kidney identification system,” Symmetry (Basel), vol. 12, no. 12, pp. 1–14, 2020, doi: 10.3390/sym12122066.
R. S. Putra, W. Agustin, M. K. Anam, L. Lusiana, and S. Yaakub, “The Application of Naïve Bayes Classifier Based Feature Selection on Analysis of Online Learning Sentiment in Online Media,” Jurnal Transformatika, vol. 20, no. 1, pp. 44–56, Jul. 2022, doi: 10.26623/transformatika.v20i1.5144.
P. P. Putra, M. K. Anam, S. Defit, and A. Yunianta, “Enhancing the Decision Tree Algorithm to Improve Performance Across Various Datasets,” INTENSIF: Jurnal Ilmiah Penelitian dan Penerapan Teknologi Sistem Informasi, vol. 8, no. 2, pp. 200–212, Aug. 2024, doi: 10.29407/intensif.v8i2.22280.
A. N. Ulfah, M. K. Anam, N. Y. S. Munti, S. Yaakub, and M. B. Firdaus, “Sentiment Analysis of the Convict Assimilation Program on Handling Covid-19,” JUITA: Jurnal Informatika, vol. 10, no. 2, pp. 209–216, 2022, doi: 10.30595/juita.v10i2.12308.
M. K. Anam, M. B. Firdaus, F. Suandi, Lathifah, T. Nasution, and S. Fadly, “Performance Improvement of Machine Learning Algorithm Using Ensemble Method on Text Mining,” in ICFTSS 2024 - International Conference on Future Technologies for Smart Society, Kuala Lumpur: Institute of Electrical and Electronics Engineers Inc., Sep. 2024, pp. 90–95. doi: 10.1109/ICFTSS61109.2024.10691363.
T. Dang, Y. Sakai, T. Tabaru, and A. Kasagi, “Regularizing Data for Improving Execution Time of NLP Model,” in The International FLAIRS Conference Proceedings, 2022, pp. 1–4. doi: 10.32473/flairs.v35i.130672.
M. K. Anam et al., “Sara Detection on Social Media Using Deep Learning Algorithm Development,” Journal of Applied Engineering and Technological Science, vol. 6, no. 1, pp. 225–237, Dec. 2024, doi: 10.37385/jaets.v6i1.5390.
L. Xiaoyan, R. C. Raga, and S. Xuemei, “GloVe-CNN-BiLSTM Model for Sentiment Analysis on Text Reviews,” J Sens, vol. 2022, pp. 1–12, 2022, doi: 10.1155/2022/7212366.
F. Wundari, M. N. A. Syaiba Amien, and D. H. Irtsa, “Identifying Fake News Using Long-Short Term Memory Model,” Journal of Dinda : Data Science, Information Technology, and Data Analytics, vol. 4, no. 1, pp. 28–34, 2024, doi: 10.20895/dinda.v4i1.1424.
D. K. Talapula, A. Kumar, K. K. Ravulakollu, and M. Kumar, “A hybrid deep learning classifier and Optimized Key Windowing approach for drift detection and adaption,” Decision Analytics Journal, vol. 6, 2023, doi: 10.1016/j.dajour.2023.100178.
F. E. Laghrissi, S. Douzi, K. Douzi, and B. Hssina, “Intrusion detection systems using long short-term memory (LSTM),” J Big Data, vol. 8, no. 1, 2021, doi: 10.1186/s40537-021-00448-4.
Y. Zhang, X. Hao, and Y. Liu, “Simplifying Long Short-Term Memory for Fast Training and Time Series Prediction,” in Journal of Physics: Conference Series, Institute of Physics Publishing, Jun. 2019. doi: 10.1088/1742-6596/1213/4/042039.
M. Cheon, D. Hee Lee, H. Seon Joo, and O. Lee, “Deep Learning Based Hybrid Approach of Detecting Fraudulent Transactions,” J Theor Appl Inf Technol, vol. 31, no. 16, pp. 4044–4054, 2021, [Online]. Available: https://www.kaggle.com/mlg-
A. P. Savant, “an Analysis of Deep Learning and Attention Models for Natural Language Processing Tasks,” International Research Journal of Computer Science, vol. 7, no. 9, pp. 227–232, 2020, doi: 10.26562/irjcs.2020.v0709.001.
M. K. Anam, T. P. Lestari, H. Yenni, T. Nasution, and M. B. Firdaus, “Enhancement of Machine Learning Algorithm in Fine-grained Sentiment Analysis Using the Ensemble,” ECTI Transactions on Computer and Information Technology (ECTI-CIT), vol. 19, no. 2, pp. 159–167, Mar. 2025, doi: 10.37936/ecti-cit.2025192.257815.
F. Suandi et al., “Enhancing Sentiment Analysis Performance Using SMOTE and Majority Voting in Machine Learning Algorithms,” in International Conference on Applied Engineering, Atlantis Press, 2024, pp. 126–138. doi: 10.2991/978-94-6463-620-8_10.
M. K. Anam et al., “Enhancing the Performance of Machine Learning Algorithm for Intent Sentiment Analysis on Village Fund Topic,” Journal of Applied Data Sciences, vol. 6, no. 2, pp. 1102–1115, 2025, doi: 10.47738/jads.v6i2.637.
A. C. M. V. Srinivas, Ch. Satyanarayana, Ch. Divakar, and K. P. Sirisha, “Sentiment Analysis using Neural Network and LSTM,” in IOP Conference Series: Materials Science and Engineering, IOP Publishing, Feb. 2021, pp. 1–7. doi: 10.1088/1757-899x/1074/1/012007.
M. K. Anam et al., “Improved Performance of Hybrid GRU-BiLSTM for Detection Emotion on Twitter Dataset,” Journal of Applied Data Sciences, vol. 6, no. 1, pp. 354–365, Jan. 2025, doi: 10.47738/jads.v6i1.459.
Downloads
Published
Issue
Section
License
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;





