---
title: "Clinical-Coder — paper by Cao et al. (2020) — summary and ideas"
description: "Clinical-Coder assigns ICD-10 codes to Chinese clinical notes and highlights the phrases and context that support each suggested code."
canonical: "https://research.elamur.ai/free/en/papers/cao-2020-clinical-coder-assigning-interpretable-icd/"
---
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/cao-2020-clinical-coder-assigning-interpretable-icd/)

[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/) / Clinical-Coder: Assigning Interpretable ICD-10 Codes to Chinese Clinical Notes

# Clinical-Coder: Assigning Interpretable ICD-10 Codes to Chinese Clinical Notes

Paper · 2020 · Pengfei Cao, Chenwei Yan, Xiangling Fu et al.

**Authors:** [Pengfei Cao](https://md.research.elamur.ai/free/en/authors/pengfei-cao/), Chenwei Yan, Xiangling Fu, [Yubo Chen](https://md.research.elamur.ai/free/en/authors/yubo-chen/), [Kang Liu](https://md.research.elamur.ai/free/en/authors/kang-liu/), [Jun Zhao](https://md.research.elamur.ai/free/en/authors/jun-zhao/), [Shengping Liu](https://md.research.elamur.ai/free/en/authors/shengping-liu/) and Weifeng Chong · **Year:** 2020 · **Venue:** Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **9** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/cao-2020-clinical-coder-assigning-interpretable-icd/cited-by/) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.acl-demos.33/)
- [PDF](https://aclanthology.org/2020.acl-demos.33.pdf)
- [DOI 10.18653/v1/2020.acl-demos.33](https://doi.org/10.18653/v1/2020.acl-demos.33)

## Summary

A discharge note can describe a patient's condition in several ways, while a coding system has to return a standardized label. Sometimes the note uses the same words as the official disease name. Sometimes it inserts a qualifier, uses different wording, or mentions the condition in a part of the note outside the discharge diagnosis. Clinical-Coder takes Chinese clinical notes and proposes ICD-10 codes for them. It also shows the reader which parts of the note support each suggestion. The authors treat [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) as part of the coding task because a professional reviewing a suggestion needs to locate and assess the evidence for it.

The system combines ways of reading the same note. It looks for short, consecutive pieces of official disease names and gives more weight to pieces that are distinctive in the code catalogue. It also learns patterns in the note using filters that can read nearby text or reach across gaps. A separate attention distribution for each code lets the system emphasize different parts of the note when scoring different conditions. The interface shows literal matches and attention highlights, so a reviewer can see both where the wording overlaps and where the learned reading places emphasis.

The authors assembled a Chinese collection of 50,678 notes covering 6,200 ICD-10 codes annotated by professional coders. On the full Chinese benchmark, CN-Full, their combined system reached micro-F1 of 0.7127, compared with 0.6755 for the convolutional attention baseline. The distinction between frequent and infrequent codes matters. On the same benchmark, matching disease-name fragments by itself reached macro-F1 of 0.1200, ahead of both the combined system at 0.1116 and the baseline at 0.0600. An English benchmark, MIMIC-III-50, gave the combined system micro-F1 of 0.641, the highest among the reported comparisons on that metric.

The demonstration makes suggested codes inspectable alongside the note. The prediction experiments establish how well those suggestions agree with reference codes on the chosen benchmarks. Whether highlighting helps coders make more accurate decisions, or reliably identifies the particular evidence that tipped a prediction, remains open.

## Deep dive: Clinical-Coder: Assigning Interpretable ICD-10 Codes to Chinese Clinical Notes

Clinical-Coder assigns ICD-10 codes to Chinese clinical notes and highlights the phrases and context that support each suggested code. · 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

#### Turning a discharge note into a set of codes

A clinical note describes an encounter in the language of the people who recorded it. The International Classification of Diseases, abbreviated ICD, provides standardized codes that let those records be grouped and compared. The authors point to uses in clinical research, insurance claims, and statistics on illness and death. In each case, the code makes the recorded condition usable beyond the individual note. Assigning it requires deciding which part of the classification applies to what was documented.

The paper describes this as a demanding task for trained staff. It reports that ICD-10 has 72,184 codes and attributes part of the manual workload to the increased detail available in the classification. More specific codes let a record distinguish among conditions that might otherwise be grouped together. They also increase the number of distinctions a coder may have to make. A broad resemblance between a note and a disease name can help locate a candidate while leaving the precise coding decision unresolved.

The authors frame the task as multi-label [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). The input is a note, and the output is a set of applicable codes. Different conditions can be recorded during the same encounter, so a strong candidate for one condition does not exhaust the possibilities. The authors also point out that clinicians can leave conditions out of a discharge diagnosis and that several recorded diagnoses can map to a single code. The task therefore takes the whole note as evidence for a set of labels, with professional annotations supplying the target during training.

The sections of the Chinese notes illustrate why the input matters. The admission narrative can include the presenting complaint, medical history, and information about the condition on arrival. The discharge narrative can describe examination findings. Each of the diagnostic sections can use language that differs from the corresponding ICD name. Even when a diagnosis is stated plainly, identifying what was written and mapping it to a standardized label are separate steps. A system can help with the mapping and still leave the coder with a question about the status or specificity of the condition.

#### Two ways for wording to carry evidence

The authors organize their method around how the words relevant to a code appear in a note. Their example of fatty liver illustrates direct overlap. The disease phrase appears together in the note, so the coder can trace the suggested label to a recognizable span. The authors call such consecutive overlap explicit evidence. It also works at a smaller scale. Part of a disease name can appear verbatim even when the note adds words, omits part of the standard expression, or uses the fragment in a different phrase.

Their rheumatoid arthritis example illustrates a different arrangement. The clinical expression includes a qualification about multiple sites between parts of the standard disease name. The useful terms still occur in order, with other material between them. A search for the whole official phrase could miss that occurrence. The authors call evidence of this kind implicit and design a learned text encoder that can read across gaps.

Those categories describe patterns in text. A single passage can offer both. For example, some fragments of the standard name can be consecutive within a longer expression even when the complete name is interrupted. Treating the two as separate sources of evidence lets the architecture preserve an identifiable phrase match while also learning what surrounding or separated words tend to be useful. The distinction matters to the interface because a visible match and a bright attention highlight answer different questions about where a suggestion came from.

#### What earlier coding systems supplied

The authors place Clinical-Coder after work that used both conventional supervised learning and neural networks for code assignment. Many of the approaches they discuss took free text as input and learned to predict multiple labels. Some brought in descriptions from the classification. Shi and colleagues encoded label descriptions at the character and word levels with recurrent networks. Rios and Kavuluru represented descriptions by averaging the vectors of their words. Both approaches supplied information about what a label means through its text. [Few-Shot and Zero-Shot Multi-Label Learning for Structured Label Spaces](https://md.research.elamur.ai/free/en/papers/rios-2018-few-shot-zero-shot-multi/)

Other earlier approaches, as described in the paper, considered how clinicians and the classification express related concepts in different styles. The work by Xie and colleagues used adversarial learning to bring those styles closer together. Other researchers used Wikipedia as an additional knowledge source. These examples establish the context for Clinical-Coder's explicit branch. The text of the label already mattered in prior research. Here, the paper uses that text to construct a feature from the frequency and distinctiveness of short, literal matches.

The immediate precedent for the explanations comes from attention-based coding. The paper describes Baumel and colleagues as using a recurrent network with sentence-level attention to locate relevant sentences for each code. A sentence-level display can narrow the region a reader has to review. The earlier work by Mullenbach and colleagues used attention at the word level, giving the reader a finer indication of which parts of a note receive emphasis. Clinical-Coder adopts the idea of calculating a separate set of weights for each code. The candidate under consideration can determine which parts of the same note are emphasized. [Explainable Prediction of Medical Codes from Clinical Text](https://md.research.elamur.ai/free/en/papers/mullenbach-2018-explainable-prediction-medical-codes-clinical/)

The authors also draw on a technique developed outside clinical coding. Dilated convolution spread the sampling points of a filter across a wider region in image processing while preserving the resolution of the representation. Prior natural language processing research had explored filters that could skip intervening material as well. The paper brings that idea to a coding problem in which meaningful pieces of a diagnosis can be separated by other words. The guiding question is whether a learned pattern can connect useful terms even when their spacing prevents a direct match with a code name.

### The method, step by step

#### From a note to evidence for each code

Clinical-Coder joins the available clinical text into a sequence. The Chinese records have narrative and diagnostic fields for admission and discharge. The official names associated with the candidate codes are available separately. The authors feed the note to a learned text encoder and also compare it directly with fragments of those names. Only the note supplies the encounter details. The catalogue supplies the words to look for, and the annotated codes supply the intended answers during training.

The direct comparison turns each disease name into short pieces and counts their appearances in the note. A fragment common to numerous disease names has less power to distinguish a particular label than a fragment characteristic of a small part of the catalogue. The method weights the counts accordingly. For each candidate, it obtains a profile of the amount of overlap at different fragment lengths. The underlying occurrences can also be highlighted in the note.

The learned route uses a conventional convolution and a dilated convolution. A convolution slides a filter over a sequence and produces features wherever the filter is applied. The conventional filter reads neighboring positions. The dilated filter reads positions spaced farther apart and can cover a larger span. Each route produces a sequence of features. The system then uses attention to summarize each sequence separately for each candidate label. The resulting summaries join the literal-match features in a classifier that gives each code its own score.

How Clinical-Coder scores and presents candidate codes The steps in order.

#### Representing the clinical words

The learned encoders work with [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), vectors that give each vocabulary item a numerical representation. The paper begins with a matrix of pretrained vectors, with a column for each item in the vocabulary. The note remains an ordered sequence as the items are looked up. That order gives the filters something to operate on. The lookup alone represents an item, while the convolution can represent what occurs around it.

```
eᵢ = Wʷʳᵈ vᵢ
```

Here, i is the position of the current word in the sequence. The vector vᵢ is a one-hot indicator for that word. Its active entry identifies the word's column in the vocabulary matrix Wʷʳᵈ. Multiplication selects that column, giving eᵢ, the vector for the current word. The rows of Wʷʳᵈ correspond to embedding dimensions, and the columns correspond to vocabulary items.

The authors pretrain the vectors on text from all the clinical notes. They use Word2Vec with 100 dimensions. In the coding architecture, these pretrained vectors are the numerical inputs for both sets of filters. The direct matching calculation still has access to the note's text because it needs to count literal occurrences. The two routes thus receive the note in forms suited to different operations. [Efficient Estimation of Word Representations in Vector Space](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/)

#### Counting distinctive fragments of official names

To build the explicit features, the authors move a window over an official disease name. At every position, the window extracts a consecutive substring of its chosen length. This is an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/), with n specifying the length of the piece. A disease name yields a collection of such pieces for each window length that fits. The authors give an example with lengths 2, 3, 4, 5. Counts at different lengths occupy separate columns, allowing short matches and longer overlaps to supply different inputs to the classifier.

The candidate name determines the fragments, and the clinical note determines how often each fragment occurs. A matched fragment contributes its count multiplied by a weight. The feature for the candidate and window length is the sum of those contributions. A fragment that never occurs in the note contributes nothing through this calculation. A fragment that occurs repeatedly contributes more than a single occurrence of the same fragment.

```
mₗ,ʷ = ∑ᵢ₌₁ᴳˡⁿ count(gₗ,ₙ,ᵢ) × tfidf(gₗ,ₙ,ᵢ)
```

Here, l indexes the candidate disease name, w indexes the selected window length, and n is the length used in window w. The symbol gₗ,ₙ,ᵢ denotes fragment i of length n from disease name l. The upper limit Gˡⁿ gives the number of fragments produced for that name and length. The function count counts occurrences in the current note, tfidf supplies the fragment's weight, and × denotes multiplication. The result mₗ,ʷ is the entry in row l and column w of the explicit feature matrix.

The paper describes the weight as [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/), term frequency–inverse document frequency. Its calculation uses the relative length of the fragment within the disease name and the frequency of the fragment in the disease-name catalogue. These quantities serve a different purpose from the occurrence count in the current note. The catalogue gives the fragment a measure of distinctiveness, while the note gives evidence of whether it appears in this encounter.

```
tfidf(gₗ,ₙ,ᵢ) = (n / Aₗ) × (L / freq(gₗ,ₙ,ᵢ))
```

The fragment gₗ,ₙ,ᵢ is the i-th piece of length n from disease name l. The quantity Aₗ denotes the length of that disease name. The symbol L is the number of labels, and freq counts occurrences of the fragment across the disease names. The slash denotes division and × denotes multiplication. For a particular disease name and window length, the length factor is the same for all its fragments. The catalogue frequency can vary from fragment to fragment, changing how much each match is worth.

The authors illustrate the weighting with an English clinical example. On the catalogue used for that example, the phrase “history of” appears 249 times and receives a weight of 1.79. The fragment “atrial fibrillation” appears twice and receives 9.32. Both phrases can be found as consecutive text. The second is more informative for distinguishing a disease name in this calculation because it is much less common across the candidate names. That is the aspect of specificity the weighting is designed to capture. [MIMIC-III](https://md.research.elamur.ai/free/en/papers/johnson-2016-mimic-iii-freely-accessible-critical/)

The note-level matrix, denoted M in the paper, has a row for each label and a column for each window length. A cell aggregates over fragment positions in the candidate name and over occurrences in the note. After that aggregation, the cell tells the classifier about the amount of weighted overlap. The same total could arise from different distributions of occurrences within a note, since the formula sums their counts. To show the locations to a human reader, the interface displays the underlying matches in the original text. This is a different view of the same evidence.

The matrix can be understood as a way to let a candidate name ask a narrow question of the note. It asks whether pieces of the name occur, at what lengths, and with how much catalogue specificity. Some parts of a name will contribute little because many labels share them. Others can be useful even if the full name never occurs. The learned features add a separate view of the surrounding text, which becomes important when useful fragments are separated or when a literal overlap is open to more than one reading.

#### Reading contiguous text and text with gaps

A conventional convolution applies a learned filter to adjacent vectors. When it advances through the note, the same filter can respond to a pattern wherever the pattern appears. The filter's width determines how many neighboring positions it sees in a single application. Different filters can learn to respond to different configurations of the input vectors. Their outputs form a sequence indexed by position, which makes later attention over positions possible.

A dilated filter keeps the same underlying idea but spaces out the positions it reads. The paper illustrates this with the clinical wording for rheumatoid arthritis that inserts a reference to multiple sites. If a filter's sampled positions fall on useful parts of that expression, it can combine evidence across the intervening material. The spacing is set by the dilation rate. This gives the encoder a broader span without a pooling operation that merges nearby outputs and reduces the sequence of positions available to attention.

```
k_d = r(k − 1) + 1
```

Here, k is the original filter width, r is the dilation rate, and k_d is the width of the span after the sampled positions have been spaced apart. The minus and plus signs account for the gaps and the initial sampled position. At a dilation rate of 1, the sampled positions are neighbors, so k_d equals k. The distinction at larger rates is between the span covered and the positions actually sampled in that span.

For the conventional branch, the paper expresses the operation at each position as a filter applied to an input slice, followed by a bias and a nonlinear function.

```
hₙ = tanh(Wᶜ ∗ x[n : n + k − 1] + bᶜ)
```

The index n is the starting position in the sequence for this operation. Here it denotes a position, whereas n denoted a fragment length in the matching calculation. The sequence x contains the input vectors, and the notation in brackets denotes the span beginning at n and ending at n + k − 1. The symbol k is the conventional filter width. The filter parameters are Wᶜ, ∗ denotes the convolution, and bᶜ is the bias vector. The hyperbolic tangent, tanh, applies a nonlinear transformation to each output component. The resulting feature vector at the current position is hₙ.

The expression for the dilated branch covers a wider input span. Within the convolution, the holes determine which positions in that span contribute.

```
h′ₙ = tanh(Wᶜ ∗ x[n : n + k_d − 1] + bᶜ)
```

Here, h′ₙ is the dilated feature vector at starting position n. The sequence x again contains the word vectors. The span inside the brackets now ends at n + k_d − 1, with k_d denoting the dilated width. The symbol ∗ applies the filter Wᶜ at the dilated sampling positions. The bias bᶜ is added before tanh transforms the output. The paper uses the same filter and bias notation to describe the respective operations. The filter takes an embedding with dimension dₑ at each sampled input position and produces an output with dimension d꜀. The bias has that output dimension as well.

The operation gives a filter access to spaced evidence, but the spacing is a property of the filter instead of a fresh search over arbitrary gaps for every phrase. The learned route also has a conventional branch, which preserves a direct way to combine adjacent text. The literal-match route approaches adjacency from the other direction. It asks whether a particular fragment of the catalogue name actually occurred. Together, these mechanisms can respond to neighboring words as a learned pattern, connect words sampled over a wider span, and count literal pieces of a name.

#### Summarizing the note separately for each candidate

After convolution, a note has a feature vector at each sequence position in each branch. Taking a single summary for the whole note would give every code the same summary. The paper instead uses per-label attention. A candidate related to an examination finding can give more weight to a different part of the note than a candidate related to an admission diagnosis. The weights are calculated after convolution, so the vector at a position can already represent a span of text.

Each label has a vector in the same feature space as the convolutional outputs. Comparing it with the vector at each position gives a measure of compatibility. The attention operation turns those values into a distribution over positions. The result shows how the encoder's reading for that label apportions emphasis within the note.

```
αₗ = softmax(Hᵀ uₗ)
```

The index l identifies the label. The matrix H contains the feature sequence for the current convolutional branch, with one column per position and d꜀ components per column. The superscript ᵀ transposes the matrix so that multiplication by uₗ, the vector for label l, gives a score for each position. The softmax function turns the scores into normalized, non-negative attention weights. The resulting vector αₗ therefore describes the distribution of attention for the current label in that branch.

The weights do more than determine the intensity of a display. They contribute to the representation used by the classifier. The network scales the feature vector at each position by its attention weight and adds those vectors together.

```
mₗ = H αₗ
```

Here, H is the matrix whose columns hold the position features, αₗ is the vector of weights for label l, and mₗ is the resulting weighted feature vector for that label. Each component of the output combines the corresponding components across the positions of the note. The authors denote the conventional branch's summary by mₗ and the dilated branch's summary by m′ₗ.

The weighted summary contains information shaped by the filter that produced it. A position with high attention in the conventional branch can reflect a pattern among neighboring words. In the dilated branch, a position can reflect a pattern over a broader span. A highlight at one position is therefore best understood as a pointer into the text associated with the encoder's emphasis. The architectures that produced the underlying features still matter when interpreting that pointer.

#### Combining the evidence and learning from coded notes

Before joining the features, the authors apply a linear projection to the explicit matching matrix. This converts the match profile into a vector that can be joined to the two learned summaries. The combined representation carries the literal evidence and the attended convolutional evidence for the same candidate. The classifier assigns a score after seeing those inputs together. A sigmoid maps the result into a value between zero and one.

```
ŷᵢ = σ(Wᵀ [mₗ ; m′ₗ ; m″ₗ] + b)
```

The output ŷᵢ is the predicted score for label i, with l referring to that candidate when its features are assembled. The vector mₗ comes from conventional convolution and attention, m′ₗ comes from dilated convolution and attention, and m″ₗ is the projected representation of the explicit matches for the candidate. The square brackets and separators indicate that the vectors are concatenated. The vector W holds the classifier weights and ᵀ transposes it, so multiplication gives a scalar. The bias is b and the sigmoid is σ. The paper specifies the classifier input width as 3d꜀, where d꜀ is the convolutional output dimension.

Each code receives a sigmoid score. This matches the fact that several codes can apply to the same note. The scoring expression gives each candidate a value without requiring the scores across all candidates to share a fixed total. The evaluation can use that collection of values to rank codes, and the interface can present suggested labels from it. The paper describes the scoring rule and reports the ranking and classification measures. The choice that determines which scores enter the displayed list is less fully specified.

For training, the annotated code set supplies a binary target for each candidate. The multi-label binary cross-entropy adds the loss for the candidates in the catalogue considered in the experiment.

```
ℒ = ∑ᵢ₌₁ᴸ [−yᵢ log(ŷᵢ) − (1 − yᵢ) log(1 − ŷᵢ)]
```

The symbol ℒ denotes the loss for the note, L is the number of candidate labels, and i indexes those labels. The target yᵢ is 1 if the reference annotation includes code i and 0 otherwise. The prediction ŷᵢ is the sigmoid score for the same label. The function log is the logarithm, and the minus signs make confident disagreement incur a larger loss. When the target is present, the term involving log(ŷᵢ) supplies the penalty. When it is absent, the penalty comes from the predicted complement inside log(1 − ŷᵢ).

The target tells the system which codes to predict for the note. The paper describes no separate span labels in this procedure. Literal highlights follow from the matching rule. The attention distributions are learned within the prediction architecture through the objective for the codes. This explains why the visualizations can be shown for a candidate even though the supervision described by the authors is a set of codes instead of a set of marked rationales.

For the experiments, the Chinese narrative and diagnostic fields are spliced into a single input. The input length is capped at 1000. Training uses batches of 16, which are groups of notes used to update the parameters. The dropout rate is 0.5. Dropout disables a portion of the representation during training to reduce dependence on particular activations. Adam performs the parameter updates with a learning rate of 0.0001, which sets the scale used by the optimizer.

#### What the coder sees

The authors implemented the approach in a Chinese-language demonstration. The user can submit text from any of the supported admission and discharge fields. The output pairs the suggested codes with their disease names. The reader can examine support for a specific candidate in the text. The interface shows where pieces of the disease name occur and uses shading for the attention distribution. Darker shading indicates that the position receives more attention for the candidate under review.

The example in the appendix gives the note's contents and suggestions in English. The admission diagnosis includes kidney stones, while the discharge diagnosis names a right renal cyst. The suggested list contains both kidney stones and acquired renal cysts. Fatty liver appears in the clinical account and in the suggestions. Hyperlipidemia is named in the discharge diagnosis and also appears among the suggestions. The example illustrates how the system can draw from different regions of the note. A coder looking at the list can ask which field supplied the evidence and how it relates to the rest of the record.

That distinction is especially important when the written record changes over an encounter. A condition in the admission text and a finding in the discharge text can both be visible to the classifier after the fields have been joined. The highlighting makes it possible to find the cited wording within the note. Its value in that situation lies in making consultation of the original record easier. Resolving the relationship between the two diagnoses remains a separate clinical coding judgment.

### Experiments and results

#### The Chinese and English benchmarks

The Chinese corpus is the paper's main test of Clinical-Coder. It includes 50,678 notes with code sets assigned by professional coders after reviewing the notes. The full benchmark, CN-Full, includes the 6,200 distinct ICD-10 codes found in the corpus. The paper reports a train-to-test ratio of 9:1. For CN-Full, its dataset description gives a vocabulary size of 3,957, an average of 621 tokens per note, and an average of 4.3 codes per note. The task presents both a long input and a large set of potential outputs, with several correct outputs for a typical record.

CN-50 concentrates on the 50 most frequent codes. Starting with the original train and test sets, the authors retain notes that have at least one code in that group. They report 36,758 notes in the resulting benchmark. The reported vocabulary size is 3,957, and the average note length is 655 tokens. The mean number of labels per note is 2.6. The variant changes which notes qualify as well as which labels the system is asked to predict. Its scores describe performance on the frequent-label task defined by that filtering procedure.

For an English comparison, the authors evaluate on MIMIC-III-50. The paper reports 9,795 notes and 50 labels for this benchmark, with a vocabulary size of 51,917. The reported averages are 1,530 tokens and 5.7 labels per note. The English benchmark gives the authors a comparison with previously published coding systems on a commonly used collection. The paper reports a separate evaluation on the English data. It does not describe transferring a classifier trained on Chinese notes into English. [MIMIC-III](https://md.research.elamur.ai/free/en/papers/johnson-2016-mimic-iii-freely-accessible-critical/)

The label counts need to be read in relation to the benchmark. The size of ICD-10 in the problem statement describes the classification. The 6,200 codes refer to labels observed in the Chinese collection. The frequent-code variants define a narrower set of outputs. A score obtained on frequent labels is directly comparable with other scores in that setting. It cannot isolate the effect of label count from the changes in the prevalence of labels and the notes selected for inclusion.

#### What the measurements capture

F1 summarizes precision and recall. Precision asks what share of proposed codes agree with the reference annotations. Recall asks what share of annotated codes the system recovers. Micro-F1 pools prediction decisions across labels before computing the score. A common code produces more decisions that can affect it. Macro-F1 computes a score for each label and averages across labels, so a label with few examples has the same place in the average as one with many examples. The two measures therefore describe different properties of the same predictions, especially on CN-Full.

The authors also report area under the receiver operating characteristic curve, or AUC. It summarizes how well the scores discriminate between positive and negative cases over a range of thresholds. The macro and micro versions likewise differ in whether the aggregation gives separate influence to each label or pools decisions. A system can rank positive cases well enough to have a high AUC while its chosen set of predictions has a lower F1. Those scores assess different uses of the same outputs.

The ranked-list measurements focus on the candidates at the top. The paper defines precision at k as the share of the k highest-scoring labels that occur in the reference set. Its Chinese results also include recall at k, which asks how much of the annotated set is retrieved within that list. Changing k changes how many suggestions can be examined. The measure therefore needs its cutoff and its dataset to be interpretable. A comparison at the same cutoff shows how different scoring systems order the candidates under an equal list length.

#### Results on Chinese notes

The Chinese comparison uses CAML as the baseline. CAML reads local text with a conventional convolution and uses label-specific attention. The authors compare it with their dilated convolution setting, their n-gram matching setting, and the combined architecture. Since all four appear on CN-Full, the comparison shows how the settings behave when the output vocabulary includes the many infrequent codes in the corpus.

CN-Full micro-F1 by coding system The combined architecture leads the settings on pooled coding decisions.

**The numbers**

| System or setting | Micro-F1 |
| --- | --- |
| CAML | 0.6755 |
| Dilated CNN | 0.6997 |
| N-gram matching | 0.7050 |
| Clinical-Coder combined (this paper) | 0.7127 |

On this pooled measure, both component settings score above CAML, and the combined system has the highest value. The same ordering does not hold under equal weighting of labels. CN-Full macro-F1 is 0.0600 for CAML and 0.1017 for the dilated convolution setting. The matching setting reaches 0.1200, while the combined system reaches 0.1116. In these results, the setting that leads on pooled decisions is different from the one that leads when each label receives equal weight.

CN-Full AUC supplies another view of the tradeoff. The matching setting reaches macro-AUC of 0.9574 and micro-AUC of 0.9915. The combined system reaches macro-AUC of 0.9520 and micro-AUC of 0.9909. For CAML, the corresponding results are 0.8832 and 0.9808. The dilated setting records 0.8637 macro-AUC and 0.9772 micro-AUC. Its AUC values are below those of CAML even though its F1 values are higher. The evidence for a component improvement is specific to the measure used to judge it.

Among the frequent Chinese codes, the combined system reaches recall at k=8 of 0.9657 on CN-50, compared with 0.9579 for CAML, 0.9550 for the dilated setting, and 0.9640 for the matching setting. This comparison concerns the coverage of the reference codes within the highest-ranked suggestions. It also shows why the component scores remain informative after restricting the label set. Literal matching comes close to the combined result on this measure even though the latter has access to both forms of learned convolutional evidence.

#### Results on English notes

The English experiment compares the combined architecture with previously reported methods on MIMIC-III-50. These include a conventional convolutional classifier and a bidirectional recurrent classifier, as well as approaches based on clinical memory or hierarchical attention. The comparison also includes CAML and its description-regularized variant, DR-CAML. It asks whether the design performs competitively in a different clinical coding benchmark with a larger set of published comparisons.

Selected MIMIC-III-50 systems compared by micro-F1 Clinical-Coder has the highest reported micro-F1 in the comparison.

**The numbers**

| System or setting | Micro-F1 |
| --- | --- |
| CNN | 0.625 |
| CAML | 0.614 |
| DR-CAML | 0.633 |
| Clinical-Coder combined (this paper) | 0.641 |

The English result also has different leaders depending on the measure. The proposed system reports macro-F1 of 0.579 and macro-AUC of 0.890. DR-CAML has macro-F1 of 0.576 and macro-AUC of 0.884. Both reach micro-AUC of 0.916. At k=5, the conventional CNN reports precision of 0.620, DR-CAML reports 0.618, and the proposed system reports 0.616. The lead in micro-F1 thus concerns pooled agreement on delivered classifications. At the very top of the ranking, the English table shows other systems with higher measured precision.

The three benchmarks offer different views of the proposal. CN-Full assesses coding across the observed Chinese label inventory. CN-50 concentrates on common labels after filtering the notes. MIMIC-III-50 gives a comparison on English clinical text under a frequent-label setup. The results support the use of the combined architecture for pooled prediction in the reported settings. They also show why a reader interested in infrequent codes or in the first few suggestions should examine the relevant measures directly.

### What the ablations show

#### Wider filters add a different kind of evidence

The Chinese comparisons are the paper's main component analysis. CAML gives a reference point that already includes conventional convolution and attention for individual codes. This matters because the alternative settings are being compared with a baseline that already has a way to highlight different parts of the note for different labels. The experimental question is what the new sources of evidence add to that kind of predictor.

On CN-Full, the dilated convolution setting improves both micro-F1 and macro-F1 over CAML. That is consistent with the idea that some useful patterns benefit from a larger span or from the ability to skip intervening words. The case of rheumatoid arthritis gives the intuition for such a gain. An encoder that samples spaced positions can respond to related terms across an inserted qualification. The aggregate results establish an advantage for the dilated setting on those F1 measures. They do not identify which test predictions depended on patterns with that form.

The AUC comparison adds a qualification. On CN-Full, dilation has lower macro-AUC and micro-AUC than CAML. A gain on the reported F1 measures therefore accompanies a decline on these measures of score discrimination. The paper gives the direction of both effects. It does not trace the difference to particular codes, thresholds, or configurations of intervening text. The experiments support the use of dilation as one source of features, while its benefit varies with the aspect of prediction being measured.

#### Literal matches matter when codes count equally

The n-gram matching comparison shows the strongest CN-Full macro-F1 improvement among the tested settings. The matching setting reaches 0.1200 on that measure against CAML's 0.0600. The authors interpret this as evidence that pieces of official names can be useful for less common classes. The mechanism offers a plausible reason. A label with few annotated notes can still supply its name, and rare pieces of that name can be weighted as distinctive before their occurrence in the current note is counted.

Macro-F1 is compatible with that interpretation because it gives each label equal influence. It still aggregates labels with different frequencies and different kinds of wording. The reported result does not show which low-frequency labels improved or how gains were distributed. For example, benefit could be concentrated in infrequent codes with distinctive and consistently written names, while codes with less literal overlap could behave differently. The paper gives a reason to examine performance on those groups and an aggregate result that makes the question consequential.

The matching setting's strength also clarifies what the combined scores mean. The combined system leads CN-Full micro-F1, while the matching setting leads CN-Full macro-F1 and both forms of AUC. Adding more sources of evidence produces a better pooled F1 result in this comparison. Giving every label equal weight changes the ordering of the settings. The results leave open how the classifier balances an informative literal fragment against a conflicting learned feature for an individual candidate.

#### What the demonstrations explain

The paper's figures examine how the evidence can be read by a user. The filter illustration lays out the positions through which a dilated convolution can connect separated parts of an expression. The English weighting example shows how two literal fragments can contribute differently because of the frequency of those fragments in the catalogue. The interface demonstration shows what those design choices look like when a reader selects one of the suggested diseases. These examples explain the operations underlying the evidence display.

The displays support different kinds of inspection. If a disease-name fragment is highlighted, a reader can check the literal overlap and read the words around it. If attention emphasizes a position, a reader can see where one of the learned summaries is placing weight. Because convolution comes before attention, the emphasized position can represent information from several inputs. Because the final score combines branches, that attention map shows part of the computation for the selected label. The paper provides complementary views of the evidence that can be inspected together.

These are component comparisons and illustrative analyses. The paper does not separately measure the contribution of catalogue weighting against unweighted matching, nor does it compare different dilation rates on controlled examples of interrupted expressions. It also gives no comparison in which readers use the same predictions with and without the highlights. The ablations therefore speak most directly to predictive performance across system settings. The figures explain how the architecture can produce its supporting information and what a reader can see.

### Limitations

#### Limits identified by the authors

The authors explicitly call attention to the imbalance in the observed code distributions. A small group of codes occurs frequently, and many others occur rarely. They point to the gap between macro-F1 and micro-F1 as evidence that performance is weaker on the smaller classes, with the disparity particularly visible on the full-label benchmark. Their own comparison places the strongest equal-label F1 result with the matching setting, even though the combined system leads on micro-F1. Label frequency remains an important qualification to the overall result.

The authors identify [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) and zero-shot prediction as future work. Few-shot prediction concerns labels with very little supervised evidence. Zero-shot prediction concerns labels with no training examples for the task. The proposed future direction is to use external resources to improve those cases. The disease-name feature gives the current system a way to use a label's wording, but the experiments do not hold out labels to measure generalization to unseen codes. The macro-F1 result on CN-Full concerns the benchmark as constructed.

The paper also frames the system as assistance for professional coding. Its example illustrates why a final diagnosis list need not account for every suggested code. Some evidence may occur elsewhere in the note, and the relationship between written diagnoses and assigned codes is not always one to one. The intended use of the interface is to help a reviewer check a suggestion against the text. The authors present code predictions and visual support for that review.

#### Limits visible in the evaluation

The Chinese notes supply a professionally annotated reference for measuring performance, but the paper reports a train and test division of its collection. It does not establish performance on another Chinese collection or across different institutions and documentation practices. The English experiment extends the evaluation of the architectural idea to another benchmark. Since English performance is reported in a separate frequent-label setting, it leaves open whether a Chinese installation would transfer to another hospital or another language with similar accuracy.

The training description says that embedding pretraining uses text from all clinical notes. The reported supervised split describes the division used for labeled prediction training and testing. It does not establish a division of the same kind for unsupervised representation learning. Exposure to note text is distinct from exposure to its target codes. The distinction matters when interpreting a benchmark as a simulation of deployment on notes unavailable during any stage of development.

The paper caps input length at 1000, and its dataset description reports an average of 1,530 tokens per note for MIMIC-III-50. The comparison does not show how much useful evidence is beyond the length limit or how performance changes with the handling of long notes. This has a direct bearing on a system designed to point to supporting text. A mention can help only if the system gets access to it in the input it processes. More detail about handling long records would help a reader interpret any differences tied to the position of evidence.

The result tables give point estimates. They do not indicate how much variation one would observe over training runs or different partitions. This matters most for closely spaced results and for statements about which component makes the larger contribution. The paper supports an ordering for the experiments reported. The amount of run-to-run or split-to-split variation remains unmeasured in those comparisons.

There is also a difference between the code scores and their eventual use. AUC considers the quality of discrimination across thresholds, while F1 concerns the predictions that result from a decision rule. A ranked-list score considers a particular number of suggestions. The paper does not give a detailed analysis of how to set the display cutoff, whether separate cutoffs would help individual labels, or how the scores behave as estimates of confidence. Its evaluation establishes comparative performance on the chosen measures. It leaves those deployment decisions open.

#### Limits of the explanations

The interface exposes two observable quantities. A match can be checked directly against the presented note and the official disease name. Attention can be checked as the distribution used to form a branch's label-specific summary. Each quantity is relevant to the computation. The tests do not establish that the darkest span or the most distinctive literal match was necessary for the final score. That claim would require an intervention, such as removing the highlighted evidence and testing how the prediction responds, which the paper does not report.

Similarly, the feature definition records that a fragment occurs. Its presence alone does not settle whether the mention is a current finding, part of a history, or evidence that should be coded in this encounter. The learned features may capture useful context, but the paper does not give separate results for those readings. The display makes possible a check against the note. A reliability estimate for particular types of clinical mention would require an evaluation organized around them.

The appendix offers an example of how a human can inspect the suggested list, and the results tables measure agreement with reference codes. The authors do not report a study that measures changes in coding time, accuracy, disagreement, or confidence when readers use the interface. Consequently, the empirical result concerns automatic prediction, while the practical contribution is an interface intended to support scrutiny. Its effect on the people making coding decisions remains an open question.

### What came after

MedDCR carries automated medical coding into the design of agentic workflows. Its stated subject is learning how to design a process for carrying out the coding task. Clinical-Coder specifies an architecture in which matching, learned feature extraction, and code scoring form a fixed sequence. MedDCR cites that work and places emphasis on how a coding workflow is designed. The citation connects the papers at the level of the coding task. Whether MedDCR reused the earlier matching features or evaluated its explanation displays is unspecified. [MedDCR: Learning to Design Agentic Workflows for Medical Coding](https://md.research.elamur.ai/free/en/papers/zheng-2026-meddcr-learning-design-agentic-workflows/)

JointCoder returns to the specific setting of automated ICD coding on Chinese electronic health records and explores it with a multi-agent framework. It shares Clinical-Coder's focus on Chinese clinical documentation, while its stated organizing idea is to distribute work across agents. The citation establishes a connection to the earlier Chinese coding system. It leaves open whether the later work reused its training collection, adopted its split, or retained its distinction between literal and attention-based explanations. [JointCoder: Exploring Automated ICD Coding on Real-World Chinese EHRs with a Multi-Agent Framework](https://md.research.elamur.ai/free/en/papers/liu-2026-jointcoder-exploring-automated-icd-coding/)

Together, the citing works show continued interest in automating code assignment and in how the steps of that task are organized. Clinical-Coder's evidence for the reader consists of fragments checked directly against the note and weights derived from a code-specific reading of it. The later works foreground workflow design and multi-agent organization, respectively. Their citations establish continuity of the research problem, while the handling and evaluation of those particular evidence displays remain unspecified.

## Cite

Cite as Pengfei Cao, Chenwei Yan, Xiangling Fu, Yubo Chen, Kang Liu, Jun Zhao, Shengping Liu and Weifeng Chong. 2020. Clinical-Coder: Assigning Interpretable ICD-10 Codes to Chinese Clinical Notes. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2020.acl-demos.33](https://doi.org/10.18653/v1/2020.acl-demos.33)

```bibtex
@inproceedings{cao2020clinical,
  title = {{Clinical-Coder: Assigning Interpretable ICD-10 Codes to Chinese Clinical Notes}},
  author = {Pengfei Cao, Chenwei Yan, Xiangling Fu, Yubo Chen, Kang Liu, Jun Zhao, Shengping Liu and Weifeng Chong},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations},
  year = {2020},
  doi = {10.18653/v1/2020.acl-demos.33},
  url = {https://doi.org/10.18653/v1/2020.acl-demos.33}
}
```

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