---
title: "A Semi-supervised Approach for De-identification of Swedish"
description: "A study of Swedish clinical notes tests whether self-training on unlabelled records catches more personal identifiers while preserving precision."
canonical: "https://research.elamur.ai/free/en/papers/berg-2020-semi-supervised-approach-de-identification/"
---
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/berg-2020-semi-supervised-approach-de-identification/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / A Semi-supervised Approach for De-identification of Swedish Clinical Text

# A Semi-supervised Approach for De-identification of Swedish Clinical Text

Paper · 2020 · Hanna Berg and Hercules Dalianis

**Authors:** Hanna Berg and [Hercules Dalianis](https://md.research.elamur.ai/free/en/authors/hercules-dalianis/) · **Year:** 2020 · **Venue:** Proceedings of the Twelfth Language Resources and Evaluation Conference · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[**2** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3032302651) · [Cited by **4** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/berg-2020-semi-supervised-approach-de-identification/cited-by/) · [Proceedings of the Twelfth Language Resources and Evaluation Conference](https://aclanthology.org/volumes/2020.lrec-1/) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/2020.lrec-1.547/)
- [PDF](https://aclanthology.org/2020.lrec-1.547.pdf)
- [OpenAlex](https://openalex.org/W3032302651)

Citations: OpenAlex, 2026-10-14.

## Summary

A clinical note can be valuable for research and still contain details that identify a patient. Free text is particularly difficult to prepare for reuse because names, dates, telephone numbers and references to places can occur inside ordinary clinical sentences. A system can learn to recognise these details from examples marked by people, but producing those examples is costly. Clinical annotation has to take place under confidentiality restrictions, with a limited pool of people who can see the records. Hanna Berg and Hercules Dalianis ask whether a Swedish de-identification system can learn to catch more identifiers by labelling additional clinical sentences itself.

The authors start with a sequence tagger trained on manually annotated records. It assigns a label to each token, a unit of text such as a word or punctuation mark, and estimates how confident it is in that label. The authors then use it to annotate sentences from a much larger collection of clinical text. In one version of the experiment, a sentence can become training material only if every token passes a confidence check. The criteria differ for predicted identifiers and other text. The tagger is then retrained on the enlarged collection. A simpler version uses the automatically labelled sentences without applying the confidence filter.

On the held-out Stockholm EPR PHI test set, the detailed token-level results show recall rising from 84.75% with manual training labels alone to 89.20% with confidence-based self-training. Recall measures how much of the annotated identifying material the system correctly recognises. Precision, which measures how often its positive classifications are correct, goes from 95.73% to 94.20%. The paper’s comparison also reports that leakage falls from 12.84% to 8.16%. Leakage tracks identifying tokens left unmarked. The unfiltered version improves recall and leakage too, and the study finds no statistically significant difference between the filtered and unfiltered versions.

The gains vary by identifier. The filtered version catches more of the tokens annotated as parts of dates, surnames, telephone numbers and health care units, while its recall for ages and full dates stays the same. It also becomes more likely to assign the wrong category to a location-like reference, including places used as shorthand for hospitals. These errors matter differently for privacy. A hospital reference marked as a location can still be concealed, whereas an identifying token treated as ordinary text can remain visible. The experiment shows that automatic labels can improve detection on the test records. How much privacy protection that improvement provides depends on what the remaining errors disclose.

## Deep dive: A Semi-supervised Approach for De-identification of Swedish Clinical Text

A study of Swedish clinical notes tests whether self-training on unlabelled records catches more personal identifiers while preserving precision. · 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

#### Identifiers inside clinical prose

Electronic health records contain information that can support research and improvements in care. Some of that information is written as free text. A note can describe a course of treatment and mention a person, an appointment date or a telephone number in the same passage. Preparing such a note for reuse requires decisions about particular stretches of text. Removing a patient-name field elsewhere in the record leaves the names that happen to occur in the prose untouched.

The paper treats this detection problem as [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/). The system looks for text that belongs to categories defined in advance, such as dates, personal names or health care units. The category labels specify which pieces of text a de-identification procedure should handle. The paper mentions the American HIPAA Privacy Rule to illustrate how de-identification can be framed in terms of classes of identifiers to remove. Its own experiment is organised around the annotation categories available for the Swedish clinical corpus.

A category like health care unit shows why the decision can depend on what an expression means in context. A place name can refer to a geographical location, or it can stand for a hospital at that location. A department reference can be written out in full or shortened to a name that also admits another interpretation. A tagger has to decide which use the surrounding words support and where the identifying expression ends. The relevant distinction may be clear to a reader with local knowledge and much less apparent in an isolated token.

The cost of an error depends on what happens to the text. If a genuine identifier receives an ordinary-text label, it can survive the removal step. If ordinary text receives an identifier label, removal can take information away from a researcher. A third outcome arises when an identifier is recognised as sensitive but put in the wrong category. That is an error in entity recognition, yet a procedure that conceals either category could still hide the text. The paper’s concern with recall and leakage follows from these different consequences.

#### Why manual labels are scarce

A supervised tagger needs examples where someone has decided which tokens belong to which classes. In a clinical corpus, the people doing this [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) need access to the very material the finished system is meant to protect. The paper describes work in a protected environment, with confidentiality agreements and a limited number of eligible annotators. Adding people or sending samples out for another review therefore carries practical constraints beyond the time required to read and mark the text.

One estimate cited by the authors gives a sense of the scale. For the 100-million-word MIMIC dataset, earlier researchers estimated a total of 5,000 hours for manual de-identification, with at least two annotators. That estimate concerns a different corpus and serves as context for the labour problem. The paper also cites a rule-based system implemented for that work, with reported recall of 0.943. That figure belongs to the earlier system and its data. The Swedish experiment uses its own comparison systems and test records.

Earlier work discussed in the paper tried to make human annotation faster by giving annotators provisional labels. One study combined bootstrapping with repeated pre-annotation and reported that people worked twice as fast while maintaining annotation quality. Another reported time savings of 13.85% to 21.50% per entity. A further study found the evidence for faster work inconclusive, while observing a possible quality benefit. Provisional tags can help people locate material that needs a decision, but the amount of work saved depends on what they have to review or correct.

Berg and Dalianis direct the provisional labels to a different use. Their experiment puts machine-labelled text into the training collection so the tagger can learn from it. The large pool of unlabelled records supplies the text, and the smaller annotated collection supplies the starting point. The question is whether the new examples collectively help the tagger recognise identifiers in held-out records. The accuracy of the provisional labels and the benefit they provide after retraining are related questions with different ways of being evaluated.

#### What earlier self-training work suggested

Self-training is a form of semisupervised [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). A classifier first learns from examples with known answers. It then supplies answers for examples without labels. Some or all of those predictions are treated as training labels the next time the classifier is fitted. The attraction is that the unlabelled collection can contain useful contexts absent from the manual examples. The difficulty is that a prediction can enter the training collection whether or not it is correct. An error can then influence later predictions of the same kind.

The Yarowsky algorithm, discussed as an early example, used a regularity of discourse to choose new training instances for [word sense disambiguation](https://md.research.elamur.ai/free/en/concepts/word-sense-disambiguation/). A word repeated in the same discourse was assumed likely to retain its meaning. A confident sense assignment could consequently support another occurrence whose own evidence was weaker. The extra evidence came from the relation between occurrences. Berg and Dalianis select at the sentence level, using the sequence tagger’s confidence in the individual labels. [Yarowsky’s study](https://md.research.elamur.ai/free/en/papers/yarowsky-1995-unsupervised-word-sense-disambiguation-rivaling/)

The paper also describes earlier uses of self-training in domain adaptation. The importance of unlabelled examples in that setting is that they can expose the learner to text beyond the distribution covered by the original annotations. The cited work on parsing is one example. Another study on entity recognition sought examples that could bridge domains by combining domain-specific and more broadly applicable evidence. The Swedish study draws extra text from a collection of clinical units and asks whether it can improve detection in the records reserved for evaluation. [Effective Self-Training for Parsing](https://md.research.elamur.ai/free/en/papers/mcclosky-2006-effective-self-training-parsing/)

Co-training offers a different account of where useful additional evidence might come from. In the formulation the paper cites, separate classifiers see different feature sets. Each supplies predictions that can help train the other. The original argument assumes that either view is sufficient for classification and that the views are conditionally independent. The authors also mention later work allowing a weaker form of independence. Their own experiment uses a single kind of sequence tagger, so the check on an automatically assigned label comes from its confidence and development-set behaviour. [Combining Labeled and Unlabeled Data with Co-Training](https://md.research.elamur.ai/free/en/papers/blum-1998-combining-labeled-unlabeled-data-co-training/)

The paper reports that an earlier active-learning study on the same Swedish corpus found that selecting the most uncertain examples gave poorer predictive performance than random selection or selection of the most certain examples. The most certain examples appeared to perform best in that study. Active learning and self-training use a selection decision for different purposes. An active-learning procedure can ask a person to resolve the label of a selected example. In the present experiment the machine’s label is what enters training, so a confident mistake poses a direct problem.

A conservative selection rule has a cost of its own. It can retain many easy sentences that repeat what the tagger already knows and discard the unfamiliar contexts for which more data would be valuable. The research reviewed in the paper also identifies skew towards particular classes and the introduction of noisy labels as reasons self-training can deteriorate. These concerns motivate the paper’s comparison between accepting automatic annotations broadly and making acceptance conditional on confidence.

### The method, step by step

#### Give each part of the data a job

The experiment begins with manually annotated Swedish clinical text. The authors call the annotated training set L. The initial tagger learns which kinds of text to flag by looking at this set. They call the unlabelled pool U. Sentences from U give the tagger somewhere to apply what it has learned and supply potential additional training examples. A separate annotated development set is used to guide decisions during the self-training cycle. The annotated test set, E, is reserved for evaluation.

These roles matter because each collection answers a different question. The original examples in L establish what the category labels mean in practice. The output on U tells the researchers what labels the tagger would give to new sentences and how strongly it supports those labels. Development annotations let them relate confidence and F1 to known answers while making decisions about the cycle. Evaluation on E then measures how well the resulting tagger labels manually annotated text from an infection clinic.

The tagger works with sentences and gives each token a label. Most tokens are ordinary clinical text. For the sensitive categories, a token can be part of a name, a date or another identifier that extends across several words or marks. A telephone number, for instance, can contain several components that need to be handled together. Training on a whole sentence preserves the surrounding text and its labels, including ordinary words that provide cues to what a neighbouring expression means.

The confidence-based self-training cycle The steps in order.

#### Learn labels in context

The authors use a linear-chain conditional random field, abbreviated CRF, implemented with sklearn-CRFSuite. A CRF of this kind estimates probabilities for possible label sequences given a sentence. The chain connects neighbouring label positions. This gives the tagger a way to take account of the structure of a multi-token expression, as well as the evidence for each token considered in context. Fitting the CRF means learning feature weights that favour the label sequences observed in the manually annotated training text.

The current token is among the features. The tagger can also use parts of the token and properties of how it is written, including capitalisation, punctuation and whether the text is numeric or mixes letters and numbers. Regular expressions help represent forms associated with dates and telephone numbers. Dictionary features indicate membership in lists for first names, surnames, hospitals and locations. Lexical features from nearby words give the tagger additional context. The feature set follows the authors’ earlier work with some changes to the regular expressions and excludes lemmas and part-of-speech tags.

Each sort of feature offers a different kind of evidence. A token that appears in a place list gives the tagger a reason to consider a location label. A nearby word can help it decide whether that place is being used to refer to a health care unit. The shape of a string can be more informative than its exact spelling when the string is a date. A new date of a familiar form can therefore share features with dates seen during training, even though the date itself has never occurred in L. The same form of generalisation is harder when the possible expressions differ substantially in wording and context.

The tagger uses these clues in combination. A match in a dictionary is a feature available to the CRF, and its usefulness depends on the relationships learned from training examples. This matters in a note where the same word can legitimately receive different labels. A vocabulary lookup learns how the word was labelled most often. The CRF can in principle prefer different labels in different contexts because it has access to the surrounding words, the shape of the token and patterns in neighbouring labels.

#### Turn confidence into a sentence decision

After fitting the initial CRF, the authors use it to label sentences in U. The CRF provides a predicted label at each token position and a marginal probability for a label at that position. A marginal probability concerns one label at one position while allowing for the possible assignments elsewhere in the sentence. It is therefore distinct from the probability attached to a complete proposed sequence of labels. The paper points to constrained forward-backward computation as a way to obtain the marginal probabilities.

For selection, the researchers want the predicted label to have a high marginal score and competing labels to have low scores. The assumption is that a label supported strongly by the tagger is more likely to be correct. Development-set marginal scores guide the choice of confidence thresholds at each iteration. The paper describes the high-score and low-competitor criteria in words. It does not give an equation combining the scores or a list of the threshold values used in successive rounds.

The criteria are set separately according to whether the tagger predicts an identifying token or a non-identifying one. Identifying material is sparse, so the authors expect those predictions to be less confident. They are also concerned that errors on the two sides will affect the retrained tagger differently. If an identifier gets an ordinary-text label, it can become an example that teaches the retrained tagger to leave similar material alone. If ordinary text gets an identifier label, it can teach the tagger to flag similar text unnecessarily. The paper associates the first risk primarily with recall and the second primarily with precision.

The check takes place at each token, but the training example admitted to the collection is a sentence. Every token has to meet the criterion that applies to its assigned label. A confident prediction for a conspicuous name cannot carry the rest of a sentence into training if another token falls below its threshold. Conversely, a sentence admitted under the rule brings along all its predicted labels, including the labels on the tokens outside the name. The procedure preserves the sequence context that the CRF uses during training.

The acceptance rule also explains why the collection can change substantially even if the filter appears to be making decisions one token at a time. A prediction near the threshold can determine whether its entire sentence is used. Which identifier types are admitted can consequently depend on properties of their usual contexts, as well as on confidence in the identifier tokens themselves. A class with varied sentence contexts can be affected by uncertainty on words around the expression. The experiment counts the labels collected under the filter, while the threshold rule itself operates on complete sentences.

#### Refit and repeat

Once sentences have been accepted, the authors enlarge the training collection and fit the CRF again. The manually annotated sentences continue to provide the original examples. The newly admitted sentences add automatically assigned labels that the CRF treats as training targets. As the fit changes, later predictions can differ from the initial predictions. A round of self-training can therefore alter which sentences qualify in a subsequent round.

The confidence-based procedure can stop when the unlabelled sentences have all been processed, when no further sentences meet the criterion, or when development-set F1 has deteriorated the prescribed number of times. The authors set this number to 3. Development performance thus supplies a check on a cycle that would otherwise use its own prediction confidence to decide whether to take in more data. The procedure can stop because the available material has been exhausted or because the added material is no longer supporting the development objective.

The authors call this configuration S. They compare it with NS, which admits all the automatically labelled data without the confidence selection rule. Both configurations rely on a tagger initially trained with human labels. Their comparison asks whether the more selective procedure adds value beyond the simple act of training on machine-labelled clinical text. The configurations also differ in the amount and composition of the automatic training material they use, so their comparison is about the full selection procedure as implemented.

#### What the scores count

The paper describes precision, recall and F1 for evaluation, along with a leakage measure specific to the de-identification objective. The reported overall recognition scores are micro-averaged. That means decisions are pooled before forming the overall score, so a class with many annotated tokens contributes more opportunities for correct and incorrect decisions than a rare class. The detailed tables evaluate at token level.

```
P = C ÷ A
```

P is precision. C counts positive decisions that match the annotation, and A counts all the decisions assigned a positive label in the comparison. The division expresses the fraction of the tagger’s positive decisions that are correct. For a single category, a positive decision is an assignment to that category.

```
R = C ÷ G
```

R is recall. C again counts correct positive decisions, and G counts the positive instances in the manual annotations. The division expresses the fraction of the annotated positives recovered with the correct label.

```
F₁ = (P × R) ÷ mean(P, R)
```

F₁ is the combined precision and recall score. P is precision and R is recall. The multiplication sign forms their product, and `mean(P, R)` is their arithmetic average. This expresses the harmonic mean, which depends on both scores and is pulled towards the weaker of them.

```
Λ = M ÷ I
```

Λ is leakage. M counts identifying tokens assigned to the non-identifying category, and I counts all identifying tokens in the annotations. The division expresses the share of annotated identifying material left unmarked. If a hospital token receives a location label, it can be wrong for recognition and still be excluded from the leakage numerator because it received an identifying label.

### Experiments and results

#### The annotated records and the unlabelled pool

The Stockholm EPR PHI Corpus contains 98 Swedish patient records from Karolinska University Hospital, with roughly 200,000 tokens overall. It covers neurology, orthopaedics, infection, dental surgery and nutrition. The corpus consists of free text. Three annotators originally used 28 identifier categories, some of which had very few examples. The annotation scheme was subsequently consolidated into broader groups for practical use.

According to the data description, the study used Phone number, Location, Health care unit, Age, Full date, Date part, First name, and Last name as its classes. A full date and a partial date are consequently separate recognition decisions. The detailed result tables also show Organisation, with zero scores. The results narrative mentions a single training instance of an organisation and says none were found. The paper does not reconcile the extra result row with the category inventory in the data description.

Roughly 3-4% of tokens in the annotated corpus are part of an identifying expression. The paper reports that only 25% of sections contain any such expression. This imbalance helps explain why an evaluation based on the share of all tokens labelled correctly would obscure a key part of the task. Most tokens already belong to the ordinary-text category. Precision, recall and leakage instead show how the system deals with the relatively uncommon material it is meant to detect.

The split is described as 60% for training, 10% for development and 30% for testing. The labelled training set L contains 95,500 tokens from 62 patients. The records date from 2008 and come from clinical units other than the infection unit. The development data comprises 20,488 tokens from a nutrition unit. It is used in the bootstrapping cycle to guide selection and stopping. The labelled test set E contains 54,700 tokens, from 36 patients seen at an infection clinic, also in 2008.

The clinical-unit split gives the test a specific form of separation. The manually annotated material used to fit the original CRF excludes the infection unit, and the test records come from that unit. The evaluation therefore asks how the tagger performs when the unit supplying the test records differs from the units supplying the manual training records. The reported setup keeps the infection test annotations out of development decisions, which are instead supported by the nutrition data.

The Health Bank, also called the Swedish Health Record Research Bank, houses the annotated corpus and a much larger collection. The paper describes the larger resource as containing records from 512 clinical units and over two million patients, with over 500 million tokens across structured and unstructured material. The study draws an unlabelled subset of 100,000 sentences, containing around 2,000,000 tokens. These sentences come from a mix of clinical units, including cardiology, language and speech pathology, and orthopaedics, mainly from 2008 and 2009. The paper describes this pool as containing 20 times more tokens than the manually labelled training set.

The figures describe two distinct scales. The Health Bank totals describe the resource from which the researchers could draw. The sentence and token counts for U describe what they actually used for the experiment. The increase in training material comes from labels made for that subset. Its clinical provenance gives it a closer relationship to the original task than an arbitrary collection of Swedish prose would have, while the authors acknowledge possible overlap in units or staff names across the labelled and unlabelled collections.

#### What the baselines establish

The simplest comparison is a unigram tagger implemented in Scikit-learn. It gathers the labels associated with each token during training. At prediction time it gives a known token the label that occurred most often with it. An unseen token defaults to the non-identifying category. This checks how much detection is possible through repeated vocabulary alone. It also makes the expected weakness concrete. A new name or a date written as an unfamiliar token can pass through even if its form or context would give another tagger grounds to recognise it.

The second baseline is the CRF trained on L alone. It uses the same types of features and sequence machinery as the self-trained configurations. It can therefore benefit from spelling, context and neighbouring labels without receiving automatically annotated sentences. Comparing self-training with this baseline addresses the contribution of the extra training data. Comparing either CRF with the unigram tagger includes a broader change in how the sentence is represented and how predictions are made.

For the unigram tagger, the overall comparison reports 92.82% precision and 44.55% recall on the test set, along with leakage of 33.90%. The authors anticipated the low recall because unseen tokens receive ordinary-text labels. The result illustrates how a system can make mostly correct positive decisions and still miss a substantial amount of identifying material. It finds the items its vocabulary supports and is reluctant by design to label items beyond that vocabulary.

#### Overall recall, precision and leakage

On the held-out test records, both self-training configurations achieve higher overall recall than the CRF trained only on manually annotated data. The confidence-filtered configuration gives the highest reported recall. The overall comparison uses 84.93% for the manually trained CRF, while the detailed token-level table for that baseline gives 84.75%. The chart uses the values from the overall comparison throughout.

Overall recall on the Stockholm EPR PHI test set Both self-trained CRFs recover more annotated identifying material than the manually trained CRF.

**The numbers**

| System or setting | Recall % |
| --- | --- |
| Unigram tagger | 44.55% |
| CRF trained on manual labels | 84.93% |
| Self-training without selection | 88.16% |
| Self-training with selection (this paper) | 89.20% |

The detailed token-level comparison gives the baseline used in the paper’s opening account of the result. On E, the manual-only CRF records 95.73% precision, 84.75% recall and 89.90 F1. With selection, the corresponding values are 94.20% precision, 89.20% recall and 91.63 F1. Without selection, they are 94.14% precision, 88.16% recall and 91.05 F1. In this comparison the gain in recall is accompanied by a loss in precision, and the combined score rises for both self-trained configurations.

The overall comparison lists 95.80% precision and 90.04 F1 for the manual-only CRF alongside its 84.93% recall. The paper gives no explanation for the difference between those baseline entries and its detailed baseline table. For the self-trained configurations the reported overall precision, recall and F1 agree with the detailed tables. The manual baseline discrepancy leaves the direction of the comparison intact. The article’s statement of the detailed precision and recall changes uses the figures from the same token-level tables.

Leakage is lower for both methods that use additional automatic labels. The manually trained CRF leaves 12.84% of annotated identifying tokens unmarked according to the reported leakage measure. The unfiltered procedure records 9.40%, and the filtered procedure records 8.16%. These are the paper’s leakage results, which have their own counting rule. A token that moves from the ordinary-text category to an incorrect identifying category can improve leakage while remaining an error in exact-category recognition.

Reported leakage on the Stockholm EPR PHI test set The confidence-filtered CRF leaves the smallest reported share of identifying tokens unmarked.

**The numbers**

| System or setting | Leakage % |
| --- | --- |
| Unigram tagger | 33.90% |
| CRF trained on manual labels | 12.84% |
| Self-training without selection | 9.40% |
| Self-training with selection (this paper) | 8.16% |

The authors report a statistically significant difference between the manual-only CRF and the configuration that adds confidence-selected automatic annotations. They use McNemar’s test with a Yates correction of 1.0. This is a comparison of paired outcomes, since the classifiers are evaluated against the same test material. The authors report no statistically significant difference between S and NS. The order of the reported scores thus describes what happened on E, with a stronger basis for the finding that adding selected data changed performance than for attributing an advantage to the filter itself.

#### What changes across categories

Health Care Unit is where the recall change is particularly visible. On the detailed test evaluation, the manually trained CRF reaches 72.88% recall. The configuration with selection reaches 80.87%, with precision going from 95.01% in the manual baseline to 92.57% after selected self-training. The unfiltered CRF reaches 79.37% recall for the class. The added data help find more tokens in unit names, while the class still contributes heavily to the identifying material left uncovered.

Date Part and Full Date respond differently. Date Part recall on E goes from 90.15% with manual labels alone to 94.93% with selection. Full Date recall is 97.87% in both of those conditions. With unfiltered self-training, Full Date recall reaches 98.58%. The distinction is informative because the authors describe full dates as usually following a recognisable form. The manual examples already provide a strong basis for that class, whereas the partial dates show more benefit from the selected additions in this experiment.

The classes for personal names also behave differently from each other. With selected data, Last Name recall rises from 94.14% to 95.60% and precision rises from 96.62% to 97.39% on E. For First Name, recall goes from 95.24% to 95.83% while precision goes from 94.12% to 89.94%. The First Name result shows that the overall precision change can hide a larger shift for an individual category. It also gives a reason to look at both recognition measures before describing a class as improved.

For Phone Number, recall rises from 85.96% on the manual baseline to 91.23% under either form of self-training. The manual baseline reports 100.00% precision for this class. Precision is 92.86% with selection and 94.55% without it. Age remains at 64.52% recall and 100.00% precision in the detailed tables for the manual baseline and both self-trained configurations. Greater recall overall therefore coexists with persistent difficulty recognising ages in forms other than the one represented consistently in the original training records.

Location has a different balance again. In the token-level test results, selection raises recall from 80.65% to 83.87%, while precision goes from 78.12% to 70.27%. Without selection, Location recall is 87.10% and precision is 75.00%. The unfiltered procedure is stronger on both reported Location measures than the filtered procedure, even though the overall recall ordering favours selection. The detailed error analysis follows this result back to the way clinical notes use place names to refer to hospitals.

### What the ablations show

#### Increasing the manual training set

Before comparing the two self-training procedures, the authors test what happens as more of L is made available to the CRF. They add 10% of L at a time and evaluate the resulting tagger. The micro-averaged learning curve shows recall increasing as the manually labelled collection grows. Precision falls slightly after the seventh addition. This gives a reference for interpreting the self-training results. A recall gain accompanied by some precision loss can also occur when the additional examples are manually labelled.

The per-class curves reveal what aggregate improvement can hide. The first Age example appears in the second increment, and the authors observe no further change in Age recall after that point. Nearly all the age expressions in the original training set follow the same form. The paper names the Swedish pattern `n-åring`, where `n` is the age. An early example can therefore be enough to teach a recognisable shape. Additional instances following that shape offer little help for ages written differently.

Full Date also changes relatively little as more of L is added. The authors point to the regularity of full dates and the way their shape distinguishes them from other numeric strings. Last Name becomes comparatively stable after a while as well. Health Care Unit and Location start lower and show the largest improvements as more manual data are made available. The paper characterises both classes as variable in form and context, giving new examples more scope to expand what the tagger has encountered.

This is a comparison of training-set amounts and of the categories encountered as the set grows. The paper does not present separate experiments removing the dictionary features, neighbouring words or regular expressions. The learning curves show where added examples coincide with better detection. They cannot identify which individual feature caused a given curve to rise or flatten. The explanatory connection to variation in form comes from reading the curves alongside the authors’ inspection of the data.

#### Keeping the confidence filter or dropping it

The closest controlled comparison of the self-training design is between S and NS. Both use the same manually annotated foundation and learn from machine-labelled clinical sentences. S limits admission through token-level confidence requirements applied to entire sentences and uses an iterative stopping rule. NS uses all automatic labels. S has higher overall recall and lower reported leakage on E, with similar overall precision, but the reported statistical comparison does not establish a significant difference between the procedures.

The size and composition of the automatic collections help interpret that result. The manually labelled set L contains 2,795 tokens annotated as identifying in the categories counted by the paper’s training-data table. The selected automatic collection contains 34,561 tokens assigned identifying labels. The unfiltered automatic collection contains 40,695. These counts describe the annotations present in the respective collections. For the automatic sets the counts reflect the tagger’s decisions, including any erroneous positive labels.

Location shows the largest relative increase from L to S according to the authors. The manual training set has 51 Location tokens. The selected automatic set has 1,642, while the unfiltered set has 2,257. More automatically annotated Location tokens accompany improved Location recall over the manual baseline, but filtered training also gives the weakest Location precision of the CRF configurations. The count does not distinguish genuine new location examples from recurring mistakes involving hospitals and locations.

Phone Number shows the smallest relative increase in the authors’ comparison. There are 104 Phone Number tokens in L, 243 in the selected automatic collection and 461 in the unfiltered collection. Health Care Unit shows the next smallest relative increase from the manual to the selected collection. Its counts are 771 in L, 6,213 in the selected collection and 9,035 in the unfiltered collection. The authors interpret the selected and unfiltered counts as evidence that Phone Number and Health Care Unit predictions tend to carry lower confidence. Because the filter admits whole sentences, the counts also reflect confidence on other tokens in those sentences.

The Age comparison underlines the difference between volume and variety. L has 28 Age tokens, the selected automatic collection has 565, and the unfiltered collection has 613. The detailed test recall for this class stays at 64.52%. The paper traces the unchanged behaviour to the regular age form learned from the original records. The larger set of predicted ages gives the CRF more opportunities to see what its initial tagger already recognises. The test results offer no sign that those extra examples extend coverage of other age expressions.

#### When a hospital looks like a place

The authors trace much of the Location precision loss to confusion within the identifying categories. They describe a note arranging a follow-up in Danderyd, where the place name is being used to mean the hospital. The word can plausibly appear in a location list, and the writer can refer to the hospital without using an explicit word for it. The annotations distinguish the reference to the hospital from an ordinary place reference. A tagger that misses that distinction can still identify the token as sensitive.

The paper reports that the additional Location predictions in the selected configuration do not accidentally flag ordinary text as sensitive in this analysis. Instead, health care units or parts of their names are assigned the Location label. The selected tagger finds only one additional true Location in the analysis in spite of the large increase in automatically labelled Location material. Because Location has few annotations, a small number of changed assignments can noticeably affect the class’s precision and recall.

The same sort of hospital reference is also wrongly labelled as a location in the automatic training material. The paper identifies this as a possible reason the retrained tagger continues to confuse the classes. This is a specific example of the risk discussed in earlier work on self-training. A tagger can assign a plausible category with enough confidence to admit the sentence, even though the manual guidelines would assign a different category. After retraining, the system has more examples of that plausible assignment available to learn from.

Health Care Unit illustrates a separate and more direct privacy problem. Of the 138 identifying tokens left unmarked by S, the authors report that 70% belong to that class. Unit names are common, and the paper describes them as variable in length, form and boundary. The authors give a Swedish reference to urology at St Göran that can denote either a department or a person working there. Deciding between those readings changes what kind of entity the tagger should recognise and can affect which tokens are included. The authors also find that missed Health Care Unit references are disproportionately present as ordinary text in the selected automatic material.

The tabulated results settle one inconsistency in the accompanying error discussion. The discussion mentions a precision decrease for Full Date, while the detailed token-level tables give 95.83% for the manual baseline, 97.18% with selection and 98.58% without selection on E. The figures in those tables show higher measured Full Date precision in both self-trained configurations. The Location and Health Care Unit analysis has a firmer connection to concrete examples of what went wrong and to the distinction between a category error and an identifier left unmarked.

### Limitations

#### Limits identified by the authors

The authors leave direct assessment of the automatic annotations for future work. The experiment evaluates what happens after those annotations have been used to retrain a tagger. The improvement on E shows that the resulting training collection can be useful. It gives less information about the correctness of each added label, about the quality of sentence boundaries or span boundaries in that collection, or about how closely automatic annotations would agree with a new round of manual annotation. The examples of mislabelled hospital references already show why these questions deserve their own evaluation.

The authors describe the procedure as producing about 40,000 automatically annotated identifying tokens in round terms. They estimate that manually annotating 40,000 tokens would take from 60 to 180 hours, depending on whether a pre-annotation method is available. This frames the scale of the potential labour substitution. The experiment does not follow a team performing the corresponding manual work, so it offers no direct measurement of hours saved for an annotation task of equivalent quality.

They also acknowledge that the method adds a large amount of training material without establishing which examples are most useful. The filtered experiment selects by how strongly the tagger supports its predictions. Confidence may identify examples that are labelled correctly, but it also favours familiar forms. The paper suggests investigating which additions are necessary and considers co-training, transfer learning and [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) as other directions. Those approaches are discussed as future possibilities.

A further stated limitation is that leakage counts every missed identifying token equally. A missed telephone number and missed punctuation within a health care unit name contribute the same amount to the token-based measure. They can differ greatly in what they disclose. A privacy assessment that follows the authors’ reasoning would need to take account of the specificity and uniqueness of the surviving information. What is left in a record can matter as much as how many annotated tokens are left.

The paper also calls for work on the effect of lower-precision de-identification on text mining. It cites a study that reports no impact on its other text-mining tasks for a de-identification system with precision of 93% and recall of 76%. That earlier result provides a reason to examine whether a trade in favour of recall can be acceptable. The Swedish experiment measures identifier recognition and leakage. It does not evaluate how removal by any of its taggers changes the performance of a subsequent analysis of the notes.

#### Limits of the experimental setup

The held-out infection records let the authors test transfer across the particular clinical-unit split they use. The paper reports one annotated development source and one annotated test source, both drawn from records at the same hospital as the manual training data. The evaluation establishes performance for the reported split. Generalisation to a different hospital, a different period or another set of clinical writing conventions would require observations from those settings. Even within the annotated corpus, categories vary in their sensitivity to which examples are available.

The unlabelled pool makes the provenance question more complicated. The authors say there may be overlap in clinical units between labelled and unlabelled material and that the same medical professionals may appear in both. Repeated names and institutional terminology could make some of the acquired labels useful for reasons specific to the shared setting. The paper does not estimate how much of the gain comes from repeated vocabulary and how much from patterns that generalise to records with different people, institutions and naming habits.

The study’s strongest comparison concerns adding automatic annotations to this training setup. Its comparison of selection against non-selection is more limited. S changes the amount of data, the mixture of identifier categories and the procedure by which examples enter training. There is no equal-size comparison with randomly chosen automatic sentences. Such a comparison would help isolate whether selection by confidence adds value at a fixed training size. The reported absence of a significant S–NS difference leaves several explanations compatible with the observed scores, including a small benefit from filtering or an advantage that depends on the makeup of the test set.

The filtering procedure also leaves details open for replication. The paper explains the confidence signals, the separate treatment of identifying and non-identifying labels, the development set’s role and the stopping conditions. It does not publish the threshold chosen in each round or an explicit rule translating development scores and competitor probabilities into an acceptance decision. Those details would be needed to reproduce the selected sentence collection exactly. The simpler configuration still provides a comparison for the broader finding about training on automatic labels.

Token-level metrics answer narrower questions than a review of whole identifiers or whole records. A partly recognised name can contribute correct token decisions while leaving a meaningful piece in place. A category error can have little effect on concealment if all marked categories are removed. A small number of missed tokens can matter greatly if they occur together in the same record or identify a person directly. The evaluation gives no record-level distribution of leakage and no measure of how often complete identifiers survive. It can compare detection behaviour without establishing a threshold for releasing the records.

The micro-averaged results are similarly sensitive to what is common in E. A gain on a frequent category can have considerable influence on the overall score, while unstable estimates for rare categories may change it very little. The paper’s analysis of Location and Organisation makes the point concrete. A few decisions can noticeably shift the reported Location scores, and the organisation results offer very little basis for assessing the tagger’s ability with that category. Confidence filtering also provides no mechanism for deliberately seeking a category almost absent from the initial annotations.

Finally, the paper’s reporting differences constrain how precisely some comparisons can be reconstructed. The detailed manual baseline and the overall comparison list different recognition scores, and the prose about Full Date precision disagrees with the detailed tables. The paper also does not give the paired counts behind the reported significance tests. The overall pattern can be read consistently across the principal comparisons. Exact claims about the baseline scores or individual classes need to identify which table they come from, and the significance findings can be reported only at the level of detail given by the authors.

### What came after

A later paper cites Berg and Dalianis in a discussion whose scope covers [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) for electronic health records in Swedish, Norwegian and Danish. The citation gives the Swedish study a place in a broader Scandinavian clinical-language context. It connects a concrete problem in one language, how to increase identifier coverage when manual annotations are scarce, to a later work that takes electronic health record text across those languages as its subject. [Natural Language Processing for Electronic Health Records in Scandinavian Languages: Norwegian, Swedish, and Danish (2025)](https://md.research.elamur.ai/free/en/papers/woldaregay-2025-natural-language-processing-electronic-health/)

The citation establishes that the later work discusses the Swedish study within that wider subject area. It does not establish whether the authors reused the confidence filter, repeated the experiment or transferred the procedure to Norwegian or Danish records. For this line of work, the documented connection is the citation. The empirical evidence for the method remains the Swedish comparison of manual training, unfiltered self-training and confidence-based self-training on the held-out infection records.

## Cite

Cite as Hanna Berg and Hercules Dalianis. 2020. A Semi-supervised Approach for De-identification of Swedish Clinical Text. Proceedings of the Twelfth Language Resources and Evaluation Conference.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{berg2020semi,
  title = {{A Semi-supervised Approach for De-identification of Swedish Clinical Text}},
  author = {Hanna Berg and Hercules Dalianis},
  booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference},
  year = {2020},
  url = {https://aclanthology.org/2020.lrec-1.547/}
}
```

> 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)
