# Deep PossibilisticC-means Clustering Algorithm on Medical Datasets

Authors: Yuxin Gu; Tongguang Ni; Yizhang Jiang
Journal: Computational and Mathematical Methods in Medicine
 (2022)

---

## Abstract

In the past, the possibilisticC-means clustering algorithm (PCM) has proven its superiority on various medical datasets by overcoming the unstable clustering effect caused by both the hard division of traditional hard clustering models and the susceptibility of fuzzy C-means clustering algorithm (FCM) to noise. However, with the deep integration and development of the Internet of Things (IoT) as well as big data with the medical field, the width and height of medical datasets are growing bigger and bigger. In the face of high-dimensional and giant complex datasets, it is challenging for the PCM algorithm based on machine learning to extract valuable features from thousands of dimensions, which increases the computational complexity and useless time consumption and makes it difficult to avoid the quality problem of clustering. To this end, this paper proposes a deep possibilistic C-mean clustering algorithm (DPCM) that combines the traditional PCM algorithm with a special deep network called autoencoder. Taking advantage of the fact that the autoencoder can minimize the reconstruction loss and the PCM uses soft affiliation to facilitate gradient descent, DPCM allows deep neural networks and PCM’s clustering centers to be optimized at the same time, so that it effectively improves the clustering efficiency and accuracy. Experiments on medical datasets with various dimensions demonstrate that this method has a better effect than traditional clustering methods, besides being able to overcome the interference of noise better.


---

## Body

## 1. Introduction

Clustering is an important way of data analysis and machine learning, using unsupervised learning methods. It splits a set of data into different clusters according to a specific division, which groups similar data into one cluster and divides unrelated data into different clusters. With the rapid advancement of artificial intelligence and the growing interest in the medical field in recent years, clustering has become increasingly used in medicine, [1, 2]. Clustering algorithms can reveal hidden information in medical data, which is useful for medical research and helps doctors with diagnosis. As one of these clustering algorithms, the possibility C-mean clustering method [3, 4] was initially proposed to overcome the sensitivity to noise and outliers caused by the normalization of affiliation in the fuzzy C-means clustering method (FCM) [5]. PCM relaxes the constraint in FCM that the sum of the affiliation of the sample points to the cluster centers equals 1 and takes into account the possibility that each sample point belongs to each cluster center. In that case, noises and outliers have little influence on the cluster center parameters during the iterative process, implying that noises may have little association with all cluster centers. Satisfactorily, the PCM algorithm is able to be well applied to medical image clustering [6]. However, it was also found by Barni et al. [7] that while PCM can reduce the effect of noise in the dataset to some extent, it also generates the problem of overlapping clustering centers due to neglecting the differentiation between the data clusters at the same time. In addition, the accuracy of the PCM algorithm is severely constrained by the parameters of the initialized clustering centers. To this end, Nikhil et al. proposed the fuzzy possibility C-means algorithm (FPCM) [8] improved by PCM, which considered both the fuzzy affiliation of FCM and the possibility concept of PCM, paying attention to both the differentiation between clusters and the dependence of each point on the cluster centers. However, while the FPCM method removes the row sum restriction, it also creates a column sum constraint for each cluster. As a result, Nikhil et al. introduced the PFCM algorithm, which removes PFCM’s column sum restriction and combines the benefits of FCM, PCM, and FPCM to improve the clustering impact even further [9]. In response to the PCM algorithm which is easy to fall into the coincidence of cluster centers, Timm et al. advocated adding a cluster repulsion term that measures cluster-to-cluster exclusion to the PCM’s objective function [10]. This objective function is optimal only when the distance between clusters and data within clusters is minimized and the distance between cluster centers is maximized.Despite the fact that the above-mentioned algorithms outperform some traditional machine learning-based clustering algorithms in small datasets, they are nonetheless overwhelmed when confronted with huge datasets with both sample size and dimensionality expansion. At this point, it is important to rely on effective dimensionality reduction and feature extraction means to deal with complex data for clustering purposes. Nowadays, the widely used dimension reduction tools comprise linear methods represented by principal component analysis (PCA) [11] and nonlinear methods represented by kernel methods [12], which have experimentally verified the feasibility of their combination with PCM. For example, the kernel possibility C-mean clustering proposed by Rhee et al. [13] applies the Gaussian kernel function to the PCM algorithm. The method with good clustering performance is applicable to not only spherical datasets but also nonspherical datasets and also inherits the advantage of PCM noise immunity. The above traditional dimensionality reduction methods, whether linear or nonlinear, all start by mapping high-dimensional data into a low-dimensional feature space and then perform the clustering operation. Although these methods reduce the computational complexity to a certain extent, since dimensionality reduction and clustering are two separate processes, the extracted features after dimensionality reduction may not be suitable for clustering. However, whether the extracted features are conducive to clustering is precisely the key factor that affects the effectiveness of clustering.Over the past few years, deep neural networks (DNN) have been widely used in large-scale and deep-level feature extraction because of their powerful nonlinear mapping capability. Autoencoder (AE) [14] is a special type of DNN, which can be divided into two parts: encoder and decoder, where the former is used to reduce the dimension of the data, while the latter is used to reconstruct the feature representation in low-dimension space back to the original dimension. Its advantage is to minimize the reconstruction loss between the output data reconstructed by AE’s decoder and the original data by iteratively training the network, thus obtaining a valid feature representation of the training sample. So far the autoencoder has now been combined with many traditional clustering methods and the feasibility of such combinations has been experimentally demonstrated. For instance, the deep embedding clustering model (DEC) proposed by Xie et al. [15] combines autoencoder and Kullback–Leibler (KL) divergence [16]. DEC first low-dimensionalises the data using the autoencoder and then calculates the probability matrix of the reduced-dimension data called soft assignment according to the t-distribution principle, which is used to calculate the KL scatter loss together with the author’s proposed target auxiliary distributions. Yang et al. also proposed the deep clustering network (DCN) [17], which is the combination of the autoencoder with the k-means algorithm. Since the affiliation of the K-means algorithm is discrete and nonderivable, the parameters of the autoencoder and the parameters of the clustering center in this method can only be optimized in an alternating manner. It was later improved by the deep k-means algorithm (DKM) [18], which further improved the clustering effect by making the clustering loss of k-means derivable through the softmax function. DKM allows simultaneous optimization of the autoencoder and clustering centers.Although the DKM makes use of a differentiablek-means method via the softmax function, which allows it to participate in the iterative optimization process simultaneously with the autoencoder, it is clear that using this optimized K-means algorithm is more complex than the naturally differentiable soft-partition clustering algorithms like FCM and PCM. Given that the PCM algorithm has some antinoise performance when compared to other soft-partition clustering algorithms, we use a combination of autoencoder and PCM algorithm called DPCM in this paper. This algorithm takes advantage of both PCM for gradient descent and deep neural networks for feature extraction of large-scale high-dimensional datasets. The work done in this paper is as follows:
(1)
Combine the deep neural network with the possibilisticC-means method: DPCM uses the encoding part of the autoencoder to reduce the datasets’ dimension and performs PCM clustering on the feature representation generated after the dimensionality reduction. Because of the PCM’s continually derivable nature, it is possible to update network parameters and clustering centers at the same time. For high-dimensional datasets, the method effectively improves the clustering effect(2)
Extensive experimentation and validation: to validate the flexibility of the method on different medical datasets, we conducted extensive comparative experiments on medical datasets of various sample sizes and dimensions. The experiments demonstrate that the method is highly feasible for medical image clustering, and its accuracy is not limited to large datasets with inflated dimensionality and sample size(3)
Demonstrates excellent noise immunity: we conducted comparison experiments between the dataset with the addition of the Gaussian noise at the ratio of 1% and 3% and the original dataset, respectively, to verify whether the present method inherits the noise resistance ability of the PCM algorithm. The experiments show that to a certain extent, the clustering effect and accuracy of DPCM are less affected by noise interference than other methods. It is possible to say that DPCM has some noise immunityWe organize the rest of this paper as follows. Firstly, related work is reviewed in Section2. The proposed method DPCM is introduced in Section 3. The results of comparison experiment are shown in Section 4. Finally, conclusions and future work exploration are summarized in Section 5.


## 2. Related Work

### 2.1. FCM

For a given datasetX=x1,x2,⋯,xN, letting the clustering center bev1,v2,⋯,vK, uij is denoted, and the probability estimates how much of that the samplexj belongs to the cluster centerci, where the value needs to satisfy
(1)0≤uij≤1,∑i=1Kuij=1.Thus, the membership matrix is expressed asU=uij1≤i≤K,1≤j≤N; m is a constant larger than 1. It is known that when we get
(2)minV,UJFCMV,U=∑i=1K∑j=1Nuijmxj−vi2,it must meet. For each cluster center, the distance from the sample inside the cluster to this cluster center is the smallest, and it is less than the distance from these samples to other clusters. Considering the range of values of uij, the objective function can be defined as
(3)F=JFCMV,U=∑i=1K∑j=1Nuijmxj−vi2+λ1∑i=1Kuij.Respectively, setting∂F/∂uij=0 and ∂F/∂vi=0, the iterative paths of uij and vi are as follows:
(4)uij=1∑k=1Kxj−vi/xj−vk2/m−1,i=1,2,⋯K;j=1,2,⋯,N,(5)vi=∑j=1Nuijmxj∑j=1Nuijm,i=1,2,⋯,K.Equations (4) and (5) will iterate repeatedly until the algorithm converges.


### 2.2. PCM

The PCM algorithm liberalizes the constraint that the sum of affiliation of a sample point to all clustering centers is 1 in FCM and proposes a new concept of probability, usinguij to denote the probability that the sample xj is classified into the i-th cluster, taking the following range of values:
(6)uij∈0,1,0<∑i=1nuij≤n,maxiuij>0.Therefore, the objective function is set to(7)JmU,V=∑i=1K∑j=1Nuijmxj−vi2+∑i=1Kηi∑j=1N1−uijm.The parameter iteration paths are as follows:(8)vi=∑j=1Nuijmxj∑j=1Nuijm,uij=11+dij/ηi1/m−1,ηi=∑j=1nuijmdij∑j=1nuijm,where the initial value ofηi needs to be set manually. The common practice is to first cluster the samples using the FCM algorithm and substitute the parameters of the cluster centers obtained after clustering into the formula to obtain the initial value of ηi. It is also possible to simply calculate the value of ηi from the parameters of randomly selected clustering centers, but the clustering results obtained in this way are often less stable than the former.


### 2.3. Autoencoder

The autoencoder (AE) is a powerful unsupervised learning method consisting of two parts, the encoder and the decoder, which are symmetrically structured [19]. The two components are repeatedly optimized until the minimum reconstruction error is obtained, thus extracting the most representative set of features from the complex data.Suppose that there aren samples in the dataset to be handled, and ϕ and φ are the functions used for the encoding and decoding processes separately; if we use the mean square error to measure the error between the reconstructed samples of the AE and the original input samples, the reconstructed loss function of this AE will be expressed as
(9)Lrec=1N∑i=1Nxi−φϕxi2.The optimization objective of the AE is to obtain the network parameters that minimize this reconstruction error:(10)ϕ,φ=argminϕ,φLrec.


## 2.1. FCM

For a given datasetX=x1,x2,⋯,xN, letting the clustering center bev1,v2,⋯,vK, uij is denoted, and the probability estimates how much of that the samplexj belongs to the cluster centerci, where the value needs to satisfy
(1)0≤uij≤1,∑i=1Kuij=1.Thus, the membership matrix is expressed asU=uij1≤i≤K,1≤j≤N; m is a constant larger than 1. It is known that when we get
(2)minV,UJFCMV,U=∑i=1K∑j=1Nuijmxj−vi2,it must meet. For each cluster center, the distance from the sample inside the cluster to this cluster center is the smallest, and it is less than the distance from these samples to other clusters. Considering the range of values of uij, the objective function can be defined as
(3)F=JFCMV,U=∑i=1K∑j=1Nuijmxj−vi2+λ1∑i=1Kuij.Respectively, setting∂F/∂uij=0 and ∂F/∂vi=0, the iterative paths of uij and vi are as follows:
(4)uij=1∑k=1Kxj−vi/xj−vk2/m−1,i=1,2,⋯K;j=1,2,⋯,N,(5)vi=∑j=1Nuijmxj∑j=1Nuijm,i=1,2,⋯,K.Equations (4) and (5) will iterate repeatedly until the algorithm converges.


## 2.2. PCM

The PCM algorithm liberalizes the constraint that the sum of affiliation of a sample point to all clustering centers is 1 in FCM and proposes a new concept of probability, usinguij to denote the probability that the sample xj is classified into the i-th cluster, taking the following range of values:
(6)uij∈0,1,0<∑i=1nuij≤n,maxiuij>0.Therefore, the objective function is set to(7)JmU,V=∑i=1K∑j=1Nuijmxj−vi2+∑i=1Kηi∑j=1N1−uijm.The parameter iteration paths are as follows:(8)vi=∑j=1Nuijmxj∑j=1Nuijm,uij=11+dij/ηi1/m−1,ηi=∑j=1nuijmdij∑j=1nuijm,where the initial value ofηi needs to be set manually. The common practice is to first cluster the samples using the FCM algorithm and substitute the parameters of the cluster centers obtained after clustering into the formula to obtain the initial value of ηi. It is also possible to simply calculate the value of ηi from the parameters of randomly selected clustering centers, but the clustering results obtained in this way are often less stable than the former.


## 2.3. Autoencoder

The autoencoder (AE) is a powerful unsupervised learning method consisting of two parts, the encoder and the decoder, which are symmetrically structured [19]. The two components are repeatedly optimized until the minimum reconstruction error is obtained, thus extracting the most representative set of features from the complex data.Suppose that there aren samples in the dataset to be handled, and ϕ and φ are the functions used for the encoding and decoding processes separately; if we use the mean square error to measure the error between the reconstructed samples of the AE and the original input samples, the reconstructed loss function of this AE will be expressed as
(9)Lrec=1N∑i=1Nxi−φϕxi2.The optimization objective of the AE is to obtain the network parameters that minimize this reconstruction error:(10)ϕ,φ=argminϕ,φLrec.


## 3. Deep PossibilisticC-means Clustering

Instead of using theK-means algorithm in DCN, which is not suitable for simultaneous iterative optimization with the deep neural network (DNN), DPCM adopts the PCM algorithm using soft affiliation naturally that is capable of updating parameters by stochastic gradient descent (SGD) with AE synchronously. The DPCM algorithm combines AE with the traditional PCM algorithm, optimizing both the clustering loss generated from PCM and the reconstruction loss based on the autoencoder. Specifically, the network is defined as shown in Figure 1, where C denotes all the parameters of the clustering centers generated by each iteration, as Ɵ denotes all the parameters generated during the autoencoder iteration, both of which can be gradient descended simultaneously.Figure 1
The structure of DPCM.In the deep PCM model, the sampleX is dimensioned down through layer after layer to obtain feature representation as ϕX, which is further passed through the decoding part of AE to generate the reconstructed sample X′=φϕX. Suppose the sample size is N. If we use the mean square error to measure the difference between the reconstructed samples and original samples, the loss of the AE component is specified as follows:
(11)AE_loss=∑i=1Nxi−φϕxi2,where ϕ denotes the function used by AE for the encoding part and φ denotes the function used for the decoding part.When the original datasetX is reduced to W dimensions in AE, xi denotes the i-th sample data and cj denotes the cluster center of the j-th cluster; then, ϕxi denotes the feature representation of the samplexi after the reduction to W dimensions, where ϕxiw is the value of the w-th feature of ϕxi and cjw is the value of the w-th feature of the j-th cluster center. Then, the distance of the sample xi after dimensionality reduction from the computed clustering center cj can be expressed as
(12)dϕxi,cj=∑w=1Wϕxiw−cjw2=ϕxi−cj2.The probabilityuij that the samplexi in low-dimensional space belongs to the clustering center cj can be expressed as
(13)uij=1/ϕxi−cj2/m−1∑k=1K1/ϕxi−ck2/m−1=1∑k=1Kϕxi−cjϕxi−ck2/m−1,where m is an artificially set value greater than 1 which is used to weight the affiliation.Then, the clustering loss of PCM can be obtained as(14)PCM−loss=∑i=1N∑j=1Kuijmdϕxi,cj=∑i=1N∑j=1Kϕxi−cj2∑k=1Kϕxi−cj/ϕxi−ck2/m−1m.Sum the AE loss and the PCM loss with weights and we can get the objective function of this DPCM algorithm:(15)Minθ,CL=minθ,CAE−loss+FCM−loss=minθ,C∑i=1Nxi−φϕxi2+∑i=1N∑j=1Kϕxi−cj2∑k=1Kϕxi−cj/ϕxi−ck2/m−1m,where θ denotes all the parameters of the AE and C denotes all the clustering centers. Algorithm 1 gives the specific steps of the DPCM algorithm, where m is a parameter that needs to be set manually in the PCM algorithm.Algorithm 1: Deep possibilistic C-means algorithm.
Input: data X=x1,x2,⋯,xn, number of clusters K, number of epochs P, m1,m2,⋯⋯,mTOutput: AE parameters θ,cluster centers C1.for m =m1tomT do2.Initializeθ, C3.for t =1 to T do4.calculateAE−loss and PCM−loss5.Updateθ, C using SGD6.end7.end


## 4. Experiment

In order to verify the effectiveness of the DPCM algorithm proposed in this paper and its practicality on medical datasets, we have done extensive experiments comparing the DPCM algorithm with five other clustering algorithms on medical image datasets, which are PCM, FCM, AGglomerative NESting (AGNES) [20], K-means++ [21], and K-medoids [22]. And we also added Gaussian noise with proportions of 1% and 3% for each dataset to verify the noise immunity performance of these six different clustering methods. All algorithms are implemented by using MATLAB R2019b.


### 4.1. Dataset

To verify the flexibility and adaptability of the DPCM algorithm in clustering medical datasets of different dimensions and sizes compared to traditional clustering algorithms, we used three 2D datasets with 28∗28 pixels and two 3D datasets with 28∗28∗28 pixels, respectively, from MedMNIST v2 [23] for testing. The five datasets are OrganAMNIST(2D), OrganCMNIST(2D), OrganSMNIST(2D), Adrenalmnist3D(3D), and FractureMNIST3D (3D).Among them, Organ{A, C, S}MNIST are 3D CT images based on the liver tumor segmentation benchmarkLiTS25, which have 784-dimensional data width and 11 labels for clustering and classification tasks. These datasets differ in viewpoint, cropped from the center slice of the 3D bounding box in the axial/coronal/sagittal view (planar), respectively. The sample sizes are 58850, 23660, and 25221, correspondingly.The data width of Adrenalmnist3D (3D) and FractureMNIST3D (3D) are both 21952 with 2 and 3 labels, respectively. And the number of samples is 1743 and 1370, correspondingly.


### 4.2. Parameter Setting

#### 4.2.1. The Weighting IndexM

In the FCM, PCM, and DPCM algorithm, we need to specify the weighting indexm whose value is closely related to the effect of clustering. Therefore, we have done a lot of experiments on the value of m in each experiment, increasing gradually from 1.1 to 5.0. The experimental results show that for the five datasets used in this paper, m tends to achieve the best performance for the mentioned three clustering algorithms when its value is taken in the range of 1.2-2.0. However, in the Adrenalmnist3D dataset, the performance of the FCM algorithm does not change no matter how m is taken in the range of 1.2 to 2.0. Therefore, in this paper, we also gradually increase the value of m in the range of 2.0-5.0 at a pace of 0.5 and in the range of 5.0-10.0 at a pace of 1.0. Experimentally, we prove that in this dataset, whatever value of m is taken does not affect the FCM. The trend of the clustering effect of FCM, PCM, and DPCM with the change of m value is shown in Figure 2.Figure 2
Trend of ACC and NMI of FCM, PCM, and DPCM under different values ofm.


#### 4.2.2.K-means++ and K-medoids

Only the parameterk needs to be set as the number of clusters of the dataset, where its values in OrganAMNIST, OrganCMNIST, OrganSMNIST, Adrenalmnist3D, and FractureMNIST3D are set to 11, 11, 11, 2, and 3, separately.


#### 4.2.3. FCM

k is the number of clusters. The weighting index m is set as 4.2.1. In addition, we need to set two parameters maxiter as 1000 and ε as 0.005 for terminating the iterative optimization of the program. Therefore, the iteration will come to an end right away when any of the following conditions are met: (1) the number of iterations is equal to the maxiter and (2) Ut−Ut−1<ε.


#### 4.2.4. PCM

The required parameters and values are the same as FCM. In addition, the initial value of the clustering centers is determined by the FCM after optimization.


#### 4.2.5. DPCM

The number of clustering centersk is set the same as Section 4.2.2. The weighting index m is set the same as Section 4.2.1.


### 4.3. Result Analysis

In this paper, the results of this experiment are evaluated using two external evaluation indicators commonly used in unsupervised cluster analysis, ACC [24] and NMI [25], where ACC denotes clustering accuracy and NMI denotes normalized mutual information, both of which take values ranging from 0 to 1. The higher these two values hold, the better the clustering effect shows. The expressions for ACC and NMI are specified as follows:
(16)NMIΩ,C=IΩ;CHΩ+HC/2,ACCC,S=maxψ1N∑i=1Nχsi=ψci,where IΩ,C denotes the interaction information between Ω and C, and it is expressed as follows:
(17)IΩ,C=∑k∑jPwk∩cjlogPwk∩cjPwkPcj=∑k∑jwk∩cjNlogNwk∩cjwkcj,HΩ=−∑kPwklogPwk=−∑kwkNlogwkN,where Pwk denotes the possibility that x belongs to the cluster wk; Pwk∩cj denotes the probability that x belongs to both sets wk and cj.From the above two evaluation index criteria, as shown in Figure2, the DPCM algorithm proposed in this paper is significantly more effective than other traditional clustering algorithms in clustering both the 784-dimensional 2D dataset and the 3D dataset with data dimension up to 21952. Table 1 shows the results of ACC and NMI obtained by clustering DPCM with five other clustering algorithms on different datasets. The DPCM algorithm apparently greatly improves the clustering effect of the PCM algorithm. It can be seen that the deep PCM algorithm proposed in this paper can well combine the PCM with the autoencoder to maximize the clustering performance of the PCM algorithm and the dimensionality reduction advantage of the autoencoder, jointly promoting the advantages of each other.Table 1
The results of ACC and NMI obtained by clustering DPCM with five other clustering algorithms on different datasets.
KMFCMPCMK-medoidsAGNESDeep PCMOrganAACC 0.5710.4590.4010.1760.5890.608NMI 0.6120.4940.3970.0580.6930.703OrganCACC 0.4880.5420.3830.170.5160.625NMI 0.5960.5520.4050.0450.6650.691OrganSACC 0.4360.3720.3770.1660.4650.502NMI 0.5110.4330.3680.0490.5920.605Fracture3DACC 0.3880.3970.4260.410.3880.448NMI 0.0180.0180.0240.0080.0160.061Adrenal3DACC 0.5520.5610.6120.520.5820.776NMI 0.0230.0250.0290.0030.0320.038


### 4.4. Antinoise Performance

In order to verify whether the DPCM algorithm inherits the advantage of the PCM algorithm’s strong noise immunity, we added Gaussian noise with proportions of 1% and 3% to each dataset and compared the experimental results with the original dataset to observe how ACC and NMI changed (the mean value of Gaussian noise is set to 0, and the variance is set to 0.05).The performance comparison before and after adding noise can be seen in Tables2–5. From the experimental results, we can easily see that in the case of adding 1% and 3% Gaussian noise, the ACC and NMI after DPCM clustering are better than other algorithms in ORGAN-A, ORGAN-C, AND ORGAN-S datasets; in the FRACTURE dataset containing 1% and 3% noise, DPCM still outperforms other algorithms in NMI, while the results of ACC are inferior to those of other algorithms; in the ADRENAL dataset with 1% and 3% noise, DPCM still outperformed the other algorithms in ACC, while NMI was inferior to the other algorithms. Since the first three datasets have in common that they are all 784-dimensional, on the other hand, the last two datasets are all 21952-dimensional. Therefore, we cannot rule out the possibility that the noise immunity of the DPCM will be affected by the dimensionality. However, in most cases, the DPCM algorithm not only outperforms the other algorithms in terms of the clustering effect but even slightly improves the results compared to the original datasets, so we can assume that DPCM has some noise immunity which is inherited from the PCM algorithm.Table 2
ACC performance on datasets with 1% Gaussian noise.
1% ACCKMFCMPCMK-medoidsAGNESDPCMOrganA0.5710.4590.4010.1760.5890.6081% noise0.5600.4600.4060.1780.5420.607OrganC0.4880.5420.3830.170.5160.6251% noise0.4880.5330.3810.170.5210.626OrganS0.4360.3720.3770.1660.4650.5021% noise0.4360.3710.3770.1670.4510.507Fracture0.3880.3970.4260.410.3880.4481% noise0.3980.3900.4250.410.3980.412ADRENAL0.5520.5610.6120.520.5820.7761% noise0.5560.5610.6120.550.5810.776Table 3
NMI performance on datasets with 1% Gaussian noise.
KMFCMPCMK-medoidsAGNESDPCMOrganA0.6120.4940.3970.0580.6930.7031% noise0.6070.4960.4060.0760.6840.712OrganC0.5960.5520.4050.0450.6650.6911% noise0.5960.5510.4350.0390.6530.697OrganS0.5110.4330.3680.0490.5920.6051% noise0.5130.4350.3700.0480.5820.609Fracture0.0180.0180.0240.0080.0160.0611% noise0.0160.0200.0280.0180.0220.036ADRENAL0.0230.0250.0290.0030.0320.0381% noise0.0240.0250.0310.0060.0320.027Table 4
ACC performance on datasets with 3% Gaussian noise.
KMFCMPCMK-medoidsAGNESDPCMOrganA0.5710.4590.4010.1760.5890.6083% noise0.5810.4600.3970.1740.5620.614OrganC0.4880.5420.3830.170.5160.6253% noise0.4910.5530.3840.1670.5070.637OrganS0.4360.372,0.3770.1660.4650.5023% noise0.4350.3720.3790.1660.4560.515Fracture0.3880.3970.4260.410.3880.4483% noise0.3870.3970.4290.4080.4080.424ADRENAL0.5520.5610.6120.520.5820.7763% noise0.5510.5630.5880.5510.5800.776Table 5
NMI performance on datasets with 3% Gaussian noise.
KMFCMPCMK-medoidsAGNESDPCMOrganA0.6120.4940.3970.0580.6930.7033% noise0.6210.4970.4100.0510.6750.708OrganC0.5960.5520.4050.0450.6650.6913% noise0.5950.5570.4330.0470.6610.698OrganS0.5110.4330.3680.0490.5920.6053% noise0.5110.4340.3950.0480.5990.612Fracture0.0180.0180.0240.0080.0160.0613% noise0.0180.0210.0290.0170.0020.038ADRENAL0.0230.0250.0290.0030.0320.0383% noise0.0220.0260.0310.0070.0310.024


## 4.1. Dataset

To verify the flexibility and adaptability of the DPCM algorithm in clustering medical datasets of different dimensions and sizes compared to traditional clustering algorithms, we used three 2D datasets with 28∗28 pixels and two 3D datasets with 28∗28∗28 pixels, respectively, from MedMNIST v2 [23] for testing. The five datasets are OrganAMNIST(2D), OrganCMNIST(2D), OrganSMNIST(2D), Adrenalmnist3D(3D), and FractureMNIST3D (3D).Among them, Organ{A, C, S}MNIST are 3D CT images based on the liver tumor segmentation benchmarkLiTS25, which have 784-dimensional data width and 11 labels for clustering and classification tasks. These datasets differ in viewpoint, cropped from the center slice of the 3D bounding box in the axial/coronal/sagittal view (planar), respectively. The sample sizes are 58850, 23660, and 25221, correspondingly.The data width of Adrenalmnist3D (3D) and FractureMNIST3D (3D) are both 21952 with 2 and 3 labels, respectively. And the number of samples is 1743 and 1370, correspondingly.


## 4.2. Parameter Setting

### 4.2.1. The Weighting IndexM

In the FCM, PCM, and DPCM algorithm, we need to specify the weighting indexm whose value is closely related to the effect of clustering. Therefore, we have done a lot of experiments on the value of m in each experiment, increasing gradually from 1.1 to 5.0. The experimental results show that for the five datasets used in this paper, m tends to achieve the best performance for the mentioned three clustering algorithms when its value is taken in the range of 1.2-2.0. However, in the Adrenalmnist3D dataset, the performance of the FCM algorithm does not change no matter how m is taken in the range of 1.2 to 2.0. Therefore, in this paper, we also gradually increase the value of m in the range of 2.0-5.0 at a pace of 0.5 and in the range of 5.0-10.0 at a pace of 1.0. Experimentally, we prove that in this dataset, whatever value of m is taken does not affect the FCM. The trend of the clustering effect of FCM, PCM, and DPCM with the change of m value is shown in Figure 2.Figure 2
Trend of ACC and NMI of FCM, PCM, and DPCM under different values ofm.


### 4.2.2.K-means++ and K-medoids

Only the parameterk needs to be set as the number of clusters of the dataset, where its values in OrganAMNIST, OrganCMNIST, OrganSMNIST, Adrenalmnist3D, and FractureMNIST3D are set to 11, 11, 11, 2, and 3, separately.


### 4.2.3. FCM

k is the number of clusters. The weighting index m is set as 4.2.1. In addition, we need to set two parameters maxiter as 1000 and ε as 0.005 for terminating the iterative optimization of the program. Therefore, the iteration will come to an end right away when any of the following conditions are met: (1) the number of iterations is equal to the maxiter and (2) Ut−Ut−1<ε.


### 4.2.4. PCM

The required parameters and values are the same as FCM. In addition, the initial value of the clustering centers is determined by the FCM after optimization.


### 4.2.5. DPCM

The number of clustering centersk is set the same as Section 4.2.2. The weighting index m is set the same as Section 4.2.1.


## 4.2.1. The Weighting IndexM

In the FCM, PCM, and DPCM algorithm, we need to specify the weighting indexm whose value is closely related to the effect of clustering. Therefore, we have done a lot of experiments on the value of m in each experiment, increasing gradually from 1.1 to 5.0. The experimental results show that for the five datasets used in this paper, m tends to achieve the best performance for the mentioned three clustering algorithms when its value is taken in the range of 1.2-2.0. However, in the Adrenalmnist3D dataset, the performance of the FCM algorithm does not change no matter how m is taken in the range of 1.2 to 2.0. Therefore, in this paper, we also gradually increase the value of m in the range of 2.0-5.0 at a pace of 0.5 and in the range of 5.0-10.0 at a pace of 1.0. Experimentally, we prove that in this dataset, whatever value of m is taken does not affect the FCM. The trend of the clustering effect of FCM, PCM, and DPCM with the change of m value is shown in Figure 2.Figure 2
Trend of ACC and NMI of FCM, PCM, and DPCM under different values ofm.


## 4.2.2.K-means++ and K-medoids

Only the parameterk needs to be set as the number of clusters of the dataset, where its values in OrganAMNIST, OrganCMNIST, OrganSMNIST, Adrenalmnist3D, and FractureMNIST3D are set to 11, 11, 11, 2, and 3, separately.


## 4.2.3. FCM

k is the number of clusters. The weighting index m is set as 4.2.1. In addition, we need to set two parameters maxiter as 1000 and ε as 0.005 for terminating the iterative optimization of the program. Therefore, the iteration will come to an end right away when any of the following conditions are met: (1) the number of iterations is equal to the maxiter and (2) Ut−Ut−1<ε.


## 4.2.4. PCM

The required parameters and values are the same as FCM. In addition, the initial value of the clustering centers is determined by the FCM after optimization.


## 4.2.5. DPCM

The number of clustering centersk is set the same as Section 4.2.2. The weighting index m is set the same as Section 4.2.1.


## 4.3. Result Analysis

In this paper, the results of this experiment are evaluated using two external evaluation indicators commonly used in unsupervised cluster analysis, ACC [24] and NMI [25], where ACC denotes clustering accuracy and NMI denotes normalized mutual information, both of which take values ranging from 0 to 1. The higher these two values hold, the better the clustering effect shows. The expressions for ACC and NMI are specified as follows:
(16)NMIΩ,C=IΩ;CHΩ+HC/2,ACCC,S=maxψ1N∑i=1Nχsi=ψci,where IΩ,C denotes the interaction information between Ω and C, and it is expressed as follows:
(17)IΩ,C=∑k∑jPwk∩cjlogPwk∩cjPwkPcj=∑k∑jwk∩cjNlogNwk∩cjwkcj,HΩ=−∑kPwklogPwk=−∑kwkNlogwkN,where Pwk denotes the possibility that x belongs to the cluster wk; Pwk∩cj denotes the probability that x belongs to both sets wk and cj.From the above two evaluation index criteria, as shown in Figure2, the DPCM algorithm proposed in this paper is significantly more effective than other traditional clustering algorithms in clustering both the 784-dimensional 2D dataset and the 3D dataset with data dimension up to 21952. Table 1 shows the results of ACC and NMI obtained by clustering DPCM with five other clustering algorithms on different datasets. The DPCM algorithm apparently greatly improves the clustering effect of the PCM algorithm. It can be seen that the deep PCM algorithm proposed in this paper can well combine the PCM with the autoencoder to maximize the clustering performance of the PCM algorithm and the dimensionality reduction advantage of the autoencoder, jointly promoting the advantages of each other.Table 1
The results of ACC and NMI obtained by clustering DPCM with five other clustering algorithms on different datasets.
KMFCMPCMK-medoidsAGNESDeep PCMOrganAACC 0.5710.4590.4010.1760.5890.608NMI 0.6120.4940.3970.0580.6930.703OrganCACC 0.4880.5420.3830.170.5160.625NMI 0.5960.5520.4050.0450.6650.691OrganSACC 0.4360.3720.3770.1660.4650.502NMI 0.5110.4330.3680.0490.5920.605Fracture3DACC 0.3880.3970.4260.410.3880.448NMI 0.0180.0180.0240.0080.0160.061Adrenal3DACC 0.5520.5610.6120.520.5820.776NMI 0.0230.0250.0290.0030.0320.038


## 4.4. Antinoise Performance

In order to verify whether the DPCM algorithm inherits the advantage of the PCM algorithm’s strong noise immunity, we added Gaussian noise with proportions of 1% and 3% to each dataset and compared the experimental results with the original dataset to observe how ACC and NMI changed (the mean value of Gaussian noise is set to 0, and the variance is set to 0.05).The performance comparison before and after adding noise can be seen in Tables2–5. From the experimental results, we can easily see that in the case of adding 1% and 3% Gaussian noise, the ACC and NMI after DPCM clustering are better than other algorithms in ORGAN-A, ORGAN-C, AND ORGAN-S datasets; in the FRACTURE dataset containing 1% and 3% noise, DPCM still outperforms other algorithms in NMI, while the results of ACC are inferior to those of other algorithms; in the ADRENAL dataset with 1% and 3% noise, DPCM still outperformed the other algorithms in ACC, while NMI was inferior to the other algorithms. Since the first three datasets have in common that they are all 784-dimensional, on the other hand, the last two datasets are all 21952-dimensional. Therefore, we cannot rule out the possibility that the noise immunity of the DPCM will be affected by the dimensionality. However, in most cases, the DPCM algorithm not only outperforms the other algorithms in terms of the clustering effect but even slightly improves the results compared to the original datasets, so we can assume that DPCM has some noise immunity which is inherited from the PCM algorithm.Table 2
ACC performance on datasets with 1% Gaussian noise.
1% ACCKMFCMPCMK-medoidsAGNESDPCMOrganA0.5710.4590.4010.1760.5890.6081% noise0.5600.4600.4060.1780.5420.607OrganC0.4880.5420.3830.170.5160.6251% noise0.4880.5330.3810.170.5210.626OrganS0.4360.3720.3770.1660.4650.5021% noise0.4360.3710.3770.1670.4510.507Fracture0.3880.3970.4260.410.3880.4481% noise0.3980.3900.4250.410.3980.412ADRENAL0.5520.5610.6120.520.5820.7761% noise0.5560.5610.6120.550.5810.776Table 3
NMI performance on datasets with 1% Gaussian noise.
KMFCMPCMK-medoidsAGNESDPCMOrganA0.6120.4940.3970.0580.6930.7031% noise0.6070.4960.4060.0760.6840.712OrganC0.5960.5520.4050.0450.6650.6911% noise0.5960.5510.4350.0390.6530.697OrganS0.5110.4330.3680.0490.5920.6051% noise0.5130.4350.3700.0480.5820.609Fracture0.0180.0180.0240.0080.0160.0611% noise0.0160.0200.0280.0180.0220.036ADRENAL0.0230.0250.0290.0030.0320.0381% noise0.0240.0250.0310.0060.0320.027Table 4
ACC performance on datasets with 3% Gaussian noise.
KMFCMPCMK-medoidsAGNESDPCMOrganA0.5710.4590.4010.1760.5890.6083% noise0.5810.4600.3970.1740.5620.614OrganC0.4880.5420.3830.170.5160.6253% noise0.4910.5530.3840.1670.5070.637OrganS0.4360.372,0.3770.1660.4650.5023% noise0.4350.3720.3790.1660.4560.515Fracture0.3880.3970.4260.410.3880.4483% noise0.3870.3970.4290.4080.4080.424ADRENAL0.5520.5610.6120.520.5820.7763% noise0.5510.5630.5880.5510.5800.776Table 5
NMI performance on datasets with 3% Gaussian noise.
KMFCMPCMK-medoidsAGNESDPCMOrganA0.6120.4940.3970.0580.6930.7033% noise0.6210.4970.4100.0510.6750.708OrganC0.5960.5520.4050.0450.6650.6913% noise0.5950.5570.4330.0470.6610.698OrganS0.5110.4330.3680.0490.5920.6053% noise0.5110.4340.3950.0480.5990.612Fracture0.0180.0180.0240.0080.0160.0613% noise0.0180.0210.0290.0170.0020.038ADRENAL0.0230.0250.0290.0030.0320.0383% noise0.0220.0260.0310.0070.0310.024


## 5. Conclusion

In this paper, to further explore the potential of deep neural networks for clustering medical images, we combine the autoencoder with the soft-partition clustering method PCM. Since PCM uses the probability concept that can perform stochastic gradient descent instead of the discrete affiliation ofK-means, the optimization of the clustering parameters can be performed together with the network optimization of AE. Therefore, the autoencoder is gradually iteratively optimized in the direction favorable to PCM clustering, which further improves the clustering efficiency and accuracy. We also found that the clustering performance of DPCM is higher than other clustering methods in the presence of 1%-3% Gaussian noise in the datasets, which proves that the DPCM algorithm has a certain resistance to noise interference, which makes it more adaptable. However, during the experiments, we also found that the improvement of the clustering effect of DPCM compared with traditional clustering methods did not show significantly on some datasets, which may be related to the adaptability of the network model or the selection of initial parameters. We should continue to pay attention to this aspect in the future.



---

*Source: 3469979-2022-04-16.xml*