Visual abstractsVisuals
ResearchJournal of Medical Internet Research · Sep 14, 2026

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

Rahmeh S, Dias FM, Moreno RA, Rebelo MFS, Herrmann D, Krieger JE, et al
Digital Health & AIAdult
Read the full paper free at PubMed Central ↗

Abstract

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 F1-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-F1-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-F1-score by 0.128 (95% CI 0.091-0.163; empirical 2-sided bootstrap PConclusions Quantum-enhanced hybrid architectures provide substantial improvements in medical text anonymization accuracy compared to stand-alone LLMs, particularly reductions in false-positive rates while preserving high sensitivity. The Dynex-QML-70B model achieved the best balance between performance and efficiency, suggesting that quantum-enhanced optimization offers a strategy for high-fidelity, scalable, and regulation-compliant deidentification of clinical text. These findings highlight the potential of emerging quantum-AI paradigms to advance the secondary secure use of health care data.

Topics

Large Language Models; Electronic Health Records; Portugal; Data Anonymization; Humans; Machine Learning; Quantum Theory

DOI: 10.2196/91513 · PubMed: 42735382

Spotted a mistake? Suggest a correction

More in Digital Health & AI

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

ClinicalAge biomarker associated with mortality and disease risk in UK datasets

ClinicalAge, a framework for modelling ageing trajectories from longitudinal electronic health records in the UK: a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

Facial photographs used to estimate age and predict survival in cancer patients

Foundation artificial intelligence models for health recognition by use of face photographs (FAHR-Face): a model development and validation study

ResearchLancet Digit Health · Nov 23, 2026 · Digital Health & AI

New model predicts severe fetal compromise risk at birth with 33.4% sensitivity

A prognostic model for use at labour onset to estimate the risk of severe fetal compromise at birth: a retrospective, model development and validation study

ResearchNPJ Digit Med · Nov 21, 2026 · Digital Health & AI

ECG foundation models performed well on general data but less so on athletes' data

ECG foundation models for cardiovascular screening in a cohort of young competitive athletes

ResearchJ Med Internet Res · Nov 20, 2026 · Digital Health & AI

Six large language models showed similar question-answering accuracy on medical exam questions

Medical Reasoning in Large Language Models: Development and Evaluation of the MedEvalArena Benchmark