a new strategy for applying grammatical inference to image ... · grammars grammatical inference...

13
Prof. Hemerson Pistori Dom Bosco Catholic University Campo Grande - Brazil A New Strategy for Applying Grammatical A New Strategy for Applying Grammatical Inference to Image Classification Problems Inference to Image Classification Problems H. Pistori, A. Calway and P. Flach H. Pistori, A. Calway and P. Flach

Upload: others

Post on 25-Sep-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Prof. Hemerson PistoriDom Bosco Catholic University

Campo Grande - Brazil

A New Strategy for Applying Grammatical A New Strategy for Applying Grammatical Inference to Image Classification ProblemsInference to Image Classification ProblemsH. Pistori, A. Calway and P. FlachH. Pistori, A. Calway and P. Flach

Page 2: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Outline

Background

Related Work Review

Proposed Approach

Experiments

Results

Conclusion and Future Works

Page 3: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Pattern Recognition

Honey Sample containing Pollen Grains

Pollen Grains from the Serjania SpeciesTraining instances from class B

Pollen Grains from the Fabaceae SpeciesTraining instances from class A

Supervised Machine Learning

Page 4: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Syntactic Pattern Recognition

E

E + T

T * F

S

A a

E

E + T

T * F

a A

Alphabetic Symbols and StringsAutomata, Parsers,

Derivation Trees (Syntax Analysis)

Grammars

Page 5: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Syntactic Pattern Recognition

E

E + T

T * F

S

A a

E

E + T

T * F

a A

Alphabetic Symbols and Strings

Syntax Analysis (Automata, Parsers, Derivation Trees, etc)

Grammars

GrammaticalInference

Page 6: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Syntactic Pattern Recognition

E

E + T

T * F

S

A a

E

E + T

T * F

a A

Grammars

GrammaticalInference

ImagesSyntax Analysis

(Automata, Parsers, Derivation Trees, etc)

Where is our Alphabet ? Central trade-off question: Should we somehow convert images to strings or replace the

string for something else and create other types of grammars and syntax analysers?

Page 7: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Syntactic Pattern Recognition

N = c

S = g

E = aW = e

NW = d NE = b

SE= hSW = f

A string for this Serjania pollen sample: c c c b c b a a g g g a g g e e f e e

Page 8: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Syntactic Pattern Recognition

E

E + T

T * F

S

A a

E

T

T * F

a A

GrammaticalInference

caaccbdccaacbeefaaacccbb...

aafffbggcaafffddddfbbbaaccc...

caaccbd

aafffbgg

Page 9: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Our Proposal

Keypoint detection Bag of Words Symbols Mapping

b

a

a c

b

c

ca a

a

Scan: aabcaacbacOriginal

Alternative Scan Order:

Radial CoarseReading

a

a c

b

c

a a

bbc a

acc

SURF PYRAMID

Alternative Scan Order:

Experiments: Surf Keypoint Detector, K-Testable GI, Ignore Token Error RecoveryScan order: Random, Reading, Radial, Pyramid, Coarse Reading (5p, 10p, 20p)

Page 10: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Experiments and Results – Squares and Triangles Relations

F-Measures – 6 Classes

Page 11: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Experiments and Results – 15 Scenes

F-Measures – Dic. Size = 50

Page 12: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Conclusions

New approach to generate strings from images

Encouraging first results

Preserves spatial and structured information (unlike BOW)

Page 13: A New Strategy for Applying Grammatical Inference to Image ... · Grammars Grammatical Inference Images Syntax Analysis (Automata, Parsers, Derivation Trees, etc) Where is our Alphabet

Future Works

Other grammar inference approaches and error recovery strategies during parsing

Negative samples

Stochastic grammars

Code optimizations

Experiments using other datasets