RT Journal Article T1 Named entity recognition for de-identifying Spanish electronic health records A1 Moreno-Barea, Francisco J. A1 López-García, Guillermo A1 Mesa, Héctor A1 Ribelles, Nuria A1 Alba-Conejo, Emilio A1 Jerez-Aragonés, José Manuel A1 Veredas-Navarro, Francisco Javier K1 Registros médicos - Proceso de datos - Español AB Background and objectives: There is an increasing and renewed interest in Electronic Health Records (EHRs) as a substantial information source for clinical decision making. Consequently, automatic de-identification of EHRs is an indispensable task, since their dissociation from personal data is a necessary prerequisite for their dissemination. Nevertheless, the bulk of prior research in this domain has been conducted using English EHRs, given the limited availability of annotated corpora in other languages, including Spanish. Methods: In this study, the automatic de-identification of medical documents in Spanish was explored. A private corpus comprising 599 genuine clinical cases was annotated with eight different categories of protected health information. The prediction problem was approached as a named entity recognition task and two deep learning-based methodologies were developed. The first strategy was based on recurrent neural networks (RNN) and the second, an end-to-end approach, was based on Transformers. In addition, we have implemented a procedure to expand the amount of texts employed for model training. Results: Our findings demonstrate that Transformers surpass RNNs in the de-identification of clinical data in Spanish. Particularly noteworthy is the excellent performance of the XLM-RoBERTa large Transformer, achieving a rigorous strict-match micro-average of 0.946 for precision, 0.954 for recall, and an F1 score of 0.95 when applied to the amplified version of the corpus. Furthermore, a web-based application has been created to assist specialized clinicians in de-identifying EHRs through the aid of the implemented models. Conclusion: The study’s conclusions showcase the practical applicability of the state-of-the-art Transformers models for precise de-identification of clinical notes in real-world medical settings in Spanish, with the potential to improve performance if continual pre-training strategies are implemented. PB Elsevier YR 2025 FD 2025-02 LK https://hdl.handle.net/10630/35969 UL https://hdl.handle.net/10630/35969 LA eng NO Francisco J. Moreno-Barea, Guillermo López-García, Héctor Mesa, Nuria Ribelles, Emilio Alba, José M. Jerez, Francisco J. Veredas, Named entity recognition for de-identifying Spanish electronic health records, Computers in Biology and Medicine, Volume 185, 2025, 109576, ISSN 0010-4825, https://doi.org/10.1016/j.compbiomed.2024.109576. NO Funding for open access charge: Universidad de Málaga / CBUA.The authors acknowledge the support from the Ministerio de Ciencia e Innovación (MICINN) under project PID2020-116898RB-I00, from the Universidad de Málaga and Junta de Andalucía through grant UMA20-FEDERJA-045, from Pfizer S.L., the University of Malaga and the Fundación General UMA (UMA-FGUMA-Pfizer) through private funds. DS RIUMA. Repositorio Institucional de la Universidad de Málaga RD 3 mar 2026