Elamur Research

De-identifying Swedish clinical text - refinement of a gold standard and experiments with Conditional random fields

Paper · 2010 · Hercules Dalianis and Sumithra U. Velupillai

Summary

A researcher studying clinical notes may need to know what happened during care, while the names, places, and dates in those same notes can help reveal whose care it was. Removing identifying text starts with deciding what the software should look for. A hospital department named only by its specialty can be too general to mark, while a reference that also names the hospital can point to a particular unit. Hercules Dalianis and Sumithra Velupillai investigate how to turn judgments like these into consistent examples for training and testing a Swedish de-identification system.

They begin with a subset of the Stockholm EPR Corpus that had been annotated independently by three readers. Their automatic consensus takes findings from all the readers, including mentions found by only one, and reconciles conflicts using votes and rules. It contains 6,170 annotated instances. For the manual consensus, the group examines disagreements and rewrites the instructions before applying them to the annotations. A weekday is excluded from a date, an address can be marked as a whole, and a health care unit has to be specific enough to identify. This process yields 4,423 instances in the reference the authors call the Stockholm EPR PHI Corpus. PHI stands for protected health information.

The authors use conditional random fields to predict identifying spans from sequences of text. In four-fold cross-validation, where different portions of the collection take turns serving as test material, several experiments reach an F-score around 0.80. This score reflects both how often the system’s detections agree with the reference and how much of the reference it recovers. With the automatic reference, intermediate category groupings give the best results when the predicted span must match exactly. Pooling identifying mentions under a single category gives the best F-score when character overlap can earn credit. The manual reference yields similar overall results with fewer annotations. Partial dates and telephone numbers fare better with it, while places and health care units remain difficult.

The system also points to gaps in the human reference. Of 178 predictions scored as false positives in a manual-consensus experiment, 49 turned out on review to be genuine identifying mentions that the annotators had missed. The authors favor manual reconciliation for future research because it lets them trace disagreements back to their source and decide how similar cases should be treated. They distinguish this improvement in the reference from the question of what someone could infer from a processed record. Even if a detector recovered every mention covered by the guidelines, the clinical account left behind could still help identify a patient.

Deep dive: De-identifying Swedish clinical text - refinement of a gold standard and experiments with Conditional random fields

A study of how annotation rules and conditional random fields shape the detection of identifying details in Swedish electronic patient records. · about 33 minutes to read

The problem and its context

Why researchers need the records themselves

An electronic patient record can support questions beyond the immediate case for which it was written. Clinicians might look for a pattern across records or revisit the details of an individual case. Researchers developing text mining methods need clinical writing on which to test them. Linguists can use the notes to study how people describe care in practice. These uses all depend on the wording of the original material, where the details of interest can appear alongside information that identifies a person.

The Stockholm EPR Corpus illustrates the scale of the problem. According to the authors, it holds more than a million patient records drawn from more than 2,000 clinics. Their research group had access to the collection and wanted clinical and language researchers to be able to work with this kind of material more widely. Reading the entire collection by hand to determine which words to hide was impractical. The research question was how to prepare a smaller body of reliable examples that could support the development and assessment of an automatic detector.

The paper uses de-identification to mean masking or replacing material that can reveal identity. Its immediate experiments concern finding that material. The choice of what to mask matters to both confidentiality and research value. A missed detail can remain visible to the reader. A span that extends into an account of symptoms or care can conceal information that the record is being shared to make available. Before comparing detectors, the researchers thus need a policy for which expressions qualify and how much text each expression occupies.

The authors use protected health information as the starting point for that policy, drawing on the categories associated with the Health Insurance Portability and Accountability Act and adapting them to their material. A broad inventory gives the group places to start looking, such as names, dates, and addresses. It still leaves decisions about the wording people actually use. A day of the week, for example, supplies temporal information. Whether it belongs in a date annotation depends on what the research group intends that label to capture.

Identifying a mention and deciding how much to mark

The paper relates the work to named entity recognition, the task of finding mentions in text and assigning them categories. A location and a health care institution can be distinct entities even when their names contain the same word. A reader can also recognize that a passage refers to a particular institution while disagreeing with another reader about where the mention ends. For this application the category and the span matter together. The category gives a reason for treating the text as identifying, and the span determines which characters a later masking or replacement step could affect.

Linguistic annotation records these decisions in a form that can be inspected and reused. As the authors explain, an annotated collection can provide evidence about the writing itself and examples for software development. For the first purpose, the marks should make differences in the writing visible, such as the forms authors use to refer to a hospital. For the second purpose, they should be consistent enough to serve as expected answers. If the meaning of a label changes from one annotator to another, it becomes harder to tell whether a pattern in the marks describes the language or the people who labeled it.

The paper points to the Message Understanding Conferences as a precedent for constructing named-entity resources. It also draws on earlier work that asks a more basic question about such resources. When instructions say to recognize a certain type of entity, what do the annotators understand the type to include? In a de-identification task, examining that question means looking at cases where readers differ over whether a mention is present, cases where they select different words, and cases where they give the same words different labels. Each kind of disagreement can call for a different change to the instructions.

Clinical writing makes the distinctions hard to apply uniformly. The paper describes notes with noisy language, irregular grammar, and variation in how an entity is written. One facility might be given by a formal name in one record and by an abbreviation alongside a locality in another. Earlier work discussed in the paper had encountered variations in the written forms of clinical entities even when its task was unrelated to privacy. For de-identification, such variation is especially consequential when a detector locates only the most familiar portion of a longer expression.

The approaches the authors considered

The paper groups existing de-identifiers by how they decide what to mark. Some use rules and dictionaries. A rule can specify a textual pattern, and a dictionary supplies entries against which wording can be checked. Others use machine learning to learn from labeled examples. These approaches place different demands on the people creating a system. A rule depends on an explicit description of a useful signal. Learning from annotations depends on examples that show how a signal should be interpreted across different passages.

The authors describe rule-based work on English clinical material, including Scrub and De-id. They also mention Medina for French and earlier Swedish work by Kokkinakis and Thurin on entity references in hospital discharge letters. Statistical work on English records includes Stat De-id and systems developed for the i2b2 challenge. Conditional random fields had been used in that comparative setting and in a separate study of disorder mentions. This earlier work gave the authors a reason to use the same type of classifier for the Swedish experiment while directing their own effort towards the construction of the reference.

The studies they discuss make different demands of a detector. A collection of nursing notes, a set of pathology reports, and a set of discharge letters can differ in their vocabulary and in the kinds of identifying references that occur. A study may combine mentions under a broad category that another study divides by role or subtype. Languages can also differ in how the relevant expressions are written. A useful comparison therefore needs to account for the clinical material and the definition of the target as well as the method used to find it.

The Swedish study joins two questions that a larger de-identification project has to answer. The first is whether people can turn provisional annotation rules into a reference with a coherent account of difficult cases. The second is how well a detector can reproduce the resulting annotations. The amount of labeled material and the choice of categories both bear on the second question. The authors use alternative forms of the same starting annotations to examine those decisions without switching to a different source collection.

The method, step by step

Recover the original annotation decisions

The starting point is an annotation exercise on 100 patient records containing structured information as well as free text. The authors report 380,000 tokens in this material. A token is a text unit used in processing, such as a word or a piece of punctuation. Tokenization is the division of text into such units. In these records, a written form can convey a sensitive detail through part of a token, creating a choice between marking just those characters and marking the complete unit on which the recognizer operates.

Three annotators had read and marked the records. The project began with 18 PHI classes and made adaptations and additions, specifying 40 classes in all. That inventory included four nested classes, which allowed one annotation to be placed inside another. In practice the annotators used 28 of the 40 classes. The group had deliberately given itself room to discover what kinds of identifiable information the records contained. The resulting labels were exploratory enough to reveal disagreements that would matter for later use.

The original annotations had an average inter-annotator agreement of 0.65 F-score over the instances of the classes. Inter-annotator agreement describes how closely readers’ judgments coincide when they work on the same material. Here the figure concerns agreement among people, before the classifier experiments. It gives an indication of the extent of disagreement across the exercise. The individual marks are what let the researchers investigate whether disagreements cluster around certain categories or kinds of boundaries.

The authors refine these annotations into separate gold standards. A gold standard is the working reference used to specify expected answers. In this experiment it serves two roles, teaching the recognizer from examples and supplying the answers used to score new predictions. Each route starts with the existing readers’ work. The automatic route prioritizes retaining potential findings and settling conflicts among the marks. The manual route gives the reviewers an opportunity to reconsider the rules that produced the marks in the first place.

From independent annotations to evaluated identifying spans

The steps in order.

From independent annotations to evaluated identifying spansStep 1: Start with the readers’ original markings1. Start with the readers’ original markingsStep 2: Reconcile marks using rules or revised guidelines2. Reconcile marks using rules or revised guidelinesStep 3: Set the category inventory for the run3. Set the category inventory for the runStep 4: Divide the available material into folds4. Divide the available material into foldsStep 5: Train on the folds outside the test set5. Train on the folds outside the test setStep 6: Predict identifying spans in the held-out text6. Predict identifying spans in the held-out textStep 7: Score exact matches and character overlaps7. Score exact matches and character overlaps

Preserve candidate mentions in the automatic consensus

The automatic consensus begins by pooling the sets of annotations. The authors want to retain a mention even when only one reader has found it, given the importance of avoiding omissions in de-identification. A single reader’s mark can then contribute an example the other readers missed. Pooling also retains marks that reflect one reader’s broader interpretation of a category. The inclusion policy therefore favors keeping possible identifying material for the reference.

When readings conflict, majority judgment gets priority. If annotations cover nearly the same mention but differ in their endpoints, the procedure uses the longer span. Consider what this does to the resulting reference. The pooled annotations can show that the readers agreed on the presence of a mention, even if they disagreed on whether an adjacent word belonged to it. The rule resolves that case by giving the recognizer an example that includes the disputed material, and by requiring a prediction with that extent for an exact match.

Category conflicts can persist when the vote is tied. The authors inspect common mismatches and write rules to settle those cases. Their example concerns a first name marked by two readers. One uses First_Name while the other uses Clinician_First_Name. The fallback rule selects the more specific clinician label for that conflict. This is a human decision applied systematically. The automatic consensus incorporates manual work in the design of the reconciliation rules, and its name refers to the way the rules are used to produce the reference.

The process yields 6,170 instances. From this reference, the authors produce several versions for the classifier. They begin with the classes used in the original annotation and progressively fold related labels into broader ones, sometimes dropping infrequent categories. The broadest configuration uses a general PHI label. These variants let the authors see how the detector behaves when the same kinds of identifying expressions must be recognized at different levels of detail.

Find the reasons for disagreement in the manual consensus

For the manual route, the annotators need to see how individual decisions combine. The researchers construct pairwise matrices that let them compare each reader’s annotations with another reader’s work. They also make an agreement table tracking how the labels were assigned across annotated instances. The resulting view covers over 7,000 instances under review, and the totals for individual annotators could differ by over 1,000 instances. Those figures characterize the original readings brought into the analysis. The corpus sizes after reconciliation refer to what remains under the decisions of each route.

The distribution gives the reviewers a place to focus. Health care units are the largest class by instance count, yet agreement about them is particularly weak. The name classes have the strongest agreement. Some classes taken from the starting privacy inventory, including social security numbers and medical record numbers, have no instances in these annotations. This is a different kind of problem from frequent disagreement. A common class with low agreement gives the group many cases to discuss. An absent class offers no observed examples with which to examine whether an instruction is clear enough to apply.

When disagreement is frequent, a vote can settle individual pairs of markings while leaving its cause in place. The group instead discusses how the instructions were understood and agrees on revisions. The resulting decisions define which mentions qualify, where marks start and end, and when distinctions among labels should be retained. The final reference is then created semi-automatically. The discussion establishes the policy, and programming helps apply it to the earlier annotations.

Set the boundaries for ages, dates, and addresses

One revision asks annotators to mark whole tokens. The Swedish 34-årig expresses an age of 34. Someone highlighting only the digits has found the information that gives the age, but the revised annotation covers the entire written form. That gives the corresponding example a clear extent at the level used for exact matching. The instruction also tells the annotator how to handle a disagreement that could otherwise recur wherever an age is written as part of a larger form.

The group keeps separate labels for a date expressed in full and a date given only in part. It excludes weekdays from date annotations. The rule has a different effect depending on the starting mark. If a reader has marked a weekday as an instance of Date_Part, the instance no longer qualifies. If the weekday appears with an otherwise qualifying date, the revised instruction determines where the date annotation stops. The category retains the distinction the group wants the recognizer to learn while its scope becomes more explicit.

The location revision pools street addresses, towns, municipalities, countries, and organizations under Location. Readers had often applied competing labels to the same material within that group. The new class supplies a common answer and also changes how long a mark can be. An address with a street, postal information, and a locality is treated as an entire expression. Giving the detector examples with the complete address is relevant to both exact recognition and any eventual use of the detected span to hide the address.

The reviewers drop the relationship and ethnicity classes. In their judgment, the mentions covered by those labels carried little risk of identifying a particular patient in the setting under study. That change concerns what belongs in the reference. The whole-token instruction, by comparison, concerns how to mark an expression that has already qualified. A detector can encounter differences in the training data for either reason, so the two kinds of change matter when interpreting the later scores.

Determine when a unit points to a specific institution

For health care units, the group makes specificity a condition for marking. A reference to geriatrics can indicate the specialty involved without pointing to a particular department. A hospital designation can give that same department reference a more specific interpretation. Once the group’s criterion is met, the annotator takes the longest span that belongs to the mention. Applying the instruction therefore involves interpreting the reference before deciding how far the selection extends.

The Karolinska examples show what the rule has to handle. Huddinge and Solna are associated with sites of Karolinska University Hospital, and location names can be included in the unit designations. In the notes, the hospital and locality can appear together with an abbreviation or punctuation. A ward can be specified by its number in relation to the hospital. Each form gives the reader information about the unit, but the cues for how its words fit together differ from one expression to the next.

A locality can also be used independently of the unit designation. The paper treats Solna as a location when a note refers to Karolinska in Solna. The wording gives the place a separate role. By contrast, a locality that forms part of the hospital designation can belong in the span marked as a health care unit. The longest-span instruction therefore depends on whether the words form one institutional reference. Proximity alone gives the annotator too little information to decide.

The group leaves some discretion over when a unit counts as general. Its examples guide the annotators, while the available instructions still require judgment about unfamiliar expressions. Applying the revisions removes earlier marks on generic units and weekday-only date mentions, among others, and produces 4,423 instances. The authors designate this manual consensus as the Stockholm EPR PHI Corpus. They describe broader availability as a future intention.

Train the detector on the categories chosen for each run

The authors use the Stanford Named Entity Recognizer, with a conditional random field classifier and the same default configuration across experiments. A conditional random field scores possible sequences of labels given the text. A position’s label can be considered alongside labels at nearby positions. This helps explain its relevance to span detection. Recognizing evidence of an address at one position leaves a further question about whether the surrounding text forms part of that address. The classifier returns a sequence from which the detections can be read.

The authors describe the defaults as including distributional features with n-grams up to size six. An n-gram is a sequence of adjacent units, with the letter n specifying how many it contains. The classifier can therefore use recurring patterns spanning different lengths as evidence for a label. The paper specifies its implementation through the recognizer, its defaults, and this feature description. It gives no equations for the classifier or the metrics.

The expected labels are set before the recognizer is trained. On the manual consensus, the authors pool the role-specific first-name categories and do the same for last names. They retain the distinction between first and last names. They also combine Age_Over_89 with Age. The other targets cover full dates and partial dates, health care units and locations, and telephone numbers. No classifier run uses nested annotations, so the experiments evaluate predictions against reference spans without requiring a second mark inside a larger one.

A relabeling decision changes what the classifier has to learn. Pooling first names across the people in a record allows the patterns associated with the shared category to contribute to the same decision. Keeping the last-name category distinct still asks the classifier to mark the two sorts of names separately. The automatic-consensus series eventually goes further by removing distinctions among kinds of PHI. Each setting specifies its own expected output, which is why the type of prediction required matters when comparing its scores with those from a more detailed setting.

Give each part of the collection a turn as test material

The main evaluation uses four-fold cross-validation. The authors divide the data into four equally sized subsets. In each round, the recognizer learns from the subsets outside the current test fold and is evaluated on the fold kept aside. The test role moves to a different fold in subsequent rounds. This lets the researchers assess predictions on held-out text throughout the collection while using the annotated material for training in other rounds. They choose the fold count to keep processing time manageable.

The manual consensus is also evaluated with ten-fold cross-validation. Each test portion is smaller under that arrangement, so a larger share of the same reference is available for training in a round. This gives the authors a way to ask whether the detector benefits when it sees more training examples. The source of those examples, the annotation policy, and the recognizer configuration stay fixed. The change is in how the available material is allocated between training and testing.

Experiments and results

The comparisons made on the Swedish records

The initial automatic-consensus experiment provides the study’s internal baseline. It uses 28 classes and 6,170 annotated instances in the 380,000 tokens of the selected Stockholm material. The initial setting represents the fullest inventory used for automatic consensus. The later automatic settings test alternative groupings with the same recognizer, making the comparison primarily about the labels it is trained to predict. The Swedish experiments give no performance figure for a competing recognizer on these records.

The authors report seven automatic-consensus experiments under four-fold cross-validation. The manual reference, containing 4,423 instances, is evaluated under four-fold and ten-fold cross-validation. As a result, the comparison between the references is made at the common four-fold setting, while the additional run on the manual consensus addresses the availability of training data. The authors describe the overall F-score as around 0.80 in several four-fold experiments across the references. That is an approximate description of the level achieved across runs, rather than a score assigned to any particular configuration.

The initial four-fold experiment on the automatic consensus took around 8 hours on the authors’ server. That measurement covers the run with the full inventory used in the initial experiment. It helps explain the choice to use four folds for the main comparisons. The article’s main discussion gives the order of the strongest Swedish settings and describes class-level patterns. It places the detailed scores for those configurations in supplementary tables.

What gets counted as a detection

Precision and recall answer different questions about the classifier’s output. Precision asks how many returned instances qualify as correct under the scoring rule. Recall asks how many eligible reference instances are found. These questions use different totals. A recognizer that returns very few spans can be right about much of what it returns while overlooking many of the annotated items. F-score combines precision and recall, giving a higher value when the system performs well on both.

In this application, the authors give special weight to recall as a practical priority. If a detector misses a span, a later masking step based on its output could leave that material visible. An extra detection can remove useful text. Both are consequential, but the authors designed their automatic consensus to err on the side of keeping possible targets in the reference. Their choice to retain instances noticed by an individual annotator follows that priority.

The study uses both exact and partial matching. An exact match reproduces the annotated instance at the token level. Partial matching can give credit for overlap at the character level. Consider an address with a street and a locality. A prediction that picks out only the street can overlap the annotation while leaving the exact match unsatisfied. The evaluation can therefore distinguish some ability to find where an identifying expression occurs from the ability to reproduce its full extent.

A partial match can also cover too much. A detector might find an entire date and include a neighboring weekday that the manual instructions exclude. Another prediction might find only part of the date. Both can overlap the target, but they have different effects if used to mask the record. An overlap score indicates that the detector found some of the relevant text. Determining what would remain visible, or what useful text would be removed, requires looking more closely at the spans.

Earlier numerical results and what they compare

The paper reports numerical results from earlier work to explain the choice of classifier. The first i2b2 challenge involved 889 English discharge letters. The authors describe a training portion of 470,000 tokens with 14,000 annotated instances, and a test portion of 140,000 tokens. A CRF system in that challenge achieved an F-score > 0.95. The result characterizes the English discharge-letter task with its own categories and experimental setup.

The authors also discuss an English clinical study with a direct comparison between conditional random fields and support vector machines. Its target was the recognition of disorder mentions. The study used 1,265 annotations for training and 292 for evaluation. That comparison gives the reader a benchmark for how the methods performed on a shared set of English clinical examples. The Swedish experiment uses the result as motivation to select a classifier for a new target.

Classifier F-score on the cited English clinical disorder annotations

Conditional random fields led the comparison on recognition of disorder mentions.

Classifier F-score on the cited English clinical disorder annotationsSupport vector machines: 0.64Support vector machines0.64Conditional random fields (this paper): 0.86Conditional random fields (this paper)0.86
The numbers
System or settingF-score
Support vector machines0.64
Conditional random fields (this paper)0.86

The chart reports the earlier comparison. In the Stockholm experiments the classifier stays fixed, and the authors compare what it learns from different specifications of identifying information. The earlier studies thus help explain why conditional random fields were worth trying. Their scores describe tasks with different languages, subject matter, class inventories, and forms of evaluation.

Automatic consensus favors different groupings under different match rules

Precision is high for the automatic-consensus configurations under both matching criteria. Recall changes more with the criterion. It is lower when predictions must recover the exact span than when character overlap is enough. An aggregate summary of precision can therefore give a favorable impression of the returned detections while leaving a substantial distinction in how fully the recognizer recovers the targets.

Experiments 3 and 4 produce the best exact-match results in the automatic-consensus series. They use 16 and 13 annotation classes, respectively. These are intermediate grouping schemes between the original inventory and the common PHI label. The result shows that the recognizer can benefit from combining related types while some distinctions still help in recovering the complete expected span.

Under partial matching, the largest merger yields the highest F-score. In that setting, a common PHI label covers the different sorts of identifying material. The evaluation asks for a broader decision about the overlapped expression. Its leading score describes that broader recognition task. Which grouping looks strongest therefore depends on whether success means finding some of the annotated material or returning an exact annotated mention.

The move from experiment 4 to experiment 5 brings a pronounced drop in exact performance. In their review of the results, the authors link much of it to excessive name detections after first and last names are pooled under Name. The decline is milder under partial matching. That pattern points toward boundaries as one part of the problem. The paper suggests initials and titles as possible contributors because they can occur near the words assigned to the name classes.

Manual consensus performs similarly overall with a different set of examples

The four-fold results on the manual consensus are broadly similar overall to those from the automatic reference. The authors see this as encouraging because the manual route supplies fewer annotated instances. Its smaller count reflects changes in the definition of an eligible expression as well as changes in labeling. The result shows that the manual reference is sufficient for recognition at a similar aggregate level on its own targets.

Two classes have better reported results on the manual consensus, Date_Part and Phone_Number. For partial dates, a reader can connect the change in the task to a concrete revision. Weekdays that were accepted as date fragments by some readers now fall outside that category. This gives the recognizer training examples and test targets drawn from a narrower definition. The better result for telephone numbers is also reported as a class-level finding. The paper gives no corresponding telephone rule whose separate effect could account for that improvement.

Location and health care unit predictions remain relatively weak. A word such as Huddinge can designate a place or belong to an institutional reference. The local context has to support the distinction, and different spellings or abbreviations can change the evidence available to the classifier. Several classes pooled into Location had few examples to begin with. The authors identify both ambiguity and sparse training evidence as plausible reasons for the difficulty.

The difference between exact and partial results is generally less pronounced on the manual consensus. The revised instructions devote particular attention to boundaries, which gives this pattern a clear connection to the reference work. The complete-address rule extends some selections, and the weekday rule limits others. The manual reference also excludes some earlier annotations entirely. The reported difference in scores describes the combined effect of evaluating on this revised set.

The ten-fold evaluation yields considerably better results for most manual-consensus classes in the authors’ account. More of the available collection contributes to training in each round. The improvement gives some support to the idea that additional annotated material can help, including where the current reference offers relatively few examples. The evidence comes from using the existing examples in a different allocation, so it speaks directly to that change.

Review reveals some of the reference’s omissions

The authors examine predictions scored as false positives in a manual-consensus experiment. A false positive in the initial evaluation is a detection that fails to find a corresponding answer under the reference and its scoring rule. The experiment produces 178 such predictions. When the authors look again at the text, they confirm that 49 are genuine instances that the annotators had missed.

These recoveries include first names and last names, locations and health care units, and full and partial dates. The result matters because the manual consensus was constructed by inspecting disagreements among the original readers. If all readers passed over a mention, their original marks would supply no disagreement about it for the group to examine. A detector can make such a passage visible by selecting it during evaluation. Human review can then determine whether it belongs in the reference.

The audit separates some failures of the reference from failures of the classifier. It also gives a concrete reason to inspect examples behind the scores. When a system marks a correct first name that people missed, the original precision calculation treats a useful detection as an error. When both people and the detector pass over an eligible expression, neither the false-positive review nor the ordinary reference score will draw attention to it. Those two situations have different implications for what an annotation audit can establish.

What the ablations show

Regrouping changes the learning problem and the expected answer

The main controlled changes concern category grouping and the amount of the collection available for training. In the automatic-consensus series, the classifier settings are held constant while categories are combined. Pooling related classes can give the classifier more examples for a common decision. If readers have sometimes attached different labels to similar expressions, a merger can also reduce inconsistency among the examples used to teach that decision.

The result is scored against the regrouped labels. If a system must distinguish a first name from a last name, then assigning the wrong one is an error even when it locates the right words. A broader category can accept that same span under its own requirements. The progression thus changes both the evidence available in training and the distinctions required at evaluation. Its strongest findings concern the suitability of the tested category schemes for the outputs the authors ask them to produce.

The exact-match result puts a limit on the appeal of pooling. Combining many kinds of PHI means that one label can apply to a variety of written forms, from a short date fragment to a multiword institution. The strongest intermediate settings preserve some distinctions among those forms. The single broad label works best under the criterion that asks for overlap, consistent with the idea that a shared class can help flag a region of interest even when its full extent remains difficult to predict. The runs establish the two rankings. They leave the contribution of any individual class merger mostly unresolved.

The name result gives a closer view of a particular transition. Splitting first names and last names provides examples with different targets even when those words occur beside one another. Pooling them changes the patterns of labels the classifier is asked to return. The authors observe excessive name predictions and a sharper decline in exact matching than in partial matching. This supports looking at the spans that were produced. The possible roles of titles and initials are interpretations from the authors’ analysis, with no separate experiment that alters the handling of either one.

Some configurations also remove rare categories. A series that both pools labels and omits some targets can reveal where the strongest configurations lie, while leaving several possible reasons for the change in score. A merger can affect the number of examples available per label, the consistency of their assigned types, and the range of spans associated with the common category. Omitting a class changes which instances count at all. The results are therefore most precise when read as comparisons of complete label inventories.

The reference comparison tests two processes at once

The automatic and manual routes offer different responses to inconsistent annotations. The automatic route gives a definite answer to a conflict among existing marks and preserves cases found by an individual reader. The manual route can turn a recurring conflict into a new instruction, as happens with generic departments and weekdays. These processes can produce differences in how often a category occurs, in what qualifies for it, and in the required extent of the mark.

The similar aggregate scores show that the manually refined collection supports a detector on the revised task in spite of its smaller number of annotations. The class-level outcomes add detail. Partial dates and telephone numbers improve, whereas the manual treatment of locations and health care units still leaves difficult distinctions. Together these findings indicate that refining a reference can address some sources of inconsistency while leaving a recognizer with substantial problems in other classes.

A useful way to read the exact and partial results is to consider how frequently the two criteria diverge under each reference. The smaller separation for manual consensus is consistent with the group’s effort to settle what belongs inside a span. It could also reflect which cases the instructions exclude. A generic unit whose annotation would once have posed a boundary problem is absent as a target in the new reference. Because the revisions occur together, the results describe the outcome of the review process as a whole.

According to the authors, implementing the automatic consensus required about a week and a half of work, including tasks done by hand. Reaching a consensus manually took about two and a half weeks, with programming included in that time. The shorter process can resolve conflicting labels and boundaries systematically, while previous errors can survive the rules. Manual reconciliation gives readers time to identify why a conflict arises and specify how future cases should be treated. The authors’ preference for the manual reference reflects that control as well as the recognition results.

The fold comparison and error review answer narrower questions

The ten-fold run is a comparison within the manual consensus. It uses the same class policy, source collection, and classifier setup as the four-fold run. In each round of the ten-fold evaluation, fitting has access to a larger share of the examples, and the held-out portions also change. Improvement across most classes is consistent with a benefit from more training material. The comparison gives no separate account of how quickly each class benefits as examples are added, or how the recognizer would respond if the new examples came from contexts the existing collection scarcely represents.

The error review directs attention to prediction quality under a reference that can be incomplete. It establishes that some items originally scored as mistakes qualify under human inspection. Since all the inspected items enter the review through classifier detections, the analysis is most informative about genuine instances that the classifier was able to find. It cannot provide a general count of missed annotations across the records.

There is no feature ablation. Keeping the Stanford defaults fixed prevents changes in the feature configuration from driving the category and fold comparisons. It also leaves open which textual cues are most responsible for success or failure. The study’s analyses are consequently about the design and completeness of the training and test references, and about the amount of those references used for training in a round.

Limitations

Limits the authors identify

The authors regard the annotated material as relatively small and point to a shortage of examples in particular categories. A label can be important for privacy even if eligible expressions rarely occur in the sample. The original annotation review finds no instances for social security numbers or medical record numbers. The authors also expect patient names to be scarce. Stronger recognition results for the name categories overall therefore leave open how much training evidence exists for a specific patient-name category.

The paper suggests that rules and dictionaries could help with identifiers for which training instances are hard to obtain. It also describes active learning as a future approach to acquiring useful annotations. With active learning, a detector can help choose material for a person to annotate, aiming to make better use of the available human effort. The proposals respond to different aspects of the data shortage. Rules can supply evidence where labeled cases are scarce, while active learning concerns how new human judgments might be obtained. The experiments report no outcome for either proposal.

The authors recognize that their classifier configuration leaves room for further investigation. They use the default features throughout and call for study of other features and ways of weighting the evidence. Context is particularly relevant when the same locality name can occur in an institutional designation or as a separate place reference. The reported performance describes what the defaults achieve with the given annotations. It gives no estimate of the improvement that a more specialized configuration might achieve.

The revised instructions still give annotators discretion in deciding whether a health care unit is sufficiently specific. The question is consequential because those mentions are common and take many forms in the records. A short reference can acquire specificity through a hospital name or another part of the expression, and a nearby location can have a role of its own. The examples guide the annotator, but a general rule for every such case remains beyond what the authors specify.

Their recommended inventory includes age, names, partial and full dates, locations, health care units, phone numbers, email addresses, and social security numbers. It further distinguishes names by whether they refer to a patient, clinician, or relative. The recommendations express the authors’ judgment about important types of identifying information. Their privacy qualification is broader than any of the category decisions. Perfect detection of the recommended classes would still leave the possibility that the remaining information could identify someone.

Limits visible in the study design

The source collection is extensive, but the reported scores come from cross-validation within the annotated portion. Holding out a fold separates the current training examples from the material used to test that round. It provides limited evidence about changes in writing conventions between collections. The experiment does not test the classifier on a new set of clinical records with a separately prepared reference, so recognition in such a setting remains an open question.

The paper specifies the fold counts and the equal sizes of the primary subsets. It leaves the distribution of recurring hospitals, recurring names, and patient records across those folds unspecified. A facility name can occur in both training and test text if records are divided without holding out particular facilities. The reported evaluation does not establish how the detector would behave when such recurring expressions are grouped entirely into one side of the split. This matters when interpreting performance on a recognizer whose inputs include patterns in sequences of text.

A common test reference would be needed to isolate the effect of training on annotations from one consensus or the other. The reported comparison evaluates each consensus against its own answers. Removing weekday annotations changes the set of instances in the denominator of recall. Revising a location span changes the prediction accepted under exact scoring. Broadening a category changes which labels count as right. Similar aggregate scores are therefore evidence that each reference supports recognition of its own targets at a similar level, with the other effects of reconciliation mixed into that comparison.

The proposed inventory and the tested inventories serve different purposes. A proposal can include an important identifier even when the annotated collection contains no examples for it. It can also retain distinctions that the classifier runs pool, such as the roles of the people whose names are marked. The Swedish results for broad first-name or last-name categories cannot supply separate performance estimates for all those roles. A detector trained to return a more detailed designation would face an additional decision.

The error audit gives a defensible count of omissions discovered among the detector’s apparent false positives. Its sampling frame consists of spans the detector already returned. An eligible mention omitted by every reader and by the detector has no opportunity to appear in that review. The verified findings are direct evidence that the manual reference is incomplete, while the total number and distribution of its omissions remain unknown.

Finally, exact and partial scores concern agreement with spans specified in a reference. They help locate problems with recognition and boundaries, which would matter to any later masking process. They do not measure whether all identifying information has disappeared from a record or how much useful content would survive masking. In particular, character overlap can leave a meaningful portion of an identifying expression visible. A study of disclosure from the remaining narrative would require observations about that narrative and what a reader could infer from it. The present experiments support claims about the detection step.

What came after

The closest later study in subject is the 2020 work on semisupervised de-identification of Swedish clinical text. Its approach uses labeled examples together with material that has yet to be labeled. This addresses the supply of training evidence, a constraint that Dalianis and Velupillai draw attention to when they discuss infrequent classes and the time needed to reconcile annotations. The earlier paper studies how to improve labels already collected and how the classifier responds when it can train on more of them. The later work tackles the same Swedish detection problem with a way of learning that can draw on unlabeled text. The citation connects the studies through that task, with reuse of particular records or rules left unspecified. A Semi-supervised Approach for De-identification of Swedish Clinical Text

A 2021 study takes up Swedish clinical writing through continued pretraining of generic BERT on data from the clinical domain. That approach uses further training on the target domain to adapt a system that has already been trained. The connection to the de-identification paper lies in their shared attention to the language of clinical records. Dalianis and Velupillai describe abbreviated institutional references and variable wording as concrete problems for determining the class and extent of a mention. The later study addresses adaptation to clinical writing more broadly. Its citation puts the de-identification work in that research context without establishing which privacy procedures the later study used. Swedish clinical BERT

Another 2021 study creates and evaluates a synthetic Norwegian clinical corpus for de-identification. The earlier Swedish work starts with existing patient records and examines how human markings on those records can be reconciled. The Norwegian study makes a constructed corpus the object of creation and evaluation. Both efforts concern the kind of material researchers can use to study de-identification, with a different source of clinical text in each case. The title and citation support that connection. They leave open how directly the Norwegian work used any Swedish category definitions or span rules. Synthetic Norwegian Clinical Corpus for De-Identification

The 2025 work on natural language processing for Scandinavian electronic health records brings Norwegian, Swedish, and Danish into the same scope. The Swedish de-identification experiment is relevant to that wider subject because it documents decisions about clinical wording and annotation in one of those languages. Its distinction between a location used on its own and the same locality inside a unit designation illustrates the kind of decision a clinical text resource has to specify. The later citation places that experiment in a multilingual clinical research area. It supplies no account of transferring the classifier or reference to another language. Natural Language Processing for Scandinavian Electronic Health Records

Cite

Cite as Hercules Dalianis and Sumithra U. Velupillai. 2010. De-identifying Swedish clinical text - refinement of a gold standard and experiments with Conditional random fields. Journal of Biomedical Semantics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1186/2041-1480-1-6

@article{dalianis2010de,
  title = {{De-identifying Swedish clinical text - refinement of a gold standard and experiments with Conditional random fields}},
  author = {Hercules Dalianis and Sumithra U. Velupillai},
  journal = {Journal of Biomedical Semantics},
  year = {2010},
  doi = {10.1186/2041-1480-1-6},
  url = {https://doi.org/10.1186/2041-1480-1-6}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dalianis-2010-de-identifying-swedish-clinical-text/