59
An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue [email protected] http://liris.cnrs.fr/mehdi.kaytoue October 29 th 2013

An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue [email protected]

  • Upload
    hakhanh

  • View
    215

  • Download
    2

Embed Size (px)

Citation preview

Page 1: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

An Introduction to Formal Concept AnalysisMehdi Kaytoue

Mehdi Kaytoue

[email protected]://liris.cnrs.fr/mehdi.kaytoue

October 29th 2013

Page 2: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

The Knowledge Discovery Process

Identified domain(s)↓ Data acquisition (crawling, scraping, interviews)

Rough data↓ Selection and preparation↓ Transformation : cleaning and formatting

Prepared data↓ Data mining (Numerical & symbolic methods)

Extracted units↓ Interpretation and evaluation↓ Knowledge representation formalism

Knowledge units↓

Knowledge based systems

An interactive and iterative process guided by an analyst andknowledge of the domainMehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 2/59

Page 3: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

The Knowledge Discovery Process

Large volumes of data from which useful, significant andreusable units should be extractedInvolves several tasks of data and knowledge processing

Mining: ((closed) frequent ...) pattern mining (itemset,sequences, graphs,...)Modeling: hierarchy of concepts and relationsRepresenting: Concepts and relations as knowledge unitsReasoning and solving problems: classification and casebased reasonning

Many domains of applicationsScientific data (agronomy, astronomy, chemistry, cooking,medicine)Sensors data ((interactions) traces of human/systembehaviors)

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 3/59

Page 4: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

A basic example: What can say a binary table?

Assume a binary table Mij

obtained by an interviewA set of clients ci

A set of products pj

The relation states thatsome clients bought someproductsThe table may of course be“big” (millions of lines,thousands of columns)The table may containerrors

c/p p1 p2 p3 p4 p5c1 x xc2 x x x x xc3 x xc4 x xc5 x x x xc6 x x x xc7 x x x xc8 x x xc9 x xc10 x x x

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 4/59

Page 5: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Let’s make the table speak!

{p2, p3, p5} is an itemsetof frequency 4/10 = 0.4.{p3, p5} has 6/10 = 0.6 asfrequencyp3 ∧ p5 −→ p2 is anassociation rule with aconfidence of 4/6 = 0.66: ifa client buys p3 and p5,0.66 is the probability hebuys also p2.

conf (X → Y ) = sup(X∪Y )/sup(X )

c/p p1 p2 p3 p4 p5c1 x xc2 x x x x xc3 x xc4 x xc5 x x x xc6 x x x xc7 x x x xc8 x x xc9 x xc10 x x x

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 5/59

Page 6: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

FCA and the Concept lattice, a synthetic view

What can we say about{p2}? and {p2, p3}?

What about p2→ p3?

What about p3→ p5?

How to classify objectdescribed by {p2, p3}?

What if lines are productsand columns theirattributes?

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 6/59

Page 7: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

FCA and the Concept lattice, a synthetic view

Formal concepts can berepresented in a KRformalism (eg.. DLs)

Concept1 ≡ ∃hasAwR.p3

Concept2 ≡ ∃hasAwR.p2

Concept2 v Concept1...

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 7/59

Page 8: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

FCA and the Concept lattice, a synthetic view

Useful for many tasks of DM, DB, KR; Gives a formalism

(frequent (closed)) itemsets

(partial) implications or association rules

Possible knowledge units to be reused for problem solving

What happens when

When there are too much patterns ?Closure, iceberg, stability, ...

When the table is not binary?Scaling, pattern structures

When the table is n-dimensional?Triadic and polyadic concept analysis

When relations arise between objects themselves?Relational concept analysis

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 8/59

Page 9: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Outline

1 Elements of order theory

2 Concept lattice

3 Algorithms

4 Conceptual Scaling

5 Pattern structures

6 Triadic Concepts

7 References

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 9/59

Page 10: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Binary relations

Definition (Binary relation)

A binary relation R between two arbitrary sets M and N isdefined on the Cartesian product M × N and consists ofpairs (m, n) with m ∈ M and n ∈ N. When (m, n) ∈ R, weusually write mRn.

Definition (Order relation)

A binary relation R on a set M is called an order relation (orshortly order) if it satisfies the following conditions for allelements x , y , z ∈ M:

1 (reflexivity) xRx

2 (antisymmetry) xRy and x 6= y ⇒ not yRx

3 (transitivity) xRy and yRz ⇒ xRz

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 10/59

Page 11: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Total and partial orders

Definition (Ordered set)

Given an order relation ≤ on a set M, an ordered set is a pair(M,≤). When ≤ is a partial order, (M,≤) is called partiallyordered set, or poset for short.

Example: Given a set E , (2E ,⊆)

Definition (Total order)

For any a, b ∈ M, either a ≤ b or b ≤ a.

Example: real numbers

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 11/59

Page 12: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Infimum, Supremum

Definition (Infimum, supremum)

Let (M,≤) be an ordered set and A a subset of M. A lowerbound of A is an element s of M with s ≤ a for all a ∈ A. Anupper bound of A is defined dually. If it exists a largestelement in the set of all lower bounds of A, it is called theinfimum of A and is denoted by “inf A” or

∧A; dually, a least

upper bound is called supremum and denoted by “sup A” or∨A. Infimum and supremum are frequently called

respectively meet and join, also denoted respectively by thesymbols u and t.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 12/59

Page 13: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Lattice

Definition (Lattice, complete lattice)

A poset V = (V ,≤) is a lattice, if for any two elementsx , y ∈ V the supremum x ∨ y and the infimum x ∧ y alwaysexist. V is called a complete lattice if for any subset X ⊆ V ,the supremum

∨X and the infimum

∧X exist. Every

complete lattice V has a largest element∨

called the unitelement denoted by 1V . Dually, the smallest element 0V iscalled the zero element. We will rather use the symbolbottom ⊥ for 0V and top > for the unit element in thefollowing.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 13/59

Page 14: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Remark

We can reconstruct the order relation from the latticeoperations infimum and supremum by

x ≤ y ⇐⇒ x = x ∧ y ⇐⇒ x ∨ y = y

{a} ≤ {a, b} ⇐⇒ {a} = {a} ∩ {a, b}

{a} ≤ {a, b} ⇐⇒ {a} ∪ {a, b} = {a, b}

This remark is important for understanding patternstructures

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 14/59

Page 15: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Hasse diagram of the powerset lattice

x ≤ y ⇐⇒ x = x ∧ y ⇐⇒ x ∨ y = y

{a} ≤ {a, b} ⇐⇒ {a} = {a} ∩ {a, b}

{a} ≤ {a, b} ⇐⇒ {a} ∪ {a, b} = {a, b}

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 15/59

Page 16: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Hasse diagram of the partition lattice

{{a, b}, {c}, {d}} ≤ {{a, b, c}, {d}}

{{a, b}, {c}, {d}} ∨ {{a, c}, {b}, {d}} = {{a, b, c}, {d}}

{{a, b, c}, {d}} ∧ {{a, c, d}, {b}} = {{a, b}, {c}, {d}}

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 16/59

Page 17: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Semi-lattices

Definition (Join-semi-lattice and meet-semi-lattice)

A poset V = (V ,≤) is a join-semi-lattice if for any twoelements x , y ∈ V the supremum x ∨ y always exists. Dually,it is a meet-semi-lattice if the infimum x ∧ y always exists. Alattice is a poset that is both a meet- and join-semi-latticewith respect to the same partial order.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 17/59

Page 18: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Hasse diagram of a semi-lattice

4 5 6

[4,5] [5,6]

[4,6]

How can we formulate here ≤ and ∧?

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 18/59

Page 19: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Closure operator

Let S be a set and ψ a mapping from the power set1 of S intothe power set of S, i.e. ψ : P(S) −→ P(S).

Definition (Closure operator)

ψ is called a closure operator on S if, for any A,B ⊆ S, it is:

1 extensive: A ⊆ ψ(A),

2 monotone: A ⊆ B implies that ψ(A) ⊆ ψ(B), and

3 idempotent: ψ(ψ(A)) = ψ(A).

A subset A ⊆ S is ψ-closed if A = ψ(A). The set of allψ-closed {A ⊆ S | A = ψ(A)} is called a closure system.

1The power set of any set S, written P(S), or 2S , is the set of allsubsets of S, including the empty set and S itself, hence composed of 2|S|

elements.Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 19/59

Page 20: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Outline

1 Elements of order theory

2 Concept lattice

3 Algorithms

4 Conceptual Scaling

5 Pattern structures

6 Triadic Concepts

7 References

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 20/59

Page 21: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Formal Concept Analysis

Emerged in the 1980’s from attempts to restructure latticetheory in order to promote better communication betweenlattice theorists and potential users of lattice theory

A research field leading to a seminal book and FCAdedicated conferences (ICFCA, CLA, ICCS)

A simple, powerful and well formalized framework useful forseveral applications: information and knowledge processingincluding visualization, data analysis (mining) andknowledge management

See also http://www.upriss.org.uk/fca/fca.html

B. Ganter and R. WilleFormal Concept Analysis.In Springer, Mathematical foundations., 1999.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 21/59

Page 22: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Formal Context

A formal context K = (G,M, I) consists of two sets G and Mand a binary relation I between G and M. Elements of G arecalled objects while elements of M are called attributes of thecontext. The fact (g,m) ∈ I is interpreted as “the object ghas attribute m”.

m1 m2 m3 m4 m5 m6g1 × × ×g2 × × × ×g3 × × × × ×g4 × × ×g5 × ×g6 × × ×g7 × × × ×

G = {g1, ..., g7} “ostrich”, “canary”, “duck”, “shark”, “salmon”, “frog”, and “crocodile”

M = {m1, .., m6} “borned from an egg”, “has feather”, “has tooth”, “fly”, “swim”, “lives in air”

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 22/59

Page 23: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Derivation operators

For a set of objects A ⊆ G we define the set of attributes thatall objects in A have in common as follows:

A′ = {m ∈ M | gIm ∀g ∈ A}

Dually, for a set of attributes B ⊆ M, we define the set ofobjects that have all attributes from B as follows:

B′ = {g ∈ G | gIm ∀m ∈ B}

Some derivation on our example

We have {g1, g2}′ = {m1,m2,m6} and{m1,m2,m6}′ = {g1, g2, g3}

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 23/59

Page 24: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Formal Concepts

A formal concept of a context (G,M, I) is a pair

(A,B) with A ⊆ G,B ⊆ M,A′ = B and B′ = A

A is called the extent ; B is called its intent

B(G,M, I) is the poset of all formal concepts

(A1,B1) ≤ (A2,B2)⇔ A1 ⊆ A2 (⇔ B2 ⊆ B1)

Concepts in our example

({g1, g2, g3}, {m1,m2,m6}) as a maximal rectangle ofcrosses with possible row and column permutations

({g1, g2, g3}, {m1,m2,m6}) ≤ ({g1, g2, g3, g6, g7}, {m1,m6})

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 24/59

Page 25: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Galois connection

It can be shown that operator (.)′′, applied either to a set ofobjects or a set of attributes, is a closure operator. Hence wehave two closure systems on G and on M. It follows that thepair {(.)′, (.)′} is a Galois connection between the power setof objects and the power set of attributes.These mappings put in 1-1-correspondence closed sets ofobjects and closed sets of attributes, i.e. concept extents andconcept intents. In our example, {g1, g2} is not a closed setof objects, since {g1, g2}′′ ={g1, g2, g3}. Accordingly,{g1, g2, g3} is a closed set of objects hence a concept extent.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 25/59

Page 26: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Galois connection

Let P and Q be ordered sets. A pair of maps φ : P → Q andψ : Q → P is called a Galois connection if:

p1 ≤ p2 ⇒ φ(p1) ≥ φ(p2)

q1 ≤ q2 ⇒ ψ(q1) ≥ ψ(q2)

p ≤ ψ ◦ φ(p) and q ≤ φ ◦ ψ(q)

We here have a Galois connection between (P(G),⊆) and(P(M),⊆) with ≤≡⊆.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 26/59

Page 27: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Galois connection illustration

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 27/59

Page 28: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Theorem (The Basic Theorem on Concept Lattices)

The concept lattice B(G,M, I) is a complete lattice in whichinfimum and supremum are given by:

∧t∈T

(At ,Bt ) =

(⋂t∈T

At ,

(⋃t∈T

Bt

)′′)

∨t∈T

(At ,Bt ) =

((⋃t∈T

At

)′′,⋂t∈T

Bt

)

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 28/59

Page 29: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Example of formal context and its concept lattice

m1 m2 m3 m4 m5 m6g1 × × ×g2 × × × ×g3 × × × × ×g4 × × ×g5 × ×g6 × × ×g7 × × × ×

Each node is a concept,each a line an order relationbetween two concepts.

Reduced labeling: the extentof a concept is composed ofall objects lying in the extentsof its sub-concepts; the intentof a concept is composed ofall attributes in the intents ofits super-concepts.The top (resp. bottom)concept is the highest (resp.lowest) w.r.t. ≤.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 29/59

Page 30: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Implications

An implication of a formal context (G,M, I) is denoted by

X → Y X ,Y ⊆ M

All objects from G having the attributes in X also have alsothe attributes in Y , i.e. X ′ ⊆ Y ′.Implications obey the Amstrong rules (reflexivity,augmentation, transitivity). A minimal subset of implications(in sense of its cardinality) from which all implications can bededuced with Amstrong rules is called theDuquenne-Guigues basis.

Y ⊆ XX → Y

X → YX ∪ Z → Y

X → Y ,Y → ZX → Z

reflexivity augmentation transitivity

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 30/59

Page 31: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Outline

1 Elements of order theory

2 Concept lattice

3 Algorithms

4 Conceptual Scaling

5 Pattern structures

6 Triadic Concepts

7 References

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 31/59

Page 32: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

A basic algorithm for computing formal concepts

Remember that

Each concept of a formal context (G,M, I) has the form(A′′,A′) for some subset A ⊆ G and the form (B′,B′′) forsome subset B ⊆ M.

One does naively apply the closure operator (.)′′ on allpossible subsets of G (dually all subsets of M), and removeall redundant concepts (How to generate these subsets?)

Inefficient

Several algorithms exist. Their performance is usually linked

with the density d =|I|

|G| × |M|of a context (G,M, I). Time

complexity is generally O(|G|2|M||L|) (L being the set ofconcepts).

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 32/59

Page 33: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Close By One algorithm

Bottom-up concepts generation (from min. to max. extents)Considers objects one by one starting from the minimal onew.r.t. a linear order < on G (e.g. lexical)Given a concept (A,B), the algorithm adds the next objectg w.r.t < in A such as g 6∈ A.Then it applies the closure operator (·)′′ for generating thenext concept (C,D): intent B is intersected with thedescription of g, i.e. D = B ∩ g′, and C = D′.Induces a tree structure on conceptsTo avoid redundancy, it uses a canonicity test : Consider aconcept (C,D) obtained from a concept (A,B) by addingobject g in A and applying closure. C is said to becanonically generated iff {h|h ∈ C\A and h < g} = ∅, i.e.no object before g has been added in A to obtain C.Backtrack can be ensured.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 33/59

Page 34: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Closed By One Algorithm

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 34/59

Page 35: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Example

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 35/59

Page 36: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Outline

1 Elements of order theory

2 Concept lattice

3 Algorithms

4 Conceptual Scaling

5 Pattern structures

6 Triadic Concepts

7 References

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 36/59

Page 37: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Many valued contexts

Definition (Many-valued context)

A many-valued context (G,M,W , I) consists of sets G, Mand W and a ternary relation I between those three sets, i.e.I ⊆ G ×M ×W , for which it holds that

(g,m,w) ∈ I and (g,m, v) ∈ I always imply w = v

The fact (g,m,w) ∈ I means “the attribute m takes value wfor object g”, simply written as m(g) = w .

m1 m2 m3

g1 5 7 6g2 6 8 4g3 4 8 5g4 4 9 8g5 5 8 5

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 37/59

Page 38: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Conceptual scale

Definition

A (conceptual) scale for the attribute m of a many-valuedcontext is a (one-valued) context Sm = (Gm,Mm, Im) withm(G) = {m(g),∀g ∈ G} ⊆ Gm. The objects of a scale arecalled scale values, the attributes are called scale attributes.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 38/59

Page 39: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Basic scales

Nominal scale is defined by the context (Wm,Wm,=). Weobtain the following scales, respectively for attribute m1, m2

and m3:

= 4 5 64 ×5 ×6 ×

= 7 8 97 ×8 ×9 ×

= 4 5 6 84 ×5 ×6 ×8 ×

Wm ⊆ W , ∀m ∈ M

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 39/59

Page 40: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Resulting context

m1

=4

m1

=5

m1

=6

m2

=7

m2

=8

m2

=9

m3

=4

m3

=5

m3

=6

m3

=8

g1 × × ×g2 × × ×g3 × × ×g4 × × ×g5 × × ×

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 40/59

Page 41: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Basic scales

Ordinal scale is given by the context (Wm,Wm,≤) where≤ denotes classical real number order. We obtain for eachattribute the following scales:

≤ 4 5 64 × × ×5 × ×6 ×

≤ 7 8 97 × × ×8 × ×9 ×

≤ 4 5 6 84 × × × ×5 × × ×6 × ×8 ×

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 41/59

Page 42: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Basic scales

Interordinal scale is given by (Wm,Wm ≤) | (Wm,Wm ≥)where | denotes the apposition of two contexts2. We obtainfor attribute m1 the following scale3:

≤ 4 ≤ 5 ≤ 6 ≥ 4 ≥ 5 ≥ 64 × × × ×5 × × × ×6 × × × ×

2The apposition of two contexts with identical sets of objects, denotedby |, returns the context with the same set of objects and the set ofattributes being the disjoint union of attribute sets of the original contexts.

3The double-line column separator intuitively corresponds to contextapposition.Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 42/59

Page 43: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Is scaling a valid way to consider non binarydata?

Consider interordinal scaling.

What is the concept lattice of its context?

What does it represent?

What are the problem?

Can we do better?

Pattern structures formalize a nice alternative.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 43/59

Page 44: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Concept lattice with interordinal scaling

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 44/59

Page 45: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Outline

1 Elements of order theory

2 Concept lattice

3 Algorithms

4 Conceptual Scaling

5 Pattern structures

6 Triadic Concepts

7 References

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 45/59

Page 46: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

How to handle complex descriptions

An intersection as a similarity operator

∩ behaves as similarity operator

{m1,m2} ∩ {m1,m3} = {m1}

∩ induces an ordering relation ⊆N ∩ O = N ⇐⇒ N ⊆ O

{m1} ∩ {m1,m2} = {m1} ⇐⇒ {m1} ⊆ {m1,m2}

∩ has the properties of a meet u in a semi lattice,a commutative, associative and idempotent operation

c u d = c ⇐⇒ c v dA. TverskyFeatures of similarity.In Psychological Review, 84 (4), 1977.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 46/59

Page 47: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Going a little bit back

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 47/59

Page 48: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Going a little bit back

4 5 6

[4,5] [5,6]

[4,6]

We can reconstruct the order relation from the latticeoperations infimum and supremum by

x ≤ y ⇐⇒ x = x ∧ y ⇐⇒ x ∨ y = y

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 48/59

Page 49: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Pattern structure

Given by (G, (D,u), δ)

G a set of objects

(D,u) a semi-lattice of descriptions or patterns

δ a mapping such as δ(g) ∈ D describes object g

A Galois connection

A� =l

g∈A

δ(g) for A ⊆ G

d� = {g ∈ G|d v δ(g)} for d ∈ (D,u)

B. Ganter and S. O. KuznetsovPattern Structures and their Projections. In International Conference on Conceptual Structures, 2001.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 49/59

Page 50: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Ordering descriptions in numerical data

(D,u) as a meet-semi-lattice with u as a“convexification”

m1 m2 m3

g1 5 7 6g2 6 8 4g3 4 8 5g4 4 9 8g5 5 8 5

4 5 6

[4,5] [5,6]

[4,6]

[a1, b1] u [a2, b2] = [min(a1, a2),max(b1, b2)][4, 4] u [5, 5] = [4, 5]

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 50/59

Page 51: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Numerical data are pattern structures

Interval pattern structures

m1 m2 m3

g1 5 7 6g2 6 8 4g3 4 8 5g4 4 9 8g5 5 8 5

{g1, g2}� =l

g∈{g1,g2}δ(g)

= 〈5, 7, 6〉 u 〈6, 8, 4〉= 〈[5, 6], [7, 8], [4, 6]〉

〈[5, 6], [7, 8], [4, 6]〉� = {g ∈ G|〈[5, 6], [7, 8], [4, 6]〉 v δ(g)}= {g1, g2, g5}

({g1, g2, g5}, 〈[5, 6], [7, 8], [4, 6]〉) is a (pattern) concept

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 51/59

Page 52: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

n-dimensional intervals

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 52/59

Page 53: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Interval pattern concept lattice

Existing algorithms

Lowest concepts: few objects, small intervals

Highest concepts: many objects, large intervals

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 53/59

Page 54: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Outline

1 Elements of order theory

2 Concept lattice

3 Algorithms

4 Conceptual Scaling

5 Pattern structures

6 Triadic Concepts

7 References

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 54/59

Page 55: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Triadic Concept Analysis

“Extension” of FCA to ternary relation

An object has an attribute for a given condition

Triadic context (G,M,B,Y )

Several derivation operators allowing to characterize “triadicconcepts” as maximal cubes of ×

b1 b2 b3

m1 m2 m3

g1 ×g2 × ×g3 × ×g4 × ×g5 × ×

m1 m2 m3

g1 × × ×g2 × ×g3 × × ×g4 × ×g5 × ×

m1 m2 m3

g1 × ×g2 ×g3 × × ×g4 × ×g5 × × ×

({g3, g4, g5}, {m2,m3}, {b1, b2, b3}) is a triadic conceptF. Lehmann and R. Wille.A Triadic Approach to Formal Concept Analysis.In International Conference on Conceptual Structures (ICCS), 1995.

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 55/59

Page 56: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Derivation operators

Definition

Triconcept forming operators - outer closure

Φ : X → X (i) : {(aj , ak ) ∈ Kj × Kk | (ai , aj , ak ) ∈ Y forall ai ∈X}

Φ′

: Z → Z (i) : {ai ∈ Ki | (ai , aj , ak ) ∈ Y for all (aj , ak ) ∈ Z}

Definition

Triconcept forming operators - inner (dyadic) closure

Ψ : Xi → X (i,j,Ak )i : {aj ∈ Kj | (ai , aj , ak ) ∈ Y for all (ai , ak ) ∈

Xi × Ak}Ψ′

: Xj → X (i,j,Ak )j : {ai ∈ Ki | (ai , aj , ak ) ∈ Y for all (aj , ak ) ∈

Xj × Ak}Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 56/59

Page 57: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Without going into details...

A Naive approachStart with a set of conditions and a context (G,M, J) whichinvolves all these conditionsCompute all dyadic concepts (inner closure)For any dyadic concept, compute the set of conditions thatcontains it (outer closure).Do it for any subset of conditionsRemove redundant tri-concepts.

What happens if we have n dimensions?Data-peeler : An algorithm based on a binary treeenumeration: For each node, choose a dimension and anelement, generates two n-sets one with the element, theother without. Constraints are used to prune the searchspace and detect maximal n-sets.See also Trias algorithmMehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 57/59

Page 58: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

References

Marc Barbut and Bernard Monjardet, Ordre et classification, Hachette, 1970.

Nathalie Caspard, Bruno Leclerc, Bernard Monjardet, Ensembles ordonnés finis concepts, résultats etusages (Mathématiques et Applications), 2007

Bernhard Ganter and Rudolph Wille, Formal Concept Analysis, Springer, 1999

Oded Maimon, Lior Rokach (Eds.), The Data Mining and Knowledge Discovery Handbook, Springer, 2005.

Claudio Carpineto and Giovanni Romano, Concept Data Analysis: Theory and Applications, John Wiley &Sons, 2004.

Sergei O. Kuznetsov, Galois Connections in Data Analysis: Contributions from the Soviet Era and ModernRussian Research, Formal Concept Analysis 2005: 196-225

Bernhard Ganter, Sergei O. Kuznetsov: Pattern Structures and Their Projections. ICCS 2001: 129-142

Amedeo Napoli, An Introduction to Symbol Methods for Knowledge Discovery. Handbook of Categorizationin Cognitive Science, 1st Edition, Cohen & Lefebvre (Eds.), 2005.

Sergei O. Kuznetsov, Sergei A. Obiedkov: Comparing performance of algorithms for generating conceptlattices. J. Exp. Theor. Artif. Intell. 14(2-3): 189-216 (2002)

Franz Baader, Bernhard Ganter, Baris Sertkaya, Ulrike Sattler, Completing Description Logic KnowledgeBases Using Formal Concept Analysis. IJCAI 2007: 230-235

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 58/59

Page 59: An Introduction to Formal Concept Analysis - Mehdi …liris.cnrs.fr/mehdi.kaytoue/teaching/fca/fca-29-10...An Introduction to Formal Concept Analysis Mehdi Kaytoue Mehdi Kaytoue mehdi.kaytoue@insa-lyon.fr

Elements of ordertheory

Concept lattice

Algorithms

ConceptualScaling

Patternstructures

Triadic Concepts

References

Special thanks to Amedeo Napoli, DR CNRS - INRIANancy Grand Est -LORIA

But now it is time for some exercices...

Mehdi Kaytoue An Introduction to Formal Concept Analysis October 29th 2013 59/59