<!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>LSTM in VQA-Med, is it really needed? JCE study on the ImageCLEF 2019 dataset</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Avi Turner</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Assaf B. Spanier</string-name>
          <email>assaf.spanier@mail.huji.ac.il</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Software Engineering of Azrieli College of Engineering Jerusalem</institution>
          ,
          <country country="IL">Israel</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper describes the contribution of the Department of Software Engineering at the Azrieli College of Engineering, Jerusalem, Israel to the ImageCLEF VQA-Med 2019 task. This task was inspired by the recent ever greater success of visual question answering (VQA) in the general domain. Given medical images accompanied by clinically relevant questions, participating systems were tasked with answering questions based on the image content.We explored and implemented a two-stage model. The rst stage predicts the category of the textual question, while the second stage is comprised of 5 sub-models. Each sub-model is a classic VQA deep learning module with two branches for feature extraction, the rst using CNN to extract image features, and the second using embedding (and optionally LSTM) to extract textual features. The network then combines the two feature branches to predict the appropriate answer. We found that most sub-models didnt need LSTM to achieve high scores on the validation and test data-sets. We submitted 10 models for the challenge, our best submission overall ranked 9th out of 17. All source codes are available at https://github.com/turner11/VQA-Med Copyright c 2019 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CLEF 2019, 9-12 September 2019, Lugano, Switzerland.</p>
      </abstract>
      <kwd-group>
        <kwd>VQA-Med LSTM ImageCLEF-2019</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The ever increasing demand for automated computer systems (AI) to assist
clinical medical practice addresses two main audiences: Doctors who use these
systems to get a second opinion on their diagnosis; and patients who increasingly
have easy access to comprehensive and detailed medical data which they nd
bewildering. Thus, addressing patients, the systems motivation is to help them
have a better understanding of their medical condition, by providing detailed
explanations of the results of their medical tests and scans, which is something
that doctors, naturally, are unable to do for each data item of each patients le.
The current access to ones detailed medical le without explanation leads to
the unfortunate situation that patients turn to searching the Internet and online
forums to better understand their condition, reaching misleading information
and false conclusions. Consequently, this often worries patients, either because
insu ciently speci c details of their health are considered, or even worse, because
irrelevant, false, inexpert information is found.</p>
      <p>
        Visual question answering (VQA) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] is a sub eld of automated systems (AI)
relevant to these kinds of problems. The task of VQA is to produce textual
answers to textual questions asked in the context of a speci c image. This is
illustrated in Fig 1: given an image and a question, a VQA system should supply
an answer relevant to the question in the context of the image.
      </p>
      <p>
        A VQA [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] system questions takes textual questions as input with the images
they refer to, and combines data from the image and the question text to arrive
at the most relevant answer. To produce answers to speci c questions, VQA
systems combine natural language processing methods with advanced computer
vision techniques. The application of VQA to the eld of medicine is a twofold
challenge, not only are medical texts and images signi cantly di erent from
those in the general computer vision eld, but the resources and labelled data
available in the medical eld are quite limited relative to what is available in the
general eld. Evidenced by the 260,000 image COCO-QA Challenge dataset of
general images, this quantity contrasted with the 5,000 VQA-Med medical image
dataset. Following the recent successes of VQA in the general computer vision
eld and the challenge posed by the medical eld, as of 2018, ImageClef 2019 [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
published a second round of the VQA-Med Challenge [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. This paper deals with
the problems of VQA in the medical eld. The rest of this paper is organized
as follows. First, we describe some related work. Next, we describe the database
and challenge characteristics. Then, we describe our method in detail. Lastly,
results are presented in Section 4, followed by conclusions and future work in
the last Section.
      </p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        The VQA COCO-QA Challenge is studying a problem very similar to the
VQAMed task. VQA [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] has been held every year since 2016. The dataset is public
domain based. The prevalent approach to VQA uses recurrent neural networks,
such as LSTMs [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], to encode the textual questions, and deep convolution
networks, such as VGG-16, to encode and extract features from the images [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
Based on these ideas, a plethora of other methods have been proposed in the
literature: including attention, dynamic models, and even incorporating external
databases.
      </p>
      <p>
        In this study, we took a di erent approach: our objective was to use classic
VQA methods [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. We analyzed those methods in order to determine their
advantages and limitations with respect to the necessity of the LSTM layer and
other parameters. We utilized conventional VQA approaches, optimizing their
parameters, to nd the best prediction method and its corresponding imaging
and text features, which provided the best evidence as to whether or not the
LSTM layer is necessary to achieve a high score or not.
The Challenge dataset comprised of a training dataset of 3,200 medical images
and 12,792 Question and Answer (QA) pairs, a validation dataset of 500 medical
images and 2,000 QA pairs, and a test dataset of 500 medical images and 500
questions with answers withheld. The questions are divided into 4 categories:
Modality, Plane, Organ System and Abnormality.
      </p>
      <p>
        The evaluation of the participant systems of the VQA-Med 2019 task was
conducted based on two metrics: BLEU, and Accuracy (Strict). Accuracy (Strict)
is an adapted version of the accuracy metric from the general domain VQA task
that considers exact matching of a participant provided answer and the ground
truth answer. BLEU [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is used to capture the similarity between a system
generated answer and the ground truth answer. Each answer is converted to
lower-case, all punctuation was removed, and the answer was tokenized to
individual words. Stopwords were removed using NLTKs9 English stopword list.
Snowball stemming10 was applied to increase the coverage of overlaps.
4
      </p>
    </sec>
    <sec id="sec-3">
      <title>Methods</title>
      <p>
        The input to our method is an image and a questions referring to it. The output
is an answer for the question in the context of the given image. Fig 2. The
system is comprised of two stages: The rst predicts the category of the textual
question Fig 3, while the second is a classic VQA module which combines the
question and image to predict a relevant answer (see Fig 4 below). The rst stage
classi es the question into 5 question categories: Modality, Plane, Organ System
and 2 Abnormality categories: Note, we subdivide the tasks given Abnormality
class into two categories: Questions with a Yes or No answer, and All Other
Questions. This stage uses embedding and an MLPClassi er, and it optimizes
the log-loss function using LBFGS or stochastic gradient descent. We used the
sklearn package [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] for this, with its default parameters.
      </p>
      <p>
        The second stage is a classic VQA deep learning module, which takes the
question and image as a combined input and predicts the appropriate answer.
The text undergoes preprocessing and embedding the output of this branch
is treated as features. We investigated whether LSTM was needed at the next
stage or not. Image features are extracted using a CNN network (VGG 19) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
Next, the features from both branches are merged using fully-connected layers
We will start with a short comparison of our results with those of other groups,
then we will focus in on our own submissions. When participating groups were
compared using only the best performing submission from each group we placed
9th out of 17 groups, achieving a strict accuracy score of 0.53 compared to 0.62
achieved by the best performing groups submission. Looking at the number of
submissions we submitted 10, while the average number of submissions per group
was 4.7 (80 submissions by 17 groups). However, in term of average performance
across all submissions we placed 8th, trading places with LIST due to the
small variation in performance between our submissions, which were all between
places 25 and 44 (of 80 total submissions), while LIST groups submissions were
between places 24 and 57.
      </p>
      <p>We will review and analyze the submissions in order of the scores they
achieved on the test set, looking particularly at the following features of the
submitted models: 1) Optimization Function, 2) Activation Function, 3) Loss
Function, 4) batch size, 5) size of fully-connected layers, 6) number of units in
the LSTM layer, and 7) whether Class Weights were used.</p>
      <p>
        Since this paper is focused on nding whether LSTM is needed for VQA
tasks, and we wanted the e ect and contribution of LSTM to be highlighted,
we chose to work with a very simple convolution network, and used the VGG
network. when evaluating optimization functions we found that RMSprop
produced the best results across all the submitted models. Results clearly indicated
using Softmax for Optimization alongside Categorical Crossentropy as the Loss
Function was the best option, which was expected as they are the most natural
choice for a task like this [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. These were the parameters used in the three
highest performing submissions (by test set scores). Batch size was 32 for all question
categories, except the Abnormal { Yes/No category which required a batch size
of 75, submissions with lower batch sizes produced less accurate results.
      </p>
      <p>Lets turn to the last three parameters:
Size of fully-connected layers
Number of units in the LSTM layer</p>
      <p>Whether Class Weights were used
5.1</p>
      <p>Submissions Details
We will review our ten submissions in order of their Challenge test set results.
Note that each submission is comprised of ve sub-models { one per question
category.</p>
      <p>In the tables presented per model, each row represents a sub-model (for a
question category), the columns are:
{ Column 1 { question category that sub-model was trained for
{ Column 2-3 { sub-models validation set scores (strict-accuracy and BLEU)
{ Column 4 { size of fully-connected layers
{ Column 5 { number of units in the LSTM layer (LM in short)
{ Column 6 { Loss Function used
{ Column 7 { Activation Function used (act, in short)
{ Column 8 { batch size
{ Column 9 { number of epochs (epo, in short)
{ Column 10 { whether Class Weights were used
Best Performing Submission The submission with the highest test set score
had the following characteristics: Fully-connected layer size of 14 for all
submodels This is the highest number used among our submissions, and our ndings
indicate that a higher number of fully-connected layers was more successful in
generalizing from the validation set. An LSTM layer was used only in the
submodel handling the Abnormality { Other question category. In the training and
validation datasets Yes and No answer frequencies were not balanced for the
Abnormality Yes/No category. We therefore investigated whether class weights
would improve accuracy and found that they did. See test set results in Table 4
and validation results in Table 1
2nd and 3rd best performing submissions The di erences between these
models and the best submission were not great, nor were the di erences in the
scores they both achieved 0.53 strict and 0.55 BLEU. Compared to the best
Submissions 4,5,6,8,9 These submissions either did not use Class Weights at
all or did not use them exclusively for the Abnormality { Yes/No category, and
the size of fully-connected layers was smaller, emphasizing the importance of
these elements to the network. See test set results in Table 4,
Submissions performing 7th and 10th These submissions did not include
LSTM, their low scores proving the importance of this layer for handling complex
tasks such as the Abnormality { Other question category. See test set results in
Table 4,
6</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions</title>
      <p>This paper presents research done in the context of participation in the
VQAMed Challenge. We analyzed VQA classi ers and feature extraction methods for
image and text classi cation in the context of medical images in the VQA-Med
2019 task. We found that none of the sub-models needed LSTM, except the one
handling the Abnormality Other questions category, the most complex task,
which also required fully-connected layers of size 21, unlike all the other
categories, for which fully-connected layers of size 14 were su cient. Class weights
are needed only in cases were a signi cant imbalance between answer class
frequency exists as there was in this challenge in the Abnormality Yes/No question
category. We submitted 10 models, our best submission ranking 9th out of 17.
All source codes are available at https://github.com/turner11/VQAMED,
7</p>
    </sec>
    <sec id="sec-5">
      <title>Future Work</title>
      <p>This paper focused on the question of whether and when LSTM may be useful for
VQA tasks. We therefore chose to work with a very simple convolution network,
the VGG network. Further research on the e ect and contribution of the LSTM
module is needed in order to look at a broader range of convolution networks,
including more advanced versions, such as ResNet and Inception, and their e ect
on results. We intend to investigate the e ects of using larger size fully-connected
layers and more epochs. Looking at batch size, found that our best performing
submissions had a batch size of 32, with 75 for the Abnormality Yes/No
submodel, while all lower batch sizes produced less accurate results. The batch size
was limited by computing resources, and we intend to examine larger batch sizes
with stronger processors.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Kushal Ka e
          <string-name>
            <given-names>and Christopher</given-names>
            <surname>Kanan</surname>
          </string-name>
          .
          <article-title>Visual question answering: Datasets, algorithms, and future challenges</article-title>
          .
          <source>Computer Vision</source>
          and Image Understanding,
          <volume>163</volume>
          :3{
          <fpage>20</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Stanislaw</given-names>
            <surname>Antol</surname>
          </string-name>
          , Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra,
          <string-name>
            <given-names>C Lawrence</given-names>
            <surname>Zitnick</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Devi</given-names>
            <surname>Parikh</surname>
          </string-name>
          . Vqa:
          <article-title>Visual question answering</article-title>
          .
          <source>In Proceedings of the IEEE international conference on computer vision</source>
          , pages
          <volume>2425</volume>
          {
          <fpage>2433</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Bogdan</given-names>
            <surname>Ionescu</surname>
          </string-name>
          , Henning Muller, Renaud Peteri,
          <string-name>
            <surname>Duc-Tien</surname>
            Dang-Nguyen,
            <given-names>Luca</given-names>
          </string-name>
          <string-name>
            <surname>Piras</surname>
          </string-name>
          , Michael Riegler,
          <string-name>
            <surname>Minh-Triet</surname>
            <given-names>Tran</given-names>
          </string-name>
          , Mathias Lux, Cathal Gurrin, Yashin Dicente Cid, et al.
          <source>Imageclef</source>
          <year>2019</year>
          :
          <article-title>Multimedia retrieval in lifelogging, medical, nature, and security applications</article-title>
          .
          <source>In European Conference on Information Retrieval</source>
          , pages
          <volume>301</volume>
          {
          <fpage>308</fpage>
          . Springer,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Asma</given-names>
            <surname>Ben</surname>
          </string-name>
          <string-name>
            <given-names>Abacha</given-names>
            , Sadid A.
            <surname>Hasan</surname>
          </string-name>
          ,
          <string-name>
            <surname>Vivek</surname>
            <given-names>V.</given-names>
          </string-name>
          <string-name>
            <surname>Datla</surname>
          </string-name>
          , Joey Liu, Dina DemnerFushman, and
          <article-title>Henning Muller. VQA-Med: Overview of the medical visual question answering task at imageclef 2019</article-title>
          . In CLEF2019 Working Notes, CEUR Workshop Proceedings, Lugano, Switzerland,
          <source>September</source>
          <volume>09</volume>
          -12
          <year>2019</year>
          .
          <article-title>CEUR-WS.org</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Sepp</given-names>
            <surname>Hochreiter</surname>
          </string-name>
          and
          <article-title>Jurgen Schmidhuber. Long short-term memory</article-title>
          .
          <source>Neural computation</source>
          ,
          <volume>9</volume>
          (
          <issue>8</issue>
          ):
          <volume>1735</volume>
          {
          <fpage>1780</fpage>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. Kushal Ka e
          <string-name>
            <given-names>and Christopher</given-names>
            <surname>Kanan</surname>
          </string-name>
          .
          <article-title>Answer-type prediction for visual question answering</article-title>
          .
          <source>In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition</source>
          , pages
          <volume>4976</volume>
          {
          <fpage>4984</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Aishwarya</given-names>
            <surname>Agrawal</surname>
          </string-name>
          , Jiasen Lu, Stanislaw Antol, Margaret Mitchell, C Lawrence Zitnick, Devi Parikh, and
          <string-name>
            <given-names>Dhruv</given-names>
            <surname>Batra</surname>
          </string-name>
          . Vqa:
          <article-title>Visual question answering</article-title>
          .
          <source>International Journal of Computer Vision</source>
          ,
          <volume>123</volume>
          (
          <issue>1</issue>
          ):4{
          <fpage>31</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Fabian</given-names>
            <surname>Pedregosa</surname>
          </string-name>
          , Gael Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel,
          <string-name>
            <given-names>Peter</given-names>
            <surname>Prettenhofer</surname>
          </string-name>
          , Ron Weiss,
          <string-name>
            <surname>Vincent Dubourg</surname>
          </string-name>
          , et al.
          <article-title>Scikit-learn: Machine learning in python</article-title>
          .
          <source>Journal of machine learning research</source>
          ,
          <volume>12</volume>
          (Oct):
          <volume>2825</volume>
          {
          <fpage>2830</fpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Karen</given-names>
            <surname>Simonyan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Zisserman</surname>
          </string-name>
          .
          <article-title>Very deep convolutional networks for large-scale image recognition</article-title>
          .
          <source>arXiv preprint arXiv:1409.1556</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Pieter-Tjerk De</surname>
            <given-names>Boer</given-names>
          </string-name>
          , Dirk P Kroese, Shie Mannor, and Reuven Y Rubinstein.
          <article-title>A tutorial on the cross-entropy method</article-title>
          .
          <source>Annals of operations research</source>
          ,
          <volume>134</volume>
          (
          <issue>1</issue>
          ):
          <volume>19</volume>
          {
          <fpage>67</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>