International Journal of Biomedical Imaging

Volume 2010 (2010), Article ID 674582, 6 pages

http://dx.doi.org/10.1155/2010/674582

## Ventricle Boundary in CT: Partial Volume Effect and Local Thresholds

Biomedical Imaging Laboratory, Agency for Science, Technology and Research (A*STAR), 30 Biopolis Street, #07-01, Matrix, Singapore 138671

Received 1 October 2009; Accepted 25 February 2010

Academic Editor: Guo W. Wei

Copyright © 2010 Ihar Volkau 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.

#### Abstract

We present a mathematical frame to carry out segmentation of cerebrospinal fluid (CSF) of ventricular region in computed tomography (CT) images in the presence of partial volume effect (PVE). First, the image histogram is fitted using the Gaussian mixture model (GMM). Analyzing the GMM, we find global threshold based on parameters of distributions for CSF, and for the combined white and grey matter (WGM). The parameters of distribution of PVE pixels on the boundary of ventricles are estimated by using a convolution operator. These parameters are used to calculate local thresholds for boundary pixels by the analysis of contribution of the neighbor pixels intensities into a PVE pixel. The method works even in the case of an almost unimodal histogram; it can be useful to analyze the parameters of PVE in the ground truth provided by the expert.

#### 1. Introduction

Feature analysis is an important process in biomedical image processing. It allows extracting anatomical structures of interest (e.g., ventricles from neuroimages, liver from abdominal images, or blood vessels) or abnormalities corresponding to particular diseases (e.g., stroke, bleeding, or tumor). Various techniques have been proposed to perform feature extraction in biomedical images. One of the common techniques is to apply thresholding; a survey and comparison of these techniques is in [1].

Some methods are purely based on intensity histogram of the image, where the threshold value may be determined by several ways: by minimizing the within-class variance of the histogram in Otsu’s method [2], which was further improved in [3, 4], or based on the median of the histogram with assumption that the percentage of object pixels is known [5], based on the histogram valley [6], or based on the histogram concavity analysis [7]. Other methods calculate the threshold by maximizing the entropy of the histogram [8, 9], or can be based on the condition that the thresholded image should have the same moments as the original image [10].

The abovementioned techniques only provide a global threshold, in which the spatial information among the neighborhood pixels is not taken into consideration. In medical images, it is pretty common to encounter intensity inhomogeneity, and in this case global thresholding alone may not be able to provide a good result.

In the field of MR images, there are numerous algorithms to segment the ventricular region based on different techniques, such as intensity-based method [11, 12], model-based method [13, 14], or combination of them [15, 16]. However, these methods may not work well when they are applied to CT neuroimages because of high slice thickness and noise.

Several studies have proposed algorithms for CT neuroimage segmentation. Methods in [17, 18] propose the segmentation of CT images based on k-means with the expectation-maximization (EM) clustering and 2D Otsu threshold segmentation with the particle swarm optimization (PSO) algorithm, respectively, which separate the brain region into three clusters: brain matter, CSF, and abnormal regions. Another study in [19] applied a two-stage fuzzy C-means (FCM) algorithm to extract brain tissue and exclude CSF and skull. These three methods do not provide a specific segmentation of the ventricular region. A different approach is introduced in [20] whereby two-stage segmentation was performed. The ventricle is initially segmented using either Iterated Conditional Model (ICM) or Maximum A Posterior Spatial Probability (MASP), and the result is further refined using a template-matching technique.

We propose a two-stage algorithm based on statistical consideration to find the parameters of the partial volume effect (PVE) pixels distribution. These stages include global thresholding and local analysis of the pixels to refine the boundary of the ventricles.

#### 2. Method

We consider the intensity histogram of the current slice as a Gaussian mixture model (GMM) [21] with the density function
where are the th-component Gaussian probability density functions, are weights,, , and is intensity of the pixel. Particularly, two out of all components are the white and grey matter (WGM) and the cerebrospinal fluid (CSF). Let us denote their distributions as and , respectively:
where *N* is Gaussian probability density function with mean value and standard deviation :
Knowing the standard Hounsfield units (HUs) for the WGM and the CSF, we consider the range of intensities for our analysis from 0 to 75 HUs.

We employ the GMM with 3 components. To estimate the parameters of the GMM (1), the EM algorithm [22] is used. The parameters of the CSF and the WGM distributions are used to find the distribution of the pixel on the boundary between these two tissues, which hereafter we denote as PVE distribution.

Let us suppose that the part of the pixel filled with CSF is and the part filled with other tissues is (). To find the PVE distribution, we calculate convolution of two Gaussians for CSF and WGM, respectively:
Here is a sum of random values:
where and are independent random variables having Gaussian distributions, and the *α* part of pixel has the random value from the CSF distribution and () from WGM. Taking into account formulas (2)–(5) and the fact that the sum of two independent normal random variables again has a normal distribution, we can find the parameters of the resulting normal distribution:
where and are the mean and standard deviations of the PVE distribution as a result of convolution between CSF and WGM distributions.

Let us assume that, if a part of CSF in a pixel is at least , the pixel is assigned to the CSF class. The parameter may depend on a person (expert) who marks the ground truth (GT). To estimate , we consider ventricles marked in the GT, get their boundary pixels (i.e., pixels with the PVE), and find the mean value for the distribution of these pixel intensities. Then, using formula (6), value and the parameters of the CSF and the WGM distributions, we can estimate the value of. Hereafter we denote the value specific for the expert as. Though is included into formulae (6) and (7), we use formula (6) to find because it provides a lesser error: calculation of standard deviation uses the mean value of a sample, so the magnitude of error of standard deviation may be higher.

In the case if we do not have GT, we can assume that; that is, the pixel belongs to CSF if at least 1/2 of the pixel is CSF.

The most probable value for the pixel with PVE corresponds to . Let us denote this value as threshold . We assign pixels to the CSF class if their intensities are not above . Pixels adjacent to the CSF ones are analyzed during the second phase of the algorithm by calculation of contribution of neighboring pixels intensities into a pixel under consideration. In other words, we calculate the possibility for the pixel to have at least an part of CSF taking into account the value of the nearby pixels.

Let us assume now that we extract a connected component corresponding to the ventricle and find the boundary pixels of this component (the component contour). Let us denote as a set of pixels which are adjacent to the boundary; that is, one pixel width layers inside and outside the boundary. Let us assign the value of the image force to the pixels with intensity :
The higher the value of , the more probable the pixel is on the boundary of a ventricle. The first item is a normalized, between 0 and , probability for pixel to be a mixture of the CSF and WGM. The second item is a possible share of CSF in the PVE pixel. Let us consider three consecutive pixels , , and along some direction (we used 8 directions corresponding to 8-connectivity), and denote their intensities , , and . Let us assume that pixel and is marked as CSF, while and are not (i.e., and are greater than ). If any of these assumptions is not satisfied, we set ; otherwise we find the value from the equation similar to formula (6):
In the case , the inequality is satisfied, and we can assume that the pixel (which is in between CSF pixel and non-CSF pixel *, *and which has more than parts of CSF) also belongs to the ventricle and is situated on its boundary.

Anatomically, the boundary of the ventricle should be a smooth curve, so the pixelwise contour should be smoothed to look realistic. We use snake [23] with the image force defined by (8) to smooth the contour. For energy functional of the snake, the weight coefficients for continuity term, curvature term, and image force were taken as 1, 1.5, and 1.2, respectively.

#### 3. Results

We have applied the proposed algorithm to CT scans. To illustrate a typical behavior of the algorithm, we present a case below. The original CT slice is shown at Figure 1 and its histogram is in Figure 2. The dash-dot line corresponds to the original histogram, and the solid lines correspond to the components of the GMM and to the sum of all of the components. We use the GMM with 3 components. It can be seen that the approximation by 3 Gaussians provides a reasonable fit to the original histogram.

The original image, the ground truth, and the results of the initial step and the second phase are shown in Figure 3.

For Figure 3(a) the changes of the intensities inside and on the boundary of the darker spots in the image (i.e., within the ventricular system) may be because of acquisition noise, choroid plexus, or partial volume effect due to the high slice thickness, or something else. Our algorithm calculates and finds the probable boundary points of the ventricles. Using the GT marked by the expert, we found that the parameter . We do not do the statistical analysis based on comparison with the rater’s generated ground truth because the main target of the rater was to delineate the ventricles, but not to provide some systematic and nonsubjective way to determine the belonging of the boundary pixels to inner or outer parts of the ventricles.

#### 4. Discussion

The Gaussian Mixture Model (GMM) can be used for the initial segmentation of the CT images [17] into CSF and WGM under the assumption that the distributions of intensities for these peaks are Gaussians, and pixel values are independent random variables. Knowing the standard range of Hounsfield units (HUs) for the WGM and CSF, we can find the parameters of these Gaussians while using the Bayesian approach to find the threshold to separate these two peaks (it corresponds to the point of the cross-section of these Gaussians). Partial volume voxels contain multiple tissue types; in such a case in the GMM each tissue is not represented by a single Gaussian. It makes it difficult to use the traditional Bayesian classification if two components are close to each other or have an overlap and the distinction between them is not obvious. In CT, the ranges of intensities from CSF and WGM are usually overlapped, which can even result in a unimodal distribution of the sum of these distributions. Characteristics of the mixture of the CSF and WGM are also changing along the ventricular boundaries.

In the case of the ventricle boundary, anatomically we have two types of media, CSF, and WGM, which do not mix with each other, but because of the PVE, we may have a mixture of intensities. The same is true when CSF is a neighbor for a calcified structure. It leads to the appearance of additional distribution(s) corresponding to these mixtures. As the CSF and the WGM both are assumed to be Gaussians, their mixture should also have a Gaussian distribution.

For the GMM we use the EM algorithm [22] to estimate the vector of unknown parameters of components in the GMM. The likelihood function for the mixture model usually has multiple local maxima [21], and there is a question about which root of the likelihood equation corresponds to the global maximum of the likelihood function. According to [24], the ventricle to brain volume ratio for normal population is 1.29 0.4%. The pixels on the boundary of ventricles have even smaller ratio to the volume of the brain; hence, the peak, corresponding to the PVE, is almost undistinguishable in the brain tissue intensities histogram and may be completely disguised by noise. Additional source of possible errors in identification of parameters of the PVE distribution may be the incorrectly chosen number of classes in the GMM, which leads to the systematic bias in the mean and standard deviations of extracted parameters (the same effect occurs when using the truncated distributions).

The parameters of the PVE distribution may be estimated indirectly by the EM algorithm for the GMM. First, we extract more pronounced peaks, corresponding to WGM and CSF, which we assume to be Gaussian distributions with the weight coefficients and , respectively. Then, their mixture (4) should also be a Gaussian distribution with parameters (6) and (7) as a convolution of two normal distributions. We can expect that the weight coefficient for the PVE distribution will be lesser than, because only the boundary of CSF and WGM pixels participates in this mixture, and this boundary is negligible in comparison with the area of the tissues and ventricles by themselves; hence, the parameters of the PVE distribution can hardly be extracted directly from the histogram in the correct way.

As for the boundary of the ventricle, several observations can be done. The thickness of the ventricle boundary cannot be more than one pixel. The boundary pixel in such a case can either belong to one of two tissue classes or be the mixture of these 2 classes. Because of high slice thickness, the PVE effect may not be pronounced only on the boundary, but inside the ventricle as well; that is why we assign pixel to the CSF class if its intensity is below .

To mark the GT, the expert uses image data and anatomical knowledge. Anatomically the contour of the ventricle should be a smooth curve; that is why the contour marked might not follow the edge of the thresholded ventricle. To take into account the anatomical property, we use snake to smooth the boundary of the ventricle using an image force as the function defined by (8). A higher value of reflects a higher probability of pixel to lie on the ventricle boundary.

A two-stage algorithm gives a chance to discriminate global and local properties using the analysis of vicinity of the current contour point under consideration. Belonging of the pixel to the specific group in the overlapped area of histogram cannot be identified not taking into account some additional spatial information. Therefore, probably, the dynamic programming-type techniques may be applied, for recalculation of the moving boundary of the ventricle or the tissues. In such a case, we have information about probabilistic distributions in two media and should formulate the objective function regarding how to estimate the risk of adding the pixel to the first or the second class, taking into account the connectivity and clusterization existing in the VOI.

The results of boundary analysis will vary with the change of the value of *α*. Let us analyze some well-known algorithms from the point of view of mixture of two distributions. The algorithm [25] fits a rectangle to the profile, setting the width so that the area under the rectangle is equal to the area under the profile. If a vessel’s intensity is fitted by the Gaussian shape and the background has the uniform intensity, then the cutoff thresholds are ; that is, the pixel is considered as belonging to a vessel if it has less than 10.5% of background. For the full width at half-maximum approach, the condition is to have not more than 50% of background.

A usual way to validate the results of the algorithm is to compare them with the expert’s provided marks, otherwise called ground truth (GT). Different experts may mark ground truth differently. Even for the same expert the results of marking can be different depending on the time of the day or day of the week and image windowing. That is why one of the standard characteristics which can be provided for ground truth is an intraexpert and interexpert variability.

The HUs for the CSF in CT should be approximately in the range from 0 to 21 (depending on the energy and scanner calibration). The rater’s generated ground truth may not reflect correctly the pixels on the boundary of ventricle because of subjectivity of judgment and the way of marking. For example, the expert’s delineations of the ventricles included intensities from 15 to almost 800 HUs. The marking of the pixel might depend on the PVE and on image contrast in the vicinity of the pixel (e.g., a calcified object adjoining the CSF can cause a few pixels to be marked as CSF even having the intensity of 800 HUs due to PVE); misclassification can be caused by the tiredness of doing the tedious work of marking hundreds and thousands of pixels. Additionally, we have representation of the pixel value in the image as an integer grayscale; the value of the pixel is received from the mathematical reconstruction algorithm and additionally the value was rounded to the integer with some possible loss of accuracy. So the value of the pixel is by itself an approximation of the value of the manifestation of the response from the tissue at the current position. The expert’s marking may be based on hardly formalizable ideas and experience which also barely can have some verbalization. The ventricle boundary pixels with the same intensity may be at the same time partially included into ventricle and partially excluded from it.

There is a lack of objective criteria to estimate the precision of the GT. We can hardly describe what the optimal solution for the problem of identification of the boundary is. Comparison with the GT marked by the expert shows that the expert opinion to include or not to include the points into the cluster sometimes is nonformalizable. We cannot expect that the expert with the same accuracy and without tiredness will mark thousands of pixels individually. So the basis for the estimation of the algorithm performance and its results may not be the optimal solution, but the acceptable one, satisfying some reasonable (or at least clearly pronounced) assumptions.

Taking into account the value of *α* which corresponds to the experts’ judgments may be considered as an adjustment of the algorithm of segmentation to the expert’s implicit requirements.

#### 5. Conclusion

The existence of the PVE makes it necessary to use not the independent random variable model but a conditional probabilistic model. We present a two-phase algorithm which is based on theoretical calculation of parameters of the PVE and takes into account the vicinity around the pixel for which the decision should be made regarding which class to join. The approach described can be used to estimate the parameter for the PVE which the expert implicitly uses to mark the ground truth.

#### Acknowledgment

This work was supported by Biomedical Research Council of A*STAR (Agency for Science, Technology and Research), Singapore.

#### References

- M. Sezgin and B. Sankur, “Survey over image thresholding techniques and quantitative performance evaluation,”
*Journal of Electronic Imaging*, vol. 13, no. 1, pp. 146–168, 2004. View at Publisher · View at Google Scholar · View at Scopus - N. Otsu, “A threshold selection method from gray-level histogram,”
*IEEE Transactions on Systems Man and Cybernetics*, vol. 8, no. 1, pp. 62–66, 1979. View at Google Scholar · View at Scopus - P.-S. Liao, T.-S. Chen, and P.-C. Chung, “A fast algorithm for multilevel thresholding,”
*Journal of Information Science and Engineering*, vol. 17, no. 5, pp. 713–727, 2001. View at Google Scholar · View at Scopus - H. Wang and Y. Dong, “An improved image segmentation algorithm based on otsu method,” in
*International Symposium on Photoelectronic Detection and Imaging 2007: Related Technologies and Applications*, L. Zhou, Ed., vol. 6625 of*Proceedings of SPIE*, pp. 66250I-1–66250I-8, 2008. View at Publisher · View at Google Scholar · View at Scopus - W. Doyle, “Operations useful for similarity-invariant pattern recognition,”
*Journal of the ACM*, vol. 9, pp. 259–267, 1962. View at Google Scholar - J. M. Prewitt and M. L. Mendelsohn, “The analysis of cell images,”
*Annals of the New York Academy of Sciences*, vol. 128, no. 3, pp. 1035–1053, 1966. View at Google Scholar · View at Scopus - A. Rosenfeld and P. De La Torre, “Histogram concavity analysis as an aid in threshold selection,”
*IEEE Transactions on Systems, Man and Cybernetics*, vol. 13, no. 2, pp. 231–235, 1983. View at Google Scholar · View at Scopus - T. Pun, “A new method for grey-level picture thresholding using the entropy of the histogram,”
*Signal Processing*, vol. 2, no. 3, pp. 223–237, 1980. View at Google Scholar · View at Scopus - J. N. Kapur, P. K. Sahoo, and A. K. C. Wong, “A new method for gray-level picture thresholding using the entropy of the histogram,”
*Computer Vision, Graphics, & Image Processing*, vol. 29, no. 3, pp. 273–285, 1985. View at Google Scholar · View at Scopus - W.-H. Tsai, “Moment-preserving thresholding: a new approach,”
*Computer Vision, Graphics, & Image Processing*, vol. 29, no. 3, pp. 377–393, 1985. View at Google Scholar · View at Scopus - H. G. Schnack, P. H. E. Hulshoff, W. F. C. Baare, M. A. Viergever, and R. S. Kahn, “Automatic segmentation of the ventricular system from MR images of the human brain,”
*NeuroImage*, vol. 14, no. 1, pp. 95–104, 2001. View at Publisher · View at Google Scholar · View at Scopus - A. J. Worth, N. Makris, M. R. Patti et al., “Precise segmentation of the lateral ventricles and caudate nucleus in MR brain images using anatomically driven histograms,”
*IEEE Transactions on Medical Imaging*, vol. 17, no. 2, pp. 303–310, 1998. View at Google Scholar · View at Scopus - C. Baillard, P. Hellier, and C. Barillot, “Segmentation of 3D brain structures using level sets and dense registration,” in
*Proceedings of the Workshop on Mathematical Methods in Biomedical Image Analysis*, pp. 94–101, 2000. View at Scopus - D. Shen, E. H. Herskovits, and C. Davatzikos, “An adaptive-focus statistical shape model for segmentation and shape modeling of 3-D brain structures,”
*IEEE Transactions on Medical Imaging*, vol. 20, no. 4, pp. 257–270, 2001. View at Publisher · View at Google Scholar · View at Scopus - Y. Xia, Q. Hu, A. Aziz, and W. L. Nowinski, “A knowledge-driven algorithm for a rapid and automatic extraction of the human cerebral ventricular system from MR neuroimages,”
*NeuroImage*, vol. 21, no. 1, pp. 269–282, 2004. View at Publisher · View at Google Scholar · View at Scopus - J. Liu, S. Huang, and W. L. Nowinski, “Automatic segmentation of the human brain ventricles from MR images by knowledge-based region growing and trimming,”
*Neuroinformatics*, vol. 7, no. 2, pp. 131–146, 2009. View at Publisher · View at Google Scholar · View at Scopus - T. H. Lee, M. F. A. Fauzi, and R. Komiya, “Segmentation of CT brain images using K-means and EM clustering,” in
*Proceedings of the Computer Graphics, Imaging and Visualisation, Modern Techniques and Applications (CGIV '08)*, pp. 339–344, 2008. View at Publisher · View at Google Scholar · View at Scopus - W. Kaiping, H. Bin, Z. Tao, and S. Xianjun, “A novel method for segmentation of CT head images,” in
*Proceedings of the 1st International Conference on Bioinformatics and Biomedical Engineering (ICBBE '07)*, pp. 717–720, 2007. View at Publisher · View at Google Scholar · View at Scopus - Q. Hu, G. Qian, A. Aziz, and W. L. Nowinski, “Segmentation of brain from computed tomography head images,” in
*Proceedings of the 27th Annual International Conference of the IEEE-MBS Engineering in Medicine and Biology*, pp. 3375–3378, 2005. View at Scopus - W. Chen, R. Smith, S.-Y. Ji, and K. Najarian, “Automated segmentation of lateral ventricles in brain CT images,” in
*Proceedings of the IEEE International Conference on Bioinformatics and Biomedicine Workshops (BIBMW '08)*, pp. 48–55, 2008. View at Publisher · View at Google Scholar · View at Scopus - G. McLachlan and D. Peel,
*Finite Mixture Model*, Wiley Series in Probability and Statistic, John Wiley & Sons, New York, NY, USA, 2000. - A. P. Dempster, N. M. Laird, and D. B. Rubin, “Maximum likelihood from incomplete data via the EM algorithm,”
*Journal of the Royal Statistical Society B*, vol. 39, no. 1, pp. 1–38, 1977. View at Google Scholar - M. Kass, A. Witkin, and D. Terzopoulos, “Snakes: active contour models,”
*International Journal of Computer Vision*, vol. 1, no. 4, pp. 321–331, 1988. View at Publisher · View at Google Scholar · View at Scopus - D. D. Blatter, E. D. Bigler, S. D. Gale et al., “MR-based brain and cerebrospinal fluid measurement after traumatic brain injury: correlation with neuropsychologicai outcome,”
*American Journal of Neuroradiology*, vol. 18, no. 1, pp. 1–10, 1997. View at Google Scholar · View at Scopus - P. H. Gregson, Z. Shen, R. C. Scott, and V. Kozousek, “Automated grading of venous beading,”
*Computers and Biomedical Research*, vol. 28, no. 4, pp. 291–304, 1995. View at Publisher · View at Google Scholar · View at Scopus