<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>As Simple as Possible: Using the R Tidyverse for Multilingual Information Extraction. IMS Unipd at CLEF eHealth 2020 Task 1</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Giorgio Maria Di Nunzio</string-name>
          <email>giorgiomaria.dinunzio@unipd.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. of Information Engineering</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dept. of Mathematics</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>University of Padua</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we report the results of our participation to the CLEF eHealth 2020 Task on \Multilingual Information Extraction". This task focuses on coding of medical textual data using the International Statistical Classi cation of Diseases and Related Health Problems (ICD) in Spanish. The main objective of our participation to this task is the study of reproducible experiments that use minimal e ort to be set up and run and that can be used as a baseline. The contribution of our experiments to this task can be summarized as follows: the implementation of a reproducible pipeline for text analysis that uses universal dependency parsing; an evaluation of simple classi ers based on perfect matches on di erent morphological levels together with a tf-idf approach.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        CLEF eHealth is an evaluation challenge in the medical domain where the goal is
to provide researchers with datasets, evaluation frameworks, and events. In the
CLEF eHealth 2020 edition [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], the organizers set up two tasks to evaluate
retrieval systems on di erent domains. In this paper, we report the results of our
participation to the CLEF eHealth Task 1 \Multilingual Information
Extraction" [2]. The 2020 task focuses on the evaluation of systems that automatically
code clinical textual data in Spanish with ICD codes. In this edition, we continue
our line of research that we have been following in the last two years [4, 3]: to
study and share reproducible systems that require minimal e ort to be run in
order to create useful baselines for the research community. In particular, we
participated in two of the three subtasks available: subtask 1, ICD10-CM codes
assignment to evaluate systems that predict ICD10-CM codes for the classi
cation of diseases; subtask 2 ICD10-PCS codes assignment to evaluate systems
that predict ICD10-PCS codes for the classi cation of medical procedures.
      </p>
      <p>The contribution of our experiments to this task can be summarized as
follows:
{ the implementation of a reproducible pipeline for text analysis;
{ an evaluation of simple classi ers based on perfect matches on di erent
lexical levels and a tf-idf approach.</p>
      <p>The remainder of the paper will introduce the methodology and a brief
summary of the experimental settings that we used in order to create the runs that
we submitted for the task.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Method</title>
      <p>In this section, we summarize the pipeline for text pre-processing which has
been developed in the last two years [4, 3] and has been extended and made
reproducible in this work. The source code used in these experiments will be
shared online.3 In general, our method follows the principles described by [?]
where the idea is to mine textual information from large text collections in an
e cient and e ective by means of organized work ows named pipelines. Pipelines
are an e ective way to manage the sequential process of text analysis by splitting
the source code into steps, where the output of one step is the input for the
subsequent step. The R programming language has an interesting set of packages
that follow this idea, named tidyverse, 4 that we will use in our experiments.</p>
      <p>Apart from being a tidy way of organizing software, an important advantage
in working with pipelines is that this practice promotes shareability and
reproducibility in research work ows which is one of the main pillars in the European
Open Science Cloud (EOSC). 5
2.1</p>
      <sec id="sec-2-1">
        <title>Pipeline for Data Cleaning</title>
        <p>In order to produce a dataset ready for training a classi er, we followed the same
pipeline for data ingestion and preparation for all the experiments. Instead of
using the tidytext approach,6 in this edition we tried the Universal Dependency
Parser implementation in R, udpipe, which automatically tokenizes, lemmatizes
and annotate text.7</p>
        <p>The following code summarizes all these steps:
u d p i p e a n n o t a t e ( o b j e c t = u d m o d e l s p a n i s h ,
x = t e x t ,
d o c i d = d o c i d x )
where udmodel spanish is the dependency parser for Spanish, text and doc id x
are the textual data and the identi er of each medical document in the dataset.
The idea of our approach is to transform each piece of text in order to have
3 https://github.com/gmdn
4 https://www.tidyverse.org
5 https://www.eosc-portal.eu
6 https://www.tidytextmining.com
7 https://bnosac.github.io/udpipe/en/index.html
three versions of it: the original tokenized version, the variant with all words
lemmatized, the variant with all words stemmed. The following lines take the
output of the udpipe step, annotated train, and add the stem version of each
token (and transform all text to lowercase):
where the %&gt;% symbol represents the usual \pipe" symbol (the output of a
function step is the input of the next function), and we used the Spanish Snowball
stemmer.
The main idea of our simple classi er is based on a memory-based approach
with an additional tf-idf weighting scheme. There is no di erence between the
two subtasks since the procedure is exactly the same:
{ choose the morphological level: token, lemma, stem;
{ given a sentence that has to be classi ed, search for any previously classi ed
document that contains that sentence;
{ add the classi cation label to the list of candidates;
{ assign the label with the majority of counts.</p>
        <p>Since this approach can, in principle, assign only labels that have already
been assigned in the past, we added two more steps to include more labels:
{ choose the morphological level: token, lemma, stem
{ given a sentence that has to be classi ed, search for any ICD-10 codes that
contains the sentence;
{ add the classi cation label to the list of candidates;
{ additionally, use a tf-idf to weigh the importance of each word in the
sentence;
{ assign the label with the largest weight.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experiments</title>
      <p>In this section, we brie y describe the setting of o cial runs that we
submitted for this task and the preliminary results sent by the organizers before the
workshop.</p>
      <p>le MAP P R F1
test D only token 0.449 0.373 0.652 0.474
test D only token lemma stem 0.391 0.306 0.672 0.420
test D only token lemma stem codiesp 0.389 0.299 0.682 0.416
test D t df only token lemma stem codiesp 0.395 0.079 0.699 0.143
test D t df only token lemma stem t df codiesp 0.392 0.081 0.709 0.145
test P only token 0.365 0.310 0.478 0.376
test P only token lemma stem 0.365 0.291 0.509 0.370
test P only token lemma stem codiesp 0.365 0.291 0.509 0.370
test P t df only token lemma stem codiesp 0.391 0.026 0.749 0.051
test P t df only token lemma stem t df codiesp 0.390 0.026 0.747 0.051
3.1</p>
      <sec id="sec-3-1">
        <title>Run Settings</title>
        <p>The goal of our experiments is to compare the e ectiveness of adding elements to
the classi er and study the di erence among them in a failure analysis (post-hoc
analysis).</p>
        <p>We submitted ve o cial runs for each subtask. The letter `X' in the following
description of the run can be substituted with either `D' or `P' according to the
subtask (Disease or Procedure):
{ test X only token: this run uses only a memory-based approach with tokens
(original words);
{ test X only token lemma stem: this run uses only a memory-based approach
with tokens, lemmas and stems;
{ test X only token lemma stem codiesp: the same as the previous one but we
add the description of the ICD-10 codes to the list of possible documents to
match
{ test X t df only token lemma stem codiesp: the same as the previous one,
but we add the tf-idf weights for the token, lemma and stems representation;
{ test X t df only token lemma stem t df codiesp: the same as the previous
one, but we add the tf-idf weights also for the token, lemma and stems
representation of the ICD-10 description.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Results</title>
        <p>A summary of the results for the two subtasks is shown in Table 1. The
performance achieved by the combination of elements changes signi cantly in both
subtasks. In general, the simplest classi er that uses only token achieves on
average the best performances across di erent measures. By adding elements to
the classi ers, such as lemmas, stems and tf-idf weighting, recall increases at the
expenses of precision.</p>
        <p>The important decrease of precision when tf-idf is used suggested an
additional investigation. In fact, we found a bug in the code that did not activate a
threshold on the number of labels retrieved. All the source code will be made
available online.8
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Final Remarks and Future Work</title>
      <p>The aim of our participation to the CLEF eHealth Task 1 was to test the
effectiveness of a simple textual pipeline implemented in R with the `tidyverse'
approach for the problem of classi cation of clinical textual data. In this task,
participants are required to label with ICD-10 codes related to treatment and
procedures of health-related documents with the focus on the Spanish language.
We tackled this task by focusing on reproducibility aspects, as we did the
previous years; this time, we tried a variation of our approach moving from a frequency
based classi cation approach [3, 4] to a sort of memory-based classi cation by
nding perfect matches of previously based classi ed clinical notes using
different lexical variants. This variation was inspired by the baseline produced by
organizers of the CLEF 2018 eHealth task [?]. In addition, we included a tf-idf
approach to analyze whether the inverse document frequency can help in the
classi cation task.</p>
      <p>At the time of writing, we do not have a way to compare our results with
those of the other participants, and the comparison with previous years would
be useless since the collection of documents is completely di erent. However, in
the preliminary analysis, we found that the token based classi cation achieved
the best results both in terms of classi cation (F1) and retrieval (MAP) for the
disease classi cation subtask. It was interesting to see that the mixed approach
with tf-idf weights performed better in terms of retrieval (MAP) in the procedure
classi cation subtask despite a very low classi cation score due to an extremely
low precision. A preliminary failure analysis showed that the code had a bug that
did not allow to weigh and select correctly the labels for the tf-idf approach.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>This work was partially supported by the ExaMode Project, as a part of the
European Union Horizon 2020 Program under Grant 825292.
8 https://github.com/gmdn
2. Antonio Miranda-Escalada, Aitor Gonzalez-Agirre, Jordi Armengol-Estape, and
Martin Krallinger. Overview of automatic clinical coding: annotations, guidelines,
and solutions for non-english clinical cases at codiesp track of CLEF eHealth 2020.
In Working Notes of Conference and Labs of the Evaluation (CLEF) Forum, CEUR
Workshop Proceedings, 2020.
3. Giorgio Maria Di Nunzio. Classi cation of ICD10 codes with no resources but
reproducible code. IMS unipd at CLEF ehealth task 1. In Working Notes of CLEF
2018 - Conference and Labs of the Evaluation Forum, Avignon, France, September
10-14, 2018., 2018.
4. Giorgio Maria Di Nunzio. Classi cation of animal experiments: A reproducible
study. IMS unipd at CLEF ehealth task 1. In Linda Cappellato, Nicola Ferro,
David E. Losada, and Henning Muller, editors, Working Notes of CLEF 2019
Conference and Labs of the Evaluation Forum, Lugano, Switzerland, September
912, 2019, volume 2380 of CEUR Workshop Proceedings. CEUR-WS.org, 2019.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Lorraine</given-names>
            <surname>Goeuriot</surname>
          </string-name>
          , Hanna Suominen, Liadh Kelly, Antonio Miranda-Escalada, Martin Krallinger, Zhengyang Liu, Gabriella Pasi, Gabriela Saez Gonzales, Marco Viviani, and
          <string-name>
            <given-names>Chenchen</given-names>
            <surname>Xu</surname>
          </string-name>
          .
          <article-title>Overview of the CLEF eHealth evaluation lab 2020</article-title>
          . In Avi Arampatzis, Evangelos Kanoulas, Theodora Tsikrika, Stefanos Vrochidis, Hideo Joho, Christina Lioma, Carsten Eickho , Aurelie Neveol, and Linda Cappellato andNicola Ferro, editors,
          <source>Experimental IR Meets Multilinguality, Multimodality, and Interaction: Proceedings of the Eleventh International Conference of the CLEF Association (CLEF</source>
          <year>2020</year>
          ) , LNCS Volume number:
          <volume>12260</volume>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>