<!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 Dynamic Programming Approach for Heart Segmentation in Chest Radiographs</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Aarti Raheja</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jason Knapp</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chunsheng Fang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>araheja</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>jknapp</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>vfang}@riverainmedical.com</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Riverain Technologies 3020 South Tech Boulevard Miamisburg</institution>
          ,
          <addr-line>OH 45342-4860</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p> Chest radiographs are the most routinely acquired exams, which makes their use for diagnosis cost effective. In this paper we present a dynamic programming approach for automated heart segmentation on posterior-anterior (PA) chest radiographs. The goal of the proposed algorithm is to provide an accurate and reproducible method for heart segmentation, which can then be used to detect certain cardiac abnormalities. Our method has several advantages over previous methods, and provides superior performance to previously published results.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Heart segmentation in chest radiographs is a
challenging task. One major difficulty in segmenting the
heart is the low contrast found in the mediastinum and
diaphragmatic regions. These areas are difficult to
visualize even by radiologists. Other aspects that make the
problem challenging include: the significant variation in
heart size across patients, the presence of disease in the
lungs, and poor breadth holds by patients (leading to lower
contrast on the heart boundary). Despite the challenges,
development of an automated method for heart
segmentation could provide significant clinical value [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        Several methods have been proposed [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ][
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][3] for
segmenting the heart. Nakamori et al [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] discuss a method
to segment the heart by detecting points along the heart
boundary, which are then fitted using a Fourier shape
model. This method was used in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] to automatically
compute the cardiothoracic ratio (CTR) in 400
radiographs. Out of the 400 radiographs, 20% required
manual intervention. It was also shown in [3] that the heart
boundaries outlined by four experienced radiologists had a
high degree of variability, which is an important result
when considering how to assess automatic methods.
      </p>
      <p>
        Van Ginneken et al [4] discuss several approaches to
heart segmentation: active appearance model (AAM),
active shape model (ASM) and pixel classification. The
individual methods performed comparably well, though
significantly better performance was obtained when a
hybrid voting scheme was used to combine the three
methods. Shape models, such as the ASM, have the
drawback that their fitting routine can get caught in local
optima [
        <xref ref-type="bibr" rid="ref6">5</xref>
        ]. This effect can become quite pronounced when
applied to images that differ significantly from those used
to build the model. This point is particularly important in
our application as abnormal hearts are precisely what we’re
trying to detect. For this reason, we opted for a different
approach.
      </p>
      <p>
        One important use of heart segmentation is the
measurement of the cardiothoracic ratio. The CTR is an
important measurement that can imply cardiomegaly
(abnormally large heart) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The CTR is defined as the
maximum transverse diameter of the heart, divided by the
maximum internal diameter of the thoracic cage [
        <xref ref-type="bibr" rid="ref8">6</xref>
        ]
Research in to methods for automatic CTR extraction has a
long history [
        <xref ref-type="bibr" rid="ref8">6</xref>
        ]. Later in the paper we show how the CTR
can be used for assessing the quality of a heart
segmentation. Although the CTR can be computed without
segmenting the heart, segmentation is useful as it can help
radiologists validate the result. Figure 1 illustrates the idea.
      </p>
      <p>
        We use an algorithm based on dynamic programming
(DP) to segment the heart. DP, an important algorithm in
Artificial Intelligence [
        <xref ref-type="bibr" rid="ref9">7</xref>
        ], is used in applications such as
finding the shortest path within a graph. DP decomposes a
complicated problem into simpler sub problems; and, based
on Bellman’s “Principle of Optimality”, the optimal
solution to the original problem can be obtained by
combining the solutions to each sub problem.
      </p>
      <p>In the proposed algorithm we formulate the DP sub
problem in an innovative way. The cost matrix is generated
using image information assigning minimum cost to the
pixels having heart edge characteristics. The cost matrix is
generated in the polar domain since the heart shape is
mostly circular. By using this method we allow the shape
to vary in regions where enough information is present, but
force the shape to be circular in regions of uncertainty.</p>
      <p>In the next sections we describe our algorithm based
on dynamic programming in detail, followed by a
presentation of extensive experimental results and a
conclusion.</p>
    </sec>
    <sec id="sec-2">
      <title>Materials and Methods</title>
      <p>
        We used the 247 chest radiographs from the JSRT
database to test the method. The JSRT database is
available publicly and consists of screen-film images
digitized with a 0.175mm pixel size and 2048×2048 image
size [
        <xref ref-type="bibr" rid="ref10">8</xref>
        ]. The heart annotations for this dataset [
        <xref ref-type="bibr" rid="ref11">9</xref>
        ] are
available and were used to evaluate our method.
In Figure 2 a flowchart of the method is shown.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Region of Interest around the Heart</title>
      <p>
        We first obtain the ribcage mask and the segmented lung
masks from the chest radiographs. This is done using a
method developed by Riverain Technologies. The lung
masks are then used to detect locations where the air,
heart, and diaphragm intersect as shown in Figure 3. These
locations are computed based on a curvature detection
method as discussed in [
        <xref ref-type="bibr" rid="ref12">10</xref>
        ]. The average of these two
locations, as shown in Figure 3, is used as the end row
value to define an approximate bounding box around the
heart region.
      </p>
      <p>The top row of the bounding box, as shown in Figure 3,
is selected as the location where the heart and the left lung
first meet. The bounding box column locations, as shown
in Figure 4, are the locations along each lung mask that are
at a maximum distance from the central column.</p>
      <p>This bounding box is used to define a center and a radius
around the approximate heart region. The center is selected
as the midpoint of the bounding box and the radius is
selected as half of the distance between the end column
locations.</p>
    </sec>
    <sec id="sec-4">
      <title>Polar Transform</title>
      <p>The border of the heart is roughly circular. For this reason
we apply a polar transform defined in equations (1)-(3) to
the approximate heart region.</p>
      <p>(
)
√
(</p>
      <p>)
(
)
(1)
(2)
where ( ) is the image in the Cartesian coordinate
system and ( ) is the image in the polar coordinate
system.</p>
      <p>The polar transform is applied to the image as shown in
Figure 5(a) using the center and radius as defined in the
previous section. To ensure all of the heart is included, the
radius is multiplied by a factor α. In this paper we selected
a α value of 1.5. The polar domain image as shown in
Figure 5(b) is used to compute a cost matrix for the
purpose of dynamic programming.</p>
    </sec>
    <sec id="sec-5">
      <title>Dynamic Programming</title>
      <p>In dynamic programming, the most important part is
constructing the cost matrix. Each pixel in the cost matrix
is assigned a local cost, where we use low cost values for
pixels that have characteristics typical of the heart
boundary. The local cost is defined as a linear combination
of individual cost images:
(4)
where is the cost based on the gradient magnitude,
is the weight assigned to , is the cost
based on a smoothed gray scale image and is the
weight assigned to . The gradient is calculated by
computing the derivative along each column (derivative in
the radial direction). The gray scale cost term is defined by
first computing a nominal value for the heart-lung border.
This is done for each column within a smoothed image.
These nominal values are then used to measure each
pixel’s deviation from the expected border value. Each
local cost term is scaled to the unit interval prior to
combining.</p>
      <p>Given the local cost matrix, the next step is to compute
the cumulative cost. The cumulative cost accounts for
both the local and transitional costs. The transitional term
weights the cost of going from one pixel to the next. The
transitional cost we use increases with pixel distance, thus
enforcing a smoother result. The total cumulative cost
matrix is defined as follows:
(
)
(</p>
      <p>)
(
)
(
)
(
)
( )
(5)
(6)
where T represents the transition cost. The value “s” is the
offset between pixels when going from one column to the
next. The value of this offset is not allowed to be larger
than a specified value, “k”, depending upon the desired
path smoothness. The value of k for our experiments was
set to 3 pixels.</p>
      <p>Pixels outside the lung mask, or those having cost
values above a maximum acceptable threshold, are set to
the maximum cost value as shown in Figure 6. This causes
a straight line to be the optimum path for these regions
(circular arc in Cartesian domain).</p>
    </sec>
    <sec id="sec-6">
      <title>Experiments</title>
      <p>We carried out two experiments to validate the proposed
method. First, the algorithm output is compared to the
manual outlines to evaluate the accuracy of the heart
segmentation. In a second experiment, we compared CTR
values extracted from the algorithm against those extracted
from manual outlines. The specific aim of this experiment
was to evaluate if a reliable CTR estimate can be obtained
even with a low overlap score.</p>
      <p>The overlap score, Ω, between the manually outlined
heart boundary and the output of our method is defined in
equation (7).
where TP is the true positive area, FP is the false positive
area, and FN is the false negative area.</p>
      <p>Figure 8 illustrates a summary of the overlap scores
obtained by our method.</p>
      <p>Overlap Score Distribution on 247 images
0.2
0.4 0.6
Overlap Score
0.8
1</p>
      <p>The CTR values are computed by detecting the internal
diameter (ID) of the thorax and the transverse diameter of
the heart (TD = MR+ML, Figure 1).</p>
      <p>The ID value was derived from the ribcage mask. The
TD values were computed using the heart mask derived
from the algorithm output and the manual outlines.</p>
      <p>A relative difference between the CTR values was
computed using the above TD and ID values. Figure 9
shows a scatterplot comparing the overlap score with the
relative CTR measure. From this plot we can deduce that a
good CTR estimate can be obtained even with a low
overlap score. An example of such a case is shown in
(7)
(8)</p>
      <p>Some typical output segmentations are presented in
Figure 12. As can be seen, our proposed method captures
the actual heart contour fairly accurately in most of the
cases.</p>
    </sec>
    <sec id="sec-7">
      <title>Discussion</title>
      <p>An average overlap score of 0.867 ± 0.046 was obtained
from the 247 JSRT images. We find that our method
produces outputs that are close to the human observer,
while comparing favorably to the other methods discussed
in the survey paper [4]. The overlap scores in Table 1 are
for the three hybrid methods discussed in [4]. These hybrid
methods make use of multiple methods making them
computationally intensive. In addition, these methods are
supervised approaches whose outputs might not extend to
more atypical cases. By comparison, our method is far less
complex and has the advantage of making very few
assumptions about the shape of the heart.</p>
      <p>3
65
69
80
78
63
93</p>
    </sec>
    <sec id="sec-8">
      <title>Conclusion</title>
      <p>We presented an algorithm for segmenting the heart region
using dynamic programming. The proposed algorithm
provided an accurate and reproducible method for heart
segmentation. The presented method makes few
assumptions about the heart shape, has a simple
implementation, and provides superior performance to
previously published results.</p>
      <p>Future work will involve the collection of more data,
which is needed for further evaluation and the
development of strategies for handling outlier cases. Also,
additional image features for improving the local cost term
will be explored.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>N.</given-names>
            <surname>Nakamori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Doi</surname>
          </string-name>
          , V. Sabeti, and H. MacMohan, “
          <article-title>Image feature analysis and computer-aided diagnosis in digital radiography: Automated analysis of sizes of heart and lung in chest images</article-title>
          ,
          <source>” Med Phys.</source>
          , vol.
          <volume>17</volume>
          : pp.
          <fpage>342</fpage>
          -
          <lpage>350</lpage>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>N.</given-names>
            <surname>Nakamori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Doi</surname>
          </string-name>
          , H. MacMohan,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sasaki</surname>
          </string-name>
          , and
          <string-name>
            <surname>S.</surname>
          </string-name>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Montner</surname>
          </string-name>
          , “
          <article-title>Effect of heart-size parameters computed from digital chest radiographs on detection of cardiomegaly: Potential usefulness for computer-aided diagnosis,” Investigat</article-title>
          . Radiol., vol.
          <volume>26</volume>
          : pp.
          <fpage>546</fpage>
          -
          <lpage>550</lpage>
          ,
          <year>1991</year>
          [3]
          <string-name>
            <given-names>R.</given-names>
            <surname>Kruger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Townes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Hall</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Dwyer</surname>
          </string-name>
          , S.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Lodwick. “</surname>
          </string-name>
          <article-title>Automated radiographic diagnosis via feature extraction and classification of cardiac size and shape descriptors,” IEEE transaction on Biomedical Engineering</article-title>
          ., vol. BME-
          <volume>19</volume>
          :pp.
          <fpage>174</fpage>
          -
          <lpage>186</lpage>
          ,
          <year>1972</year>
          [4]
          <string-name>
            <given-names>B.</given-names>
            <surname>Van Ginneken</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Stegmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Loog</surname>
          </string-name>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <article-title>“Segmentation of anatomical structures in chest radiographs using supervised methods: a comparative study on a public database”</article-title>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T. F.</given-names>
            <surname>Cootes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. J.</given-names>
            <surname>Taylor</surname>
          </string-name>
          , D. Cooper, and
          <string-name>
            <given-names>J.</given-names>
            <surname>Graham</surname>
          </string-name>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          <article-title>“Active shape models - their training and application,” Computer Vision</article-title>
          and Image Understanding., vol.
          <volume>61</volume>
          (
          <issue>1</issue>
          ):pp.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>H.</given-names>
            <surname>Becker</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Nettleton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Meyers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Sweeney</surname>
          </string-name>
          ,
          <article-title>Jr CM Nice. “Digital computer determination of a medical diagnostic index directly from chest X-ray images,” IEEE Transaction on Biomedical Engineering</article-title>
          ., vol. BME-
          <volume>11</volume>
          :pp.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Stuart</given-names>
            <surname>Russell</surname>
          </string-name>
          , Artificial Intelligence:
          <string-name>
            <given-names>A Modern</given-names>
            <surname>Approach .</surname>
          </string-name>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J.</given-names>
            <surname>Shiraishi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Katsuragawa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ikezoe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Matsumoto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Kobayashi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Komats</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Matsui</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Fujita</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Kodera</surname>
          </string-name>
          , and
          <string-name>
            <given-names>K.</given-names>
            <surname>Doi</surname>
          </string-name>
          . “
          <article-title>Development of a digital image database for chest radiographs with and without a lung nodule: Receiver operating characteristic analysis of radiologists' detection of pulmonary nodules”</article-title>
          .
          <source>AJR.</source>
          , vol.
          <volume>174</volume>
          :pp.
          <fpage>71</fpage>
          -
          <lpage>74</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Image</given-names>
            <surname>Sciences</surname>
          </string-name>
          Institute Research Databases.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Muhammad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M</given-names>
            <surname>Asif</surname>
          </string-name>
          and
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Asin</surname>
          </string-name>
          . “
          <article-title>A new approach to corner detection,” Computer imaging and vision</article-title>
          , vol.
          <volume>32</volume>
          :pp.
          <fpage>528</fpage>
          -
          <lpage>533</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>