<!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>Relation mining from clinical records</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Stefano Silvestri</string-name>
          <email>stefano.silvestri@icar.cnr.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>Anita Alicante, Anna Corazza, Francesco Isgr o` Department of Electrical Engineering and Information Technologies (DIETI) Universita` di Napoli Federico II via Claudio 21</institution>
          ,
          <addr-line>80125 Napoli</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute for High Performance Computing and Networking</institution>
          ,
          <addr-line>ICAR-CNR via P. Castellino, 111, 80131 Napoli</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>English. We propose a system to extract entities and relations from a set of clinical records in Italian based on two preceding works (Alicante et al., 2016b) and (Alicante et al., 2016a). This approach does not require annotated data and is based on existing domain lexical resources and unsupervised machine learning techniques.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>The digitization of medical documents in hospitals
has produced plenty of information which should
be adequately organized. While part of the
material, mainly including international scientific
publications, is in English, increasingly more
material is being created in the language of the country
of the medical institution. The main part of the
local language material is represented by patient
records. They contain important information not
only for preparing care plans or solve problems for
the particular patient, but also to extract statistics
useful for research and also for logistics
administration.</p>
      <p>
        Automatic processing of such repositories still
can not be straightforwardly applied. One of the
principal issues to be solved is the automatic
extraction of relevant information, usually consisting
in entities and relations connecting them
        <xref ref-type="bibr" rid="ref1 ref2">(Alicante
et al., 2016b)</xref>
        . In the cited work, we extensively
discuss a domain entity and relation recognition
system for Italian. Such step is at the basis of more
sophisticated analyses, including semantics-based
indexing of documents for improved retrieval,
advanced query based information extraction, and
the application of ontology-based strategies for
privacy protection.
      </p>
      <p>
        General tools, such as TextPro
        <xref ref-type="bibr" rid="ref8">(Pianta et al.,
2008)</xref>
        , are not adapted for technical domains such
as the medical one, as they are trained on generic
documents, rather than domain-specific ones.
Furthermore, a lot of tools are available for English
and only a few of them have been ported to Italian.
Another problem to take into account is the
occurrence, in clinical records, of typos and
nonstandard abbreviations, in addition to the most usual
acronyms. Last but not least, passing from text to
knowledge processing raises tricky privacy
problems. In fact, especially but not only in small
hospitals, obscuring the patient names is not sufficient
to hide their identity as the medical information
reported in records are often sufficient to reconstruct
a precise profiling of the patients.
      </p>
      <p>
        Therefore, ad hoc solutions represent the only
way to build effective applications to solve this
kind of problems. For example, not only domain
entities and relations can help identifying
potentially dangerous information, but also ontological
information can be exploited to better protect
patient privacy
        <xref ref-type="bibr" rid="ref3 ref6">(Bonatti and Sauro, 2013)</xref>
        . Again,
ontologies construction and population are based
on entity and relation extraction.
      </p>
      <p>Efforts to port systems to languages different
from English require, first of all, the development
of lexical resources for the considered language.
However, they are not sufficient, because of the
intrinsic differences between languages. A widely
adopted way to tackle such difficulties is
represented by machine learning approaches.</p>
      <p>Although supervised approaches are usually
more effective, they require large corpora of
annotated data, which are quite expensive to obtain,
as they require that domain experts invest time
in a long and tedious annotation activity. In the
medical domain, staff should invest part of their
precious time to annotate data with information
about the presence and the type of domain
relevant entities and relations in records to be used for
the training phase. Things would be much
easier if domain experts are only required to check
an automatically produced annotation. We
therefore propose to integrate a knowledge-based and
a text mining approaches to develop an
application which requires the expert intervention only to
check on medical and pharmaceutical labels
associated to groups of relations.</p>
      <p>
        More in detail, we propose here to integrate
the systems discussed in
        <xref ref-type="bibr" rid="ref1 ref2">(Alicante et al., 2016b)</xref>
        and in
        <xref ref-type="bibr" rid="ref1 ref2">(Alicante et al., 2016a)</xref>
        : the former adopts
domain dependent lexical resources to extract
entities and unsupervised machine learning
approaches to decide where relations occur in the
text. The latter clusters and labels the extracted
relations with an approach based on lexical
semantics.
      </p>
      <p>The paper is organized with Section 2
detailing the approach implementation and Section 3 for
conclusions and future works.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Proposed approach</title>
      <p>The framework proposed is composed by three
modules, and its logical structure is depicted in
Figure 1. The first one is devoted to domain entity
(i.e., medical and pharmaceutical entities)
identification and classification, and exploits domain
related lexical resources and standard natural
language tools. The second one is based on an
unsupervised machine learning approach, namely
clustering, to avoid the necessity of annotating data,
for the relation extraction. A potential relation is
hypothesized among all pairs of the entities
identified in the preceding phase. Clustering is then
applied to group similar entity pairs. Small
clusters indicate the lack of repetitive patterns and will
therefore be considered as entity pairs which are
not in relation to each other, while larger clusters
are likely to correspond to different relation types.</p>
      <p>
        Relations are clustered and labeled using the
approach proposed in
        <xref ref-type="bibr" rid="ref1 ref2">(Alicante et al., 2016a)</xref>
        . The
decision about how a relation can be labeled is
only based on the terms involved in the
corresponding entity pair, without considering the
context in which it occurs. In fact, this is
complementary with respect to the task of deciding whether
two entities are related, which should be decided
on the basis of the context where the two entities
occur, as in
        <xref ref-type="bibr" rid="ref1 ref2">(Alicante et al., 2016b)</xref>
        . On the other
hand, by considering only the two involved
entities, we can only decide the type of a relation.
Then, to decide whether the relation is stated or
negated, also the context should be considered in
the analysis.
      </p>
      <p>
        The third module of the framework is based on
Word Embeddings (WEs)
        <xref ref-type="bibr" rid="ref6">(Mikolov et al., 2013)</xref>
        to represent the words involved in each entity with
a real valued array. WEs most interesting
characteristic consists in the fact that the mutual
position of words in a metric space strongly depends
on their meanings, so that words having similar
semantics have large similarity, when this is
computed, for example, by cosine similarity.
Embeddings can be automatically built from a large
collection of unannotated text with a very efficient
algorithm. Therefore, they can be easily applied to
any language, in our case to Italian, provided that
enough texts are available. We used documents
extracted from Wikipedia for training. In
particular, we considered pages flagged as Medicine,
Biology and Pharmacy in Italian. For the extraction,
we used CatScan v3.01, Wikipedia Export tool2
and Wikiextractor3.
      </p>
      <p>
        For each entity, we then consider the
embeddings corresponding to each token. As shown
in
        <xref ref-type="bibr" rid="ref7">(Paperno and Baroni, 2016)</xref>
        , a good
representation for a string of words is given by the sum
of the corresponding WEs. However, as we do
not want that such representation depends on the
string length, we normalize the sum by the number
of words involved in the entity, obtaining the
average or centroid of the corresponding WEs. Each
pair of entities occurring in the same sentence
represents a possible candidate for a relation. We
therefore build the feature vector for each entity
pair by juxtaposing the average vectors for each
1https://tools.wmflabs.org/catscan2/
catscan2.php
      </p>
      <p>2https://en.wikipedia.org/wiki/
Special:Export</p>
      <p>3medialab.di.unipi.it/Project/
SemaWiki/Tools/WikiExtractor.py
*#"-%,'(&amp;3%$#&amp;$(
4"5&amp;-$#)
!"-',50
#)+$,-.$(</p>
      <p>*(%&amp;%2)*+%,$-%&amp;'(
!"#$%&amp;!'()*
')8!#733$( 9$::7&amp;-.$(</p>
      <p>
        97;$00-,3!
6$&lt;-=70!&gt;,&amp;-&amp;--$2
"?698!5!'@A*
entity and input this representation into a k-means
clustering
        <xref ref-type="bibr" rid="ref5 ref9">(Manning et al., 2008; Shalev-Shwartz
and Ben-David, 2014)</xref>
        .
      </p>
      <sec id="sec-2-1">
        <title>2.1 Input Preprocessing</title>
        <p>The text, processed by our system, is extracted
from anonymized medical records, in the form of
plain text encoded in UTF-8. The text includes
a small set of special characters, used as
delimiters and/or formatters. The largest part of these
medical records has been produced by an
HL7compatible information system. At the end of each
medical record, there is often an ICD9M
(International Standard for Encoding and Classifying
Diseases) disease code, which we disregard together
with the rest of the structured part of the records.</p>
        <p>The text is initially preprocessed for extracting
textual parts from the medical records, and to get
rid of non-textual characters. The plain text,
produced by this preprocessing step, is passed to the
natural language processing suite TextPro to
perform tokenization, sentence splitting, PoS tagging
and lemmatization.
2.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Entity Extraction</title>
        <p>Entity extraction is crucial for our analysis, and
a specific module has been implemented with the
goal of extracting entities which are relevant for
the application domain: biomedical and
pharmaceutical entities in our case. The module follows a
pattern matching approach by identifying each
occurrence of a number of PoS patterns in the input
text as a candidate to be further analysed.</p>
        <p>Afterwards, for each token occurring in the
identified pattern, we search for matches of the
corresponding lemma in the dictionaries. In case
of multi-word expressions, when several patterns
apply to overlapping strings of tokens, we apply
a greedy approach by choosing the longest one
matching the input.</p>
        <p>The output is produced following the TextPro
format, that is a line for each token, and a
column for each analysis level. In our system these
files are enriched by the information about
Medical and Pharmaceutical entities obtained from the
dictionaries provided by UMLS4 and PRB5. These
information are labeled as MED for the medical
entities, and FAR for the pharmaceutical ones (the
whole entity tag list is shown in the Table 1).</p>
        <p>In addition to a label indicating whether the
entity is medical (MED) or pharmaceutical (FAR),
we also add to each medical entity annotation the
sub-categories included in the UMLS database in
correspondence to the dictionary entry. The list of
sub-categories labels are summarized in Table 1.
A side-effect of such sub-categorization is that the
number of potential relations increases while it
becomes possible to find more specific relations.</p>
        <p>4Unified Medical Language System, http://www.
nlm.nih.gov/research/umls</p>
        <p>5Pharmaceutical Reference Book, officially mantained by
Agenzia Italiana del Farmaco
We apply the k-means approach that identifies
groups of relations of the same type appearing in
the data set. Each pair of entities occurring in the
same sentence identifies a potential relation,
therefore all possible entity pairs must be considered.
We then apply a clustering algorithm to the set of
all the potential relations identified. We will
disregard all entity pairs belonging to clusters having a
size smaller than a given threshold.</p>
        <p>
          We then concentrate on the remaining entity
pairs, which are likely to represent actual relations
and semantically cluster them. The approach
proposed for this is structured in three main modules:
Feature Construction, Clustering, and Cluster
Labeling. The first module builds a feature vector
based on WEs for each relation candidate; for
doing this, first it constructs a WE dictionary by
using a large collection of unannotated texts, in our
case extracted from Wikipedia. This module is
based on word2vec6
          <xref ref-type="bibr" rid="ref6">(Mikolov et al., 2013)</xref>
          . For
the feature vectors length we chose 500, which
is the default choice, and set the minimum word
count to 3, to exclude the less frequent words from
the dictionary, obtaining a set of 260; 680 vectors.
        </p>
        <p>After that, the k-means clustering is applied to
the set of feature vectors obtained by the first
module. For every entity pair we then construct a
Feature Vector (FV) starting from the WE of each
word involved. Each entity can be composed by
one or more words, as for example conati di
vomito: in this case, for each entity, we take the
average among the WEs of the words composing the
entity associated to the entity pair. Finally, we
concatenate the FVs of the two entities, obtaining
a FV of 1; 000 entries.</p>
        <p>
          The clustering algorithm is then applied to the
FV data set by means of the C Clustering
library
          <xref ref-type="bibr" rid="ref4">(de Hoon et al., 2004)</xref>
          , a fast C
implementation of the k-means algorithm. As the
kmeans is characterized by a random initial choice
of the seeds, we repeated each run 10 times,
always choosing the best solution. We considered
the cosine similarity, choosing a number of
clusters equal to 40, which seemed a reasonable choice
given the results from the experiments in
          <xref ref-type="bibr" rid="ref1 ref2">(Alicante
et al., 2016b)</xref>
          and in
          <xref ref-type="bibr" rid="ref1 ref2">(Alicante et al., 2016a)</xref>
          .
        </p>
        <p>Eventually, to label each cluster we ordered the
pairs in each cluster according to its cosine
simi6The software is freely available at https://code.
google.com/p/word2vec/
larity from the cluster centroid: the first four pairs
are then chosen to characterize the cluster.</p>
        <p>As discussed above, each FV can be partitioned
in two parts: the first half corresponds to the first
entity in the pair, the second one to the other.
Such partition is consistently maintained during
the whole processing. Also in the computation of
centroids in the k-means clustering algorithm, the
former half of each centroid derives from the
average of the former half of the involved FVs and
then corresponds to the first entity.
Correspondingly, the latter half of each centroid vector only
depends on the second entity of each involved pair.</p>
        <p>The choice of the cluster to which a given item
is assigned is based on the cosine similarity. Its
computation can be divided in three parts: the dot
product of the part of the two FVs corresponding
to the first entity, the same for the second entity
and eventually the normalization with respect to
the whole FV. Therefore, the evaluation of the
cosine similarity is based on a trade-off between how
similar are the first and the second entities in each
pair. In other words, they represent actual
entities pairs which are similar to the (abstract) cluster
representative, corresponding to the centroid.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions and future work</title>
      <p>In this paper we presented a system for the
extraction of information from clinical records in Italian.
A first part of the system aims to extract domain
relevant entities from medical reports by a pattern
matching approach. A second part takes the
output of the former step and applies a clustering
approach to explore possible relations between such
entities. A third part is based on WE and aims to
give cues about the type of the relations.</p>
      <p>Interestingly, the approach does not require
annotated data, but only easily available data such as
Wikipedia and off-the-shelf tools in addition to the
documents to process. Naturally, available tools
have been trained on annotated data, but without
any adaptation to the specific domain. It would
therefore be interesting to port it to a new
language, possibly different from English, which
represents the most widely studied among all
languages.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>The research presented in this paper was partially
supported by the national projects CHIS - Cultural
Heritage Information System (PON), and BIG4H
- Big Data Analytics for E-Health Applications
(POR).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>Anita</given-names>
            <surname>Alicante</surname>
          </string-name>
          , Anna Corazza, Francesco Isgro`, and
          <string-name>
            <given-names>Stefano</given-names>
            <surname>Silvestri</surname>
          </string-name>
          . 2016a.
          <article-title>Semantic cluster labeling for medical relations</article-title>
          .
          <source>In Proceeding of Innovation in Medicine and Healthcare</source>
          <year>2016</year>
          , pages
          <fpage>183</fpage>
          -
          <lpage>193</lpage>
          , Puerto de la Cruz, Tenerife, Spain. Springer.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Anita</given-names>
            <surname>Alicante</surname>
          </string-name>
          , Anna Corazza, Francesco Isgro`, and
          <string-name>
            <given-names>Stefano</given-names>
            <surname>Silvestri</surname>
          </string-name>
          . 2016b.
          <article-title>Unsupervised entity and relation extraction from clinical records in Italian</article-title>
          .
          <source>Computers in Biology and Medicine</source>
          ,
          <volume>72</volume>
          :
          <fpage>263</fpage>
          -
          <lpage>275</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Piero A.</given-names>
            <surname>Bonatti</surname>
          </string-name>
          and
          <string-name>
            <given-names>Luigi</given-names>
            <surname>Sauro</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>A confidentiality model for ontologies</article-title>
          .
          <source>In Harith Alani</source>
          , Lalana Kagal, Achille Fokoue, Paul T. Groth, Chris Biemann, Josiane Xavier Parreira, Lora Aroyo, Natasha F. Noy, Chris Welty, and Krzysztof Janowicz, editors,
          <source>International Semantic Web Conference (1)</source>
          , volume
          <volume>8218</volume>
          of Lecture Notes in Computer Science, pages
          <fpage>17</fpage>
          -
          <lpage>32</lpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Michiel J.L. de Hoon</surname>
            , Seiya Imoto, John Nolan, and
            <given-names>Satoru</given-names>
          </string-name>
          <string-name>
            <surname>Miyano</surname>
          </string-name>
          .
          <year>2004</year>
          .
          <article-title>Open source clustering software</article-title>
          .
          <source>Bioinformatics</source>
          ,
          <volume>20</volume>
          (
          <issue>9</issue>
          ):
          <fpage>1453</fpage>
          -
          <lpage>1454</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>C.D. Manning</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Raghavan</surname>
          </string-name>
          , and H. Schu¨tze.
          <year>2008</year>
          . Introduction to Information Retrieval. Cambridge University Press.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <given-names>Tomas</given-names>
            <surname>Mikolov</surname>
          </string-name>
          , Greg Corrado, Kai Chen, and
          <string-name>
            <given-names>Jeffrey</given-names>
            <surname>Dean</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>Efficient estimation of word representations in vector space</article-title>
          .
          <source>Proc. of the International Conference on Learning Representations (ICLR</source>
          <year>2013</year>
          ), pages
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <string-name>
            <given-names>Denis</given-names>
            <surname>Paperno</surname>
          </string-name>
          and
          <string-name>
            <given-names>Marco</given-names>
            <surname>Baroni</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>When the Whole is Less than the Sum of its Parts: How Composition Affects PMI Values in Distributional Semantic Vectors</article-title>
          .
          <source>Computational Linguistics</source>
          ,
          <volume>42</volume>
          (
          <issue>2</issue>
          ):
          <fpage>345</fpage>
          -
          <lpage>350</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>Emanuele</given-names>
            <surname>Pianta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Christian</given-names>
            <surname>Girardi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Roberto</given-names>
            <surname>Zanoli</surname>
          </string-name>
          .
          <year>2008</year>
          .
          <article-title>The TextPro Tool Suite</article-title>
          .
          <source>In Proceedings of the Sixth International Conference on Language Resources and Evaluation (LREC'08)</source>
          , pages
          <fpage>28</fpage>
          -
          <lpage>30</lpage>
          , Marrakech,
          <string-name>
            <given-names>Morocco. European</given-names>
            <surname>Language Resources Association (ELRA).</surname>
          </string-name>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Shai</given-names>
            <surname>Shalev-Shwartz and Shai</surname>
          </string-name>
          Ben-David.
          <year>2014</year>
          .
          <article-title>Understanding Machine Learning:</article-title>
          <source>From Theory to Algorithms</source>
          . Cambridge University Press, New York, NY, USA.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>