<!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>UA.PT Bioinformatics at ImageCLEF 2019: Lifelog Moment Retrieval based on Image Annotation and Natural Language Processing</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ricardo Ribeiro</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonio J. R. Neves</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jose Luis Oliveira</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IEETA/DETI, University of Aveiro</institution>
          ,
          <addr-line>3810-193 Aveiro</addr-line>
          ,
          <country country="PT">Portugal</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The increasing number of mobile and wearable devices is dramatically changing the way we can collect data about a person's life. These devices allow recording our daily activities and behavior in the form of images, video, biometric data, location and other data. This paper describes the participation of the Bioinformatics group of the Institute of Electronics and Engineering Informatics of University of Aveiro in the ImageCLEF lifelog task, more speci cally in the Lifelog Moment Retrieval sub-task. The approach to solve this sub-task is divided into three stages. The rst one is the pre-processing of the lifelog dataset for a selection of the images that contain relevant information in order to reduce the amount of images to be processed and obtain additional visual information and concepts from the ones to be considered. In the second step, the query topics are analyzed using Natural Languages Processing tools to extract relevant words to retrieve the desired moment. This words are compared with the visual concepts words, obtained in the pre-processing step using a pre-trained word2vec model, to compute a con dence score for each processed image. An additional step is used in the last two runs, in order to include the images not processed in the rst step and improve the results of our approach. A total of 6 runs were submitted and the results obtained show an evolution with each submission. Although the results are not yet competitive with other teams, this challenge is a good starting point for our research work. We pretend to continue the development of a lifelogging application in the context of a research project, so we expect to participate in the next year in the ImageCLEFlifelog task.</p>
      </abstract>
      <kwd-group>
        <kwd>lifelog</kwd>
        <kwd>moment retrieval</kwd>
        <kwd>image processing</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>In the past few years, with the increase of wearable and smart technologies,
the term lifelogging has received signi cant attention from both research and
commercial communities. There is no general de nition for lifelogging, but an
appropriate de nition is given by Dodge and Kitchin [3] as \a form of pervasive
computing, consisting of a uni ed digital record of the totality of an individuals
experiences, captured multi-modally through digital sensors and stored
permanently as a personal multimedia archive" [4]. In a simple way, lifelogging is the
process of tracking and record personal data created by our activities and
behaviour.</p>
      <p>The number of workshops and tasks for research has increased over the last
few years and among them are the main tasks of ImageCLEF 2019 lab [6]:
lifelogging, medicine, nature, and security. The lifelogging task aims to bring
the attention of lifelogging to an as wide as possible audience and to promote
research into some of the key challenges of the coming years [2].</p>
      <p>Our motivation for this work is the great potential that personal lifelogs
have in numerous applications, including memory and moments retrieval, daily
living understanding, diet monitoring, or disease diagnosis, among others. For
example: in Alzheimer's disease, people have memory problems and using a
lifelog application the person with the disease can be followed by a specialist or
can help the person to remember certain moments or activities of her last days
or months.</p>
      <p>This paper is organized as follows: the paper starts with an introductory
section. Section 2 provides a brief introduction to the ImageCLEF lifelog and
the sub-task Lifelog Moment Retrieval. The proposed approach used in our best
run is described in Section 3. In Section 4, the results of all submitted runs
obtained in the LMRT sub-task are presented and described the di erences of
each run compared to the implementation of our best result. Finally, a summary
of the work presented in this paper, concluding remarks, and the future work
are presented in Section 5.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Task Description</title>
      <p>
        The ImageCLEFlifelog 2019 task [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] is divided into two di erent sub-tasks: the
Lifelog moment retrieval (LMRT) and the Puzzle sub-task. In this work, we only
addressed the LMRT sub-task, as a starting point for a research work that we
intend to develop with the aim of helping in some problems that exist around
the world.
      </p>
      <p>
        In the LMRT sub-task, the participants have to retrieve a number of speci c
prede ned activities in a lifelogger's life. For example, they should return the
relevant moments for the query \Find the moment(s) when I was shopping".
Particular attention should be paid to the diversi cation of the selected moments
with respect to the target scenario. The ground truth for this sub-task was
created using manual annotation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        ImageCLEFlifelog dataset is a completely new rich multimodal dataset which
consists of 29 days of data from one lifelogger, namely: images (1,500-2,500 per
day from wearable cameras), visual concepts (automatically extracted visual
concepts with varying rates of accuracy), semantic content (semantic locations,
semantic activities) based on sensor readings (via the Moves App) on mobile
devices, biometrics information (heart rate, galvanic skin response, calorie burn,
steps, continual blood glucose, etc.), music listening history, computer usage
(frequency of typed words via the keyboard and information consumed on the
computer via ASR of on-screen activity on a per-minute basis) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. However, In
this work we use the images, the visual concepts and the semantic content of the
dataset.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Proposed Method</title>
      <p>In this sub-task, we submitted 6 runs. Although our results have a lower
F1measure@10 in the test topics, this sub-task has become a good starting point
for our research work in lifelog. In this section, we present the proposed approcah
used in the last submission (run 6 of Table 1) that was our best result. However,
some more details about the other runs are mentioned in Section 3.</p>
      <p>The nal approach used to the LMRT task is divided into three stages,
respectively:
{ Pre-Processing: The large amount of data (images) are analyzed and some
images images are excluded based on a low-level image analysis algorithm
proposed by the authors in order to reduce the search time that will be
needed to analyze each topic. The images that are considered to be valuable
are then processed using several state-of-art algorithms to extract
information from the images.
{ Retrieval: The relevant words of the query topic are extracted using tools
of Natural Language Processing (NLP). These words are compared with the
information obtained from the images in the pre-processing stage, through
a state-of-art model used to produce word embedding. Finally, we assign a
score to each analyzed image for the query topic.
{ Post-Processing: Images that were skipped in the pre-processing step are
reused depending on a de ned distance from the images selected in the
retrieval step in order to ful ll with the goal of the sub-task, where all the
images was used and annotated.
3.1</p>
      <sec id="sec-3-1">
        <title>Pre-Processing</title>
        <p>We consider the pre-processing of the image dataset in a lifelogging
application a very important stage, in order to select the relevant images and reduce
the processing time and the errors in the annotation, extracting only relevant
information from the lifelog images.</p>
        <p>In this step, we proposed a method for automatic selection of the lifelog
images that contain relevant information using a blur/focus measure operator,
called modi ed Laplacian. We use this method to extract low-level features and
machine learning algorithms, namely k-nearest neighbors, to classify these
features and decide if an image is valuable in this context. Figure 1 shows a block
diagram presenting the steps used in the proposed method. This proposal is
described in a manuscript submitted by the authors but not yet published.</p>
        <p>Images that are not selected in this step are not processed in the retrieval
step, and can be reused in the post-processing step to ful ll with the sub-task
expected results.</p>
        <p>In a lifelogging application, the most important characteristics that we can
extract from images are the objects and the elements that a certain environment
contains. Some content of the selected images were extracted using the label
detection of Google Cloud Vision API, YoloV3 [8] and the information provided
by the organizers (location, activity and visual concepts). The data associated
with each image is stored into JSON les of each day of the lifelogger.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Retrieval</title>
        <p>In the retrieval step the images are selected according to the query topic
entered for the desired moment search. We use the SpaCy library [5] to analyze
the topic narrative and extract relevant words. These words are divided into
ve categories, among them \activities", \locations", \relevant things", \other
things", and \other words".</p>
        <p>In order to assign words to each category we de ne some linguistic rules,
such as semantic and syntactic rules. Semantic rules build the meaning of the
sentence from its words and how words combine syntactically. Syntax refers to
the rules that govern the ways in which words combine to form phrases, and
sentences. For example: if the sentence has an auxiliary verb, the main verb
usually corresponds to an activity and the words that follow the main verb
may be things or locations involved in this activity. Figure 2 presents linguistic
annotations generated by SpaCy library for topic number 10 narrative of the
test topics. The words extracted from this topic are "attending", "meeting" and
"China", and then divided into the categories \activities", \relevant things" and
\locations", respectively.</p>
        <p>A comparison is made between the words extracted from the narrative of
the query topic and the concept words of each image selected in pre-processing,
using a word2vec pre-trained model. We used a model trained on part of Google</p>
        <p>News dataset (about 100 billion words). This model contains 300-dimensional
vectors for 3 million words and phrases. The gensim libary [9] allows us to load
the word2vec model and compute the cosine similarity between words.</p>
        <p>For each category de ned previously we have a similarity (values from 0 to
1). As the concepts that we have for each image are not very large and accurate
to decide if the image correspond to the query topic or not, we use the sequence
of images in a certain distance of the image that is being analyzed and their
similarities to assign a score to the category of those words. These categories
have di erent weights associated (the sum of all categories weight is equal to 1),
therefore, the con dence score of each image is computed using these weights
and the scores of categories.</p>
        <p>Finally, we determine a general threshold to select the images for the query
topics. Images with con dence score above the threshold are selected for the
query topic.
In the last step, some images that were not analyzed in the pre-processing step
are reused to increase the performance of the result images for each topic. Thus,
the images between two selected images in the retrieval step, are re-selected if the
sequential distance between these two images doesn't exceed a certain threshold
obtained experimentally.</p>
        <p>Figure 3 shows three images selected for query topic number 10 as nal output
of the proposed approach. The image (b) was rejected in the pre-processing stage
and the images (a) and (b) were selected in the retrieval stage. Then, in the
postprocessing stage, since image (b) is sequentially between the images (a) and (b),
image (b) was reselected.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>We submitted 6 runs on the LMRT sub-task. In this sub-task, the nal score
is computed as an arithmetic mean of all queries. The ranking metrics was the
F1-measure@10, which gives equal importance to diversity (via CR@10) and
relevance (via P@10), Cluster Recall and Precision at top 10 results, respectively.
(a) u1 20180523 0022 i05</p>
      <p>We describe the last submission (run 6) in Section 3 and the other
submissions follow the same pre-processing approach. However, we made changes in the
retrieval step and added the post-processing step in the implementation of the
other submissions. The post-processing step was only implemented in the two
last submissions (run 5 and run 6).
4.1</p>
      <p>Run 1
In the rst submission (run 1), the query topic is analyzed using the title and
narrative. From the title, stop words have been removed using the scikit-learn
tools [7]. From the narrative, the nouns and the main verbs associated to an
auxiliary verb were extracted using the SpaCy library [5] without rules. Then,
we used the same word2vec model, described for run 6, to obtain the similarity
of the topic words and concept words extracted in pre-processing step.</p>
      <p>In this run, the topic words were not divided into categories. We check if the
topic words had a similarity above a threshold and if two or more topic words
score above that threshold. In this case, the sequence of images in a certain
distance is selected. The con dence score is the same for all selected images.
4.2</p>
      <p>Run 2
4.3</p>
      <p>Run 3
4.4</p>
      <p>Run 4
4.5</p>
      <p>Run 5
In the second submission (run 2), we used the same approach of the run 1,
however in the query topic analysis we only used the title.</p>
      <p>In this submission we only analyze the narrative of the query topic and we
de ne linguistic rules to extract relevant words. The words were divided into
four categories, that is, the same categories of run 6 but without the \other
words" category. We check if the words in the categories had a similarity above
a threshold and if two or more scores of the categories are above that threshold.
In this case, the sequence of images is selected. The con dence score is assigned
by the number of categories that had the score above that threshold.
This submission follows the same approach of run 3, however some thresholds
were adjusted and it is used the fth category described in the run 6.
In this submission, we reorganize the implementation of the run 4 and we de ned
di erent weights for each category of words in order to calculate the con dence
score of each image. Then, we added the post-processing step to our
implementation.
4.6</p>
      <sec id="sec-4-1">
        <title>UA.PT Bioinformatics Results</title>
        <p>
          The results obtained are shown in Table 1, along with the best result in this
task, for comparison. The results of all participating team can be found in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
We can observe that our results are still far from the best ones on this task but
we consider that our rst participation in the ImageCLEF lifelog 2019 was an
excellent starting point for our research work. Moreover, the best team already
participated in the past.
        </p>
        <p>One of the main problems in our approaches is the low information and
visual concepts extracted from the images of the lifelog data, for example the
word \toyshop" never appears associated to an image. For this reason, half of
the analyzed query topics did not obtain any result in the evaluation metrics.
Using other state-of-art algorithms and API's to obtain a more rich description
of the images may increase the performance.</p>
        <p>Some visual concepts of the images are in form of bigrams or trigrams, for
example \electronic device", \ice cream", \cell phone", \car interior", among
others. As in our approach we only compute cosine similarity between two words,
some of the visual concepts are lost and the result of our approaches decrease.
In order to solve this problem, the identi cation of bigrams and trigrams is one
of the future implementations for our application.</p>
        <p>Another way to increase the performance of our work is the development of
new linguistic rules, in order to analyze the description of the query topic and
obtain more information for the retrieval step. For example: identify negative
sentences and exclude some objects or environments that are not relevant.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion and Future Work</title>
      <p>The Lifelog Moment Retrieval (LMRT) sub-task of ImageCLEF lifelog 2019
was an excellent starting point for our research work in lifelogging. Although
our results have a low score in this sub-task, we observe an evolution in each
submitted run. After these results, our goal is to continue the development and
improvement of our implementation.</p>
      <p>For future work, we intend to do more state-of-art research for the recognition
of visual concepts and text mining methods. In order to develop an e cient
application, we are going to create ontologies for daily activities and create
hierarchical relationships for the words that can appear in the visual concepts.</p>
      <p>Developing a user interface is also one of our priorities for user interaction
and visualization of search results.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>Supported by the Integrated Programme of SR&amp;TD SOCA (Ref.
CENTRO01-0145-FEDER-000010), co-funded by Centro 2020 program, Portugal 2020,
European Union, through the European Regional Development Fund.
2. Dang-Nguyen, D.T., Piras, L., Riegler, M., Zhou, L., Lux, M., Gurrin, C.: Overview
of imagecle ifelog 2018: daily living understanding and lifelog moment retrieval.
In: CLEF2018 Working Notes. CEUR Workshop Proceedings, CEURWS. Avignon,
France (2018)
3. Dodge, M., Kitchin, R.: 'outlines of a world coming into existence': pervasive
computing and the ethics of forgetting. Environment and planning B: planning and
design 34(3), 431{445 (2007)
4. Gurrin, C., Smeaton, A.F., Doherty, A.R., et al.: Lifelogging: Personal big data.</p>
      <p>Foundations and Trends R in Information Retrieval 8(1), 1{125 (2014)
5. Honnibal, M., Montani, I.: spacy 2: Natural language understanding with bloom
embeddings, convolutional neural networks and incremental parsing. To appear (2017)
6. Ionescu, B., Muller, H., Peteri, R., Cid, Y.D., Liauchuk, V., Kovalev, V., Klimuk, D.,
Tarasau, A., Abacha, A.B., Hasan, S.A., Datla, V., Liu, J., Demner-Fushman, D.,
Dang-Nguyen, D.T., Piras, L., Riegler, M., Tran, M.T., Lux, M., Gurrin, C., Pelka,
O., Friedrich, C.M., de Herrera, A.G.S., Garcia, N., Kavallieratou, E., del Blanco,
C.R., Rodr guez, C.C., Vasillopoulos, N., Karampidis, K., Chamberlain, J., Clark,
A., Campello, A.: ImageCLEF 2019: Multimedia retrieval in medicine, lifelogging,
security and nature. In: Experimental IR Meets Multilinguality, Multimodality, and
Interaction. Proceedings of the 10th International Conference of the CLEF
Association (CLEF 2019), LNCS Lecture Notes in Computer Science, Springer, Lugano,
Switzerland (September 9-12 2019)
7. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O.,
Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A.,
Cournapeau, D., Brucher, M., Perrot, M., Duchesnay, E.: Scikit-learn: Machine
learning in Python. Journal of Machine Learning Research 12, 2825{2830 (2011)
8. Redmon, J., Farhadi, A.: Yolov3: An incremental improvement. arXiv preprint
arXiv:1804.02767 (2018)
9. Rehurek, R., Sojka, P.: Software Framework for Topic Modelling with Large
Corpora. In: Proceedings of the LREC 2010 Workshop on New
Challenges for NLP Frameworks. pp. 45{50. ELRA, Valletta, Malta (May 2010),
http://is.muni.cz/publication/884893/en</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Dang-Nguyen</surname>
            ,
            <given-names>D.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Piras</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Riegler</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tran</surname>
            ,
            <given-names>M.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lux</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Le</surname>
            ,
            <given-names>T.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ninh</surname>
            ,
            <given-names>V.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gurrin</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          : Overview of ImageCLEFlifelog 2019:
          <article-title>Solve my life puzzle and Lifelog Moment Retrieval</article-title>
          .
          <source>In: CLEF2019 Working Notes. CEUR Workshop Proceedings</source>
          , CEUR-WS.org &lt;http://ceur-ws.
          <source>org&gt;</source>
          , Lugano,
          <source>Switzerland (September</source>
          <volume>09</volume>
          -12
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>