From data to detection: Developing a corpus and training language models for the identification of anti-refugee narratives in Spanish

This study addresses the automatic detection of negative anti-refugee messages in Spanish texts, using language models based on pre-trained Transformers models. Despite numerous studies on hate speech detection, few have concentrated on Spanish, particularly regarding hostility towards refugees. To fill this void, we developed HateRADAR-es , a new corpus of Spanish-language tweets manually annotated by sociologist and social workers experts to identify the presence or absence of hateful content directed at refugees. This dataset has been made available to the research community to encourage further investigation. A comprehensive experimental framework to tackle this challenge, composed of several stages to achieve language models with a high efficacy in detecting such messages, is presented. To address the class imbalance issue in the data, data augmentation techniques are applied, and extensive experimentation is carried out to find the best values for the hyperparameters of the language models to achieve better performance. In the evaluation process, an ensemble of the fine-tuned models BETO, XLM-RoBERTa, and RoBERTa-large achieved the best results, with an accuracy of 0.891, an F1-measure of 0.860, and an AUC-ROC of 0.892. These findings underscore the effectiveness of combining multiple models into an ensemble to handle the complexity and nuances of hate speech on social media, offering a promising direction for future adaptations and applications of language models in specific hate contexts. • NLP strategies for identifying and mitigating hate speech towards refugees. • Refugee-focused Spanish hate speech dataset, labeled by sociologists and experts. • Experimental framework for developing effective language models using Transformers. • Explores data augmentation, hyperparameter tuning, and ensembles for better models. • Error analysis blending computational and sociological views to guide future work.

Authors

Institutions

Publication Details

Journal
Array
Published
2025-10-04
DOI
https://doi.org/10.1016/j.array.2025.100526
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

From data to detection: Developing a corpus and training language models for the identification of anti-refugee narratives in Spanish

Jacinto Mata Vázquez, Juan L. Domínguez-Olmedo, Estrella Gualda, Victoria Pachón et al.
Array
Natural Language Processing Techniques
article

From data to detection: Developing a corpus and training language models for the identification of anti-refugee narratives in Spanish

Jacinto Mata Vázquez, Juan L. Domínguez-Olmedo, Estrella Gualda, Victoria Pachón, Carolina Rebollo Díaz
article en

Abstract

This study addresses the automatic detection of negative anti-refugee messages in Spanish texts, using language models based on pre-trained Transformers models. Despite numerous studies on hate speech detection, few have concentrated on Spanish, particularly regarding hostility towards refugees. To fill this void, we developed HateRADAR-es , a new corpus of Spanish-language tweets manually annotated by sociologist and social workers experts to identify the presence or absence of hateful content directed at refugees. This dataset has been made available to the research community to encourage further investigation. A comprehensive experimental framework to tackle this challenge, composed of several stages to achieve language models with a high efficacy in detecting such messages, is presented. To address the class imbalance issue in the data, data augmentation techniques are applied, and extensive experimentation is carried out to find the best values for the hyperparameters of the language models to achieve better performance. In the evaluation process, an ensemble of the fine-tuned models BETO, XLM-RoBERTa, and RoBERTa-large achieved the best results, with an accuracy of 0.891, an F1-measure of 0.860, and an AUC-ROC of 0.892. These findings underscore the effectiveness of combining multiple models into an ensemble to handle the complexity and nuances of hate speech on social media, offering a promising direction for future adaptations and applications of language models in specific hate contexts. • NLP strategies for identifying and mitigating hate speech towards refugees. • Refugee-focused Spanish hate speech dataset, labeled by sociologists and experts. • Experimental framework for developing effective language models using Transformers. • Explores data augmentation, hyperparameter tuning, and ensembles for better models. • Error analysis blending computational and sociological views to guide future work.

ArrayVol. 28
Universidad de Huelva (ES)
Openalex Percentile: Top 86%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.