# 形式概念分析

形式概念分析（Formal Concept Analysis，FCA）是一种数学方法，它从对象—属性数据表中导出以格的形式呈现的概念层级结构。其输入是一个称为形式背景的二元关联矩阵，主要输出是按泛化与特化关系排序的概念格，以及属性蕴含的一个非冗余基。<sup>[1](https://bibliotekanauki.pl/articles/330445.pdf)</sup><sup> • </sup><sup>[2](https://phoenix.inf.upol.cz/esf/ucebni/formal.pdf)</sup> 该方法用于知识表示、数据挖掘和本体工程，也可被理解为一种自下而上的、层级化的数据解释方式。<sup>[3](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)</sup>

| 关键事实 | 内容 |
|---|---|
| 输入 | 形式背景 \( K = (G, M, I) \)：对象集 \( G \)、属性集 \( M \)、关联关系 \( I \subseteq G \times M \)<sup>[4](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)</sup> |
| 输出 | 概念格，外加属性蕴含的一个非冗余（典范）基<sup>[2](https://phoenix.inf.upol.cz/esf/ucebni/formal.pdf)</sup><sup> • </sup><sup>[5](https://lat.inf.tu-dresden.de/~francesco/kr23-tutorial-proposal.pdf)</sup> |
| 基本定理 | 每个概念格都是完备的；每个完备格都同构于某个概念格<sup>[3](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)</sup> |
| 最坏情况规模 | 若有 \( n \) 个属性，概念数可能多达 \( 2^{n} \)；其计数问题被报告为 #P-完全<sup>[6](http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-42/paper3_kuznetsov.pdf)</sup><sup> • </sup><sup>[7](https://shura.shu.ac.uk/8677/1/Andrews_a_best_of_breed_approach_for_designing2015.pdf)</sup> |
| 典型规模 | 在填充率接近 0.1 时，3,187 个随机背景中格的大小随背景规模 \( |I| \) 呈二次增长而非线性增长<sup>[8](https://www.st.cs.uni-saarland.de/publications/files/lindig-fca-2000.pdf)</sup> |
| 实际规模 | 小鼠基因表达数据（6,838 个基因，2,335 个组织）产生了 208,378 个概念；最小支持度剪枝将其缩减至 13 个<sup>[9](https://shura.shu.ac.uk/5068/1/inclose2paperICCS2011.pdf)</sup> |

## 工作原理

形式背景是一个三元组 \( K := (G, M, I) \)，其中 \( G \) 的元素为对象，\( M \) 的元素为属性，\( (g, m) \in I \) 读作“对象 \( g \) 具有属性 \( m \)”。<sup>[3](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)</sup> 对任意对象集 \( A \subseteq G \) 或属性集 \( B \subseteq M \)，导出算子定义为<sup>[2](https://phoenix.inf.upol.cz/esf/ucebni/formal.pdf)</sup>

\[ A^{\uparrow} = \{ y \in M \mid \forall x \in A: (x, y) \in I \}, \qquad B^{\downarrow} = \{ x \in G \mid \forall y \in B: (x, y) \in I \}. \]

这两个算子构成 \( G \) 与 \( M \) 的幂集之间的反序伽罗瓦连接（两个结构之间保持序反转的配对映射），而复合映射 \( A \mapsto A^{\uparrow\downarrow} \) 与 \( B \mapsto B^{\downarrow\uparrow} \) 是闭包算子，其不动点恰好是外延与内涵。<sup>[2](https://phoenix.inf.upol.cz/esf/ucebni/formal.pdf)</sup><sup> • </sup><sup>[4](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)</sup> 一个形式概念是一对 \( (A, B) \)，满足 \( A^{\uparrow} = B \) 且 \( B^{\downarrow} = A \)；\( A \) 为外延，\( B \) 为内涵。<sup>[3](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)</sup> 等价地说，概念是数据表中十字标记的极大矩形：\( A \times B \subseteq I \)，且不存在更大的 \( A' \) 或 \( B' \) 保持该矩形。<sup>[10](http://outrata.inf.upol.cz/publications/BeDeOuVy_Ctcl.pdf)</sup>

概念之间的序定义为：\( (A_{1}, B_{1}) \leq (A_{2}, B_{2}) \) 当且仅当 \( A_{1} \subseteq A_{2} \)。在此序下，所有概念的集合 \( \mathfrak{B}(G, M, I) \) 构成一个完备格，其交与并分别为<sup>[2](https://phoenix.inf.upol.cz/esf/ucebni/formal.pdf)</sup>

\[ \bigwedge_{j} (A_{j}, B_{j}) = \Big( \bigcap_{j} A_{j},\ \Big( \bigcup_{j} B_{j} \Big)^{\downarrow\uparrow} \Big), \qquad \bigvee_{j} (A_{j}, B_{j}) = \Big( \Big( \bigcup_{j} A_{j} \Big)^{\uparrow\downarrow},\ \bigcap_{j} B_{j} \Big). \]

基本定理补充了逆命题：每个完备格都同构于某个背景的概念格。<sup>[3](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)</sup>

## 操作方法

实践者首先将数据编码为背景。二元数据本身即构成背景；多值表（数值、字符串、类别）必须通过概念缩放来转换，使用名义、序数或区间序数标度，而这些转换选择并非自动完成。<sup>[4](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)</sup> 概念缩放由伯恩哈德·甘特（Bernhard Ganter）和鲁道夫·维勒（Rudolf Wille）提出。<sup>[11](https://doi.org/10.1007/978-1-4684-6381-1_6)</sup> 对于数值属性，区间序数标度 \( IW_{s} = (W_{s}, W_{s}, \leq) \mid (W_{s}, W_{s}, \geq) \) 表示属性值的所有可能区间。<sup>[12](https://www.hse.ru/data/2013/02/20/1306840761/Pattern%20Structures%20for%20Analyzing%20Complex%20Data.pdf)</sup>

格本身可通过交集来构建：为每个属性写出属性外延 \( \{m\}^{\downarrow} \) 并连同 \( G \)（空交集）一起列出，然后反复将列表中集合的两两交集加入，用导出算子计算每个内涵，直到不再产生新的交集。<sup>[3](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)</sup><sup> • </sup><sup>[4](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)</sup>

参考枚举算法 NextClosure 不使用内存：它按字典序（词汇序）从一个候选内涵移动到下一个，适合大型格。<sup>[13](https://archive.dimacs.rutgers.edu/archive/Workshops/WGOrder/Slides/valtchev2.pdf)</sup> 当只有专家而非完整背景可用时，交互式属性探索程序构建蕴含理论的最小表示。<sup>[5](https://lat.inf.tu-dresden.de/~francesco/kr23-tutorial-proposal.pdf)</sup> Close-by-One（CbO）系列每次为一个概念增量完成闭包，通过在布尔矩阵上的典范性检验来剪除重复；西蒙·安德鲁斯（Simon Andrews）的 In-Close 算法即建立在这一思想之上。<sup>[7](https://shura.shu.ac.uk/8677/1/Andrews_a_best_of_breed_approach_for_designing2015.pdf)</sup> 林迪希（Lindig）的算法通过 NextNeighbors 过程递归生成概念，该过程产生给定概念的上邻或下邻。<sup>[10](http://outrata.inf.upol.cz/publications/BeDeOuVy_Ctcl.pdf)</sup>

已发表的复杂度如下，其中 \( |L| \) 为格的大小<sup>[6](http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-42/paper3_kuznetsov.pdf)</sup>：甘特算法 \( O(|G|^{2} \cdot |M| \cdot |L|) \)，多项式延迟 \( O(|G|^{2} \cdot |M|) \)；CbO \( O(|G|^{2} \cdot |M| \cdot |L|) \)，延迟 \( O(|G|^{3} \cdot |M|) \)；博尔达（Bordat）\( O(|G| \cdot |M|^{2} \cdot |L|) \)，延迟 \( O(|G| \cdot |M|^{2}) \)；林迪希 \( O(|G|^{2} \cdot |M| \cdot |L|) \)，延迟 \( O(|G|^{2} \cdot |M|) \)。

## 起源

1979 年 12 月 13 日，鲁道夫·维勒在其研究组的午间研讨会上作了题为“作为概念代数的格论”的报告，将外延—内涵关系解释为[伽罗瓦连接](https://www.edgepedia.org/zh/galois-connection)。<sup>[14](https://doi.org/10.1007/978-3-031-63422-2)</sup> 第一篇纲领性出版物是鲁道夫·维勒的《重构格论：基于概念层级的方法》，发表于伊万·里瓦尔（Ivan Rival）编辑的 1982 年《有序集》卷（第 445–470 页），其中包含基本定理的证明。<sup>[15](https://doi.org/10.1007/978-94-009-7798-3_15)</sup><sup> • </sup><sup>[16](https://link.springer.com/book/10.1007/978-3-642-59830-2)</sup><sup> • </sup><sup>[5](https://lat.inf.tu-dresden.de/~francesco/kr23-tutorial-proposal.pdf)</sup>

该方法建立在更早的格论之上，尤其是[加勒特·伯克霍夫](https://www.edgepedia.org/zh/garrett-birkhoff)（Garrett Birkhoff）的《格论》（美国数学学会，1940 年），其中关于格中闭包的结果正是基本定理的数学实质。<sup>[17](https://doi.org/10.1090/coll/025)</sup><sup> • </sup><sup>[14](https://doi.org/10.1007/978-3-031-63422-2)</sup><sup> • </sup><sup>[16](https://link.springer.com/book/10.1007/978-3-642-59830-2)</sup> 这部奠基性专著在施普林格（Springer）于 2024 年出版新版（第二版）时已被引用超过 10,000 次。<sup>[14](https://doi.org/10.1007/978-3-031-63422-2)</sup>

## 变体

**模糊形式概念分析**将二元关联关系替换为 \( L \)-关系 \( \widetilde{R}: X \times Y \to L \)，以处理不确定性与模糊性；其数学基础是模糊伽罗瓦连接理论。<sup>[18](https://doi.org/10.1002/malq.19990450408)</sup><sup> • </sup><sup>[1](https://bibliotekanauki.pl/articles/330445.pdf)</sup>

**三元概念分析**处理关联关系为三元的数据：三元背景 \( K := (G, M, B, Y) \)，其中 \( Y \subseteq G \times M \times B \)，\( (g, m, b) \in Y \) 表示对象 \( g \) 在条件 \( b \) 下具有属性 \( m \)。<sup>[19](https://www.arxiv.org/pdf/2408.02435)</sup> 莱曼（Lehmann）和维勒概述了该方法，维勒在《Order》期刊上证明了其基本定理。<sup>[20](https://link.springer.com/article/10.1007/s13042-016-0599-7)</sup><sup> • </sup><sup>[21](https://doi.org/10.1007/bf01108624)</sup> 三元概念是一个极大三元组（外延、内涵、模态）。<sup>[19](https://www.arxiv.org/pdf/2408.02435)</sup>

**模式结构**完全避免二值化：模式结构 \( K = (G, (D, \sqcap), \delta) \) 为每个对象赋予一个交半格中的描述，算子构成伽罗瓦连接，模式概念 \( (A, d) \) 满足 \( A^{\diamond} = d \) 且 \( d^{\diamond} = A \)。<sup>[12](https://www.hse.ru/data/2013/02/20/1306840761/Pattern%20Structures%20for%20Analyzing%20Complex%20Data.pdf)</sup>

**关系概念分析（RCA）**通过关系缩放将 FCA 扩展到多关系数据，从相关背景的格中创建诸如 \( \exists r.c \) 和 \( \forall \exists r.c \) 的关系属性，迭代直至不动点。<sup>[22](https://www.jair.org/index.php/jair/article/download/17882/27181/47055)</sup><sup> • </sup><sup>[4](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)</sup> **粗糙概念分析**综合了粗糙集理论与 FCA<sup>[23](https://doi.org/10.3233/fi-1996-272305)</sup>，**三支概念分析（3WCA）**将三支决策与 FCA 结合，作为其补充与扩展。<sup>[24](https://www.sciencedirect.com/science/article/abs/pii/S002002552401781X)</sup>

## 应用

在本体工程中，FCA 已被用于描述逻辑中的包含层级、自下而上的本体构建、丰富 OWL 本体以及从知识图谱中挖掘 TBox 公理。<sup>[5](https://lat.inf.tu-dresden.de/~francesco/kr23-tutorial-proposal.pdf)</sup> 在软件工程中，最早的应用之一分析了 Unix 系统软件中源代码片段与预处理器变量之间的关系。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0957417413002959)</sup> 在生物学中，最早的应用是 1989 年的概念缩放论文；在化学中，FCA 已被应用于结构—活性关系以预测化合物的毒性。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0957417413002959)</sup> 在信息检索中，FCA 支撑了 CREDO 元搜索引擎和概念电子邮件管理器。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0957417413002959)</sup>

## 局限与替代方案

主要的失效模式是格爆炸：概念数可能随背景规模呈指数增长，且其计数问题是 #P-完全的。<sup>[6](http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-42/paper3_kuznetsov.pdf)</sup><sup> • </sup><sup>[7](https://shura.shu.ac.uk/8677/1/Andrews_a_best_of_breed_approach_for_designing2015.pdf)</sup> 一篇综述援引巴宾和库兹涅佐夫（2013），却将计数问题报告为 P-完全和 P-难；这两种说法涉及不同的问题表述，因为确定格大小的计数函数本身是 #P-完全的。<sup>[1](https://bibliotekanauki.pl/articles/330445.pdf)</sup> 在实践中，格通常要小得多：在填充率接近 0.1 的 3,187 个随机背景中，格的大小随 \( |I| \) 呈二次增长而非线性增长。<sup>[8](https://www.st.cs.uni-saarland.de/publications/files/lindig-fca-2000.pdf)</sup> 密度同时驱动输出规模和算法选择：戈丹（Godin）算法在稠密背景上性能急剧下降<sup>[6](http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-42/paper3_kuznetsov.pdf)</sup>，而 In-Close2 恰在背景同时具有高密度（7% 以上）和随机性时被 FCbO 超越。<sup>[9](https://shura.shu.ac.uk/5068/1/inclose2paperICCS2011.pdf)</sup> 缓解措施包括使用概念权重阈值 \( \theta \)（\( 0 \leq \theta \leq 1 \)）来选择重要概念，以及最小支持度剪枝。<sup>[1](https://bibliotekanauki.pl/articles/330445.pdf)</sup><sup> • </sup><sup>[9](https://shura.shu.ac.uk/5068/1/inclose2paperICCS2011.pdf)</sup> 多值数据的缩放也涉及任意选择。<sup>[4](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)</sup>

与粗糙集理论相比，FCA 描述由属性合取可定义的概念，旨在描述；而粗糙集理论处理由析取可定义的概念，旨在预测；两者共享形式背景 \( (U, V, R) \) 作为共同框架。<sup>[26](https://www2.cs.uregina.ca/~yyao/PAPERS/Rough_concept.pdf)</sup> 与基于距离的聚类相比，FCA 按共享属性而非距离对对象聚类，其层级结构是带有重叠簇的格，比树更丰富。<sup>[10](http://outrata.inf.upol.cz/publications/BeDeOuVy_Ctcl.pdf)</sup>

## References

1. [A comprehensive survey on formal concept analysis, its research trends and applications (Singh et al.)](https://bibliotekanauki.pl/articles/330445.pdf)
2. [Introduction to Formal Concept Analysis (Belohlavek, textbook chapter, Palacký University Olomouc)](https://phoenix.inf.upol.cz/esf/ucebni/formal.pdf)
3. [Explaining Data with Formal Concept Analysis (TU Dresden introductory lecture notes)](https://iccl.inf.tu-dresden.de/w/images/4/49/IntroFCA-RW2019.pdf)
4. [Formal Concept Analysis: Themes and Variations for Knowledge Processing (IJCAI 2015 tutorial)](https://ijcai-15.org/downloads/tutorials/T23-FCA.pdf)
5. [How KR benefits from Formal Concept Analysis (KR 2023 tutorial proposal)](https://lat.inf.tu-dresden.de/~francesco/kr23-tutorial-proposal.pdf)
6. [Comparing Performance of Algorithms for Generating Concept Lattices (Kuznetsov & Obiedkov)](http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-42/paper3_kuznetsov.pdf)
7. [A 'Best-of-Breed' approach for designing a fast algorithm for computing fixpoints of Galois Connections (Andrews, Information Sciences 2015)](https://shura.shu.ac.uk/8677/1/Andrews_a_best_of_breed_approach_for_designing2015.pdf)
8. [Fast Concept Analysis (Lindig, 2000)](https://www.st.cs.uni-saarland.de/publications/files/lindig-fca-2000.pdf)
9. [In-Close2, a high performance formal concept miner](https://shura.shu.ac.uk/5068/1/inclose2paperICCS2011.pdf)
10. [Characterizing Trees in Concept Lattices (Belohlavek et al.)](http://outrata.inf.upol.cz/publications/BeDeOuVy_Ctcl.pdf)
11. [Bernhard Ganter, Rudolf Wille (1989). Conceptual Scaling. The IMA volumes in mathematics and its applications.](https://doi.org/10.1007/978-1-4684-6381-1_6)
12. [Pattern Structures for Analyzing Complex Data (Kuznetsov)](https://www.hse.ru/data/2013/02/20/1306840761/Pattern%20Structures%20for%20Analyzing%20Complex%20Data.pdf)
13. [FCA: Galois connections, closures, lattices (Valtchev DIMACS workshop slides)](https://archive.dimacs.rutgers.edu/archive/Workshops/WGOrder/Slides/valtchev2.pdf)
14. [Formal Concept Analysis: Mathematical Foundations (new edition, Springer)](https://doi.org/10.1007/978-3-031-63422-2)
15. [Rudolf Wille (1982). Restructuring Lattice Theory: An Approach Based on Hierarchies of Concepts. .](https://doi.org/10.1007/978-94-009-7798-3_15)
16. [Ganter & Wille, Formal Concept Analysis: Mathematical Foundations (Springer, 1999; historical chapter from full-text copy)](https://link.springer.com/book/10.1007/978-3-642-59830-2)
17. [Garrett Birkhoff (1940). Lattice Theory. Colloquium Publications - American Mathematical Society/Colloquium Publications.](https://doi.org/10.1090/coll/025)
18. [Radim Bêlohlávek (1999). Fuzzy Galois Connections. Mathematical logic quarterly.](https://doi.org/10.1002/malq.19990450408)
19. [Triadic Formal Concept Analysis for meta-modelling (arXiv:2408.02435, 2024)](https://www.arxiv.org/pdf/2408.02435)
20. [A research summary about triadic concept analysis (Wei, Qian, Wan, Qi, Int. J. Machine Learning and Cybernetics)](https://link.springer.com/article/10.1007/s13042-016-0599-7)
21. [Rudolf Wille (1995). The Basic Theorem of triadic concept analysis. Order.](https://doi.org/10.1007/bf01108624)
22. [The Fixed-Point Semantics of Relational Concept Analysis (Journal of Artificial Intelligence Research, Vol. 83, June 2025)](https://www.jair.org/index.php/jair/article/download/17882/27181/47055)
23. [Robert E. Kent (1996). ROUGH CONCEPT ANALYSIS: A SYNTHESIS OF ROUGH SETS AND FORMAL CONCEPT ANALYSIS. Fundamenta Informaticae.](https://doi.org/10.3233/fi-1996-272305)
24. [Three-way concept lattice construction and association rule acquisition (Information Sciences, 2024/2025)](https://www.sciencedirect.com/science/article/abs/pii/S002002552401781X)
25. [Formal concept analysis in knowledge processing: A survey on applications (Poelmans, Kuznetsov, Ignatov, Dedene, Expert Systems with Applications)](https://www.sciencedirect.com/science/article/abs/pii/S0957417413002959)
26. [A Comparative Study of Formal Concept Analysis and Rough Set Theory in Data Analysis (Yao et al.)](https://www2.cs.uregina.ca/~yyao/PAPERS/Rough_concept.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 数据库与数据系统 › 数据挖掘、数据仓库与大数据

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/formal-concept-analysis

English original: https://www.edgepedia.org/formal-concept-analysis
