---
title: "De-identifying Swedish clinical text - refinement of a gold"
description: "This study compares two ways to label identifying details in Swedish patient records and tests how well conditional random fields detect them."
canonical: "https://research.elamur.ai/free/en/papers/dalianis-2010-de-identifying-swedish-clinical-text/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/dalianis-2010-de-identifying-swedish-clinical-text/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2010](https://md.research.elamur.ai/free/en/papers/2010/) / De-identifying Swedish clinical text - refinement of a gold standard and experiments with Conditional random fields

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

Paper · 2010 · Hercules Dalianis and Sumithra U. Velupillai

**Authors:** [Hercules Dalianis](https://md.research.elamur.ai/free/en/authors/hercules-dalianis/) and Sumithra U. Velupillai · **Year:** 2010 · **Venue:** Journal of Biomedical Semantics · **Licence:** [CC BY (OpenAlex best open-access location)](https://creativecommons.org/licenses/by/4.0/)

[**54** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2124216778) · [Cited by **14** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/dalianis-2010-de-identifying-swedish-clinical-text/cited-by/) · [Journal of Biomedical Semantics](https://openalex.org/S172276550) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://jbiomedsem.biomedcentral.com/counter/pdf/10.1186/2041-1480-1-6)
- [DOI 10.1186/2041-1480-1-6](https://doi.org/10.1186/2041-1480-1-6)
- [OpenAlex](https://openalex.org/W2124216778)

Citations: OpenAlex, 2026-10-14.

## Summary

Swedish electronic patient records contain clinical observations that researchers could use to study care and the language in which it is documented. Access is difficult because the same notes can disclose who received care. Before software can help remove identifying details, people need to agree on what counts as one and how much text it covers. A hospital name, for instance, can include a place name that would be labeled differently in another context. Hercules Dalianis and Sumithra Velupillai study how such decisions affect the training and evaluation of an automatic de-identification system.

The authors start with records from the Stockholm EPR Corpus that three people had already annotated. They reconcile those judgments in two ways. The automatic consensus retains individual annotators’ findings and uses rules to resolve disagreements, producing 6,170 annotated instances. The manual consensus begins with a review of the disagreements and uses revised guidelines to settle questions such as whether a department is specific enough to mark and whether a weekday belongs in a date. Applying those decisions produces a smaller reference set of 4,423 instances, called the Stockholm EPR PHI Corpus.

The authors train a conditional random field classifier, which assigns labels across a sequence of text, using each reference in turn. Several experiments yield an F-score of around 0.80 in four-fold cross-validation. Combining related categories can help, but the best grouping depends on how predictions are scored. Intermediate groupings perform best when the system has to match the reference span exactly. A single broad category for identifying information does best on partial matches in the automatic-consensus experiments. With the manual consensus, results for partial dates and telephone numbers improve, while locations and health care units remain difficult.

Reviewing the system’s apparent false alarms reveals another problem with the reference. In a manual-consensus experiment, 49 of the 178 predictions counted as false positives turn out to be identifying details that human annotators missed. The authors favor the manually reconciled reference for future research because it gives them more control over what its labels mean. They also distinguish performance on those labels from the larger privacy question. Even perfect detection of the categories they define would leave open the possibility that someone could identify a patient from what remains.

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

This study compares two ways to label identifying details in Swedish patient records and tests how well conditional random fields detect them. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What stands between a clinical record and a research corpus

An electronic patient record provides material for more than one kind of inquiry. A clinician may want to examine a particular case or look across many cases for patterns. A computer scientist may want to build tools for finding details in narrative notes. A linguist may want to study which expressions clinicians choose or how they compress information in writing. All of those activities depend on access to the records themselves. A research collection becomes difficult to share when descriptions of illness, treatment, or contact with a clinic can be associated with a particular person.

The Stockholm EPR Corpus illustrates the scale of this problem. According to the authors, the collection contains more than a million patient records drawn from upward of 2,000 clinics. The annotated portion studied in the paper is much smaller. The full collection motivates the work because manual review across that volume is impractical. The smaller portion makes it possible to specify a task, collect examples of what people would remove, and measure how consistently software can find those details.

De-identification involves masking or replacing information that may reveal a person’s identity. In a narrative note, the system first needs to find the relevant passage. Once found, that passage has a beginning and an end, and it can be assigned a type such as a first name or a date. The authors use the term *protected health information*, abbreviated PHI, for the identifying details considered in their task. Their earlier guidelines used the PHI categories from the US Health Insurance Portability and Accountability Act, adapting them for the Swedish material. The category inventory is part of the research design because it specifies which clues an annotator is expected to notice.

How much text to mark is also a question about how much clinical information can be retained. Marking a specific unit may help conceal where a patient was seen. Marking every generic mention of the same specialty can remove information about the care described in the record. At the same time, a narrowly marked span can leave part of a specific name visible. Both decisions depend on the language around the mention. Rules that are clear for fully written names can be harder to apply where a clinician has abbreviated a hospital name, added a location after a separator, or referred to a unit by shorthand.

#### Why identifying a span is a language task

The paper relates de-identification to [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), the task of locating and categorizing mentions such as personal or place names in text. A recognizer may have to decide whether a string denotes a town, forms part of an institutional name, or has some other function. The contribution of the surrounding text matters because the same string can receive different labels in different passages. For de-identification, the consequences of such a choice also depend on how a later masking or replacement procedure uses the span.

The authors describe [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) as serving both empirical study and the development of automatic systems. A human-labeled collection lets researchers see how often different kinds of references occur and which decisions annotators find difficult. It also supplies examples that a classifier can learn from and a reference against which its predictions can be scored. For both purposes, the labels need to be defined well enough that readers know what an occurrence represents. An apparent disagreement about whether a name exists may in fact arise because two people chose different boundaries for the same name.

Earlier work on named entities, including resources associated with the Message Understanding Conferences, supplied a precedent for marking passages and assigning categories. The paper also cites work that treats the definition of those categories and their interpretation by annotators as substantive problems. Clinical text makes these issues particularly visible. The authors describe irregular grammar, noisy writing, and varied renderings of what is essentially the same kind of entity. They point to annotation work on clinical notes outside de-identification as evidence that variation in how entities are written poses difficulties in related tasks as well.

#### What existing de-identification systems established

The paper describes two broad families of automatic systems. A rule- and dictionary-based system searches for patterns or known entries. Rules can capture recurring formats and contextual cues, while dictionaries supply strings the designer expects to encounter. A system based on [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) derives its decisions from labeled examples. The examples tell it which combinations of textual evidence have been associated with a category and give it a basis for extending that decision to new passages.

The authors discuss rule-based work for English clinical notes, the Medina system for French, and Swedish work by Kokkinakis and Thurin on hospital discharge letters. English statistical systems and work from the i2b2 de-identification challenge provide the immediate context for using conditional random fields. The paper also describes a small English clinical-text study that compares conditional random fields with support vector machines. That comparison concerns recognition of disorder entities, a related clinical classification task with a different target.

A system’s score is tied to the job it was given. A study of discharge letters and a study of nursing notes can expose a recognizer to different writing habits and different amounts of identifying information. A shared category name can cover different spans, and a broad label in one collection may correspond to several narrower labels in another. The paper treats these differences in data, language, and annotation as reasons to keep published performance figures in their original settings. Earlier results support trying the method on Swedish records. The Swedish experiments still require their own definition of the task and their own evaluation.

### The method, step by step

#### Start with independent annotations of the same records

The starting material consists of 100 patient records containing free text as well as structured information, with 380,000 tokens in total. A token is a unit of text used to represent and evaluate a passage. A word or a written expression can contain several meaningful pieces while still being treated as a whole for annotation. The procedure for deciding where those units begin and end is [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). The revised guidelines address what annotators should do when the identifying part occupies only part of a token.

Three annotators had independently marked the records before the experiments in this paper. The original guidelines drew on 18 PHI categories and defined 40 classes after adaptations and additions, including four nested classes. A nested annotation allows a marked item to occur inside a larger marked item. Of the 40 defined classes, 28 appeared in the annotations. The breadth of the original scheme served an exploratory purpose. It gave the annotators room to discover what kinds of identifying information appeared and where their judgments diverged.

A gold standard is the reference the researchers use to decide whether the system found the expected material. Here, it has to specify both the stretch of text and the class attached to it. The average agreement among the original annotators was 0.65 in F-score across instances of the annotation classes. This figure concerns agreement between people, before the classifier experiments. Its interpretation depends on the disagreements underneath it. A missed span, a different choice of boundary, and a different category for the same stretch of text have distinct remedies.

The authors build both refined references from these existing annotations. Each starts from people having read the same records and produced different judgments. The automatic procedure emphasizes retaining potentially relevant material. The manual procedure first revisits the guidelines and then applies the resulting decisions to the annotations. The output of either route can be used to teach the classifier and to score it on material withheld during training.

From clinical records to evaluated de-identification predictions The steps in order.

#### Build the automatic consensus from everything annotators marked

The automatic consensus starts from the union of the annotations. An item can enter the reference even if only one person marked it. This design reflects the authors’ priority for de-identification. A missing reference annotation can conceal a gap in the detector’s coverage or cause a valid detection to be counted as an error. Keeping individual findings gives the researchers a way to retain clues that another annotator overlooked. It also means that an annotation based on an overly broad interpretation can survive.

Taking the union requires decisions about overlapping judgments. Where a disagreement can be resolved by a majority, the majority takes priority. When annotations cover nearly the same item with different boundaries, the longer span is chosen. That choice favors preserving what either person considered part of the reference. It gives the classifier a definite span to learn even where the individual annotators had differed over an adjacent token.

Some category conflicts require a further rule. Suppose an item marked by two people receives the labels `Clinician_First_Name` and `First_Name`. In the example the authors give, their procedure retains the clinician-specific label. They examine recurring disagreements across the classes before writing rules for these cases. The name *automatic consensus* therefore describes the application of a reconciliation procedure that incorporates human decisions. Those decisions are encoded as rules so they can be applied across the existing annotations.

The resulting automatic reference contains 6,170 annotated instances. It initially retains the 28 classes used in the original annotations. For later experiments with the same reference, the authors combine conceptually related categories and remove some infrequent ones. The broadest version gathers all retained identifying information into a single PHI category. This series gives them a way to study whether finer distinctions help the system identify spans or divide its examples into groups that are too small or too hard to distinguish.

#### Use disagreements to revise the manual consensus

For the manual consensus, the authors first make the disagreements easier to inspect. They tabulate the annotations for pairs of annotators and compile an agreement table that shows which class judgments were made for individual items. The review covers over 7,000 annotated instances, and the totals for individual annotators could differ by over 1,000 instances. The review total describes the material considered in understanding the disagreements. The final references count instances after their respective decisions about boundaries, labels, and exclusions.

The distribution of the original judgments helps direct the review. Names show the strongest agreement among annotators. `Health_Care_Unit` has by far the most annotations, yet agreement for it is low. This combination matters because inconsistent decisions about a frequent category affect many examples. It brings the annotators back to a question that a union alone cannot resolve. They need a shared rule for deciding when a department reference points to an identifiable unit and how its name should be bounded.

The annotators discuss the discrepancies and agree on revised guidelines. The new reference is then made semi-automatically by applying those decisions. Here, *manual consensus* names the way the policy was settled. Some steps in assembling the finished reference involve programming. The process uses disagreement to change the guidelines themselves, which means the result can omit labels that both the original annotations and a union might otherwise preserve.

#### Set boundaries for ages, dates, and addresses

The revised guidelines require annotators to mark an entire token. The paper illustrates this with the Swedish expression `34-årig`, meaning aged 34. The age is conveyed by the expression as a whole, so a span should cover the complete token. This gives annotators a common answer in cases where someone might otherwise select only the digits. It also makes those decisions more consistent with an evaluation that asks for the same token span.

Dates receive a different boundary rule. The annotators retain the distinction between `Date_Part` and `Full_Date` and exclude weekdays from date spans. Earlier annotations that marked weekdays as `Date_Part` are among the items removed during refinement. The policy affects both the material counted as a target and the length of the expected prediction. It allows a classifier to identify a date correctly under the revised guidelines even when it leaves a neighboring weekday untouched.

The revised scheme absorbs street addresses, towns, municipalities, countries, and organizations into `Location`. Many disagreements had arisen around the labels for the same references. The broader category lets annotators cover a full address as one passage, reaching from the street through the postal information and locality when those elements occur together. A consistent span policy and a shared category work together here. One governs what characters are included, while the other governs how the complete mention is described.

The annotators also remove the `Relation` and `Ethnicity` classes. They judge that the kinds of mentions covered by those classes pose a low risk of identifying individual patients in this task. This is a decision about the scope of the reference. It affects what an automatic system trained on that reference learns to predict and what an evaluation asks it to recover. The reasoning behind the exclusion concerns identifiability, while the rules for full tokens and dates principally settle boundary disagreements.

#### Decide whether a health care unit is specific

The revised rule for health care units combines a condition on the referent with a policy on the span. An annotator marks a unit when the wording identifies a specific one. Once the unit qualifies, the annotator covers as much of its mention as belongs to that reference. A generic reference such as `Geriatriken`, meaning the geriatrics department, can be left unmarked if the text gives no hospital that would identify the department. The clinical specialty can still be clear even when the particular institution is unspecified.

The paper’s examples from Karolinska show why the condition is harder to apply than it sounds. The hospital is associated with Huddinge and Solna, and location words can form part of the particular hospital name. A note might abbreviate the hospital name and place Huddinge after a comma, or combine Karolinska and Huddinge with a slash. A reference to ward 11 at Karolinska can express institutional specificity in another way. These ways of writing require the annotator to decide which words jointly describe the unit.

In the phrase referring to Karolinska in Solna, the paper describes Solna as a location. The judgment illustrates how a place name’s function can depend on the expression surrounding it. In one construction, a location can be integrated into the name of a health care unit. In another, the place can be a separate piece of information about the institution. A rule to select the longest valid span still depends on a prior judgment about what constitutes the entity.

Applying the revised guidelines removes earlier annotations of generic units as well as other items that no longer qualify. The manual consensus contains 4,423 annotated instances. The authors give this refined resource the name Stockholm EPR PHI Corpus and express an intention to make it available to other research groups. Its definition reflects the decisions made during the discussions, including what qualifies for a label and which part of a mention that label should cover.

#### Train and test the sequence classifier

The classifier is based on conditional random fields, abbreviated CRF. The task is to label sequences of tokens in observed text. A conditional random field evaluates possible assignments of labels in light of that text and can use relationships between labels in the sequence. That is useful for spans extending over several tokens. Whether neighboring positions belong together, and whether the surrounding context supports a particular category, can matter more than a decision based on an isolated word.

The implementation is the Stanford Named Entity Recognizer. The authors use its default settings throughout the experiments. They describe the defaults used here as including distributional features with [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/) up to size six. An n-gram is a contiguous sequence of items, with its size indicating how many items the feature spans. Such features give the classifier evidence from sequences alongside the individual observations. The paper describes its choice of implementation and settings without giving a mathematical formulation of the classifier.

The reference supplies the target spans and classes. In the automatic-consensus experiments, the class scheme changes from one configuration to another. For the manual-consensus experiments, the authors group personal names into `First_Name` and `Last_Name` and combine `Age` with `Age_Over_89` under `Age`. They also use `Full_Date`, `Date_Part`, `Health_Care_Unit`, `Location`, and `Phone_Number`. The experiments exclude nested annotations. The selected labels determine the distinctions the classifier is asked to learn in the corresponding run.

The primary procedure is four-fold cross-validation. The material is divided into four equally sized subsets. In each round, one subset is held out for evaluation while the others supply training material. The held-out role rotates so that each subset contributes evaluation predictions. The authors choose this arrangement to keep processing time manageable. They also perform a ten-fold evaluation with the manual consensus. In that procedure each held-out subset is smaller and the classifier sees more of the available material during each round of training. The source records and annotation policy still come from the same collection.

### Experiments and results

#### What the Swedish experiments compare

The study uses Swedish patient records from the annotated portion of the Stockholm EPR Corpus. The automatic and manual versions are references for the same task on that material, each with its own inventory of eligible spans and labels. An annotation count describes how many target instances a version supplies. The total of 380,000 tokens describes the text behind the annotations. The initial automatic-consensus run uses 6,170 annotation instances across 28 classes. This run provides the internal starting point for studying whether changes to the class scheme improve recognition.

The authors report seven configurations of the automatic consensus. They move from the class inventory initially available through a series of groupings to a single broad PHI class. The manual consensus supplies the other set of comparisons. It is evaluated with the usual four-fold procedure and again with ten folds. The same Stanford recognizer and default settings are used across these Swedish experiments. The design compares annotation choices and evaluation settings within the use of one classifier.

The authors report that running the initial four-fold configuration with all 28 automatic-consensus classes took around 8 hours on their server. That observation gives the processing-time motivation for the primary split a concrete meaning. The choice of fold count determines how frequently the recognizer is trained and how much text is available to it during each round. The later ten-fold run uses a larger training portion per round to probe whether more labeled material might improve recognition.

#### How a detection is scored

The paper reports precision, recall, and F-score. Precision asks how much of what the system retrieved counts as correct under the scoring rule. Recall asks how much of the annotated target material it recovered. F-score combines precision and recall in one measure. The distinction matters here because the errors have different costs. A false alarm can lead to useful text being hidden. A missed identifying detail can remain visible to a reader. The authors give particular weight to recall because the aim is to reduce the possibility of identification.

The definition of a match changes what those measures capture. An exact match requires the recognizer to recover the same token span as the reference. Partial matching allows an overlap at the character level. If a prediction finds part of an annotated hospital name, it can receive credit under partial matching while failing the exact criterion. The gap between the measures therefore carries information about localization. The paper uses it alongside class-level outcomes to understand why a prediction may be near the right passage but still fail to match the expected annotation.

Partial credit is an evaluation of recognition, and its implications for masking depend on what part was recovered. An overlapping prediction can contain most of a name or only a fragment. Likewise, an exact-match error can come from a prediction that covers the entire sensitive span plus an extra word. Both fail the strict boundary comparison in different ways. The exact and partial scores help a reader distinguish sensitivity to boundaries from broader failures to locate relevant text. Inspecting the individual predictions is necessary to see which sort of discrepancy occurred.

#### Earlier comparisons and their place in the study

The paper uses earlier work to motivate its choice of classifier. It describes an i2b2 de-identification challenge with 889 discharge letters. The training text reportedly contains 470,000 tokens, while the test text contains 140,000. The training material contains 14,000 annotations. A high-performing conditional random field system in that challenge achieves an F-score > 0.95. That result belongs to the challenge’s documents and scoring setup.

A separate English clinical-text study offers a comparison of algorithms under the same task conditions. It trains on 1,265 annotations and evaluates on 292 annotations, reporting an F-score of 0.86 for conditional random fields and 0.64 for support vector machines. The task there concerns disorder entities. The comparison helps explain why the authors selected conditional random fields for their Swedish study, while the Swedish experiments compare variants of the reference using the selected recognizer.

Classifier F-score on English clinical disorder recognition The earlier study favored conditional random fields on its clinical entity task.

**The numbers**

| System or setting | F-score |
| --- | --- |
| Support vector machines | 0.64 |
| Conditional random fields (this paper) | 0.86 |

These earlier figures come with differences in target entities, document types, and language. A high result on an English clinical collection says what was achievable under that collection’s annotation and evaluation rules. The Swedish paper tests another question. Given annotations made for these records, how reliably can the recognizer find the expected passages as the definition of those passages and their classes changes?

#### Results with the automatic consensus

Across the study, several four-fold experiments produce an F-score around 0.80. The headline figure describes the general level obtained in a number of runs. Within the automatic-consensus series, the paper reports high precision for both exact and partial matching. Recall is much lower under exact matching than under partial matching. Some of the difficulty therefore lies in producing the same boundaries as the reference, even when the recognizer locates text that overlaps a target.

The strongest automatic-consensus F-score for partial matching comes from putting the annotations into one general PHI category. This version asks the recognizer to find identifying information without distinguishing its types. The best exact-match results in that series occur in experiments 3 and 4, which use 16 and 13 classes, respectively. Under the stricter scoring rule, those intermediate class schemes preserve distinctions that are useful to the recognition task.

The paper identifies a drop in exact-match performance between experiments 4 and 5. In the latter configuration, `First_Name` and `Last_Name` are combined under `Name`. The authors associate much of the drop with the recognizer producing too many name predictions. The partial-match decline is less pronounced. In their interpretation, this lends weight to a boundary explanation for part of the effect, with initials and titles as possible sources of disagreement over where a name starts or ends.

The series establishes that changing the class inventory can change the outcome even when the recognizer’s settings stay fixed. A scheme that maximizes overlap with annotated text can lose ground when judged on complete spans and typed predictions. The rankings convey the most specific comparison the paper states in its discussion of the aggregate results. The general F-score of around 0.80 applies to several experiments and cannot be assigned as a precise score for any particular setting on that basis.

#### Results with the manual consensus

Four-fold evaluation on the manual consensus gives overall results similar to those obtained with the automatic consensus. The authors regard that as encouraging because the manually refined resource contains fewer annotations. They highlight `Date_Part` and `Phone_Number` as performing substantially better with the manual consensus. `Location` and `Health_Care_Unit` remain comparatively weak, and ambiguity between them persists in examples involving places such as Huddinge.

The distance between exact and partial results is generally smaller for the manual reference. This observation fits the changes made during consensus discussions. The revised guidelines give annotators a more consistent way to choose the extent of an address, omit adjacent weekdays, and decide when a unit reference qualifies. A classifier trained and evaluated under that policy faces more consistent boundary judgments. The two references also differ in category coverage and class grouping, so the comparison reflects the package of changes.

With ten-fold cross-validation on the manual consensus, the authors report considerable improvement for most classes. This run gives the classifier more material to learn from in each training round. The paper interprets the outcome as evidence that additional labeled examples could help, particularly where the available examples are sparse. Which examples appear in individual held-out subsets changes along with the fold count.

The authors also examine specific predictions that the manual-consensus evaluation counts as false positives. In the experiment they discuss, 178 predictions receive that designation, and review confirms that 49 are genuine positives missed by the human annotators. Those recovered cases include personal names, locations, health care units, and both date categories. The audit gives the error count a different interpretation. A prediction can disagree with the reference because the software selected the wrong material, or because the reference omitted a passage that qualifies under the task.

### What the ablations show

#### Broadening a class changes the evidence and the task

The paper’s main controlled comparisons change the annotation scheme used by the recognizer. The automatic-consensus series keeps the recognizer settings fixed while combining related classes and, in some configurations, removing infrequent ones. This creates a practical test of a question with consequences for building a corpus. A narrow class gives the system a specific distinction to learn. A broader class can draw together more examples under one label. The experiments show how those choices play out when the evidence comes from this set of clinical records.

The numbers of examples available for individual classes are uneven. Combining categories can give a class more training material and resolve an inconsistent distinction when annotators had assigned different labels to similar passages. Consider references that people variously treated as a town or as part of an address. Grouping them allows their shared evidence to contribute to recognition of a location. The benefit depends on how much the combined items have in common in the written records and on the precision expected from the resulting label.

The exact-match results favor intermediate grouping in the automatic-consensus series. The partial-match results favor the broadest PHI category. Those outcomes address different questions. The intermediate schemes perform best when the target is the complete annotated span under the class distinctions in force. The broad scheme performs best when recovering overlapping text is sufficient and the prediction need only identify the common PHI label. Part of the tradeoff comes from redefining what counts as a matching answer when classes are combined.

The name merger shows how a plausible conceptual grouping can create a new problem for recognition. First and last names belong together at a general descriptive level, yet combining them changes what a sequence of adjacent name-like tokens represents for the classifier. A general label can cover several neighboring tokens without expressing their former distinctions. The authors observe an increase in name predictions around the merger and suggest that boundaries involving initials or titles may contribute to the exact-match decline. The comparison identifies a consequential change in the class scheme. It leaves the particular role of initials and titles as an interpretation of the error pattern.

The paper does not run a separate controlled experiment for every merge. Its successive configurations can change the set of labels as well as how examples are distributed among them. The results offer evidence about those configurations and identify one transition worth examining. They do not establish a general ordering of class schemes for other corpora. A different collection could supply more examples of a narrow category or use names in constructions that produce different boundary errors.

#### Manual review addresses a different source of inconsistency

The two consensus procedures draw on the same starting material, but each makes different commitments about what to keep. The automatic consensus keeps findings made by individual annotators and uses rules to reconcile conflicting boundaries and categories. The manual consensus uses the conflicts to ask whether the rule itself should change. Its decisions reach beyond renaming categories. Weekdays previously tagged as partial dates can be removed, and generic clinical units can lose their labels even if earlier annotators had marked them.

This comparison demonstrates that a smaller reference can support overall performance similar to that of a larger one in this setting. One reason such a result is possible is that each annotated instance carries a decision the recognizer is expected to reproduce. Adding instances can help when they provide consistent evidence of what qualifies. Resolving inconsistent examples can help when similar passages previously received incompatible judgments. The paper does not isolate the effect of reference size from the effect of revised definitions. The comparison shows what the complete procedures yield.

The gain for partial dates is consistent with a clearer rule about weekdays. The paper also observes improved performance for telephone numbers, without separately measuring a particular guideline or class decision as the cause of that improvement. The persistent difficulty with locations and health care units gives a counterweight within the same comparison. A more carefully defined standard can still contain mentions whose category depends on how a place name functions within an institutional reference. Some of the original categories merged into `Location` also had few examples. The authors consider ambiguity and limited training evidence plausible explanations for the weaker results.

The smaller gap between exact and partial matching on the manual consensus supplies another way to inspect the change. It suggests that more of the recognizer’s successful localizations also satisfy the full span boundaries. This is consistent with the attention paid to the extent of dates, addresses, and unit names during the discussions. Since eligibility and category definitions change at the same time, the gap cannot serve as a separate estimate of the benefit of boundary revision alone.

The authors also compare how much work the procedures took in practice. They describe approximately one and a half working weeks for the automatic consensus, including manual work, and approximately two and a half weeks for the manual consensus, including programming. The extra effort buys the opportunity to trace a disagreement back to its cause and revise the underlying decision. It gives the authors a basis for favoring the manual standard even though the overall classifier scores are close.

#### More training material and a closer look at errors

The ten-fold run explores training-set size within the manual consensus. In cross-validation, each round with a smaller held-out share leaves more examples available for training. The reported improvements for most categories are consistent with a classifier benefiting from those additional examples. The run makes the training-size explanation plausible without showing how performance would change if researchers annotated records from another clinic or explicitly sought new examples of rare identifiers. The partitions used for assessment change along with the proportion used for training.

The audit of apparent false positives examines a different part of the measurement. A score assumes that the gold standard provides a complete account of the expected positives for the purposes of evaluation. Looking back at the text allows the researchers to check that assumption. Their confirmation of 49 previously missed positives shows that the manual review and the classifier can be complementary. The classifier sometimes draws attention to a qualifying passage that survived both initial annotation and reconciliation without a label.

This audit makes it possible to distinguish some genuine recognizer mistakes from some omissions in the reference. The predictions under review are cases that the classifier found. A location that neither the recognizer nor the annotators noticed would stay outside this set of apparent false positives. The audit therefore shows how specific errors in a reference can come to light through disagreement with a recognizer. Its scope is the examined predictions, instead of an estimate of all remaining omissions.

### Limitations

#### Limits the authors identify

The authors identify the size of the annotated collection and the scarcity of several kinds of identifiers as constraints on stable performance. A category can matter to privacy even when its examples are rare. Social security numbers and medical record numbers did not appear among the original annotations discussed in the paper. The authors also expect social security numbers and patient names to be scarce in these records. A supervised classifier has limited evidence about a class when the reference contains few examples of how it is written.

For scarce categories, the authors suggest that pre-defined rules or dictionaries might supplement an approach learned from annotations. The justification follows from the nature of the missing evidence. A class with a recognizable written format or known entries may be approachable even when the annotated sample provides little training material. The paper presents this as a possibility for addressing scarcity. The reported classifier experiments keep to the recognizer’s defaults and do not measure a combined system.

The authors also propose active learning as a future way to manage the cost of annotation. In that approach, the learner can suggest additional examples for people to label. The aim would be to select material that can improve recognition without requiring people to review an unnecessarily large volume of text. The paper’s corpus refinements concern judgments already collected, and its ten-fold comparison uses a different allocation of those records. It offers no measured result for acquiring new training examples through such a selection process.

The classifier configuration leaves open how much can be gained by tailoring the textual features to Swedish clinical notes or by changing the weighting scheme. The defaults provide a common basis for comparing the annotation conditions. An experiment using alternative features could address a separate question about whether the recognizer has better evidence for recognizing abbreviations, uncommon entities, or boundaries. The paper calls for that kind of analysis and gives no feature-by-feature performance comparison.

Even the revised guidelines leave a judgment about what makes a health care unit sufficiently specific. The authors describe the generic-unit distinction as an unresolved source of errors. A note may assume knowledge of a hospital or a clinic, and a label that seems generic in isolation can refer to a recognizable place in context. A consistent instruction to cover the longest qualifying span helps once the annotator has decided that a reference qualifies. It still leaves the decision about specificity to the annotator.

The authors’ strongest qualification concerns the relationship between the class inventory and confidentiality. They propose an inventory they believe covers the most important kinds of identifying material for similar work, including contact and identification categories whose rarity is itself a challenge. Their privacy conclusion is narrower than a claim of anonymization. If a system found every instance in that inventory, the remaining narrative could still allow a person to identify a patient. The evaluation measures recognition of the chosen categories. Whether a reader can infer identity from details left in the record is a different question.

#### What follows from the experimental setup

The records used in the experiments come from the same larger Swedish corpus and are examined through cross-validation. This design measures performance on held-out portions of the available material. It gives no direct estimate for a separately collected clinical corpus, a different language, or departments with different documentation conventions. The scope matters especially for location and health care unit labels. Their examples include naming practices tied to particular institutions, and the authors note that recognizers can be sensitive to the language and type of clinical document.

The paper describes how many folds it uses and how they are sized, but gives no detailed account of how recurring patients or institutions are distributed among the folds. The extent to which the evaluation tests recognition of completely unfamiliar names and clinical settings is therefore uncertain. A system can learn useful context from familiar formats. Seeing those formats in held-out records answers a different question from recognizing patterns at an unfamiliar institution. The scores can be interpreted within the reported cross-validation design without assuming either form of generalization.

There is also a difference between the categories observed in the records, the categories tested in a particular experiment, and the inventory recommended for future annotation. A planned category can be useful to include in a guideline because the consequences of missing it are serious. Its presence on that list supplies no estimate of how reliably the classifier detects it. Conversely, grouping names under a common label for an experiment says little about how well the recognizer would distinguish whether the person mentioned is a patient, a clinician, or a relative. That finer distinction requires its own labeled examples and evaluation.

Comparing the manual and automatic consensus scores requires attention to what each score treats as a target. Removing generic departments and weekdays changes which omissions count against recall. Merging address-related types changes which category prediction is acceptable. Revising span boundaries can make exact evaluation more consistent while also changing the spans the classifier must learn. Similar aggregate scores can thus coexist with meaningful differences in prediction behavior, annotation quality, and the kinds of errors that would matter if the spans were used for masking.

The confirmed false positives place a further limit on treating the reference as complete. They establish that some genuinely identifying material was absent even from the manual consensus. Because the audit begins with recognizer predictions, it cannot say how many omissions the classifier also missed. It therefore cannot establish how much identifying information would remain after every retrieved span was masked. The study evaluates the recognition stage and uses selected disagreements to improve understanding of the reference. It reports no separate test of the resulting records for residual identity clues.

Finally, the aggregate F-score can combine outcomes that carry quite different consequences. A frequent class can supply clear evidence of success while a rare but sensitive category remains difficult to assess. A partial hit can expose a promising ability to locate the passage while leaving a recognizably identifying fragment uncovered. The paper’s separate reporting of exact and partial matching and its discussion of individual classes help reveal these differences. They also show why an overall recognition score, on its own, is an incomplete description of what could safely be shared.

### What came after

#### Further work on Swedish de-identification

The later study [A Semi-supervised Approach for De-identification of Swedish Clinical Text](https://md.research.elamur.ai/free/en/papers/berg-2020-semi-supervised-approach-de-identification/) cites Dalianis and Velupillai while returning to the task of finding identifying information in Swedish clinical writing. Its stated direction is semisupervised learning, which uses unlabeled material alongside labeled examples. That direction addresses a difficulty visible in the earlier study. Creating and reconciling a reference consumes human effort, while an approach that learns from labeled examples depends on having enough evidence for the categories it must detect.

This connection concerns the supply of supervision. Dalianis and Velupillai examine how to make existing judgments more usable and how recognition responds when more labeled material is available within a training split. The later title identifies a way of studying the same overall task with a different source of training evidence. The citation and that shared objective establish continuity in the research question. They leave open the later study’s use of the original labels, records, and scoring rules.

#### Work on the language of Swedish clinical records

[Swedish clinical BERT pretraining](https://md.research.elamur.ai/free/en/papers/lamproudis-2021-developing-clinical-language-model-swedish/) cites the paper and describes continued pretraining of generic BERT on material from the Swedish clinical domain. Its stated objective is to adapt a general-purpose system to clinical language. The connection is through the kind of text being studied. The de-identification paper shows how abbreviations, variable names, and unusual boundaries can complicate recognition in clinical records. Continued pretraining approaches the domain through the language patterns available in its text.

The earlier paper uses annotated records to specify what identifying information looks like and to evaluate a recognizer. The later study’s title describes using clinical material to continue a broader training process. Access to clinical text is important to both questions, although the training objectives differ. The citation establishes a relationship to earlier Swedish clinical-text research. It gives no basis on its own for attributing a specific de-identification procedure or reuse of the Stockholm EPR PHI Corpus to the later work.

#### A Scandinavian setting for clinical text research

[Natural language processing for Scandinavian electronic health records](https://md.research.elamur.ai/free/en/papers/woldaregay-2025-natural-language-processing-electronic-health/) also cites the study. Its stated scope covers Norwegian, Swedish, and Danish electronic health records. Dalianis and Velupillai’s contribution fits within that broader subject as a study of how researchers defined and measured de-identification for Swedish records. Their discussion supplies concrete reasons to pay attention to language and corpus characteristics when considering research across several clinical settings.

The three citations place the study alongside work on Swedish de-identification, adaptation to Swedish clinical language, and electronic health record processing across Scandinavian languages. The closest continuity is with the semisupervised study because it addresses the same detection task. The other works extend the surrounding research context toward learning from clinical text and considering it across languages. The earlier paper’s evidence remains specific to its records and comparisons. Its enduring question is how to establish a reliable account of what a detector has found when both the category definitions and the reference annotations required human judgment.

## 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](https://doi.org/10.1186/2041-1480-1-6)

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

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