Keywords

Introduction

Image segmentation is important for isolating and extracting details of an image. Many image segmentation methods have been proposed by early researchers. This process partitions the image into different meaningful regions with homogeneous characteristics [1]. Segmentation has been used in the past for quantification of tissue volumes, computer integrated surgery, reconstruction of volume of medical image slices. Chest CT image helps in evaluating the stages of the unwanted material growth in lung. This process has been used for the diagnosis of various pulmonary diseases (lung cancer, tuberculosis, and pulmonary embolism (PE)). This paper presents four stages for achieving effective segmentation of CT lung image.

Stage 1: The left and right lung of the CT image is segmented using fuzzy logic. Stage 2: Apply EMD for refinement of segmented image. Stage 3: Apply morphological operation in order to obtain the correctly segmented right and left lung image. Stage 4: Performance comparison is presented.

The remaining sections of this paper are organized as follows. Section “Related Works” presents an overview of existing lung segmentation methods. Section “Materials and Methods” explains the proposed methodology in detail. Section “Segmentation Based on Fuzzy Logic” depicts the experimental results, and Sect. “Refinement Process” provides the conclusions on this work and suggests some possible future enhancements.

Related Works

Armato and Sensakovic [2] proposed an accurate lung region segmentation procedure called a multilevel thresholding for identifying the regions of interest (ROI) lung nodule. 5–17 % of the lung nodules are undetected by their approach.

Segmentation of lung high resolution CT (HRCT) images using a pixel-based approach was suggested by Garnavi et al. [3]. These authors have used global-threshold segmentation, mathematical morphology, edge detection, noise reduction, and geometrical computations to achieve the defined ROIs.

Ye et al. [4] presented a CAD method for detecting both solid nodules and ground-glass opacity nodules in the lung image. A fuzzy-based thresholding approach is used to segment the lung region. Their method results in fast computation.

Zheng et al. [5] proposed a method for segmenting the lung region by an adaptive threshold based on value distributions. Component analysis and gray-level thresholding are used to segment the lung volume.

Sang et al. [6] proposed a CAD-based lung segmentation algorithm to segment a 3-D lung. Their algorithm searches for suspicious PE regions.

From the literature mentioned, there is still a requirement for improving segmentation of lung in a CT image in terms of fast computation and improved segmentation accuracy.

Materials and Methods

Figure 1 is the prototype for the proposed system of pulmonary Lung region segmentation on CT Image which consists of four stages: (1) segmentation based on fuzzy (2) refinement based on EMD (3) morphological-based refinement, and (4) comparison of segmentation performance.

Fig. 1
figure 1

Block diagram of the proposed system

Segmentation Based on Fuzzy Logic

A fuzzy set is any set that allows its members to have different degree of membership, called membership function within the interval [0, 1]. Which can be mathematically expressed as \( \mu A(x) \) which was assigned to each element on the set with in the same closed unit intervals [7]. Let X is the universal space and x is an element of the space X. A fuzzy set an in space X is defined as

$$ A = \left\{ {\{ x,A(X)\} |x \in X} \right\}. $$
(3)

Where A(x) is the value of the function ‘A’ for element ‘x’. In this work, the ‘S’ function which denotes the set of brighter objects is used for modeling the membership function [7]. The S function can be defined as

$$ \mu As(x) = S(x;a,b,c) $$
(4)
$$ S(x;a,b,c) = \left\{ \begin{gathered} 0\;\quad \quad \quad \quad \quad \quad x \, \le \, a \hfill \\ 2\left\{ {\frac{(x - a)}{(c - a)}} \right\}^{2} \quad \quad a \, \le \, x \, \le \, b \hfill \\ 1 - 2\left\{ {\frac{(x - a)}{(c - a)}} \right\}^{2} \quad b \, \le \, x \, \le \, c \hfill \\ 1\quad \quad \quad \quad \quad \quad \quad b \, \ge \, c \hfill \\ \end{gathered} \right. $$
(5)

The parameters ‘a’ and ‘c’ controls the ‘S’ function. The value of ‘b’ can be computed as \( b = (1/2)(a + c) \) which is called cross-over point. The mathematical function value of ‘b’ is 0.5 \( (\mu As(b) = 0.5) \).The Z-function, which is derived from the S-function represents the dark pixels is as follows:

$$ \mu Az(x) = Z(x;a,b,c) $$
(6)
$$ = \left\{ \begin{gathered} 1\;\quad \quad \quad \quad \quad \quad x \, \le \, a \hfill \\ 2\left\{ {\frac{(x - a)}{(b - a)}} \right\}^{2} \quad \quad a \, \le \, x \, \le \, \frac{a + b}{2} \hfill \\ 1 - 2\left\{ {\frac{(x - b)}{(b - a)}} \right\}^{2} \quad \frac{a + b}{2} \, \le \, x \, \le \, c \hfill \\ 0\quad \quad \quad \quad \quad \quad x \, \ge \, b \hfill \\ \end{gathered} \right. $$
(7)

Refinement Process

Improving the quality of segmented output based on fuzzy methodology is carried in this stage. Histogram-based analysis was done in order to improve the segmented result. The segmented output has been further refined by EMD [8]-based refinement to reduce the issues in the existing methods. For dark and white objects, the refinement process is carried using the following steps:

Step 1: Compute the inside and outside histogram ‘α’ and ‘β’.

Step 2: Compute the inside and outside cumulative sum ‘\( {\rm I}_{c} \)’, ‘\( {\rm O}_{c} \)’.

$$ {\rm I}_{c} (x_{i} ) = \sum\limits_{k = 0}^{i} {\alpha_{k} } $$
(8)
$$ i \to 0 \, \text{to} \, 255 $$
$$ {\rm O}_{c} (x_{i} ) = \sum\limits_{k = 0}^{i} {\beta_{k} } $$
(9)

Step 3: For all black and white pixels x in the fuzzy region, compute the block histogram ‘\( \gamma \)’.

Step 4: For all black and white pixels, compute the foreground distance \( \delta {}_{f} \)

$$ \delta {}_{f} = \sum\limits_{i = 0}^{255} {{\rm abs}\left\{ {(\sum\limits_{k = 0}^{i} {\gamma_{k} } ) - (\sum\limits_{k = 0}^{i} {\alpha_{k} } )} \right\}} $$
(10)

where ‘\( \gamma_{k} \)’ and ‘\( \alpha_{k} \)’ are, respectively, the block histogram and inside histogram of white and dark objects.

The background distance ‘\( \delta {}_{b} \)’ is as follows:

$$ \delta {}_{b} = \sum\limits_{i = 0}^{255} {{\rm abs}\left\{ {(\sum\limits_{k = 0}^{i} {\gamma_{k} } ) - (\sum\limits_{k = 0}^{i} {\beta_{k} } )} \right\}} $$
(11)

Step 5: The membership value presents the state of final marked image as ‘1’ or ‘0’ based on the below condition.

$$ {\text{Membership}}\;{\text{value}} = \left\{ \begin{array}{l} 1\;\;{\text{if}}\;\delta_{f} (x_{i} ) < \delta_{b} (x_{i} ) \hfill \\ 0\;\;{\text{else}} \hfill \\ \end{array} \right. $$
(12)

Morphological-Based Refinement

We now use the morphological-based refinement for further improving the quality of initial refined output, which contains the holes, spur, non-majority pixels, and zero connective pixels. Predefined MATLAB morphological operators such as Fill, Majority, clean were used.

Results and Discussion

In order to represent the performance of our proposed method, we have chosen 15 CT images from LIDC Lung database. A ground truth image has been generated manually for each image. The ground truth image was combined with its corresponding original image, to segment the CT lung image. The performance of our proposed segmentation method has been compared with other conventional segmentation algorithms like ‘Otsus’, ‘K-means clustering’, ‘Histogram thresholding using fuzzy measures (HDFM)’, ‘Log’, ‘Zerocross’, and ‘our earlier work using fuzzy logic’ [9]. The performance of individual methods over Lung image was carried out and the results of the techniques are depicted in Tables 1 and 2.

Table 1 Original results for four algorithms: Otsu’s technique, K-Means, histogram thresholding, fuzzy logic alone, and proposed method
Table 2 Comparison accuracy of Segmentation techniques

The segmentation accuracy A s is computed using the following equation to evaluate the quality of the segmentation results:

$$ {\text{A}}_{\text{s}} = \frac{{{\text{S}}_{\text{I}} }}{{{\text{O}}_{\text{I}} }} * 1 0 0 $$
(4)

where \( {\text{S}}_{\text{I}} \) denotes the ratio between \( {\text{O}}_{\text{I}} \) and the number of objects presented in the segmented region. \( {\text{O}}_{\text{I}} \) denotes the total of solidity, Area and Perimeter of the pixels present in the unsegmented region.

Conclusions

In this paper, we have proposed an automated Lung segmentation scheme based on fuzzy logic along with EMD-based refinement. The main advantage of this work is that it reduces false segmentation. From the experimentation results, it is proved that the proposed method ensures accuracy level of segmentation. Our method is useful in assisting for further diagnosis of Lung nodules in LDCT by reducing the mortality rate. Further works in this direction can be the application of a suitable classification algorithm for identification of Lung Nodules.