Skip to main content
Medical Physics logoLink to Medical Physics
. 2008 Aug 18;35(9):4112–4120. doi: 10.1118/1.2968876

Live level set: A hybrid method of livewire and level set for medical image segmentation

Jianhua Yao 1,a), David Chen 2
PMCID: PMC2673655  PMID: 18841864

Abstract

Livewire and level set are popular methods for medical image segmentation. In this article, the authors propose a hybrid method of livewire and level set, termed the live level set (LLS). The LLS replaces the one graph update iteration in the classic livewire with two iterations of graph updates. The first iteration generates an initial contour for a level set computation. The level set distance is then factored back into the cost function in the second iteration of graph update. The authors validated LLS using synthetic images. The results show that the performance of the LLS is superior to both the classic live wire and traditional level set methods in terms of accuracy, reproducibility, smoothness and running time. They also qualitatively evaluated the LLS using real clinical data.

Keywords: livewire, level set, medical image segmentation

INTRODUCTION

Interactive∕semiautomatic segmentation methods that require user assistance range from complete manual drawing of object boundaries to detection of object regions with minimal user assistance.1 The goal of research in interactive segmentation should be to increase the accuracy while minimizing user involvement and decreasing the total user’s time for segmentation. Some popular approaches in semiautomatic segmentation are active contour models,2 active shape models (ASMs),3 graph cut,4, 5 and the methods we use, livewire6, 7, 8, 9 and level set.10, 11, 12 The active contour method uses an initial approximation of an object’s boundary and iteratively minimizes a corresponding energy function to refine the contour. ASMs search for boundaries by applying statistical models garnered from training data. All these segmentation methods have their pros and cons. Some researchers tried to incorporate the best characteristics of different strategies. For instance, United Snakes13 combined the livewire7, 8 and active contour2 techniques. The traces generated from livewire are used as the initial for further active contour segmentation. In this way, it imposes smoothness on livewire traces and bridges complicated gaps along object boundaries.

Livewire (aka intelligent scissors) was introduced in 1992.7, 8 It is a user-steered method that relies on finding the shortest path between nodes in a weighted graph. The shortest path represents the suggested contour that minimizes the cost from the user’s current mouse position to the start position. It allows for a balance between user interaction and automatic analysis needed for image segmentation. Falcao et al.1 proposed a live lane algorithm to restrain the search domain and speedup the algorithm. Similarly, an enhanced lane algorithm was proposed by Kang et al.14 to restrict the search domain by following the target boundary. More recently, approaches using live wire have been applied to three-dimensional (3D) segmentation. Souza et al.15 proposed an approach known as iterative user steered 3D image segmentation. In this method livewire results from one slice are propagated to subsequent slices by projecting the midpoints of livewire segments onto the new slices to act as anchor points. Lu et al.16 developed a 3D live-wire method on computed tomography (CT) chest image analysis. Graph cut4, 5 is another segmentation technique based on combinatorial optimization using graphs. The user roughly marks the objects and background on the image, and the maximum flow is calculated to locate the object boundary. The initial markers can be loosely placed; however, multiple refinements may be needed to achieve accurate segmentation.

Level set algorithms rely on the propagation of an initial boundary under the influence of image forces.10, 11 The contour is embedded as the zero level set of a high dimensional function known as the level set function. This method has been previously applied in medical image segmentation, such as a system to track the volume growth of uterine leiomyomas over time.12 Another class of level set algorithms are region-based methods,17 where various low-level assumptions regarding the intensity, color, texture, or motions are applied. Shape priors extracted from training data can also be used to guide the level set.18 Due to the intensity assumption and prior information, the region-based level set methods are usually application specific. To address this issue, nonparametric statistics such as mutual information19 and Markov models20 had also been applied in curve evolution and pixel classification. The nonparametric methods are unsupervised and do not require prior information about the probability density distribution of the image. Therefore, they can be employed to solve a variety of challenging image segmentation problems. In recent years, several groups21, 22, 23 extended the level set methods to texture image segmentation. Those methods are unsupervised and rely on nonparametric statistics in image neighborhoods for level set computation in sophisticated images. Level set methods are generally very slow, taking from a few minutes19 to near an hour20 on a standard image. Since we are investigating interactive segmentation, we require the segmentation to be completed within a few seconds. Hence, we cannot afford a full level set execution on the entire image.

The graph based livewire method has the advantage of quickly finding a global minimum of the energy function; however, the discrete topology of graphs may produce segmentation artifacts due to the noise along the boundary. The level set method is based on a continuous formulation and can produce smooth segmentation; however, it usually requires good initialization and is a time consuming operation. Medical images have many inherent characteristics that make designing a segmentation method, whether it be automatic or semiautomatic, difficult. For instance, the abundant amount of noise in medical images and the lack of strong boundaries can result in inaccurate regions when subjected to either the level set or livewire method. From our experience, neither method alone, the livewire or level set, can accurately segment objects such as uterine fibroids, the liver and knee cartilage due to their indistinct boundaries, noise and image artifacts (see Fig. 12 in Sec. 3). For more defined boundaries like bone, these methods can garner better results.

Figure 12.

Figure 12

Evaluation on clinical images. First row: T2 weighted MR images of uterine fibroid, second row: T1 weighted MR images of knee cartilage, third row: CT images of liver. (a) clinical images, (b) segmentation results of traditional level set, (c) segmentation results of classic livewire, (d) segmentation results of LLS. Dark contours: hand drawn initial contours, light contours: segmented contours.

Based on the above observation, we propose a method to incorporate level set distance into the cost function of the livewire to extract an accurate representation of the boundary. In our method we use the active livewire contour as the initial level set. We then take the distance from the zero-level set to factor into the cost function in determining the best path. We name the hybrid method the live level set (LLS). We must emphasize that the proposed method is an interactive segmentation technique with the intention to improve the classic livewire method.

In Sec. 2 we will describe the classic livewire and traditional level set method, as well as our proposed LLS method. We also demonstrate the advantages of LLS over the original methods. Our experiments and results are presented in Sec. 3. Finally, we discuss the limitations and future plans in Sec. 4.

METHODS

Our method, which is termed the live level set (LLS), builds on top of the classical livewire approach. The major enhancement of the LLS is a new adaptive graph generation that requires two iterations to incorporate level set distance in the cost function.

Classic Livewire

Livewire relies on using dynamic programming in the form of Dijkstra’s graph search algorithm to find the optimal cost path between a start node and all other nodes in a weighted graph.

In the original implementation of livewire,7, 8 the complete image is represented as a graph with each pixel representing a node and edges representing the connection between one pixel and each of its eight neighboring pixels (Fig. 1). The graph can be represented as an array of nodes containing a unique identifier, pointers to its eight neighboring nodes, the cost to arrive at that node from the start node, and a backpointer which dictates the path with the lowest cost. Figure 1 shows the graph representation of an image and the shortest path between nodes.

Figure 1.

Figure 1

Graph and shortest path. (a) Graph representation of an image. Circles represent nodes (pixels in images), and the lines between nodes represent edges. Each node is connected to its eight neighbors. (b) Example of local costs between nodes. The numbers represent the weight of an edge. (c) Bold lines represent the least cost path from the solid circle (the start point) to all other points in the graph. Numbers represent the total cost to get to that node.

The cost function which determines the cost of an edge between two pixels can be computed using various pixel characteristics. Mortenson6 used a combination of Laplacian zero-crossing, gradient magnitude, and gradient direction, which is defined as

cm(u,v)=ωZfZ(u)+ωGfG(u)+ωDfD(u,v), (1)

where fZ is the Laplacian zero-crossing, fG is the gradient magnitude, fD is the gradient direction, u and v are neighboring pixels forming an edge in the graph, and each ω is the weight of corresponding feature function.

The flow chart of the classic livewire algorithm is in Fig. 2. The start node in the livewire implementation is the initial mouse click, also termed the seed node. From the seed node we run the dynamic programming algorithm to update the graph. While we iterate through this algorithm we immediately look at the cost from a node to neighbor nodes and assign backpointers along the shortest path based on the costs. After the shortest paths from all nodes to the seed node are determined, the user may move the mouse to other pixels and a contour will be drawn based on where the backpointers direct. This series of steps continue as long as the user has more contours to draw.

Figure 2.

Figure 2

Flow chart of the classic livewire algorithm.

Traditional level set method

Level set methods are part of the family of segmentation algorithms that rely on the propagation of an initial boundary under the influence of image forces.11 Level sets are evolving interfaces (contours or surfaces) that can expand, contract, split, or merge. The underlying idea behind the level set method is to embed the moving interfaces as the zero level set of a higher dimensional function ϕ(x,t), defined as

ϕ(x,t)=±d, (2)

where ±d is the signed distance to the interface from point x, and t is the time index. Here, x is outside the interface when ϕ(x,t)<0, inside the interface when ϕ(x,t)>0, and on the interface when ϕ(x,t)=0. The evolution of ϕ(x,t) can be represented by a partial differential equation

ϕt+ϕx(t)=0. (3)

Define the scalar speed field F as F=nx(t), where n=∇ϕ∕∣∇ϕ∣ is the normal direction of the level set function, and the above equation becomes:

ϕt+Fϕ=0. (4)

The speed function F can be broken down to three parts: propagation, curvature, and advection speed. Then the level set equation can be further expressed as

ϕt=αg(x)δϕ+βg(x)κ(x)ϕ+γg(x)ϕ, (5)

where g(x) defines the propagation term, g(x)κ(x) defines the curvature term, g(x) defines the advection term, α, β, and γ are weighting parameters for each term, and δ is the step size. We used the ITK implementation of the level set algorithm in our system.24

The Laplacian level set defines the speed function based on the Laplacian of images values. The goal is to attract the evolving level set interface to local zero-crossings in the Laplacian image. In our implementation, the image is first convolved with gradient anisotropic diffusion filter.24 The speed image for Laplacian level set is

gL(x)=2{A[I(x)]}, (6)

where I is the image intensity, A(.) is the anisotropic diffusion, and ∇2 is the Laplacian operator. gL(x) is used to replace g(x) in Eq. 5. The Laplacian level set is best known for refining an existing segmentation which is close to the final solution.

One example of the level set distance function ϕ(x,t) is illustrated in Fig. 3 after 2000 iterations of Laplacian level set. The zero level set is on the boundary of the circle.

Figure 3.

Figure 3

Level set distance. The level set distances from outside to inside are −10, −5, 0, 5, and 10.

LLS

Our proposed method termed the live level set (LLS) builds off of the original concept of livewire by introducing two iterations of graph updates with a hybrid cost function dependant on the result of the shortest path produced from the first iteration. We also develop a method to apply an adaptive search space rather than a global search with a purpose to improve the efficiency. The idea of restricting the searching space is borrowed from the live lane and enhanced lane techniques.1

Adaptive search space

The search space for graph update is adaptively expanded dependant on the shortest path and the current mouse location. In this scheme once the mouse point leaves the current search space, a new search space is expanded that is inclusive of the original search space and a new circular search space centered at the mouse point with radius of a predefined expansion range (default at 20 pixels).

Hybrid cost function

We propose two modifications to the cost function in the LLS. The first one is to use a local maximum gradient rather than a global maximum gradient to normalize the cost, and the second one is to factor in the level set distance. The LLS consists of two different iterations of graph updates using two different cost functions.

The cost function in the first iteration is only dependent on the gradient magnitude. As a higher magnitude denotes a stronger edge, a lower cost is assigned by subtracting it from the maximum gradient magnitude within the search space and normalizing it within the span of gradients. By narrowing the search space, we also limit the image gradients that are relevant in the cost function. Using the maximum gradient within an arbitrary region or within the whole image may at times influence the cost function adversely. If the region of interest has low gradient boundaries, a normalization based on a high gradient may dilute the cost. This dilution would favor straight lines as opposed to curves, which may lead to inaccurate boundaries. To address this issue, we propose to normalize the cost function based on the maximum gradient within the adaptive search region. This allows us to have more control over preventing external influences from acting on characteristics that are more consistent with the boundary of interest. The cost function of edge (u,v) in the classic livewire method is

cg(u,v)=maxG12[g(u)+g(v)], (7)

where max G is the maximum gradient of either the whole image or a predefined area.

Accordingly, our normalized cost function is

cn(u,v)=maxG(N)12[g(u)+g(v)]maxG(N)minG(N), (8)

where max G(N) and min G(N) represent the maximum and minimum gradient magnitude within an adaptive search space N defined in Sec. 2C1.

Using the normalized cost function, the shortest path from the current mouse position to the seed point, which we term the transient path, is computed. The first and last points on the transient path are connected to form a closed contour and used as initial value for level set computation. The initial level set distance is assigned as 0.5 inside the contour and −0.5 outside. The initial values are then passed to a Laplacian level set. A hybrid cost function is then derived based on the level set distance

ch(u,v)=cn(u,v)+wl*12[ϕ(u,t)maxϕ(N)+ϕ(v,t)maxϕ(N)]. (9)

Here, the hybrid cost function takes the normalized gradient magnitude cost function cn(u,v) and adds a weighted average of the normalized level set distances of pixel u and v. ϕ(u,t) and ϕ(v,t) are level set distances of pixels u and v, respectively, max ϕ(N) is the maximum level set distance in the search space, and wl represents a weight that can be adjusted to place more or less emphasis on the level set contribution.

Figure 4 illustrates the computation of the hybrid cost function from the normalized gradient cost function and level set distance. The different Euclidean lengths between diagonal and nondiagonal edges are also taken into consideration in the cost function calculation. If the two pixels do not form a diagonal edge, the cost function is compensated by 2, i.e., c(u,v)=c(u,v)2. In Fig. 4 the first iteration using cn(u,v) failed to converge to the correct boundary, after factoring the level set distance in ch(u,v), the livewire get the correct contour.

Figure 4.

Figure 4

Hybrid cost function in the LLS. Dark circle indicates the start point, light circle indicates current mouse position. (a) The graph with weighted edges using normalized cost function cn(u,v). (b) Transient path (dark blue lines). The numbers represent the total cost to get to a certain position. (c) Distance from the zero level set when Laplacian level set is applied to the transient path. (d) Graph generated with the hybrid cost function ch(u,v), wl=1. (e) Shortest path (dark blue lines) computed from the graph in (d).

Overall LLS methodology

The flow chart of the LLS is shown in Fig. 5. The user’s first mouse click on the image is considered the start node. We first generate a search space around the start node and calculate the least cost path to any node within that search space using the normalized gradient cost function. As the user continues to move the mouse, the current shortest path is generated based on the backpointers stored in each node. Eventually, the user will come to a node that is out of the search space. When this occurs, the search space is expanded and the graph is updated using normalized gradient cost function. Then the transient path is retrieved (connect the two end points to form a close contour) and sent to the level set algorithm as the initialization to compute the level set distance. The result is then factored into the hybrid cost function [Eq. 9] for another graph update to determine the least cost path. The process is repeated until the complete contour is drawn.

Figure 5.

Figure 5

Flow chart of the LLS algorithm.

Control parameters

There are three user defined parameters in the LLS: search expansion range, level set weight, and level set iteration number. Search expansion range defines the range to expand the search space each time a new node enters the search space. We used 20 pixels as the default value, which is sufficient in most cases since users can usually place the mouse within 20 pixels of the true boundary. Level set weight defines the weight of level set distance component in the hybrid cost function [Eq. 9]. The level set iteration number defines the number of iterations the Laplacian level set is run to compute the level set distance. A rule of thumb is that the level set iteration number should equal twice the search expansion range. We will evaluate the effect of the control parameters on the performance of the LLS in Sec. 3A1. Based on the evaluation, we chose 0.3 as the default value for the level set weight and 40 as the default value for level set iteration number. Our evaluations indicate that the LLS is not sensitive to control parameter choice. We have successfully applied the default parameters in a large range of images and situations.

Advantages of LLS

LLS is a hybrid method of two distinct segmentation methods, livewire and level set. It has advantages over both classic livewire (CLW) and traditional level set (TLS) methods, especially for noisy, low contrast images such as medical images.

Advantages over classic livewire method

The hybrid cost function in the LLS has a factor of the level set distance. The curvature term in the speed function of the level set tends to preserve the smoothness of a contour. In this sense, the contour generated by the LLS tends to be smoother than that by the classic livewire. Furthermore, since the level set method is robust to contour discontinuity, the LLS can overcome small gaps and bumps along the boundary. Figure 6 shows an example of the LLS versus the classic livewire segmentation on a synthetic image of a noisy circle with gaps and bumps. It is noted that the LLS result is generally smoother and overcomes the gap and bump along the border.

Figure 6.

Figure 6

Classic livewire vs LLS. Left: result from classic livewire; Right: result from LLS. Dark contours are the initial values, light contours are the segmentations. The LLS results in smoother boundaries and overcomes the gap and bump along the border. Contrast: 50, noise: 20, CNR: 2.5, blurring: 3.

Advantages over traditional level set method

The traditional Laplacian level set method requires a fairly good initial contour to get a reasonable result. This restriction is alleviated in the LLS since the first graph update using normalized gradient cost function can bring the contour close to the destination and the second graph update further refine the segmentation. Furthermore, the traditional level set tends to oversmooth the contour, which makes it imprecise when segmenting objects with sharp corners. Figure 7 shows two examples of the LLS versus the traditional level set with two different initial contours on a synthetic image of a noisy and blurry square. We see that the traditional level set converges to different segmentations using two different initial contours, and it fails to segment the corners of the square. The level set is a time consuming operation when many iterations are applied to a large image. However in the LLS, first, the level set distance is only computed in a small neighborhood around the transient path; second, only a small number of level set iterations is necessary since the initial contour is already close to the true boundary after the first graph update. Taking into account both factors, the LLS is much more efficient and accurate than the traditional level set.

Figure 7.

Figure 7

Traditional level set vs LLS. (a) and (b) results from the traditional level set (different initial contours); (c) and (d) results from the LLS. Dark contours are the initial values, light contours are the segmentations. The traditional level set converges to different segmentations (DSC=0.921) using different initial contours and fails to segment the corner. The LLS gets consistent segmentation of the square (DSC=0.984). Contrast: 50, noise: 50, CNR: 1, blurring: 3.

EXPERIMENTS AND RESULTS

We used simulations on artificially constructed images, as well as visual inspection of results on actual clinical images, to quantitatively and qualitatively compare the performance between the CLW, the TLS, and our hybrid LLS method. By using synthetic images we can extract quantitative differences and systematically evaluate the overall performance. Section 3A details the systematic performance comparison. Section 3B describes the visual comparison using actual clinical images.

Quantitative evaluation using synthetic images

We produced two types of synthetic images, one is a circle of 100 pixels in diameter (Fig. 6), and the other is a square with 100 pixels in size (Fig. 7). Gaussian white noise and Gaussian blurring were added to the images. Since medical images are generally noisy and do not have distinct edges, we evaluate our algorithms under different contrast to noise ratio (CNR) and blurring condition in the synthetic images. The Gaussian white noise was added at different magnitudes. The blurring effect was simulated by convolving the image with a Gaussian kernel at different variances. Both noise and blurring artifacts can be turned on or off separately so that different combinations can be applied to generate the synthetic images. Three individuals were selected to manually trace contours around the synthetic circle and square. Each individual drew five initial contours on each object at different time points. These contours were saved and used as the initializations for our simulations.

The evaluation is performed using three statistical metrics: dice similarity coefficient (DSC), mean contour distance (Dist), and smoothness index (SI). We categorize the pixels in four categories according to their presence in the ground-truth (GT) and the computer segmentation (CS). A pixel is treated as a true positive (TP) if it is present in both GT and CS; as a true negative if it is not present in both GT and CS; as a false negative (FN) if it is present in GT but not in CS; and as a false positive (FP) if it is present in CS but not GT. DSC is a statistical measure of spatial overlap between GT and CS, and is defined as,

DSC=2NTP2NTP+NFP+NFN. (10)

Here, NC represents the number of pixels in the category C (TP, FP, or FN). We also compute the mean contour distance to evaluate the overall performance

Dist(X,Y)=meanxX{minyY[d(x,y)]}. (11)

Here, X is the segmented contour, Y is the ground truth contour, and d(x,y) defines the Euclidean distance between two points x and y. The smoothness index is to characterize the smoothness of the contour. Intuitively a smooth contour should have continuously varying tangent along the contour.25 Therefore, we define the smoothness index by summing up the change of tangent directions along the contour

SI=1Ni=1..NTiTi+1. (12)

Here, N is the number of point on the contour, Ti is the tangent direction at point i, and and ∘ is the dot product between two vectors. SI is value between −1 and 1. The higher SI is, the smoother the contour is.

For each imaging condition (CNR and blurring), the mean and standard deviation of 30 simulations (two objects, three users, and five initial contours) were computed. The average and standard deviation of the metrics in the 30 simulations are used to statistically analyze the performance. We also record the amount of time required to complete the segmentation. Figure 6 is a synthetic circle image with CNR=2.5 and blurring=3, and Fig. 7 is a synthetic square image with CNR=1 and blurring=3.

Evaluation of control parameters

As mentioned in Sec. 2C, the level set weight (wl) in the hybrid cost function and level set iteration number may affect the performance of the LLS. In this experiment, we vary the control parameters and conduct statistical evaluations on the synthetic images using all initial contours. Figure 8a plots the mean of Dist and DSC of all evaluations when varying the parameter of level set weight. Figure 8b plots the mean of Dist and DSC of all evaluations when varying the parameter of level set iteration number. The big data points on the plots are the default values for parameter selection (0.3 for level set weight and 40 for level set iteration number). The LLS achieves the best performance at level set weight=0.3, but varies only slightly between 0.2 and 0.4 [Fig. 8a]. We chose default level set iteration number at 40 since the plot is virtually flat after level set iteration=40 [Fig. 8b] and the running time is substantially longer for more level set iterations. In summary, the results indicate that the LLS is robust to parameter selection.

Figure 8.

Figure 8

Evaluation of control parameters. (a) Level set weight; (b) level set iteration number. The big data points are for default parameters.

Comparison over image noise

The comparison of three methods over image noise is showed in Fig. 9. In this experiment, we fixed the image blurring at 3 and varied the CNR from 2 to 0.5 (contrast fixed at 50, and noise varied from 25 to 100). The traditional level set gave the worst segmentation accuracy at all noise levels since the initial contours were not close enough to the result. The Classic livewire and LLS had similar performances on low noise images, while the LLS is superior to the classic livewire on noisy data. The LLS maintains good performance until the CNR is 0.75, the performance drops dramatically when the CNR is 0.5 (noise is twice as strong as the contrast).

Figure 9.

Figure 9

Comparison over image noise. Left: DSC metric; right: Dist metric.

Comparison over image blurring

The comparison over image blurring is shown in Fig. 10. In this experiment, we fixed the image CNR at 1 and varied the blurring from 1 to 5. Again, traditional level set demonstrated the worst performance, while the LLS performed slightly better than the classic livewire. It also showed that more image blurring did not adversely affect the performance. All methods achieved the best performance at image blurring=2, which indicated appropriate image smoothing actually helped the segmentation. The results also demonstrate that the LLS is not sensitive to image blurring. It achieves comparable performance at all blurring levels.

Figure 10.

Figure 10

Comparison over image blurring. Left: DSC metric; right: Dist metric.

Running time comparison

The running time is measured as the duration time from the first point in the prerecorded initial contour sent to the algorithm until the end of the simulation (no lapse between points). The running time comparison is illustrated in Fig. 11. As expected, the traditional level set took the longest time, while the classic livewire is the fastest. Although the LLS took more than three times that of the classic livewire, its mean running time (4.3 s) is still sufficient for interactive segmentation.

Figure 11.

Figure 11

Running time comparison.

Reproducibility comparison

We also compared the reproducibility among three users using the three different methods. Each user conducted five separate segmentation tests on the synthetic images. Table 1 shows the intra-user reproducibility, where each cell represents the standard deviation of DSC and Dist metrics of all tests conducted by one user. The LLS demonstrates best intra-user reproducibility. Table 2 shows the inter-user reproducibility, where each cell represents the average difference of DSC and Dist metrics of tests conducted between two users. The LLS again demonstrates best inter-user reproducibility.

Table 1.

Intra-user reproducibility comparison. Numbers in each cell are the standard deviation of DSC and Dist (pixels) metrics of all tests conducted by one user.

  TLS CLW LLS
User1 0.049, 1.67 0.019, 0.76 0.016, 0.49
User2 0.022, 0.64 0.016, 0.75 0.014, 0.63
User3 0.032, 1.65 0.023, 1.05 0.017, 0.69
Table 2.

Inter-user reproducibility comparison. Numbers in each cell are the average difference of DSC and Dist (pixels) metrics of all tests conducted between two users.

  TLS CLW LLS
User1 vs user2 0.078, 2,84 0.019, 0.78 0.016, 0.58
User2 vs user3 0.065, 2.39 0.022, 1.03 0.019, 0.79
User1 vs user3 0.046, 2.43 0.027, 1.36 0.021, 0.93

Smoothness comparison

The LLS factors in the level set distance to regularize the smoothness of the contour. In this experiment we evaluated the smoothness index [Eq. 12] of the resulting contours from, the TLS, CLW, and LLS. We used both synthetic circle and square images, and the fixed CNR=1 and blurring=3. Table 3 lists the smoothness index for the three methods. It indicates that the TLS does generate the smoothest contours and the LLS improves the smoothness substantially compared to the CLW.

Table 3.

Smoothness comparison using synthetic images.

  TLS CLW LLS
Circle image 0.914±0.004 0.852±0.021 0.904±0.007
Square image 0.956±0.006 0.918±0.014 0.953±0.007

Qualitative evaluation using clinical images

We used three types of clinical images to qualitatively evaluate the three segmentation techniques, magnetoresistance (MR) scans of uterine fibroids and knee cartilage and CT scan of livers. The examples we chose are some of the most challenging segmentation tasks in medical image processing. Similar to the simulation experiments, we used the same hand drawn contours as initial contours to the three algorithms. Figure 12 shows the visual comparison of the segmentation methods on clinical data.

Uterine fibroids are the most common pelvic tumors in females. Accurate volume measurement is essential to characterize the growth rate and to develop therapeutics treatment. The appearances of fibroids on MR images are very complex and inhomogeneous (first row in Fig. 12). The boundary is blurry and often has gaps. Noisy textures may at times create internal edges. From the results, the LLS appears to capture the most accurate fibroid boundary and its contour is smoother than that of the CLW. The TLS misses the hump in the lower left corner and the CLW oversegments the region in the lower right corner.

Knee cartilage is a thin structure around the knee joint. Determining the volume and thickness of cartilage is important in evaluating the cartilage damage. The segmentation result of the TLS is a failure, where the contour is converged to stronger edges and collapses at times. The contour generated by the CLW is not smooth, while the LLS gives the most visually accurate segmentation.

The size of liver is an important biomarker for a number of diseases. In the CT images, the contrast between the liver and external organs is at times extremely low leading to weakly defined boundaries. The results shown in the third row of Fig. 12 demonstrates that the TLS fails to segment the sharp corners of the liver on the right side and oversegments the liver to include part of the kidney (lower-left corner). The CLW’s result is jittery at places and also does not segment the sharp corner correctly. Again, the LLS’s segmentation is more favorable than that of both the TLS and CLW.

The smoothness indices of the contours generated by the three methods on the real images are listed in Table 4. It shows that all three methods generate much smoother contours than the initial ones traced by a user. In general, the LLS is smoother than the CLW. In the case of knee cartilage, the smoothness index of the LLS is even better than that of the TLS since the TLS’s segmentation is a failure. From visual inspection in these three applications, we see noticeable differences between the contours when the region of interest is inhomogeneous and the boundary is less defined. As boundaries become more defined and less inhomogeneous, the differences among the three methods diminish. The segmentation results were shown to two radiologists and they both agreed that the LLS provides the most favorable segmentation results.

Table 4.

Smoothness index on clinical images.

  Initial TLS CLW LLS
Uterine fibroid 0.511 0.824 0.772 0.805
Knee cartilage 0.636 0.817 0.788 0.823
Liver 0.661 0.865 0.811 0.848

DISCUSSIONS

The LLS is a useful tool for medical image segmentation, where the anatomy boundaries are generally less distinct and noise and artifact are often presented. The LLS overcomes these imagery obstacles by marrying livewire and level set techniques. The medical staffs (radiologists and technologists) are good at recognizing the anatomical objects. However, they are not very good at placing the computer mouse at the exact locations, or tracing a smooth contour. Aided by the the LLS tool, it is much easier for the user to define a smooth (see Tables 3, 4) and precise (see Figs. 8910) boundary. It also reduces the variability (see Tables 1, 2) when the segmentation task is performed by multiple users.

There are some limitations in this investigation. The validation was mainly focused on the accuracy and robustness of the method. That was the reason we used the same initial contours when comparing the LLS with classic livewire and traditional level sets. However, since this is an interactive technique, it allows the user to make adjustments in positioning the mouse. A complete usability evaluation similar to the one proposed in Ref. 5 may be necessary to fully evaluate the advantage of the LLS. Similar to livewire, the LLS is currently a two-dimensional technique. The ideas in graph cut4 can be adopted in building a 3D graph. An effort is currently under way to extend the LLS to 3D images.

Our results showed that the LLS is more accurate and less sensitive to initial values than the traditional Laplacian level set method. However, recent advances in level set techniques such as those in Refs. 17, 18, 19, 20, 21, 22, 23 have improved the performance of level set tremendously. The main advantage of our method over those sophisticated segmentation methods is the speed. Our method is interactive and can be run in real time.

In conclusion, we proposed a hybrid segmentation method that takes advantage of both the classic livewire and level set methods. The LLS inherits the interactivity of the livewire, which can be executed simultaneously as the user traces the computer mouse over the image. It also inherits the robustness of the level set method, which allows it to overcome noisy and discontinuous boundaries. The advantage is achieved by two iterations of graph updates. In the first iteration, the original livewire graph update brings the contour close to the real boundary. In the second iteration, the level set distance is computed using the result of the first iteration as initialization. The level set distance is then factored into a hybrid cost function to obtain a robust and smooth segmentation. Both systematic performance comparison using synthetic images and visual inspection using clinical data demonstrated that the LLS is superior to both classic livewire and traditional level set methods.

ACKNOWLEDGMENTS

The authors thank Dr. Ronald Summers for support of the project and critical reviews of the article. This research was supported by the Intramural Research Program of the National Institutes of Health, Warren G. Magnuson Clinical Center.

References

  1. Falcao A. X. et al. , “User-steered image segmentation paradigms: Live wire and live lane,” Graph. Models Image Process. 60, 233–260 (1998). [Google Scholar]
  2. Kass M., Witkin A., and Terzopoulos D., “Snakes: Active contour models,” Int. J. Comput. Vis. 10.1007/BF00133570 1, 321–331 (1988). [DOI] [Google Scholar]
  3. Cootes T. F. et al. , “Active shape models—Their training and application,” Comput. Vis. Image Underst. 10.1006/cviu.1995.1004 61, 38–59 (1995). [DOI] [Google Scholar]
  4. Boykov Y. and Kolmogorov V., “An experimental comparison of min-cut/max-flow algorithms for energy minimization in vision,” IEEE Trans. Pattern Anal. Mach. Intell. 10.1109/TPAMI.2004.60 26, 1124–1137 (2004). [DOI] [PubMed] [Google Scholar]
  5. Li Y. et al. , “Lazy snapping,” ACM Trans. Graphics 10.1145/1015706.1015719 23, 303–308 (2004). [DOI] [Google Scholar]
  6. Mortensen E. N. and Barrett W. A., “Intelligent scissors for image composition,” ACM Computer Graphics (SIGGRAPH), 22, 191–198 (1995). [Google Scholar]
  7. Mortensen E. N.et al. , “Adaptive boundary detection using livewire two-dimensional dynamic programming,” IEEE Computers in Cardiology, Durham, North Carolina, 1992. (unpublished).
  8. Udupa J. K., Samarasekera S., and Barrett W. A., “Boundary detection via dynamic programming,” Visualization and Biomedical Computing, Chapel Hill, North Carolina, 1992. (unpublished).
  9. Stalling D. and Hege H.-C., “Intelligent scissors for medical image segmentation,” Digitale Bildverarbeitung fuer die Medizin 32–36 (1996).
  10. Caselles V., Kimmel R., and Sapiro G., “Geodesic active contours,” IEEE International Conference on Computer Vision, Cambridge, Massachusetts, 1995. (unpublished).
  11. Sethian J. A., Level Set Methods and Fast Marching Methods (Cambridge University Press, Cambridge, 1999). [Google Scholar]
  12. Guyon J.-P.et al. , “VETOT, volume estimation and tracking over time: Framework and validation,” MICCAI, Montreal, Canada, 2003. (unpublished).
  13. Liang J., McInerney T., and Terzopoulos D., “United Snakes,” Med. Image Anal. 10, 213–233 (2006). [DOI] [PubMed] [Google Scholar]
  14. Kang H. W. and Shin S. Y., “Enhanced lane: Interactive image segmentation by incremental path map construction,” J. Rubber Res. 64, 282–303 (2002). [Google Scholar]
  15. Souza A.et al. , Iterative Live Wire and Live Snake: New User-Steered 3D Image Segmentation Paradigms, (SPIE Medical Imaging, San Diego, CA, 2006). [Google Scholar]
  16. Lu K. and Higgins W. E., Improved 3D Live-Wire Method with Application to 3D CT Chest Image Analysis (SPIE Medical Imaging, San Diego, CA, 2006). [Google Scholar]
  17. Cremers D., Rousson M., and Deriche R., “A review of statistical approaches to level set segmentation: Integrating color, texture, motion and shape,” Int. J. Comput. Vis. 10.1007/s11263-006-8711-1 72, 195–215 (2007). [DOI] [Google Scholar]
  18. Tsai A., Yezzi A. J., and Willsky A. S., “A shape-based approach to the segmentation of medical imagery using level sets,” IEEE Trans. Med. Imaging 10.1109/TMI.2002.808355 22, 137–154 (2001). [DOI] [PubMed] [Google Scholar]
  19. Kim J. et al. , “A nonparametric statistical method for image segmentation using information theory and curve evolution,” IEEE Trans. Image Process. 10.1109/TIP.2005.854442 14, 1486–1502 (2005). [DOI] [PubMed] [Google Scholar]
  20. Awate S. P. et al. , “Adaptive Markov modeling for mutual-information-based, unsupervised MRI brain-tissue classification,” Med. Image Anal. 10.1016/j.media.2006.07.002 10, 726–739 (2006). [DOI] [PubMed] [Google Scholar]
  21. Rousson M., Brox T., and Deriche R., “Active unsupervised texture segmentation on a diffusion based feature space,” CVPR, 2003. (unpublished).
  22. Doretto G.et al. , “Dynamic texture segmentation,” International Conference on Computer Vision, 2003. (unpublished).
  23. Awate S. P., Tasdizen T., and Whitaker R. T., “Unsupervised texture segmentation with nonparametric neighborhood statistics,” ECCV, 2006. (unpublished).
  24. Ibanez L. and Schroeder W., ITK Software Guide Kitware, Inc., 2003.
  25. Constantine A. G. and Hall P., “Characterizing surface smoothness via estimation of effective fractal dimension,” J. R. Stat. Soc. 56, 97–113 (1994). [Google Scholar]

Articles from Medical Physics are provided here courtesy of American Association of Physicists in Medicine

RESOURCES