<!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>Automatic Detection of Bone Contours in X-Ray Images</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alexey Mikhaylichenko</string-name>
          <email>alexey.a.mikh@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yana Demyanenko</string-name>
          <email>demyanam@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elena Grushko</string-name>
          <email>elena.i.grushko@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute of Mathematics</institution>
          ,
          <addr-line>Mechanics and Computer Science</addr-line>
          ,
          <institution>Southern Federal University</institution>
          ,
          <addr-line>Rostov-on-Don</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Southern Federal University</institution>
          ,
          <addr-line>Rostov-on-Don</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Detection of bone contours in x-ray images is an important step in the computer analysis of medical images. Analog X-ray images are characterized by low contrast ratio value and high variability of their optical properties. Therefore classical segmentation algorithms based on homogeneity criteria are not applicable. In this paper we propose an approach for automatic bone contours detection which does not require homogeneity of regions. This method is based on accurate edge fragments detection and elimination of discontinuities between them. We have dened the criteria for calculating numerical characteristics of the quality of image contours detection. The obtained results are used for diagnosis of abnormalities and diseases of the detected object.</p>
      </abstract>
      <kwd-group>
        <kwd>X-ray bone segmentation</kwd>
        <kwd>Medical x-ray images</kwd>
        <kwd>Contour extraction</kwd>
        <kwd>Registration</kwd>
        <kwd>Image processing</kwd>
        <kwd>Object detection</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Digital images are currently widely applied for disease diagnostics in medical
science. Using Roentgen radiation for radiograph (X-ray image) acquisition, which
allows detecting fractures, bone abnormalities and other diseases, is one of the
most widely-spread and cost eective non-invasive medical monitoring methods.
However, most of the papers on medical images segmentation are focused on
CT- and MRI images. In this paper we present the method developed for X-ray
images analysis.</p>
      <p>We concentrate on the problem of automatic segmentation of bone structures
in X-ray images. Low contrast ratio value of the analog X-ray images along with
their optical properties complexity is one of the major challenges in solving this
problem. In particular, objects in the radiography images have irregular
texture and intensity. Consequently, traditional segmentation techniques based on
thresholding, region growing, clustering, watershed transformation etc. cannot
be applied, since their implementation requires exact regions homogeneity test.
Deformable models (snakes, active contour models) can be used for X-ray image
segmentation, but an accurate initial estimate is necessary to this end, otherwise
the segmentation result can be unacceptable.</p>
      <p>In this paper we propose an approach for automatic bone contours
detection which does not require homogeneity of regions. It can be used for joint
recognition in X-ray images. This method is based on accurate edge fragments
detection and elimination of discontinuities between them. We have dened the
criteria for calculating numerical characteristics of the quality of image contours
detection. The obtained results can be applicable for diagnosis of abnormalities
and diseases of the detected object.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Overview</title>
      <p>
        As discussed in Section 1, classical segmentation algorithms based on
homogeneity criteria are not applicable. In paper [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] the authors propose to eliminate
the weakness of homogeneity criteria by means of interaction with the user. At
rst mean-shift algorithm is used for initial segmentation. The initial
segmentation produces a set of small regions. After that a region merging algorithm is
used. Region merging technique is based on the markers placed by the user. The
method gives very accurate results. However, the proposed segmentation method
is interactive and it requires user interactions. This restricts its applicability.
      </p>
      <p>
        Some techniques of contours extraction are based on using 2D template of
the desired object or some other a priori knowledge about it [
        <xref ref-type="bibr" rid="ref2 ref3 ref4 ref5">2,3,4,5</xref>
        ]. First,
the initial position of template on the image is identied. Then the method of
active contours with the initial template is used for the identied region [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
The important problem for such methods is the search for the accurate initial
position on an image. The result of applying the method of active contours in
many ways depends on it (Fig. 1, a). Generalized Hough transform is frequently
used for searching the initial position. In paper [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] an incremental approach to
segmentation of femur bones is proposed. The salient features in x-ray images,
including parallel lines, circles etc are used for searching the initial position.
a)
b)
      </p>
      <p>
        However, the methods which use templates have signicant limitations. They
are not applicable for detecting objects with strong shape distortion. And in cases
of medical images such objects are of particular interest. In the article [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] the
authors demonstrate an example of an incorrect contours extraction in cases of
fractured femur with severe shape distortion and healthy bones with fuzzy shape
(Fig. 1, b).
      </p>
      <p>
        The paper [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] solves a similar problem (femur segmentation). The proposed
algorithm is based on active shape model. The major contribution is that a
regularization term representing the smoothness of shape change in each iteration
is incorporated. This reduces limitations of methods, which use templates.
      </p>
      <p>We propose an approach which does not use a priori information about the
shape of the object. This allows us to avoid problems arising from the strong
distortion of the shape.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Contour detection method</title>
      <sec id="sec-3-1">
        <title>Let I be an input X-ray image (Fig. 2, a), i.e.</title>
        <p>I = fI(x; y) 2 [0; 255] j 1 &lt; x</p>
        <p>M; 1 &lt; y</p>
        <p>N g :</p>
        <p>
          Before starting the image undergoes light blurring to eliminate spot noise.
The best results were obtained using bilateral ltration algorithm [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. As a
preliminary, a binary version of input image Ibin is computed with a threshold
evaluated with Otsu’s method [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. In order to get a more consistent and integral
result, morphological dilation with small disk radius can be applied to Ibin.
a)
b)
c)
        </p>
        <p>
          At this stage the image gradient rI is computed, for the purpose we suggest
Kirsch operator [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] (Fig. 2, b). Let jrIj and Idir denote gradient magnitude and
gradient direction respectively. Furthermore, the gradient vector ow (GVF) is
calculated (Fig. 2, c). Although Kirsch or Sobel operator detects edges correctly,
its scope is limited: fairly large gradient values are obtained only in immediate
proximity to the edge, whereas the values for other regions are close to zero.
GVF doesn’t have this limitation. Detailed description and groundings of GVF
computing methods are available in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ].
        </p>
        <p>We further proceed with an image, which is element-wise multiplication of
gradient magnitude and GVF magnitude, we denote it by G1 (Fig. 3, a). For this
image, an estimated binarization threshold T is computed. Edge thinning
operation is then conducted by using GVF direction values. We denote the resulting
image by G2 (Fig. 3, b).</p>
        <p>The next stage is nding binarization threshold for the image G2. We nd it
in T form, where denotes a coecient in the range (0; 1]. For all involved,
binarization threshold of the image G2 with T is conducted. The obtained
binary image contains fragments of the object boundaries. For merging these
fragments into contours special algorithms have been devised. After nishing the
discontinuities elimination procedure we get an image with the target contours.
The quality of obtained contours detection is then numerically estimated, as
dened within the research. After computing the estimates for various threshold
values it remains to choose value such that the estimate is the best, we denote it
by . Further processing involves contours obtained with binarization threshold
T .</p>
        <p>
          The resulting contours are rened with active contour method [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. It is worth
noting that before applying the method we should ensure that the traversal
ordering for all contours will be the same. The equality of contour ordering is
also important on the recognition stage. Subsequently, it becomes possible to
classify the objects whose contours were detected (e.g. bone type denition,
getting its healthy/normal condition or defects detection).
3.1
        </p>
        <p>Pre-processing
Let v = [u(x; y); v(x; y)] denote gradient vector ow eld of input image.
and jvj are computed using the formulas:
vdir
1. Brightness gradient magnitude is calculated for each pixel of the image</p>
        <p>Gb(x; y) = max(jG1;x(x; y)j; jG1;y(x; y)j):
Directional derivatives G1;x, G1;y are regarded as discrete analogs of
dierentiation operator:</p>
        <p>G1;x(x; y) = G1(x + 1; y)</p>
        <p>G1(x</p>
        <p>G1;y(x; y) = G1(x; y + 1) G1(x; y
2. Target threshold is calculated according to formula
1; y);</p>
        <p>1):
T</p>
        <p>N M</p>
        <p>P P G1(x; y) Gb(x; y)
= y=1 x=1</p>
        <p>N M
P P Gb(x; y)
y=1 x=1
:
(1)
3.3</p>
        <p>Chaining
Let Gbin denote an image obtained by binarizing G2 with some threshold. This
image contains fragments of edges. We propose an approach of chaining the
fragments, i.e. elimination of discontinuities between the fragments that belong
to one contour. Chaining algorithm includes two stages. At the rst stage, we
eliminate discontinuities for pairs of pixels. At the second stage, we process
pixels left unpaired. Both stages run iteratively. At each iteration we remove
discontinuities whose length is less than a dened constraint K. We increase K
at each iteration.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Discontinuity points</title>
        <p>Let U (p) denote a set of pixels of a boundary which are adjacent to p (i.e. pixels
for which Gbin(pi) = 1), jU (p)j denotes cardinality. Pixels of the boundary are
assumed 8-adjacent: jU (p)j 8, denotes Euclidean distance between the points.
We distinguish 3 types of discontinuities in boundaries (Fig. 4):
1. a point, for which jU (p)j
2. a point, for which</p>
        <p>1</p>
      </sec>
      <sec id="sec-3-3">
        <title>3. a point, for which</title>
        <p>U (p) = fp1; p2g :
(p1; p2) = 1; x1 = x2 _ y1 = y2</p>
        <p>U (p) = fp1; p2; p3g :
(p1; p2) = 1; (p1; p3) = 1; x1 = x2; y1 = y3
Let p and q denote discontinuity points, r a point adjacent to p. We dene
u as a vector codirectional with r-to-p vector. Coecient d denotes deviation
range between points q and p in the u direction (see Fig. 5).</p>
        <p>Knowing u direction and d value, we dene vectors and ! to limit area of
searching the discontinuity point associated with p point:
x = ux cos ( d)</p>
        <p>uy sin ( d);
y = ux sin ( d) + uy cos ( d);
!y = ux cos d</p>
        <p>uy sin d;
!y = ux sin d + uy cos d:</p>
        <p>If q is located between limiting vectors and ! with origin p (2), then we
attempt to eliminate discontinuity between p and q.</p>
        <p>!xty
!ytx
0; tx y
ty x &lt; 0;
(2)</p>
        <p>Chaining implies nding a set of 8-adjacent pixels that provide 8-adjacency
of p and q, i.e. nding a path between p and q.</p>
        <p>For path search we apply algorithm A , which is an extension of Dijkstra’s
algorithm demonstrating acceptable results on a plain grid. We apply following
heuristics:
the entire image is traversable;
the cost of point p traversal is jrI(p)j value multiplied by 1;
the cost of point-to-point transfer includes Euclidian distance and absolute
dierence of gradient values;
the next point selection relies on heuristic evaluation of distance to the target.</p>
        <p>The range of jrIj values is preliminary scaled. The larger the gradient values
range, the more precise obtained curve retraces the boundary of the target object.
Some regions of the image contain densely spaced bounds of two dierent objects.
In that case the algorithm can jump to another object’s bound due to gradient
identity. Therefore it’s important to t the scaling coecients. In this paper we
suggest mapping jrIj values to [0; 10].</p>
        <p>Let us denote found path by = f igiL=1, average gradient value of the entire
image by , path cost by :
=
1. Path cost is more than conditional cost 0 = L
:</p>
        <p>Parameter is directly-proportional to restriction K on length of the
discontinuity being removed;</p>
        <p>does not intersect already existing fragments of bounds on the image Gbin
(Fig. 6, left);</p>
        <p>If the conditions hold, we assert that points of
the image Gbin (Fig. 6, right).
belong to target bounds on
For an unpaired point of discontinuity, the curve is grown following the
gradient. Next point of the curve is chosen in a direction orthogonal to gradient in
the previous point. We halt growing the curve if we reach a pixel for which at
least one of the following conditions holds:
1. it is an element of some bound fragment (Fig. 7, left):
2. it is a border pixel of the image (Fig. 7, right):</p>
        <p>(x; y) : Gbin(x; y) = 1;
(x; y) : x 2 f1; M g _ y 2 f1; N g:</p>
        <p>We do not consider the curves whose length exceeds the constraint K. If
condition (3) holds for , then we assert that points of belong to target
bounds on the image Gbin.
(4)
(5)
Let W denote a set of image I pixels whose intensity values exceed binarization
threshold found by applying Otsu’s algorithm to I.</p>
        <p>We further denote bounded region by , number of the region pixels by j j,
W cardinality within region by w( ), average pixels intensity value of image
I in region by avg( ), number of binary image A pixels whose intensity value
exceeds binarization threshold by v(A):
w( ) =</p>
        <p>X Ibin(p);
p2
1</p>
        <p>X I(p);
j j p2
avg( ) =
p2S
v(A) =</p>
        <p>X A(p); S = [1; M ] [1; N ]:
quality with</p>
        <p>Our prime interest is in the regions
i such that:
1. avg( i) exceeds the threshold found by applying Otsu’s method to image I;
2. jw( i) j jj &lt; ".</p>
      </sec>
      <sec id="sec-3-4">
        <title>We denote class of such regions by</title>
        <p>i. We estimate edge detection
n
= S</p>
        <p>i=1
E =
w( )
v(Ibin)
1
v(G
v(Ibin)</p>
        <p>Ibin)
1</p>
        <p>j j
N M
w( )
v(Ibin)
;
(6)
where G denotes binary image after applying chaining algorithm.
We adjust threshold for the best contour detection. To that end, we use suggested
numerical estimate. We propose an algorithm of threshold computation in the
form T as follows.</p>
        <p>For all in (0; 1] with some increment, we execute the following steps:</p>
      </sec>
      <sec id="sec-3-5">
        <title>1. binarizing image G2 with threshold T ;</title>
        <p>2. obtained binary image undergoes chaining procedure, the resulting image is</p>
        <p>G;
3. edges of the objects are extracted on the image G;
4. obtained set of contours is numerically estimated by E .</p>
        <p>After computing E
we search</p>
        <p>:
= argmax E :
The result of nal edge detection is a set of contours detected with threshold
T .</p>
        <p>To rene the detected edges, active contour method can be applied. The
suggested detection method assures that small iterations number of active contour
method is required.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experimental results</title>
      <p>We tested the algorithm for X-ray images of knee and elbow joint in lateral and
coronal view, with various resolution, quality and distortion of bones. We have
tested about 100 X-ray images provided by Rostov State Medical University.</p>
      <p>The eciency evaluation results of the proposed method are presented in
Table 1. Contours on 74% of test images were successfully extracted, despite the
variations in shapes, sizes and shape distortion of the bones (Fig. 8). 14; 2% of
the images are marked as a partial success (Fig. 9, a, b). The other 11; 8% do
not have acceptable results (Fig. 9, c). Failed samples contain such artifacts as
noise or many false borders, caused by the process of obtaining analogue images.
The paper introduces the method of automatic detection of bone contours in
medical X-ray images. It is based on boundary fragments detection with further
chaining them to contours. The method does not require homogeneity, the lack of
which is typical for X-ray images. Numerical estimate of edge detection quality
is also proposed.</p>
      <p>Algorithm specicity provides an opportunity to make good use of
parallelizing the computation (in particular on the stages of chaining and threshold
adjusting). This implies high-speed performance of the developed program.</p>
      <p>The method was tested on a set of medical images provided by Rostov State
Medical University.</p>
      <p>In contrast to methods based on template matching, the suggested approach
is applicable for detecting the objects of badly distorted shape (bone fractures,
ail joint etc). Consequently, it is suitable not only for health status evaluation
but for classifying defects in joints within health screening as well.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Stolojescu-Crisan</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Holban</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>An Interactive X-Ray Image Segmentation Technique for Bone Extraction</article-title>
          .
          <source>International Work-Conference on Bioinformatics and Biomedical Engineering</source>
          , pp.
          <volume>11641171</volume>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ee</surname>
            ,
            <given-names>X. H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leow</surname>
            ,
            <given-names>W. K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Howe</surname>
            ,
            <given-names>T. S.</given-names>
          </string-name>
          :
          <article-title>Automatic Extraction of Femur Contours from Hip X-ray Images</article-title>
          .
          <source>Computer Vision for Biomedical Image Applications</source>
          , pp.
          <volume>200209</volume>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Behiels</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vandermeulen</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maes</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Suetens</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Dewaele</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Active shape model-based segmentation of digital x-ray images</article-title>
          .
          <source>Proceedings of the Second International Conference on Medical Image Computing and Computer-Assisted Intervention</source>
          , pp.
          <volume>128137</volume>
          (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Garcia</surname>
            ,
            <given-names>R. L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fernandez</surname>
            ,
            <given-names>M. M.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Ignacio</given-names>
            <surname>Arribas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. I.</given-names>
            ,
            <surname>Lopez</surname>
          </string-name>
          ,
          <string-name>
            <surname>C. A.</surname>
          </string-name>
          :
          <article-title>A fully automatic algorithm for contour detection of bones in hand radiographs using active contours</article-title>
          .
          <source>IEEE International Conference on Image Processing</source>
          , pp.
          <volume>421424</volume>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Chernuhin</surname>
            ,
            <given-names>N. A.</given-names>
          </string-name>
          :
          <article-title>On an approach to object recognition in X-ray medical images and interactive diagnostics process</article-title>
          .
          <source>IEEE Proceedings: Computer Science and Information Technologies (CSIT)</source>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Williams</surname>
            <given-names>D. J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shah</surname>
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A Fast Algorithm for Active Contours and Curvature Estimation</article-title>
          .
          <source>CVGIP: Image Processing. Volume55, No</source>
          <volume>1</volume>
          ,
          <string-name>
            <surname>January</surname>
          </string-name>
          . P.
          <volume>1426</volume>
          (
          <year>1992</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Tomasi</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Manduchi</surname>
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Bilateral ltering for gray and color images</article-title>
          .
          <source>Sixth International Conference on Computer Vision</source>
          . IEEE, pp.
          <volume>839846</volume>
          (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Otsu</surname>
          </string-name>
          , N.:
          <article-title>A threshold selection method from gray-level histograms</article-title>
          .
          <source>IEEE Trans. Sys</source>
          .,
          <string-name>
            <surname>Man</surname>
          </string-name>
          .,
          <source>Cyber</source>
          .
          <volume>9</volume>
          :
          <issue>6266</issue>
          (
          <year>1979</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Kirsch</surname>
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Computer determination of the constituent structure of biological images</article-title>
          .
          <source>Computers and Biomedical Research</source>
          , 4. P.
          <volume>315328</volume>
          , (
          <year>1971</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Xu</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Prince</surname>
            <given-names>J. L.</given-names>
          </string-name>
          :
          <string-name>
            <surname>Snakes</surname>
          </string-name>
          , Shapes, and
          <article-title>Gradient Vector Flow</article-title>
          .
          <source>IEEE Transactions on Image Processing</source>
          ,
          <volume>7</volume>
          (
          <issue>3</issue>
          ), pp.
          <fpage>359369</fpage>
          , (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Canny</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>A Computational Approach To Edge Detection</article-title>
          .
          <source>IEEE Trans. Pattern Analysis and Machine Intelligence</source>
          ,
          <volume>8</volume>
          (
          <issue>6</issue>
          ):
          <fpage>679</fpage>
          -
          <lpage>698</lpage>
          (
          <year>1986</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>