Risk-Weighted Evaluation of De-Identification Tools on Synthetic Clinical Trial Narratives
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.
Authors
- Vanshita Moolchandani (ORCID: https://orcid.org/0009-0006-2576-2150)
Publication Details
- Journal
- International journal of data science and machine learning.
- Published
- 2026-11-27
- DOI
- https://doi.org/10.55640/ijdsml-06-02-20
- Primary Topic
- Privacy-Preserving Technologies in Data
- Type
- article
- Field-Weighted Citation Impact
- 0.00