---
title: "Machine Learning for Violence Risk Assessment Using Dutch"
description: "A study of violence risk assessment using Dutch psychiatric notes, comparing conventional classifiers, BERTje and the Brøset Violence Checklist."
canonical: "https://research.elamur.ai/free/en/papers/mosteiro-2022-machine-learning-violence-risk-assessment/"
---
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/mosteiro-2022-machine-learning-violence-risk-assessment/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Machine Learning for Violence Risk Assessment Using Dutch Clinical Notes

# Machine Learning for Violence Risk Assessment Using Dutch Clinical Notes

Paper · 2022 · Pablo Mosteiro, Emil Rijcken, Kalliopi Zervanou et al.

**Authors:** [Pablo Mosteiro](https://md.research.elamur.ai/free/en/authors/pablo-mosteiro/), Emil Rijcken, Kalliopi Zervanou, Uzay Kaymak, Floortje Scheepers and [Marco Spruit](https://md.research.elamur.ai/free/en/authors/marco-spruit/) · **Year:** 2022 · **Venue:** arXiv:2204.13535 · Journal of Artificial Intelligence for Medical Sciences Volume 2, Issue 1-2, June 2021, Pages 44 - 54 · **Licence:** [CC BY-NC-SA 4.0 (arXiv)](http://creativecommons.org/licenses/by-nc-sa/4.0/)

[**18** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3137431013) · [arXiv:2204.13535 · Journal of Artificial Intelligence for Medical Sciences Volume 2, Issue 1-2, June 2021, Pages 44 - 54](https://openalex.org/S4210195218) · [licence](http://creativecommons.org/licenses/by-nc-sa/4.0/)

- [PDF](https://arxiv.org/pdf/2204.13535)
- [DOI 10.2991/jaims.d.210225.001](https://doi.org/10.2991/jaims.d.210225.001)
- [arXiv 2204.13535](https://arxiv.org/abs/2204.13535)
- [OpenAlex](https://openalex.org/W3137431013)

Citations: OpenAlex, 2026-10-14.

## Summary

When a patient enters a psychiatric ward, clinicians may already have written observations that could help them anticipate a violent incident. Those observations sit in clinical notes, where they can be hard to assess consistently across patients and admissions. The authors ask whether [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) can use Dutch notes to rank admission periods by their risk of a subsequently recorded incident. They study records from the psychiatry ward at University Medical Center Utrecht. The outcome dataset comprises 4280 admission periods from 2892 patients, with a recorded incident in 425 periods.

The study compares ways to turn clinical writing into evidence for classification. The conventional approaches represent each period’s notes as a numerical description of the text, using either document embeddings or the weights of recurring topics. Support vector machines and random forests use those representations alongside structured hospital variables. The other approach adapts BERTje, a Dutch version of BERT, to predict the same outcome. BERTje can process only a limited amount of text at once, so the authors test giving it either the end of the period note or a short summary. The evaluation keeps each patient’s admission periods together when splitting the data.

For the best conventional methods, the area beneath the receiver operating characteristic curve (AUC) was approximately zero.8. BERTje achieved roughly 0.66. AUC describes how well scores distinguish periods with recorded incidents from periods without them across possible decision thresholds. The Brøset Violence Checklist, already used at the hospital, gave an AUC of 0.761 ± 0.100 when the authors used it to predict incidents within 27 days of a questionnaire. The checklist’s ordinary horizon is 24 hours, and its evaluation used a different set of records. The comparable AUCs therefore establish a rough benchmark for discrimination under the study’s conditions.

The authors also investigated what the scores leave unexplained. BERTje’s training and validation losses diverged after its first training pass, yet further training did little to worsen the reported classification metrics. Shortened inputs and difficulties representing clinical vocabulary remained plausible contributors to its lower performance. In the random forests, patient age and period-note length stood out among the structured variables. A separate review found clear examples of incidents described in notes that lacked a matching positive label, although the frequency of such cases remained unknown. The results describe how well the available inputs predict an outcome in the hospital’s incident records. The reliability of those records, the choice of a decision threshold, and the effect of using the predictions in care remain distinct questions.

## Deep dive: Machine Learning for Violence Risk Assessment Using Dutch Clinical Notes

A study of violence risk assessment using Dutch psychiatric notes, comparing conventional classifiers, BERTje and the Brøset Violence Checklist. · about 39 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 a risk score can contribute

Violence risk assessment in a psychiatric ward seeks to give staff a chance to intervene before an incident. The paper describes a problem that affects both the people providing care and the institutions in which they work. It references a study that found two-thirds of mental health professionals in Dutch clinical psychiatry said they had experienced physical violence at some point in their working lives. The authors also cite research on the psychological effects on practitioners and the economic consequences for institutions. An assessment that can be made early enough to inform care matters because the opportunity to act depends on when staff recognize a risk.

The Brøset Violence Checklist gives that assessment a common format. It reduces a clinical judgment to a score through a short questionnaire used in psychiatric care. The paper describes completing the checklist as time-consuming and subject to individual judgment. At the same time, practitioners already write notes in the course of their work. These notes can preserve descriptions and observations that have no dedicated field in an electronic record. The research question is whether the information already being written down can support a useful prediction when each admission period is assessed on the same statistical terms.

A retrospective prediction study needs a way to tell which assessments would have been correct. Here, the hospital’s incident reports supply the outcomes. The investigators take text near the beginning of a period on a sub-ward and ask whether the record shows an incident during a later window. This gives the research a concrete prediction target. It also makes the quality of the study depend on how consistently the hospital documents incidents. A practitioner’s observations can enter the free-text record, the reporting system, or both. Those channels play different roles in the experiment, and a discrepancy between them changes what the evaluation counts as a mistake.

#### How earlier studies represented clinical writing

As the paper describes it, electronic records had already been used for prediction in psychiatry with structured entries such as symptom codes and medication histories. Researchers had also combined structured variables with free text to investigate suicide prediction, depression diagnosis and the risk of harm in forensic inpatient care. Access to anonymized records made such work possible. Private institutional datasets, small samples for text processing, and the relative scarcity of positive cases limited the questions those studies could answer. [Natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) provides the methods for turning the text into information a classifier can use.

The authors describe a common design in earlier violence-risk studies. First, encode the notes numerically. Then fit a classifier to associate those numbers with recorded outcomes. The representation matters because it determines what reaches the classifier. A method that registers only whether selected words are present can recognize familiar vocabulary wherever it appears. It has little direct access to the relationships between those words. A method that represents the whole document in a compact vector can preserve a broader pattern, although each coordinate may be difficult to explain in terms a clinician recognizes.

Some studies used the presence or absence of pre-defined words as features. A bag-of-words representation expands that idea to a vocabulary drawn from the data. Each word has a position in a vector, and the value at that position indicates its presence. A typical document uses only a fraction of the vocabulary, so most positions are empty. The representation retains which words appear and discards their order. It can make a recurring expression easy to detect, while leaving the rest of the sentence’s contribution to the classifier to infer from other words that happen to be present.

The authors also describe [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), which give each word a dense vector learned from the company it keeps in text. In Word2Vec, a word gets the same vector in its different uses even when it has several meanings. Paragraph2vec extends the approach to learning a vector for a passage. The passage vector gives a classifier a compact input even when documents differ in length. Related contextual approaches, including BERT, can produce different representations for the same word depending on the words around it. The difference matters in clinical writing because a word can occur in a description of an actual event, a recollection, or an anticipated possibility. [Word2Vec](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/) and [Paragraph2vec](https://md.research.elamur.ai/free/en/papers/le-2014-distributed-representations-sentences-documents/) are the earlier methods the paper draws on for this comparison.

Another earlier route was to represent a note by its mixture of recurring topics. [Topic modeling](https://md.research.elamur.ai/free/en/concepts/topic-modeling/) learns groups of words that tend to characterize similar material and estimates how strongly those groups are represented in each document. Under this approach, a note can have some weight on several topics even if it mentions none of them by name. The words associated with a topic can provide a starting point for [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). A reader can inspect what goes into a topic and then ask whether the topic contributes to a classifier’s decisions. The authors cite a psychiatric study that used such representations for early readmission prediction, a different task from the one they investigate.

#### Why the Dutch setting warranted its own comparison

The paper describes promising applications of text-based prediction in English-language psychiatric records and a smaller body of violence-risk research using Dutch text. Earlier work on Dutch notes had already combined several kinds of text representation with conventional classifiers. The authors had previously compared conventional methods, including a topic-based representation, and studied agreement among some classifiers. The present work extends that line of inquiry by including the clinical checklist as a benchmark and testing a contextual representation for Dutch notes.

The contextual approach comes from [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/), which learns to represent words using their surrounding text. The authors were interested in BERT because it had performed well in different languages and domains. They cite work on Chinese as one illustration of the broader use of pretrained systems. Their contribution was to test whether a Dutch implementation would be useful for classifying psychiatric records, an application they had found no previous Dutch study of BERT addressing. [Revisiting Pre-Trained Models for Chinese Natural Language Processing](https://md.research.elamur.ai/free/en/papers/cui-2020-revisiting-pre-trained-models-chinese/)

A hospital needs more from a risk score than an overall measure of its ability to rank cases. If staff use a score to act, a threshold turns it into a decision. Setting that threshold changes which periods receive attention and how many recorded incidents the system misses. The paper emphasizes that different errors can have different consequences. An unnecessary intervention and an incident that staff had no opportunity to anticipate each impose a cost, and a ranking statistic alone leaves those costs unspecified.

The scarcity of positive cases makes the measurement problem especially visible. An accuracy figure counts correct predictions on periods without a reported incident along with correct predictions on periods with an incident. When the former are much more common, the total can appear favorable even if the system does little to identify the cases of greatest interest. The authors therefore consider measures that characterize how performance changes across thresholds and that give different weight to the minority outcome. The reading of the experiments depends as much on those choices as on the choice of text representation. [Evaluation & benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

### The method, step by step

#### From patient records to an admission-period example

The task is a form of [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). A classifier sees a document assembled from clinical notes and learns to score the outcome associated with it. Some of the approaches also receive structured variables. The authors first have to decide what counts as a document, which outcome belongs to it and where to place the boundary between information used for prediction and evidence used to check the prediction.

The source records come from the psychiatry ward at University Medical Center Utrecht, covering 2012-08-01 to 2020-03-01. Nurses and physicians wrote the notes in Dutch while caring for patients. DEDUCE was used to anonymize the 835k available notes. The hospital’s ethics committee reviewed the study and granted its approval. The pool of individual notes supplies material for learning text representations. The outcome dataset has a different unit, defined by the patient’s stay on a particular psychiatry sub-ward.

The authors call a stay on a sub-ward an admission period. A patient can appear in the dataset through more than one such period, whether through a later admission or a move between sub-wards. The period is the object being classified. The patient is the unit the authors use when dividing data for training and evaluation. Keeping these units distinct allows the experiment to score different episodes of care while guarding against evaluation on other episodes of a patient whose records were used to fit the classifier.

The authors join the notes for each admission period into a single text, using notes from 28 days before the period began through one day after it began. The resulting document is called a period note. Earlier material is available when a patient has already been receiving care, for instance elsewhere in the hospital or at another institution. The paper specifies a narrower look-back rule for patients who transferred within the past 5 days. In that case, the period note includes earlier notes only from 7 or fewer days before the start of the period. This means the same kind of example can contain different amounts of history, depending on the patient’s route into the sub-ward and the documentation available.

The authors discard a period note if it has fewer than 100 words. This exclusion applies to the combined document used for classification. A separate length requirement applies to individual notes used to learn the conventional text representations. The distinction matters because a large collection of relatively short notes can teach a system about the language used at the hospital, while the final risk assessment is evaluated only on periods with enough text to meet the admission-level rule.

An incident recorded between 1 and 28 days after the admission period begins gives that period a positive label. Otherwise, the authors assign it a negative label. This definition uses the presence of a record as evidence of an incident. It provides a reproducible target from the data the investigators had and makes no independent judgment about an episode the reporting system missed. The study’s review of possible missing reports later returns to precisely that distinction.

The authors also collect structured information about admissions, notes, patients, medications and diagnoses. Examples include the starting time of the period, the dates and times of notes, patient age and gender, medication counts, and whether diagnoses appear in the record. This gives the conventional classifiers an opportunity to use information beyond the language itself. It also allows the authors to ask which recorded variables contribute most to the random forests’ decisions.

From clinical notes to held-out risk scores The steps in order.

#### Preparing the notes for conventional classification

Clinical writing can contain technical vocabulary, spelling variation and a structure unlike that of general-purpose prose. The authors therefore learn the conventional text representations from the hospital’s own anonymized notes. The pool available for learning those representations contains 835k notes, and an individual note has to contain at least 10 words to be included. Incident labels are used in the subsequent classification task. Learning the representation and learning how it relates to the outcome are separate operations.

For the conventional pipeline, the authors lower-case the text, normalize characters with diacritics and remove non-alphanumeric material. Their example of character normalization is a shift from ë to e. They apply [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) with NLTK’s Dutch word tokenizer, which divides the text into units that can be processed separately. They remove words on NLTK’s default Dutch stopword list, reduce the remaining words with the Dutch Snowball stemmer and list removal of full stops among the preparation steps. [Stemming](https://md.research.elamur.ai/free/en/concepts/stemming/) groups some word forms by reducing them to a shared form, helping the pipeline treat related spellings or inflections as recurring evidence.

Every normalization choice changes the material available to the later stages. Lowercasing makes case variants count together. Removing character distinctions and reducing words can make local variants easier to match. The resulting representation describes patterns in the normalized vocabulary. The BERTje pipeline uses its own pretrained tokenizer, so the conventional and contextual systems also differ in how they encounter the language of a period note.

#### Representing an entire period note

The first conventional representation uses Doc2Vec, Gensim’s implementation of paragraph2vec. It represents a passage as a dense vector. The classifier can then work with a fixed set of numerical features even when one period note is much longer than another. The authors start from the defaults in Gensim 3.8.1 and change settings that control training length, the accepted vocabulary, the size of the representation and the text context examined during learning.

They raise the number of training epochs from 5 to 20. An epoch is a pass through the training material, and the authors allow more passes to give training more opportunity to converge. They raise the minimum frequency for a word to enter the vocabulary from 5 to 20 occurrences. The motivation is to keep repeated misspellings from becoming vocabulary entries too easily. They enlarge the vector from 100 to 300 dimensions to give it more room to represent information while keeping training time acceptable. They reduce the context window from 5 to 1 because the structure of clinical notes can make wider local context less informative. These settings specify the document representation used in the experiment. The paper gives the motivations for the changes without isolating the contribution of each one to violence-risk performance.

The other representation uses latent Dirichlet allocation, or LDA. The idea is to describe a document by how much it draws on recurring groups of words. A topic has a word distribution, so words contribute to the topic with different strengths. The period note gets a weight for each topic. The classifier receives those weights as features and can learn whether particular mixtures are associated with the recorded outcome. A person inspecting the representation can also look at the words associated with a topic to understand what sort of language contributed to the weight.

The authors fit the topic representation with LdaMallet using its default training parameters. To select the number of topics, they use a Gensim coherence measure. Coherence asks how well the words associated with a topic fit together according to the measure used for selection. A setting of 25 topics maximized coherence in their analysis. They then represent each of the 4280 period notes by 25 weights, one for each learned topic. Topic count is thus selected for the structure of the text representation, while the later choice of classifier settings uses performance against incident labels.

#### Fitting and validating the conventional classifiers

The authors use a support vector machine and a random forest. A support vector machine separates the classes in the space defined by their input features. Its settings determine how much it penalizes errors in fitting the training examples and how narrowly the influence of those examples is concentrated. The authors use the scikit-learn implementation and enable probability estimates so the classifier can provide scores for evaluation at different thresholds. They also use the setting called `balanced`, which puts more weight on examples from the rarer class according to the training labels. [Support-Vector Networks](https://md.research.elamur.ai/free/en/papers/cortes-1995-support-vector-networks/)

The paper gives the candidate values tested for the support vector machine’s cost parameter.

```
C ∈ {10⁻¹, 10⁰, 10¹}
```

Here C is the cost parameter governing the penalty for errors during fitting. The symbol ∈ means that C takes one of the values in braces. Each power of 10 is a candidate tested during validation. The exponent is written above the base, with a minus sign where it is negative.

The second range is for the kernel coefficient.

```
γ ∈ {10⁻⁵, 10⁻⁴, 10⁻³, 10⁻², 10⁻¹, 10⁰}
```

Here γ is gamma, the kernel coefficient that controls the scale of the similarity calculation used by the classifier. The symbol ∈ again indicates membership in the set in braces, and each power of 10 denotes a candidate setting. The authors take the candidate ranges from choices motivated in prior work on clinical notes.

A random forest combines the decisions of many trees. Each tree passes an example through successive splits on input features. A forest combines the resulting predictions and can provide an estimate of how important an input feature was to its decisions. The authors use the scikit-learn implementation with 500 trees and balanced class weights. They tune the minimum number of observations allowed in a terminal leaf, the number of candidate features considered at a split, and the criterion used to choose a split.

For the minimum leaf size, they consider values above the default of 1 to discourage overly specific leaves. For the number of features considered at a split, they include the default `auto`, which considers the square root of the feature count, and smaller alternatives. They try both splitting criteria available in the implementation used. The point of testing these settings is to choose a degree of flexibility that works on held-out development patients. A forest with more freedom to split can fit detail in the training data, which may help if the detail recurs and may hurt if it is peculiar to those records.

The study uses nested cross-validation. A fold is a portion of the data held aside for a particular job in a training round. The outer 5-fold procedure holds out the periods of 20% of patients for testing in each round. Periods from the remaining 80% form the development set. This patient-level split ensures that the conventional classifier’s supervised fitting and its test evaluation use periods from different patients in that round.

The authors then carry out 5-fold cross-validation inside the development set. In each inner round, periods from 20% of the development patients are used for validation, with periods from the remaining 80% used for training. The authors choose the settings that give the highest average area under the precision-recall curve, or AUPRC, on those validation folds. The inner loop answers which settings to use. The outer loop estimates performance after the choice. Its test outcomes are kept apart from the choice of settings.

Once the settings for an outer round have been selected, the conventional classifier is refitted on the whole development set and used to score the corresponding outer test set. The process yields a set of scores for each outer fold. The authors calculate their metrics for each fold and report an average and standard deviation across the outer rounds. The standard deviation describes how the scores varied across those particular patient splits.

#### Adapting BERTje and fitting text into its input

The contextual experiment uses the sequence-classification implementation in Hugging Face Transformers. Its starting point is a pretrained system that can be adapted to a new classification task. The authors initially considered Multilingual BERT and a Dutch-specific version. In exploratory work with sentiment classification on Dutch book reviews from 110kDBRD, BERTje performed better, so they selected it for the clinical experiment. That selection uses evidence about Dutch sentiment classification. The violence-risk study then measures what happens when the chosen system is applied to a different task and kind of writing. [Transformers: State-of-the-Art Natural Language Processing](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/) and [BERTje](https://md.research.elamur.ai/free/en/papers/de-vries-2019-bertje-dutch-bert-model/)

The authors use BERTje’s pretrained tokenizer to turn the text into the units it accepts. A written word can split into several units, so the number of tokens can exceed the word count. This detail matters for an input with a fixed limit. The authors add a linear classification layer to convert BERTje’s representation into scores for the recorded-outcome task. They then use [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) to adapt the pretrained system using the labeled admission periods.

Training uses AdamW, the optimizer that adjusts the learned parameters. The learning rate controls the size of those adjustments. It rises linearly from 0 to the chosen rate during a warm-up phase and then falls linearly to 0. Warm-up occupies 10% of the training set in the authors’ description. To choose it, they ran an exploratory study on a dataset of Dutch-language tweets, comparing 5%, 10% and 20%. The clinical experiment uses the 10% setting that did best there. As with the preliminary book-review test, the tweet experiment supplies a design choice rather than evidence about the clinical outcome.

The optimizer’s learning rate is 2 × 10⁻⁵. In this expression, 2 is the multiplier, × denotes multiplication, and 10⁻⁵ is the power of 10 that sets the scale. The authors use the Transformers default dropout probability of 0.1. Dropout makes parts of the representation temporarily unavailable during training to reduce the system’s dependence on particular activations. They set AdamW’s epsilon, the term used to keep its numerical calculations stable, to 10⁻⁸. These choices, together with the schedule, define how the pretrained parameters are adjusted during training.

BERTje accepts sequences of at most 512 tokens. The authors compare two ways of making the period notes fit. Truncation supplies the last 512 tokens. It preserves the end of the assembled record as continuous text and excludes material earlier in the sequence when the note exceeds the limit. The other approach uses Gensim’s TextRank for [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/). This can retain material from elsewhere in the note, depending on which passages TextRank selects. The authors request a summary shorter than 512 words because tokenization can make the final sequence longer than the corresponding count of written words.

Those choices let the study test different parts of the same source material. Truncation decides what to retain by position. TextRank decides what to retain by its assessment of the text’s content. Neither decision uses an incident label at the point where the shortened input is made. A sentence can therefore disappear from both versions even if a clinician would regard it as important. The conventional representation compresses a period note into numbers, while the BERTje experiment discards text before forming its representation.

The authors use nested 5-fold cross-validation for the BERTje experiment as well. They test batch sizes of 16, 32, 64, 128 and 256. Batch size determines how many examples contribute to an update during training. They allow a maximum of 4 epochs and use the relationship between training and validation losses to select an epoch count. A falling training loss shows that the system is fitting the examples it sees. When validation loss rises over the same interval, the additional fitting is helping on training examples while making the loss worse on separate examples.

BERTje is trained using cross-entropy, a loss that penalizes assigning low probability to the outcome that was recorded. Because the standard loss treats positive and negative examples symmetrically, the authors rebalance the training and validation sets before fitting and computing loss. Their reported metrics are calculated on the original imbalanced data. This makes the class mixture used to assess the predictions the one present in the study dataset, even though training and loss evaluation use rebalanced sets.

#### Constructing the checklist comparison

The Brøset Violence Checklist produces an integer score from 0 to 6 and is intended to estimate risk over the next 24 hours. According to the paper, assessments took place upon admission and approximately every one to two weeks for the remainder of the stay. The authors wanted a point of comparison based on the hospital’s existing practice. A checklist was unavailable for some of the admission periods in the classification dataset, so they used a separate retrospective sample.

They link checklist scores to incident reports by patient identifier and treat each score as an observation. This yields 11,799 observations. The target is a recorded incident within 27 days after the checklist was completed. They chose this longer horizon to approximate the one used in the text-based analysis. A checklist can be administered during a stay, so a window anchored to a questionnaire can begin at a different point in care from a window anchored to the start of a sub-ward period.

The hour of completion was unknown. The authors run the analysis with the time placed at 0:00 and then at 23:59. In each run, the assumed time determines the bounds of the incident window. The two analyses check sensitivity to that ambiguity using times that bracket the day. The available score and the linked incident record together provide the information needed to evaluate the benchmark.

#### Measuring discrimination and agreement

The receiver operating characteristic, or ROC, curve follows what happens as the threshold on the risk score moves. At each threshold, the true-positive rate is the share of recorded positive periods found by the classifier. The false-positive rate is the share of labeled negative periods it flags. Area under that curve, called AUC in the paper, condenses the tradeoff into a single measure of discrimination. It is useful for comparing rankings across datasets with different class proportions when interpreted in light of other differences in the samples.

The precision-recall curve uses recall, the share of recorded positive periods detected, and precision, the share of flagged periods with a positive label. AUPRC is the area under that curve. True negatives do not enter either quantity directly. This gives the metric a focus on whether the classifier finds cases with recorded incidents and how frequently its flags are confirmed by the labels. As precision depends on the mix of positive and negative cases, the authors use AUPRC to choose settings within the clinical dataset and restrict the checklist comparison to AUC.

The area under the kappa curve, or AUK, uses Cohen’s kappa, a measure of agreement corrected for what would be expected by chance. The chance correction depends on the class balance, so AUK reflects class skew. By tracing kappa at different thresholds, the study can compare overall performance and inspect where chance-adjusted agreement is strongest. A curve can also show whether a range of thresholds gives similar agreement, leaving room for clinical judgment about the relative costs of the errors.

### Experiments and results

#### Who and what the evaluations count

The clinical classification dataset contains 4280 admission periods from 2892 distinct patients. The target is positive for 425 periods because an incident report records violence during the study window. There are 3855 periods labeled negative. The source pool of 835k notes is much larger because individual documents are used to learn representations, and multiple documents can go into the same classification example. These counts describe different parts of the experiment and imply different amounts of evidence for learning vocabulary and learning the outcome.

The checklist analysis has 11,799 observations measured at the level of a questionnaire score. It has about 1 positive for every 4 negatives, compared with the paper’s description of 1/10 for the violence-risk dataset used by the classifiers. A patient can contribute scores obtained during a stay. The classifier evaluation groups periods by patient, with reported variation estimated across its outer folds. The checklist evaluation derives its uncertainty from the calculation of the area under its curves. The difference matters for how each reported number is read.

The structured entries contribute to an experiment that asks what can be learned from available clinical records. The period-note representations give the conventional classifiers a way to compare language across periods. The structured variables add potential signals, such as the age of the patient or the amount of text written. The BERTje experiment specifically tests classification from text shortened to fit a contextual encoder. The comparison records the performance of those implemented approaches, each with its own representation and training procedure.

#### Discrimination on the Dutch admission periods

The best conventional configurations achieved an AUC of roughly 0.8 on the admission-period classification task. The authors describe the configurations using support vector machines and random forests as consistent with one another. They also report consistency with earlier work that used a smaller dataset. The study therefore supports the broader finding that the conventional approaches can discriminate between outcomes to a modest degree. The reported comparison gives little grounds for choosing one conventional configuration as a clear winner.

BERTje achieved an AUC of roughly 0.66 for the same prediction task. Its results were worse than those of the conventional classifiers. The comparison concerns shortened clinical notes, the available Utrecht cohort, and the training choices the authors tested. The experiment supplies a concrete example in which using a contextual representation does not improve a text-based clinical prediction. It also gives several plausible reasons why the expected advantage may have been difficult to realize.

AUC for conventional classifiers and BERTje on the Utrecht admission-period dataset The best conventional configurations discriminate better than BERTje in the admission-period experiment.

**The numbers**

| System or setting | AUC |
| --- | --- |
| Best conventional configurations (this paper) | 0.8 |
| BERTje | 0.66 |

The values in the chart are the paper’s approximate AUC results for the two approaches. AUC aggregates behavior over the thresholds on a score. A value of approximately 0.8 describes a better ability to place periods with recorded incidents above periods without them than an AUC of approximately 0.66. It supplies no direct count of incidents that clinicians would detect at any particular threshold. The number detected would depend on the threshold and the way the classifier behaves around it.

All classifier runs are evaluated using AUPRC, AUC and AUK. The authors report broadly consistent results among the configurations within the conventional group and within the BERTje group across these metrics. The relative uncertainty was smallest for AUC. The use of AUPRC during development consequently serves a different purpose from reporting AUC prominently. Development uses a measure centered on identifying positives in the imbalanced data. Reporting AUC makes it possible to discuss discrimination alongside the checklist result.

The authors place the results beside two kinds of earlier evidence. Their conclusions cite a structured-variable study that reported AUC of 0.7801. This is a comparison with a separately reported study, instead of a score obtained by running that approach on Utrecht’s held-out patients. The paper also cites psychiatric prediction research using English notes with AUC values of 0.85 and higher. The Utrecht methods did not reach that level. Because each line of evidence comes from its own setting, these numbers situate the result without isolating the effect of writing language, choice of classifier or definition of the outcome.

#### What the checklist score measures

In its retrospective benchmark, the checklist achieved an AUC of 0.761 ± 0.100 for incidents within 27 days of completion. The central value comes from applying the trapezoidal rule to the evaluation curve. This method joins consecutive points with straight lines and calculates the area under them. The estimate of uncertainty uses the left- and right-hand rules, which take the value at one end or the other over each interval. The resulting spread shows how sensitive the estimated area is to the integration method.

That sensitivity arises because the checklist can return only the integers from 0 to 6. Sliding a threshold across a score with few possible values gives a curve with few distinct operating points. Between those points, the area depends on how the calculation fills in the gap. The authors show ROC curves for both assumed times of completion and include random guessing as a visual point of reference. The reported ± 0.100 belongs to the integration comparison. It has a different meaning from the variation of AUC across the patient folds of the text analysis.

For the checklist and conventional classifiers, the central AUC values are similar enough for the authors to describe them as comparable. The comparison is most informative as context for the magnitude of the text-based result. The checklist scores and the period notes came from samples with different positive rates. The authors restrict the numerical comparison to AUC because, among the measures they use, it is invariant to class balance. Precision-recall and kappa were also analyzed for the checklist, but their areas reflect how the outcomes are distributed in that sample.

Even with AUC, the benchmark includes differences beyond prevalence. The observation behind the score is a checklist or an admission period. Their starting points differ, and their eligible records differ. A direct operational comparison would need the same outcome, horizon and eligible set for both approaches. The present experiment shows where the text-based scores sit in relation to a familiar instrument under a roughly similar research horizon.

### What the ablations show

#### How the comparisons narrow the explanations

The study compares complete classifier configurations and changes selected settings in the BERTje experiment. It also examines vocabulary, suspected missing labels and feature importance. These analyses answer different questions about performance. A comparison of shortened inputs tests how robust the result is to two ways of fitting text into BERTje’s input. Following losses across training epochs examines whether more training improves or weakens prediction. Reviewing notes and feature rankings helps identify possible sources of information and error in the underlying data.

Within the conventional experiment, the broadly consistent results cover changes in the text representation and the classifier. A topic mixture gives the classifier features tied to recurring groups of words, while Doc2Vec provides a dense document representation. A support vector machine and a random forest use those features in different ways. Their similar results suggest that the study’s main conventional finding is not confined to a single configuration. The comparison gives less traction on which individual input or setting accounts for the score. For example, its account of the Doc2Vec settings explains why they were chosen without measuring how much each adjustment contributes to AUC.

The two shortening strategies probe a practical choice about the material available to BERTje. Truncation provides a contiguous passage from the end of the period note. TextRank can bring in material from elsewhere by selecting what it judges useful for a summary. The authors describe the BERTje configurations as consistent with one another across the metrics. The study thus gives little reason to expect that switching between these shortening strategies alone would bring BERTje up to the conventional scores. Both still operate on a reduced version of the original period note.

#### What an additional training pass revealed

The selected training duration was 1 epoch for every BERTje configuration. After that, the validation loss rose quickly even as the training loss continued to fall. This is the pattern the authors identify as evidence of overfitting. The system gets better at assigning probabilities to the cases it trains on, while the loss indicates that its probabilities become worse for cases held aside. It is precisely the divergence between these two curves that makes additional training a suspect.

The authors also trained for a second epoch and recomputed the test metrics. The reported performance did not significantly worsen. That result limits what the loss curves explain. An increase in loss can occur when a classifier assigns more extreme probabilities to individual predictions, while leaving the ordering of many cases similar. AUC evaluates ordering across thresholds, so the loss and AUC can move differently. The authors conclude that the overfitting visible after the initial pass does not account for the gap between BERTje and the conventional methods. A small labeled cohort could still make adaptation difficult from the start.

The difference also matters when interpreting the apparent precision of a risk score. Classification metrics can remain similar across training passes even when probability estimates change. The paper uses the validation loss to choose among training durations and the outer folds to measure discrimination. Together they characterize different properties of the trained classifier. Neither measurement establishes that a particular score can be read as an accurate probability of an incident in a new admission period.

#### Vocabulary before and after tokenization

The authors compare the admission-period texts with Dutch reviews from 110kDBRD to investigate how much their vocabularies vary. They use the [type–token ratio](https://md.research.elamur.ai/free/en/concepts/type-token-ratio/), which relates the number of distinct items to the number of times items occur. A repeated item adds to the total count every time it appears and adds to the distinct count only at its first occurrence.

```
TTR = V ÷ N
```

Here TTR is the type–token ratio. V is the number of distinct items and N the total count of items, including repetitions. The symbol ÷ denotes division, and = states how the ratio is defined. An item is a word when the authors analyze the raw text and a token when they analyze the tokenizer’s output. A higher ratio indicates greater variety under the counting procedure used.

At the word level, the raw clinical texts appeared to have a less varied vocabulary than the review dataset. Summarizing the clinical texts increased their measured variety. The authors suggest that summarization may keep distinctive material while removing repetitive passages. The ratio depends on both the distinct count and the total count, so it describes the composition of the retained text. It does not identify which retained words bear on violence risk.

After BERTje tokenization, the full and summarized clinical texts had similar ratios, and the reviews had a much lower ratio. The paper’s table specifies that the token analysis considers only the first 512 tokens. That diagnostic convention differs from the truncation experiment, which keeps the last 512 tokens. The diagnostic compares vocabulary under a common counting rule. The prediction experiment asks how well a particular part of the note supports classification.

[Subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) allows several forms to share parts of their representations. This can reduce the number of distinct items compared with a count of whole words. The authors found a smaller reduction in the clinical material than in the reviews. They suggest that unfamiliar clinical forms may be split into fragments that have little to do with the intended structure of the word. A fragment can carry useful meaning in one setting and fail to preserve it in another. The frequency comparison gives a reason to investigate that possibility and leaves its effect on the classification score unmeasured.

The authors also inspect items BERTje maps to `[UNK]`, its token for unrecognized material. Examples include `cq`, punctuation and the angle brackets that mark anonymized names. Some of these items might carry information the tokenizer loses. Others arise from formatting and may contribute little to prediction. An unknown-token count combines those possibilities. The paper uses it to show a mismatch worth examining between the clinical text and the pretrained tokenizer. It leaves open how much performance would improve if the mismatch were addressed.

#### Looking for incidents that the labels missed

The authors noticed that some periods labeled negative had notes that appeared to describe violence. To investigate, they returned to practitioner notes written between 1 and 28 days after the period began. These notes serve as evidence in an audit of the outcomes. The audit uses the incident window so the researchers can ask whether the nursing or medical record describes an event during the same period the reports are supposed to cover.

An expert psychiatrist helped create a list of incident-related words. The researchers inspected some sentences from negative periods that matched the list and expanded the vocabulary to cover relevant expressions they had missed. They then removed known misleading uses. For example, the Dutch verb *slaan* can mean to hit, while *omslaan* can describe a change. The sequence *duw* can refer to a push, but appears inside *weduwe*, the word for a widow. The search required several forms of *slaan* to match whole words because their common letter sequence is too short to be specific.

After exclusions, the search flagged 1663 negative admission periods, corresponding to 43% of the 3855 negative periods. That count is the number of periods with candidate text, not the number with confirmed missing reports. Several keywords could occur in the same period, which is why the count of unique periods is the useful quantity here. The screening procedure casts a broad net around language that could refer to an incident.

When the researchers read some of the matching material, they found that the great majority of the material they examined did not describe an incident that should be counted as a missing report. Some passages concerned striking objects without causing harm. Others discussed earlier events or what might happen under hypothetical circumstances. Some, however, plainly described incidents that appeared to have gone unreported. The analysis establishes the existence of label errors while leaving their frequency unresolved. It also shows how much interpretation can be required to turn an incident-related word into evidence about an event within a specified time window.

#### What the forests relied on

In each outer round, the researchers retain the ten most important features from the random forest selected in the inner loop. They summarize the results in two ways. One summary counts which features most frequently appear among those ten. The other considers which accumulate the highest total importance. The lists were similar. The two features that recurred most frequently were age when the admission period began and the word count of the note for that period.

The authors then plot the distributions of age and note length separately for positive and negative periods. Periods with a recorded incident involved younger patients on average, and their period notes were longer on average. The result links the importance scores to observable differences in the cohort. It also shows that the record carries information in its amount and structure as well as in the words the clinicians wrote.

The importance analysis describes the forests that were fitted. Features can be useful because they are associated with other relevant characteristics of patients or with the way information is recorded. For example, the association with length shows that the volume of documentation varies with the outcome. The ranking gives no estimate of the gain in performance from that feature alone, because allocating importance in a fitted forest is different from removing a feature and rerunning the evaluation. Age and note length are therefore findings about the prediction system and its data, with their causal interpretation left open.

#### Where the operating threshold might lie

The authors use the kappa curve from an outer round of the support vector machine to illustrate threshold selection. Cohen’s kappa is plotted against the false-positive rate, with chance-level agreement providing a baseline of 0. A threshold at the peak would maximize the agreement measured by kappa for that round. The plot shows a broad range of false-positive rates with values close to the peak.

For a clinician, a broad peak means that choices with similar chance-adjusted agreement may differ in how often they call attention to a period that has no reported incident. The authors argue that practitioners should inform the threshold choice because they can weigh the consequences of missed incidents and unnecessary interventions. The plot illustrates the information the curve can supply to that discussion. It reports a single round of the evaluation, so it leaves open how stable the near-maximum region would be across different patients or settings.

### Limitations

#### Limits the authors identify

The authors explicitly limit the meaning of the checklist comparison. They extend the checklist’s evaluation horizon to 27 days to approximate the text-based task. The checklist is intended for assessment over 24 hours. The result of using it on the longer horizon cannot establish how a text classifier compares with a checklist used for its ordinary purpose. The separate samples also have different class distributions, and the study leaves the work of aligning those samples for another investigation.

There is also some ambiguity in the paper’s descriptions of the checklist horizon. The benchmark procedure starts the incident window at questionnaire completion, with assumed start and end times on that date. The limitations discussion describes the long window in relation to the first day of admission. Since the method allows checklists from later in a stay, the survey-based benchmark is best understood through the explicitly described procedure of linking each score to subsequent reports. The timing details matter whenever the comparison is used to reason about a specific decision at admission.

The authors acknowledge that the recorded target has omissions. Some negative admission periods had narrative entries describing apparent incidents. The search procedure identified many passages that turned out to refer to other events or to possibilities. Because the review covered some matches and judgments about what constitutes violence could vary, the paper leaves the rate of unreported incidents unknown. Its working assumption is that the number is small. The authors point to the regular use of the reporting system at Utrecht as a reason for that assumption and call for a more thorough investigation.

Another stated limit is the restricted length of BERTje’s input. Retaining the end of a note and selecting a shorter summary are reasonable ways to make classification possible with the available setup, but each can remove relevant material. The authors regard information loss as a plausible contributor to BERTje’s result. They also note that the labeled dataset may be too small to adapt its many parameters effectively. The experiment observes the resulting performance under these conditions without separating how much each condition contributes.

The authors discuss possible responses to those limits. They mention SMITH, a design intended for longer texts, as a candidate for future evaluation. They suggest pretraining a Dutch system on clinical notes from several medical domains to improve its fit to the vocabulary and writing used in care. They also propose federated learning as a means for institutions to contribute to common training while keeping their underlying records local. These are avenues suggested in the paper. Their effectiveness for predicting incidents is outside the experiments reported here.

#### What follows from the evaluation design

The held-out folds test prediction for patients from the same hospital as the development patients. This is a meaningful check against simply recognizing patients across supervised training and test sets. A different hospital could document behavior differently, admit a different population or apply another incident-reporting standard. The study gives no external estimate of performance under those conditions. The records span several years, but the test folds are organized by patient, so the evaluation also does not measure performance on a later time period held apart from all earlier records.

There is a further distinction between supervised fitting and learning a text representation. The paper describes training Doc2Vec and LDA using the pool of 835k notes, subject to the individual-note length rule, and describes patient-level separation for the classifier folds. It does not describe refitting those representations within each outer development set. A representation learned without incident labels can still reflect which words and topics appear in material from patients whose periods later serve as test examples. The reported scores characterize the use of representations derived from the available hospital corpus. They leave the effect of learning all text representations with only development-patient material unquantified.

The inclusion rule also defines who is represented. Periods with fewer than 100 words of text are excluded, and some patients have prior notes to contribute while others have less history available. Reported performance applies to eligible periods with sufficient documentation. Its relevance to someone newly arriving with little text is uncertain. Note length is one of the strongest features in the forest analysis, which makes the dependence on documentation especially salient. A score learned where long records are common may behave differently where staffing, recording habits or the availability of prior notes change.

At the level of the prediction window, the methods describe collecting text up to 1 day after the period starts and counting incidents from 1 day after the start. These are boundaries expressed in days. The description leaves room for uncertainty about how a note and an incident timestamp at the shared boundary are ordered in an individual case. That matters if the intended use is to make a prediction at a particular instant. The ordinary interpretation of a retrospective window in days requires less timing detail than establishing exactly which words had already been written at the moment of a clinical decision.

The system comparisons also differ in several design choices at once. The conventional approaches learn representations from clinical text and can use structured variables. The contextual approach starts from BERTje and uses shortened text with a separate tokenizer and training procedure. Its poorer score is a result for that combination of inputs and methods. A different result could arise if both approaches received equivalent text coverage and structured information, but the experiment provides no estimate for that comparison. The result is informative about these implementations on Utrecht’s data and gives limited grounds for a claim about contextual classification in general.

Another issue is the match between the prediction target and the outcome clinicians care about. The classifier learns to discriminate periods with incident reports from periods without them. An unreported event in a period scored highly would be counted as a false positive under the study labels. A reported incident might also be more likely to appear when a period has more extensive documentation, a possibility that the note-length finding cannot resolve. The analysis establishes correlations with the recorded target. It cannot separate behavioral risk from every aspect of the way incidents and writing enter the record.

The paper reports differences in age and period-note length, but the observed associations give no direct evidence about how errors are distributed across patient groups. A feature can support overall discrimination even if its use has different consequences in different parts of the population. The experiment does not report group-specific estimates for the kinds of errors a deployed score would make. Those would be separate clinical and measurement questions. [Bias, fairness & safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/)

Finally, retrospective discrimination does not establish a clinical benefit. The study has no prospective test of using a score to change care, no estimate of how an intervention chosen because of a score affects incidents, and no measurement of time saved in practice. The kappa analysis shows a way to examine threshold choices, but it does not supply the costs of the resulting decisions. Probability calibration, the relation between predicted probabilities and observed frequencies, also remains unmeasured. The reported areas describe the ranking and agreement properties of the study scores, while the effects of acting on them would require a separate evaluation.

### What came after

There are no identified later citing studies to trace. The forward directions that can be attributed to the authors concern input length, clinical language, the amount of labeled data and the quality of the outcome records. Each addresses a different unresolved part of the comparison.

A system designed to handle longer documents would make it possible to test notes with more of their original content. That would address the loss shared by truncation and summarization. Clinical pretraining would address a different problem, illustrated by the unfamiliar forms and unknown tokens found in the tokenizer audit. A system with a better fit to Dutch clinical writing might use the retained text more effectively even when it is short. The paper points to longer input and domain-specific pretraining as distinct directions because either can be investigated without assuming that it explains the observed BERTje result.

The federated learning proposal concerns the number and variety of records available to train a classifier. The idea is to train a common system across institutions while keeping their records within each institution. More institutions could also expose differences in documentation. As the authors’ review of negative periods shows, a common outcome requires more than collecting records under the same name. An apparent negative can reflect an uneventful period, an event outside the study window, a difference in what a practitioner counts as violence, or an incident that went unreported.

The authors therefore also propose refining the search for missing reports and considering a more consistent reporting strategy. Their audit already demonstrates why the distinction matters for subsequent research. A keyword can help locate a passage worth reading, while the passage must still be interpreted in context and checked against the timing and definition of the outcome. Better outcome records would make it easier to judge whether a change in text processing improves prediction of incidents, and a matched comparison with the checklist would make it easier to judge what that improvement means for the assessment already used in care.

## Cite

Cite as Pablo Mosteiro, Emil Rijcken, Kalliopi Zervanou, Uzay Kaymak, Floortje Scheepers and Marco Spruit. 2022. Machine Learning for Violence Risk Assessment Using Dutch Clinical Notes. arXiv:2204.13535 · Journal of Artificial Intelligence for Medical Sciences Volume 2, Issue 1-2, June 2021, Pages 44 - 54.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.2991/jaims.d.210225.001](https://doi.org/10.2991/jaims.d.210225.001) · [arXiv 2204.13535](https://arxiv.org/abs/2204.13535)

```bibtex
@misc{mosteiro2022machine,
  title = {{Machine Learning for Violence Risk Assessment Using Dutch Clinical Notes}},
  author = {Pablo Mosteiro, Emil Rijcken, Kalliopi Zervanou, Uzay Kaymak, Floortje Scheepers and Marco Spruit},
  year = {2022},
  doi = {10.2991/jaims.d.210225.001},
  eprint = {2204.13535},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.2991/jaims.d.210225.001}
}
```

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