Research Article  Open Access
Automatic Segmentation of Ulna and Radius in Forearm Radiographs
Abstract
Automatic segmentation of ulna and radius (UR) in forearm radiographs is a necessary step for single Xray absorptiometry bone mineral density measurement and diagnosis of osteoporosis. Accurate and robust segmentation of UR is difficult, given the variation in forearms between patients and the nonuniformity intensity in forearm radiographs. In this work, we proposed a practical automatic UR segmentation method through the dynamic programming (DP) algorithm to trace UR contours. Four seed points along four UR diaphysis edges are automatically located in the preprocessed radiographs. Then, the minimum cost paths in a cost map are traced from the seed points through the DP algorithm as UR edges and are merged as the UR contours. The proposed method is quantitatively evaluated using 37 forearm radiographs with manual segmentation results, including 22 normalexposure and 15 lowexposure radiographs. The average Dice similarity coefficient of our method reached 0.945. The average mean absolute distance between the contours extracted by our method and a radiologist is only 5.04 pixels. The segmentation performance of our method between the normal and lowexposure radiographs was insignificantly different. Our method was also validated on 105 forearm radiographs acquired under various imaging conditions from several hospitals. The results demonstrated that our method was fairly robust for forearm radiographs of various qualities.
1. Introduction
Ulna and radius (UR) are sensitive to changes in a human bone mineral density (BMD) index. A low BMD can cause osteoporosis. Osteoporosis is extensively recognized as an important public health problem, given the significant morbidity and mortality associated with its complications, such as fragility fractures. BMD measurements play a crucial role in evaluating patients at risk of osteoporosis [1]. Noninvasive BMD measurement methods mainly consist of single Xray absorptiometry (SXA), dualenergy Xray absorptiometry, quantitative ultrasound, and quantitative computed tomography [2]. The SXA methods are extensively applied in clinics, and the methods have the advantages of low radiation, easy operation, and lowcost for patients.
Accurate and robust extraction of the UR from forearm radiographs is needed in a BMD measurement system of the SXA. The extraction is a challenging task for several reasons. Large interpatient variations are exhibited in forearm radiographs, as shown in Figure 1. The exposure dose, the directions of forearms, the valid imaging region, and the positions of irrelevant objects vary in the radiographs. The contrast of forearm radiographs is typically low [3]. The contours of the UR in forearm radiographs are weak, fuzzy, and diffusive near the wrist regions that frequently overlap with other bones and soft tissues. In particular, this phenomenon is evident in the forearm radiographs of elderly patients. Intensity inhomogeneity may result in inaccurate pixel classification in several intensity clustering and classification approaches. Furthermore, clinical forearm radiographs have serious global intensity inhomogeneity (Figure 1). The background intensity is uneven globally under the effect of the Xray tube anode.
A few studies have been conducted on the segmentation of UR in forearm radiographs. Antonio et al. used kmeans clustering algorithm to semiautomatically segment the distal UR in radiographs [4, 5]. However, the segmentation results are lack of quantitative evaluation in these studies. We had applied kmeans to segment the forearm radiographs. Nevertheless, it turns out that kmeans is unsuitable for segmenting our collected forearm radiographs. Pixelbased clustering algorithms may not be robust to noise and serious global intensity inhomogeneous images. Furnstahl et al. applied graphcuts to segment the UR in 3D forearm computed tomography (CT) images [6]. Furthermore, the statistical pose and shape models [7–10] had been proposed to segment wrist bones in the CT images. The shape modelbased methods produce average shapes and are ineffective with abnormal cases. The segmentation performance of the shape models relies on the approximation accuracy of an initial solution. These characteristics have reduced the practicability, robustness, and generalization ability of the methods.
In this work, we aim to develop an accurate and robust method for segmentation of UR in forearm radiographs for practical applications. In contrast to the shape modelbased methods, the dynamic programming (DP) algorithm is efficient and simple. Yu et al. used the DP algorithm to effectively trace the optimal seam line between two images [11]. Yang used the DP algorithm to quickly extract the contours of the ribcage field in chest radiographs [12]. Following these studies, we apply the DP algorithm to trace the contours of UR from four seed points in two cost maps. The automatically detected seed points are located in four UR diaphysis and soft tissue edges, correspondingly. Two cost maps are horizontal and vertical. The latter is used to trace the UR diaphysis edges, and the former is used to trace the UR edges near the wrist using the DP algorithm. Three examples of the segmentation results produced by our method are demonstrated in Figure 1.
The remainder of this paper is organized as follows. The framework and details of our method are described in Section 2. The experiments and evaluations are presented in Section 3. The summary is provided in Section 4.
2. Methods
2.1. Overview
In this work, we aim to develop a practical and robust method for automatic segmentation of UR in forearm radiographs. The core of our proposed method is tracing the minimum cost paths from the seed points to the end points in a reasonable cost map. The flowchart is shown in Figure 2. To effectively perform segmentation and robustly process the varied and lowquality images, a series of preprocessing steps is applied to standardize the input radiographs. First, irrelevant regions are cropped, and the cropped image is downsampled. Second, the hand direction is corrected to the standard direction to eliminate the hand direction variation for further processing. Third, the forearm and hand mask are extracted. The intensities in the masked regions are normalized into the range [0, 1]. Thus, the interference effect of the background intensity nonuniformity and disturbing objects on further seed point detection are eliminated. Bilateral filter [13] is used to reduce noise, and the histogram equalization algorithm are used to enhance the contrast. After the preprocessing, a standard input image is obtained, as displayed in Figure 2. Four points at the edges of UR diaphysis are then detected as the seed points, and two cost maps (vertical and horizontal) are computed on the preprocessed image. Finally, the DP algorithm is applied to trace four UR diaphysis segments from four seed points in the vertical cost map and the two UR segments near the wrist to close the UR contours.
2.2. Preprocessing
In our study, the size of forearm radiographs is very large (i.e., approximately 2816 × 2816 pixels). Given the anatomical shape characteristics of the forearm, the interest region for analysis is small in the input forearm radiographs. Irrelevant background areas can complicate the subsequent detection of seed points. We remove the background regions and downsample the radiographs for subsequent processing. In the original forearm radiographs, the direction of the forearm may vary. Thus, we correct the direction of the forearm into the standard direction (from left to right). Then, we extract the forearm mask, followed by contrast enhancement and denoising. The details of the preprocessing procedure are as follows.(1)Image cropping: first, the invalid regions are cropped in the original forearm radiographs. The cropping coordinate ranges are estimated from the vertical and horizontal intensity projections (Figure 3(a)) of the forearm radiographs. In this figure, the red and blue lines present horizontal and vertical intensity projection lines, respectively. We denote the points (blue and red arrow positions in Figure 3(a)) on the intensity projections as the coordinates for cropping. The red rectangle region displayed in Figure 3(a) is the remaining valid region after removing the invalid regions. Then, the valid region is downsampled by bilinear interpolation.(2)Direction correction: first, the primary direction of the forearm is determined simply by the width and height of the cropped valid region. If the width is smaller than the height of the valid region, the forearm direction is either up or down. In this case, the image is rotated 90° clockwise. Then, the horizontal direction of the forearm is determined by double thresholding the valid region. In Figure 3(d), the binary mask is the difference of the high and lowthreshold binary masks. Figures 3(b) and 3(c) present the binary masks thresholded by the low and high thresholds, correspondingly. If the greatest difference is located in the left of the binary mask, then the forearm direction is from right to left and the valid region is rotated 180° clockwise.(3)Background cleaning: the global thresholding method is used to extract the mask in the valid region of the corrected direction. To assure that the forearm is included in the mask, the forearm mask is enlarged by the morphologic dilation operation. The intensities of the pixels outside of the forearm mask are set to 0, as illustrated in Figure 3(f).(4)Image denoising and contrast enhancement: the bilateral filter is applied to suppress noise in the image obtained in Step (3). Then, the histogram equalization algorithm is applied to enhance the gray contrast, as depicted in Figure 3(g).
(a)
(b)
(c)
(d)
(e)
(f)
(g)
2.3. Seed Point Detection
To extract the UR contours automatically through the DP algorithm, the seed points on each UR diaphysis and soft tissue edge lines must be identified, respectively. The prior knowledge of the forearm shape and the anatomical structures can help in identifying these seed points. Considering that the four edge lines of the UR diaphysis and soft tissue are more or less horizontally parallel. We use the vertical gradient of a column of the UR to determine the seed points. We locate the horizontal coordinate of the end distal of UR (the x_{0} demonstrated in Figure 4(a)). In Figure 4(a), we observe that the end distal of the UR is located at the minimum peak of the vertical intensity projection (the blue line demonstrated in Figure 4(a)). We also limit the search range of the minimum peak from the range of 0 to the maximum peak point p.
(a)
(b)
We observe that the radius, ulna, and skin in the middle of UR are relatively dispersive and easy to distinguish from each other. Thus, we use the vertical gradient profile in the middle of UR to detect the seed points. In Figure 4(b), the blue line presents a vertical gradient profile. The four seed points for tracing the contours of UR diaphysis and soft tissue are located at four strong local maximum peaks along the vertical gradient profile.
2.4. Cost Maps
The contours of UR diaphysis are approximately horizontally parallel. By contrast, the wrist joint contours of UR are more or less vertically parallel. The gradient directions of the UR diaphysis and joint edges are different. Two cost maps (I_{1} and I_{2}) are defined using vertical and horizontal gradients for tracing the diaphysis and joint edges near the wrist, correspondingly. We let I(x, y) be the cost value of a point (x, y) in map I. I_{1} and I_{2} are defined aswhere and are the scaled and inverted vertical and horizontal gradient:
The second term denotes the inverted binary edge mask detected by Canny edge detector:
Empirically, the weights of λ_{1} = 0.3, λ_{2} = 0.7 in equation (1) seem to work well in a wide range of images. In this work, the Sobel operators are used to compute the horizontal and vertical gradients. Canny edge is robust to the noise given the nonmaximum suppression and double thresholding procedures. However, the edges detected by the Canny edge detector may not be continuous along the weak edges. The gradients can provide several cues along the weak edges for tracing the contours.
2.5. Minimum Cost Path Tracing
The UR contours can be found by searching the minimum cost paths in the cost maps using the DP. Intelligent scissor algorithm uses twodimensional (2D) DP to search the minimum cost path between two input interactive points [14]. However, automatic searching UR contours using 2D DP requires detecting many seed points. By contrast, the priors of the UR shape and orientation benefit for automatic searching UR contours using 1D DP. In this work, the contours of UR diaphysis and joint near wrist separately are approximately horizontally parallel and vertically parallel in the preprocessed radiograms. Thus, the contours of UR diaphysis/joint near wrist can be traced relatively easy along the horizontal/vertical direction using 1D DP.
A UR contour can be divided into two UR diaphysis segments and one UR joint segment. First, we search for the diaphysis segments of each UR contour in the cost map I_{1} from a seed point located in the middle of the UR. The left part of the UR diaphysis segment is traced from a seed point as the starting point to left. Furthermore, the right part of the UR diaphysis segment is traced from the seed point to the end distal of the UR, as shown in Figure 5(a). Then, the UR joint segment is traced from up to down in the cost map I_{2}, as shown in Figure 5(b). Two diaphysis segments and the UR joint segment are merged as one close UR contour, as shown in Figure 5(c).
(a)
(b)
(c)
The first step of tracing each subUR diaphysis segments is to traverse the vertical cost map from the seed point to the end column and compute the cumulative minimum cost c(i, j) for all possible next column threeconnected paths for the seed point (equation (4)). The minimum value of the end column in c indicates the end of the minimum cost path. In the second step, we trace back from the minimum end point c to find the optimal path location. The end point c is set as the seed point of the next subUR diaphysis segment. The subUR diaphysis segment tracing process is repeated until all UR diaphysis segments are found.
Each UR joint segment is found by tracing the minimum cost path from one radius or ulna diaphysis segment to the next in the horizontal cost map. To reduce computation time and avoid finding unreasonable UR contours, the range of entry (i, j) is limited to the area from x_{0} − n/10 to x_{0} + n/10 columns in the horizontal cost map of m × n:where c(i, j) presents the minimum sum cost value from point (i, j) to the seed point. N is the row or column number of the image.
3. Experiment Results
3.1. Experiment Data
We implemented the proposed method in C++ with OpenCV library. The experiments were performed on a PC with 8 GB RAM and an Intel i56500 CPU (3.20 GHz). The dataset, which includes 142 forearm radiographs, was collected from different hospitals in Guangdong, China. A total of 37 forearm radiographs outlined by an experienced radiologist were used to evaluate the performance of our method, including 22 normalexposure radiographs and 15 lowexposure radiographs.
We used the Dice similarity coefficient (DSC) [15], sensitivity (Sens), false positive rate (FPR), mean absolute distance (MAD), and mean signed distance (MSD) as the evaluation metrics. Three parameters, namely, true positive (TP), false positive (FP), and false negative (FN), are required to compute these metrics. DSC, Sens, and FPR were calculated on the basis of the following formula:where is the cardinality of a set. DSC is the overlap ratio between the ground truth mask R_{A} and the estimated segmentation mask R_{B}. The DSC value close to 1 indicates an improved segmentation:
A high value of Sens indicates a few leakage segmentation pixels in the segmentation mask. FPR reflects the error ratio of recognizing the background pixels as foreground pixels. A low value of FPR denotes a few error background pixels in the segmentation mask. MAD is calculated to evaluate the difference between the ground truth contour A and the automatically extracted contour B.where S(A) and S(B) represent the pixel sets of A and B, respectively. d(p, S(B)) represents the minimum Euclidean distance from a point p to S(B), and d(p, S(A)) represents the minimum Euclidean distance from a point p to S(A). A low value of MAD indicates automatically extracted contours that are close to the ground truth contours:where D(p, S) represents the signed Euclidean distance from a point p to a pixel set S:where Ω_{S} is the inside pixel set of contour S. A positive value of MSD indicates the ground truth contours are average larger than automatically extracted contours.
3.2. Evaluation
We studied the relationship between the segmentation accuracy with the downsample ratios. Figure 6 exhibits the effects of varying downsample ratios on the DSC, MAD, and computation time. The proximal, middle, and distal regions sequentially represent the onethird length region of the UR from left to right. We can observe that a stable segmentation performance is achieved with the decrease in the downsample ratio. The computation time approximately linearly decreases with the downsample ratio. When the downsample ratio is smaller than 0.7, the computation time is reduced. However, all four regions of the segmentation evaluation metrics marginally decrease. The majority of the computation time of our segmentation method procedure is consumed during the seed point detection and edge tracing procedures when the downsample ratio is greater than 0.7. The seed point detection and edge tracing time marginally increase with the downscale ratio, as displayed in Figure 6(c). Reliable segmentation results and reasonable performance can be achieved when the downsample ratio is set to 0.7.
(a)
(b)
(c)
In our study, the cost maps significantly affect the segmentation accuracy. An effective cost map must emphasize the object contours. We conducted experiments to evaluate different cost maps and their combinations. Figure 7 presents the segmentation results obtained through our method with Canny edge, gradient magnitude, and the combined Canny edge and gradient as the cost maps. The results demonstrated that the weighted combination of the gradient with Canny edge as the cost map can lead to more accurate and smooth contours. The cost map with only Canny edge facilitated the poor segmentation, especially near the UR joints, which might be caused by the discontinuous edges and the pseudoedge responses. Furthermore, the cost map with gradient magnitude is sensitive to noise and interference.
We evaluated the robustness of our method for the forearm radiographs of different exposure doses. The examples of the UR segmentation results in the normal and lowexposure radiographs are illustrated in Figure 8. The automatically extracted contours of all cases are fairly accurate and smooth. The quantitative evaluation metrics of our method on the 22 normalexposure images are listed in Tables 1–3. The average DSC is 95.02%, the average MAD is only 4.94 pixels, and the average MSD is 3.67 pixels. The variation in quantitative evaluation values among different patients is small. Furthermore, a high segmentation accuracy of our method is achieved on the lowexposure radiographs. The average DSC is 93.69%, the average MAD is only 5.02 pixels, and the average MSD is 3.7 pixels.



The quantitative results on all samples are summarized in Tables 1–3. The average DSC is 94.5%, the average MAD is 5.04 pixels, the average MSD is 3.68 pixels, the average Sens is 90.9%, and the average FPR is less than 1.5%. The segmentation results in the proximal and middle regions are highly accurate for the normal and lowexposure radiographs. The average Sens in the distal region is 82.64%, and the average FPR is 1.77%. Most segmentation errors have occurred near the wrist joints due to a wide shape variation in these areas.
Our future work aims at improving the cost map and enhancing the difference between the object edges and background edges in the cost map. The cost map of intelligent scissor algorithm [14] is the weighted combination of the Laplacian zerocrossing, gradient magnitude, and gradient direction. The intelligent scissor algorithm is further improved by adding the edge, “inside,” and “outside” pixel values into the cost map in [16]. In [11], the cost map is the weighted combination of intensity similarity, edge similarity, texture similarity, saliency constraint, and location constraint feature map. We also aim at including more effective features into the cost maps. To trace the desired weaker edge nearby strong edge, intelligent scissor algorithm [14] can dynamically update the cost map by onthefly training. Training the cost maps for tracing the joint near wrist segments using the already traced object’s boundary segments will be considered in the future. And, we intend to detect the corners of the radius and ulna as the additional seed points for tracing the joint near wrist segments. To further correct the traced contours, we will take the construction of a flexible template or model of UR into consideration once we collected enough forearm radiographs with manual segmentation results. Furthermore, the relationship between the accuracy of SXA BMD measurement and the accuracy of segmentation method is under further investigation.
4. Conclusions
We presented a practical and efficient method for automatic segmentation of the UR in forearm radiographs. A preprocessing procedure was proposed to standardize the forearm radiographs and make the segmentation method robust to various exposure doses and imaging conditions. The accurate segmentation of our method benefits from the precise detected seed points and two highly discriminative cost maps. Our method is useful for segmenting the UR in forearm radiographs in the SXA BMD measurement system.
Data Availability
The dataset includes 142 forearm radiographs collected from different hospitals in Guangdong, China. The dataset was collected by Shenzhen SONTU Medical Imaging Equipment Co., Ltd and so cannot be made freely available.
Conflicts of Interest
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Acknowledgments
This work was supported by the grants from the National Natural Science Foundation of China (no. 81771916), Natural Science Foundation of Guangdong Province (no. 2015A030313280), the State’s Key Project of Research and Development Plan under Grant (no. 2018YFC2001203), and Guangdong Provincial Key Laboratory of Medical Image Processing (no. 2014B030301042).
References
 G. M. Blake and I. Fogelman, “Role of dualenergy Xray absorptiometry in the diagnosis and treatment of osteoporosis,” Journal of Clinical Densitometry, vol. 10, no. 1, pp. 102–110, 2007. View at: Publisher Site  Google Scholar
 B. EdelmannSchäfer, L. D. Berthold, H. Stracke, P. M. Lührmann, and M. NeuhäuserBerthold, “Identifying elderly women with osteoporosis by spinal dual Xray absorptiometry, calcaneal quantitative ultrasound and spinal quantitative computed tomography: a comparative study,” Ultrasound in Medicine & Biology, vol. 37, no. 1, pp. 29–36, 2011. View at: Publisher Site  Google Scholar
 A. Bielecki, M. Korkosz, and B. Zieliński, “Hand radiographs preprocessing, image representation in the finger regions and joint space width measurements for image interpretation,” Pattern Recognition, vol. 41, no. 12, pp. 3786–3798, 2008. View at: Publisher Site  Google Scholar
 A. Tristán and J. I. Arribas, “A radius and ulna skeletal age assessment system,” in Proceedings of IEEE Workshop on Machine Learning for Signal Processing, pp. 221–226, IEEE, Piscataway, NJ, USA, September 2005. View at: Google Scholar
 A. TristanVega and J. I. Arribas, “A radius and ulna TW3 bone age assessment system,” IEEE Transactions on Biomedical Engineering, vol. 55, no. 5, pp. 1463–1476, 2008. View at: Publisher Site  Google Scholar
 P. Furnstahl, T. Fuchs, A. Schweizer, L. Nagy, G. Székely, and M. Harders, “Automatic and robust forearm segmentation using graph cuts,” in Proceeding of the 5th IEEE International Symposium on Biomedical Imaging: from Nano to Macro, pp. 77–80, IEEE, Paris, France, May 2008. View at: Google Scholar
 E. M. A. Anas, A. Rasoulian, A. Seitel et al., “Automatic segmentation of wrist bones in CT using a statistical wrist shape,” IEEE Transactions on Medical Imaging, vol. 35, no. 8, pp. 1789–1801, 2016. View at: Publisher Site  Google Scholar
 X. Chen, J. Graham, C. Hutchinson, and L. Muir, “Automatic generation of statistical pose and shape models for articulated joints,” IEEE Transactions on Medical Imaging, vol. 33, no. 2, pp. 372–383, 2014. View at: Publisher Site  Google Scholar
 M. van de Giessen, M. Foumani, F. M. Vos et al., “A 4D statistical model of wrist bone motion patterns,” IEEE Transactions on Medical Imaging, vol. 31, no. 3, pp. 613–625, 2012. View at: Publisher Site  Google Scholar
 T. B. Sebastian, H. Tek, J. J. Crisco, and B. B. Kimia, “Segmentation of carpal bones from CT images using skeletally coupled deformable models,” Medical Image Analysis, vol. 7, no. 1, pp. 21–45, 2003. View at: Publisher Site  Google Scholar
 L. Yu, E.J. Holden, M. C. Dentith, and H. Zhang, “Towards the automatic selection of optimal seam line locations when merging optical remotesensing images,” International Journal of Remote Sensing, vol. 33, no. 4, pp. 1000–1014, 2012. View at: Publisher Site  Google Scholar
 W. Yang, Y. Liu, L. Lin et al., “Lung field segmentation in chest radiographs from boundary maps by a structured edge detector,” IEEE Journal of Biomedical and Health Informatics, vol. 22, no. 3, pp. 842–851, 2018. View at: Publisher Site  Google Scholar
 K. N. Chaudhury and S. D. Dabhade, “Fast and provably accurate bilateral filtering,” IEEE Transactions on Image Processing, vol. 25, no. 6, pp. 2519–2528, 2016. View at: Publisher Site  Google Scholar
 E. N. Mortensen and W. A. Barrett, “Intelligent scissors for image composition,” in Proceedings of the 22nd Annual Conference on Computer Graphics and Interactive Techniques, pp. 191–198, ACM, Los Angeles, CA, USA, August 1995. View at: Google Scholar
 L. R. Dice, “Measures of the amount of ecologic association between species,” Ecology, vol. 26, no. 3, pp. 297–302, 1945. View at: Publisher Site  Google Scholar
 E. N. Mortensen and W. A. Barrett, “Interactive segmentation with intelligent scissors,” Graphical Models and Image Processing, vol. 60, no. 5, pp. 349–384, 1998. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2019 Xiaofang Gou et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.