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

dc.contributor.authorMata Vázquez, Jacinto
dc.contributor.authorGualda, Estrella
dc.contributor.authorPachón Álvarez, Victoria
dc.contributor.authorRebollo Díaz, Carolina
dc.contributor.authorDomínguez Olmedo, Juan Luis
dc.date.accessioned2025-11-17T07:53:15Z
dc.date.available2025-11-17T07:53:15Z
dc.date.issued2025
dc.description.abstractThis 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.
dc.description.departmentSociología, Trabajo Social y Salud Pública
dc.description.departmentTecnologías de la Información
dc.description.researchgroupG.I. ESEIS, Estudios Sociales e Intervención Social (SEJ-216)
dc.description.sponsorshipThis paper is part of the I+D+i Project titled ‘‘Conspiracy Theories and Hate Speech Online: Comparison of patterns in narratives and social networks about COVID 19, immigrants, refugees and LGBTI people [NON CONSPIRA HATE!]", PID2021 123983OB I00, funded by MCIN/AEI/10.13039/501100011033/ and by FEDER/EU. The publication is part of grant JDC2022-048239-I, funded by MCIN/AEI/10.13039/501100011033 and by the European Union‘‘NextGenerationEU’’/PRTR. We also thank for the support of the research centers at the Uni-versity of Huelva ‘‘Estudios Sociales E Intervención Social, ESEIS’’, ‘‘Pensamiento Contemporáneo e Innovación para el Desarrollo Social, COIDESO" and ‘‘Centro de Investigación en Tecnología, Energía 𝑦Sostenibilidad, CITES’’.
dc.identifier.citationMata, J., Gualda, E., Pachón, V., Rebollo, C., & Domínguez, J. L. (2025). From data to detection: Developing a corpus and training language models for the identification of anti-refugee narratives in Spanish. Array, 28, 100526. https://doi.org/10.1016/j.array.2025.100526
dc.identifier.doi10.1016/j.array.2025.100526
dc.identifier.issn2590-0056 (electrónico)
dc.identifier.urihttps://hdl.handle.net/10272/27390
dc.language.isoeng
dc.publisherElsevier
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 International
dc.rights.accessRightsopen access
dc.rights.urihttp://creativecommons.org/licenses/by-nc-nd/4.0/
dc.subject.otherDeep learning
dc.subject.otherLanguage models
dc.subject.otherTransformers
dc.subject.otherSocial media
dc.subject.otherTwitter
dc.subject.otherHate speech
dc.subject.otherRefugees
dc.subject.unesco1203.04 Inteligencia Artificial
dc.subject.unesco6308 Comunicaciones Sociales
dc.subject.unesco6112.01 Discriminación
dc.titleFrom data to detection: developing a corpus and training language models for the identification of anti-refugee narratives in Spanish
dc.typejournal article
dc.type.hasVersionVoR
dspace.entity.typePublication
relation.isAuthorOfPublicationac76819b-d91a-4158-b947-4a9e827e5e9d
relation.isAuthorOfPublicatione65f8d9d-ba99-49a1-9abf-34925101fabc
relation.isAuthorOfPublication47cb4892-3513-4d33-953c-8521bc9cb187
relation.isAuthorOfPublication122cbb60-00f2-4997-84ed-979737b38d0b
relation.isAuthorOfPublication11d4312c-8591-4e26-b971-740ce012d168
relation.isAuthorOfPublication.latestForDiscoveryac76819b-d91a-4158-b947-4a9e827e5e9d

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
1-s2.0-S2590005625001535-main.pdf
Size:
2.35 MB
Format:
Adobe Portable Document Format

Collections