Clinical-Coder: Assigning Interpretable ICD-10 Codes to Chinese Clinical Notes
Paper · 2020 · Pengfei Cao, Chenwei Yan, Xiangling Fu et al.
Summary
A clinician can record a condition in the account of an examination, in the admission diagnosis, or in the list of diagnoses at discharge. A professional coder has to read across those sections and decide which standardized codes fit the encounter. The wording can help, especially when it coincides with an official disease name. It can also make the search harder. In one of the paper’s examples, a qualification about the sites affected comes between the words a coder would look for in the standard name for rheumatoid arthritis. Clinical-Coder proposes ICD-10 codes from Chinese clinical notes and gives the person reviewing the list a way to find text relevant to each suggestion. This is the paper’s practical approach to interpretability.
The system reads the note in parallel. One route searches for consecutive fragments of official disease names, giving distinctive fragments more weight than wording that occurs throughout the catalogue. The other route learns patterns in the note with filters that read adjacent words or take samples from positions farther apart. A mechanism called attention lets each candidate code emphasize different parts of those learned representations. The classifier combines these signals to score the candidates. The demonstration lets a reader inspect the literal overlaps and view the attention weights as shading over the note.
The authors collected 50,678 Chinese notes with professional annotations covering 6,200 distinct ICD-10 codes. On CN-Full, the benchmark using that code inventory, the combined approach attained a micro-F1 of 0.7127, compared with 0.6755 for the conventional convolutional attention baseline. Micro-F1 pools decisions, so frequent codes can have considerable influence. When the authors gave each label equal weight, the setting based on disease-name matching led with a macro-F1 of 0.1200. The combined setting scored 0.1116 and the baseline scored 0.0600. On the English MIMIC-III-50 benchmark, the combined approach achieved the highest reported micro-F1 in the comparison, at 0.641.
The experiments measure agreement with reference codes. The demonstration shows what a reviewer can inspect while deciding whether to accept a suggestion. Literal highlighting makes a wording overlap directly checkable, and attention shading makes the encoder’s distribution of emphasis visible. Establishing whether either display improves a coder’s decisions, or whether removing a highlighted passage would change the proposed code, would require evidence beyond the benchmark scores and the illustrated encounter.
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 disease-name matches and text emphasized by its coding system. · about 33 minutes to read
The problem and its context
Coding an encounter from a document
A medical code makes information from a clinical record usable in settings where the original prose would be difficult to compare or aggregate. The paper describes ICD as the standard that gives conditions a common diagnostic classification. It points to its uses in research, insurance claims, and statistics on illness and death. Each use depends on the mapping from what someone wrote about the encounter to a code with an agreed meaning. That mapping is ordinarily assigned by professional staff.
The authors connect the cost and difficulty of manual coding to the detail of the classification. They give 72,184 as the number of codes in ICD-10 and describe the catalogue as substantially larger than its predecessor, ICD-9. Finer classification gives a coder more distinctions to work with when describing a condition, disease, or injury. It also creates more opportunities for a partial match to lead to an insufficiently specific or otherwise inappropriate entry. Finding that a disease family is mentioned can be a useful starting point while leaving the exact code undecided.
The task is a form of multi-label text classification. A classification system that chooses a single category would have to treat the diagnoses in a record as competing answers. Here, an encounter can warrant several codes, and the professional annotation specifies the set that applies. The paper notes that several diagnoses can be represented by one code, and that conditions relevant to coding can be absent from the discharge diagnosis. Reading off a list of names from a single field therefore addresses only part of the task.
The structure of the authors’ Chinese collection gives a concrete reason to read the whole record. The admission account can contain the complaint and past history. Examination findings can appear in the discharge account. The diagnostic fields at admission and discharge contain concise names that may differ from the catalogue’s terminology. A useful piece of evidence can be buried in narrative prose or written plainly in a diagnosis list. Its position in the record also gives a human reader information about how to interpret it.
The paper approaches automation as assistance with this reading and mapping process. A proposed code is more readily checked when the reader can get back to the relevant wording. This matters because a plausible-looking disease name in an output list gives little guidance about which part of a long note to revisit. An indication of where to look gives the coder something to verify directly, even when the final decision depends on how that passage fits with the rest of the encounter.
How a disease name can be present in a note
The authors distinguish evidence by its arrangement in the text. They use fatty liver to illustrate a phrase that coincides with the disease name. There is a direct relation between the output and a stretch of the input that a person can point to. The same kind of relation exists for smaller pieces of a name. An exact fragment can be present even when the full official phrase is absent.
An exact fragment varies in usefulness with what else it could refer to. The paper contrasts a Chinese fragment associated with diabetes with a fragment meaning chronic. The former gives a narrower clue about the disease under consideration. The latter can form part of many names. Simply accumulating matches would count both whenever they occur, so the authors give the comparison access to information about how widely each fragment is used in the catalogue.
The paper’s other example concerns rheumatoid arthritis. The clinical wording specifies multiple sites, inserting material between elements that sit together in the official term. A direct search for the entire name would skip that particular occurrence. A filter that can read across the intervening positions has a way to register the relation between the separated pieces. The authors describe consecutive overlap as explicit evidence and treat the association of separated material as implicit evidence that the encoder can learn to detect.
These are descriptions of textual patterns. A phrase can contain a recognizable fragment and also place the rest of the useful words beyond it. A note can mention the same condition in different ways across its fields. The design allows such signals to coexist in the features used for scoring. This also explains why the paper gives the reader separate displays. A piece of text may be of interest because its wording appears in a disease name, because the encoder emphasizes its position for a particular code, or for both reasons.
Where the design comes from
The paper describes earlier work ranging from conventional supervised approaches to neural networks. Much of that research treated a free-text summary as the source of evidence for multiple code decisions. Other approaches made the label descriptions available to the predictor. Shi and colleagues used recurrent networks at the word and character levels to encode descriptions. Rios and Kavuluru averaged the word vectors of descriptions, giving each label a representation derived from its wording. Few-Shot and Zero-Shot Multi-Label Learning for Structured Label Spaces
Earlier researchers also addressed the difference between the way diagnoses are written in notes and the way they are named in the classification. The paper describes Xie and colleagues as using adversarial learning to bring the two styles closer. It mentions work that used Wikipedia as a source of additional knowledge. In Clinical-Coder, the use of the label description is more direct. The official name determines the substrings to count, and the catalogue as a whole helps determine how much weight to give each count.
The closest precedent for the display of learned evidence is attention-based coding. The authors describe Baumel and colleagues as using a bidirectional recurrent network with attention over sentences, so the importance of a sentence could depend on the code being considered. They identify Mullenbach and colleagues’ use of finer-grained attention as their immediate inspiration. In that approach, the weights identify positions within the text, allowing a reviewer to inspect a more localized region. Clinical-Coder retains the idea that each possible code should get its own distribution of weights. Explainable Prediction of Medical Codes from Clinical Text
The other architectural precedent comes from dilated convolution. The paper traces it to computer vision, where spacing the points sampled by a filter enlarged the region it covered while preserving the resolution of the representation. The authors also cite earlier work on convolutional filters for text that skipped positions. In the coding application, the attraction is that clinically relevant elements can remain associated across intervening words. The paper brings this sampling mechanism together with attention that can emphasize different patterns for different codes.
The method, step by step
Following a note through the system
The authors call the architecture DCANM, for its combination of dilated convolution, attention, and n-gram matching. It begins with the text of the encounter and a catalogue that associates disease names with candidate codes. For the Chinese experiments, the available admission and discharge narratives and diagnoses are joined in order to make the text input. The reference codes are the answers used for supervision. They are separate from the prose the predictor reads.
The catalogue is used to make a set of literal queries for each label. Each query is a consecutive piece of the label’s disease name. The system counts how frequently the pieces occur in the current note and summarizes the counts by fragment length, taking account of how distinctive each piece is. The same note is separately converted into a sequence of vectors. Conventional and dilated filters process that sequence, producing features at positions across the input. Attention then pools the features for the code under consideration.
For each candidate, the architecture combines the matching features with the summaries from the convolutional branches. The final score is calculated from that combination. A reader of the demonstration sees the proposed codes alongside their disease names and can inspect the note with either kind of evidence marked.
From clinical note to reviewable code suggestions
The steps in order.
The order of operations matters when reading the output. Attention is applied to features already formed by a filter. Literal matching works on the wording before that transformation. Both routes give the classifier information about a candidate, and the visualizations expose different stages of that calculation. A match can be verified by looking at the note and the disease name. An attention highlight refers to a location associated with a learned feature.
Representing the input numerically
The conventional and dilated encoders start from word embeddings. An embedding represents a vocabulary item as a vector of numbers. The authors organize the vectors as a matrix whose columns correspond to the vocabulary. The text retains its sequence order, so the embedding for an item occupies the position where that item was read. The convolution can then combine the embeddings at selected positions.
eᵢ = Wʷʳᵈ vᵢ
Here, i denotes the current position in the input. The vector vᵢ is a one-hot indicator, meaning its active entry identifies the vocabulary item at that position. Multiplying the embedding matrix Wʷʳᵈ by that indicator selects the appropriate column. The selected vector is eᵢ. The superscript wrd identifies the word embedding matrix. Its row dimension is the size of an embedding, and its column dimension is the size of the vocabulary.
The paper uses Word2Vec to pretrain embeddings with 100 dimensions on text from all the clinical notes. Pretraining supplies the starting numerical representation for processing the note. The direct matching route continues to use the strings themselves because its input to the classifier depends on literal recurrence. Thus the same occurrence can supply a vector to the filters and, if it overlaps a candidate’s name, a count to the matching calculation. Efficient Estimation of Word Representations in Vector Space
Turning pieces of names into features
The literal branch starts by moving a window along a disease name. A window of a particular length reads one consecutive substring at each position where it fits. The substring is an n-gram, with the length given by n. Moving a shorter window produces smaller pieces that may survive changes to the surrounding phrase. A longer window can represent more of the official wording at once. The paper gives 2, 3, 4, 5 as an example of the window lengths used to explain the matrix.
The identity of the candidate determines which substrings are counted. The current note determines how often they occur. The catalogue determines how distinctive the substrings are. Keeping these roles separate helps clarify what the feature means. A note can contain a repeated piece of wording that many diseases share. The repetition matters to the count, while the commonness of the piece limits its weight. An unusual piece contributes more per occurrence when the weighting treats it as characteristic of fewer names.
m[l,w] = ∑ᵢ₌₁ᴳ count(g[l,n,i]) × tfidf(g[l,n,i])
The index l specifies the label and its disease name. The column index w selects a window length n. The fragment g[l,n,i] is the piece at sliding-window position i for that name and length. The upper limit G is the number of fragments from the selected name at that length, and the sum runs over those fragments. The function count returns the number of occurrences in the input note. The weight of a fragment is tfidf, and × denotes multiplication. The result m[l,w] is the corresponding entry of the matching matrix M.
Each entry gathers evidence for a particular name at a particular scale. A piece absent from the note contributes nothing to the entry. When the piece appears repeatedly, the entry increases by the weight associated with each occurrence. The sum discards the locations of those appearances. The location is important to a reader who wants to inspect the surrounding sentence, whereas the reported feature gives the classifier the total for that size of fragment. The web demonstration uses the actual matches when showing the places in the note.
The authors describe their weighting rule as TF-IDF. In their expression, a factor for the fragment’s length relative to the length of the disease name is multiplied by a factor that depends on the fragment’s frequency throughout the catalogue. The rule consequently distinguishes fragments with equal length from the same name according to the number of occurrences across all names.
tfidf(g[l,n,i]) = (n / A[l]) × (L / freq(g[l,n,i]))
Here, g[l,n,i] again denotes fragment i of length n for label l. Its length is n and the length of the containing disease name is A[l]. The number of labels is L. The function freq counts occurrences of the fragment across all the disease names. The slash indicates division, and × multiplies the two factors. The result tfidf is the weight used in the note-level sum.
The two frequency quantities in these equations refer to different bodies of text. Counting in the note tests what the current encounter says. Counting across the names tests how widely the candidate’s wording is shared. For a given candidate and fragment length, the name-length factor stays fixed across fragments, so that second frequency provides a reason to distinguish one fragment from another. A conventional phrase that accompanies many kinds of finding can occur in the note and receive relatively little weight.
The paper illustrates the distinction with an English example. The authors give a weight of 1.79 to history of and 9.32 to atrial fibrillation. They report 249 occurrences of the former across the disease names and describe the latter as occurring twice. The example shows the intended direction of the weighting. Both are consecutive strings, but one identifies a particular condition much more directly. The calculation is used on clinical text from MIMIC-III.
There is one row of M for every candidate label and one column for each window size. A note that repeatedly uses fragments of a name may produce evidence at several lengths. An interrupted name can still contribute at the lengths that fit within its uninterrupted pieces. Since the matrix is built candidate by candidate, a piece can also contribute to several rows if it belongs to several official names. The weighting addresses that shared wording at the level of each counted fragment. The classification layer receives a projected version of the whole profile for the candidate.
Reading sequences with conventional and dilated filters
A convolution operates on the ordered sequence of embeddings. At a particular position it combines the entries in its window using learned parameters, adds a bias, and transforms the result. It reuses the same parameters as it moves across the sequence. This permits a feature to respond to a pattern whether the pattern occurs in the early narrative or towards the end of the text. Different output components can respond to different patterns in the same input span.
Ordinary convolution samples adjacent positions. A dilated convolution samples positions at a fixed spacing. The paper’s rheumatoid arthritis example shows the reasoning behind the latter operation. A suitable spacing can place sampled positions on useful parts of the clinical expression while skipping the words inserted between them. For long notes, dilation also increases the span available to a filter without pooling neighboring outputs into a shorter sequence. The architecture still has position features for attention to weight.
k_d = r(k − 1) + 1
The original filter width is k, and the dilation rate r gives the spacing between sampled positions. The resulting span is k_d, measured from the first sampled position through the last. The term k − 1 counts the intervals between sampled points. The final + 1 accounts for the starting position when expressing the length of the span. With r set to 1, k_d has the same value as k, so sampling is contiguous.
The next expression gives the conventional convolution for one position. The paper uses a hyperbolic tangent to turn the affine filter output into the feature passed to attention.
hₙ = tanh(Wᶜ ∗ x[n : n + k − 1] + bᶜ)
In this expression, n indexes the starting position of the window, whereas it indexed fragment length in the literal branch. The sequence x contains the vectors for the input items. The bracketed range begins at n and ends at n + k − 1, where k is the ordinary filter width. The learned filter is Wᶜ, and ∗ denotes convolution over the indicated positions. The vector bᶜ supplies the bias, and tanh is the componentwise hyperbolic tangent. The resulting position feature is hₙ.
The dilated version uses the span given by k_d. Its convolution samples spaced entries inside that span.
h′ₙ = tanh(Wᶜ ∗ x[n : n + k_d − 1] + bᶜ)
Here, h′ₙ identifies the result for the dilated branch at starting position n. The input vectors are again x, with the bracketed range ending at n + k_d − 1. The width k_d includes the skipped positions as part of the span. The operation ∗ applies Wᶜ according to the dilation pattern, and bᶜ and tanh supply the bias and nonlinear transformation as in the conventional expression. The paper uses the same parameter notation to describe the filter and bias for the respective operations. Each sampled embedding has a feature dimension denoted by dₑ, and the filter output and bias have dimension d꜀.
This definition makes dilation a structured way of widening context. The arithmetic spacing tells the filter which positions it reads. It does not individually choose a new set of gaps for each occurrence of a diagnosis. A wording variation provides useful separated evidence when its parts are accessible to the sampling pattern and the learned weights respond to what is sampled. The conventional branch continues to give the predictor a learned representation of adjacent context, while literal matching gives it a separately measured record of exact overlap.
The feature index also explains a subtlety of the display. A filter output is attached to a position, but its contents are formed from a window. In a dilated branch, the window can stretch across words that make no direct contribution to that application of the filter. When a position receives a dark highlight, the representation being emphasized may owe its value to multiple sampled locations. The shade guides the reader into the region of the note where that feature was formed.
Giving each code a view of the note
A single document vector would give all the classifiers the same summary of the encounter. The authors instead compute a weighted summary separately for each label. To do so, they represent a code by a vector and compare it with each position feature. Each code can pay particular attention to the part of the record that helps its decision. The operation is applied to the conventional and dilated feature sequences.
αₗ = softmax(Hᵀ uₗ)
The subscript l identifies the label. The matrix H contains the convolutional features for the branch under consideration, with each position represented by a column. A column has d꜀ components. The transpose, denoted by ᵀ, allows the multiplication with the label vector uₗ to produce a compatibility score for each position. The function softmax converts those scores into a normalized distribution over positions. The vector αₗ contains the resulting attention weights for label l.
A normalized distribution allocates emphasis among the positions in the current note. The same position can have different weights when the label changes because the vector used for comparison changes. The weight also depends on what the filter has encoded around that position. For instance, a position associated with the wording of an examination finding can receive strong emphasis for a code related to that finding, while a different code emphasizes a portion of the admission narrative.
mₗ = H αₗ
Here, H again holds the position features, αₗ holds the weights determined for label l, and mₗ is their weighted sum. The multiplication scales every column of H by the corresponding element of αₗ and adds the scaled columns. The result has the feature dimension of a single position vector. The conventional summary is denoted by mₗ. The paper uses the corresponding primed symbol, m′ₗ, to distinguish the summary of the dilated features.
This operation connects the visual display to the predictor. The attention weights decide the relative share of each position feature in the summary, which is then supplied to the classifier. The display can show the weights because they have a position index. It cannot display the contents of a convolutional vector as directly as it displays a match between strings. Color is therefore a way to locate emphasized inputs to the aggregation.
Scoring the catalogue and training on reference codes
The explicit feature matrix contains one entry per name and window length. The paper applies a linear projection to put the matching profile into the feature space used at classification. For a given candidate, the projected matching features are placed next to its conventional and dilated summaries. A linear score on the resulting vector is passed through a sigmoid. The score for a code can be high even when several other candidates receive high scores, which suits notes with several annotations.
ŷᵢ = σ(Wᵀ [mᵢ | m′ᵢ | m″ᵢ] + b)
Here, i indexes the candidate throughout the expression. The vectors mᵢ and m′ᵢ summarize the conventional and dilated branches for that candidate, and m″ᵢ is its projected matching vector from M. The square brackets with vertical separators mean that the vectors are placed end to end. The classifier weight vector is W and ᵀ denotes its transpose, so its product with the concatenation yields a scalar. The paper gives the classifier width as 3d꜀, where d꜀ is the convolutional output dimension. The scalar b is the bias. The sigmoid function σ yields the prediction score ŷᵢ.
The combination allows different feature types to influence the same decision. The literal branch can supply useful evidence even if a useful string is short. The convolutional summaries can carry context associated with those words or patterns found elsewhere. A high weighted count and a high attention weight are quantities from different parts of the architecture. How they influence the final prediction depends on the feature vectors and classifier parameters used in the combined calculation.
The learning objective compares each candidate score with the corresponding binary target. An annotated code supplies a positive target for that note. The other candidates supply negative targets. Binary cross-entropy penalizes a score for putting probability on the wrong outcome, with penalties added across the label inventory.
ℒ = ∑ᵢ₌₁ᴸ [−yᵢ log(ŷᵢ) − (1 − yᵢ) log(1 − ŷᵢ)]
The symbol ℒ is the loss for the note, L is the number of candidate labels, and the sum considers each index i from 1 through L. The reference value yᵢ is 1 for an annotated code and 0 otherwise. The predicted value ŷᵢ comes from the sigmoid for the same code. The function log takes the logarithm. For a present label, the contribution depends on the logarithm of its predicted score. For an absent label, it depends on the logarithm of the score’s complement. The minus signs make a confident error incur a larger cost.
This supervision operates at the level of the encounter. The professional annotation provides the desired set of codes. In the procedure the paper describes, the attention mechanism learns through that predictive objective. The literal highlights come from the matching operation itself. The scheme therefore produces text-level information that can be displayed even though the training targets are assigned to the note as a whole.
The authors set a maximum input length of 1000. They use a batch size of 16, meaning that updates are organized around groups of that size, and a dropout rate of 0.5. Dropout removes some activations during training so the predictor cannot rely on their constant presence. Adam adjusts the trainable parameters, using a learning rate of 0.0001 to set the scale of its updates. These settings accompany the stated embedding pretraining and the supervised objective.
Looking at a suggestion in the demonstration
The input area of Clinical-Coder accepts a clinical note containing any of the supported narrative or diagnostic sections. The result list pairs candidate disease names with their ICD codes. For name matching, the display indicates where a piece of a disease name appears in the note. The attention view uses red shading, with darker color for positions that receive more emphasis for the code being examined. A reader can use either display to locate the corresponding text and inspect the nearby material.
The appendix translates the demonstration example for English-speaking readers. The encounter includes kidney stones among the admission diagnoses. A renal cyst appears in the discharge diagnoses, and the narrative records a finding related to that cyst. The system’s list includes a code for kidney stones and a code for acquired renal cysts. Hyperlipidemia is present in the discharge diagnosis and among the suggestions. Fatty liver, used elsewhere in the paper as an example of direct overlap, appears in the note and is also suggested.
The demonstration shows how a proposed list can draw attention to material in different parts of an encounter. It also shows why being able to locate a match matters. A reviewer can consider a suggestion tied to the admission text alongside information recorded later. This is a different judgment from recognizing the words in isolation. The demonstration offers an interface for making that comparison, and the reference-code experiments supply a separate measure of the quality of automated prediction.
Experiments and results
The scope of the benchmarks
The authors’ Chinese dataset contains 50,678 clinical notes. A professional coder annotated each note after reading the record, and the resulting collection contains 6,200 distinct ICD-10 codes. The note input consists of the admission and discharge narratives and the corresponding diagnostic fields. The annotation is a separate field. The benchmark with the full inventory is CN-Full, split into training and test sets in a ratio of 9:1.
For CN-Full, the paper reports a vocabulary of 3,957 items. The averages are 621 tokens and 4.3 assigned codes per sample. These statistics indicate the scale of the decisions: a record generally presents evidence for multiple labels, and the classifier evaluates candidates drawn from an inventory much larger than the code set of an individual encounter. As the authors emphasize, occurrences across that inventory are highly uneven. Common codes account for a substantial part of the activity a pooled measure will capture.
The authors construct CN-50 by starting with the original training and test sets and filtering for notes with at least one of the 50 most frequent codes. That benchmark contains 36,758 samples and has a reported vocabulary of 3,957. The recorded averages are 655 tokens and 2.6 labels per sample. The filtering procedure changes both the range of candidate labels and which encounters enter the evaluation. CN-50 measures prediction on common codes in the records retained by that procedure. The benchmark gives another way to examine the architecture in a setting where there is more evidence for the selected labels.
For the English comparison, the authors report results on MIMIC-III-50. It has 9,795 samples and 50 labels. The paper gives 51,917 as the vocabulary size, 1,530 as the mean number of tokens per sample, and 5.7 as the mean number of labels. This is a separate benchmark on which a number of earlier approaches are available for comparison. It gives the paper an opportunity to test the same architectural idea outside its own Chinese collection.
Reading the measures
In this evaluation, precision describes how frequently a prediction agrees with the reference annotation, while recall describes how much of the annotated code set is recovered. F1 combines the two. In micro-F1, decisions are pooled across labels before calculating the measure. Frequent labels can contribute many instances to the pool. In macro-F1, the calculation is carried out label by label and those values are averaged, giving each label equal weight. The authors report both because a large catalogue with a skewed distribution can look quite different under the two views.
The paper also gives area under the receiver operating characteristic curve, abbreviated AUC. This evaluates discrimination as the decision threshold varies. Like F1, it is reported with macro and micro aggregation. AUC asks how the predicted scores separate positive from negative decisions over a range of thresholds. F1 captures the precision and recall of the decisions made for a particular evaluation. The measures can therefore give different orderings of the systems even when they use the same underlying code scores.
Ranking measures evaluate a list of a specified length. Precision at k is the proportion of the k highest-scoring candidates found in the reference annotation. Recall at k asks how much of the reference set is recovered by examining those candidates. This distinction is relevant to a reviewer who would start with the top suggestions. A long list can contain much of the reference set and still include questionable suggestions. A short list can provide good suggestions while leaving part of the annotated set to be found elsewhere. Every result of this kind refers to both a measure and a list length.
The Chinese results
CAML is the reference approach on the Chinese benchmarks. It uses conventional convolution and attention for individual codes. The authors compare it with a dilated convolution setting, a setting they label N-gram Matching, and their combined architecture. The settings are evaluated on the same benchmark within each comparison. The full collection shows how they behave when the output space extends well beyond the frequently assigned codes.
Micro-F1 on CN-Full across coding settings
The combined setting has the strongest pooled F1 result.
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 CN-Full, the dilated and matching settings each improve micro-F1 over CAML, and the combined setting leads both. The macro-F1 ordering changes at the top. CAML records 0.0600, and the dilated setting records 0.1017. Matching reaches 0.1200 and the combined architecture attains 0.1116. The gap between the micro and macro results makes the evaluation question consequential. The combined system is strongest when decisions are pooled, while the matching setting gives the strongest average F1 across individual codes.
Macro-F1 on CN-Full across coding settings
Disease-name matching leads when every label has equal weight.
The numbers
| System or setting | Macro-F1 |
|---|---|
| CAML | 0.0600 |
| Dilated CNN | 0.1017 |
| Clinical-Coder combined | 0.1116 |
| N-gram Matching (this paper) | 0.1200 |
The AUC results on CN-Full give the matching setting another advantage. For that setting, the paper reports macro-AUC of 0.9574 and micro-AUC of 0.9915. The combined setting gives 0.9520 and 0.9909 on those measures, respectively. CAML records 0.8832 macro-AUC and 0.9808 micro-AUC. The dilated setting gives 0.8637 macro-AUC and 0.9772 micro-AUC. Dilation therefore has a favorable F1 comparison with the baseline and an unfavorable AUC comparison on this benchmark.
On CN-50, the recall comparison at k=8 gives 0.9657 for the combined architecture and 0.9640 for the matching setting. The baseline reaches 0.9579, and the dilated setting reaches 0.9550. This measures the recovery of annotations within the ranked list when the prediction problem is restricted to common codes. It gives the combined approach the best value among the reported settings for that cutoff. The close ordering of the combined and matching results pertains to this particular list length and benchmark.
The English comparison
The English results place the proposed system beside previously reported approaches. The comparison includes a conventional CNN, a bidirectional gated recurrent network, and approaches based on memory or hierarchical attention. It also includes CAML and DR-CAML. The paper takes the classic CNN and bidirectional recurrent results from the earlier CAML work. The question here is how the complete architecture compares on the English benchmark, with component evidence supplied by the Chinese experiments.
Micro-F1 for selected systems on MIMIC-III-50
The combined Clinical-Coder architecture leads the reported micro-F1 comparison.
The numbers
| System or setting | Micro-F1 |
|---|---|
| CAML | 0.614 |
| CNN | 0.625 |
| DR-CAML | 0.633 |
| Clinical-Coder combined (this paper) | 0.641 |
The combined approach has a macro-F1 of 0.579 and macro-AUC of 0.890 on MIMIC-III-50. DR-CAML reports 0.576 macro-F1 and 0.884 macro-AUC. Their micro-AUC values are both 0.916. The top of the ranking gives a different result. At k=5, the combined approach has precision of 0.616, while DR-CAML has 0.618 and the conventional CNN has 0.620. The aggregate F1 lead and the proportion of correct suggestions among the highest-scored candidates address distinct uses of the output.
The scope of the English result is the 50-label benchmark. It shows that the complete architecture is competitive with the included systems on a different note collection and that its reported micro-F1 leads that comparison. The larger Chinese label inventory supplies the direct test of how the combination behaves alongside the component settings when infrequent labels are abundant. Reading the two experiments together makes it possible to see an overall predictive benefit alongside a specific advantage for matching under equal weighting of Chinese labels.
What the ablations show
Adding a wider view of the text
The Chinese setting comparisons start from a baseline that already supplies two useful capabilities: it learns from local context and summarizes that context separately for different codes. The comparison with dilation therefore concerns what happens when the encoder has access to more widely spaced input. The rise from 0.6755 to 0.6997 in CN-Full micro-F1 and from 0.0600 to 0.1017 in CN-Full macro-F1 gives predictive evidence for that setting. It is consistent with the authors’ proposal that connecting separated wording helps code assignment.
The filter illustration makes the linguistic mechanism intelligible. If one part of a term precedes an insertion and another follows it, a filter spanning those positions can combine their features. The result tables give an aggregate comparison across notes and codes. A direct demonstration that interrupted term expressions explain the gains would require identifying that category on the test set and measuring what changes for those examples. The paper uses the rheumatoid arthritis illustration to explain the mechanism and F1 to measure the overall effect of the setting.
The decline in CN-Full AUC for the dilated setting limits the interpretation of the gains. Compared with CAML, it yields higher reported F1 but lower discrimination as measured by both forms of AUC. The wider input could help some useful contexts and have different effects elsewhere. The tables report the net behavior on the measures. They leave the source of the different directions open, including whether particular labels or different parts of the score range account for them.
Where literal catalogue evidence helps
The matching setting does especially well when each CN-Full label receives the same influence. Its macro-F1 of 0.1200 exceeds the baseline result of 0.0600 and the combined result of 0.1116. The authors interpret the gain as evidence that disease-name fragments can help smaller classes. There is a reason for that interpretation in the calculation. The fragments come from the official name, so there is a direct source of label-specific evidence even for a code with few annotated occurrences. If the note contains a distinctive piece, the matching score can register it.
Equal weighting across labels makes the comparison more sensitive to changes in the performance of infrequent labels than pooling all decisions does. The resulting average still mixes labels with different frequencies and names. It can reveal that one setting is stronger on average under equal weighting without showing how widely that advantage is distributed. Labels with distinctive fragments repeated consistently in notes may respond differently from those whose wording varies considerably. A frequency breakdown and an analysis of which names were actually matched would be needed to measure that distinction.
The component result also qualifies the paper’s general argument that combining the signals produces the best performance. The combination leads on CN-Full micro-F1, whereas matching leads on CN-Full macro-F1 and both reported forms of AUC. For a given code, the learned features and the matching profile enter the same final score. Those measurements show the aggregate consequences of the combination. They give no per-code account of when the learned branches support a literal clue or when their contribution moves the prediction away from it.
What the comparisons isolate
The experiments compare the named settings and the complete architecture. They provide evidence about which setting to favor under a particular measure. Within the matching mechanism, the examples explain why distinctive substrings receive more weight. A separate weighted-versus-unweighted comparison would be needed to estimate how much of the predictive gain is due to the catalogue weighting, as distinct from the access to literal matches. The illustration of a common phrase and a distinctive diagnosis explains the rule but supplies no such comparison.
The same distinction applies to the filter design. Its illustration explains why fixed spacing can connect separated elements, and the convolution setting has measurable results of its own. The experiments do not report a controlled contrast between matching cases with adjacent wording and cases with known interruptions. They also give no series of results for different dilation rates. The component evidence is therefore strongest at the level of the compared system settings.
The paper’s other analyses are demonstrations of what the system exposes. A visible substring match can be checked against the disease name, and the darker regions in an attention view can be traced to the weights used in a label’s weighted summary. Those displays explain the structure of the evidence offered to a reader. The experimental comparisons evaluate code assignment under different feature settings. They do not compare a reviewer’s performance with and without either kind of display.
Limitations
Limits the authors identify
The authors call attention to the imbalance in their benchmarks. Many codes occur infrequently and a much smaller group occurs often. They interpret the low macro-F1 relative to micro-F1 as evidence of weaker performance on smaller classes, especially with the full Chinese inventory. The component comparison gives that concern a practical consequence. A setting preferred on the pooled metric can differ from the setting preferred when every code counts equally. A report of average pooled performance alone would give an incomplete account of how the catalogue is covered.
The conclusion puts cases with sparse or absent supervision on the agenda for future work. Few-shot learning refers here to prediction for labels supported by very little training data. The corresponding zero-shot problem concerns a label without supervised examples. The authors propose drawing on external resources to tackle those cases. Their existing architecture already uses the texts of disease names, which supplies information about a label apart from its annotated occurrences. Whether that information is enough to support prediction when labeled examples are scarce or absent remains an open experimental question.
In the paper, the system is described as a tool that helps with professional coding. Its interface and appendix illustrate what a person can examine alongside each proposed list. Its evaluation measures agreement with a professionally annotated reference. The authors’ stated clinical motivation is broader, since a system that helps a reviewer find evidence could change how the review proceeds. The paper’s experiments establish comparative predictive results within the benchmarks and leave the effect on that process to be measured.
Limits visible in the benchmark design
CN-Full is an evaluation within the authors’ collection. The paper describes a training and test split, and CN-50 is filtered from those original portions. Performance under a separate collection of Chinese records, with different terminology, documentation patterns, or distributions of codes, remains unmeasured. The English benchmark demonstrates the use of the architecture on English clinical text in a distinct setting. It provides no estimate of what happens when a system trained on the Chinese data is directly moved to another language or institution.
The training description also matters when interpreting the split. The authors say that the text for Word2Vec pretraining comes from all clinical notes. This wording leaves open the separation of held-out input text from the embedding stage. Seeing text to learn its vocabulary representation and seeing reference codes to learn a coding decision are different exposures. The distinction matters to a reader assessing how closely the experiment resembles processing entirely new records after all development has finished.
There is a related question about long inputs. The paper sets a maximum input length of 1000, while reporting a mean of 1,530 tokens for MIMIC-III-50. The statistics indicate that input handling matters on the English data. They give no measure of how much relevant information falls beyond the part processed, or which fields are most likely to lose useful text when a note exceeds the cap. For an architecture designed to direct attention back to evidence, the part of the record made available to the encoder constrains what the display can point to.
The results are reported as point estimates. The paper provides no repeated-run or split-level variation for the comparisons. The measured ordering is clear in the tables, while the stability of closely spaced results remains uncertain. This is especially relevant when matching and the combined system are close on a ranking measure or when alternatives trade places across metrics. The paper does not estimate how frequently a different training run or partition would change those orderings.
The relationship between a score and a displayed recommendation also deserves care. The sigmoid gives a value for every code, and the ranking measures assess what appears among a fixed number of candidates. A system used by a coder needs a rule for how many suggestions to show or how high a score must be for display. The reported comparisons do not establish a preferred threshold policy or show how closely the scores correspond to observed correctness probabilities. The benchmark can establish comparative F1 or ranking performance without resolving those questions about use.
What a highlight can establish
A literal highlight establishes that some text overlaps a candidate’s official wording. The match calculation also assigns different values to fragments depending on their catalogue frequency. The clinical significance of the occurrence is a further question. Related words can appear in an account of past history or in a current finding, and the definition of the matching feature counts occurrences across the supplied text. The learned branches can use surrounding information, but the paper reports no performance broken down by how a condition is mentioned.
Attention supplies a different quantity. A dark region signals a high weight for a convolutional feature at that location when producing a summary for the selected label. Its influence on the final score also depends on the content of the vector being weighted, on the other positions, and on the other feature branches. To show that a particular passage was decisive, one would need an intervention that changes the passage and examines the response. The illustrated attention distributions establish where emphasis was allocated in the displayed computation.
The appendix presents an encounter in which a reader can compare suggestions with information from admission and discharge. It demonstrates the availability of evidence for inspection, while leaving open how human readers use it. The paper reports no study of whether the highlights shorten review time, improve coding accuracy, or help a professional reject a plausible but incorrect suggestion. Those outcomes would require evaluating the review process with people making decisions. The measured outcome here is the predictor’s agreement with the benchmark, and the interface shows the kind of evidence it can furnish for subsequent scrutiny.
What came after
Workflow design for automated coding
MedDCR cites Clinical-Coder in work on learning to design agentic workflows for medical coding. Its stated focus shifts the design question to how a process for doing the coding is assembled. Clinical-Coder specifies in advance how the note is read, how catalogue evidence enters the feature vector, and how candidates are scored. The later title identifies workflow design itself as the object of learning. This connects the works at the level of organizing automated code assignment. The citation alone leaves open whether MedDCR adopts the earlier substring weighting or uses its attention display.
That distinction is relevant to the paper’s contribution because Clinical-Coder locates explanation inside a particular scoring architecture. Its two displays correspond to explicit operations that can be inspected for an individual code. A study organized around workflow design poses a broader question about the arrangement of coding steps. The stated scope of MedDCR supports that connection. Details about the evidence it supplies for a recommendation remain unspecified.
Chinese clinical records and multi-agent coding
JointCoder also cites Clinical-Coder. Its stated task is automated ICD assignment on real-world Chinese electronic health records, and it explores a multi-agent framework. The common ground is the conversion of Chinese-language clinical documentation into standardized codes. The newer work names the organization of the coding process around multiple agents as its approach. Clinical-Coder’s design instead describes the text and catalogue inputs to a single code-scoring architecture, with a separate summary for each candidate.
These links establish continued attention to the coding problem in both a workflow-design setting and a Chinese electronic-record setting. The descriptions identify the task and organizing approach of each later work. They leave the status of specific transfers open, including the use of Clinical-Coder’s data partition, its catalogue matching rule, and its two displays for reviewing suggestions.
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.
@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}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cao-2020-clinical-coder-assigning-interpretable-icd/