Fuzzy C-Means Clustering
Fuzzy C-Means Clustering
𝟔
𝟒 𝟓
𝟏 𝟕
𝟑
𝟐
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
𝟔
𝟒 𝟓
𝟏 𝟕
𝟑
𝟐
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
𝟔
𝟒 𝟓
𝟏 𝟓% 𝟕
𝟑
𝟗𝟓%
𝟐
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
𝟔
𝟒 𝟓
𝟏 𝟕
𝟏𝟎%
𝟑
𝟐 𝟗𝟎%
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
𝟔
𝟓𝟓%
𝟒 𝟓
𝟏 𝟕
𝟑
𝟒𝟓%
𝟐
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
𝟔
𝟒 𝟓
𝟏 𝟕
𝟑
𝟐
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
𝟔
𝟒 𝟓
𝟏 𝟕
𝟑
𝟐
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
History
❖ Fuzzy C-Means(FCM) clustering is an extension of the K-mean
clustering is developed by J. C. Dunn in 1973 and improved by
J. C. Bezdek in 1981.
❖ FCM clustering allows data points to be assigned into more than
one cluster.
❖ This algorithm works by assigning membership to each data
(fuzzy class). Hence, a single data point can have partial membership
degree in more than on class.
for e.g. the 𝑖𝑡ℎ data point in the 𝑗𝑡ℎ cluster have membership degree:
𝜇𝑖𝑗 ∈ [0,1] (3)
❖ The condition is that the sum of all the membership degree for a single
data point in all the classes has to be unity:
𝐶
𝐽∗ 𝑼∗ , 𝐯 ∗ = 𝑚𝑖𝑛(𝐽 𝐔, 𝐯 ) (6)
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
1. 𝐼𝑛𝑖𝑡𝑖𝑎𝑙𝑖𝑧𝑒 𝑈 = µ𝑖𝑗 𝑚𝑎𝑡𝑟𝑖𝑥, 𝑈 0
σ𝑛 𝑚
𝑖=1 µ𝑖𝑗 .𝑥𝑖
𝑐𝑗 = σ𝑛 𝑚 n is the no. of data points and C is the total no. of clusters
𝑖=1 µ𝑖𝑗
𝑘 𝑘+1 1
3. 𝑈𝑝𝑑𝑎𝑡𝑒 𝑈 ,𝑈 µ𝑖𝑗 = 2
𝑥𝑖 −𝑐𝑗 𝑚−1
σ𝐶
𝑘=1 𝑥𝑖 −𝑐𝑘
𝑘+1 𝑘
4. 𝐼𝑓 𝑈 −𝑈 <Ɛ 𝑡ℎ𝑒𝑛 𝑆𝑇𝑂𝑃; 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 𝑟𝑒𝑡𝑢𝑟𝑛 𝑡𝑜 𝑠𝑡𝑒𝑝 2
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
❖ For example: we have initial centroid 3 & 11 (with 𝑚 = 2)
1
µ𝑖𝑗 = 2
𝑥𝑖 − 𝑐𝑗 𝑚−1
σ𝐶𝑘=1
µ𝑖𝑗 is the degree of membership of 𝑥𝑖 in the cluster 𝑗 𝑥𝑖 − 𝑐𝑘
1 1 1
µ 12 = 2 2 = = = 1.22%
2 − 11 2−1 2 − 11 2−1
81 + 1 82
+
2−3 2 − 11
The membership of first data point (i.e.2) to second cluster
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
❖ For example: we have initial centroid 3 & 11 (with 𝑚 = 2)
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
❖ For example: we have initial centroid 3 & 11 (with 𝑚 = 2)
1 1 1
µ32 = 2 2 = = = 2%
4−11 2−1 4−11 2−1 49+1 50
+
4−3 4−11
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
❖ For example: we have initial centroid 3 & 11 (with 𝑚 = 2)
1 1 1
µ42 = 2 2 = = = 50%
7−11
2−1 +
7−11
2−1
7+1 2
7−3 7−11
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Fuzzy C-means Clustering
Updated cluster center cj
σ𝑛𝑖=1 𝑢𝑖𝑗
𝑚
. 𝑥𝑖
𝑐𝑗 =
σ𝑛𝑖=1 𝑢𝑖𝑗
𝑚
Reference: J. C. Bezdek, R. Ehrlich, and W. Full, ‘‘FCM: The fuzzy c-means clustering algorithm,’’ Comput. Geosci., vol. 10, nos. 2–3, pp. 191–203, 1984.
Example: Given Fuzzy clusters below
convert to Crisp Clusters
Fuzzy Clusters
𝐶1: [0.991 0.986 0.993 0]
𝐶2 : [0.009 0.014 0.007 1]
Reference: T. J. Ross, "Fuzzy logic with engineering applications," Vol. 2. New York: wiley, 2004.
𝐶1: [1 1 1 0]
𝐶2 : [0 0 0 1]
𝐶1: [𝑥1 𝑥2 𝑥3 ]
𝐶2 : [ 𝑥4 ]
Answer:
Crisp 𝐶1 : {𝑥1 , 𝑥2 , 𝑥3 }
Cluster 𝐶2 : {𝑥4 }
Reference: T. J. Ross, "Fuzzy logic with engineering applications," Vol. 2. New York: wiley, 2004.
Apply FCM algorithm on D-Dimensional feature space data sets.
x1 x2 x3 x4
1 5 2 1
0 5 0 0
4 9 9 0
5 9 0 2
Some relevant Data Clustering works that you may try:
Thanks