De-identifying Spanish medical texts - named entity recognition applied to radiology reports

J Biomed Semantics. 2021 Mar 29;12(1):6. doi: 10.1186/s13326-021-00236-2.

Abstract

Background: Medical texts such as radiology reports or electronic health records are a powerful source of data for researchers. Anonymization methods must be developed to de-identify documents containing personal information from both patients and medical staff. Although currently there are several anonymization strategies for the English language, they are also language-dependent. Here, we introduce a named entity recognition strategy for Spanish medical texts, translatable to other languages.

Results: We tested 4 neural networks on our radiology reports dataset, achieving a recall of 97.18% of the identifying entities. Alongside, we developed a randomization algorithm to substitute the detected entities with new ones from the same category, making it virtually impossible to differentiate real data from synthetic data. The three best architectures were tested with the MEDDOCAN challenge dataset of electronic health records as an external test, achieving a recall of 69.18%.

Conclusions: The strategy proposed, combining named entity recognition tasks with randomization of entities, is suitable for Spanish radiology reports. It does not require a big training corpus, thus it could be easily extended to other languages and medical texts, such as electronic health records.

Keywords: Medical texts; Named entity recognition; Natural language processing; Radiology reports; Spanish.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Electronic Health Records
  • Humans
  • Language*
  • Natural Language Processing
  • Neural Networks, Computer
  • Radiology*