Keywords

1 Introduction

Breast cancer is the most common cancer among women worldwide [1, 2]. Early identification of signs and symptoms of breast cancer helps to decrease the mortality [3, 4]. Breast ultrasound (BUS) imaging is popular since it is non-invasive and does not use radiation [4]. However, in order to achieve the correct diagnosis, clinical knowledge and competence are required [5]. Currently time-consuming and tedious manual segmentation methods are replaced by automated segmentation process that requires little or no user intervention. Automatic segmentation of the BUS image remains a difficult task for two primary reasons. First, the BUS images show speckle noise, local intensity changes, and low contrast. Secondly, breast tumors vary widely in shape, size, and location. Numerous researchers have segmented the image of the BUS using active contour methods.

In this paper, the preprocessing of ultrasound images has been done by using speckle reducing anisotropic diffusion (SRAD) to minimize speckle noise. Most frequently used region-based active contour method has been shown homogeneous regions. However, they fails with inhomogeneity of the image. To overcome this, paper proposes multiphase level set formulations to segment the inhomogeneous images in order to detect the more precise tumor boundaries in low contrast regions. The following is the structure of the paper: Sect. 2 describes related works for ultrasound image segmentation. Section 3 explains the preprocessing, Chan-Vese (CV), and level set approaches, and Sect. 4 describes data collection, experimental results, and discussion accompanied by the works conclusions.

2 Related Work

Many popular segmentation methods rely on [6,7,8] intensity homogeneity but they are ineffective for inhomogeneous images. Based on task specific constraints, a quantitative survey of low-quality ultrasound image segmentation is conducted [9]. Region-based active contour model with Ostu thresholding technique can be applied for homogeneous images [10]. The threshold will be selected by minimizing the variance. The snake model [11, 12] was widely used for BUS images. The snake deformation procedure is a very time-consuming and manual generation of initial contour. The smoothing process [13] to reduce the effect of noise will make weak edges to disappear.

To handle the speckle noise robustly, phase-based level segmentation [14] is proposed. This method considers the local orientation and phase from the monogenic signal. An efficient despeckling method called Bayesian non-local means filter (OBNLM) [15] is used to ultrasound images to minimize speckle noise. The speckle noise will be removed by using SRAD filter for sonography images. Edge-based active contour model [16] which will robustly mange the speckle noise and uses the phase information for better edge map.

3 Proposed Multiphase Level Set Approach

Ultrasound images are generally affected by speckle noise [17, 18]. SRAD filter is used to reduce the speckle noise and the preservation and enhancement of the edges. In the Chan-Vese active contour [6, 19] method, for given US image \(f\left( {x,y} \right)\) in domain \({\Omega }\), the energy functional given by (1)

$$ \begin{aligned} F\left( {c1,c2,C} \right) & = \mu \cdot {\text{length}}\left( C \right) + v \cdot {\text{Area}}\left( {{\text{inside}}\left( C \right)} \right) \\ & \quad + \lambda 1 \cdot \mathop \int \limits_{{{\text{inside}}\left( C \right)}} \left( {\left| {f\left( {x,y} \right) - {\text{~~}}c1} \right|} \right)^{2} {\text{~d}}x,{\text{d}}y \\ & \quad + \lambda 2\mathop \int \limits_{{{\text{outside}}\left( C \right)}} \left( {\left| {f\left( {x,y} \right) - c2} \right|} \right)^{2} {\text{~d}}x,{\text{d}}y \\ \end{aligned} $$
(1)

where µ\(,v\), and \(\lambda 1\lambda 2\) are fixed parameters having the value greater or equal to zero. Smoothness controlled by µ, propagation speed increased by v, and inside and outside forces of the image contour controlled by \({ }\lambda 1\lambda 2\). Inside and outside of the C, image intensity are approximated by c1 and c2 energy functions, respectively.

CV method requires a complex differential method for numerical stability and relays on intensity homogeneity. This proposed technique overcomes the segmentation difficulty for intensity heterogeneous images. Multiphase level set method is used in this technique to segment the US image into 2m sections. The US images can be segmented with more than two objects. For two phase segmentation, image domain \({\Omega }\) is divided into two \(\Omega 1{\text{ and }}\Omega 2{\text{ sections}}\) and can be shown as membership functions represented by M1 \(\left( \phi \right){ } = H{ }\left( \phi \right)\) and M2 \(\left( \phi \right){ } = 1 - H{ }\left( \phi \right)\). Hence, the level set formulation [20] for the energy is given by Eq. (2)

$$ \varepsilon = \int \left( {\mathop \sum \limits_{i = 1}^{N} \int K\left( {y - x} \right)\left| {f\left( {x,y} \right) - b\left( y \right)c_{i} } \right|^{2} M_{i} \left( {\left( \phi \right)\left( x \right)} \right){\text{d}}x} \right){\text{d}}y $$
(2)

Here, \(K\left( {y - x} \right)\) is positive window function. Such that \({ }K\left( {y - x} \right) = 0\), \(b\left( y \right)\) is the slowly varying bias field. By simplification, Eq. (2) can written as Eq. (3)

$$ \varepsilon = \int \left( {\mathop \sum \limits_{i = 1}^{N} \int K\left( {y - x} \right)\left| {f\left( {x,y} \right) - b\left( y \right)c_{i} } \right|^{2} {\text{d}}y} \right)M_{i} \left( {\left( \phi \right)\left( x \right)} \right){\text{d}}x $$
(3)

Hence, rewriting the energy \(\varepsilon \left( {\left( \phi \right),c,b} \right)\) for multiphase level set Eq. (4)

$$ \varepsilon \left( {\left( \phi \right),c,b} \right) = \int \mathop \sum \limits_{i = 1}^{N} {\text{e}}_{i} \left( x \right)M_{i} \left( {\left( \phi \right)\left( x \right)} \right){\text{d}}x $$
(4)

Multiphase level set approach detects the region of interest in inhomogeneous better than the CV method, and also the position of the initial contour is independent of the object need to be detected in the given image. The multiphase level set not only gives us intensity information, but it also tells us where and how picture features are located.

4 Results and Discussion

Experiments are performed on the ultrasound (US) image dataset of Baheya [21] hospital. MATLAB 2018b is used to implement the proposed approach and validated with CV method results for the dataset of 100 images. In Fig. 1a, it shows four despeckeled ultrasound images are illustrated to evaluate the effectiveness of the method. The segmented results of CV method and proposed approach are shown in Fig. 1b and c. The CV method’s accuracy is determined by the initial contour’s location. The CV method curves boundaries are not smooth, as can be seen in the figure, but the proposed strategy can detect the tumor boundary with very smooth contours, independent of the starting contour’s position. Experiments show that the proposed method extracts more precise tumor boundaries than the CV method. Figure 1d shows the segmented part of the tumor for the proposed approach.

Fig. 1
figure 1

a Despeckled image, b CV method contour, c proposed method contour, d segmented

4.1 Performance Metrics

To evaluate the accuracy of the proposed segmentation approach, the performance measures [22] Dice coefficient (DC), Jaccard coefficient (JC), and Hausdorff distance are represented in Eqs. (5), (6), and (7), respectively, were used. The Hausdorff distance (HD) [23] measures the max distance between two contours. Comparison of performance metrics for CV and proposed method is shown in Table 1. For tumor region between two label sets L and S, let L is the ground truth and S is the automated contour from segmentation. J(L, S) and D(L, S) get values ranging from 0 to 1. Larger value implies the better segmentation. Optimal value of HD(L, S) is 0. DC measures the segmentation result’s overlap with the ground truth.

$$ {\text{DC}} = D\left( {L,S} \right) = 2\frac{{\left| {L \cap S} \right|}}{{\left| L \right|{ } + \left| S \right|}} $$
(5)
$$ {\text{JC}} = J\left( {L,S} \right) = \left| {\frac{L \cap S}{{L \cup S}}} \right| $$
(6)
$$ {\text{HD}}\left( {L,S} \right) = \max \left\{ {\mathop {\max }\limits_{a \in L} \mathop {\min }\limits_{b \in S} a - b\mathop {\max }\limits_{b \in S} \mathop {\min }\limits_{a \in L} b - a} \right\} $$
(7)
Table 1 Performance analysis of two segmentation methods

5 Conclusion

Currently, ultrasound is the best imaging modality in conjunction with mammography for detecting and diagnosing breast abnormalities. In this paper, level set-based US image segmentation is proposed. First, low contrast and speckled US images are denoised by SRAD filter and proposed method has been validated by performing experimentation on 100 images. The experiments demonstrate that the CV method is fails in case inhomogeneity images, and boundaries are not smooth. In contrast, this proposed approach can detect the tumor boundary with very smooth contours. The metrics such as JC, DC, and Hausdorff distance have been used to assess the recommended method’s efficacy for better segmentation. Further, these findings can be used in feature extraction and classification of ultrasound images to detect breast cancer.