Composer classification using grammatical inference Jeroen Geertzen - - PowerPoint PPT Presentation

composer classification using grammatical inference
SMART_READER_LITE
LIVE PREVIEW

Composer classification using grammatical inference Jeroen Geertzen - - PowerPoint PPT Presentation

Composer classification using grammatical inference Jeroen Geertzen Menno van Zaanen ILK Dept. of Communication & Information Sciences Tilburg University Tilburg, The Netherlands { j.geertzen, mvzaanen } @uvt.nl Jeroen Geertzen Menno


slide-1
SLIDE 1

Composer classification using grammatical inference

Jeroen Geertzen Menno van Zaanen

ILK

  • Dept. of Communication & Information Sciences

Tilburg University Tilburg, The Netherlands

{j.geertzen, mvzaanen}@uvt.nl

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-2
SLIDE 2

Overview Introduction Grammatical inference Regular expression-based classifier Results Conclusion and future work

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-3
SLIDE 3

Introduction Task:

Composer classification

Given a musical piece Decide who composed it (Given a predetermined set of composers)

Similar to genre classification

Approach:

Find significant patterns in music Grammatical inference Use patterns to identify composer Regular expression-based classifier

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-4
SLIDE 4

Approach

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-5
SLIDE 5

Grammatical inference Automatically learn structure from plain sequences Alignment-Based Learning (ABL)

Developed to work on natural language Based on substitutability test

Alignment-Based Learning

1 Alignment learning 2 Selection learning

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-6
SLIDE 6

Alignment learning Test for constituents (Harris, 1951): Elements of the same type are substitutable What is (NP a family fare)NP Replace noun phrase with another noun phrase

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-7
SLIDE 7

Alignment learning Test for constituents (Harris, 1951): Elements of the same type are substitutable What is (NP a family fare)NP Replace noun phrase with another noun phrase What is (NP the payload of an African Swallow)NP

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-8
SLIDE 8

Alignment learning Test for constituents (Harris, 1951): Elements of the same type are substitutable What is (NP a family fare)NP Replace noun phrase with another noun phrase What is (NP the payload of an African Swallow)NP Reverse: What is a family fare What is the payload of an African Swallow

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-9
SLIDE 9

Alignment learning Test for constituents (Harris, 1951): Elements of the same type are substitutable What is (NP a family fare)NP Replace noun phrase with another noun phrase What is (NP the payload of an African Swallow)NP Reverse: What is (X a family fare)X What is (X the payload of an African Swallow)X Align pairs of sentences Unequal parts of sentences are stored as hypotheses Align all sentences against all other sentences

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-10
SLIDE 10

Selection learning Alignment learning can generate overlapping brackets from (Y1 Tilburg (X2 to)Y1 Helsinki)X2 from (X1 Helsinki (Y2 to)X1 Tilburg)Y2 Underlying grammar is considered context-free Structure describes parse according to underlying grammar “Wrong” brackets have to be removed

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-11
SLIDE 11

From structure to context-free grammars to regular expressions

1 Alignment-Based Learning finds structure

Example (Z a (Y b (X c)X d)Y )Z

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-12
SLIDE 12

From structure to context-free grammars to regular expressions

1 Alignment-Based Learning finds structure 2 Structure can be converted into context-free grammar rules

Example Z → a Y (Z a (Y b (X c)X d)Y )Z Y → b X d X → c

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-13
SLIDE 13

From structure to context-free grammars to regular expressions

1 Alignment-Based Learning finds structure 2 Structure can be converted into context-free grammar rules 3 CFG rules can be converted into regular expressions

Example Z → a Y a .* (Z a (Y b (X c)X d)Y )Z Y → b X d b .* d X → c c

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-14
SLIDE 14

Regular expression-based classifier Input Set of regular expression, class pairs Piece of music Output Class (composer) Internals

1 Take piece of music to be classified 2 Apply all regular expressions 3 Return class that has most regular expressions matching

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-15
SLIDE 15

Encoding pitch pitch absolute Example

G 6

8

ˇ

7

( ˇ

4

( ˇ

12

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-16
SLIDE 16

Encoding pitch pitch absolute pitch absolute modulo octave Example

G 6

8

ˇ

7

( ˇ

4

( ˇ ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-17
SLIDE 17

Encoding pitch pitch absolute pitch absolute modulo octave pitch relative (to previous note) Example

G 6

8 ˇ

7

( ˇ

  • 3

( ˇ

8

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-18
SLIDE 18

Encoding pitch pitch absolute pitch absolute modulo octave pitch relative (to previous note) pitch contour (to previous note) Example

G 6

8 ˇ

1

( ˇ

  • 1

( ˇ

1

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-19
SLIDE 19

Encoding duration duration absolute Example

G 6

8

1 4

ˇ

1 8

( ˇ

1 8

( ˇ

1 4

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-20
SLIDE 20

Encoding duration duration absolute duration relative (prev note) subtraction Example

G 6

8 ˇ

  • 0.125

( ˇ ( ˇ

0.125

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-21
SLIDE 21

Encoding duration duration absolute duration relative (prev note) division Example

G 6

8 ˇ

0.5

( ˇ

1

( ˇ

2

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-22
SLIDE 22

Encoding duration duration absolute duration relative (prev note) duration absolute relative to meter Example

G 6

8

2

ˇ

1

( ˇ

1

( ˇ

2

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-23
SLIDE 23

Encoding duration duration absolute duration relative (prev note) duration absolute relative to meter duration relative (prev note) relative (meter) subtraction Example

G 6

8 ˇ

  • 1

( ˇ ( ˇ

1

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-24
SLIDE 24

Encoding duration duration absolute duration relative (prev note) duration absolute relative to meter duration relative (prev note) relative (meter) division Example

G 6

8 ˇ

0.5

( ˇ

1

( ˇ

2

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-25
SLIDE 25

Encoding duration duration absolute duration relative (prev note) duration absolute relative to meter duration relative (prev note) relative (meter) duration contour (to previous note) Example

G 6

8 ˇ

  • 1

( ˇ ( ˇ

1

ˇ

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-26
SLIDE 26

Data set Humdrum **kern format (symbolic) Use first voice only Baroque Preludes: Bach (42), Chopin (24) Classic Quartet: Beethoven (70), Haydn (213), Mozart (82) Settings 2nd order Markov model (MM-2) as baseline Pitch relative, duration relative encodings Leave-one-out cross-validation (small amount of training data) Error rate: # incorrect pieces # pieces

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-27
SLIDE 27

Results (error rates) Dataset Dimension ABL MM-2 baroque melody 19.8 ±0.3 29.1 ±0.4 rhythm 22.5 ±0.6 32.4 ±0.7 joint 19.9 ±0.2 29.0 ±3.6 classic melody 23.6 ±0.7 34.8 ±2.1 rhythm 28.8 ±1.2 37.2 ±5.9 joint 21.3 ±1.3 35.1 ±2.8

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-28
SLIDE 28

Conclusion Grammatical inference approach to composer classification Finds global patterns (of arbitrary length) Patterns are used in regular expression classifier Outperforms Markov models

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-29
SLIDE 29

Future work Try different (combinations of) encodings of music Expand data collection (more pieces; more composers) Use regular expressions as features in standard ML classifier Try other ways of converting grammar into regular expressions Use probabilities from learned probabilistic grammar

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-30
SLIDE 30

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference

slide-31
SLIDE 31

Previous work

  • E. Backer and P. van Kranenburg, “On musical stylometry—a

pattern recognition approach”, in Pattern Recognition Letters, 26 (2005), 299–309.

  • E. Pollastri, G. Simoncelli, “Classification of Melodies by

Composer with Hidden Markov Models”, wedelmusic, p. 0088, First International Conference on WEB Delivering of Music (WEDELMUSIC’01), 2001.

Jeroen Geertzen Menno van Zaanen Composer classification using grammatical inference