<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Automatic ICD Code Classification with Label Description Attention Mechanism</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Kathryn</forename><surname>Chapman</surname></persName>
							<email>kathryn.chapman@dfki.de</email>
							<affiliation key="aff0">
								<orgName type="institution">DFKI GmbH</orgName>
								<address>
									<addrLine>Campus D3 2</addrLine>
									<postCode>66123</postCode>
									<settlement>Saarbrücken</settlement>
									<country key="DE">Germany</country>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="institution">Saarland University</orgName>
								<address>
									<settlement>Saarbrücken</settlement>
									<country key="DE">Germany</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Günter</forename><surname>Neumann</surname></persName>
							<email>guenter.neumann@dfki.de</email>
							<affiliation key="aff0">
								<orgName type="institution">DFKI GmbH</orgName>
								<address>
									<addrLine>Campus D3 2</addrLine>
									<postCode>66123</postCode>
									<settlement>Saarbrücken</settlement>
									<country key="DE">Germany</country>
								</address>
							</affiliation>
							<affiliation key="aff1">
								<orgName type="institution">Saarland University</orgName>
								<address>
									<settlement>Saarbrücken</settlement>
									<country key="DE">Germany</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Automatic ICD Code Classification with Label Description Attention Mechanism</title>
					</analytic>
					<monogr>
						<idno type="ISSN">1613-0073</idno>
					</monogr>
					<idno type="MD5">8B616197BD40F7094C90BFB502FDB732</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T04:20+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>ICD</term>
					<term>Extreme Multilabel Classification</term>
					<term>Electronic Health Records</term>
					<term>Cancer Text Mining</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>We present our submission for the CANTEMIST (CANcer TExt Mining Shared Task -tumor named entity recognition) 2020 task <ref type="bibr" target="#b0">[1]</ref>. We participated in track 3, which focuses on automatic eCIE-O-3.1 codes assignment (English version: ICD-O-3), an extreme multi-label classification (XMLC) problem. We developed a model which utilizes a BERT-like encoder and word-level attention mechanism between input clinical cases and textual descriptions of the labels. We found that our model predicted a wider variety of codes across the test set than our baseline, thereby capturing more low-resource labels. Our final submission achieved a mean average precision (MAP) of 39.4% and F1-micro of 26.8%.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Automatic International Classification of Diseases (ICD) code assignment is a classification problem which involves taking as input an electronic health record (EHR) and outputting a set of ICD codes (labels). Unlike multi-class classification, where only one label is assigned from three or more classes, ICD code assignment is a multi-label classification problem, meaning that there can be any number of labels from a set assigned to an instance. Furthermore, automatic ICD code assignment constitutes an extreme multi label classification (XMLC) problem as there are 140,000+ ICD-10 codes, a number which regularly increases due to new diagnoses and procedures in the medical field. In XMLC, a small subset of labels from a very large label space are assigned to an instance. A challenge specific to XMLC is known as the 'tail end problem', which means that there are a few labels assigned to many instances, while the vast majority of labels -the 'tail end' -in the labels space are assigned to very few instances <ref type="bibr" target="#b1">[2]</ref>. As such, it is important in XMLC to ensure that models are not achieving high scores by simply assigning only the frequent labels, as this collapses the XMLC problem into a basic multi-label classification one. In other words, if a label space has a dimensionality of 1000, and a classifier performs well according to a given metric but only ever assigns the top 20 labels, this is not a good XMLC classifier. Therefore, the major challenge in XMLC is to capture these rare or unseen labels, and develop a classifier which can detect and assign them. Lastly, in the medical field, ICD codes are assigned to an EHR in descending order of importance, as these codes are used for billing purposes. To our knowledge, this code ranking has not been a major focus in past automatic ICD code assignment research, which has mostly sought to develop systems which can correctly predict the codes as an unordered set. However, this code ranking aspect will need to be addressed if these automatic classifiers are expected to be used in a real-world application.</p><p>In the CANTEMIST 2020 task, track 3, participants were expected to submit model predictions in this ranked order. The submissions were evaluated using the mean average precision (MAP) metric. In this metric, if all predictions for a given instance are correct, their ordering does not matter. However, an incorrect prediction occurring high on a ranked list or before other correct predictions causes the MAP to decrease.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related Work</head><p>Until recently, research on automatic ICD code assignment has focused mostly on classic machine learning architectures. Many researchers have exploited external ICD code information, such as <ref type="bibr" target="#b2">[3]</ref>, where they incorporated the ICD code heirarchy in their SVM model which yielded an F1 increase from 27.6% to 39.5%. With the recent boom in deep learning, research has shifted from classic machine learning models to neural architectures. <ref type="bibr" target="#b3">[4]</ref> evaluated several neural network based classifiers in assigning ICD-10 codes to non-technical summaries of animal experiments. They found that a BERT-based classifier outperformed the other models, achieving an F1-micro score of 80.82%. Other recent work has focused on incorporating external resources to aid in automatic ICD code assignment. <ref type="bibr" target="#b4">[5]</ref> developed the Convolutional Attention for Multi-Label classification (CAML) model, which used the ICD code textual descriptions to identify spans of text within a document which triggered the assignment of a given code. This model architecture increased performance on the 'low-resource' codes, those which have few positive training instances. <ref type="bibr" target="#b5">[6]</ref> developed the Label-Specific Attention Network (LSAN), a general-purpose multilabel text classification architecture which utilizes label vectors generated from textual label descriptions and computes attentions scores between each label vector and each word in a document. <ref type="bibr" target="#b6">[7]</ref> created a framework which generates pseudo features from the ICD code textual descriptions, and achieved an increase in F1 score from nearly 0 to 20.91% for the codes not seen during training, referred to as 'zero-shot codes'. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Data</head><p>The  <ref type="table" target="#tab_0">1</ref>). Additionally, the two most frequent codes are assigned to the majority of the documents, followed by a rapid decrease in code frequency (Table <ref type="table" target="#tab_1">2</ref>). This demonstrates the aforementioned 'tail end problem' in XMLC, and is further illustrated in Figure <ref type="figure" target="#fig_0">1</ref>, which shows that across the training, dev, and test data, 427 of the 850 unique codes are only assigned to a single document, 146 are only assigned to two documents, etc. This means that over half of all codes present in the entirety of the data set only have a single positive training instance, and 67% of the 850 codes have only 1-2 positive training instances, etc. Meanwhile, the most frequent code, 8000/6, is assigned to 1000+ documents across all data splits. This constitutes an extreme label imbalance. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Additional Data</head><p>Additional to the data provided by the task organizers, we downloaded textual descriptions corresponding to each eCIE-O-3.1 code<ref type="foot" target="#foot_0">1</ref> . Figure <ref type="figure" target="#fig_2">2</ref> shows how the numerical composition of each code is informative, as the first four digits specify a cell type, the fifth digit a behavior (benign, malignant, etc), and the sixth digit a grade (well differentiated, poorly differentiated, etc). A small number of 6-digit codes present in the provided datasets lacked descriptions, however. This means that we obtained text descriptions for all codes which specify cell type and behavior, but were missing some for a few codes which specify cell type, behavior, and grade. We therefore generated our own descriptions by taking the description corresponding to the first five digits of that code (cell type + behavior), and simply appending text which corresponds to the final digit, or the grade. There are only four possible digits to specify the grade, and therefore only four grade descriptions 2 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Methods</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Models</head><p>Baseline Our baseline model utilized a BERT encoder <ref type="bibr" target="#b7">[8]</ref> followed by a classification layer. The encoder passes the pooled output of the input sequence to the classification layer, which outputs a binary matrix representing the presence or absence of a given code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Label Description Attention</head><p>The authors in <ref type="bibr" target="#b5">[6]</ref> generated a vector for each label from their corresponding textual descriptions and calculated attention scores between each label vector and word in a document. Building off of this, we developed a label description attention component of our model which calculates attention scores at the word level. Our label attention model (Appendix A) employs a BERT or BERT-like encoder which it applies both to the input text from the documents, as well as the textual descriptions of the labels (described in 3.1). This model utilizes the sequence output, rather than pooled output, of both of these input texts, calculating attention scores between each word in each input document, and each word in each label description. To the best of our knowledge, this is the first time word-level attention has been applied between textual label descriptions and document text in multi label classification.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Document Batching</head><p>A drawback of BERT and BERT-like models is that they can only accept input up to a predefined maximum sequence length, due to memory constraints regarding the way they calculate self-attention. Additionally, this maximum sequence length applies to the number of tokens after the subword tokenization is applied, meaning that a sequence may have fewer than 510 whitespace tokens, but many more when tokenized according to the BERT-like models' subword tokenization scheme. As the average number of whitespace tokens in the CANTEMIST data sets is around ∼768 per document, we felt it important to utilize as much of each document as possible. Therefore, we developed a model component we have designated as 'documentbatching'. This component fits each document into varying-size batches, such that each batch is only one document, and uses a 'sliding window' so that there is an overlap between sequences in a batch in order to preserve context. We then perform max-pooling over the batch dimension of the logits, and pass the resulting vector to our loss function, or to make predictions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Experiments</head><p>All experiments were conducted using the provided train data split as our training data, and the dev1 as our evaluation data. We combined the baseline model (simple encoder plus classification layer) and the label attention model with the three BERT and BERT-like models in 5.1, as well as with/without the document batching component.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">BERT Models</head><p>We utilized the publicly available HuggingFace<ref type="foot" target="#foot_2">3</ref> implementations of the following models <ref type="bibr" target="#b9">[10]</ref>.</p><p>All experiments employ the following hyperparameters unless specified otherwise: document maximum sequence length 200, label maximum sequence length 15, 45 epochs, per-gpu batch size 8, and the remaining parameters default. All experiments were run across 4 GeForce GTX TITAN X GPUs.</p><p>Multilingual BERT We used the pre-trained BERT-Base-Multilingual-Cased encoder (ML BERT) in our experiments. XLM-RoBERTa <ref type="bibr" target="#b10">[11]</ref> introduced XLM-RoBERTa (XLM-R), which is nearly identical to the RoBERTa <ref type="bibr" target="#b11">[12]</ref> architecture except it is extended to a multi-lingual setting. XLM-R has outperformed multi-lingual BERT on various benchmark tasks, thereby motivating our decision to explore this model. We used a XLMR-base-cased model. Further Pretrained XLM-R We additionally further pretrained an XLM-R-base-cased model (FP XLM-R) using the masked language modeling objective on all of the text from the training, dev, test, and background data releases. Next, we fine-tuned the model exactly as we did with the BERT and 'out of the box' XLM-R models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Document Batching</head><p>We ran experiments both with and without the document batching component. When we included it, we set the maximum per-gpu batch size to 10 and used an overlap of size 50. This means that each next sequence in a batch contained the last 50 tokens of the previous sequence in the batch.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.">Code Ordering</head><p>As the task organizers expected a ranked list of code predictions, we simply ordered the labels by their confidence scores.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4.">Loss Functions</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4.1.">Binary Cross Entropy</head><p>We used the PyTorch loss function BCEWithLogitsLoss. We observed however that this loss function was resulting in very high precision and very low recall. We investigated the predictions and found that the classifier was predicting only a few codes from the entirety of the label space, and achieving what appeared to be a competitive performance. For example, using this loss function with the baseline classifier plus document batching resulted in a MAP of 0.331, F1 of 0.491, precision of 0.855, and recall of 0.343. Despite the deceiving metric scores, this classifier was assigning the two most frequent codes to every document. We observed this across several experiments and also with the label attention model. In ICD code classification, recall is arguably slightly more important than precision, as the precision can be very high if the classifier simply assigns the most frequent codes to every document. However, detecting the 'rare' codes is the real challenge in ICD classification. Therefore, we opted for a modified BCEWithLogitsLoss loss function.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4.2.">Balanced Binary Cross Entropy</head><p>Building off of PyTorch's BCEWithLogitsLoss, we created a loss function which calculates positive class weights based on the ratio of negative classes per example in a batch. For example, if there are 5 negative labels for every 1 positive label, each positive label for that example receives a weight of 5. This appropriately addressed the problems with the basic BCEWithLogitsLoss loss function, in that we saw a substantial increase in recall, albeit at the expense of the precision.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5.">Results and Discussion</head><p>Label Attention vs Baseline Table <ref type="table" target="#tab_2">3</ref> shows that while the baseline achieves on average a higher MAP score, the precision and recall are far less balanced and many more labels are predicted per document. When looking into these labels, the baseline predicts only on average (across all experiments) 71.8 unique labels across all predictions on the dev1 set, whereas the label attention model predicts on average 81.75 unique labels across the dev1 set. We therefore feel that even if the MAP metric is lower, the label attention model produces a more varied set of predictions. Additionally, in all of the twelve experiments conducted (six of which included the baseline), there was only one time that the baseline classifier did not assign the same codes to every single document. Conversely, we observed that the label attention model only assigned all of the same codes to every document once. However, the label attention model plus ML BERT only assigned 32 and 30 unique codes across the entire dev1 set with and without document batching respectively, but even then, the models assigned only 6.9 and 7.98 on average to each document. This, we feel, is much better than assigning 45 and 52 unique labels, but assigning all of them to every document, as we observed with the baseline classifier with ML BERT with/without document batching respectively. Lastly, we evaluated model performance when removing the top 2 most frequent labels, as they occur in over half of the documents, and the top 9 most frequent codes (see table <ref type="table" target="#tab_3">4</ref>). Both models were trained on the training set, using document batching and evaluated on dev1. The label attention model outperforms the baseline with respect to F1 and precision, but fails regarding MAP and recall.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Document Batching</head><p>The average MAP scores with respect to document batching are nearly identical across the experiments, but the F1 are higher when this is used due to a slightly more balanced P/R. While we expected to see more of a performance boost with the document batching, but its inclusion does help to make up for the precision decrease from our loss function.</p><p>BERT &amp; Friends There does not seem to be a clear winner regarding the type of BERT-like encoder, as shown in table 3c. However, we explored the number of unique codes assigned during eval on the dev1 set, and found that the FP XLM-R is the clear winner when it comes to variety of codes assigned. On average, the FP XLM-R model predicted 126.8 unique codes, as opposed to 39.8 and 46 for the ML BERT and XLM-R models respectively. This means that more rare codes were predicted, which is what we hoped to see.</p><p>Finally, we feel that models which can predict on average fewer labels per document and still be competitive are learning more than the models which predict more labels per document on average. While recall is perhaps slightly more important than precision here, models which continuously predict 50 labels per document are not necessarily achieving high recall by catching the 'rare' labels; if the models are predicting 50 codes per document and only predicting 52 unique codes, this is not a very well-informed model. Therefore, high recall is only beneficial if the average number of labels predicted per document is substantially lower than the number of unique labels predicted. Otherwise, the model is repeatedly assigning most or all of the top most frequent codes, and presumably failing to capture the rarer codes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.6.">Submission and Performance</head><p>Our submitted model predictions were generated from a further pretrained XLM-R base model, trained for 45 epochs on a concatenation of the training and dev1 data, with a document maximum sequence length of 200, a label maximum sequence length of 11, document batching, and the balanced binary cross entropy loss function. Since we trained the model on the concatena- Table <ref type="table" target="#tab_4">5</ref> shows our model performance according to various metrics.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.7.">Post-Submission Experiments</head><p>When developing our model, we found that setting document maximum sequence length to 200, label maximum sequence length to 15, while using the document batching component with a maximum batch size of 10 yielded promising results. However, when training the final model on the concatenation of the training and dev1 splits, this meant that our label space increased from 493 to 623. As all of the label descriptions are re-encoded in every forward pass, this caused memory issues and we had to decrease the label maximum sequence length and 11 in order to fit all label descriptions into the memory. To probe what effect this had on the model's performance on the test set, we trained another model with maximum sequence lengths of 150 (document) and 15 (label). The resulting model achieved an MAP of 0.48, which surpasses our submitted model's MAP but performs worse in F1 micro and precision. Additionally, this model only predicts 76 unique codes, and assigns on average 70.5 codes per document. Recall that across all data splits, the average number of codes per document is 5.4. Additionally, the post-submission experimental model's top codes predictions almost entirely lack variation across all 300 test documents. When treating model predictions as an unordered set, the top 15 predictions are identical across all test documents (with only two distinct orderings). Similarly with the top 25 codes, we see only 2 distinct code set predictions and 9 distinct orderings. In summation, this model appears to perform better than our submission by the MAP metric alone, but if the top 15 (or 25) code predictions across all documents are nearly identical, it seems that the model is over-assigning frequent codes, and perhaps the lower-ranking predictions are more informative, as we observed much greater variation across these 'bottom' codes predictions.</p><p>We also trained a model identical to our submitted model, just without the label attention component. Table <ref type="table" target="#tab_4">5</ref> shows that without the label attention component (essentially, our baseline model plus document batching), the model predicts the same 52 codes for all documents, in exactly the same order, despite achieving a higher MAP score.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Conclusion</head><p>Automatic ICD code classification is not only challenging, but evaluating the quality of such a classifier is also a daunting task. This is because models can trick the evaluation metrics, while in the end producing useless predictions. We feel that it is important to not only evaluate a model by it performance metric, but to also explore the predictions: How many unique labels are predicted? Are only the most frequent labels predicted? What is the ratio of total unique labels predicted to the average number of labels assigned to a document? These are important questions to ask if the ultimate goal is to develop a system which can function in real-world applications.</p><p>Our label description attention model did not always win in our pre-submission experiments, but it did consistently produce more varied predictions, a larger set of unique labels, and fewer codes per document, all while maintaining high recall and a competitive F1 score. Our motivation to use our chosen model in the final submission as opposed to another which produces a higher MAP score, is that we sought to increase performance on the low-resource codes without assigning too many codes to each input document, thereby maintaining precision. A drawback of our model is its computational expense: our current architecture requires re-encoding all label descriptions in every forward pass, as the encoder parameters are updated during training. Future work could focus on finding a more efficient way to embed the label descriptions, as our architecture would be extremely computationally expensive in a larger label space. We planned to use higher capacity models in our experiments and submission, but ran into memory issues; this could also make for interesting future work, as such large label spaces could benefit from this increase in capacity. Furthermore, exploiting the ICD code hierarchy, which is encoded in the composition of the codes themselves (figure <ref type="figure" target="#fig_2">2</ref>), and incorporating this into the label description embeddings could make for interesting future work.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 1 :</head><label>1</label><figDesc>Figure 1: Number of codes as a function of absolute frequency. For example, 427 codes occur with 1 document, 146 codes occur with 2 documents, and so on. Truncated on x-axis to top 30 absolute frequencies.</figDesc><graphic coords="3,154.66,84.19,283.48,212.61" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head></head><label></label><figDesc>data for the CANTEMIST 2020 -Coding Track consists of a training set of 501 documents, two development sets consisting of 249 and 250 documents, and a test set of 300 documents. Across the training and development splits, the average number of whitespace-split tokens per document is 738. Each document is assigned one or more eCIE-O-3.1 (English version: ICD-O-3) codes, with an average of 5.4 codes per document across train, dev, and test data. Across all datasets, there are 850 unique eCIE-O-3.1 codes, many of which are present only in the test split (see Table</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Figure 2 :</head><label>2</label><figDesc>Figure 2: Structure of the ICD-O-3 codes. [9]</figDesc><graphic coords="5,211.35,84.19,170.08,142.99" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0"><head></head><label></label><figDesc></figDesc><graphic coords="12,89.29,110.29,311.73,252.56" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0"><head></head><label></label><figDesc></figDesc><graphic coords="12,89.29,363.85,325.97,311.47" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head>Table 1</head><label>1</label><figDesc>Number of documents, unique codes, and unseen codes per data split. '# Unseen codes' refers to codes which are not present in training data split.</figDesc><table><row><cell cols="3">Split # Docs # Unique Codes</cell><cell># Unseen Codes</cell></row><row><cell>Train</cell><cell>501</cell><cell>493</cell><cell>-</cell></row><row><cell>Dev1</cell><cell>249</cell><cell>338</cell><cell>208</cell></row><row><cell>Dev2</cell><cell>250</cell><cell>334</cell><cell>203</cell></row><row><cell>Test</cell><cell>300</cell><cell>386</cell><cell>164 (train), 107 (+devs)</cell></row></table></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_1"><head>Table 2</head><label>2</label><figDesc>Top 9  codes and percentage of positive instances across the train (including dev) and test splits</figDesc><table><row><cell cols="3">Code Train + Devs Test</cell></row><row><cell>8000/6</cell><cell>89%</cell><cell>83%</cell></row><row><cell>8000/1</cell><cell>76%</cell><cell>74%</cell></row><row><cell>8000/3</cell><cell>40%</cell><cell>42%</cell></row><row><cell>8140/3</cell><cell>22%</cell><cell>21%</cell></row><row><cell>8010/3</cell><cell>14%</cell><cell>9%</cell></row><row><cell>8140/6</cell><cell>13%</cell><cell>9%</cell></row><row><cell>8500/3</cell><cell>10%</cell><cell>7%</cell></row><row><cell>8001/1</cell><cell>9%</cell><cell>7%</cell></row><row><cell>8001/3</cell><cell>8%</cell><cell>7%</cell></row></table></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_2"><head>Table 3 Average</head><label>3</label><figDesc></figDesc><table><row><cell></cell><cell>Model</cell><cell>MAP</cell><cell>F1</cell><cell>P</cell><cell>R</cell><cell>Avg # Labels/Doc</cell></row><row><cell>a)</cell><cell>Label Attn</cell><cell>44%</cell><cell>28%</cell><cell cols="2">20.9% 57.4%</cell><cell>19</cell></row><row><cell></cell><cell>Baseline</cell><cell cols="2">51.7% 14.4%</cell><cell>8%</cell><cell>76.1%</cell><cell>48.1</cell></row><row><cell></cell><cell>Document Batching</cell><cell>MAP</cell><cell>F1</cell><cell>P</cell><cell>R</cell><cell>Avg # Labels/Doc</cell></row><row><cell>b)</cell><cell>✓</cell><cell cols="4">48.3% 21.3% 14.3% 66.9%</cell><cell>31.28</cell></row><row><cell></cell><cell>✗</cell><cell cols="2">48.9% 18.4%</cell><cell>12%</cell><cell>70.2%</cell><cell>41.7</cell></row><row><cell></cell><cell>BERT</cell><cell>MAP</cell><cell>F1</cell><cell>P</cell><cell>R</cell><cell>Avg # Labels/Doc</cell></row><row><cell>c)</cell><cell>ML BERT</cell><cell>44.6%</cell><cell>25%</cell><cell cols="2">18.8% 60.4%</cell><cell>27.6</cell></row><row><cell></cell><cell>XLM-R</cell><cell cols="2">51.7% 14.9%</cell><cell cols="2">8.3% 75.8%</cell><cell>46</cell></row><row><cell></cell><cell>FP XLM-R</cell><cell>51%</cell><cell>17.2%</cell><cell>10%</cell><cell>73.2%</cell><cell>40.6</cell></row></table><note>MAP, F1, Precision, and Recall scores of the (a) label attention component vs. no label attention, (b) document batching vs. no document batching, and (c) the different BERT-like models from our presubmission experiments.</note></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_3"><head>Table 4</head><label>4</label><figDesc>Pre-submission model performances when n most frequent codes are removed.</figDesc><table><row><cell></cell><cell></cell><cell></cell><cell></cell><cell cols="3"># Codes Removed</cell><cell></cell><cell></cell><cell></cell><cell></cell><cell></cell></row><row><cell></cell><cell></cell><cell>None</cell><cell></cell><cell></cell><cell></cell><cell>Top 2</cell><cell></cell><cell></cell><cell></cell><cell cols="2">Top 9</cell></row><row><cell>Model</cell><cell>MAP</cell><cell>F1</cell><cell>P</cell><cell>R</cell><cell>MAP</cell><cell>F1</cell><cell>P</cell><cell>R</cell><cell cols="2">MAP F1</cell><cell>P</cell><cell>R</cell></row><row><cell cols="9">Label Attn 50.2 24% 15% 60% 23.3 13% 8% 42%</cell><cell>6.2</cell><cell cols="3">6% 3% 17%</cell></row><row><cell>Baseline</cell><cell cols="5">51.6 16% 9% 65% 25.1</cell><cell cols="3">9% 5% 50%</cell><cell>7.7</cell><cell cols="3">5% 2% 29%</cell></row></table></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_4"><head>Table 5</head><label>5</label><figDesc>Comparison of model performances between the submitted model and other identical models, differing only where specified. 'MSL' refers to 'maximum sequence length'. tion of the training and dev1 data, 130 of the 386 labels present in the test data were unseen during training, leaving 256 unique labels in the test data which our model had been trained on.</figDesc><table><row><cell cols="2">Model, Doc MSL, Label MSL MAP</cell><cell>F1</cell><cell>P</cell><cell>R</cell><cell cols="2">Avg #Codes/Doc # Unique Codes</cell></row><row><cell>Final Submission, 200, 11</cell><cell cols="3">39.4 26.8 18.2</cell><cell>51</cell><cell>15</cell><cell>178</cell></row><row><cell>Label Attention, 150, 15</cell><cell>48.2</cell><cell>9.9</cell><cell>5.3</cell><cell>67.2</cell><cell>70.5</cell><cell>76</cell></row><row><cell>No Label Attention, 200, -</cell><cell>48</cell><cell>12.4</cell><cell>6.8</cell><cell>64.6</cell><cell>52</cell><cell>52</cell></row></table></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">https://eciemaps.mscbs.gob.es/ecieMaps/documentation/documentation.html, version 3.0, last edited 01.01.2018, accessed</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="28" xml:id="foot_1">.07.2020 2 http://www.sld.cu/galerias/pdf/sitios/dne/vol1_morfologia_tumores.pdf</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2">https://github.com/huggingface/transformers, version 2.11.0</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Acknowledgments</head><p>Special thanks to Saadullah Amin and the DeepLee 4 team for guidance and helpful discussion. This work was partially funded by European Union's Horizon 2020 research and innovation program under grant agreement No. 777107, through the project Precise4Q 5 .</p></div>
			</div>

			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Label Description Attention Model</head></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">Named entity recognition, concept normalization and clinical coding: Overview of the cantemist track for cancer text mining in spanish, corpus, guidelines, methods and results</title>
		<author>
			<persName><forename type="first">A</forename><surname>Miranda-Escalada</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Farré</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Krallinger</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the Iberian Languages Evaluation Forum (IberLEF 2020)</title>
				<meeting>the Iberian Languages Evaluation Forum (IberLEF 2020)</meeting>
		<imprint>
			<date type="published" when="2020">2020</date>
		</imprint>
	</monogr>
	<note>CEUR Workshop Proceedings</note>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Data scarcity, robustness and extreme multi-label classification</title>
		<author>
			<persName><forename type="first">R</forename><surname>Babbar</surname></persName>
		</author>
		<author>
			<persName><forename type="first">B</forename><surname>Schölkopf</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Machine Learning</title>
				<imprint>
			<date type="published" when="2019">2019</date>
			<biblScope unit="page" from="1" to="23" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Diagnosis code assignment: models and evaluation metrics</title>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">J</forename><surname>Perotte</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Pivovarov</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Natarajan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Weiskopf</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><forename type="middle">D</forename><surname>Wood</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Elhadad</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">JAMIA</title>
		<imprint>
			<date type="published" when="2014">2014</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<monogr>
		<author>
			<persName><forename type="first">S</forename><surname>Amin</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Neumann</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Dunfield</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Vechkaeva</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Chapman</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><forename type="middle">K</forename><surname>Wixted</surname></persName>
		</author>
		<title level="m">Mlt-dfki at clef ehealth 2019: Multi-label classification of icd-10 codes with bert</title>
				<imprint>
			<publisher>CLEF</publisher>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<monogr>
		<author>
			<persName><forename type="first">J</forename><surname>Mullenbach</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Wiegreffe</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Duke</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Sun</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Eisenstein</surname></persName>
		</author>
		<idno type="DOI">10.18653/v1/N18-1100</idno>
		<title level="m">Explainable prediction of medical codes from clinical text</title>
				<imprint>
			<date type="published" when="2018">2018</date>
			<biblScope unit="page" from="1101" to="1111" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<monogr>
		<author>
			<persName><forename type="first">X</forename><surname>Huang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">B</forename><surname>Chen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Xiao</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Jing</surname></persName>
		</author>
		<idno type="arXiv">arXiv:1905.10070</idno>
		<title level="m">Label-aware document representation via hybrid attention for extreme multi-label text classification</title>
				<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<monogr>
		<title level="m" type="main">Generalized zero-shot icd coding</title>
		<author>
			<persName><forename type="first">C</forename><surname>Song</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Zhang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Sadoughi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Xie</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Xing</surname></persName>
		</author>
		<idno type="arXiv">arXiv:1909.13154</idno>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<monogr>
		<author>
			<persName><forename type="first">J</forename><surname>Devlin</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M.-W</forename><surname>Chang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Lee</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Toutanova</surname></persName>
		</author>
		<idno type="arXiv">arXiv:1810.04805</idno>
		<title level="m">Bert: Pre-training of deep bidirectional transformers for language understanding</title>
				<imprint>
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<monogr>
		<author>
			<persName><forename type="first">W</forename><forename type="middle">H</forename><surname>Organization</surname></persName>
		</author>
		<title level="m">International classification of diseases for oncology ( icd-o)-3rd edition</title>
				<imprint>
			<date type="published" when="2013">2013</date>
		</imprint>
	</monogr>
	<note>1st revision</note>
</biblStruct>

<biblStruct xml:id="b9">
	<monogr>
		<title level="m" type="main">Huggingface&apos;s transformers: State-of-the-art natural language processing</title>
		<author>
			<persName><forename type="first">T</forename><surname>Wolf</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Debut</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Sanh</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Chaumond</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Delangue</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Moi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Cistac</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Rault</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Louf</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Funtowicz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Brew</surname></persName>
		</author>
		<idno>ArXiv abs/1910.03771</idno>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">Unsupervised cross-lingual representation learning at scale</title>
		<author>
			<persName><forename type="first">A</forename><surname>Conneau</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Khandelwal</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Goyal</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Chaudhary</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Wenzek</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Guzmán</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Grave</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Ott</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Zettlemoyer</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Stoyanov</surname></persName>
		</author>
		<idno type="DOI">10.18653/v1/2020.acl-main.747</idno>
		<ptr target="http://dx.doi.org/10.18653/v1/2020.acl-main.747.doi:10.18653/v1/2020.acl-main.747" />
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics</title>
				<meeting>the 58th Annual Meeting of the Association for Computational Linguistics</meeting>
		<imprint>
			<date type="published" when="2020">2020</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<monogr>
		<author>
			<persName><forename type="first">Y</forename><surname>Liu</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Ott</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Goyal</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Du</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Joshi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Chen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">O</forename><surname>Levy</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Lewis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Zettlemoyer</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Stoyanov</surname></persName>
		</author>
		<idno type="arXiv">arXiv:1907.11692</idno>
		<title level="m">Roberta: A robustly optimized bert pretraining approach</title>
				<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
