Articles | Open Access | https://doi.org/10.55640/ijdsml-06-02-20

Risk-Weighted Evaluation of De-Identification Tools on Synthetic Clinical Trial Narratives

Vanshita Moolchandani , Independent Researcher, Boston, MA, USA

Abstract

De-identification software used to process clinical trial narratives prior to sharing them with regulators and the public is typically evaluated using F1, which treats all missed items equally. However, a missed rare diagnosis poses a greater threat to an individual's privacy than a missed common symptom. Therefore, we investigated whether four de-identification software packages would rank differently when evaluated using flat F1 versus a risk-weighted F1. This is an evaluation of the scoring technique on artificial text, and not an assessment of whether the weights correlate with actual re-identification risk. We generated 150 simulated narratives for three trials (oncology, rare disease, and psychiatry) from a fictional population of 10,000 individuals. Each item in the answer key has a risk tier and a weight (S3) based on how many people share that single value. S3 is a rarity proxy built from the frequency of individual attributes, and it does not estimate the re-identification risk of a whole narrative. Flat F1 here combines character-level precision with item-level recall, so it differs from the usual span-level F1. We evaluated Presidio, a disease and chemical named-entity recognition (NER) baseline (scispaCy NER), the RoBERTa de-identification model obi/deid_roberta_i2b2, and the language model qwen3:8b on 135 test narratives using strict matching and tested the rank changes with a bootstrap and the Holm correction. The language model performed best under both flat F1 (0.645) and risk-weighted F1 (0.813). The only rank swap we observed was between Presidio and the RoBERTa model. It was not a statistically confirmed reversal, because the bootstrap intervals for both differences include zero (Holm-adjusted p = 0.709 for flat F1 and 0.208 for risk-weighted F1). H1 was not supported. Although no reversal was confirmed, the weights did provide additional insight. The weights increased the performance of the language model relative to the other three tools, and they demonstrated that none of the tools identified more than 8.8% of occupations, unusual procedures, relatives' conditions, or gene variants. This study provides a methodology for weighting errors based on risk and a synthetic data set with an answer key for evaluating de-identification tools.

Keywords

clinical trial narratives, de-identification, re-identification risk

References

European Medicines Agency, “External guidance on the implementation of the European Medicines Agency policy on the publication of clinical data for medicinal products for human use,” EMA/90915/2016, 2016.

Health Canada, “Guidance document on public release of clinical information,” Ottawa, ON, Canada, 2019.

Ö. Uzuner, Y. Luo, and P. Szolovits, “Evaluating the state-of-the-art in automatic de-identification,” J. Am. Med. Inform. Assoc., vol. 14, no. 5, pp. 550–563, 2007.

A. Stubbs, C. Kotfila, and Ö. Uzuner, “Automated systems for the de-identification of longitudinal clinical narratives: Overview of 2014 i2b2/UTHealth shared task Track 1,” J. Biomed. Inform., vol. 58, pp. S11–S19, 2015.

M. Sariyar, “Clinical text de-identification beyond PHI detection: A scoping review,” J, vol. 9, no. 3, Art. no. 22, 2026, doi: 10.3390/j9030022.

K. Aghakasiri et al., “Not what the doctor ordered: Surveying LLM-based de-identification and quantifying clinical information loss,” in Proc. 2025 Conf. Empirical Methods in Natural Language Processing (EMNLP), 2025, pp. 32187–32203.

G. Loukides, J. C. Denny, and B. Malin, “The disclosure of diagnosis codes can breach research participants’ privacy,” J. Am. Med. Inform. Assoc., vol. 17, no. 3, pp. 322–327, 2010.

J. Branson, N. Good, J.-W. Chen, W. Monge, C. Probst, and K. El Emam, “Evaluating the re-identification risk of a clinical study report anonymized under EMA Policy 0070 and Health Canada Regulations,” Trials, vol. 21, no. 1, Art. no. 200, Feb. 2020, doi: 10.1186/s13063-020-4120-y.

M. Scaiano, G. Middleton, L. Arbuckle, V. Kolhatkar, L. Peyton, M. Dowling, D. S. Gipson, and K. El Emam, “A unified framework for evaluating the risk of re-identification of text de-identification tools,” J. Biomed. Inform., vol. 63, pp. 174–183, 2016, doi: 10.1016/j.jbi.2016.07.015.

N. Graff, G. Nenadic, M. Elliot, and A. M. Hughes, “Beyond standard metrics: Assessing NLP for anonymisation of clinical trial narratives,” presented at the UNECE Expert Meeting on Statistical Data Confidentiality, Oct. 2025.

N. M. Graff, “Data privacy and anonymisation in clinical trial data sharing,” Ph.D. dissertation, Univ. of Manchester, Manchester, U.K., 2025.

S. M. Meystre, F. J. Friedlin, B. R. South, S. Shen, and M. H. Samore, “Automatic de-identification of textual documents in the electronic health record: A review of recent research,” BMC Med. Res. Methodol., vol. 10, Art. no. 70, 2010.

O. Ferrández, B. R. South, S. Shen, F. J. Friedlin, M. H. Samore, and S. M. Meystre, “Evaluating current automatic de-identification methods with Veteran’s health administration clinical documents,” BMC Med. Res. Methodol., vol. 12, Art. no. 109, 2012.

I. Pilán, P. Lison, L. Øvrelid, A. Papadopoulou, D. Sánchez, and M. Batet, “The Text Anonymization Benchmark (TAB): A dedicated corpus and evaluation framework for text anonymization,” Comput. Linguist., vol. 48, no. 4, pp. 1053–1101, 2022, doi: 10.1162/coli_a_00458.

J. X. Morris et al., “DIRI: Adversarial patient reidentification with large language models for evaluating clinical text anonymization,” AMIA Jt. Summits Transl. Sci. Proc., vol. 2025, pp. 355–364, 2025.

N. Krčo, Z. Yao, M. Meeus, and Y.-A. de Montjoye, “RAT-Bench: A comprehensive benchmark for text anonymization,” arXiv:2602.12806, 2026.

B. Manzanares-Salor, D. Sánchez, and P. Lison, “Evaluating the disclosure risk of anonymized documents via a machine learning-based re-identification attack,” Data Min. Knowl. Discov., vol. 38, pp. 2559–2594, 2024.

D. Pissarra, I. Curioso, J. Alveira, D. Pereira, B. Ribeiro, T. Souper, V. Gomes, A. V. Carreiro, and V. Rolla, “Unlocking the potential of large language models for clinical text anonymization: A comparative study,” arXiv:2406.00062, 2024.

Orphanet, “Orphadata: Epidemiological data on rare diseases,” June 2026 release. [Online]. Available: https://www.orphadata.com

International Council for Harmonisation, “Structure and content of clinical study reports E3,” ICH Harmonised Tripartite Guideline, 1995.

National Cancer Institute, “Common Terminology Criteria for Adverse Events (CTCAE), version 5.0,” U.S. Dept. of Health and Human Services, Nov. 2017.

American Psychiatric Association, Diagnostic and Statistical Manual of Mental Disorders, 5th ed. Arlington, VA, USA: American Psychiatric Publishing, 2013.

Microsoft, “Presidio: Data protection and de-identification SDK.” [Online]. Available: https://github.com/microsoft/presidio

M. Neumann, D. King, I. Beltagy, and W. Ammar, “ScispaCy: Fast and robust models for biomedical natural language processing,” in Proc. 18th BioNLP Workshop and Shared Task, Florence, Italy, 2019, pp. 319–327.

J. Li et al., “BioCreative V CDR task corpus: A resource for chemical disease relation extraction,” Database, vol. 2016, Art. no. baw068, 2016.

obi, “deid_roberta_i2b2,” Hugging Face model card. [Online]. Available: https://huggingface.co/obi/deid_roberta_i2b2

B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York, NY, USA: Chapman & Hall, 1993.

S. Holm, “A simple sequentially rejective multiple test procedure,” Scand. J. Stat., vol. 6, no. 2, pp. 65–70, 1979.

J. Cohen, “A coefficient of agreement for nominal scales,” Educ. Psychol. Meas., vol. 20, no. 1, pp. 37–46, 1960.

Article Statistics

Downloads

Download data is not yet available.

Copyright License

Download Citations

How to Cite

Vanshita Moolchandani. (2026). Risk-Weighted Evaluation of De-Identification Tools on Synthetic Clinical Trial Narratives. International Journal of Data Science and Machine Learning, 6(02), 313-334. https://doi.org/10.55640/ijdsml-06-02-20