Keywords

1 Introduction

In segmentation, the complete image is clustered into number of subimages in a meaningful manner. In a cluster, there should be some uniqueness among all the image elements (pixels) [1,2,3,4]. In image processing and computer vision, the role of the segmentation process is inevitable. The outcome of the segmentation process is the basis for image analysis [5]. The segmentation is based on image attributes such as color and texture [6]. Most of the segmentation techniques are application-oriented, i.e., it is very hard to get a meaningful result for more than one application using the same segmentation method [7,8,9]. This is a major drawback of the segmentation techniques. There are lots of image segmentation techniques based on threshold, edge, region, clustering, and so on. Skin lesion is the anomalous intensification contrast to the skin just about it. It is categorized as primary or secondary. The primary lesions are uncharacteristic skin circumstances existence at birth. The secondary lesions are the result of manipulated primary lesions. There are more than 20 types of skin lesions. In this work, fuzzy cluster-based methods are utilized to segment the skin lesion images. The efficiency of the segmentation methods is measured in terms of PSNR and computational cost. Prior to segmentation, the preprocessing to progress the eminence of the skin lesion image and sharpening is performed on the preprocessed image to enhance fine details. Most importantly, the enhanced image in RGB is transformed into user-oriented, HSL space which fairly accurate the human visual perception.

2 HSL Color Space

This cylindrical color space characterizes the color in more perceptually by three elements as hue [color type varies from 0° to 360° i.e., red (0 or 360), yellow (60), green (120), cyan (180), blue (240) and magenta (300)], the saturation which defines the purity of the color as it varies from 0 to 100% and the lightness in terms of percentage i.e., 100% of lightness is white and 0% is black [10,11,12,13]. The renovation of an image form RGB to HSL is as follows:

$$H = \arccos \frac{{\frac{1}{2}\left( {2R - G - B} \right)}}{{\sqrt {\left( {R - G} \right)^{2} - \left( {R - B} \right)\left( {G - B} \right)} }}$$
(1)
$$L = \frac{{\hbox{max} \left( {R,G,B} \right) + \hbox{min} \left( {R,G,B} \right)}}{2}$$
(2)
$$S = \left\{ {\frac{{\hbox{max} \left( {R,G,B} \right) - \hbox{min} \left( {R,G,B} \right)}}{{\hbox{max} \left( {R,G,B} \right) + \hbox{min} \left( {R,G,B} \right)}}} \right.\quad {\text{for}}\;L < 0.5$$
(3)
$$S = \left\{ {\frac{{\hbox{max} \left( {R,G,B} \right) - \hbox{min} \left( {R,G,B} \right)}}{{2 - \hbox{max} \left( {R,G,B} \right) - \hbox{min} \left( {R,G,B} \right)}}} \right.\quad {\text{for}}\;L \ge 0.5$$
(4)

3 Fuzzy Clustering for Skin Lesion Segmentation

Fuzzy c-means clustering is the standard algorithm based on cluster centers and membership to partition a complete dataset into number of clusters [14, 15]. This algorithm utilizes the Euclidean distance to compute the space between the pixels (data points) and cluster center [16]. The major function of the algorithm is to lessen its objective function provided in (5).

$$F_{m} \left( {U,V} \right) = \mathop \sum \limits_{i = 1}^{c} \mathop \sum \limits_{k = 1}^{n} \mu_{ik}^{m} \left\| {x_{k} - v_{i}^{2} } \right\|$$
(5)

where m = the weighting exponent (fuzziness) parameter. Most cases, m = 2.

vi= cluster centers and µik = membership.

$$v_{i} = \frac{{\mathop \sum \nolimits_{k = 1}^{n} \mu_{ik}^{m} X_{k} }}{{\mathop \sum \nolimits_{k = 1}^{n} \mu_{ik}^{m} }}$$
(6)
$$\mu_{ik} = \left\{ {\mathop \sum \limits_{j = 1}^{c} \left\{ {\frac{{\left\| {x_{k} - v_{i} } \right\|}}{{\left\| {x_{k} - v_{j} } \right\|}}} \right\}^{2/m - 1} } \right\}^{ - 1}$$
(7)

Possibilistic c-means (PCM) clustering provided the solution for the column sum constraint of FCM [8, 17]. The objective function of PCM is illustrated in (8)

$$P_{m} \left( {T,V;X,\gamma } \right) = \mathop \sum \limits_{i = 1}^{n} \mathop \sum \limits_{k = 1}^{c} t_{ik}^{m} d_{ki}^{2} + \mathop \sum \limits_{i = 1}^{c} \gamma_{i} \mathop \sum \limits_{k = 1}^{n} \left( {1 - t_{ki} } \right)^{m}$$
(8)

where γ = weighting exponent parameter. When γ = 0 and m = 1, PCM behaves as Hard C-Means (HCM) CLustering. In general, m = 2 and γ > 0 is the preferable choice. The optimum (minimum) can be achieved if it satisfies the following conditions.

$$t_{ki} = 1/\left( {1 + \frac{{d_{ik} }}{{\gamma_{i} }}} \right)^{1/m - 1} ,\quad 1 \le \, i \, \le \, c; \, 1 \le \, k \, \le \, n$$
(9)
$$v_{i} = \frac{{\mathop \sum \nolimits_{k = 1}^{n} x_{k} t_{ki}^{m} }}{{\mathop \sum \nolimits_{k = 1}^{n} t_{ki}^{m} }}$$
(10)

The noise sensitivity problem of FCM and coincident clusters issue of PCM is addressed by Possibilistic Fuzzy C-Means (PFCM) clustering [3]. The objective function of PCM is shown in (11)

$$PF_{m} \left( {T,V,U;X,\gamma } \right) = \mathop \sum \limits_{i = 1}^{n} \mathop \sum \limits_{k = 1}^{c} \left( {a\mu_{ik}^{m} + bt_{ik}^{\eta } } \right)d_{ki}^{2} + \mathop \sum \limits_{i = 1}^{c} \gamma_{i} \mathop \sum \limits_{k = 1}^{n} \left( {1 - t_{ki} } \right)^{\eta }$$
(11)

where m, η > 1 and a, b, γ > 0. The optimum (minimum) can be achieved if it satisfies the following conditions.

$$V_{i} = \frac{{\mathop \sum \nolimits_{k = 1}^{n} \left( {a\mu_{ik}^{m} + bt_{ik}^{\eta } } \right)x_{k} }}{{\mathop \sum \nolimits_{k = 1}^{n} \left( {a\mu_{ik}^{m} + bt_{ik}^{\eta } } \right)}}$$
(12)
$$t_{ik} = \frac{1}{{1 + \left( {\frac{{d_{ik}^{2} }}{{\gamma_{i} }}} \right)^{{1/\left( {m - 1} \right)}} }}$$
(13)
$$\mu_{ik} = \frac{1}{{\mathop \sum \nolimits_{j = 1}^{c} \left( {\frac{{d_{ik} }}{{d_{jk} }}} \right)^{2/m - 1} }}$$
(14)

The major drawback of standard FCM is that doesn’t provide any spatial information which is significant for clustering problems. In the modified FCM (MFCM), this is taken into consideration and the spatial information is incorporated as a weighted sum of the membership function [2, 13].

$$S_{ij} = \mathop \sum \limits_{{k \in W\left( {X_{j} } \right)}} U_{ik} \alpha_{k1} + \frac{{\mathop \sum \nolimits_{{k \in \left( {X_{j} } \right)}} U_{ik} \alpha_{k2} }}{{\mathop \sum \nolimits_{t = 1}^{c} \mathop \sum \nolimits_{{k \in W\left( {X_{j} } \right)}} U_{tk} }}$$
(15)

The modified membership function is given by (16)

$$U_{{ij\left( {\text{new}} \right)}} = \frac{{U_{ij}^{p} *S_{ij}^{q} }}{{\mathop \sum \nolimits_{k = 1}^{c} U_{kj}^{p} *S_{kj}^{q} }}$$
(16)

It is noted that every pixel has a weight \((W_{ji} )\) corresponding to clusters.

$$W_{ji} = \frac{1}{{1 + e^{{ - \left\{ {\frac{{\left\| {X_{j} - V_{i}^{2} } \right\|}}{{\mathop \sum \nolimits_{j = 1}^{n} \left\| {X_{j} - V_{i}^{2} } \right\|\left( {\frac{c}{n}} \right)}}} \right\}}} }}$$
(17)

The objective function of MFCM is illustrated in (18)

$${\text{MF}} = \mathop \sum \limits_{k = 1}^{n} \mathop \sum \limits_{i = 1}^{c} \left( {U_{ik}^{m} W_{ji}^{m} } \right)\left\| {X_{k} - V_{i}^{2} } \right\|$$
(18)

The proposed approach for skin lesion segmentation is illustrated in Fig. 1.

Fig. 1
figure 1

The proposed approach for skin lesion segmentation

4 Experimental Results and Discussion

Figure 2a illustrates the skin lesion test image to evaluate the efficiency of fuzzy-based techniques for its segmentation. The original size of the input image is 586 * 561 (95.9 KB). The test image is sharpened to enhance its fine details as illustrated in Fig. 2b. The HSL version of the image is depicted in Fig. 2c.

Fig. 2
figure 2

Test image to test the efficiency of the proposed approach

Figure 3a illustrated FCM clustering outcome of the HSL based skin lesion image. This process took 11 iterations to segment the image into three clusters. PSNR is computed as 45.436. The deviation of the segmented image from the input image is error image.

Fig. 3
figure 3

Outcome of HSL color space based segmentation

Figure 3b depicts PCM clustering outcome of the HSL based skin lesion image. This process took 15 iterations to segment the image into three clusters. PSNR is computed as 44.960.

Figure 3c illustrated PFCM clustering outcome of the HSL based skin lesion image. This process took 14 iterations to segment the image into three clusters. PSNR is computed as 45.517.

MFCM clustering outcome of the HSL based skin lesion image is portrayed in Fig. 3d. This process took 15 iterations to segment the image into three clusters. PSNR is computed as 52.463.

The comparative end result of the proposed approach is demonstrated in Table 1. MFCM has very PSNR and PFCM has low computational cost as compared to other methods.

Table 1 Comparative end result of the proposed approach

5 Conclusion

The skin lesion segmentation using fuzzy-based clustering methods is highlighted in the proposed approach. The skin lesion image in RGB is transformed into user-oriented, HSL which fairly accurate the human visual perception. The experimental analysis clearly explained that the competency of the MFCM for skin lesion segmentation. Even though the execution time for PFCM is lesser, MFCM has higher PSNR as compared to other methods.