Feature-Based Image Clustering and Segmentation Using Wavelets

07/05/2019 ∙ by Junyu Chen, et al. ∙ 0

Pixel intensity is a widely used feature for clustering and segmentation algorithms, the resulting segmentation using only intensity values might suffer from noises and lack of spatial context information. Wavelet transform is often used for image denoising and classification. We proposed a novel method to incorporate Wavelet features in segmentation and clustering algorithms. The conventional K-means, Fuzzy c-means (FCM), and Active contour without edges (ACWE) algorithms were modified to adapt Wavelet features, leading to robust clustering/segmentation algorithms. A weighting parameter to control the weight of low-frequency sub-band information was also introduced. The new algorithms showed the capability to converge to different segmentation results based on the frequency information derived from the Wavelet sub-bands.



There are no comments yet.


page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Many real images are often corrupted by noise in their acquisition, such as biomedical images like Single-photon emission computed tomography (SPECT) images, and the image itself often contains both smooth and textured regions. Wavelet decomposition is a heavily used tool in image processing and classification; it enables the decomposition of an image into varies frequency sub-bands, similar to the way the human visual system operates [1]. Because of this property, Wavelets has been widely adopted in image denoising and texture classification [2][3]. However, there has been limited work on image clustering and segmentation with Wavelets coefficients.

Most conventional image clustering or segmentation algorithms, such as K-means, Fuzzy C-means (FCM), Gaussian mixture model (GMM), and Active contour without edges (ACWE), are based only on image intensities. Some improvements in the clustering algorithms to incorporate information about spatial context were proposed

[4][5][6], these methods usually require some modifications of the objective functions, thus they complicate calculations and increases computational time. A Wavelet based image clustering scheme was introduced by Porter and Canagarajah [7], the authors proposed a K-means image segmentation algorithm using the optimal Wavelet features derived from the image. In their method, the algorithm assigns pixels into two categories, smooth regions and textured regions by a certain threshold in the Wavelet domain, then K-means algorithm was applied in the different categories. In this paper, we propose to apply clustering or segmentation algorithms directly on the Wavelet domain with a weighting parameter to the Wavelet coefficients. The weighting parameter provides the possibility to control the different information to be segmented, the schematic of the algorithm is shown in Fig. 1. Three algorithms, K-means_w, FCM_w, and ACWE_w are proposed, and they are the modified versions of the conventional K-means, FCM, and ACWE algorithms to incorporate Wavelet coefficients. By the nature of the Wavelet transform, the spatial information is automatically being incorporated in the Wavelet coefficients, so the penalty terms for incorporating the spatial context [4][5][6] are not necessary. The detailed methods and implementation will be described in section 2.

Figure 1: Overview of algorithmic pipeline.

2 Image Clustering and Segmentation in Wavelet Domain

2.1 Wavelet Decomposition

The wavelet transform represents the singularity content of an image at multiple scales [8]. In our wavelet decomposition scheme, as shown in Fig. 2

, the transform is applied on the entire image and the first Wavelet tree was extracted and then vectorized. The vectorized Wavelet tree represents the feature vector of the first pixel. We then shift the image by one pixel and apply the transform again, iteratively.

Figure 2: Global Wavelet transform.

Figure 3: Sub-bands of 2-D Wavelet transform.

Fig. 3 shows the labeled sub-bands of a 3-level transform, the sub-bands , , and are called the details, where , represents the maximum decomposition level; the sub-band is called the smooth approximation; the sub-bands, , , , and , are recognized as low-frequency bands [7]. We then introduced a weighting parameter to the low-frequency bands in the vectorized Wavelet feature vector, the vector is defined as:

where the represents the feature vector of pixel, is the vectorization operator, and weighting parameter biases the differences in low-frequency bands when computing the squared differences in the clustering/segmentation algorithms, the effect of this parameter will be discussed in the next sub-sections.

2.2 K-means using Wavelet feature vectors

The K-means clustering algorithm aims to minimize the squared distances between all pixel intensity and the cluster center[9]. The algorithm iteratively minimizes the following objective function[10]:


where is the image domain, is the number of classes, is the observation at pixel j, and is the centroid of class .

The objective function of proposed K-means_w is define as:


where is the feature vector at pixel , the term is the centroid of feature vectors of class , and the hard membership function is defined as:




The algorithm computes the squared error between the feature vector at each pixel and the mean feature vector of each cluster; this operation spread the energy to each sub-bands evenly. The weighting parameter , which we introduced previously, controls the weight of the low-frequency sub-bands. With , the squared error in low-frequency sub-bands gets emphasized, on the other hand, the squared error in low-frequency sub-bands gets suppressed when .

2.3 Fuzzy c-means using Wavelet feature vectors

The FCM clustering algorithm was proposed by Bezdek, it is an improvement of the hard membership K-means clustering algorithm[11]. With the similar idea as K-means, The algorithm assigns soft membership of each class to a given pixel, depending on the similarity of the pixel intensity value to a particular class relative to all other classes. In the FCM_w, pixel intensities were replaced by the Wavelet feature vectors:


the following constrains remains the same as the conventional FCM:


where is the image domain, is the number of classes, represents the soft membership function, is the feature vector at pixel , is the centroid of feature vectors of class , and parameter is a weighting exponent that satisfies , it controls the amount of fuzzy overlap between clusters[11]. The larger values indicate a greater degree of overlap (and vice versa). By controlling in feature vectors , we control the importance of the low-frequency bands.

Applying the Lagrange multiplier method to minimize the objective function , an iterative update expression of membership functions and cluster centroids can be obtained.

2.4 Active contour without edges using Wavelet feature vectors

ACWE was developed by Chan and Vese[12], the algorithm is based on the techniques of curve evolution, the Mumford-Shah functional for segmentation, and level sets[13][14][15]. The Chan-Vese function is defined as:


where denotes the level set function. The parameters and are fixed to be (i.e. ), is a scale parameter for determining the weight of the length term. The term denotes the Heaviside function of defined as[12]:

it represents the foreground and background regions in image , and represents the length of the contour of the region. and denote the mean intensities of foreground and background regions defined by and . The segmentation of a region can be obtained by minimizing respect to , and . To apply ACWE in the wavelet domain, the energy function (i.e., ) was modified, and the objective function of the ACWE_w is:


where is the Wavelet feature vector, and indicate the mean Wavelet feature vectors inside foreground and background regions, respectively. Again, by adjusting the weighting parameter, , we decide how much information in the low-frequency bands we choose to incorporate.

3 Results

The proposed K-means and FCM algorithms were tested on binarized minefield image, as shown in Fig.


Figure 4: (a) contains simulated noisy minefield image and (b) contains binarized minefield image using Otsu’s method.

the proposed ACWE-W algorithm was tested on the simulated Quantitative Bone SPECT image using the NURBS-based XCAT phantom [16], an example slice is shown in Fig. 5 (a). In Fig. 5 (b), the green curve indicates the rectangular region of interest that we cropped, Fig. 5 (c) represents the cropped image with the initial contour (red curve) of ACWE, and Fig. 5 (c) contains the ground truth of lesion regions (red curves) and bone regions (blue curves).

Figure 5: Image (a) contains a slice of QBSPECT image, where image (b) shows the QBSPECT image with rectangular region of interest, image (c) shows the cropped region with initial contour of ACWE (red curve), and (d) shows the truth bone regions (blue curves) and lesion regions (red curves).

The effect of using different orthogonal and bi-orthogonal Wavelet filter pairs was also studied. The filter coefficients are shown in Table. 1.

Figure 6: Figure shows the clustering result generated by conventional K-means and FCM.
8/8 Orthogonal pair (’’)
6/10 Bi-orthogonal pair (’’)
9/7 Bi-orthogonal pair (’’)
Table 1: Bi-orthogonal and Orthogonal filter pairs

The results obtained by the conventional 2-class K-means and FCM algorithm are the same, as shown in Fig. 6. The clustering results were corrupted by noises because the algorithms depend only on local intensity values and spatial information was missing. Fig. 7 shows the results generated by the proposed K-means_w and FCM_w algorithms. The first column in Fig. 7 represents the results produced by K-means_w with the weight parameter, ; the second column shows the results produced by FCM_w; the first row were generated with orthogonal filter pairs, , shown in the Table 1; the second and the third row were generated with bi-orthogonal filter pairs, and , respectively. With , the importance of high-frequency information (i.e., noises) gets suppressed, and the algorithms depend more on low-frequency information. Thus, clustering algorithms produce smoother results. The results also suggest that the use of bi-orthogonal filter pairs in K-means_w and FCM_w algorithms could lead to a better clustering result.

Figure 7: Results generated by proposed K-means algorithm. The first column generated with , middle column generated with , the third column generated with .

Figure 8: Segmentation generated by conventional ACWE algorithm.

Figure 9: Segmentation results generated by ACWE_w algorithm. The row was generated by filter pairs with and , middle row was generated by with and , the third row was generated by with and .

Fig. 8 shows the results produced by conventional ACWE algorithm. Comparing to the ground truth (Fig. 5 (d)), the algorithm failed to obtain a good segmentation for either bone or lesion. The results generated by the ACWE_w algorithm are shown in Fig. 9. When , the algorithm incorporates high-frequency patterns to segment the bone regions. In contrast, when , the algorithm focuses more on the low-frequency patterns, which provides the ability to segment lesion regions. The results also suggest that for the ACWE_w algorithm, the differences in the resulting segmentation is negligible with different Wavelet filter pairs.

4 Conclusion

Image clustering and segmentation algorithms often concentrate only on local pixel intensities, although many algorithms have been proposed to incorporate spatial context [4][5][6], the modified clustering/segmentation algorithms could still be sensitive to noises. In this paper, we proposed to apply clustering/segmentation algorithms in the Wavelet domain, and we introduced a weighting parameter to control the importance of the low-frequency sub-bands. The results provided that the proposed methods perform robust to noises, and the algorithms converge to different meaningful regions based on different frequency band.

5 Acknowledgment

The authors would like to thank Shuwen Wei who provided expertise that greatly assisted this work.


  • [1] K. Huang and S. Aviyente,

    “Wavelet feature selection for image classification,”

    IEEE Transactions on Image Processing, vol. 17, no. 9, pp. 1709–1720, Sept 2008.
  • [2] S.G. Chang, Bin Yu, and M. Vetterli, “Adaptive wavelet thresholding for image denoising and compression,” IEEE Transactions on Image Processing, vol. 9, no. 9, pp. 1532–1546, 2000.
  • [3] Michael Elad and Michal Aharon, “Image Denoising Via Sparse and Redundant Representations Over Learned Dictionaries,” IEEE Transactions on Image Processing, vol. 15, no. 12, pp. 3736–3745, dec 2006.
  • [4] Dzung L. Pham, “Spatial Models for Fuzzy Clustering,” Computer Vision and Image Understanding, vol. 84, no. 2, pp. 285–297, nov 2001.
  • [5] Abhinav K. Jha, Jeffrey J. Rodriguez, Renu M. Stephen, and Alison T. Stopeck, “A clustering algorithm for liver lesion segmentation of diffusion-weighted MR images,” in 2010 IEEE Southwest Symposium on Image Analysis & Interpretation (SSIAI). may 2010, pp. 93–96, IEEE.
  • [6] S. Krinidis and V. Chatzis, “A robust fuzzy local information c-means clustering algorithm,” IEEE Transactions on Image Processing, vol. 19, no. 5, pp. 1328–1337, May 2010.
  • [7] R. Porter and N. Canagarajah, “A robust automatic clustering scheme for image segmentation using wavelets,” IEEE Transactions on Image Processing, vol. 5, no. 4, pp. 662–665, April 1996.
  • [8] H. Choi and R.G. Baraniuk,

    “Multiscale image segmentation using wavelet-domain hidden Markov models,”

    IEEE Transactions on Image Processing, vol. 10, no. 9, pp. 1309–1321, 2001.
  • [9] Julius T Tou and Rafael C González, Pattern recognition principles, Appl. Math. Comput. Addison-Wesley, Amsterdam, 1974.
  • [10] Isaac N. Bankman, Ed., Handbook of Medical Imaging, Academic Press, Inc., Orlando, FL, USA, 2000.
  • [11] James C. Bezdek, Robert Ehrlich, and William Full, “Fcm: The fuzzy c-means clustering algorithm,” Computers & Geosciences, vol. 10, no. 2, pp. 191 – 203, 1984.
  • [12] T. F. Chan and L. A. Vese, “Active contours without edges,” IEEE Transactions on Image Processing, vol. 10, no. 2, pp. 266–277, Feb 2001.
  • [13] A. Morar, F. Moldoveanu, and E. Gröller, “Image segmentation based on active contours without edges,” in 2012 IEEE 8th International Conference on Intelligent Computer Communication and Processing, Aug 2012, pp. 213–220.
  • [14] Stanley Osher and James A Sethian, “Fronts propagating with curvature-dependent speed: Algorithms based on hamilton-jacobi formulations,” Journal of Computational Physics, vol. 79, no. 1, pp. 12 – 49, 1988.
  • [15] R. S. MacKay, “Level set methods,” Journal of Fluid Mechanics, vol. 345, pp. 412–413, 1997.
  • [16] J. Chen, A. K. Jha, and E. C. Frey, “Incorporating CT Prior Information in the Robust Fuzzy C-means Algorithm for QSPECT Image Segmentation,” in 2019 SPIE Medical Imaging, 2019.