# 曼达尼模糊推理（Mamdani fuzzy inference）

曼达尼模糊推理是一种方法：它通过后件为模糊集的模糊“如果—那么”规则，把精确数值输入映射为精确数值输出，随后对规则输出进行聚合，再去模糊化。它的提出，是为了把经验丰富的人类操作员的语言控制规则转化为自动控制策略；至今，它仍广泛用于需要让专家知识在控制器中保持可读的场合。<sup>[1](https://www.sciencedirect.com/science/article/abs/pii/S0020737375800022?via%3Dihub)</sup><sup> • </sup><sup>[2](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)</sup> 每条规则以分级程度触发，所有触发的规则同时作出贡献，最终输出是整个规则库上的折中，而不是某一条匹配规则的结果。

| 关键事实 | 详情 |
|---|---|
| 规则形式 | 如果误差为“正”且变化为“负”，则控制作用是一个模糊集；后件是模糊集，而不是数值或公式<sup>[2](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)</sup> |
| 标准推理 | 最大-最小合成：每条规则的输出集合在其触发强度处被截断，截断后的集合以取最大值方式合并<sup>[3](https://www.jasss.org/21/3/2.html)</sup> |
| 标准去模糊化 | 聚合输出集合的重心（质心）<sup>[3](https://www.jasss.org/21/3/2.html)</sup> |
| 提出者 | 曼达尼（Mamdani）与阿西利安（Assilian），《用模糊逻辑控制器进行语言合成的实验》，《国际人机研究杂志》，1975<sup>[1](https://www.sciencedirect.com/science/article/abs/pii/S0020737375800022?via%3Dihub)</sup> |
| 主要替代方案 | 高木-菅野-康（Takagi–Sugeno–Kang, TSK）推理，后件为常量或线性函数，输出为加权平均，计算成本更低<sup>[2](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)</sup> |
| 规则增长 | 若有 \( d \) 个输入且每个输入有 \( p \) 个隶属函数，完整的网格规则库需要 \( p^{d} \) 条规则<sup>[4](https://ar5iv.labs.arxiv.org/html/1903.10572)</sup> |

## 工作原理

曼达尼系统是一条由四个阶段组成的流水线：模糊化、规则求值、聚合和去模糊化。模糊化把每个精确输入转换为它在“低”“中”“高”等语言项中的隶属度。规则的触发强度用“与”算子（t-范数）合并前件隶属度，通常取最小值或代数乘积；“或”连接词使用最大值或概率或运算。<sup>[5](https://www.mathworks.com/help/fuzzy/fuzzy-inference-process.html)</sup>

在最初的最大-最小形式中，每条规则的输出模糊集 \( B_{k} \) 在规则的触发强度处被截断，截断后的集合取并集。记 \( \mu_{A_k}(x) \) 为第 \( k \) 条规则的前件匹配度，\( \mu_{B_k}(y) \) 为其后件集合，则聚合输出为<sup>[3](https://www.jasss.org/21/3/2.html)</sup>

\[ \mu_{\mathrm{Mamdani}\,|\,x}(y) = \max_{k} \big[ \min \big( \mu_{B_k}(y),\ \mu_{A_k}(x) \big) \big] \]

这就是这些系统被称为最大-最小模糊系统的原因。随后，去模糊化把这个二维聚合结果压缩为一个数。重心，即聚合集合下方面积的中心，是最流行的选择；等分线、最大值中点、最大值中的最大者和最大值中的最小者，是常见工具箱中的其他内置选项。<sup>[5](https://www.mathworks.com/help/fuzzy/fuzzy-inference-process.html)</sup>

运行中有两个边缘情况值得注意。如果没有规则触发，聚合集合为空，重心无法计算，因此需要默认输出或重新调整规则库。<sup>[3](https://www.jasss.org/21/3/2.html)</sup> 另外，采用最大-最小合成和重心去模糊化时，输出永远达不到输出论域的边界；可达的极值由最左和最右后件隶属函数的重心决定，而不是由论域本身的界限决定。<sup>[6](https://researchhubs.com/post/engineering/fuzzy-system/mamdani-fuzzy-model.html)</sup>

## 具体做法

实际构建按如下步骤进行。第一，选择输入、输出变量及其论域，并为每个语言项定义隶属函数；高斯形和梯形很常见。第二，编写规则库，可以来自专家陈述，也可以通过学习得到。第三，选择算子：MATLAB 的模糊逻辑工具箱（Fuzzy Logic Toolbox）为“与”运算提供 min 和 prod，为“或”运算提供 max 和 probor，并提供五种去模糊化方法。<sup>[5](https://www.mathworks.com/help/fuzzy/fuzzy-inference-process.html)</sup> 第四，运行推理：对输入模糊化，对每条规则求值，对每个输出变量把截断后的输出集合聚合一次（任何可交换聚合都使规则执行顺序无关紧要），然后去模糊化。<sup>[5](https://www.mathworks.com/help/fuzzy/fuzzy-inference-process.html)</sup>

在工作设计中，规则数量保持适中。一个最小模糊 PID 控制器在三个输入上各使用两个模糊集（负和正），在输出上使用四个模糊集，共八条规则，采用曼达尼最小推理和求和中心去模糊化。<sup>[7](https://www.inderscience.com/info/inarticle.php?artid=88601)</sup>

## 起源

该方法建立在扎德（Zadeh）1965 年的模糊集理论之上，该理论引入了分级隶属度。<sup>[8](https://doi.org/10.1016/s0019-9958%2865%2990241-x)</sup> 曼达尼模糊推理本身由曼达尼与阿西利安在 1975 年的论文《用模糊逻辑控制器进行语言合成的实验》中报告，发表于《国际人机研究杂志》；该文把人类操作员陈述的启发式控制规则转化为用于一座模型工业装置——蒸汽机——的自动控制策略。<sup>[9](https://doi.org/10.1016/s0020-7373%2875%2980002-2)</sup> 更早的一篇 1974 年《IEE 会刊》论文曾将一种模糊算法（在数字计算机上实现为模糊条件语句解释器）在线应用于实验室制造的蒸汽机。<sup>[10](https://digital-library.theiet.org/content/journals/10.1049/piee.1974.0328)</sup> 在蒸汽机应用中，两个模糊推理系统充当两个控制器，分别生成锅炉的热量输入和发动机气缸的节流阀开度，以调节蒸汽压力和发动机转速；由于装置只接受精确输入，因此需要去模糊器。<sup>[6](https://researchhubs.com/post/engineering/fuzzy-system/mamdani-fuzzy-model.html)</sup> 这项工作很快转向工业：1977 年《Automatica》的一篇论文报告了两项中试规模的模糊控制研究，目标针对复杂、定义不良的过程，在这些过程中建模困难和测量缺失使人工控制成为必需。<sup>[11](https://dl.acm.org/doi/10.1016/0005-1098%2877%2990050-4)</sup>

## 变体

主要变体是 TSK（高木-菅野-康）推理，其中每条规则的后件是一个单点输出，或为常量，或为输入的线性函数。<sup>[2](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)</sup> TSK 系统不需要去模糊器，因为推理引擎的输出已经是一个精确数，由加权平均得到；由于这种简单性和灵活性，TSK 系统在实践中更受欢迎。<sup>[4](https://ar5iv.labs.arxiv.org/html/1903.10572)</sup> 这两类体现了一种权衡：曼达尼型具有更好的解释能力，而 TSK 型具有更好的逼近精度。<sup>[12](https://arxiv.org/pdf/1908.10122v1.pdf)</sup> 把曼达尼系统转换为菅野形式，会用每个输出模糊集重心处的常数替换该集合，从而丢失原集合的形状信息。<sup>[2](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)</sup> 反过来，在集合中心去模糊化下——每个后件先被替换为一个精确数，再用加权平均合并——曼达尼一型系统可以视为后件为常量的 TSK 系统。<sup>[13](https://ar5iv.labs.arxiv.org/html/1907.01697)</sup>

算子变体会改变推理本身。最大-乘积合成使用代数乘积作为 t-范数，按触发强度对每条规则的输出模糊集进行缩放，而不是截断；这未用于曼达尼的原始论文，但在文献中很常见。<sup>[6](https://researchhubs.com/post/engineering/fuzzy-system/mamdani-fuzzy-model.html)</sup> 用其他 t-范数替代最小值、用其他 t-余范数替代最大值，会产生不同的推理方法和不同的输出。<sup>[14](https://link.springer.com/article/10.1007/s40314-026-03788-0)</sup>

二型扩展拓宽了隶属函数本身，以处理其参数中的不确定性。卡尼克（Karnik）、门德尔（Mendel）和梁（Liang）于 1999 年建立了完整的二型模糊逻辑系统理论，发表于《IEEE 模糊系统汇刊》；其中推理引擎输出是一个二型集合，去模糊化通过扎德扩展原理使用一型去模糊化的扩展版本。<sup>[15](https://doi.org/10.1109/91.811231)</sup> 梁和门德尔于 2000 年提出了计算上可处理的区间二型设计。<sup>[16](https://doi.org/10.1109/91.873577)</sup>

## 应用

当专家知识应以直观、人类可读的形式被捕获时，曼达尼推理更受青睐，并广泛用于决策支持。<sup>[17](https://www.ijsce.org/wp-content/uploads/papers/v2i2/B0612042212.pdf)</sup> 它的可解读性、可解释性和透明性使其适合专家系统应用，如医学诊断。<sup>[2](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)</sup> 在工业方面，该方法源于蒸汽机控制和中试规模过程研究，这为其在难以建模的过程上的应用确立了模式。<sup>[1](https://www.sciencedirect.com/science/article/abs/pii/S0020737375800022?via%3Dihub)</sup><sup> • </sup><sup>[11](https://dl.acm.org/doi/10.1016/0005-1098%2877%2990050-4)</sup>

## 局限与替代方案

核心失效模式是规则爆炸：若有 \( d \) 个输入且每个输入有 \( p \) 个隶属函数，完整规则库需要 \( p^{d} \) 条规则，而随着规则数量增长，可解释性会下降。<sup>[4](https://ar5iv.labs.arxiv.org/html/1903.10572)</sup> 近期综述还指出，高维环境中的语义漂移是一个关键挑战，这推动了带剪枝的在线规则生成和自适应规则选择，尽管剪枝有删除稀疏数据区域规则的风险。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0925231226004455)</sup> 曼达尼系统本身没有学习能力，需要关于问题的先验知识；相比之下，训练过的神经网络从数据中学习，却不解释其行为；神经模糊混合方法把两者结合起来。<sup>[12](https://arxiv.org/pdf/1908.10122v1.pdf)</sup> [ANFIS](https://www.edgepedia.org/zh/adaptive-neuro-fuzzy-inference-system) 是最突出的此类混合方法，通常建立在菅野型推理系统而非曼达尼系统之上，使用梯度下降加最小二乘，且容易过拟合。<sup>[4](https://ar5iv.labs.arxiv.org/html/1903.10572)</sup> 还存在一致性局限：尽管曼达尼系统是通用逼近器，聚合和去模糊化可能产生在后件集合中隶属度很低的输出，即使输入与前件匹配得很强。<sup>[3](https://www.jasss.org/21/3/2.html)</sup>

相对于 TSK，计算是主要成本。对模糊输出进行曼达尼去模糊化会带来相当大的计算负担，而菅野通过加权平均计算精确输出，所需处理时间更短。<sup>[17](https://www.ijsce.org/wp-content/uploads/papers/v2i2/B0612042212.pdf)</sup> 计算二维区域的重心是计算开销很大的步骤；重心去模糊器的复杂度显著限制了它在区间二型系统中的采用，在那里集合中心型降型反而成了最流行的方法。<sup>[19](http://www.cmap.polytechnique.fr/~nikolaus.hansen/proceedings/2014/WCCI/FUZZ-IEEE2014/PROGRAM/F-14025.pdf)</sup> 与此相对，一项研究综述发现，曼达尼的精度在不同应用中更稳定，各研究间仅变化约 7.55%，而菅野的精度范围为 81.48% 到 99%。<sup>[20](https://journal.umy.ac.id/index.php/jrc/article/view/22123)</sup>

## References

1. [An experiment in linguistic synthesis with a fuzzy logic controller (Mamdani & Assilian, International Journal of Man-Machine Studies, 1975)](https://www.sciencedirect.com/science/article/abs/pii/S0020737375800022?via%3Dihub)
2. [Mamdani and Sugeno Fuzzy Inference Systems (MathWorks documentation)](https://www.mathworks.com/help/fuzzy/types-of-fuzzy-inference-systems.html)
3. [Mamdani Fuzzy Systems for Modelling and Simulation (Journal of Artificial Societies and Social Simulation)](https://www.jasss.org/21/3/2.html)
4. [On the Functional Equivalence of TSK Fuzzy Systems to Neural Networks, Mixture of Experts, CART, and Stacking Ensemble Regression (arXiv)](https://ar5iv.labs.arxiv.org/html/1903.10572)
5. [Fuzzy Inference Process - MATLAB & Simulink (MathWorks documentation)](https://www.mathworks.com/help/fuzzy/fuzzy-inference-process.html)
6. [Mamdani Fuzzy Model (researchhubs)](https://researchhubs.com/post/engineering/fuzzy-system/mamdani-fuzzy-model.html)
7. [Modelling, stability analysis and computational aspects of nonlinear fuzzy PID controllers using Mamdani minimum inference (Int. J. of Automation and Control, 2018)](https://www.inderscience.com/info/inarticle.php?artid=88601)
8. [Fuzzy sets (Information and Control, 1965)](https://doi.org/10.1016/s0019-9958%2865%2990241-x)
9. [An experiment in linguistic synthesis with a fuzzy logic controller (International Journal of Man-Machine Studies, 1975)](https://doi.org/10.1016/s0020-7373%2875%2980002-2)
10. [Application of fuzzy algorithms for control of simple dynamic plant (Mamdani, Proceedings IEE, 1974)](https://digital-library.theiet.org/content/journals/10.1049/piee.1974.0328)
11. [0005 1098(77)90050 4 (dl.acm.org)](https://dl.acm.org/doi/10.1016/0005-1098%2877%2990050-4)
12. [Heuristic Design of Fuzzy Inference Systems: A Review (arXiv)](https://arxiv.org/pdf/1908.10122v1.pdf)
13. [Recommendations on Designing Practical Interval Type-2 Fuzzy Systems (arXiv 1907.01697)](https://ar5iv.labs.arxiv.org/html/1907.01697)
14. [Comparison measures of fuzzy inference rules based on generalizations of Jaccard indices (Computational and Applied Mathematics, 2026)](https://link.springer.com/article/10.1007/s40314-026-03788-0)
15. [N.N. Karnik, J.M. Mendel, Qilian Liang (1999). Type-2 fuzzy logic systems. IEEE Transactions on Fuzzy Systems.](https://doi.org/10.1109/91.811231)
16. [Qilian Liang, J.M. Mendel (2000). Interval type-2 fuzzy logic systems: theory and design. IEEE Transactions on Fuzzy Systems.](https://doi.org/10.1109/91.873577)
17. [Comparison of Mamdani-Type and Sugeno-Type Fuzzy Inference Systems (IJSCE)](https://www.ijsce.org/wp-content/uploads/papers/v2i2/B0612042212.pdf)
18. [Self-organizing interval type-2 fuzzy neural networks with rule interaction constraints (Neurocomputing, 2026)](https://www.sciencedirect.com/science/article/abs/pii/S0925231226004455)
19. [Designing Practical Interval Type-2 Fuzzy Systems (FUZZ-IEEE 2014 / Mendel)](http://www.cmap.polytechnique.fr/~nikolaus.hansen/proceedings/2014/WCCI/FUZZ-IEEE2014/PROGRAM/F-14025.pdf)
20. [Analysis and Performance Comparison of Fuzzy Inference Systems in Handling Uncertainty: A Review](https://journal.umy.ac.id/index.php/jrc/article/view/22123)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/mamdani-fuzzy-inference

English original: https://www.edgepedia.org/mamdani-fuzzy-inference
