# 模糊C均值

模糊C均值（Fuzzy c-means, FCM）是一种聚类算法，它通过给每个数据点在每个簇中赋予一个隶属度而非单一的硬标签，并通过最小化以隶属度加权的平方距离目标函数，将数据集划分为 \( c \) 个簇。其结果是得到一个 \( c \times n \) 的隶属度矩阵 \( U \)，其元素位于[0, 1]区间内且每列之和为1，以及 \( c \) 个簇中心原型 \( V \)；配对 \( (U, V) \) 通过一阶必要条件进行交替优化求得。<sup>[1](http://www.scholarpedia.org/article/Fuzzy_C-means_cluster_analysis)</sup> 这种软分配是与k均值算法的根本区别所在，后者强制每个点恰好属于一个簇；在对比实验中，两种算法在 \( k = 2 \) 时结果一致，在 \( k = 3 \) 时略有差异，在 \( k = 4 \) 时产生不同的划分。<sup>[2](https://scik.org/index.php/eml/article/download/8403/3904)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 隶属度矩阵U（元素在[0, 1]内，列和为1）及c个原型V<sup>[1](http://www.scholarpedia.org/article/Fuzzy_C-means_cluster_analysis)</sup> |

| 模糊化因子m | 当m从上方趋近于1时，若最近中心唯一，FCM趋近于硬C均值分配（通常算法要求m > 1）；m → ∞使所有隶属度趋于1/c；1.5 ≤ m ≤ 3.0适用于大多数数据<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup><sup> • </sup><sup>[4](https://ar5iv.labs.arxiv.org/html/1512.05947)</sup> |
| 运行时间 | \( O(nc^{2}di) \)，而k均值为 \( O(ncdi) \)，多出的 \( c^{2} \) 来自隶属度计算<sup>[5](https://scik.org/index.php/eml/article/download/8402/3960)</sup> |
| 收敛性 | 数值收敛通常在10–25次迭代内实现<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup> |
| 软件 | MATLAB fcm、R e1071::cmeans和fclust、scikit-fuzzy、pyclustering<sup>[1](http://www.scholarpedia.org/article/Fuzzy_C-means_cluster_analysis)</sup><sup> • </sup><sup>[6](https://search.r-project.org/CRAN/refmans/e1071/html/cmeans.html)</sup><sup> • </sup><sup>[7](https://scikit-fuzzy.readthedocs.io/en/latest/_modules/skfuzzy/cluster/_cmeans.html)</sup><sup> • </sup><sup>[8](https://journal.r-project.org/articles/RJ-2019-017/RJ-2019-017.pdf)</sup> |
| 旗舰应用 | 脑部MRI分割，已有综述评述了用于脑肿瘤分割的十三种FCM变体<sup>[9](https://www.benthamdirect.com/content/journals/cmir/10.2174/1573405616666210104111218)</sup> |

## 工作原理

FCM最小化广义最小二乘目标函数

\[ J_{m}(U,V;X) = \sum_{i=1}^{c}\sum_{j=1}^{N} u_{ij}^{m} \lVert x_{j} - v_{i} \rVert_{A}^{2}, \qquad \sum_{i=1}^{c} u_{ij} = 1, \quad \sum_{j=1}^{N} u_{ij} > 0, \]

其中点 \( x_{j} \) 与中心 \( v_{i} \) 之间的每个平方误差由 \( u_{ij}^{m} \) 加权，即该点在簇i中隶属度的m次幂，而 \( m > 1 \) 是模糊化程度。<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/science/article/abs/pii/S156849461630686X)</sup> 中心是划分后各子集的质心。范数矩阵A控制簇的形状：对于任意对称正定矩阵 \( A \)，簇本质上是超椭球形的，各主半轴长度与A的每个特征值 \( \lambda \) 的 \( 1/\sqrt{\lambda} \) 成正比，而基于协方差的范数产生马氏距离簇。<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup><sup> • </sup><sup>[10](https://www.sciencedirect.com/science/article/abs/pii/S156849461630686X)</sup> 将导数条件设为零可得下面的两个更新方程；同一准则在指数为 \( r > 1 \) 时的形式在k均值族的历史文献中被称为模糊方差准则。<sup>[11](https://www.jehps.net/Decembre2008/Bock.pdf)</sup>

## 实现方法

标准循环固定c、m、A和范数，初始化隶属度矩阵U⁽⁰⁾，然后交替执行两个更新步骤，直到U变化量的矩阵范数低于容差；数值收敛通常在10–25次迭代内实现。<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup> 隶属度更新使 \( u_{ik} \) 与各簇距离比值的 \( 2/(m-1) \) 次幂之和成反比，而质心更新是隶属度加权均值

\[ v_{i} = \frac{\sum_{k} u_{ik}^{m} x_{k}}{\sum_{k} u_{ik}^{m}}. \]<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup><sup> • </sup><sup>[12](https://pyclustering.github.io/docs/0.10.1/html/d2/d6a/classpyclustering_1_1cluster_1_1fcm_1_1fcm.html)</sup>

初始化至关重要：结果依赖于起始中心，推荐使用K-Means++来选择它们。<sup>[12](https://pyclustering.github.io/docs/0.10.1/html/d2/d6a/classpyclustering_1_1cluster_1_1fcm_1_1fcm.html)</sup> MATLAB的fcm从随机中心和随机隶属度开始，默认迭代上限为100次，支持欧几里得、马氏和模糊最大似然距离度量。<sup>[13](https://www.mathworks.com/help/fuzzy/fuzzy-c-means-clustering.html)</sup> 已发表的收敛准则包括连续迭代间的最大隶属度差、最大质心位移、目标函数差以及迭代次数上限，其中隶属度差准则使用最广。<sup>[14](https://www.mdpi.com/2075-1680/13/9/592)</sup> 由于迭代可能停滞在局部最优，建议多次随机启动；在一项应用研究中使用了50次启动，并在默认 \( m = 2 \) 产生极其模糊的划分后将 \( m \) 降至 \( 1.2 \)。<sup>[8](https://journal.r-project.org/articles/RJ-2019-017/RJ-2019-017.pdf)</sup><sup> • </sup><sup>[15](https://ar5iv.labs.arxiv.org/html/1004.1307)</sup> 簇数通过在U上计算的有效性指标来选择，如划分系数和划分熵，或模糊轮廓；fclust包默认搜索 \( k = 2{:}6 \) 的范围，MATLAB的'auto'选项尝试2到11个簇。<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup><sup> • </sup><sup>[8](https://journal.r-project.org/articles/RJ-2019-017/RJ-2019-017.pdf)</sup><sup> • </sup><sup>[13](https://www.mathworks.com/help/fuzzy/fuzzy-c-means-clustering.html)</sup>

## 起源

数学基础是扎德（Zadeh）1965年发表在《信息与控制》上的模糊集合论文。<sup>[16](https://doi.org/10.1016/s0019-9958%2865%2990241-x)</sup> 模糊C均值聚类最早由J. C. 邓恩（J. C. Dunn）针对特殊情况报道，见于《控制论杂志》1973年的论文《ISODATA过程的模糊变体及其在检测紧凑且分离良好的簇中的应用》。<sup>[17](https://doi.org/10.1080/01969727308546046)</sup> 一般情形由詹姆斯·C. 贝兹德克（James C. Bezdek）发展，并在专著《模式识别与模糊目标函数算法》（1981年）中给出。<sup>[18](https://doi.org/10.1007/978-1-4757-0450-1)</sup> 贝兹德克于1980年在《IEEE模式分析与机器智能汇刊》上发表了模糊ISODATA算法的收敛定理，<sup>[19](https://doi.org/10.1109/tpami.1980.4766964)</sup> 后在1987年詹姆斯·C. 贝兹德克及其同事在《IEEE系统、人与控制论汇刊》的论文中针对反例进行了修正。<sup>[20](https://doi.org/10.1109/tsmc.1987.6499296)</sup> 詹姆斯·C. 贝兹德克、罗伯特·埃利希（Robert Ehrlich）和威廉·富尔（William Full）1984年发表在《计算机与地球科学》上的论文提供了一个FORTRAN-IV实现，至今仍是标准的算法参考文献。<sup>[3](https://doi.org/10.1016/0098-3004%2884%2990020-7)</sup>

## 变体

**可能性C均值（PCM）** 放松了逐点约束 \( \sum_{i=1}^{c} u_{ij} = 1 \)，因此隶属度反映的是典型性而非共享隶属度，每个点在各个簇中的隶属度不必求和为一；该方法由R. 克里希纳普拉姆（R. Krishnapuram）和J. M. 凯勒（J. M. Keller）提出（《IEEE模糊系统汇刊》，1996年），但对初始化敏感且存在原型重合问题。<sup>[21](https://doi.org/10.1109/91.531779)</sup><sup> • </sup><sup>[22](https://www.mdpi.com/1099-4300/26/8/670)</sup> 混合模糊-可能性方法（PFCM及后来的推广）结合了FCM的稳定性与PCM的部分噪声鲁棒性；2024年的一种上界最小化表述在匹配PFCM复杂度的同时每次迭代使用更少内存。<sup>[22](https://www.mdpi.com/1099-4300/26/8/670)</sup>

**古斯塔夫松–凯塞尔（Gustafson–Kessel）** 算法用簇特定的马氏距离替代欧几里得距离，以检测大小和方向各异的椭球簇；其协方差矩阵可能接近奇异，可通过约束条件数或用全数据协方差正则化来处理。<sup>[23](https://cse.guilan.ac.ir/article_8448_eea801a11671ea1b1841be22fef9e6f3.pdf)</sup><sup> • </sup><sup>[8](https://journal.r-project.org/articles/RJ-2019-017/RJ-2019-017.pdf)</sup> **噪声聚类**增加一个没有原型的额外簇，位于与所有点等距的恒定距离处，使离群点可以在其中获得高隶属度。<sup>[24](https://reference-global.com/download/article/10.2478/ausi-2023-0023.pdf)</sup> **核FCM**将数据隐式映射到特征空间；一种基于核的变体在因椒盐噪声而退化的脑部MRI上表现出强噪声鲁棒性，其中改进的FCM（IFCM）也优于标准FCM和空间FCM（SFCM）。<sup>[25](https://www.ijcaonline.org/archives/volume157/number8/suryawanshi-2017-ijca-912784.pdf)</sup> 图像分割变体形成了一个庞大的谱系，包括FCM_S、EnFCM、FGFCM、IFCM和SFCM，它们融入了邻域或灰度信息。<sup>[26](https://link.springer.com/article/10.1007/s10462-025-11420-6)</sup> 一种在线更新变体——无监督模糊竞争学习——与不动点方法一起在R的e1071中实现。<sup>[6](https://search.r-project.org/CRAN/refmans/e1071/html/cmeans.html)</sup>

## 应用

FCM的时间复杂度一般为 \( O(nc^{2}di) \)，而k均值为 \( O(ncdi) \)，其中n是点数，c是簇数，d是维数，i是迭代次数；多出的 \( c^{2} \) 因子是模糊隶属度计算的开销。经验上，在2–5个簇时执行时间相当，当使用更多簇时FCM可能更合适。<sup>[5](https://scik.org/index.php/eml/article/download/8402/3960)</sup> 在更大的基准数据集上，k均值始终明显更快，因此对于超大数据集首选k均值，而对于有噪声的聚类数据则选FCM。<sup>[27](https://real.mtak.hu/29902/1/196_1015_1_PB_u.pdf)</sup>

除医学图像分割外，FCM广泛用于发现高维数据中的簇结构，如DNA微阵列和定量蛋白质组学实验，因其噪声鲁棒性而受到重视。<sup>[15](https://ar5iv.labs.arxiv.org/html/1004.1307)</sup> 它是MATLAB和MATHEMATICA工具箱中的用户可选选项，并出现在两项专利中（贝克顿·迪金森公司和西门子公司）。<sup>[1](http://www.scholarpedia.org/article/Fuzzy_C-means_cluster_analysis)</sup>

## 局限与替代方案

FCM的失效模式已有充分记录。与两个中心等距的噪声点在每个簇中获得0.5的隶属度，这对噪声而言是高分，而当簇大小不同或使用协方差范数时，FCM、PCM和PFCM会产生不准确的中心。<sup>[10](https://www.sciencedirect.com/science/article/abs/pii/S156849461630686X)</sup> 单位和的隶属度约束迫使离群点进入簇中，而由于质心是加权均值，异常点会将其拉偏；添加噪声簇可缓解此问题。<sup>[8](https://journal.r-project.org/articles/RJ-2019-017/RJ-2019-017.pdf)</sup> FCM对噪声、离群点和簇大小不等高度敏感，大簇会吸引小簇的中心。<sup>[28](https://www.sciencedirect.com/science/article/abs/pii/S0957417420306679)</sup> 它假设簇大致为球形且大小相近，<sup>[29](https://mdpi-res.com/d_attachment/mathematics/mathematics-09-02156/article_deploy/mathematics-09-02156-v2.pdf?version=1630922325)</sup> 并存在已知的高维问题，即大多数簇中心被拉向整体重心。<sup>[7](https://scikit-fuzzy.readthedocs.io/en/latest/_modules/skfuzzy/cluster/_cmeans.html)</sup> 与其他梯度下降类算法一样，它可能停滞在局部最优且对初始化敏感。<sup>[30](https://mdpi-res.com/d_attachment/make/make-03-00035/article_deploy/make-03-00035-v2.pdf?version=1630573045)</sup> 理论上，交替优化启发式收敛到局部极小值或鞍点，与最优解相比可能任意差，且最优模糊k均值解一般不能用输入点的根式表示。<sup>[4](https://ar5iv.labs.arxiv.org/html/1512.05947)</sup>

与替代方案比较：对于 \( k = 2 \) 或3建议用k均值，对于 \( k > 3 \) 建议用FCM，且FCM受数据不确定性影响较小，但两者都需要预先指定簇数。<sup>[2](https://scik.org/index.php/eml/article/download/8403/3904)</sup> DBSCAN、高斯混合模型和谱聚类被综述为噪声或不均匀大小数据的比较对象。<sup>[28](https://www.sciencedirect.com/science/article/abs/pii/S0957417420306679)</sup>

2023年以来的工作针对这些弱点。HPFCM（2024年）结合初始化和收敛启发式，平均减少所需迭代次数高达97.65%，同时提高解的质量。<sup>[14](https://www.mdpi.com/2075-1680/13/9/592)</sup> RL-MFCM（2023年12月）从信念峰自动估计簇数而无需初始化。<sup>[31](https://dl.acm.org/doi/10.1109/TFUZZ.2023.3286910)</sup> 联邦FCM由维托尔德·佩德里奇（Witold Pedrycz）为隐私要求下的聚类引入（《IEEE模糊系统汇刊》，2021年），<sup>[32](https://doi.org/10.1109/tfuzz.2021.3105193)</sup> 已发展为深度联邦变体，如FedFCD（2026年），它在每个客户端上将对比自编码器与FCM网络配对，在非独立同分布数据和设备掉线情况下性能退化极小。<sup>[33](https://www.ieee-jas.net/en/article/doi/10.1109/JAS.2025.125561)</sup>

## References

1. [Fuzzy C-means cluster analysis (Scholarpedia, curated by James C. Bezdek, 2011)](http://www.scholarpedia.org/article/Fuzzy_C-means_cluster_analysis)
2. [A Comparison Between the Fuzzy C-Means Clustering Algorithm and the K-Mean Clustering Algorithm (Thakur, Verma & Tiwari)](https://scik.org/index.php/eml/article/download/8403/3904)
3. [FCM: The fuzzy c-means clustering algorithm (Computers & Geosciences, 1984)](https://doi.org/10.1016/0098-3004%2884%2990020-7)
4. [Complexity and Approximation of the Fuzzy K-Means Problem (arXiv:1512.05947)](https://ar5iv.labs.arxiv.org/html/1512.05947)
5. [Analysis of Time Complexity of K-Means and Fuzzy C-Means Clustering Algorithm (Thakur, Verma & Tiwari, 2024)](https://scik.org/index.php/eml/article/download/8402/3960)
6. [R e1071::cmeans documentation](https://search.r-project.org/CRAN/refmans/e1071/html/cmeans.html)
7. [scikit-fuzzy cmeans source code and API documentation](https://scikit-fuzzy.readthedocs.io/en/latest/_modules/skfuzzy/cluster/_cmeans.html)
8. [fclust: An R Package for Fuzzy Clustering (Ferraro, Giordani & Serafini, The R Journal, 2019)](https://journal.r-project.org/articles/RJ-2019-017/RJ-2019-017.pdf)
9. [Recent Advancements in Fuzzy C-means Based Techniques for Brain MRI Segmentation (Current Medical Imaging Reviews)](https://www.benthamdirect.com/content/journals/cmir/10.2174/1573405616666210104111218)
10. [Generalized Possibilistic Fuzzy C-Means with novel cluster validity indices for clustering noisy data (Applied Soft Computing)](https://www.sciencedirect.com/science/article/abs/pii/S156849461630686X)
11. [Origins and extensions of the k-means algorithm in cluster analysis (H.-H. Bock)](https://www.jehps.net/Decembre2008/Bock.pdf)
12. [pyclustering fcm class reference](https://pyclustering.github.io/docs/0.10.1/html/d2/d6a/classpyclustering_1_1cluster_1_1fcm_1_1fcm.html)
13. [Fuzzy C-Means Clustering, MATLAB documentation (MathWorks)](https://www.mathworks.com/help/fuzzy/fuzzy-c-means-clustering.html)
14. [Hybrid Fuzzy C-Means Clustering Algorithm, Improving Solution Quality and Reducing Computational Complexity (Mathematics, MDPI, 2024)](https://www.mdpi.com/2075-1680/13/9/592)
15. [A simple and fast method to determine the parameters for fuzzy c-means cluster validation (arXiv:1004.1307)](https://ar5iv.labs.arxiv.org/html/1004.1307)
16. [Fuzzy sets (Information and Control, 1965)](https://doi.org/10.1016/s0019-9958%2865%2990241-x)
17. [J. C. Dunn (1973). A Fuzzy Relative of the ISODATA Process and Its Use in Detecting Compact Well-Separated Clusters. Journal of Cybernetics.](https://doi.org/10.1080/01969727308546046)
18. [James C. Bezdek (1981). Pattern Recognition with Fuzzy Objective Function Algorithms. .](https://doi.org/10.1007/978-1-4757-0450-1)
19. [James C. Bezdek (1980). A Convergence Theorem for the Fuzzy ISODATA Clustering Algorithms. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.1980.4766964)
20. [James C. Bezdek and colleagues (1987). Convergence theory for fuzzy c-means: Counterexamples and repairs. IEEE Transactions on Systems Man and Cybernetics.](https://doi.org/10.1109/tsmc.1987.6499296)
21. [R. Krishnapuram, J.M. Keller (1996). The possibilistic C-means algorithm: insights and recommendations. IEEE Transactions on Fuzzy Systems.](https://doi.org/10.1109/91.531779)
22. [Revisiting Possibilistic Fuzzy C-Means Clustering Using the Majorization-Minimization Method (Entropy, MDPI, 2024)](https://www.mdpi.com/1099-4300/26/8/670)
23. [A robust Gustafson-Kessel clustering algorithm for brain tissue segmentation (Computational Sciences and Engineering, University of Guilan)](https://cse.guilan.ac.ir/article_8448_eea801a11671ea1b1841be22fef9e6f3.pdf)
24. [A generalized fuzzy-possibilistic c-means (Acta Universitatis Sapientiae, Informatica)](https://reference-global.com/download/article/10.2478/ausi-2023-0023.pdf)
25. [Performance Evaluation of Various Segmentation Techniques on MRI of Brain Tissue (International Journal of Computer Applications)](https://www.ijcaonline.org/archives/volume157/number8/suryawanshi-2017-ijca-912784.pdf)
26. [LIFWCM: local information-based fuzzy weighted C-means algorithm for image segmentation (Artificial Intelligence Review, Springer, 2025)](https://link.springer.com/article/10.1007/s10462-025-11420-6)
27. [Comparison of K-means and Fuzzy C-means Algorithms on Different Cluster Structures](https://real.mtak.hu/29902/1/196_1015_1_PB_u.pdf)
28. [Fuzzy C-Means clustering algorithm for data with unequal cluster sizes and contaminated with noise and outliers: Review and development (Expert Systems with Applications)](https://www.sciencedirect.com/science/article/abs/pii/S0957417420306679)
29. [Evaluation of Clustering Algorithms on HPC Platforms (Mathematics, 2021)](https://mdpi-res.com/d_attachment/mathematics/mathematics-09-02156/article_deploy/mathematics-09-02156-v2.pdf?version=1630922325)
30. [Benchmarking Studies Aimed at Clustering and Classification Tasks Using K-Means, Fuzzy C-Means and Evolutionary Neural Networks (MaLE 2021)](https://mdpi-res.com/d_attachment/make/make-03-00035/article_deploy/make-03-00035-v2.pdf?version=1630573045)
31. [A Robust Learning Membership Scaling Fuzzy C-Means Algorithm Based on New Belief Peak (RL-MFCM) (IEEE Transactions on Fuzzy Systems, Dec 2023)](https://dl.acm.org/doi/10.1109/TFUZZ.2023.3286910)
32. [Witold Pedrycz (2021). Federated FCM: Clustering Under Privacy Requirements. IEEE Transactions on Fuzzy Systems.](https://doi.org/10.1109/tfuzz.2021.3105193)
33. [Deep Fuzzy C-Means Clustering in a Federated Heterogeneous Scenario (FedFCD) (IEEE/CAA Journal of Automatica Sinica, 2025)](https://www.ieee-jas.net/en/article/doi/10.1109/JAS.2025.125561)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Multivariate association and dimension reduction › Titles A to Me

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/fuzzy-c-means

English original: https://www.edgepedia.org/fuzzy-c-means
