{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,30]],"date-time":"2026-10-30T17:56:58Z","timestamp":1793383018786,"version":"4.5.0"},"reference-count":19,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,5,30]],"date-time":"2025-05-30T00:00:00Z","timestamp":1748563200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Artif. Intell."],"abstract":"<jats:sec><jats:title>Introduction<\/jats:title><jats:p>Electronic health records (EHR) in text format serve as crucial resources for data-driven medical research. To safeguard patient confidentiality, under the General Data Protection Regulation (GDPR), strict measures are required to ensure personal data is anonymized or pseudonymized to protect individual privacy. Natural language processing has consistently proven effective in automating the de-identification of sensitive information.<\/jats:p><\/jats:sec><jats:sec><jats:title>Methods<\/jats:title><jats:p>We present spaCy models to recognize personally identifiable information (PII) from a wide range of free-text medical records written in Hungarian, a low-resource language. To develop this model, we compiled a corpus of clinical documents by annotating sensitive information within electronic health records sourced from the University of Debrecen. To simplify the annotation process, we pre-annotated the documents using a rule-based method. The corpora comprises over 15,000 documents and includes more than 90,000 instances of PII. We trained several models using this corpus and also developed a separate validation corpus to assess their performance.<\/jats:p><\/jats:sec><jats:sec><jats:title>Results<\/jats:title><jats:p>The performance evaluation of the de-identification models on the developed corpora resulted in <jats:italic>F<\/jats:italic><jats:sub>1<\/jats:sub>-scores ranging from 0.9697 to 0.9926. On the validation corpora, the <jats:italic>F<\/jats:italic><jats:sub>1<\/jats:sub>-scores ranged from 0.9772 to 0.9867, demonstrating that the models can effectively handle previously unseen examples. Our risk analysis revealed that 99.67% of the sensitive information was successfully removed from the validation dataset.<\/jats:p><\/jats:sec><jats:sec><jats:title>Discussion<\/jats:title><jats:p>The results indicate that similarly to other state-of-the-art systems our model is highly effective at identifying PII in clinical texts, guaranteeing that sensitive information in clinical documents can be protected without sacrificing the quality or usability of the data for research purposes. Despite these positive outcomes, several areas remain to be improved, such as the conduction of additional testing on diverse datasets, particularly those from different healthcare institutions. With ongoing refinements, these models have the potential to greatly enhance the efficiency of data de-identification processes, ensuring compliance with privacy regulations while promoting the secure sharing of medical data for scientific progress.<\/jats:p><\/jats:sec>","DOI":"10.3389\/frai.2025.1585260","type":"journal-article","created":{"date-parts":[[2025,5,30]],"date-time":"2025-05-30T15:38:06Z","timestamp":1748619486000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":7,"title":["NLP-based removal of personally identifiable information from Hungarian electronic health records"],"prefix":"10.3389","volume":"8","author":[{"given":"Andr\u00e1s","family":"Berzi","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ervin","family":"Ber\u00e9nyi","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Zita","family":"K\u00e9pes","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Barnab\u00e1s","family":"Antal","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"\u00c1brah\u00e1m Gergely","family":"Varga","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mikl\u00f3s","family":"Emri","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2025,5,30]]},"reference":[{"key":"ref1","first-page":"2","article-title":"BERT: pre-training of deep bidirectional transformers for language understanding","author":"Devlin","year":"2019"},{"key":"ref2","doi-asserted-by":"publisher","first-page":"341","DOI":"10.1109\/CIC.2004.1442942","article-title":"Computer-assisted de-identification of free text in the MIMIC II database","volume":"31","author":"Douglass","year":"2004","journal-title":"Comput. Cardiol."},{"key":"ref3","year":""},{"key":"ref4","first-page":"56","article-title":"Influence of pre-annotation on POS-tagged corpus development","author":"Fort","year":"2010"},{"key":"ref5","doi-asserted-by":"publisher","first-page":"106649","DOI":"10.1016\/j.compbiomed.2023.106649","article-title":"Natural language processing in electronic health records in relation to healthcare decision-making: a systematic review","volume":"155","author":"Hossain","year":"2023","journal-title":"Comput. Biol. Med."},{"key":"ref6","doi-asserted-by":"crossref","first-page":"155","DOI":"10.1007\/978-3-031-28819-7_20","article-title":"Language report Hungarian","volume-title":"European language equality: a strategic agenda for digital language equality","author":"Jelencsik-M\u00e1tyus","year":"2023"},{"key":"ref7","doi-asserted-by":"publisher","first-page":"559","DOI":"10.1080\/14786440109462720","article-title":"LIII. On lines and planes of closest fit to systems of points in space","volume":"2","author":"Karl Pearson","year":"1901","journal-title":"Lond. Edinb. Dubl. Phil. Mag. J. Sci."},{"key":"ref8","doi-asserted-by":"publisher","first-page":"102845","DOI":"10.1016\/j.artmed.2024.102845","article-title":"De-identification of clinical free text using natural language processing: a systematic review of current approaches","volume":"151","author":"Kova\u010devi\u0107","year":"2024","journal-title":"Artif. Intell. Med."},{"key":"ref9","year":""},{"key":"ref10","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/N16-1030","article-title":"Neural architectures for named entity recognition","author":"Lample","year":"2016"},{"key":"ref11","year":""},{"key":"ref12","article-title":"Natural language processing methods for language modeling","volume-title":"PhD Thesis","author":"Nemeskey","year":"2020"},{"key":"ref13","first-page":"3","article-title":"Introducing huBERT","author":"Nemeskey","year":"2021"},{"key":"ref14","article-title":"Natural Language Processing: NLTK vs. spaCy","author":"Olabiyi","year":"2024"},{"key":"ref15","article-title":"HuSpaCy: an industrial-strength Hungarian natural language processing toolkit","author":"Orosz","year":"2022"},{"key":"ref16","first-page":"1015","article-title":"Beyond accuracy, F-score and ROC: a family of discriminant measures for performance evaluation","author":"Sokolova","year":"2006"},{"key":"ref17","year":""},{"key":"ref18","year":""},{"key":"ref19","doi-asserted-by":"publisher","first-page":"251","DOI":"10.1080\/08839514.2020.1718343","article-title":"A review of automatic end-to-end de-identification: is high accuracy the only metric?","volume":"34","author":"Yogarajan","year":"2020","journal-title":"Appl. Artif. Intell."}],"container-title":["Frontiers in Artificial Intelligence"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1585260\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,5,30]],"date-time":"2025-05-30T15:38:07Z","timestamp":1748619487000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1585260\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,5,30]]},"references-count":19,"alternative-id":["10.3389\/frai.2025.1585260"],"URL":"https:\/\/doi.org\/10.3389\/frai.2025.1585260","relation":{},"ISSN":["2624-8212"],"issn-type":[{"value":"2624-8212","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,5,30]]},"article-number":"1585260"}}