---
title: "Evaluating GPT models for clinical note de-identification (2025)"
description: "A close look at GPT-based clinical note de-identification, its privacy and data utility results, and the limits of the evidence."
canonical: "https://research.elamur.ai/free/en/papers/altalla-2025-evaluating-gpt-models-clinical-note/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/altalla-2025-evaluating-gpt-models-clinical-note/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Evaluating GPT models for clinical note de-identification

# Evaluating GPT models for clinical note de-identification

Paper · 2025 · Bayan Altalla’, Sameera Abdalla, Ahmad Mousa Altamimi et al.

**Authors:** [Bayan Altalla’](https://md.research.elamur.ai/free/en/authors/bayan-altalla/), [Sameera Abdalla](https://md.research.elamur.ai/free/en/authors/sameera-abdalla/), [Ahmad Mousa Altamimi](https://md.research.elamur.ai/free/en/authors/ahmad-mousa-altamimi/), [Layla Bitar](https://md.research.elamur.ai/free/en/authors/layla-bitar/), [Amal Al‐Omari](https://md.research.elamur.ai/free/en/authors/amal-al-omari/), [Ramiz Kardan](https://md.research.elamur.ai/free/en/authors/ramiz-kardan/) and [Iyad Yasin Sultan](https://md.research.elamur.ai/free/en/authors/iyad-yasin-sultan/) · **Year:** 2025 · **Venue:** Scientific Reports · **Licence:** [CC BY-NC-ND (OpenAlex best open-access location)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

Scientific Reports · [licence](https://creativecommons.org/licenses/by-nc-nd/4.0/)

- [PDF](https://www.nature.com/articles/s41598-025-86890-3.pdf)
- [DOI 10.1038/s41598-025-86890-3](https://doi.org/10.1038/s41598-025-86890-3)

## What it is about

A close look at GPT-based clinical note de-identification, its privacy and data utility results, and the limits of the evidence. · about 33 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Clinical notes are useful for research because they preserve the detail of patient care. The same detail creates a privacy problem: names, contact information, dates, record numbers, and other identifiers can appear within otherwise valuable medical descriptions. Bayan Altalla’ and colleagues examine whether GPT-3.5 and GPT-4 can remove this identifying material while leaving the clinical content useful. Their study uses discharge summaries from King Hussein Cancer Center, instead of relying exclusively on an established public benchmark. Its central question is practical: how much can an existing text-processing system accomplish through carefully specified instructions, without additional training for the hospital’s documents?

The experiment evaluates 100 discharge summaries obtained from the center’s electronic records. Domain experts marked protected health information, or PHI, and checked those annotations through 2 verification rounds. The authors then submitted notes through an application programming interface, using a zero-shot setup: the instructions described the task, but supplied no worked examples during execution. Those instructions incorporated the HIPAA identifier categories and required the system to preserve information relevant to research. They also specified particular transformations, including retaining the year when removing more precise date information. Outputs were compared with the expert annotations using precision, recall, F1, and accuracy.

GPT-4 performed better than GPT-3.5 on every reported measure. For GPT-4, the main results give precision of 0.9925, recall of 0.8318, F1 of 0.8973, and accuracy of 0.9911. GPT-3.5 obtained precision of 0.3448, recall of 0.6690, F1 of 0.3905, and accuracy of 0.7867. The distinction between precision and recall is especially important here. GPT-4 rarely marked ordinary material as sensitive according to the reported precision, which supports preserving useful text. Its recall was less complete, however, meaning that some annotated sensitive material escaped the process. High overall accuracy therefore cannot, by itself, establish that a note is safe to release.

The authors present the approach as a way to reduce local training requirements and support the production of research-ready clinical text. They also discuss the outputs as synthetic clinical notes. The evidence is strongest for identifying and altering PHI within existing notes: the reported numerical evaluation concerns de-identification decisions, rather than a separate demonstration that generated records preserve all clinically important relationships. Likewise, the experiment does not establish general performance across hospitals, languages, or document types. The useful conclusion is narrower and still substantial: explicit instructions enabled strong de-identification performance on this hospital sample, with GPT-4 showing a much better balance of unwanted alteration and sensitive-information detection than GPT-3.5. The remaining misses, limited reporting of experimental settings, and absence of a direct clinical-utility test define the next questions.

### Ideas worth borrowing

Specify the transformation contract. A request to make text safe is underspecified unless it says what must disappear and what must survive. The paper makes the privacy categories explicit and includes preservation requirements for research-relevant content. This pattern applies to document conversion, controlled rewriting, and [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/): define both the target changes and the information that should remain stable. A system can then be assessed against a concrete obligation instead of an impression of successful rewriting.

Separate omission from overreach. Missed sensitive information and unnecessary removal are different failures with different consequences. Recall makes omissions visible; precision exposes overreach. Keeping them separate is useful whenever a processing system must intervene selectively, including moderation, document filtering, and entity annotation. A combined score can summarize behavior, but it should not hide whether the system is too permissive, too aggressive, or inconsistent in both directions.

Build reference annotations before judging outputs. The study uses expert PHI markings as the comparison target and describes repeated verification. This prevents evaluation from depending completely on whether an output looks plausible. The general lesson concerns [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) and benchmark construction: an independently prepared reference gives errors a stable meaning. Review is particularly valuable when the boundary between a protected identifier and an ordinary expression depends on document context.

Test on the documents that matter. The hospital discharge summaries expose the approach to an operational document collection rather than only to a familiar public dataset. Such testing can reveal formatting and contextual demands that a convenient benchmark misses. The idea transfers to specialized dictionaries, industrial text processing, and administrative document analysis. Its value depends on keeping the scope explicit: evidence from a relevant local collection improves local understanding without automatically establishing generality.

Preserve useful granularity. The date-handling instruction illustrates selective transformation: remove identifying detail while keeping a coarser temporal reference. More generally, safe processing need not mean deleting every structured value. A task can specify which level of detail remains useful and permissible. This is relevant to record abstraction and controlled publication, provided that the chosen granularity is independently justified rather than assumed safe because it sounds less precise.

Distinguish task performance from deployment assurance. Strong extraction scores address an important part of a privacy workflow, but they do not directly measure every concern surrounding release, clinical usefulness, operating cost, or fairness. The paper’s results and its broader aspirations are therefore best read separately. This distinction helps researchers design evaluations in layers: first establish what the component does, then test whether the surrounding process satisfies the intended operational requirements.

### How Mova uses it

Mova is a small language system written in Rust, with explicit parsing, frames, world state, compiled knowledge, and bounded execution interfaces. The relevant transfers from this paper concern specification, selective transformation, evidence, and evaluation. They do not require adopting the paper’s external inference approach. The status marks below are proposals grounded in the documented mechanisms; they are not records of a measured application of this paper. Where a mechanism already exists, the connection identifies a reusable design principle. Where clinical de-identification would require additional work, that requirement remains explicit.

Idea: Specify a transformation contract. Where: “Implementation of in-context learning (ICL) and prompt engineering” and “Integration of HIPAA identifiers guidelines in prompts.” Area: data processing. Mova: частково є (groupants describe constraints and checks; the native deputy resolves configured operations). A future document-sanitization capability could declare the input representation, permitted edits, preservation obligations, and failure outcome before execution. The paper illustrates why a broad instruction needs concrete boundaries. Mova already has places to express parts of such a contract, but the digest does not establish a clinical sanitization implementation.

Idea: Measure omission independently from overreach. Where: “Evaluation metrics” and the recall and precision result sections. Area: eval. Mova: частково є (benchmarking and diagnostic reports distinguish kinds of errors in existing language tasks). A selective text processor should retain separate counts for missed targets and unnecessary edits. This would help Mova evaluate a rule that improves protection while damaging useful content, or preserves content while missing required changes. Existing diagnostic practice supports the approach; its effectiveness for privacy processing remains unmeasured.

Idea: Prepare reference annotations before assessing outputs. Where: “Dataset description” and “Results.” Area: annotation. Mova: вже є (the teacher loop, rule-based tree agreement, and separate assessment references). The hospital study’s independently prepared PHI markings reinforce a principle Mova already applies: outputs need an external comparison target. For a new extraction task, reviewed reference labels should remain distinguishable from predictions and proposed corrections. The connection does not imply that Mova’s current references cover clinical identifiers.

Idea: Test on operationally relevant documents. Where: “Dataset description” and “Research contribution.” Area: eval. Mova: частково є (source-bound corpus preparation, configured worker tasks, and native execution reports). Mova could evaluate a document-processing capability on the actual source formats it is expected to handle, while reporting the collection’s boundaries. This would complement general language benchmarks with evidence about a specific deployment. The paper also supplies a caution: a relevant institutional sample supports a local claim, not unrestricted transfer to other settings.

Idea: Preserve useful granularity. Where: “Implementation of in-context learning (ICL) and prompt engineering,” page 5. Area: data representation. Mova: нове. A candidate extension could represent a date together with an explicit permitted precision, so that a transformation removes selected components rather than deleting the whole value. Novelty is provisional because the digest does not inventory every date operation. Why Mova: typed granularity would make a selective edit inspectable and allow preservation checks to operate on structured values.

Idea: Separate component scores from release assurance. Where: “Evaluation metrics,” “Discussion,” and “Conclusion.” Area: eval and operational checks. Mova: вже є (worker outcomes distinguish successful execution from admitted results; staged teaching material remains separate from admitted knowledge). A de-identification score would be evidence about a component, while permission to publish a processed document would require its own checks. Mova’s existing boundaries provide a suitable pattern for keeping these claims apart. This is an architectural connection, not evidence of an installed publication gate for clinical material.

Idea: Compile policy categories into explicit types. Where: “Integration of HIPAA identifiers guidelines in prompts” and Table 1. Area: rules and knowledge representation. Mova: частково є (compiled global seeds, typed concepts, and build-time consistency checks). Rather than leaving every requirement in prose, Mova could encode the relevant identifier categories as typed declarations with documented scope. Rules and validators could then name the category responsible for an edit. The specific clinical category inventory and its legal interpretation would require reviewed domain work; compiled types alone would not establish compliance.

Idea: Keep the actor role separate from the policy. Where: the de-identification instruction described under “Integration of HIPAA identifiers guidelines in prompts.” Area: pragmatics and task execution. Mova: частково є (the native deputy separates configured capability resolution from reader observations). The paper combines a professional role instruction with concrete requirements. In Mova, a role description could help identify the intended task, but the executable obligations should come from the capability contract. This would prevent a fluent role interpretation from being mistaken for a complete operational specification.

Idea: Include related people in the target scope. Where: the instruction following Table 1. Area: semantic roles and reference. Mova: частково є (frames, coreference rules, and worlds represent participants and relations). The paper’s identifier scope extends beyond the patient to connected people. A future privacy reader would therefore need to resolve whose name or contact detail appears, rather than search only for a single subject. Mova’s role and reference machinery offers a starting point, but coverage of those clinical relationships is unknown.

Idea: Use context to distinguish sensitive numbers from useful quantities. Where: page 5, numerical-data instructions. Area: syntax and semantic interpretation. Mova: частково є (dependency trees, frames, and the quantitative world attach values to roles and actions). A rule could consider the relation between a number and its field or surrounding event rather than masking all numerical strings. This matters because a clinical document can contain both identifiers and medically useful quantities. The paper motivates the distinction but supplies no measured Mova rule or sufficiently detailed clinical error analysis to determine the best implementation.

Idea: Treat age rules as conditional transformations. Where: page 5, age-handling instructions. Area: rules. Mova: частково є (typed comparisons, exact arithmetic, and domain routing). The paper specifies special handling for people aged 90 or older. Mova could represent this as a documented condition attached to an age value, with a reason for the resulting edit. Recognizing whether a number actually expresses a person’s age would remain a separate linguistic obligation. Correct arithmetic would not compensate for a mistaken reading.

Idea: Make preservation an explicit check. Where: the prompt-engineering section and “Precision analysis.” Area: data validation. Mova: частково є (groupant invariants and source-bound enrichment validators). A sanitization run could compare protected clinical fields before and after editing and report unexpected changes. Precision provides evidence about unnecessary masking, but an invariant check could inspect preservation more directly. Mova already supports the general notion of declared checks; the exact clinical facts to protect and the reliability of their extraction remain unknown.

Idea: Compare alternatives through the same evaluation path. Where: “Experiment setting” and “Results.” Area: eval. Mova: вже є (paired comparisons, held-out evaluation, and regression gates). The paper’s central experiment compares alternative systems on the same annotated collection. Mova can apply that principle to competing rules, dictionaries, or adapters while keeping source data and scoring fixed. A useful comparison would record which individual decisions changed, so that a stronger aggregate result does not conceal a newly introduced failure class.

Idea: Establish a no-retraining baseline. Where: “Experiment setting.” Area: experimental design. Mova: частково є (the fast reader separates fresh reading from prepared-graph reading, while training and inference have distinct paths). Before adapting a capability, Mova could measure what its existing parser, rules, and dictionary already recover under a fixed task specification. This would show whether additional supervision improves the target behavior. It would also keep the benefit of better instructions separate from the benefit of changed knowledge or parameters.

Idea: Review the reference independently more than once. Where: “Dataset description.” Area: annotation quality. Mova: частково є (multiple parser witnesses, agreement gates, and separate teacher review). Rechecking a reference can expose missed targets and inconsistent boundaries before they become evaluation authority. Mova’s current review machinery already separates several sources of evidence, although parser agreement is not equivalent to expert PHI review. A specialized extraction benchmark would need reviewers qualified for that task and an explicit account of how disagreements were resolved.

Idea: Explain false positives through preservation damage. Where: “Evaluation metrics” and “Precision analysis.” Area: diagnostics. Mova: частково є (rules and worker decisions retain reasons). A future redaction report could identify the rule that removed a useful expression and the downstream fact that was lost. This would connect an error count to its practical consequence. The paper explains why unnecessary masking matters, but does not provide a detailed catalogue of such cases; Mova-specific diagnostic categories would therefore remain hypotheses until reviewed.

Idea: Explain false negatives through missed obligations. Where: “Recall performance” and “Discussion.” Area: diagnostics and rules. Mova: частково є (gaps, rejected operations, and failed checks remain explicit). Rather than treating every surviving identifier as one undifferentiated mistake, Mova could record whether recognition, reference resolution, policy selection, or editing failed. That decomposition would fit its transparent pipeline. The paper’s recall limitation motivates the analysis, but it does not establish which of these mechanisms caused the hospital experiment’s misses.

Idea: Evaluate a hybrid detector as a separate intervention. Where: “Discussion,” proposed recall improvements. Area: rules and eval. Mova: частково є (explicit rules cooperate with learned parameters in the language core). The authors propose combining GPT processing with rules. For Mova, the transferable experiment would test whether a bounded rule catches a documented missed pattern without causing unacceptable extra edits. The rule should be evaluated independently and in combination. The paper proposes this direction; it does not report a completed hybrid experiment.

Idea: Keep synthetic examples separate from source evidence. Where: “Use of synthetic data in healthcare” and “Discussion.” Area: provenance. Mova: вже є (dictionary evidence, teacher proposals, narrative facts, and admitted knowledge have separate boundaries). If transformed or generated clinical examples were ever used for development, Mova should retain their origin and transformation history. A plausible rewritten note would not become evidence that its contents occurred. This aligns with the existing separation between reviewed teaching material and independently grounded knowledge.

Idea: Audit subgroup behavior. Where: “Discussion,” ethical concerns about demographic imbalance. Area: fairness and eval. Mova: частково є (contrast-set evaluation and source-domain strata exist for other tasks). A future extraction benchmark could examine whether errors vary across relevant groups or document conditions, where the data and permissions support such analysis. The paper recommends fairness assessment but does not report subgroup results. Mova’s existing contrast-set practice supplies a methodological starting point, not evidence that clinical fairness has been achieved.

Idea: Test the same contract across institutions. Where: “Discussion,” proposed generalizability studies. Area: eval. Mova: частково є (versioned sources and explicitly bounded measurements). A capability could be evaluated under a fixed contract across separately identified collections, preserving each collection’s provenance and results. This would reveal transfer failures hidden by a pooled score. The digest supports source-specific accounting, but does not show a clinical cross-institution evaluation or establish which document differences would matter most.

Idea: Measure operating efficiency directly. Where: “Research contribution” and “Experiment setting.” Area: performance measurement. Mova: вже є (job logs retain estimates and actual resource use; bounded measurements distinguish their scope). The paper argues that avoiding additional training reduces institutional burden, but does not give a complete operational cost comparison. Mova should evaluate its own analogous claims through measured time, resource consumption, and workload conditions. Existing measurement machinery supports this discipline without proving that any particular privacy-processing design is efficient.

Idea: Keep extraction and rewriting as separately assessable operations. Where: the study framework, the described pipeline, and “Results.” Area: architecture and eval. Mova: частково є (linguistic observations, selected capabilities, and execution outcomes are distinct). Mova could first record candidate sensitive spans and their reasons, then apply an admitted edit plan. This would make recognition errors distinguishable from transformation errors. The paper evaluates the resulting de-identification behavior but leaves important scoring details unspecified, so this separation is a proposed implementation improvement rather than a reported feature of its pipeline.

### The problem and its context

#### Why clinical text creates a difficult privacy boundary

A clinical note is not simply a form containing a few identifying fields. It can describe symptoms, treatment, family circumstances, admission history, and future care in connected prose. The paper’s motivation is that these records are valuable precisely because they preserve such detail. Researchers can use them to study care and outcomes, while healthcare staff depend on them to understand what happened to a patient. Removing identifying material must therefore preserve enough of the surrounding account for the document to remain interpretable.

This creates competing demands within the same text. A name or record number can reveal identity, while a medical observation beside it may be essential. A date can carry both identifying detail and temporal information needed for analysis. A replacement process that changes too little may leave private information exposed. A process that changes too much may produce text that is technically less identifying but scientifically less useful. The authors organize their evaluation around this tension between protection and preservation.

The regulatory reference is HIPAA. The paper uses its identifier categories to define the information targeted for removal and discusses the Safe Harbor approach within the instructions. This gives the task a more concrete basis than a general request to anonymize a document. Even so, a list of target categories and a measured detector address different questions: the list specifies an obligation, while the experiment measures how frequently the implementation appears to satisfy it on the annotated sample.

The broader technical setting is [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/), which the authors describe as a way to obtain structured information from medical text. De-identification is closely related to [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), because the system must recognize particular expressions in context. The present experiment evaluates the consequences of recognizing and altering sensitive material, however, instead of reporting a standalone entity-labeling benchmark with detailed category-level results.

#### Earlier approaches described by the authors

The paper first discusses masking and pseudonymization. Masking substitutes material intended to look plausible, while pseudonymization replaces identifiers with artificial references. These approaches can preserve some structure, but the authors emphasize different risks. Extensive alteration can damage useful content. A pseudonymization scheme can also depend on a separately maintained connection to original identities, creating a further confidentiality concern if that connection is exposed.

The related-work discussion then moves to automatic text processing. The authors describe NLNDE as a system evaluated on Spanish medical documents through MEDDOCAN. Its relevance is that de-identification must accommodate language and documentation conventions rather than assume a universal surface format. They also discuss Lee and colleagues’ combination of rules and machine learning for psychiatric notes, reporting accuracy of 90.74%. Their account presents hybridization as useful but potentially demanding to maintain when rules and learned components must remain compatible.

Another cited approach compares conditional random fields with long short-term memory networks on psychiatric records associated with the N-GRID shared tasks. As the paper explains it, the former relies on manually designed features, whereas the latter learns character-based representations before assigning tags. The reported LSTM F1 is 0.8986. This supplies historical context for the level of de-identification performance previously attainable, although it is not a result obtained on the hospital collection used by Altalla’ and colleagues.

The authors also describe Meaney and colleagues’ transformer comparison on the i2b2/UTHealth corpus. That study, as reported here, found strong results for ROBERTA-large, including accuracy over 99% and a precision/recall rate of 96.7% on its test subset. Altalla’ and colleagues use this work to motivate concern about training resources, tuning demands, and variation across PHI categories. Those concerns help explain their interest in using an already trained system through instructions.

#### What the present study changes

The proposed change is primarily in adaptation. Rather than preparing a task-specific training procedure, the authors give natural-language instructions to an existing [large language model](https://md.research.elamur.ai/free/en/concepts/large-language-models/). The instructions define the desired behavior at execution time. This is presented as an application of in-context learning, but the implemented setting is zero-shot: it does not contain demonstration examples. The study therefore tests instruction-guided transfer instead of learning from a small set of annotated examples inside each request.

The paper cites [A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT](https://md.research.elamur.ai/free/en/papers/white-2023-prompt-pattern-catalog-enhance-prompt/) when discussing reusable prompt structures. It also cites [Why Can GPT Learn In-Context?](https://md.research.elamur.ai/free/en/papers/dai-2023-why-can-gpt-learn-context/) in its account of instruction-based adaptation. These references supply background motivation. The clinical study does not test the underlying explanation of in-context learning or systematically compare the prompt catalogue’s patterns.

Similarly, [AugGPT: Leveraging ChatGPT for Text Data Augmentation](https://md.research.elamur.ai/free/en/papers/dai-2023-auggpt-leveraging-chatgpt-text-data/) appears in the discussion of adapting to tasks with limited labeled material. The present study’s distinctive evidence comes instead from its hospital sample and its comparison between GPT-3.5 and GPT-4. The authors’ argument is that an accessible interface and carefully described policy may offer a practical route to clinical de-identification. The experiment evaluates that route locally; it does not settle whether it is preferable to every trained or rule-based alternative.

### The method, step by step

#### From hospital records to an evaluation reference

The study begins with discharge summaries from the VISTA-based electronic record system at King Hussein Cancer Center. Discharge summaries were selected because they bring together the course of a hospital stay, treatment information, outcomes, and follow-up arrangements. Their mixture of clinical narrative and identifying detail makes them a relevant test case. The collection contains 100 documents, and the paper identifies the institution as the source of the real patient records.

The work received institutional ethics approval, and the retrospective design was granted a consent waiver. This authorization concerns access to and use of the records for the study. It is distinct from the performance question of whether automatic editing succeeds. A reader should keep those layers apart: approved research use establishes the study’s stated governance setting, while the annotation comparison supplies evidence about the processing method.

Domain experts manually identified PHI in the documents. Their annotations were checked in 2 rounds. These reviewed markings became the reference against which automatic outputs were judged. The paper does not give a detailed annotation handbook, inter-reviewer agreement measurement, or breakdown of how disagreements were resolved. Nevertheless, its basic evaluation structure is clear: the desired sensitive-information decisions were prepared by people rather than inferred from the automatic outputs afterward.

Clinical note de-identification and evaluation The steps in order.

#### Zero-shot instruction instead of task-specific training

The authors accessed GPT-3.5 and GPT-4 through an application programming interface. An API lets software submit a request and receive an output without running the underlying system locally. In this experiment, the adaptation mechanism was the request itself. The authors did not report updating parameters on the hospital notes or conducting task-specific [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

The paper distinguishes this approach from conventional training, where examples drive parameter changes through optimization. Its zero-shot condition instead gives the system a task description and relies on capabilities acquired earlier. This is also different from [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/), where the request would include worked demonstrations. The absence of demonstrations matters because the reported performance cannot be attributed to a collection of example notes supplied during the task.

This design reduces the need to develop a local training pipeline for the experiment. It does not make the entire workflow free of data preparation: the expert reference annotations are still necessary for evaluation. Nor does it show that the service requires little computation in an absolute sense. The operational change is that the institution uses a pre-existing service instead of conducting the additional training described in the comparison with earlier approaches.

#### What the instructions require

The prompt asks for selective editing. Its objective is to remove identifying information while keeping material useful for research. The authors describe a professional de-identification role, but the operative content is the set of requirements attached to that role. These requirements tell the system which categories to recognize, whose identifiers fall within scope, and how some difficult fields should be handled.

The privacy specification incorporates all 18 HIPAA identifier categories listed in the paper. These cover familiar textual targets such as personal names and contact details, but also less obvious identifiers involving accounts, devices, network information, and distinctive codes. The scope includes information about connected people, not only expressions directly naming the patient. Accordingly, successful processing requires contextual interpretation as well as recognition of stereotyped strings.

The inclusion of image-related and biometric categories in the policy inventory should not be confused with an image-processing experiment. The evaluated material consists of discharge summaries. The paper does not report a separate visual test or show that the workflow detects identifying content inside photographs. The category list defines the intended policy breadth, whereas the documents determine what the experiment can actually observe.

Date handling receives a specific instruction. Rather than deleting the entire date, the system should remove the day and month while preserving the year. The authors illustrate the transformation using “01/07/2023,” with 2023 retained in the edited form. The purpose is to keep some temporal context without preserving the original level of detail. The study does not separately quantify how often this exact transformation succeeds.

Age handling is also conditional. The instructions call for anonymization or removal of age information concerning individuals aged 90 or older. This is different from indiscriminately deleting every age. To follow it, the system must first recognize an expression as an age, interpret the value, and apply the relevant condition. The paper does not report an age-specific score, so the aggregate results cannot establish the reliability of this subtask.

The authors also mention Social Security numbers and long numerical sequences. These examples highlight a practical challenge: many clinical documents contain numerical information that must remain intact, alongside numerical identifiers that should be removed. The task therefore involves distinguishing a value’s role, not simply reacting to the presence of digits. The instructions supply guidance, but the paper provides no detailed numerical-expression confusion analysis.

#### From an edited note to counted decisions

After processing, outputs were compared with the human reference. The paper defines true positives as sensitive material that the system successfully detects and de-identifies. A false negative is sensitive material that the process fails to handle. False positives are ordinary content treated as sensitive, while true negatives are ordinary content left appropriately unchanged.

These definitions connect the evaluation to the competing objectives. False negatives threaten confidentiality because required edits are missing. False positives threaten usefulness because they alter material that should survive. True negatives matter because a successful process must preserve the bulk of an ordinary clinical account, rather than simply remove everything.

An important implementation detail remains unspecified: the paper does not clearly establish the exact counting unit throughout the evaluation. Its explanations move between entities, instances, and words. It also does not provide enough information about partial span matches, output alignment, or aggregation across documents to reconstruct scoring independently. The conceptual definitions are understandable, but exact replication would require a more detailed scoring protocol.

#### Precision

```
Precision = TP / (TP + FP)
```

TP is the count of correctly handled sensitive instances. FP is the count of non-sensitive instances incorrectly treated as sensitive. Precision asks whether the system’s positive decisions are justified by the reference. In this task, a high value supports the claim that the editor seldom removes ordinary content through a mistaken PHI classification.

Precision has a restricted meaning. It says little about sensitive information that never attracted a positive decision. A cautious system could make few unjustified edits while leaving required edits undone. It is therefore useful for examining preservation, but cannot establish privacy protection on its own.

#### Recall

```
Recall = TP / (TP + FN)
```

FN is the count of sensitive instances that were missed. TP retains the meaning given above. Recall measures how much of the reference-sensitive material the process successfully handles. Its practical importance follows from the task: a surviving identifier can matter even when most surrounding decisions are correct.

The paper treats recall as a key area for further improvement. That is consistent with the reported pattern for GPT-4, where precision is stronger than recall. The two measures describe different aspects of behavior rather than competing accounts of the same result.

#### F1

```
F1 = 2 × (Precision × Recall) / (Precision + Recall)
```

Precision and Recall are the measures already defined. The multiplication sign combines them, and the denominator adds them. The resulting harmonic mean summarizes their balance. It is useful when a single score is needed to compare systems that differ in both missed targets and unnecessary interventions.

F1 does not encode a complete policy for the consequences of errors. It combines the measures according to its mathematical definition, instead of according to a hospital-specific estimate of harm. A strong F1 can support a comparative performance claim without determining whether the residual privacy risk is acceptable.

#### Accuracy

```
Accuracy = (TP + TN) / (TP + TN + FP + FN)
```

TN is the count of non-sensitive instances correctly preserved. The other symbols keep their earlier meanings. The numerator counts correct decisions of both kinds; the denominator includes all counted decisions. This formula therefore concerns overall classification behavior, including preservation of ordinary material.

Accuracy requires special care in a document-editing task. If ordinary text contributes many counted negatives, correct preservation can strongly influence the result. The paper does not supply the full confusion counts or a sufficiently explicit counting protocol to inspect that balance. Its accuracy values should consequently be read alongside recall and precision, rather than as a standalone release criterion.

### Experiments and results

#### What was actually compared

The direct experiment compares GPT-3.5 and GPT-4 on the annotated hospital discharge summaries. Both are evaluated within the paper’s zero-shot, API-based framework. The reference comes from expert identification of PHI, and the reported outcomes concern agreement between the automatic processing and those annotations.

The paper does not describe a conventional local training split, validation split, and held-out test split. That is compatible with an experiment that does not train a local system, but it leaves another issue unresolved: the role of the evaluated collection in developing the instructions is not fully documented. The text describes careful prompt design without giving a separate account of prompt-development material and final untouched evaluation material.

The numerical baselines directly tested are therefore the alternative GPT versions. Earlier rule-based, recurrent, and transformer results appear in the related-work discussion, not as additional systems rerun on the same hospital collection. This distinction matters because a common metric name does not make results from different annotation schemes, populations, or scoring procedures directly comparable.

#### Sensitive-information detection

KHCC discharge summaries, PHI recall GPT-4 recovered more annotated sensitive information than GPT-3.5.

**The numbers**

| System or setting | recall |
| --- | --- |
| GPT-3.5 | 0.6690 |
| GPT-4 (this paper) | 0.8318 |

Recall is the clearest view of incomplete protection in the reported results. GPT-4 handles a larger share of the annotated sensitive material than GPT-3.5, so the stronger system is not merely achieving better preservation by avoiding difficult edits. It also detects and processes more of the required targets.

At the same time, the GPT-4 recall value leaves an important limitation. The system does not recover every annotated sensitive instance. The paper’s positive assessment of its capabilities should therefore be distinguished from a claim that every processed note is ready for unrestricted sharing. The experiment reports a performance level across the collection; it does not provide a guarantee for each individual document.

No recall breakdown is supplied for names, dates, addresses, or other categories. As a result, the result cannot reveal whether misses are concentrated in a recognizable class or scattered across the task. That distinction would affect how useful an additional rule or review stage might be, but it remains unresolved.

#### Unnecessary alteration

KHCC discharge summaries, PHI precision GPT-4 made substantially more reliable positive PHI decisions than GPT-3.5.

**The numbers**

| System or setting | precision |
| --- | --- |
| GPT-3.5 | 0.3448 |
| GPT-4 (this paper) | 0.9925 |

The precision comparison reveals a different weakness in GPT-3.5. Its reported positive decisions frequently disagree with the reference, indicating difficulty separating protected information from content that should remain. In an editing workflow, such errors can damage the record by removing useful expressions.

GPT-4’s precision supports a much more selective behavior. According to the aggregate evaluation, material that it treats as PHI is typically material marked sensitive by the experts. This is relevant to preserving research content, but the inference should remain specific. Correct PHI classification is evidence against one source of content damage; it is not a direct measurement of the entire edited note’s clinical fidelity.

For example, the reported precision does not independently test whether a rewrite changes a relationship between clinical events, drops a contextual qualification, or introduces a new statement. The paper does not offer a separate quantitative account of those possibilities. Its preservation claim is most defensible when tied to the evaluated distinction between sensitive and non-sensitive material.

#### Combined performance

KHCC discharge summaries, de-identification F1 GPT-4 achieved the stronger reported balance between precision and recall.

**The numbers**

| System or setting | F1 |
| --- | --- |
| GPT-3.5 | 0.3905 |
| GPT-4 (this paper) | 0.8973 |

The F1 comparison summarizes the reported superiority of GPT-4. The stronger result reflects improvement in both dimensions instead of an obvious trade in which one improves while the other deteriorates. It is the paper’s most compact performance summary for selective de-identification.

There is an important reporting qualification. The paper defines F1 mathematically, but does not explain the aggregation procedure in sufficient detail to reproduce every aggregate from the displayed precision and recall values. It does not clearly state whether all measures are pooled over the same decisions or averaged at a different level. The values should be retained as reported, with that uncertainty left visible.

The discussion also prints some results at greater numerical precision than the main results. These are presentations of the same experiment, not evidence for additional runs. For clarity, the main-results values provide the consistent basis for the comparisons here.

#### Overall correctness and its interpretation

For accuracy, the paper reports 0.7867 for GPT-3.5 and 0.9911 for GPT-4. This supports the conclusion that GPT-4 makes more correct decisions under the study’s counting procedure. The accompanying recall result remains necessary, because overall correctness includes decisions to preserve non-sensitive content.

The authors describe GPT-4 as promising for practical use and argue that its pretrained capabilities reduce the work associated with feature design and task-specific training. The experiment supports the feasibility of obtaining useful results through this instruction-based interface. It does not quantify a complete comparison of labor, service cost, processing speed, or total computational resources.

The paper further associates successful de-identification with useful synthetic clinical records. Its metrics establish how well the systems recognize and alter annotated sensitive material. They do not separately establish downstream research quality through a clinical prediction experiment, a research replication exercise, or a measured evaluation of preserved medical relationships. Those would address additional questions beyond the direct comparison reported here.

### What the ablations show

The paper reports no dedicated ablation study; its main controlled comparison changes the GPT version, while its other analyses interpret aggregate metrics and discuss earlier work.

#### What changing the system establishes

The GPT-3.5 versus GPT-4 comparison shows that the choice of underlying system matters within the described workflow. Since GPT-4 is stronger across the reported measures, the study provides a practical reason to prefer it over GPT-3.5 for this particular experiment. It also shows that supplying a privacy-oriented instruction does not make all systems equally capable of following it.

This comparison does not isolate the mechanism responsible for the improvement. The paper does not vary individual architectural features, training sources, or optimization choices. References in the discussion to advances in architecture and training are explanatory interpretations rather than experimentally separated causes. The measured result concerns the complete systems as accessed through the interface.

#### What the prompt analysis establishes

The method describes several meaningful instruction choices: explicit identifier categories, a preservation objective, special date treatment, and conditional handling of older ages. Each could plausibly influence behavior. However, the paper does not compare the full instruction with versions lacking these components.

It is therefore not possible to attribute the reported performance to a particular clause. The study does not show how much the category list contributes, whether the professional role framing helps, or whether the preservation instruction changes false-positive behavior. These are understandable design decisions, but their individual effects remain unmeasured.

The same limitation applies to zero-shot versus example-based prompting. The paper explains both zero-shot and few-shot approaches, yet evaluates the former. It does not establish that excluding examples is better, that examples would be unnecessary for another institution, or that a demonstration-based condition would preserve the same precision–recall pattern.

#### What the metric pattern establishes

The joint reading of precision and recall is an analysis instead of an ablation. For GPT-4, the reported pattern indicates that positive decisions are reliable while target recovery remains incomplete. This helps identify the broad direction of further work: improving coverage without sacrificing selective preservation.

It does not identify the missing recognition mechanism. A lower recall could reflect many kinds of difficulty, but the paper does not provide an error catalogue detailed enough to select among them. Category-level analysis and reviewed examples would be needed before deciding whether to add format rules, improve contextual interpretation, or change the instruction.

For GPT-3.5, the weaker precision reveals substantial overreach as well as incomplete detection. This is useful diagnostic information because it argues against evaluating the system only by how many identifiers it catches. A process that finds some targets but alters much ordinary content may remain unsuitable for research preparation.

#### What the historical comparisons establish

The discussion places GPT-4 beside previously reported LSTM and transformer results. This helps readers locate the work within de-identification research and understand the authors’ resource argument. It also shows that strong scores were already possible through other approaches.

Those comparisons are not controlled substitutions within this experiment. The hospital collection, annotation process, and scoring details differ from the earlier studies as described. Consequently, the paper does not establish a matched ranking between GPT-4 and every cited alternative. Its strongest comparative evidence remains the direct evaluation of GPT-3.5 and GPT-4 on its own reference collection.

### Limitations

#### Limits the authors identify

The authors explicitly recognize incomplete recall as an area requiring further work. Their proposed responses include more developed instructions, additional task-specific guidance, and combinations with rule-based processing. These are future directions rather than demonstrated repairs. The paper does not show that any proposed change catches the missed material while preserving the reported precision.

They also acknowledge the institutional boundary of the data. The records come from King Hussein Cancer Center, and the authors propose evaluating documents from other institutions to investigate generalizability. This is an important qualification to the broader claims of adaptability. A real hospital collection improves relevance to that source, but a change in institution can bring different wording, templates, patient populations, or recording practices.

The discussion raises ethical concerns about synthetic data reproducing imbalances in its source. It identifies the possibility that some demographic groups may be poorly represented and argues for bias audits, diverse data, and fairness evaluation. These recommendations belong to the topic of [bias, fairness, and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/). They should not be read as completed analyses: the paper provides no subgroup performance results demonstrating that those risks were measured or resolved.

The authors further stress transparency, oversight, and the need to validate synthetic material. Their concern is that plausible records may fail to preserve the complexity of actual clinical data. They also identify integration into care workflows and longer-term effects as matters for future investigation. The present experiment therefore sits before a full operational assessment of routine use.

#### Privacy performance is not a release guarantee

A careful reader should distinguish a strong aggregate score from complete privacy protection. Recall directly indicates that the stronger system misses some annotated sensitive material. The paper’s statements about confidentiality and regulatory suitability are consequently broader than the numerical evidence alone can establish.

Precision and accuracy do not remove that limitation. Precision concerns decisions the system makes positively; accuracy also includes correctly preserved ordinary content. Neither measure guarantees that a surviving passage contains no identifier. An evaluation may therefore favor GPT-4 decisively while still leaving a need for review or another protective stage before release.

Nor does inclusion of a policy in an instruction establish that every part of that policy is followed. The category inventory is a specification, and the metrics are observations of behavior under that specification. A claim of compliance would require sufficient evidence about the relevant obligations, including those not well represented in the evaluated documents. The paper does not supply such a category-by-category demonstration.

#### The scoring procedure is incompletely specified

The absence of full confusion counts and a precise matching protocol limits independent interpretation. The paper explains what true and false decisions mean, but does not clearly define how textual spans are matched, whether partial detections receive credit, or how rewritten outputs are aligned with their originals. Those choices can materially change an extraction score.

Aggregation is also unclear. The reported metrics may involve processing at a level not fully described in the text, but the reader is not given enough detail to verify that procedure. It would be inappropriate to repair the results through an assumed averaging scheme. The appropriate response is to retain the reported values and acknowledge that their exact reconstruction is not possible from the methodological description.

The study also provides no confidence intervals, formal significance tests, or repeated-run analysis. Although the authors use strong comparative language, the paper does not quantify statistical uncertainty around the observed scores. The comparison is clear descriptively; its inferential strength cannot be assessed through a supplied uncertainty analysis.

#### Reproducibility requires more execution detail

The text identifies GPT-3.5 and GPT-4, but does not provide a sufficiently complete execution record to reproduce the service behavior exactly. Details such as the precise service version, sampling configuration, retry behavior, and handling of long documents are not fully specified. The paper’s characterization of the task as deterministic should not be confused with an experiment establishing identical outputs across repeated calls.

This matters because task structure and execution repeatability are separate properties. A task can have a well-defined desired answer while the implementation varies. The authors argue that constrained extraction reduces opportunities for unsupported generation, but they do not report a repeated-output study showing that the process is invariant.

The discussion of computational efficiency has a related limit. Avoiding additional local training is a concrete design feature, yet no detailed cost or latency benchmark is reported. The study does not measure processing throughput across a hospital workload or compare total resource use with a deployed alternative. Claims about accessibility are plausible motivations, not a complete efficiency result.

#### Clinical usefulness is not directly measured

The paper treats preservation of non-sensitive text as important, and precision is relevant to that objective. Nonetheless, clinical usefulness is broader than avoiding mistaken PHI labels. A note can preserve many words while losing an important relationship, qualification, or sequence of events. Conversely, a deliberate redaction can be correct for privacy while limiting a particular research analysis.

The reported evaluation does not separately quantify those effects. There is no described downstream task demonstrating that research conclusions remain stable after processing. The paper also does not provide a detailed clinician-scored assessment with its own results for medical fidelity, readability, or completeness. Its claims about utility should therefore be interpreted as an intended benefit supported indirectly by selective editing performance.

The term synthetic data introduces a further ambiguity. Transforming a real note by removing identifiers is not the same experimental problem as generating an completely new patient record. The paper discusses both within a common motivation, but its numerical evidence does not fully separate them. Readers should avoid treating PHI-detection metrics as a comprehensive validation of synthetic patient data.

#### The data boundary helps relevance and restricts verification

Using confidential records gives the study a meaningful institutional setting. It also limits independent inspection: the data are not openly released, and the authors describe access through a reasonable request to the corresponding author. This is understandable given the subject, but it means outside researchers cannot simply inspect the collection and reproduce the evaluation.

The sample size is another scope condition. The study evaluates 100 discharge summaries, without establishing how representative they are of every discharge summary at the institution or of other medical note types. The text does not provide enough sampling detail to assess unusual formats, rare identifier patterns, or the distribution of difficult cases.

Finally, the study does not test a complete security workflow. The paper discusses privacy, governance, and ethical approval, but the reported experiment concerns text transformation and its agreement with annotations. It does not establish protection across every stage of data transfer, storage, access, and later reuse. These are separate operational questions, and success at de-identification should not be allowed to stand in for their evaluation.

### What came after

[Towards Fair and Efficient De-identification: Quantifying the Efficiency and Generalizability of De-identification Approaches](https://md.research.elamur.ai/free/en/papers/zambare-2026-fair-efficient-de-identification-quantifying/) is a later citing work dated 2026. Its title places efficiency, fairness, and generalizability at the center of de-identification evaluation. Those concerns connect directly with the unresolved boundaries of Altalla’ and colleagues’ study: the need to measure operational demands, examine uneven behavior, and test beyond an institutional sample.

The available account of that later work does not specify its experimental methods or findings. It therefore supports identifying a subsequent research connection, but not claiming that the work reproduced the hospital results, adopted the same instructions, or resolved the recall limitation. A citation establishes intellectual contact; it does not establish which component was reused or whether the later evidence confirmed the earlier conclusions.

The research agenda left by Altalla’ and colleagues is consequently concrete. Their experiment shows that instruction-based processing can perform strongly on a locally annotated collection, while exposing an important gap between reliable positive decisions and complete detection. Further progress requires clearer error accounting, independent clinical-utility assessment, measured operating costs, and tests across document sources. The later citing work’s stated emphasis aligns with several of those questions, while its particular contribution cannot be described more precisely without additional evidence.

## Cite

Cite as Bayan Altalla’, Sameera Abdalla, Ahmad Mousa Altamimi, Layla Bitar, Amal Al‐Omari, Ramiz Kardan and Iyad Yasin Sultan. 2025. Evaluating GPT models for clinical note de-identification. Scientific Reports.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1038/s41598-025-86890-3](https://doi.org/10.1038/s41598-025-86890-3)

```bibtex
@inproceedings{altalla2025evaluating,
  title = {{Evaluating GPT models for clinical note de-identification}},
  author = {Bayan Altalla’, Sameera Abdalla, Ahmad Mousa Altamimi, Layla Bitar, Amal Al‐Omari, Ramiz Kardan and Iyad Yasin Sultan},
  booktitle = {Scientific Reports},
  year = {2025},
  doi = {10.1038/s41598-025-86890-3},
  url = {https://doi.org/10.1038/s41598-025-86890-3}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
