<!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>Real-Time Polyp Segmentation Using U-Net with IoU Loss</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>George Batchkala</string-name>
          <email>george.batchkala@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sharib Ali</string-name>
          <email>sharib.ali@eng.ox.ac.uk</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Oxford</institution>
          ,
          <addr-line>Oxford</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of Biomedical Engineering, Department of Engineering Science</institution>
          ,
          <addr-line>Oxford</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>14</fpage>
      <lpage>15</lpage>
      <abstract>
        <p>Colonoscopy is the third leading cause of cancer deaths worldwide. While automated segmentation methods can help detect polyps and consequently improve their surgical removal, the clinical usability of these methods requires a trade-of between accuracy and speed. In this work, we exploit the traditional U-Net methods and compare diferent segmentation-loss functions. Our results demonstrate that IoU loss results in an improved segmentation performance (nearly 3% improvement on Dice) for real-time polyp segmentation.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        Colorectal cancer (CRC) is the commonly diagnosed malignancy
and the third leading cause of cancer-related deaths worldwide [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
Colorectal polyps are abnormal protrusions from the mucosa that
are usually identified during standard medical procedure referred
to as colonoscopy; the associated malignancy is classified through
histopathological examinations [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. Patients with conventional
adenomas or serrated polyps are advised to undergo polypectomy,
which is a non-invasive surgical procedure usually done during
colonoscopy surveillance to prevent CRC [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. While detection and
segmentation of polyps are critical, missed detection and inaccurate
removal of polyps can lead to subsequent risk of CRC. Due to
advancements in hardware and algorithmic revolutions such as
deep learning, building accurate real-time systems is now possible.
However, a trade-of between accuracy and speed is still vital for
the use of automated systems during CRC surveillance and surgical
removal of polyps.
      </p>
      <p>
        Medico automatic polyp segmentation challenge1 held in 2020
aims to address the automated delineation of polyps and evaluate
the capability of built models for real-time performance that
directly implicates clinical utility of the methods. We participated
in both polyp segmentation and algorithm eficiency sub-tasks in
this challenge. To this end, we have investigated the successful and
widely used for semantic segmentation U-Net architecture [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. In
this paper, we propose and shed light on U-Net-based deep learning
architecture and evaluate it using diferent loss functions and data
augmentation strategies for polyp segmentation.
      </p>
    </sec>
    <sec id="sec-2">
      <title>RELATED WORK</title>
      <p>
        In the past, several biomedical challenges related to the endoscopy
data have been accomplished [
        <xref ref-type="bibr" rid="ref1 ref2 ref5 ref6">1, 2, 5, 6</xref>
        ]. These challenges curate
endoscopy video image frames and provide to the computational
      </p>
      <sec id="sec-2-1">
        <title>1https://multimediaeval.github.io/editions/2020/tasks/medico/</title>
        <p>
          scientists to benchmark their methods. Among these challenges,
the very first challenge on polyp segmentation 2 was introduced
in 2015 with comprehensive single images and video data. This
dataset has been widely used by the researchers. GIANA dataset3
was introduced in 2017 with the added detection task [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ].
        </p>
        <p>
          Kvasir-SEG dataset [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ], released in 2020, contains 1000 pairs of
colonoscopy images and their ground-truth segmentation masks4.
Similarly, multi-class endoscopy disease detection and
segmentation challenge [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] includes polyps as one of its five disease
categories. A comprehensive comparison of deep learning methods on
this dataset can be found in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. Likewise, [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] provides an extensive
comparison of the state-of-the-art methods for Kvasir-SEG dataset.
3
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>APPROACH</title>
      <p>
        U-Net [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] is an established encoder-decoder architecture with
skip-connections. Classically, binary cross-entropy (BCE) is used
for binary segmentation tasks [
        <xref ref-type="bibr" rid="ref12 ref8">8, 12</xref>
        ]. While preserving the
standard U-Net design, we used intersection-over-union loss L and
experimented with a combination of BCE and IoU losses. To boost
the performance on this dataset, we have also added augmentation
techniques that include random rotations (up to 180 degrees in
each direction) and random horizontal flips (with probability 0.5)
followed by cropping to return the rotated images to their original
sizes. Here, we have directly used negative of IoU instead of
classically used 1 −  as shown in Eq. 1, where  and  are the
predicted and ground-truth masks, respectively.
      </p>
      <p>|  ∩  |</p>
      <p>L = − |  ∪  |</p>
      <p>During the training stage, the IoU loss computation showed
convergence already at 55 epochs providing validation IoU value
over 70% (refer Figure 1).
(1)</p>
    </sec>
    <sec id="sec-4">
      <title>EXPERIMENTS</title>
    </sec>
    <sec id="sec-5">
      <title>Dataset and set-up</title>
      <p>
        We split our training data into 88% training and 12% for validation
on the 1000 training images provided by the organisers [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. The
resolution of images varies from 332 × 487 to 1920 × 1072 pixels,
so we resized all the images to 256 × 256 pixels for training
purposes. A hidden test dataset that included additional 160 images
was provided.
      </p>
      <p>
        We used Adam optimiser [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] for minimisation of our loss
function with a learning rate of 1−4 and default weight decay of 1−8.
For each experiment, we trained our network for 100 epochs with
      </p>
      <sec id="sec-5-1">
        <title>2https://polyp.grand-challenge.org/Home/ 3https://giana.grand-challenge.org 4https://datasets.simula.no/kvasir-seg/</title>
        <p>We used standard computer vision metrics for evaluating semantic
segmentation of polyps: intersection-of-union (IoU), Dice similarity
coeficient (DSC), recall (Rec.), precision (Prec.), overall accuracy
(Acc.) and F2-error (F2). Additionally, we demonstrated the
realtime application of our approach using frames-per-second (FPS)
measurement.
4.3</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Results</title>
      <p>Table 1 shows the quantitative results of the U-Net model with
diferent loss functions and augmentation. It can be observed that
using IoU loss as a minimization objective is better than using the
BCE loss or the combined (IoU + BCE) loss. Furthermore, using IoU
loss and data augmentation results in the best DSC of 0.7868, the
best IoU of 0.7005, and the best trade-of between precision (0.8435)
and recall (0.8307). It is worth noting that our method with IoU loss
has the highest FPS on our hardware of over 240.</p>
      <p>Table 2 presents the results of our method on the unseen test
dataset provided by the challenge organisers. We have achieved the
DSC of 0.7328 and precision of 0.8229. Again, it can be observed that
our method has an FPS of 197, which is suficient to be used in
clinical practice. In general, with available high-definition colonoscopy
equipment, the required rate is below 100 FPS.</p>
    </sec>
    <sec id="sec-7">
      <title>ACKNOWLEDGMENTS</title>
      <p>G.B. is funded by a full Health Data Science Studentship through
Professor Fergus Gleeson’s A2 research funds and S.A. is supported
by Oxford NIHR BRC.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Sharib</given-names>
            <surname>Ali</surname>
          </string-name>
          , Mariia Dmitrieva,
          <string-name>
            <surname>Noha M. Ghatwary</surname>
          </string-name>
          , Sophia Bano, Gorkem Polat, Alptekin Temizel, and others.
          <year>2020</year>
          .
          <article-title>A translational pathway of deep learning methods in GastroIntestinal Endoscopy</article-title>
          . CoRR abs/
          <year>2010</year>
          .06034 (
          <year>2020</year>
          ). https://arxiv.org/abs/
          <year>2010</year>
          .06034
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Sharib</given-names>
            <surname>Ali</surname>
          </string-name>
          , Felix Zhou, Barbara Braden, and others.
          <year>2020</year>
          .
          <article-title>An objective comparison of detection and segmentation algorithms for artefacts in clinical endoscopy</article-title>
          .
          <source>Scientific Reports</source>
          <volume>10</volume>
          (
          <year>2020</year>
          ),
          <fpage>2748</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Sharib</given-names>
            <surname>Ali</surname>
          </string-name>
          et al.
          <year>2020</year>
          .
          <article-title>Endoscopy disease detection challenge 2020</article-title>
          . arXiv preprint arXiv:
          <year>2003</year>
          .
          <volume>03376</volume>
          (
          <year>2020</year>
          ). https://arxiv.org/abs/
          <year>2003</year>
          . 03376
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Melina</given-names>
            <surname>Arnold</surname>
          </string-name>
          , Mónica S Sierra, Mathieu Laversanne, Isabelle Soerjomataram, Ahmedin Jemal, and
          <string-name>
            <given-names>Freddie</given-names>
            <surname>Bray</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Global patterns and trends in colorectal cancer incidence and mortality</article-title>
          .
          <source>Gut</source>
          <volume>66</volume>
          ,
          <issue>4</issue>
          (
          <year>2017</year>
          ),
          <fpage>683</fpage>
          -
          <lpage>691</lpage>
          . https://doi.org/10.1136/gutjnl-2015
          <source>-310912</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Jorge</given-names>
            <surname>Bernal</surname>
          </string-name>
          and others.
          <source>2017</source>
          .
          <article-title>Comparative validation of polyp detection methods in video colonoscopy: results from the MICCAI 2015 endoscopic vision challenge</article-title>
          .
          <source>IEEE Trans. Med. Imag</source>
          <volume>36</volume>
          ,
          <issue>6</issue>
          (
          <year>2017</year>
          ),
          <fpage>1231</fpage>
          -
          <lpage>1249</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Jorge</given-names>
            <surname>Bernal</surname>
          </string-name>
          and others.
          <source>2018</source>
          .
          <article-title>Polyp detection benchmark in colonoscopy videos using gtcreator: A novel fully configurable tool for easy and fast annotation of image databases</article-title>
          .
          <source>In Proc. Comput. Assist. Radiol. Surg</source>
          . (CARS).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Xiaosheng</given-names>
            <surname>He</surname>
          </string-name>
          , Dong Hang, Kana Wu, Jennifer Nayor, David A Drew, Edward L Giovannucci, Shuji Ogino,
          <string-name>
            <surname>Andrew T Chan</surname>
            , and
            <given-names>Mingyang</given-names>
          </string-name>
          <string-name>
            <surname>Song</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Long-term Risk of Colorectal Cancer After Removal of Conventional Adenomas and Serrated Polyps</article-title>
          .
          <source>Gastroenterology</source>
          <volume>158</volume>
          ,
          <issue>4</issue>
          (March
          <year>2020</year>
          ),
          <fpage>852</fpage>
          -
          <lpage>861</lpage>
          .
          <year>e4</year>
          . https://doi.org/10.1053/j.gastro.
          <year>2019</year>
          .
          <volume>06</volume>
          .039
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Debesh</given-names>
            <surname>Jha</surname>
          </string-name>
          , Sharib Ali,
          <string-name>
            <given-names>Håvard D.</given-names>
            <surname>Johansen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Dag D.</given-names>
            <surname>Johansen</surname>
          </string-name>
          , Jens Rittscher,
          <string-name>
            <given-names>Michael A.</given-names>
            <surname>Riegler</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Pål</given-names>
            <surname>Halvorsen</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Real-Time Polyp Detection, Localisation and Segmentation in Colonoscopy Using Deep Learning</article-title>
          . CoRR abs/
          <year>2011</year>
          .07631 (
          <year>2020</year>
          ). https://arxiv.org/abs/
          <year>2011</year>
          . 07631
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Debesh</given-names>
            <surname>Jha</surname>
          </string-name>
          , Steven A.
          <string-name>
            <surname>Hicks</surname>
          </string-name>
          , Krister Emanuelsen, Håvard Johansen, Dag Johansen, Thomas de Lange,
          <article-title>Michael A</article-title>
          .
          <string-name>
            <surname>Riegler</surname>
            , and
            <given-names>Pål</given-names>
          </string-name>
          <string-name>
            <surname>Halvorsen</surname>
          </string-name>
          .
          <year>2020</year>
          . Medico Multimedia Task at MediaEval 2020:
          <article-title>Automatic Polyp Segmentation</article-title>
          .
          <source>In Proc. of the MediaEval 2020 Workshop.</source>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <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, Pål Halvorsen</article-title>
          , Thomas de Lange, Dag Johansen, and
          <string-name>
            <given-names>Håvard D</given-names>
            <surname>Johansen</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>Kvasirseg: A segmented polyp dataset</article-title>
          .
          <source>In International Conference on Multimedia Modeling</source>
          . Springer,
          <fpage>451</fpage>
          -
          <lpage>462</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Diederik</surname>
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Kingma</surname>
            and
            <given-names>Jimmy</given-names>
          </string-name>
          <string-name>
            <surname>Ba</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>Adam: A Method for Stochastic Optimization</article-title>
          .
          <source>In 3rd International Conference on Learning Representations, ICLR</source>
          <year>2015</year>
          , San Diego, CA, USA, May 7-
          <issue>9</issue>
          ,
          <year>2015</year>
          , Conference Track Proceedings, Yoshua Bengio and Yann LeCun (Eds.). http://arxiv.org/abs/1412.6980
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <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>
          . U-Net:
          <article-title>Convolutional networks for biomedical image segmentation</article-title>
          .
          <source>In MICCAI</source>
          .
          <volume>234</volume>
          -
          <fpage>241</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>J. G.</given-names>
            <surname>Williams</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. D.</given-names>
            <surname>Pullan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hill</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. G.</given-names>
            <surname>Horgan</surname>
          </string-name>
          , E. Salmo,
          <string-name>
            <given-names>G. N.</given-names>
            <surname>Buchanan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Rasheed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. G.</given-names>
            <surname>McGee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and N.</given-names>
            <surname>Haboubi</surname>
          </string-name>
          .
          <year>2013</year>
          .
          <article-title>Management of the malignant colorectal polyp: ACPGBI position statement</article-title>
          .
          <source>Colorectal Disease</source>
          <volume>15</volume>
          ,
          <issue>s2</issue>
          (
          <year>2013</year>
          ),
          <fpage>1</fpage>
          -
          <lpage>38</lpage>
          . https://doi.org/10.1111/codi. 12262
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>