EUVIMEDOpdag EUVIMED
VergleichsstudieEvaluationsstudieOpen access

Anonymization of Portuguese Clinical Notes Using Large Language Models and Quantum-Enhanced Hybrid Architectures: Comparative Evaluation Study

Samer Rahmeh, Felipe Meneguitti Dias, Ramon Alfredo Moreno, Marina De Fatima De Sa Rebelo, Daniela Herrmann, Jose Eduardo Krieger, Marco Antonio Gutierrez

Journal of Medical Internet Research · 2026-09-14 · 28 · e91513-e91513

DOI: 10.2196/91513 ↗

At a glance

Vergleichsstudie in Journal of Medical Internet Research, published online on 2026-09-14. Written by Samer Rahmeh and 6 co-authors. Institution: Quantum Solutions Architecture Dept, Q.Enterprises AG (Dynex), Baar, Zug, Switzerland. Major MEDLINE topics: Large Language Models, Electronic Health Records, Data Anonymization. 49 references. The full text is freely available in PubMed Central.

AbstractSubjectsBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Background

The widespread adoption of electronic health records (EHRs) has generated large-scale repositories of highly sensitive clinical information, emphasizing the need for robust anonymization strategies to enable secondary use for research while safeguarding patient privacy. Conventional rule-based and machine learning approaches for deidentifying medical text face limitations with the linguistic complexity, variability, and context dependence inherent to clinical documentation. Recent advances in large language models (LLMs), combined with emerging quantum computing paradigms, present novel opportunities to enhance the accuracy, scalability, and resilience of health care data anonymization.

Objective

This study aims to evaluate the efficacy of LLM-based and quantum-enhanced hybrid architectures for medical text anonymization, assessing the effectiveness and computational efficiency across multiple entity types in Portuguese clinical notes.

Methods

We constructed a gold-standard corpus of 1000 Portuguese outpatient clinical notes, manually annotated by 5 trained researchers for 5 protected-entity categories: patient names, dates, identifiers, organizations, and geographic locations. Four anonymization strategies were evaluated: 2 stand-alone LLMs (Llama-3.1-8B-instruct and Llama-3.3-70B-instruct) and 2 quantum-enhanced hybrid models (Dynex-QML with 8B and 70B base models) incorporating quantum optimization via Quadratic Unconstrained Binary Optimization (QUBO) formulations. The quantum-enhanced approach transforms the final attention layer of the LLM into a global constraint satisfaction problem solved via neuromorphic quantum annealing. Model performance was measured on a held-out test set of 500 notes using precision, recall, and F 1 -score metrics. Computational efficiency was quantified through end-to-end processing time.

Results

The quantum-enhanced Dynex-QML-70B model achieved the highest overall performance with a macro –F 1 -score of 0.855 (95% CI 0.823‐0.880), outperforming the stand-alone Llama-3.3-70B (0.726, 95% CI 0.704‐0.747), Dynex-QML-8B (0.733, 95% CI 0.709‐0.756), and Llama-3.1-8B (0.602, 95% CI 0.588‐0.615). Compared with Llama 3.3 70B, Dynex-QML (Llama 70B) improved macro –F 1 -score by 0.128 (95% CI 0.091‐0.163; empirical 2-sided bootstrap P

Subjects

MeSH terms (MEDLINE)

Large Language ModelsElectronic Health RecordsData AnonymizationPortugalHumansMachine LearningQuantum Theory

Author keywords

GDPR complianceHIPAA complianceLGPD complianceLLMsNLPQMLdata privacyelectronic health recordlarge language modelsmedical text anonymizationnatural language processingquantum machine learning

Authors and institutions

  • Quantum Solutions Architecture Dept, Q.Enterprises AG (Dynex), Baar, Zug, Switzerland.
  • Instituto do Coração, Hospital das Clínicas HCFMUSP, Faculdade de Medicina, Universidade de São Paulo, Av. Dr. Enéas de Carvalho Aguiar, 44, Sao Paulo, São Paulo, 05403-000, Brazil, +551126615441.

Cite

APA

Rahmeh, S., Dias, F. M., Moreno, R. A., Rebelo, M. F. S., Herrmann, D., Krieger, J. E., & Gutierrez, M. A. (2026). Anonymization of Portuguese Clinical Notes Using Large Language Models and Quantum-Enhanced Hybrid Architectures: Comparative Evaluation Study. Journal of Medical Internet Research, 28, e91513-e91513. https://doi.org/10.2196/91513

Vancouver

Rahmeh S, Dias FM, Moreno RA, Rebelo MFS, Herrmann D, Krieger JE, et al. Anonymization of Portuguese Clinical Notes Using Large Language Models and Quantum-Enhanced Hybrid Architectures: Comparative Evaluation Study. Journal of Medical Internet Research. 2026;28:e91513-e91513. doi:10.2196/91513

BibTeX
@article{Rahmeh2026,
  author = {Rahmeh, Samer and Dias, Felipe Meneguitti and Moreno, Ramon Alfredo and Rebelo, Marina De Fatima De Sa and Herrmann, Daniela and Krieger, Jose Eduardo and Gutierrez, Marco Antonio},
  title = {Anonymization of Portuguese Clinical Notes Using Large Language Models and Quantum-Enhanced Hybrid Architectures: Comparative Evaluation Study},
  journal = {Journal of Medical Internet Research},
  year = {2026},
  volume = {28},
  pages = {e91513--e91513},
  doi = {10.2196/91513}
}
Start for free →