scieee AI-readable full text Open interactive document viewer

Advanced image processing methods for automatic liver segmentation

Strakos, Petr,Jaros, Milan,Karasek, Tomas,Kozubek, Tomas,Vavra, Petr,Jonszta, Tomas

Abstract

This paper presents advanced methods of image segmentation suitable for automatic recognition of the human liver and its vessel system, but in general could be used to segment any organ or body tissue. The comparison of studied methods is being made in terms of segmentation quality and algorithm speed. The main criterion for quality evaluation of each selected method is the level of conformity between the automatically recognized boundary and the reference boundary specified by experienced user. For all the tests sequences of CT and MRI images were used.

Full text

IS - Coupled Problems in Biomechanics and MechanobiologyAdvanced image processing methods for automatic liver segmentation VI International Conference on Computational Methods for Coupled Problems in Science and Engineering COUPLED PROBLEMS 2015 B. Schrefler, E. Oñate and M. Papadrakakis (Eds) ADVANCED IMAGE PROCESSING METHODS FOR AUTOMATIC LIVER SEGMENTATION PETR STRAKOS*, MILAN JAROS†, TOMAS KARASEK†, TOMAS KOZUBEK†, PETR VAVRA†† AND TOMAS JONSZTA†† *† IT4I, VSB – Technical University of Ostrava 17. listopadu 15, 708 33 Ostrava Czech Republic * e-mail: [email protected] †† Faculty of Medicine - University of Ostrava Syllabova 19, 703 00 Ostrava Czech Republic Key words: Image Processing, Automatic Segmentation, Liver, Computed Tomography, Magnetic Resonance Imaging. Summary. This paper presents advanced methods of image segmentation suitable for automatic recognition of the human liver and its vessel system, but in general could be used to segment any organ or body tissue. The comparison of studied methods is being made in terms of segmentation quality and algorithm speed. The main criterion for quality evaluation of each selected method is the level of conformity between the automatically recognized boundary and the reference boundary specified by experienced user. For all the tests sequences of CT and MRI images were used. 1 INTRODUCTION Nowadays digital image processing and analysis is extensively used in different areas of human activities. One of these fields is medicine, where the enormous amount of data has to be processed. In diagnostic medicine, radiologists use for example computed tomography (CT) or magnetic resonance imaging (MRI) to help diagnose diseases or to perform surgical procedures. Although those high-end technologies are very sophisticated and developed, there is still room for improvements especially in the area of post-processing. For example to plan the liver resection, surgeon will need an accurate 3D model of a liver with its vessel system. To visualize 3D data, volume rendering method is available and can be used directly. Disadvantage of this technique is that it does not provide any other information than 3D models for visualization itself. To obtain models for hemodynamics simulations or even models where volume of certain part of the model could be measured, methods of advanced image processing have to be used. The keystone of the digital image processing methods is an image segmentation which works with pixel intensity levels. Segmentation methods like those based on regions (region growing) [1, 2, 3], thresholding (Otsu’s methods) [1, 4], clustering (k-means clustering) [1, 5, 6] and others are available. Those techniques used solely without any further processing are 125 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 2 usually sufficient in cases where different parts of the image have significant differences in intensities of pixels like in cases of bones segmentation. The soft tissues like liver and its vessel system are much more challenging due to low contrast and direct influence of other organs which have the same intensity levels of the pixels. In the paper three main image segmentation algorithms with other pre- and post-processing procedures are used for automatic image segmentation. Segmentation is used to recognize liver tissue and liver vessel system. The first segmentation algorithm is based on region growing [1, 2, 3], the second one works with multi Otsu’s algorithm [1, 4] and the third one is based on k-means clustering [1, 5, 6]. In the paper comparison of above mentioned techniques and procedures in terms of segmentation quality and speed is provided. The main criterion for quality evaluation of each segmentation method is the level of conformity between the automatically recognized boundary and the reference boundary made by specialist. For all the tests sequences of CT and MRI images were used. Each modality of the input data had at least two different sources. One served as training data in the preparation phase and the other one was used for testing of the proposed methods. Combining three main segmentation algorithms and selected pre- and post-processing procedures five different methods for liver segmentation were used in total. Multi Otsu algorithm and k-means algorithm were then used to create two methods for segmentation of the liver vessel system. Paper is organized in the following manner: in section 2 we present detailed description of each automatic segmentation method used for liver and the liver vessel system; in section 3 description of the image data selected for the tests is provided; section 4 describes evaluation method; in section 5 results of the evaluation are shown; section 6 discusses the results; section 7 brings the conclusion. 2 AUTOMATIC SEGMENTATION METHODS In this section description of the main segmentation methods is provided in more detail. All necessary steps for pre- and post-processing of the data are also described. Introduced methods are considered as automatic in case we know at least one point within the segmented object. In case of liver segmentation it is a point inside the liver. For segmentation of vessel system we have to define one point inside the vessel system. Methods for determination of such point or points are described in more details in [7, 8]. 2.1 Region growing algorithm In general region growing algorithm is one of the region based techniques. This algorithm partitions an image into regions that are similar according to a set of predefined criteria [1, 2, 3]. In our case we use a region growing algorithm that groups every pixel around the seed point to one group. To add new pixel to the group, intensity of that particular pixel is evaluated and it is added to the group only if its intensity does not exceed the mean intensity of the group more than the tolerance. The region is grown in 4-neighbourhood manner (north, south, east and west) around the seed pixel, while in total 8-neoghbours are available around the pixel. 126 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 3 2.2 Multi Otsu algorithm Multi Otsu algorithm [1, 4] uses multilevel thresholding to segment the image. It works with pixel intensity levels. Histogram of an image is divided into M classes. The number of classes is user defined parameter. To divide the histogram into M classes M-1 thresholds are necessary. Optimal threshold values are chosen is such a way that between-class variance is maximized. Every pixel in the image is then classified into one of the M classes based on the rule described in (1). 1 12 1 (, ) 1 (, ) 2 (, ) (, ) M gij for fij T for T f i j T M for T f i j − =< = ≤< =≤ ⋮⋮ ⋮ ⋮ (1) where f(i,j) is image pixel and g(i,j) is pixel after classification into one of the M classes. 2.3 K-means clustering K-means clustering is image segmentation algorithm based on clustering. This algorithm partitions n pixels into k clusters, where k is integer value that holds k<n. K-means algorithm classifies pixels in an image into k number of clusters according to some similarity feature like grey level intensity of pixels and distance of pixel intensities from centroid pixel intensity [1, 5, 6]. The algorithm works in the following way: (i) Selection of k clusters (it is a user defined parameter) (ii) Calculation of the total number of image pixels N (iii) Random selection of k initial pixel intensity centroids µ j (iv) Calculation of distances D ij between pixel x i and each centroid µ j as in (2). Particular pixel x i is then classified to cluster c j to which centroid it has the smallest distance 2 () ij i j Dx µ =− (2) where i=1÷N and j=1÷k. (v) Re-calculation of centroid positions µ j as a mean value from all pixel intensities which belong to cluster c j . 1 1 j l ji i j x l µ = = ∑ (3) where l j is a number of pixels that belong to cluster c j . (vi) Steps (iv) and (v) are repeated until classification of image pixels does not change or equivalently centroids do not move. 2.4 Pre-processing procedures Before image segmentation could be performed images have to be pre-processed to reduce noise. Different noise reducing filters are available. In this paper adaptive Wiener filter was used for this purpose. Adaptive Wiener filter is based on statistics estimated from a local 127 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 4 neighborhood of each pixel [9]. Determination of necessary parameters for the three segmentation algorithms to run without further user intervention could be also considered as one of the steps of the preprocessing stage. In case of region growing algorithm optimal intensity tolerance was determined. In case of multi Otsu algorithm optimal number of dividing classes was determined and in case of k-means algorithm optimal number of segmenting clusters was determined. During the preparation phase series of ten images was segmented. Optimized parameter of each segmentation algorithm has varied in particular user defined band over each image and volumetric overlap error (VOE) (see section 4) was evaluated for every segmentation. Lowest sum of VOE values over all images specified the optimal value of the parameter to be used in the test phase. This part of pre-processing can be thus considered as a reference model for the segmentation. The reference model supplies necessary parameters so the segmentation of test images can run automatically. 2.5 Post-processing procedures To obtain boundaries of segmented objects flooding of segmented regions is performed. This is the main post-processing operation. Extracted boundaries can then be approximated by closed cubic spline. This is the case of liver segmentation where such smoothing of the boundary suits the expected shape of the liver. In case of vessel system segmentation only area flooding with the boundary extraction without spline approximation was used. For area flooding with boundary extraction we used modification of the basic 4-directional flood-fill algorithm [10]. Modification resides in marking the boundary pixel every time the flooding boundary is met and not only flooding the area without creating the boundary. User can also size the flooding element of square shape above the 1 pixel minimum. This modification is used to minimize the flooding of the areas with narrow connections to the main area. These areas usually occur in over-segmented images (more area is being segmented as part of the segmented object). For the spline approximation we used periodic cubic spline [11] to smooth the segmented boundary of the liver. Based on the specified post-processing procedures five different methods to segment the liver and two different methods to segment the vessel system have been evaluated in this paper. For liver segmentation it was: (i) Multi Otsu method with 8 or 5px flooding element (Multi Otsu 8(5)px flood) (ii) Multi Otsu method with 1px flooding element (Multi Otsu) (iii) K-means method with 8 or 5px flooding element (K-means 8(5)px flood) (iv) K-means method with 1px flooding element (K-means) (v) Region growing method (Region growing) For vessel system segmentation it was: (i) Multi Otsu 1px flooding element without spline approximation (Multi Otsu) (ii) K-means 1px flooding element without spline approximation (K-means) 128 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 5 3 SELECTED IMAGE DATA All evaluated methods were tested on two different modalities of the image data. We used data from the computed tomography (CT) and from the magnetic resonance imaging (MRI). All CT data had resolution of 512x512 pixels while MRI data had resolution 256x256 pixels. Publicly available DICOM database [12] was used as a source of data. Presented methods were used to segment the liver and the liver vessel system. Evaluated methods first proceeded through the preparation phase to establish settings which were then used in the test phase. Beside the different modalities, images from different patients were used as well. In preparation phase methods worked with series of ten images while the test phase performed on two images. Images in preparation phase always differ from those in the test phase. In Figure 1 example of two different modalities of the image data is shown. Figure 1: Example of the CT (left) and MRI (right) modality of the used image data 4 EVALUATION METHOD Comparison of presented segmentation algorithms is based on computational time and segmentation quality. Since each method ran in the preparation phase to establish important setting values which are then used in the subsequent test phase, two different runtime values were measured. First was the preparation phase runtime and the second was the test phase runtime. Concerning the segmentation quality, several metrics are available [13, 14] which compare the segmentations with the manually segmented reference made by trained specialist. In this paper we use two metrics based on volumetric overlap. It is volumetric overlap error (VOE) and relative volume difference (RVD). As the main criterion for quality evaluation of each selected technique VOE is used. In section 5 where results are presented we use the mean VOE of two test images for the quality evaluation. 4.1 Volumetric overlap error The volumetric overlap error (VOE) is given in percent and it calculates the error between two sets of pixels A and B as described in (4). 129 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 6 AB VOE 100 1 AB  = ⋅−    ∩ ∪ (4) One of the pixel sets stands for the reference and the other one for the segmented set. Which set is which, whether A or B, does not matter as we calculate union and intersection between the sets. The 0 value of the volumetric overlap error means that there is a perfect match between the sets A and B. Value of 100 means that the pixel sets A and B do not overlap at all. The reason why this metric was used is that it is one of the most popular method for evaluation of the segmentation accuracy. 4.2 Relative volume difference The relative volume difference (RVD) is also given in percent and it is calculated between two sets of pixels A and B by the equation (5). AB RVD 100 B  − =⋅    ,(5) In equation (5) A stands for the segmented pixel set and B stands for the reference pixel set. The 0 value of equation (5) means both pixel sets have the same volume and in this sense they are identical. It has to be noted that this does not imply that A and B are identical, or overlap with each other. This is the drawback of the RVD method in comparison with VOE. On the other hand the RVD metric gives direct volumetric information. The RVD is a signed value and thus it also gives a good insight whether the method tends to over- or under estimate total volume. This is the main reason why RVD metric was used in this paper. 5 RESULTS As mentioned earlier, tests were performed on two different images in each modality (CT and MRI) for liver segmentation and also on two images in each modality for vessel system segmentation. Results in Table 1 show numerical values for CT vessels segmentation. Images after segmentation are depicted in Figure 2. In Table 2 and Figure 3 results of CT liver segmentation are provided. Results for MRI modality are listed in Table 3 and Figure 4 in case of vessel segmentation. Results for MRI liver segmentation are listed in Table 4 and Figure 5. All results were obtained on PC with Intel Core i3, 1.9 GHz, with 4GB of RAM and MATLAB R2014a. Table 1: Vessel segmentation results on two test CT images for evaluated methods. Mean VOE value calculated as mean from VOE values on each image. Prep. Runtime (~100 iterations) [s] Runtime Image 1 [s] VOE Image 1 [%] RVD Image 1 [%] Runtime Image 2 [s] VOE Image 2 [%] RVD Image 2 [%] Mean VOE [%] K-means 1174 6.1 57.959 11.640 5.3 62.014 7.931 59.987 Multi Otsu 28 2.9 58.576 -14.768 2.3 65.825 -27.500 62.201 130 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 7 a) b) c) d) Figure 2: Vessel segmentation results on two CT test images for evaluated methods. Red line is reference, blue line is segmentation. a) K-means, image 1; b) K-means, image 2; c) Multi Otsu, image 1;d) Multi Otsu, image 2 Table 2: Liver segmentation results on two test CT images for evaluated methods. Mean VOE value calculated as mean from VOE values on each image. Prep. Runtime (~100 iterations) [s] Runtime Image 1 [s] VOE Image 1 [%] RVD Image 1 [%] Runtime Image 2 [s] VOE Image 2 [%] RVD Image 2 [%] Mean VOE [%] Multi Otsu, (8px flood) 355 4.8 4.623 -2.966 3.9 4.937 2.158 4.780 K-means, (8px flood) 1190 10.5 4.860 -3.770 9.9 5.407 -2.162 5.134 K-means 1190 13.0 6.044 -2.077 12.5 7.811 7.765 6.928 Multi Otsu 355 5.0 6.959 3.131 5.4 7.943 7.912 7.451 Region growing 499 5.3 6.186 -5.675 5.7 9.613 -8.493 7.900 131 Petr Strakos, Milan Jaros, Tomas Karasek, Tomas Kozubek, Petr Vavra and Tomas Jonszta. 8 a) b) c) d) e) f) g) h) i) j) Figure 3: Liver segmentation results on two CT test images for evaluated methods. Red line is reference, blue line is segmentation. a) Multi Otsu (8px flood), image 1; b) Multi Otsu (8px flood), image 2; c) K-means (8px flood), image 1; d) K-means (8px flood), image 2; e) K-means, image 1; f) K-means, image 2; g) Multi Otsu, image 1; h) Multi Otsu, image 2; i) Region growing, image 1; j) Region growing, image 2 132 VI International Conference on Computational Methods for Coupled Problems in Science and Engineering COUPLED PROBLEMS 2015 B. Schrefler, E. Oñate and M. Papadrakakis (Eds) Table 3: Vessel segmentation results on two test MRI images for evaluated methods. Mean VOE value calculated as mean from VOE values on each image. Prep. Runtime (~100 iterations) [s] Runtime Image 1 [s] VOE Image 1 [%] RVD Image 1 [%] Runtime Image 2 [s] VOE Image 2 [%] RVD Image 2 [%] Mean VOE [%] Multi Otsu 12 1.2 78.681 -78.681 0.9 62.334 27.632 70.508 K-means 230 1.7 79.147 -79.147 0.9 62.589 25.804 70.868 a) b) c) d) Figure 4: Vessel segmentation results on two MRI test images for evaluated methods. Red line is reference, blue line is segmentation. a) Multi Otsu, image 1; b) Multi Otsu, image 2; c) K-means, image 1;d) K-means, image 2 Table 4: Liver segmentation results on two test MRI images for evaluated methods. Mean VOE value calculated as mean from VOE values on each image. Prep. Runtime (~100 iterations) [s] Runtime Image 1 [s] VOE Image 1 [%] RVD Image 1 [%] Runtime Image 2 [s] VOE Image 2 [%] RVD Image 2 [%] Mean VOE [%] Multi Otsu, (5px flood) 72 1.3 11.538 2.035 1.3 18.585 3.350 15.062 K-means 321 3.1 17.940 -10.940 3.4 22.167 2.849 20.054 K-means, (5px flood) 321 2.6 32.661 -31.220 3.0 12.308 7.278 22.485 Region growing 96 1.9 26.490 -20.432 1.5 18.632 3.530 22.561 Multi Otsu 72 3.0 22.176 21.340 1.8 23.337 19.497 22.757 133