Keywords

1 Introduction

Recent studies on liver segmentation can be classified into two types: The first type segments liver by use of pure image information, such as thresholding, clustering, and region growing. The deficiency of these schemes is the tendency to leak into adjacent organs because of their similarity in grey levels.

Another type is model-based methods. These methods aim to overcome the limit of the techniques mentioned above by combining local and global prior knowledge of liver shape. And they can be further divided into three categories: active and statistical shape models, atlas-based segmentation, and level set-based segmentation. In active shape model based approaches, statistical shape models (SSM) are usually employed to learn the shape-prior models [1, 2]. However, SSM approaches tend to overly constrain the shape deformations and overfit the training data, because of the small size of training samples. In atlas-based studies. Oda et al. [3] divided an atlas database into several clusters to generate multiple probabilistic atlases of organ location. In recent work, subject-specific probabilistic atlas (PA) based methods have been proposed [4], which is generated by registering multiple atlases to every new target image. In level set-based studies, Oliveira et al. [5] proposed a gradient-based level set model with a new optimization of parameter weighting for liver segmentation. Li et al. [6] suggested a combination of gradient and region properties to improve level set segmentation.

In this paper, an automatic scheme on segmenting liver from abdominal CT images are proposed. Firstly, the similarities between all atlases and the test volume are calculated; Secondly, the most likely liver region (MLLR) of the test image is constructed, and a maximum a posteriori (MAP) classification of probability map is depicted; Then, a shape-intensity prior level set is applied to produce the final liver segmentation inside the MLLR. Finally, for constructing shape-intensity models of the liver, 15 CT samples are used as training samples, and 15 test volumes are used for evaluating the proposed scheme.

Fig. 1.
figure 1

Flowchart of the scheme: (a) training phase (b) testing phase

2 Description of the Method

Our research consists of a training phase and a testing phase. We will explain how to segment the liver automatically from abdominal CT images stage by stage, with shape-intensity prior models using level set technology. Figure 1 depicts the flowchart of the segmentation scheme.

2.1 Image Preprocessing

In the image preprocessing stage. Firstly, All the volumes are regularized to reduce the changes between individuals according to the centers of the lungs. And then, the traditional binary thresholding algorithm is used for the lung parenchyma extraction. Thirdly, for reducing noise and preserving the liver contour, an anisotropic diffusion filter is applied, followed by an isotropic resampling process based on trilinear interpolation technology. In this way, z-axis is resampled to the same number of slices, since a fixed number of the input vectors are required by principal component analysis (PCA) algorithm.

2.2 Liver Rough Segmentation

Liver rough segmentation can be divided into three stages: (1) Most likely liver region construction; (2) Probability map based classification; (3) Non-liver elimination.

Most Likely Liver Region Construction. For constructing the subject-specific weighted probabilistic atlas, the image similarities between all chosen atlases and the test image are calculated, and then, arranging them in descending order, which would be evaluated by normalized cross correlation (NCC) [7]:

$$\begin{aligned} \begin{aligned} NCC(A,T)=\frac{\sum _{i,j,k}(A(i,j,k)-\bar{A})(T(i,j,k)-\bar{T})}{\sum _{i,j,k}(A(i,j,k)-\bar{A})^2\times \sum _{i,j,k}(T(i,j,k)-\bar{T})^2} \end{aligned} \end{aligned}$$
(1)

where A and T denote the atlas and the test image, respectively, and \(\bar{A}\), \(\bar{T}\) represent the average intensity of A and T. i, j and k denote the coordinate value of x, y , z axes, and each atlas is assigned with a weight as

$$\begin{aligned} w(n)=1-{2\times (order(n)-1)}/{N} \end{aligned}$$
(2)

where n represents the index of atlas, w(n) is the weight of the n-th atlas, order(n) denotes the order of the n-th atlas, and N is the total number of atlases. It is evident that, the more similar to the target image, the bigger order and weight the atlases would be assigned. Then we defined the weighted probabilistic atlas \(W_p(lv)\) of liver at voxel p as:

$$\begin{aligned} W_p(lv)=\frac{1}{\sum _{i=1}^{N}w(i)}\sum _{i=1}^{N} w(i)s(L_p^i,lv) \end{aligned}$$
(3)

and \(s(x,x')\) represents the similarity function, if \(I=I'\), then, \(s(I,I')=1\); otherwise, \(s(I,I')=0\). i is the atlas index, and \(L_p^i\) denotes the voxel p on atlas i. In this way, the subject-specific weighted PA is constructed, and then, we obtain the most likely liver region (MLLR) by appropriate thresholding processing.

Probability Map Based Clustering. After the construction of MLLR, we divide the CT intensities inside the MLLR into six categories: liver, heart, right kidney, spleen, bone and background, and we utilized the intensity histograms of the six categories in the training stage. The likelihood for each category is defined by p(I(x)|q) (q represents the six organs.), which can be calculated by convolving their histograms. Then according to the Beyesian theorem, we get the following equation:

$$\begin{aligned} P(lv)=P(lv|I(x)) =\frac{p(I(x)|lv)\cdot p(lv)}{\sum _{q}p(I(x)|q)\cdot p(v)} \end{aligned}$$
(4)

where P(lv) denotes the liver probability map, and I(x) represents the CT intensity of position x. By a MAP classification of probability map, we get a rough segmentation of the liver.

Non-liver Region Elimination. The rough segmentation of liver could results in some segmentation errors, due to the similar intensities with its adjacent organs. Based on the fact that liver is the largest organ in the MLLR, thus we applied a morphological operation to fill the holes, followed by the connected component analysis to eliminate the non-liver region. A rough segmentation process is shown in Fig. 2.

Fig. 2.
figure 2

Liver rough segmentation: (a) original CT (b) denoised image (c) MLLR in the original CT (d) liver MAP (e) non-liver eliminate

2.3 Refinement of Rough Segmentation

In this section, we would refine the rough segmentation result through four steps: (1) Maximum a posteriori (MAP) framework construction; (2) Construction of prior model; (3) Formulation of level set; (4) Evolution of the liver surface.

Maximum a Posteriori (MAP) Framework Construction. For making the best use of image information, such as the shape and the grey level, we derived the MAP framework referring to the conclusion proposed by Yang et al. [8]:

$$\begin{aligned} \hat{\varphi }={\text {arg}}\mathop {\text {min}}_{\varphi }[-\ln p(I|\varphi ,I_{\varphi }\approx I)-\ln p(\varphi ,I_{\varphi }\approx I)] \end{aligned}$$
(5)

where I denotes the target image with object \(\varphi \), and \(I_{\varphi }\) is the synthetic model of image I; \(\hat{I}_{\varphi }\) is the segmentation of \(I_{\varphi }\). In this case, we assume the synthetic image \(I_{\varphi }\) is quite close to the real image I ( \( I \approx I_{\varphi }\) ), and \(p(I|\varphi ,I_{\varphi })\) is the term based on the image intensity information. In three-dimensional image, assuming intensity homogeneity within the object, the following imaging model is derived [9]:

$$\begin{aligned} \begin{aligned} p(I|\varphi ,I_{\varphi })&=\prod _{inside(\varphi )}({2\pi \sigma _1^2})^{-\frac{1}{2}}{\text{ exp }}[-(I(x)-a_1)^2/(2\sigma _1^2)]\\&\times \prod _{\begin{array}{c} outside(\varphi )\\ inside(\varOmega _{\varphi }) \end{array}}({2\pi \sigma _1^2})^{-\frac{1}{2}}{\text{ exp }}[-(I(x)-a_2)^2/(2\sigma _2^2)] \end{aligned} \end{aligned}$$
(6)

here, function \(p(\varphi , I)\) combined shape \(\varphi \) with intensity I, and \(a_1\), \(\sigma _1\), \(a_2\) , \(\sigma _2\) denote the average gray level and the variance, inside and outside \(\varphi \), respectively.

Construction of Prior Model. For constructing the shape-intensity based prior model with the training samples, the technology proposed by Cootes et al. [10] is utilized, Therefore, an estimate of the shape-intensity pair \([\bar{\varPsi }^T,\bar{I}^T]^T\) can be represented by k principal components and a k dimensional vector of coefficients \(\alpha \):

$$\begin{aligned} \begin{bmatrix} \tilde{\varPsi }\\ \tilde{I} \end{bmatrix}=\begin{bmatrix} \bar{\varPsi }\\ \bar{I} \end{bmatrix}+U_k\alpha \end{aligned}$$
(7)

where \(\varPsi \) is the level set function, I represents the sample images, and \(U_k\) represents the matrix consisting of the first k columns of matrix U. Figure 3 demonstrates the variation of shape-intensity on the first three modes.

Under the assumption of a Gaussian distribution of a shape-intensity pair represented by \(\alpha \), the joint probability of a certain shape \(\varphi \) and the related image intensity I, \(p(\varphi ,I)\) can be represented by

$$\begin{aligned} p(\alpha )=\frac{1}{\sqrt{(2\pi )^k|\varSigma _k|}}{\text{ exp }}[-\frac{1}{2}\alpha ^T\varSigma ^{-1}_k\alpha ] \end{aligned}$$
(8)

Similar to [9], a boundary smoothness regularization term is incorporated to add robustness against noise data: \(p_B(\varphi )=e^{-\mu \oint _{\varphi } {\text{ d }s}}\), where \(\mu \) is a scalar factor. By adding the above regularizing term, the shape-intensity probability \(p(\varphi ,I)\) can be approximated by a product of the following probabilities:

$$\begin{aligned} p(\varphi ,I)=p(\alpha )\cdot p_B(\varphi ) \end{aligned}$$
(9)

Substitute Eqs. 6 and  9 into Eq. 5, we derive \(\hat{\varphi }\) by obtaining the minimizer of the following energy functional \(E(\varphi )\) shown below

$$\begin{aligned} \begin{aligned} E(\varphi )=&\lambda \cdot \int _{inside(\varphi )}\left[ -\ln \frac{1}{\sigma _1}+\frac{|I({x})-c_1|^2}{2\sigma _1^2} \right] {x}\\&+\,\lambda \cdot \int _{outside(\varphi ),inside(\varOmega _{\varphi })} \left[ -\ln \frac{1}{\sigma _2}+\frac{|I({x})-c_2|^2}{2\sigma _2^2} \right] {x}\\&+\,\omega \cdot \alpha ^T\varSigma ^{-1}\alpha +\mu \cdot \oint _{\varphi } {\text {d}}s \end{aligned} \end{aligned}$$
(10)

In this paper, the minimization problem of energy functional \(E(\varphi )\) would be formulated and solved by the level set strategy.

Fig. 3.
figure 3

Shape-intensity variabilities of the first three modes (a) the first mode (b) the second mode (c) the third mode

Formulation of Level Set. For formulating the level set prior model, we replace \(\varphi \) with \(\phi \) in the energy functional of Eq. 10, and for calculating the associated Euler-Lagrange equation, we minimize E with reference to \(\phi \). According to the gradient descent method with artificial time \(t\geqslant 0\), the evolution equation in \(\phi (t,{x})\) is obtained (Hamilton-Jacobi equation):

$$\begin{aligned} \begin{aligned}&\frac{\partial \phi }{\partial t}=-\omega \cdot g\left( U_{k1}\varSigma _k^{-1}[U_{k1}^T(G(\phi )-\bar{\varPsi })+U_{k2}^T(G(I)-\bar{I})]\right) \\&\delta _{\varepsilon }(\phi )\left\{ \lambda \left[ \frac{|I-c_1|^2}{2\sigma _1^2}-\frac{|I-c_2|^2}{2\sigma _2^2}+\ln {\frac{\sigma _1}{\sigma _2}}\right] +\mu {\text {div}}\left[ \frac{\nabla \phi }{|\nabla \phi |}\right] \right\} \end{aligned} \end{aligned}$$
(11)

where G(.) is used for representing matrix in column scanning, while g(.) denotes its reverse operation, and \(U_{k1}\) and \(U_{k2}\) represent the upper and lower half of the matrix \(U_k\), respectively.

Evolution of the Liver Surface. The evolving of the surface inside MLLR can be summarized by the following six steps:

step 1: Initialize the curved surface of the liver \(\phi \) at time t;

step 2: Calculate \(p(\alpha )\) using PCA;

step 3: Calculate \(a_1(\phi ^t), \sigma _1(\phi ^t)\) and \(a_2(\phi ^t),\sigma _2(\phi ^t)\);

step 4: Update \(\phi ^{t+1}\);

step 5: Repeated from step 1;

step 6: If convergence, algorithm stop, otherwise, continue from step 3.

Fig. 4.
figure 4

Segmentation results between Linguraru’s approach and ours : (a) liver with tumor; (b) liver close to heart; (c) liver close to kidney. The first row shows Linguraru’s result, and the second row shows our result. Red line represents the ground truth, blue line indicates the testing methods.

3 Experimental Results

In this section, we perform quantitative evaluations and demonstrate segmentation results via testing on 15 volumes provided by our clinic partner. Performance results are compared with Linguraru’s method [11]. 15 training samples with reference from Weihai Municipal Hospital are used to construct the shape-intensity models of the liver, while the accuracy of scheme was quantitatively performed using the following three measures: average symmetric surface distance (ASD), root mean square symmetric surface distance (RMSD), and Jaccard similarity coefficient (JSC).

Fig. 5.
figure 5

Average symmetric surface distance (ASD) between Linguraru’s method and ours

Fig. 6.
figure 6

Root mean square symmetric surface distance (RMSD) between Linguraru’s method and ours

Figure 4 shows some typical segmentation results between Linguraru’s method and ours, and our method obtain a better performance in some difficult cases.

Figure 5 shows the ASD error between Linguraru’s method and ours. The average ASD error is 1.56 \(\pm \) 0.13 mm (min 1.21, max 2.47) by Linguraru’s method, and 1.18 \(\pm \) 0.12 mm (min 0.82, max 2.12) by ours.

Figure 6 shows the RMSD errors between Linguraru’s method and ours. The average RMSD error is 2.40 \(\pm \) 0.20 mm (min 1.91, max 3.41) by Linguraru‘s method, and 1.87 \(\pm \) 0.23 mm (min 1.42, max 3.01) by ours.

Table 1 shows the Jaccard similarity coefficient (JSC) on the 15 exams among Lingurarus method, ours, and a manual segmentation from a senior radiologist. All the comparison results above indicate that, our segmentation scheme achieved a better segmentation accuracy than Lingurarus method, and is closer to the level of radiologist.

Table 1. Jaccard similarity coefficient (JSC) between every pair among Linguraru’s method (L) , ours, and the manual approach (ground truth) from radiologist (R)

4 Conclusion

In this paper, a shape-intensity prior level set method is applied for segmenting liver from contrast-enhanced CT images, combined with probabilistic atlas and probability map constrains. We used 15 training samples of abdomen CT to construct liver shape-intensity prior models, and compare our approach with Linguraru’s method on 15 testing volumes. Results show that our method is a good promising tool on liver segmentation.