Elamur Research

Evaluating GPT models for clinical note de-identification

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

Summary

A discharge summary records what happened during a hospital stay and what care should follow. The details that make it worth studying can appear right beside a patient’s name, a record number, or an address. Sometimes the same detail serves both purposes. A date places an event in time and can also help identify the person involved. Bayan Altalla’ and colleagues ask how well GPT-3.5 and GPT-4 can make these selective edits when given a privacy policy in ordinary language.

The researchers collected 100 discharge summaries from the electronic records at King Hussein Cancer Center. Domain experts marked the protected health information, or PHI, in the notes and reviewed those markings through 2 rounds of verification. The authors called the GPT services through an application programming interface and described the required edits in a prompt. This was a zero-shot test, meaning the requests included instructions without worked examples. The study used the existing systems without additional task training. The instructions followed the identifier categories of the Health Insurance Portability and Accountability Act (HIPAA) and asked the systems to keep information useful for research. One rule illustrates the intended balance. Remove the day and month from a protected date, but keep the year.

On the annotated hospital collection, GPT-4 reached 0.9925 precision, 0.8318 recall, 0.8973 F1, and 0.9911 accuracy. GPT-3.5 scored 0.3448 in precision, 0.6690 in recall, 0.3905 in F1, and 0.7867 in accuracy. For GPT-4, nearly all edits judged as positive PHI decisions agreed with the reference, as reflected in its precision. Its lower recall means some information marked for protection was missed. F1 summarizes the balance between those measures, while accuracy also gives credit for correctly leaving ordinary material alone. Even a high accuracy score leaves open how many finished notes still contain an identifier.

The paper shows that a hospital can test instruction-based de-identification on its own records without training a system for those documents. The authors also describe the edited outputs as synthetic clinical notes. Their numerical results establish how well the editing decisions agree with expert PHI markings. The paper gives much less evidence about whether the edited notes support the same research conclusions as the originals, how reliably the process repeats, or how scores would change at another hospital. Those questions matter because selective editing, clinical usefulness, and readiness for release each require different evidence.

Deep dive: Evaluating GPT models for clinical note de-identification

See how GPT-3.5 and GPT-4 compare at removing patient identifiers from hospital discharge summaries and what their scores say about privacy. · about 33 minutes to read

The problem and its context

Why deleting the obvious fields only goes so far

A discharge summary brings together information that otherwise sits at different points in a patient’s hospital record. It can describe why care was needed, how treatment went, and which arrangements were made for follow-up. That connected account helps subsequent readers understand the course of care. In a research collection, the same kind of text can supply details that a table of preselected variables would leave out. The reason to preserve the narrative is also the reason that preparing it for wider use takes care. Identifiers can occur wherever the narrative gives a concrete account of an event.

The simplest cases are familiar. A patient name in a heading or a labeled contact number is recognizable by its form or position. A name in a paragraph may refer to somebody else, and the privacy instruction has to say whose information falls within scope. A number can be an identifier or part of the clinical account. Dates present a different kind of difficulty. Identifying the string as a date settles what it represents, but the editing policy still has to specify how much of it to retain. Detecting a piece of text and deciding what to do with it are related judgments.

The paper uses protected health information, abbreviated PHI, for the sensitive material that the experiment targets under its HIPAA-based instructions. The authors draw on the Safe Harbor identifier categories to specify edits. That gives the task a concrete reference. Asking for privacy in general leaves room for very different treatments of the same note. Naming the kinds of information that require removal and spelling out exceptions gives experts a basis for marking expected changes and gives the automatic editor a description of the job.

This is also a problem of preserving what a reader can learn. An editor that removes ordinary text can make a note less useful even if every identifying field disappears. In the other direction, an editor that leaves almost everything in place can produce an excellent-looking summary with a sensitive field still visible. Appearance gives limited evidence for either outcome. The study can ask a more specific question by comparing the changed text with a reference prepared from the original notes. Finding the relevant expressions in free text places the work within natural language processing.

What earlier methods try to preserve

The authors begin their account of earlier approaches with masking and pseudonymization. Masking substitutes plausible but false material for sensitive values. Pseudonymization gives an identifying value an artificial counterpart. A replacement can keep a document readable by leaving something in the grammatical or structural position of the original. When the artificial counterpart is reused, it can also preserve connections that deletion would obscure. The paper describes schemes whose protection depends in part on separately held information. Access to that information can threaten the privacy that the substitutions were meant to provide.

These examples make the problem more precise. A system can find the right field and still choose a poor replacement. Some substitutions can distort the meaning of a clinical document, while others can leave useful structure intact. In a date field, for instance, the options include erasing the field, replacing the value, or retaining a less specific time reference. The appropriate action depends on the policy and the intended use of the note. A detector supplies the target for an operation. The policy decides which operation belongs there.

The paper discusses synthetic data as a related response to the demand for usable clinical records. In that discussion, synthetic data aim to reproduce useful characteristics of observations while avoiding disclosure of actual protected details. The authors trace applications from testing software and databases to supporting research and training. They mention approaches that introduce randomness for privacy and approaches that generate examples resembling a source collection. Their account also raises a question about fidelity. A collection can look realistic at the level of individual entries while distorting which kinds of entries occur and how their characteristics relate.

Earlier de-identification studies brought automatic language analysis to the editing problem. The paper discusses NLNDE, which was evaluated on Spanish medical documents in the MEDDOCAN competition. That example makes language and documentation conventions part of the technical problem. An entity may be expressed differently across collections, and even familiar identifiers can appear in different places or forms. Altalla’ and colleagues describe pre-defined rules as a possible constraint on adaptation to varied documents. The study also discusses a system by Lee and colleagues that joined rules with a learned component for psychiatric notes. Its reported de-identification accuracy on that collection was 90.74%. Adding a learned component gives a system another way to interpret text, while keeping rules and learned behavior working together can increase maintenance demands.

Another study, by Jiang and colleagues, compared a conditional random field with a long short-term memory network for psychiatric records associated with the CEGS N-GRID 2016 shared tasks. In the approach described by Altalla’ and colleagues, the conditional random field learned from features prepared by people. The recurrent network constructed representations from characters and used a decoding stage to assign tags. Character information can help distinguish surface forms within a note, while a tag indicates what the system thinks the text represents. The paper cites 0.8986 as the recurrent system’s F1 on that psychiatric de-identification task. These approaches illustrate the connection between de-identification and named entity recognition.

The authors also discuss Meaney and colleagues’ evaluation of pretrained transformer architectures on the i2b2/UTHealth 2014 corpus. The study as described varied training settings as well as architectures. According to Altalla’ and colleagues, ROBERTA-large achieved more than 99% accuracy and a precision/recall rate of 96.7% on the test subset. Their account emphasizes the effort involved in tuning these systems and points to unequal success across identifier types. Examples of difficult types in that earlier study include professions, organizations, ages, and particular locations. A collection-wide result can be strong while a type of special interest remains difficult. The earlier comparison motivates attention to both the preparation of the system and the way the results are summarized.

The case for using instructions to adapt an existing system

Altalla’ and colleagues approach adaptation as a practical constraint. If the route to effective de-identification requires local training and detailed tuning, a hospital needs people and resources to undertake that work before it can even test the resulting service on its records. A GPT service offers a different starting point. An institution can describe the task in a request and evaluate the resulting behavior on a local collection. The relevant pretrained systems belong to the broader family of large language models.

The background includes an existing example of this direction. DeID-GPT used GPT-4 to process medical text from open sources. Altalla’ and colleagues ask what a related use of instructions can accomplish on confidential discharge summaries produced in the course of hospital care. A collection of actual records preserves the circumstances under which documentation was written at that institution. A local evaluation can therefore answer questions about that material that a score carried over from another corpus leaves unresolved. The source of the records does not by itself determine how broad a population the findings represent.

The authors also distinguish well-specified editing from open-ended composition. When the task tells the editor to locate defined information and apply bounded changes, each change has an input passage and a policy against which it can be checked. The authors argue that this structure gives fewer opportunities for invented content than generating long new passages with fewer constraints. That reasoning explains their emphasis on explicit instructions. It also points to two different evaluation questions. One is whether the editor acts on the right information. The other is whether the full output still gives a faithful account of what the original said.

The study’s starting proposition is therefore about how to obtain a useful test of selective editing. At runtime, the authors can supply an existing service with a concrete policy and a real note. To assess what happens, they still need reliable human judgments about the text. This shifts the immediate effort away from training a new system and toward describing the job, preparing the reference, and comparing the two GPT versions under the stated approach.

The method, step by step

Assemble the notes and mark the material to protect

The authors obtained the discharge summaries from the VISTA-based electronic health record system at King Hussein Cancer Center, abbreviated KHCC. The collection contains 100 summaries. They chose this document type because it brings together the events of a stay, its treatment outcomes, and plans for what should happen after discharge. The notes contain the kinds of targets the authors wanted the editor to distinguish from clinical information, including patient names, dates, addresses, telephone numbers, and medical record identifiers.

The study used existing records retrospectively. The institution’s review board approved the study and waived the requirement to obtain individual informed consent for this retrospective work. This part of the procedure describes the researchers’ authorization to work with the records. The comparison with the experts’ markings comes later and addresses how the text was processed. The paper describes its data as confidential, with access through the corresponding author upon reasonable request subject to the stated restrictions.

The authors had domain experts mark PHI manually in the discharge summaries. The verification procedure comprised 2 rounds. The marks define the reference, often called ground truth in an evaluation. Here the term means that the reviewers’ decisions are the ones the automatic edits are judged against. An identifier that survives processing can count as an omission because someone has marked it in the original. The evaluation can also detect unnecessary changes when the automatic editor treats an ordinary expression as sensitive. The reference was produced through linguistic annotation.

For a newcomer, there are two copies of the information to think about. One is the note that the service must interpret and edit. The other is the human account of where the protected information lies in that note. The authors use the latter to check the result. The human markings are useful for this purpose even though the systems receive instructions without demonstration cases at runtime. A collection can be labeled for evaluation while the method uses no labeled examples to teach the task during execution.

From source discharge summaries to de-identification scores

The steps in order.

From source discharge summaries to de-identification scoresStep 1: Collect discharge summaries from hospital records1. Collect discharge summaries from hospital recordsStep 2: Have experts mark protected information2. Have experts mark protected informationStep 3: Verify the reference markings3. Verify the reference markingsStep 4: Specify permitted edits in the prompt4. Specify permitted edits in the promptStep 5: Process the notes through GPT services5. Process the notes through GPT servicesStep 6: Compare the edited output with expert markings6. Compare the edited output with expert markingsStep 7: Report the de-identification measures7. Report the de-identification measures

Assign the task through an API

An application programming interface, abbreviated API, is how the study’s software submits text and instructions to the GPT service and receives its response. The authors use this interface for GPT-3.5 and GPT-4. In the procedure they describe, the instruction is the means of adapting the service to the hospital task. They use zero-shot in-context learning, their term for submitting the task and input without worked cases in the request. The system has to apply the instructions using capabilities acquired before the experiment.

A demonstration would show an example note together with an expected answer or edit, making the pattern visible by example. That is how the authors distinguish the zero-shot setting from few-shot learning.

Learning through examples in the request also differs from training that updates a system’s internal parameters. In the latter setup, a training procedure compares predictions with desired outcomes and adjusts parameters through back-propagation. In the experiment the authors describe, the hospital annotations serve as an evaluation reference and the task description does the work of steering the service at runtime. This arrangement avoids a local round of task-specific fine-tuning.

The authors place their manually written instructions in the context of research on prompts. They cite work on adapting a pretrained system using the information in a request and refer to data augmentation as part of the wider discussion. Their motivation for a hand-written prompt is that the requested behavior can be stated explicitly and inspected before the service runs. A reusable form for giving instructions is the subject of the Prompt Pattern Catalog.

The central prompt decision is to specify both the target of editing and the purpose of keeping the rest. The text assigns the service the role of someone performing professional de-identification. It then gives a policy for what to remove while directing attention to the retention of material with research value. That allows the reader to distinguish the phrasing that frames the task from the substantive rules that define acceptable edits. In the experiment, these parts appear together in the instruction.

Tell the editor whose details matter and how to change them

The paper says the prompt incorporates 18 HIPAA identifier categories. The categories include direct personal details such as names and contact information, as well as identifiers connected with records, benefits, accounts, vehicles, or devices. Network addresses and other identifying codes also appear in the inventory. The scope extends to identifiers relating to relatives, members of the household, and employers. This scope matters in prose because a note may refer to several people or involve other parties in arrangements surrounding care. Searching only for a known patient name would cover a smaller task.

A category description provides both a reason for the edit and a boundary around it. When a sequence represents a record number, the editor has a reason to remove it. Other sequences can express information that makes the note medically informative. The instructions call attention to sensitive numerical material, including Social Security numbers and long sequences of digits. A sequence’s length can draw attention to it, while the role the value plays in the note helps establish what kind of information it is. The distinction matters wherever the shape of an identifier resembles ordinary quantitative information.

The policy also describes geographic information more specific than a state, with an exception for part of a postal code in certain circumstances. Here again, recognizing a place expression supplies only part of the answer. The instruction concerns the specificity of the geographic information as well as its presence. The complete policy inventory also includes facial photographs and biometrics. That inventory tells a reader the breadth of the identifiers named in the instructions. The evaluation itself is based on discharge summaries, so the category list alone gives no measure of how images or biometric material were handled.

The paper’s date example illustrates a transformation with a deliberately limited scope. Its input date is 01/07/2023. The edited form it gives is [redacted]/2023. Thus both parts that specify a time within the year are obscured, and the year can still be read in the result. This rule gives the system a more exact target than removing dates wholesale. It also makes clear what kind of temporal information the edit is intended to preserve. A reader of the output can place the event by year, while a question that depends on the precise day would need information the policy directs the editor to remove.

The age instruction similarly depends on interpreting what a value represents. The authors call for anonymization or redaction of age information for people aged 90 or older. To apply that condition, the service must recognize the age expression, understand which person it describes, and deal with it under the stated rule. A bare number does not specify whether any of those conditions hold. The paper describes the provision as part of the instruction and evaluates its overall workflow on a collection in which multiple kinds of identifiers can occur.

Together, these choices make the request an editing specification. It names the information the service should look for and, in cases such as the date rule, gives the operation an intended granularity. The resulting note must then be evaluated in relation to its source. A readable output can conceal a missed identifier, and a visible placeholder can replace either the right span or the wrong one. The authors score the result against the reviewers’ decisions about the input.

Turn the edited text into measurable outcomes

The paper defines four outcomes for the comparison. A sensitive item identified and successfully de-identified is a true positive. A protected item that the service fails to identify and de-identify is a false negative. When the service treats ordinary information as sensitive and changes it unnecessarily, the decision counts as a false positive. Ordinary material correctly preserved is a true negative. These are the conceptual categories needed to read the metrics. The paper’s descriptions refer variously to instances, entities, and words, so the definitions are clearer than the exact procedure for counting a unit in the final totals.

The measures each condition on a different set of decisions. To understand precision, start with the places the editor acted on as sensitive. Some of those actions agree with the human reference and others do not. The precision formula uses that group as its denominator.

Precision = TP / (TP + FP)

Precision is the share of predicted positives judged correct. TP counts the true positives, meaning correctly de-identified sensitive items. FP counts the false positives, meaning ordinary items incorrectly handled as sensitive. The plus sign adds the two counts, the parentheses group their total as the denominator, and the slash divides TP by that total. The equals sign gives the definition of the measure. Precision is informative about what happens when the system intervenes in the text. Sensitive material on which it takes no action belongs to a different denominator.

Recall begins on the reviewers’ side of the comparison. Take the material that they considered protected and ask how much of it was successfully dealt with. This is also called sensitivity in the paper.

Recall = TP / (TP + FN)

Recall is the share of reference positives successfully handled. TP again counts correctly handled sensitive items. FN counts the false negatives, the sensitive material missed by the process. Adding the counts inside the parentheses gives the total number of reference positives, and dividing the true positives by that total gives recall. The equals sign defines the measure. The denominator makes recall a direct way to see incomplete coverage of the protected material that the experts identified.

The paper uses F1 to combine precision and recall. This is their harmonic mean, a summary that is pulled towards the weaker of the two values when the values differ. A system needs to perform well on both components to reach a high F1.

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

F1 names the combined score. Precision is the reliability of the positive decisions and Recall is the coverage of the reference positives, as defined by the preceding formulas. The numeral 2 is the constant multiplier in the harmonic mean. The multiplication signs indicate that the two measures are multiplied and their product is doubled. The plus sign adds the measures for the denominator, and the parentheses group each operation. The slash divides the doubled product by the sum, and the equals sign defines F1. The mathematical balance is fixed by the formula. The formula contains no information about the consequences of a particular missed identifier or an especially damaging edit.

For overall accuracy, the displayed equation includes ordinary items correctly preserved as well as sensitive items successfully handled. This brings both sorts of correct decision into the numerator.

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

Accuracy is the share of all counted decisions that are correct. TP counts successful de-identifications of sensitive items, and TN counts the true negatives, the ordinary items appropriately preserved. FP counts the incorrect alterations, and FN counts the sensitive items that were missed. The plus signs add the counts inside each pair of parentheses. The slash divides correct decisions by all decisions, and the equals sign defines accuracy. The paper also describes accuracy in one passage as correct handling of sensitive entities relative to the entities requiring modification. The displayed equation and the results discussion use the broader definition, with true negatives included. That broader denominator is the basis for interpreting the reported overall accuracy.

These equations describe the logic of scoring once the counts are available. An actual calculation from pairs of discharge summaries would also need a definition of what counts as one decision, especially when a rewrite changes the length of a passage or keeps an allowed part of a value. The paper gives the formulas and error meanings. It leaves details of matching and aggregation open, which affects how much of the experiment a reader could reproduce from the description alone.

Experiments and results

The comparison within the hospital collection

The authors score GPT-3.5 and GPT-4 against the same expert-annotated collection of 100 KHCC discharge summaries. The systems are the direct alternatives in the experiment, with GPT-3.5 providing the comparison for GPT-4. Both are evaluated under the API-based zero-shot approach. The paper describes the collection as the basis for evaluation and gives no separate scores by training, validation, or test partition for these hospital records. The numbers below are the reported measures on the evaluated discharge summaries.

The annotations supply common expectations for the comparison. If the reference identifies a date as protected, each service is judged against that decision. If a medical expression is ordinary text under the policy, an unnecessary change can count against either service. That shared setting gives the experimental comparison its force. A comparison with a system tested on a different corpus would have to account for differences in the source documents, labeling rules, and scoring choices before the values could support the same kind of conclusion.

The paper makes broader claims about earlier methods in its results and discussion. The measured baseline on the KHCC data is GPT-3.5. The rule-based, hybrid, recurrent, and transformer approaches discussed in the background supply context from other studies. Their published scores illustrate what the field had achieved under other conditions. The hospital experiment does not contain their predictions for these notes or a resource comparison with them on the same workload.

How much sensitive material was handled

PHI recall on KHCC discharge summaries

GPT-4 handled a larger share of the protected material marked by experts.

PHI recall on KHCC discharge summariesGPT-3.5: 0.6690GPT-3.50.6690GPT-4 (this paper): 0.8318GPT-4 (this paper)0.8318
The numbers
System or settingrecall
GPT-3.50.6690
GPT-4 (this paper)0.8318

The observed recall of 0.6690 for GPT-3.5 and 0.8318 for GPT-4 shows a difference in how much annotated sensitive material the services successfully processed. A note can read well after an editor removes several evident identifiers, yet still include a detail the experts marked. The recall measure registers such omissions among all the reference positives, regardless of how obviously visible a particular miss is when reading the output. It therefore bears most directly on the question of which required edits got through the pipeline.

GPT-4 led the comparison on this measure. Its result also leaves some of the annotated material unhandled under the study’s definitions. There are several possible ways such omissions could show up across the collection. They could recur in the same kind of expression, collect in certain documents, or be dispersed. The published recall value does not identify which distribution occurred. Even if two methods had the same aggregate recall, their output could look quite different to a person charged with reviewing each note. The paper offers the aggregate comparison and identifies recall as a target for future improvement.

The coverage question is defined relative to the human reference. Recall measures performance on the information marked under that process. It is not an audit of whether information outside the reference could identify a person through combination with other data. The experiment’s strength is the concrete, checked set of expectations it provides. That is also the boundary that makes the resulting number interpretable.

What happened when the editor chose to intervene

PHI precision on KHCC discharge summaries

GPT-4’s positive decisions agreed with the expert reference much more often.

PHI precision on KHCC discharge summariesGPT-3.5: 0.3448GPT-3.50.3448GPT-4 (this paper): 0.9925GPT-4 (this paper)0.9925
The numbers
System or settingprecision
GPT-3.50.3448
GPT-4 (this paper)0.9925

Precision on the same collection was 0.3448 for GPT-3.5 and 0.9925 for GPT-4. For GPT-3.5, positive decisions often concerned material the experts did not treat as a target. That finding adds something the recall result cannot reveal. Detecting a portion of the protected information can come with considerable unnecessary editing, and those mistaken changes can affect the value of the document even when they leave a grammatically readable sentence behind.

GPT-4’s precision indicates that nearly all of its positive decisions were supported by the reference. This bears on a particular source of damage to the notes, namely treating ordinary information as if it required redaction. The measured share answers a question about positive decisions. It gives no direct inventory of all the changes an editor may make to surrounding text, and it cannot reveal whether every retained phrase still has the same relationship to the phrases around it. The evidence for preservation is strongest at the level of the evaluated editing decisions.

The recall and precision results are especially informative together. On this collection, GPT-4 covers more of the protected items while also making more dependable positive decisions. Its advantage cannot be explained simply as a willingness to redact more text at the expense of correctness. The weaker system’s scores indicate that it had trouble both reaching the required targets and confining its interventions to those targets. The two measures give a clearer account of that behavior than the overall correctness figure by itself.

How the results look in combined measures

De-identification F1 on KHCC discharge summaries

GPT-4 had the stronger reported balance of precision and recall.

De-identification F1 on KHCC discharge summariesGPT-3.5: 0.3905GPT-3.50.3905GPT-4 (this paper): 0.8973GPT-4 (this paper)0.8973
The numbers
System or settingF1
GPT-3.50.3905
GPT-4 (this paper)0.8973

The main results give de-identification F1 of 0.3905 for GPT-3.5 and 0.8973 for GPT-4. The ordering is consistent with the ordering on both of its components. F1 is useful here as a concise account of relative performance because each component captures an error the researchers care about. A reader concerned with release decisions still has to consult recall and consider where its misses occur. A reader studying evidence preservation needs to look at which edits were made as well as at the combined result.

The paper supplies an F1 formula without a full account of how all the scores were aggregated. For example, pooling decisions across the collection and computing a score from the pooled counts gives a different procedure than calculating scores for individual documents and averaging them. The choice determines how strongly longer notes or notes containing more identifiers affect the reported result. The reported values identify the paper’s observed comparison. They do not tell the reader which procedure is needed to reconstruct every figure from the underlying decisions. The values here follow the main results, where the comparisons use a consistent numerical presentation.

Overall accuracy was 0.7867 for GPT-3.5 and 0.9911 for GPT-4 on the evaluated collection. Accuracy rewards leaving ordinary material alone as well as handling sensitive material. If ordinary items make up a large share of the counted decisions, successfully preserving them can contribute heavily to accuracy. This explains how overall correctness and incomplete recovery of sensitive items can coexist. The paper does not give the counts that would show the contribution of each outcome to its accuracy.

The units also matter for practical interpretation. An overall decision score does not describe the probability that any given discharge summary is free of all marked identifiers. That question depends on how mistakes and identifiers are distributed across documents. A downstream workflow that reviews notes individually would want to know whether a whole record still requires intervention. The paper’s results provide evidence about the component performing the edits, anchored in the specific annotated collection.

Where the numerical evidence ends

The authors interpret GPT-4’s scores as encouraging for an approach that uses a pretrained service and direct instructions. The experiment establishes that the authors obtained those results without adding a local training procedure for the discharge summaries. The preparation they do describe includes writing the rules, obtaining suitable records, arranging expert annotation, and verifying the reference. These are substantial elements of evaluating the workflow even with an already available service. The article gives no timed or costed comparison showing how that work would scale against another implementation.

The authors also associate the edited outputs with the production of synthetic clinical notes. The score comparison evaluates decisions about protected information. It shows that GPT-4 followed the intended selection of material to edit much more effectively in this experiment. To assess a separate claim about synthetic records, one would also need to know what aspects of the clinical accounts were preserved, what changed at the collection level, and whether researchers could still answer the questions for which they wanted the records. The stated goal of making notes useful for research gives a reason to ask those questions. The reported score set measures the de-identification part of that goal.

What the ablations show

The paper reports no ablation study, and instead compares the GPT versions, examines their precision and recall profiles, and discusses results from earlier clinical de-identification research.

Changing the GPT version changes the observed outcome

The strongest comparison holds the source collection and reference in common and changes which service performs the task. Under the experimental approach, GPT-4 gives the stronger result on each reported measure. This makes the choice between the services consequential even when the task is set out through the same kind of privacy-oriented instruction. Having a detailed specification gives both a statement of the desired behavior. Their different outputs show how much the quality of execution can still depend on the system receiving it.

The comparison varies the services as complete units. An explanation in terms of architecture, pretraining, or other differences between releases is plausible as a broad account, but the experiment never changes those ingredients independently. Nor do the aggregate results show exactly which decisions changed from one system to the other. For instance, better overall recall can occur even if the stronger service misses some items that the weaker service handled. A paired inspection of individual edits would be needed to establish the overlap. The authors’ comparison supports an ordering on the reported metrics for this collection, with the mechanism of that ordering left open.

The prompt is evaluated as a package

Each part of the prompt has an understandable purpose. The category inventory states which types of information fall under the task. The preservation instruction tells the service what the edited account is for. Special cases, such as retaining the year from a protected date, put a boundary on what the system should change. These parts jointly define the tested procedure. The paper reports scores for the procedure as used.

A prompt component could be valuable because it narrows what the system interprets as PHI, because it improves coverage of a neglected category, or because it helps choose the transformation after recognition. These possibilities would lead to different observable results. To tell which applies, a comparison would have to change a specified part of the instruction while keeping the scoring and the notes in common. The paper gives no score for a prompt without the full category inventory, for different role framing, or for a version that omits the preservation direction. It therefore gives no estimate of what any individual instruction contributes.

The same reasoning applies to examples at runtime. The authors explain why a zero-shot request can be attractive when examples are scarce or laborious to prepare. Running the experiment that way establishes that the services can produce the reported behavior from instructions alone. Evidence about the added value of demonstrations would come from a comparison with a matched few-shot condition, and evidence about the value of updating parameters would require an appropriately trained alternative. Neither is among the reported experimental conditions.

The scores locate the imbalance more clearly than its source

For GPT-4, high precision and lower recall point to two different experiences of the output. A reviewer investigating why an expression was removed would generally find support for the intervention in the reference. A reviewer searching for sensitive information that ought to have been removed would still find misses. Reading these measures together makes incomplete coverage visible without obscuring the improvement in selectivity. The authors use this pattern to explain their interest in additional instructions and possible rule-based assistance.

The next diagnostic question would concern what happened in the missed cases. A process might fail to recognize a value, recognize it but interpret it as outside the policy, or identify the target and perform an incomplete edit. These are possible explanations rather than categories of failures demonstrated by the paper. Each would suggest a different change, and the aggregate recall score does not discriminate among them. Likewise, the low precision for GPT-3.5 establishes disagreement over positive decisions without showing whether the errors center on dates, names, numerical expressions, or other material.

The authors place their results alongside Jiang and colleagues’ recurrent approach and the transformer comparison discussed earlier. Their discussion prints GPT-4 F1 as 0.89732 for the KHCC task when relating it to the LSTM result of 0.8986 on the earlier psychiatric-record task. The comparison illustrates the motivation for seeking strong task performance with less local preparation. Its evidential reach depends on the data and scoring behind each number. Different collections can make different cases common, and choosing a different matching or averaging rule can also change the score. The historical comparison locates the paper within the field. The common-reference comparison of the GPT services supplies its direct evidence.

Limitations

Limits the authors identify

The authors explicitly single out GPT-4’s recall as a priority for further work. They propose refining the prompts, exploring additional instructions specific to the task, and investigating approaches that combine GPT processing with rules. These suggestions follow from the gap between reliable positive decisions and incomplete coverage. Different remedies could affect that balance differently. A rule that triggers on more candidates could catch some missed information and also increase unnecessary edits. The paper gives these directions as future work, so the balance they would achieve remains open.

The discussion also recognizes that the notes come from a single institution. The authors present the checked annotations and the real hospital setting as strengths of the local study and propose collecting or testing data from other institutions. That extension would address variation in which identifiers appear, how records express them, and how different organizations document care. The current experiment supplies a result for discharge summaries at the center that contributed them. Its design contains no comparison across hospitals, document types, or languages.

The authors raise the possibility that synthetic data reproduce or amplify imbalances from the population represented in the original records. A plausible edited collection can still emphasize the groups already well represented in its source. The paper suggests looking for these problems through audits, diversity in the data, and group-level evaluations. It also emphasizes transparent methods and oversight, since users need to understand how synthetic material was produced and what it can represent. These concerns are part of the authors’ discussion of bias, fairness, and safety.

The paper also identifies longer-term performance and integration with clinical work as subjects for further research. A retrospective comparison can check edits against a carefully prepared reference. Routine use raises additional questions about the review process and about how reliably edited documents support their intended uses over time. The authors’ conclusion links these questions to sustaining security and usefulness. The experiment does not supply observations from such a deployment.

What a reader can infer about privacy

In the study, a false negative means that protected information marked by the experts was not successfully dealt with. Because GPT-4’s recall is below complete coverage, the result leaves open which outputs contain such information and what a reviewer would find in them. The paper does not report the share of finished summaries with every reference identifier successfully handled. For research release, that document-level outcome matters because a residual identifier may remain visible amid many correct edits.

A policy written into a prompt supplies the target of an evaluation. Compliance depends on how the output handles the relevant cases. Some categories from the HIPAA inventory may occur infrequently or in forms that are absent from a sample of discharge summaries. The paper lists what the service was told to remove but does not report category frequencies or individual category scores. A reader can say that the workflow was guided by a Safe Harbor specification and scored against checked annotations. The score set does not establish complete compliance across the policy’s scope.

There is also a distinction between removing annotated details and measuring how easily a record can be linked back to a person. The comparison finds agreement or disagreement with a set of PHI labels. It includes no direct assessment of re-identification after the edits. Such a test would involve a different outcome and would need to specify what information a party trying to identify someone could use. A high score on annotator agreement can support confidence in some individual edits while leaving that separate privacy question unanswered.

The study received approval for its retrospective use of the records. The agreement measurements do not evaluate data handling across the wider process, including transmission, storage, or later access. Those stages affect confidentiality independently of whether the text shown in the response contains an identifier. The paper’s procedure describes the conditions under which its evaluation occurred. Extrapolating it to a whole release process would require evidence about controls outside that procedure.

How the scoring description constrains replication

The paper’s equations assume a set of countable decisions. A reader attempting to reproduce the analysis needs to know how those decisions were constructed. Consider the prescribed date edit. The original contains a complete date, while the output retains an allowed component. A scoring protocol needs to decide how to represent the protected part and how to check that permitted information was retained. A similar question arises when only some words in a multiword identifier are removed. Whether to give credit for a partial match affects the number of true positives and false negatives.

The description does not specify the overall matching procedure at that level. Nor does it clearly explain what unit supplies the true negatives. Counting each unchanged word would weight ordinary prose in one way. Counting designated entities only would give the negative set a different composition. These are possible scoring choices, not methods the paper reports using. The authors’ equation makes clear that negatives contribute to overall accuracy, so knowing how the evaluation defines them is important to understanding the size of the reported value.

The absence of raw confusion counts or a complete averaging description also matters for comparing scores. If notes differ in length or identifier density, per-note averages and pooled counts give them different influence. For a reader who wants to reproduce the results, the appropriate path would be to obtain the original counting protocol rather than infer one from printed values. The paper reports the metrics clearly enough to show their descriptive ordering. The analysis is less fully specified as a recipe for independent reproduction.

The expert verification gives the reference a documented quality check. The account would be easier to assess with further detail about the annotation rules in ambiguous cases, how a disagreement moved through verification, and the consistency that resulted. The paper also gives no confidence intervals, formal tests of differences, or variation across repeated requests. Its use of language about significant improvements can be read as describing the observed ordering and size of the scores. The uncertainty of those estimates is unquantified in the paper.

Execution, efficiency, and the reach of the sample

A reader also needs execution details to repeat an API-based experiment closely. The paper identifies the services by their GPT version names. It does not give a complete record of the service revisions, response settings, repeated calls, or procedures for difficulties such as long notes and incomplete responses. These details would help distinguish a difference in the input or policy from differences caused by how the requests were run.

The authors describe the task as deterministic in discussing its structure and expected reliability. In this context, a rule can specify a definite target for an edit, such as which parts of a date should survive. Whether repeated service calls actually produce identical edits is a separate empirical question. The paper does not report a repeatability test on the hospital notes. Its argument that constraints reduce opportunities for unsupported content explains the task design, while the observed agreement scores remain the measurements actually reported.

The computational claim has a similarly concrete part. The workflow uses an existing service without local task training. It leaves open how much computation or staff time the complete process requires. API use can involve service charges and its own processing time, and a review workflow can add effort according to how many outputs require correction. The study presents no measurements of latency, throughput, costs, or staff review time on this collection. The authors’ accessibility argument is therefore grounded in avoiding a training stage, with wider operational efficiency still to be measured.

The selection of 100 notes establishes the size of the evaluated collection. The paper gives limited detail about how those summaries were selected from the center’s records or how well they cover unusual formats and rare kinds of information. The score distribution might change under a different selection from the same institution. Moving to another kind of clinical writing would widen the question further because the purpose and structure of the document could change. The confidentiality of the source records also limits routine replication. The authors describe a request route through the corresponding author, subject to privacy and confidentiality restrictions.

What remains unknown about the edited records

The authors emphasize preserving research value and describe manual and automated review in broad terms. The numerical evaluation focuses on PHI decisions. A precision score offers indirect evidence about a loss of value that occurs when a useful expression is mistaken for protected information. A full clinical fidelity test would ask what exactly the edited note still says about the patient’s care. That could include which treatment is associated with which event, how events follow one another, and whether a qualification remains attached to the right statement. The paper does not report a separate clinical fidelity score for these relationships or a downstream research task using the edited text.

Even a correct policy edit can reduce usefulness for a particular purpose. Keeping the year preserves coarse timing, which may suffice for a research question about the year in which care occurred. A study that requires the exact sequence or interval between events could need more detail than survives. Whether an edited note is useful depends on the proposed analysis as well as on the number of unjustified redactions. The paper’s metrics establish how the editor handled the task targets and ordinary material under its scoring. They do not resolve how each legitimate transformation would affect each research use.

The description of the outputs as synthetic clinical notes also invites care about what the evidence concerns. Editing source summaries leaves each output derived from an existing account. Generating an independent set of patient histories would pose additional questions about how faithfully the collection reflects the clinical and demographic characteristics of its source. The paper discusses the promise and ethical risks of synthetic data, but gives its detailed numerical results for the de-identification of the existing notes. There are no separate reported results on demographic fidelity or group-level editing performance. The study supports a judgment about which service handled the annotated KHCC task better, with the usefulness and representativeness of a resulting research collection still requiring their own evaluation.

What came after

Zambare and colleagues’ 2026 study cites Altalla’ and colleagues and takes up efficiency and generalizability in its title, with fairness as part of its stated framing. Those questions follow from the scope of the hospital experiment. Avoiding task-specific training changes what a hospital has to do before it can evaluate a service. Measuring efficiency would address the work involved across the rest of the process. Likewise, scores from one annotated collection show how an approach performs there, while a study of generalizability asks how its performance carries across settings. The later paper is Towards Fair and Efficient De-identification.

The citation and title establish this connection at the level of the research question. They leave open whether the later study reused the prompts, evaluated the same GPT versions, or examined the same kinds of clinical documents. Its emphasis extends the discussion from the quality of a local de-identification result to the conditions under which de-identification approaches can be compared for efficiency, transfer, and fairness.

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

@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}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/altalla-2025-evaluating-gpt-models-clinical-note/