<!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>ExSim at eHealth-KD Challenge 2020</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Zainab H. Almugbel</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Imam Abdulrahman Bin Faisal University</institution>
          ,
          <addr-line>P.O.Box 1982, Dammam</addr-line>
          ,
          <country country="SA">Saudi Arabia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Leeds</institution>
          ,
          <addr-line>Leeds, LS2 9JT</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <fpage>94</fpage>
      <lpage>101</lpage>
      <abstract>
        <p>This paper describes the system submitted to the eHealth-KD Challenge 2020-Task A: entity recognition. The system utilizes a supervised learning methodology to recognize entities within Spanish texts; namely, it applies NLP and word2vec techniques to create a unique labeled dictionary of entities in the training set. These labels are propagated into new entities that are found in the testing set via semantic similarity measurement. The simplicity of our system shows low performance with F1=0.32, precision= 0.29, and recall=0.34. Finally, the system is discussed from diferent aspects: challenges, earlier attempts, current system's characteristics, and possible future work.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;entity recognition</kwd>
        <kwd>NLP</kwd>
        <kwd>word2vec</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Entity recognition (ER) plays vital role in analyzing unstructured texts. ER is utilized in several
domains for diferent applications, such as information retrieval and recommendation systems;
specifically, ER is widely utilized to recognize health related entities in healthcare domain, e.g.,
diseases and drugs names [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        Because ER is widely applied, research propose several approaches to deal with this problem.
These approaches can be categorized into two sections. The first section is called the supervised
learning approaches. They require a training set, such as applying classifiers on annotated
words [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The second section is called the unsupervised learning approaches. They require
statistical models, such as classifying entities based on TF-IDF schema [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        The eHealth-KD 2020 Task A [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] aims at recognizing entities in unstructured Spanish health
sentences that are taken from Medline. This paper proposes a supervised learning approach to
tackle the ER problem. This means training a given annotated text (training set) to recognize and
label entities in new text (testing set). Our approach is motivated by the theory that defines the
language as a bag of labelled entities [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and the research that states the importance of measuring
the similarity of meanings (semantic similarity) among these entities in both linguistics field
and classification task [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        In the research [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], semantic similarity is utilized to learn how to identify verbs of diferent
tenses or the capitals of countries. This means that if the label of an entity is given, it can be
assigned to new similar entity. For instance, if the country’s label is “noun” in the capitals
of countries example, this label can be also assigned into the capital’s label. Hence, semantic
similarity can identify entities that belong to same label. However, one obvious drawback of
this approach is that it requires large amount of training data to minimize the possibility of
“word out of vocabulary” error.
      </p>
      <p>Based on that, ER problem can be treated as a classification problem. The classes are the
entities’ labels that are taken from the training set; they are assigned to one of the following
values: concept, action, predicate, and reference. The semantic similarity measurement can be
employed as the classifier. It labels the new entities according to their similarity measurement
to the exist entities. Each new entity is labelled by the label of the entity with the highest
similarity score.</p>
      <p>
        Thus, the system’s inputs are: 1. the annotated texts that include the entities and their labels,
and 2. the target unstructured text that includes unlabelled entities. The system’s output is the
predicated labels of the identified entities that exist within the target unstructured text. Each
entity has only one label. In order to identify entities and predict their labels, the system applies
NLP [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] for text cleaning, and word embeddings [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] for representing entities as numerical
vectors. Then, it calculates the cosine similarity among these vectors to measure their semantic
similarity.
      </p>
      <p>The rest of the paper presents the system description in Section 2, followed by the results
in Section 3. Then, the discussion is disclosed in section 4. Finally, the conclusion is stated in
section 5.</p>
    </sec>
    <sec id="sec-2">
      <title>2. System Description</title>
      <p>This section mainly explains the system. We propose a simple idea for identifying the medical
entities. It is about using NLP and word2vec to create a dictionary that contains distinct entities
with their labels from the training set based on similarity measurement. After Algorithm 1
creates this dictionary, it is utilized to annotate the entities of the sentences in the testing
set. More detail about the system is discussed next. It is organized in three subsections for
clarification purposes: algorithm, text cleaning and word embeddings.</p>
      <sec id="sec-2-1">
        <title>2.1. The Algorithm</title>
        <p>In this part, the algorithm is presented, and its main parameters and variables are explained.
end
preprocess(s);
for each token t in s do
score=model.similarity(t,K);
if score&gt;0 then
if t not in testedTokens then
testedTokens.append([t, score, L]);
else if current score &gt; stored score then</p>
        <p>testedTokens.update([t, current score, current L])
Algorithm 1 consists of three lists that require clarification:
• keyphrases is a nested list that contains each entity and its annotated label. For instance,
  is the entity and   is its label, where the label is one of four possible values (concept,
predicate, reference, action).
• TrainingList is also a nested list that contains the entities of sentences.   is the
entity j of the sentence i; where i is for the sentences and j is for the entities within a
sentence, e.g.  11 is the first entity in the first sentence.
• TestedTokens list contains a list of three elements [  ,   ,   ]. Each list’s element
is unique because each entity   must have at most one label   .</p>
        <p>1. The first element   is an entity that is taken from the testing set.</p>
        <sec id="sec-2-1-1">
          <title>2. The second element</title>
          <p>entity K.</p>
          <p>is the similarity measurement score between   and the</p>
        </sec>
        <sec id="sec-2-1-2">
          <title>3. The third element   is the predicted label for   .</title>
          <p>Both pre-processing and model are explained in the next subsections.</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Text Cleaning</title>
        <p>
          In this system, text cleaning is applied only on the testing set. This is because the model is
directly trained on the TrainingList that contains the annotated entities of the sentences in
lower case letters. The preprocess function is applied to the sentences in the testing set. It
employs Natural Language Toolkit (NLTK) to clean each sentence by removing punctuation,
any entities with parenthesis, and stop words [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. Then, it splits the sentence into a list of
entities in lower case letters.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Word Embeddings</title>
        <p>
          The system employs Gensim library to apply word2vec [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] model for word embeddings and
similarity measurement. First, the model is trained on the list: TrainingList with the following
Hyper-parameters:
• size=100: it is the dimensional size of the vectors that represent the entities.
• window=5: it is the maximum distance between the current and predicted entity within
a sentence.
• min_count=5: it is the minimum considered frequency of entities in the training model.
• workers=10: it is the number of threads to be used by the training model
• skip-gram model is used in the training model.
        </p>
        <p>• epochs=20: it is the number of the iterations over the training set.</p>
        <p>Second, the model calculates the cosine similarity between an entity from the training set and
an entity from the testing set. A threshold value is not considered because the system assigns
the label of the highest similar labelled entity for each entity.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
    </sec>
    <sec id="sec-4">
      <title>4. Discussion</title>
      <p>This section reports the teams performance in the selected task; specifically, Figure 1 shows
the results of our system for both development and testing sets. Figure 2 shows the results for
all participating teams in the same task. In general, one can notice that our system failed to
identify entities. This might be because the model is limited by the entities of the training set.
This section illustrates the challenges that we faced to participate in this competition, some
earlier attempts to improve the system and the current system characteristics.</p>
      <p>First, two of the top most challenges were the language and the computing resources. First,
the language barriers could be from two aspects: personal and technical. In the personal side,
some translations had to be carried out to understand some entities because we are not familiar
with Spanish. In the technical side, when we tried to implement the system from scratch, we
had a problem with writing on the output files. The system shows results on the console but
the output files are empty. After the failure of several attempts to solve this encoding problem,
this earlier implementation was neglected, and eHealth-KD 2020’s baseline was utilized instead.
Second, the system utilized the followings computing resources: i7-6500 CPU 2.50GHz and 8GB
RAM. These resources had limitations from two sides: the run time and the memory capacity,
as discussed in the second and third points.</p>
      <p>
        Second, the earlier attempts to improve the system include the followings:
• FastText [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] was applied for word embeddings but it produced fake similarity measurement
scores for most entities. This caused labelling most entities with one label ,e.g. concept.
We modified its hyper-parameters to check how this might influence the similarity scores
but the scores were not improved. Therefore, it is replaced with word2vec that gives more
reliable scores. The main purpose of using FastText is because it works on characters’
level. This could facilitate identifying the entities that share specific number of characters,
which in turn improve matching similar entities of diferent lengths.
• In another earlier attempt, both uni-grams and bi-grams were considered but this was
also canceled because it did not improve the system performance. The following steps
clarify our approach for measuring the semantic similarity among the bi-grams:
1. The bi-grams (Training phrases) with their labels are extracted from the training
set.
2. A list of the possible bi-grams (Testing phrases) for each sentence is created from
the testing set.
3. The semantic similarity between the entities of training phrases and testing phrases
are aggregated; then, it is averaged.
4. The value of the training phrase’s label is assigned to the testing phrase’ label based
on the highest average score.
• Using external trained model [10] was also considered but the system run into “out of
memory” error.
      </p>
      <p>Third, the current system characteristics are as follows:
• The last version of the system has not considered POS tagging and word lemmatization.
• The last model’s hyper-parameters are set after several modifications:
– The min_count parameter has been tested for the values 1 to 5. The value 5 is
chosen. Although this causes skipping some entities, it decreases the run time to 12
hours.
– Other parameters have been also tested for diferent values but we have not observed
any improvement in the system. These include the following parameters:
∗ size was tested for the values 60-300.
∗ workers was tested for the values 5-10.</p>
      <p>∗ epochs was tested for the values 10-20</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>This paper presents the system that is implemented to deal with the entity recognition task. It
is based on NLP and word embeddings techniques. Since the system has low performance, it
requires improvements from diferent aspects. First, better computing resources is recommended.
This brings many benefits to the system: 1. lowering the system’s running time, and 2. enabling
the usage of pre-trained models and external resources. Second, POS tagging should be applied
to remove none important words. Third, conducting a literature review is encouraged. This
supports getting the advantage of high performance previous ER techniques.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>We thank the organizers and the reviewers of the eHealth-KD 2020. Special thanks go to the
supervisors Prof. Eric Atwell for his valuable suggestions, and Dr. Mohammad Ammar Alsalka
for his helpful comments.
[10] E. Grave, P. Bojanowski, P. Gupta, A. Joulin, T. Mikolov, Learning word vectors for 157
languages, in: Proceedings of the International Conference on Language Resources and
Evaluation (LREC 2018), 2018.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>I. J.</given-names>
            <surname>Unanue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. Z.</given-names>
            <surname>Borzeshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Piccardi</surname>
          </string-name>
          ,
          <article-title>Recurrent neural networks with specialized word embeddings for health-domain named-entity recognition</article-title>
          ,
          <source>Journal of biomedical informatics 76</source>
          (
          <year>2017</year>
          )
          <fpage>102</fpage>
          -
          <lpage>109</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Florian</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ittycheriah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Jing</surname>
          </string-name>
          , T. Zhang,
          <article-title>Named entity recognition through classifier combination</article-title>
          ,
          <source>in: Proceedings of the seventh conference on Natural language learning at HLT-NAACL 2003-Volume</source>
          <volume>4</volume>
          , Association for Computational Linguistics,
          <year>2003</year>
          , pp.
          <fpage>168</fpage>
          -
          <lpage>171</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , N. Elhadad,
          <article-title>Unsupervised biomedical named entity recognition: Experiments with clinical and biological texts</article-title>
          ,
          <source>Journal of biomedical informatics 46</source>
          (
          <year>2013</year>
          )
          <fpage>1088</fpage>
          -
          <lpage>1098</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Piad-Morfis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gutiérrez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Cañizares-Diaz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Estevez-Velarde</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Almeida-Cruz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Muñoz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Montoyo</surname>
          </string-name>
          ,
          <article-title>Overview of the ehealth knowledge discovery challenge at iberlef 2020, in: Proceedings of the Iberian Languages Evaluation Forum (IberLEF</article-title>
          <year>2020</year>
          ),
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>V.</given-names>
            <surname>Burr</surname>
          </string-name>
          ,
          <article-title>An introduction to social constructionism</article-title>
          ,
          <source>Routledge</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Jatnika</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Bijaksana</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Suryani</surname>
          </string-name>
          ,
          <article-title>Word2vec model analysis for semantic similarities in english words</article-title>
          ,
          <source>Procedia Computer Science</source>
          <volume>157</volume>
          (
          <year>2019</year>
          )
          <fpage>160</fpage>
          -
          <lpage>167</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bird</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Klein</surname>
          </string-name>
          , E. Loper,
          <article-title>Natural language processing with Python: analyzing text with the natural language toolkit, "</article-title>
          <string-name>
            <surname>O'Reilly Media</surname>
          </string-name>
          ,
          <source>Inc."</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>R.</given-names>
            <surname>Řehůřek</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sojka</surname>
          </string-name>
          ,
          <article-title>Software Framework for Topic Modelling with Large Corpora</article-title>
          ,
          <source>in: Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks</source>
          ,
          <string-name>
            <surname>ELRA</surname>
          </string-name>
          , Valletta, Malta,
          <year>2010</year>
          , pp.
          <fpage>45</fpage>
          -
          <lpage>50</lpage>
          . http://is.muni.cz/publication/884893/en.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>P.</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Grave</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Joulin</surname>
          </string-name>
          , T. Mikolov,
          <article-title>Enriching word vectors with subword information</article-title>
          ,
          <source>arXiv preprint arXiv:1607.04606</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>