<!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>A Study on Test-Time Augmentation and Attention Mechanism in DeepLabv3+ for Deep Learning-Based Segmentation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sy-Phuc Pham</string-name>
          <email>phamsyphuc123@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hyung-Jeong Yang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Duy-Phuong Dao</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Soo-Hyung Kim</string-name>
          <email>shkim@jnu.ac.kr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Guee-Sang Lee</string-name>
          <email>gslee@jnu.ac.kr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Corresponding Author: hjyang@jnu.ac.kr</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. of Artificial Intelligence Convergence, Chonnam National University</institution>
          ,
          <country country="KR">South Korea</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <fpage>13</fpage>
      <lpage>15</lpage>
      <abstract>
        <p>In this paper, we present an approach for segmenting polyps in a two-dimensional image. In this challenge, we conducted expermients with four diferent methods and developed a segmentation model based on DeepLabv3+ and attention mechanism. Besides, we applied the standard augmentations for the data preprocessing and the test-time augmentation technique for improving the prediction mask. Our ensemble models have been evaluated on the development dataset, which was provided by the MediaEval challenge.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        In the Medico task, it was a challenge to explore the approaches to
automatically segmenting images collected from the human colon.
In this task, we took part in subtask 1: Polyp segmentation. The goal
of this subtask was to develop algorithms for segmenting polyps in
endoscopy images. With two-dimensional (2D) medical images, we
have to develop a deep learning model for segmenting the polyp.
We propose three main models to do the Medico task. For the
ifrst model, we apply DeepLabv3+ [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].This is the encoder-decoder
architecture popular in the segmentation area, with the strength
of the Atrous Spatial Pyramid Pooling in the encoder path. In the
second model, we use U-Net-MobileNetv2, which was popular in
medical image segmentation. Based on the U-Net architecture, the
encoder path has been developed using MobileNetv2. The last model
is the proposed model, which we detail in section 3.
      </p>
      <p>The content of this paper is organized as follows. Section 2
presents the summary of some existing research closely related to
polyp semantic segmentation. In section 3, we discuss the proposed
method. Details of the experiment and results are presented in
section 4. Finally, the conclusion is presented in section 5.</p>
    </sec>
    <sec id="sec-2">
      <title>RELATED WORK</title>
      <p>
        The U-Net [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], a popular architecture in biomedical image
segmentation consists of the encoder-decoder architecture with the
advantages of skip connection. The authors in [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] used the
UNet model with the augmentation of Kvasir-SEG dataset [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. The
Kvasir-SEG dataset includes 1000 samples which were collected
from endoscopy images. Marcus et al. in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] developed the U-Net
by using pre-trained MobileNetv2 in the encoder path, and used
Adadelta optimizer to segment the polyp in the Kvasir-SEG. Based
on the model in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], Saruar et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] changed MobileNetV2 to
ResNet50 in the encoder path and kept the decoder path. The
authors in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] did the polyp segmentation in the MediaEval2020
challenge via Self-Knowledge Distillation [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] with the ResUNet++
[
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] backbone. Multi-SuperVision Net [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], an encoder-decoder
architecture with five layers was used in the MediaEval2020
challenge. In [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], the encoder path has been kept similar to the encoder
path in U-Net, and the decoder path has been developed using a
combination of dense blocks and Concurrent Spatial and Channel
Attention.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>PROPOSED METHOD</title>
      <p>
        In this section, we discuss the architecture of the proposed method
DeepLabv3+ with Self-Attention (DLV3SA). It contains two
components: DeepLabv3+ [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and Self-Attention mechanism [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], as
shown in Figure 1.
      </p>
      <p>
        DeepLab based on the encoder-decoder architecture, has four
versions: DeepLabv1 [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], DeepLabv2 [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], DeepLabv3 [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], and DeepLabv3+
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. But in our approach, we used the DeepLabv3+ architecture as it
is the most recent version with high performance in segmentation
tasks. The feature extraction from ResNet [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] was transmitted into
a multi-layer Deep Convolutional Neural Network (DCNN). The
DCNN creates a feature map, a spatial representation of the
features of the input image. In the DCNN, Atrous convolutions [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] are
used for feature filtering instead of Convolutional Neural Network
(CNN) as the field of view of filters in Atrous convolution is wider
than CNN, and it doesn’t reduce the dimension of the feature map
too deeply. However, it still retains the number of parameters and
computational cost.
      </p>
      <p>The Attention mechanism is the important layer in the
encoder path of the proposed model. The network takes advantage of
the attention mechanism’s capabilities to concentrate the features
with more meaningful data and to reduce the number of feature
maps. We employed an Attention layer on the output of each layer
of the Atrous Spatial Pyramid Pooling (ASPP) to focus on important
information. By assigning a weight to each layer in ASPP, the
attention layer can get the best output before concatenating the four
outputs of ASPP. We can represent the attention layer as shown in
Equation 1.</p>
      <p>(  ,   ,   ) =    (     ) 
(1)
where  represent the feature extraction from ResNet, Q is the
query, K is the key, V is the value, and  =  =  when this is the
self-attention.</p>
      <p>
        Test-time augmentation (TTA) [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] is a technique for
improving the prediction mask. It involves creating multiple augmented
copies of each image in the test set, having the model make a
prediction for each augmented copies, and then returning an ensemble of
those predictions. To apply TTA, we used fliplr and flipud functions
from Numpy library [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. We calculated the average of all of the
masks and got the final result for submission.
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>EXPERIMENT AND RESULTS</title>
      <p>In the subtask 1 of the Medico task, for submission 1, we used the
DeepLabv3+. We ran the model on five diferent train-validation
splits with the ratio 8:2 (80% for training and 20% for validation). For
submission 2, we applied data augmentation such as HorizontalFlip
and VerticalFlip in data preprocessing and split the dataset with a
ratio of 8:2 and trained with the DLV3SA model. For submission 3,
we trained the U-Net-MobileNetV2 model with a dataset with more
epochs than the number of epochs in submission 1 and 2. In the
last submission, we ran the experiment with the proposed method
discussed in section 3.</p>
      <p>In subtask 1, we receive the results from the organizer in six
metrics: accuracy, Jaccard, dice, F1, recall, and precision, as shown
in Table 1. In submission 1, the Jaccard score is better than in
submission 3. With the DLV3SA model, the Jaccard score in submission
4 is better than in submission 2. Table 1 shows that our proposed
model outperforms DeepLabv3+ and U-Net-MobileNetV2 in terms
of accuracy, Jaccard index, Dice similarity coeficient, and F1 of
0.9489, 0.659, 0.7563, and 0.7563, respectively, on the oficial test
dataset.
5</p>
    </sec>
    <sec id="sec-5">
      <title>CONCLUSION</title>
      <p>In this paper, we present the proposed model for automatic polyp
segmentation. In our work, the data augmentation technique is
applied to input images in submission 2. We also applied the Attention
mechanism in the encoder path of DeepLabv3+ to improve the
outputs from the ASPP module. Our experimental results show that our
proposed model outperforms U-Net-MobileNetV2 and DeepLabv3+
on the unseen test set. In the future, we plan to experiment with
more than one multiple pre-trained models in the encoder path
by fusing their feature maps before putting them into the ASPP
module.</p>
    </sec>
    <sec id="sec-6">
      <title>ACKNOWLEDGMENTS</title>
      <p>This research was supported by the Bio Medical Technology
Development Program of the National Research Foundation (NRF) funded
by the Korean government (MSIT) (NRF-2019M3E5D1A02067961).</p>
      <p>This work was supported by the National Research Foundation
of Korea (NRF) grant funded by the Korea government (MSIT)
(NRF-2020R1A2B5B01002085).</p>
      <p>Medico: Transparency in Medical Image Segmentation</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Saruar</given-names>
            <surname>Alam</surname>
          </string-name>
          , Nikhil Kumar Tomar, Aarati Thakur, Debesh Jha, and
          <string-name>
            <given-names>Ashish</given-names>
            <surname>Rauniyar</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Automatic Polyp Segmentation using U-NetResNet50</article-title>
          . arXiv preprint arXiv:
          <year>2012</year>
          .
          <volume>15247</volume>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Marcus</surname>
            <given-names>VL</given-names>
          </string-name>
          <string-name>
            <surname>Branch and Adriele S Carvalho</surname>
          </string-name>
          .
          <year>2021</year>
          .
          <article-title>Polyp Segmentation in Colonoscopy Images using U-Net-MobileNetV2</article-title>
          .
          <source>arXiv preprint arXiv:2103.15715</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Liang-Chieh</surname>
            <given-names>Chen</given-names>
          </string-name>
          , George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille.
          <year>2014</year>
          .
          <article-title>Semantic image segmentation with deep convolutional nets and fully connected crfs</article-title>
          .
          <source>arXiv preprint arXiv:1412.7062</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Liang-Chieh</surname>
            <given-names>Chen</given-names>
          </string-name>
          , George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille.
          <year>2017</year>
          .
          <article-title>Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs</article-title>
          .
          <source>IEEE transactions on pattern analysis and machine intelligence 40</source>
          ,
          <issue>4</issue>
          (
          <year>2017</year>
          ),
          <fpage>834</fpage>
          -
          <lpage>848</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Liang-Chieh</surname>
            <given-names>Chen</given-names>
          </string-name>
          , George Papandreou, Florian Schrof, and
          <string-name>
            <given-names>Hartwig</given-names>
            <surname>Adam</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Rethinking atrous convolution for semantic image segmentation</article-title>
          .
          <source>arXiv preprint arXiv:1706.05587</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Liang-Chieh</surname>
            <given-names>Chen</given-names>
          </string-name>
          , Yukun Zhu, George Papandreou, Florian Schrof, and
          <string-name>
            <given-names>Hartwig</given-names>
            <surname>Adam</surname>
          </string-name>
          .
          <year>2018</year>
          .
          <article-title>Encoder-decoder with atrous separable convolution for semantic image segmentation</article-title>
          .
          <source>In Proceedings of the European conference on computer vision (ECCV)</source>
          .
          <volume>801</volume>
          -
          <fpage>818</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Charles</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Harris</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <string-name>
            <surname>Jarrod Millman</surname>
            ,
            <given-names>Stéfan J. van der Walt</given-names>
          </string-name>
          , Ralf Gommers, Pauli Virtanen, David Cournapeau,
          <string-name>
            <given-names>Eric</given-names>
            <surname>Wieser</surname>
          </string-name>
          , Julian Taylor, Sebastian Berg,
          <string-name>
            <given-names>Nathaniel J.</given-names>
            <surname>Smith</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Robert</given-names>
            <surname>Kern</surname>
          </string-name>
          , Matti Picus, Stephan Hoyer,
          <string-name>
            <surname>Marten H. van Kerkwijk</surname>
          </string-name>
          ,
          <string-name>
            <surname>Matthew Brett</surname>
          </string-name>
          , Allan Haldane,
          <source>Jaime Fernández del Río</source>
          , Mark Wiebe, Pearu Peterson, Pierre Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, and
          <string-name>
            <given-names>Travis E.</given-names>
            <surname>Oliphant</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Array programming with NumPy</article-title>
          .
          <source>Nature</source>
          <volume>585</volume>
          ,
          <issue>7825</issue>
          (Sept.
          <year>2020</year>
          ),
          <fpage>357</fpage>
          -
          <lpage>362</lpage>
          . https://doi.org/10.1038/s41586-020-2649-2
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Kaiming</given-names>
            <surname>He</surname>
          </string-name>
          , Xiangyu Zhang, Shaoqing Ren, and
          <string-name>
            <given-names>Jian</given-names>
            <surname>Sun</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Deep residual learning for image recognition</article-title>
          .
          <source>In Proceedings of the IEEE conference on computer vision and pattern recognition</source>
          .
          <volume>770</volume>
          -
          <fpage>778</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Geofrey</given-names>
            <surname>Hinton</surname>
          </string-name>
          ,
          <source>Oriol Vinyals, and Jef Dean</source>
          .
          <year>2015</year>
          .
          <article-title>Distilling the knowledge in a neural network</article-title>
          .
          <source>arXiv preprint arXiv:1503.02531</source>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Debesh</surname>
            <given-names>Jha</given-names>
          </string-name>
          , Pia H Smedsrud, Dag Johansen, Thomas de Lange, Hå- vard
          <string-name>
            <given-names>D</given-names>
            <surname>Johansen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Pål</given-names>
            <surname>Halvorsen</surname>
          </string-name>
          ,
          <source>and Michael A Riegler</source>
          .
          <year>2020</year>
          .
          <article-title>A Comprehensive Study on Colorectal Polyp Segmentation with ResUNet++, Conditional Random Field</article-title>
          and
          <string-name>
            <surname>Test-Time Augmentation</surname>
          </string-name>
          . (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Debesh</surname>
            <given-names>Jha</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pia H Smedsrud</surname>
          </string-name>
          ,
          <article-title>Michael A Riegler, Dag Johansen</article-title>
          , Thomas De Lange, Pål Halvorsen, and
          <string-name>
            <given-names>Håvard D</given-names>
            <surname>Johansen</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Resunet++: An advanced architecture for medical image segmentation</article-title>
          .
          <source>In 2019 IEEE International Symposium on Multimedia (ISM)</source>
          . IEEE,
          <fpage>225</fpage>
          -
          <lpage>2255</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Jaeyong</given-names>
            <surname>Kang</surname>
          </string-name>
          and
          <string-name>
            <given-names>Jeonghwan</given-names>
            <surname>Gwak</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>KD-ResUNet++: Automatic Polyp Segmentation via Self-Knowledge Distillation</article-title>
          . In MediaEval 2020 Workshop.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Nikita</surname>
            <given-names>Moshkov</given-names>
          </string-name>
          , Botond Mathe, Attila Kertesz-Farkas,
          <string-name>
            <given-names>Reka</given-names>
            <surname>Hollandi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Peter</given-names>
            <surname>Horvath</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Test-time augmentation for deep learningbased cell segmentation on microscopy images</article-title>
          .
          <source>Scientific reports 10</source>
          ,
          <issue>1</issue>
          (
          <year>2020</year>
          ),
          <fpage>1</fpage>
          -
          <lpage>7</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Sabari</given-names>
            <surname>Nathan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Suganya</given-names>
            <surname>Ramamoorthy</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Eficient Supervision Net: Polyp Segmentation Using EficientNet and Attention Unit</article-title>
          . In MediaEval 2020 Workshop.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Olaf</surname>
            <given-names>Ronneberger</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Philipp</given-names>
            <surname>Fischer</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Brox</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>U-net: Convolutional networks for biomedical image segmentation</article-title>
          . In International Conference on
          <article-title>Medical image computing and computer-assisted intervention</article-title>
          . Springer,
          <fpage>234</fpage>
          -
          <lpage>241</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Shruti</surname>
            <given-names>Shrestha</given-names>
          </string-name>
          , Bishesh Khanal, and
          <string-name>
            <given-names>Sharib</given-names>
            <surname>Ali</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Ensemble U-Net model for eficient polyp segmentation</article-title>
          .
          <source>In MediaEval 2020 Workshop.</source>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Ashish</surname>
            <given-names>Vaswani</given-names>
          </string-name>
          , Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez,
          <string-name>
            <surname>Łukasz Kaiser</surname>
            , and
            <given-names>Illia</given-names>
          </string-name>
          <string-name>
            <surname>Polosukhin</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Attention is all you need</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          .
          <volume>5998</volume>
          -
          <fpage>6008</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>