journal article·2024-10-24Open access

Enhancing Misinformation Detection in Spanish Language with Deep Learning: BERT and RoBERTa Transformer Models

Yolanda Blanco-Fernández, Javier Otero-Vizoso, Alberto Gil-Solla, Jorge García-Duque

Applied Sciences· Volume 14· Issue 21

Abstract

This paper presents an approach to identifying political fake news in Spanish using Transformer architectures. Current methodologies often overlook political news due to the lack of quality datasets, especially in Spanish. To address this, we created a synthetic dataset of 57,231 Spanish political news articles, gathered via automated web scraping and enhanced with generative large language models. This dataset is used for fine-tuning and benchmarking Transformer models like BERT and RoBERTa for fake news detection. Our fine-tuned models showed outstanding performance on this dataset, with accuracy ranging from 97.4% to 98.6%. However, testing with a smaller, independent hand-curated dataset, including statements from political leaders during Spain’s July 2023 electoral debates, revealed a performance drop to 71%. Although this suggests that the model needs additional refinements to handle the complexity and variability of real-world political discourse, achieving over 70% accuracy seems a promising result in the under-explored domain of Spanish political fake news detection.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Misinformation and Its Impacts · Topic Modeling · Spam and Phishing Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

atlanTTic Research Center for Telecommunication Technologies, University of Vigo, 36310 Vigo, Spain

Escuela de Ingeniería de Telecomunicación, University of Vigo, 36310 Vigo, Spain

Funding

Ministry of Science and Innovation of the Government of Spain · Consellería de Educación, Ciencia, Universidades y Formación Profesional of the Xunta de Galicia

References (79)

Show source-provided references
1. An ensemble machine learning approach through effective feature extraction to classify fake news10.1016/j.future.2020.11.022 ↗
2. Cross-language fake news detection
3. Poddar, K., Bessie, G., and Umadevi, K.S. (2019, January 22–23). Comparison of Various Machine Learning Models for Accurate Detection of Fake News. Proceedings of the 2019 Innovations in Power and Advanced Computing Technologies (i-PACT), Vellore, India.10.1109/i-PACT44901.2019.8960044 ↗
4. Using Deep Learning models to detect fake news about COVID-1910.1145/3609506 ↗
5. Fake news detection: Taxonomy and comparative study10.1016/j.inffus.2023.102140 ↗
6. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv.
7. Improving text classification with transformers and layer normalization
8. Soyalp, G., Alar, A., Ozkanli, K., and Yildiz, B. (2021, January 15–17). Improving text classification with Transformer. Proceedings of the 6th International Conference on Computer Science and Engineering (UBMK), Ankara, Turkey.10.1109/UBMK52708.2021.9558906 ↗
9. Text classification using improved bidirectional transformer10.1002/cpe.6486 ↗
10. Shaheen, Z., Wohlgenannt, G., and Filtz, E. (2020). Large scale legal text classification using Transformer models. arXiv.
11. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention Is All You Need. arXiv.
12. Santana, M. (2023, November 01). Fake News Detector Spanish News Edition. Available online: https://www.kaggle.com/code/msantrod/fake-news-detector-spanish-news-edition.
13. Morcillo-Montano, J.G., and Flores-Quinayas, J.E. (2022). Modelo para la Detección de Noticias Falsas en Formato Texto en la Red Social Twitter, Aplicado al Contexto Político Colombiano de las Elecciones Presidenciales de 2022. [Bachor’s Thesis, Faculty of Engineering, Master in Data Science].
14. Detection of fake news in a new corpus for the Spanish language
15. Overview of EXIST 2022: sEXIsm Identification in Social neTworks
16. González-Carvajal Centenera, S. (2020). Estudio del Rendimiento de BERT Frente a Métodos Clásicos de Procesamiento de Lenguaje Natural. [Bachor’s Thesis, Informatic Engineering Bachelor, Universidad Autónoma de Madrid].
17. Alim, A., Ayman, A., Kumar Donepudi, P., and Myung, S. (2021). Detecting fake news using Machine Learning: A systematic literature review. arXiv.
18. Granik, M., and Mesyura, V. (June, January 29). Fake news detection using Naïve Bayes classifier. Proceedings of the IEEE First Ukraine Conference on Electrical and Computer Engineering (UKRCON), Kyiv, Ukraine.
19. Abdullah-All-Tanvir, M., Akhter, S., and Huq, M. (2019, January 28–30). Detecting fake news using Machine Learning and Deep Learning algorithms. Proceedings of the 7th International Conference on Smart Computing & Communications (ICSCC), Sarawak, Malaysia.10.1109/ICSCC.2019.8843612 ↗
20. Experiments on detecting fake news using Machine Learning algorithms
21. Fake news detection on the Web: An LSTM-based approach
22. Jain, P., Sharma, S., and Aggarwal, P. (2022, January 27–28). Classifying Fake News Detection Using SVM, Naive Bayes and LSTM. Proceedings of the 12th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Virtual.10.1109/Confluence52989.2022.9734129 ↗
23. Fake news classification using Transformer based enhanced LSTM and BERT
24. Islam, T., Hosen, M., Mony, A., Hasan, M., Jahan, I., and Kundu, A. (2022, January 21–22). A Proposed Bi-LSTM Method to Fake News Detection. Proceedings of the International Conference for Advancement in Technology (ICONAT), Goa, India.10.1109/ICONAT53423.2022.9725937 ↗
25. Exploring fake news identification using word and sentence embeddings10.3233/JIFS-189865 ↗
26. WELFake: Word embedding over linguistic features for fake news detection10.1109/TCSS.2021.3068519 ↗
27. Truica, C.O., and Apostol, E. (2023). It’s all in the embedding! Fake news detection using document embeddings. Mathematics, 11.10.3390/math11030508 ↗
28. Advancing fake news detection: Hybrid deep learning with FastText and explainable AI10.1109/ACCESS.2024.3381038 ↗
29. NSEP: Early fake news detection via news semantic environment perception10.1016/j.ipm.2023.103594 ↗
30. Game-on: Graph attention network based multimodal fusion for fake news detection10.1007/s13278-024-01271-4 ↗
31. Wu, K., Yang, S., and Zhu, K.Q. (2015, January 13–17). False rumors detection on Sina Weibo by propagation structures. Proceedings of the IEEE 31st International Conference on Data Engineering, Seoul, Republic of Korea.10.1109/ICDE.2015.7113322 ↗
32. Kwon, S., Cha, M., Jung, K., Chen, W., and Wang, Y. (2013, January 7–10). Prominent features of rumor propagation in online social media. Proceedings of the IEEE 13th International Conference on Data Mining, Dallas, TX, USA.10.1109/ICDM.2013.61 ↗
33. Fake news detection using dual BERT deep neural networks10.1007/s11042-023-17115-w ↗
34. Tretiakov, A. (2023, November 01). Fake News in Spanish. Available online: https://www.kaggle.com/datasets/arseniitretiakov/noticias-falsas-en-espaol.
35. Overview of FakeDeS at IberLEF 2021: Fake News Detection in Spanish Shared Task
36. Automatic Classification of Sexism in Social Networks: An Empirical Study on Twitter Data10.1109/ACCESS.2020.3042604 ↗
37. Lakshmipathi, N. (2023, November 01). IMDB Dataset of 50 K Movie Reviews. Available online: https://www.kaggle.com/datasets/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews.
38. Howard, A., Culliton, P., and Guo, Y. (2023, November 01). Natural Language Processing with Disaster Tweets. Available online: https://www.kaggle.com/competitions/nlp-getting-started/data.
39. Camargo, F. (2023, November 01). FASAM—NLP Competition—Predict News Category. Available online: https://www.kaggle.com/competitions/fasam-nlp-competition-turma-4.
40. Zhang, C. (2023, November 01). Tutorial for Chinese Sentiment Analysis with Hotel Review Data. Available online: https://github.com/Tony607/Chinese_sentiment_analysis/tree/master/data/ChnSentiCorp_htl_ba_6000.
41. FakeNewsNet: A Data Repository with News Content, Social Context and Dynamic Information for Studying Fake News on Social Media10.1089/big.2020.0062 ↗
42. Martínez-Gallego, K., Álvarez-Ortiz, A., and Arias-Londoño, J. (2021). Fake News Detection in Spanish Using Deep Learning Techniques. arXiv.
43. Bugoi, A., Córdova, D.A., Corpas, J., Hernández, D., Karlgren, E., and Turiel, E. (2023, November 01). FakeStorage. Available online: https://github.com/alcorpas10/FakesStorage.
44. Fioretos, D.P. (2021). Fake News Detection with the GREEK-BERT Model with a Focus on COVID-19. [Bachor’s Thesis, National and Kapodistrian University of Athens]. Available online: https://pergamos.lib.uoa.gr/uoa/dl/object/2967905/file.pdf.
45. Keya, A., Wadud, M.A., Alatiyyah, M., and Hamid, A. (2022). AugFake-BERT: Handling Imbalance through Augmentation of Fake News Using BERT to Enhance the Performance of Fake News Classification. Appl. Sci., 12.10.3390/app12178398 ↗
46. Reitz, K. (2023, November 01). Requests: HTTP for Humans. Available online: https://docs.python-requests.org/en/latest/.
47. Richardson, L. (2023, November 01). Beautiful Soup Documentation. Available online: https://www.crummy.com/software/BeautifulSoup/bs4/doc/.
48. OpenAI (2023, November 01). Official Website. Available online: https://openai.com/.
49. Honnibal, M., and Montani, I. (2023, November 01). Spacy Website. Available online: https://spacy.io.
50. Honnibal, M., and Montani, I. (2023, November 01). Spacy’s NER Model. Available online: https://spacy.io/models/es#es_core_news_lg.
51. Python Software Foundation (2023, November 01). Python Documentation. Available online: https://www.python.org/doc/.
52. Chouikhi, H., Chniter, H., and Jarray, F. (2021). Arabic Sentiment Analysis Using BERT Model. Advances in Computational Collective Intelligence, Springer.10.1007/978-3-030-88113-9_50 ↗
53. COVID-Twitter-BERT: A Natural Language Processing model to analyse COVID-19 content on Twitter10.3389/frai.2023.1023281 ↗
54. Wang, Z., Ng, P., Ma, X., Nallapati, R., and Xiang, B. (2019). Multi-Passage BERT: A Globally Normalized BERT Model for Open-Domain Question Answering. arXiv.10.18653/v1/D19-1599 ↗
55. Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P., and Soricut, R. (2020). ALBERT: A Lite BERT for self-supervised learning of language representations. arXiv.
56. Sanh, V., Debut, L., Chaumond, J., and Wolf, T. (2019). DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter. arXiv.
57. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining approach. arXiv.
58. Pre-trained transformers: An empirical comparison
59. Sentiment analysis of MOOC reviews via ALBERT-BiLSTM model10.1051/matecconf/202133605008 ↗
60. Online News Sentiment Classification Using DistilBERT10.32604/jqc.2022.026658 ↗
61. Adel, H., Dahou, A., Mabrouk, A., Abd, E., Kayed, M., El-Henawy, I.M., Alshathri, S., and Amin-Ali, A. (2022). Improving crisis events detection using DistilBERT with hunger games search algorithm. Mathematics, 10.10.3390/math10030447 ↗
62. Angin, M., Beyza, T., Arda, C., and Demiralp, G. (2022). Atay, M.; Angin, P.; Dikmener, G. A RoBERTa approach for automated processing of sustainability reports. Sustainability, 14.10.20944/preprints202210.0381.v1 ↗
63. Akhila, N., Sanjanasri, J.P., and Soman, K. (2023, January 23–25). Comparative study of BERT models and RoBERTa in Transformer based question answering. Proceedings of the 3rd International Conference on Intelligent Technologies (CONIT), Hubli, India.10.1109/CONIT59222.2023.10205622 ↗
64. FinBERT-MRC: Financial named entity recognition using BERT under the machine reading comprehension paradigm
65. Naming entity recognition of citrus pests and diseases based on the BERT-BiLSTM-CRF model10.1016/j.eswa.2023.121103 ↗
66. A study of BERT for context-aware neural machine translation
67. Prasanthi, K., Eswari, M., Sabarinadh, S., Naga, D., and Sravani, B. (2023, January 7–9). A Novel Approach for Sentiment Analysis on social media using BERT and ROBERTA Transformer-Based Models. Proceedings of the IEEE 8th International Conference for Convergence in Technology (I2CT), Lonavla, India.10.1109/I2CT57861.2023.10126206 ↗
68. Sentiment analysis classification system using hybrid BERT models10.1186/s40537-023-00781-w ↗
69. Text sentiment analysis based on BERT-CBLBGA10.1016/j.compeleceng.2023.109019 ↗
70. Pires, T., Schlinger, E., and Garrette, D. (2019). How multilingual is multilingual BERT?. arXiv.10.18653/v1/P19-1493 ↗
71. BERT-based approach for sentiment analysis of Spanish reviews from TripAdvisor
72. Cañete, J., Chaperon, G., Fuentes, R., Ho, J.H., Kang, H., and Pérez, J. (2022). Spanish pre-trained BERT model and evaluation data. arXiv.
73. Goyal, N., Du, J., Ott, M., Anantharaman, G., and Conneau, A. (2021). Larger-scale transformers for multilingual masked language modeling. arXiv.10.18653/v1/2021.repl4nlp-1.4 ↗
74. de la Rosa, J., Ponferrada, E.G., Villegas, P., Gonzalez, P., de Prado, S., Romero, M., and Grandury, M. (2022). BERTIN: Efficient Pre-Training of a Spanish Language Model using Perplexity Sampling. arXiv.
75. Crawl, C. (2023, November 01). Multilingual Common Crawl Corpus (MC4). Available online: https://huggingface.co/datasets/mc4.
76. Xue, L., Constant, N., Roberts, A., Kale, M., Al-Rfou, R., Siddhant, A., Barua, A., and Raffel, C. (2020). mT5: A Massively Multilingual Pre-trained Text-to-Text Transformer. In Proceedings of the North American Chapter of the Association for Computational Linguistics. arXiv.10.18653/v1/2021.naacl-main.41 ↗
77. Gutiérrez-Fandiño, A., Armengol-Estapé, J., Pamies, M., Llop-Palao, J., Silveira-Ocampo, J., Carrino, C., González-Aguirre, C., Armentano-Oller, C., Rodríguez-Penagos, C., and Villegas, M. (2021). Spanish language models. arXiv.
78. Wolf, T. (2023, November 01). Hugging Face Transformers. Available online: https://github.com/huggingface/transformers.
79. Scikit-learn: Machine Learning in Python