dynamic time warping for automatic classification of killer whale vocalizations judy brown patrick...

20
Dynamic time warping for Dynamic time warping for automatic automatic classification of classification of killer whale killer whale vocalizations vocalizations Judy Brown Judy Brown Patrick Miller Patrick Miller Physics Dept, Wellesley Physics Dept, Wellesley College College Media-Lab MIT Media-Lab MIT Sea Mammal Research Unit, Sea Mammal Research Unit, University of St. Andrews University of St. Andrews

Upload: corey-boyd

Post on 19-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Dynamic time warping for Dynamic time warping for automatic automatic

classification of classification of killer whale vocalizations killer whale vocalizations

Judy Brown Judy Brown

Patrick MillerPatrick Miller

Physics Dept, Wellesley Physics Dept, Wellesley CollegeCollege

Media-Lab MITMedia-Lab MIT

Sea Mammal Research Unit, Sea Mammal Research Unit,

University of St. AndrewsUniversity of St. Andrews

Page 2: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

• Data: Pitch contours from two sets of vocalizations previously classified perceptually– Marineland group – 9 call types– Northern resident whales - 7 call types

• Digression: two-source calls

• Dynamic time warping for automatic classification of pitch contours

• Results

the Planthe Plan : :

Page 3: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Pitch contours of Marineland set

Page 4: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Pitch contours of Northern resident set

Page 5: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Example with low freq and high freq sources (slowed by 6)

Page 6: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Digression: Mechanism for Two Sources

Central portion of Call

2.1ms -> 475 Hz

.16 ms -> 6.2 kHz

.113 s

(slowed by 6)

Page 7: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

SIMULATIONLOW FREQUENCY COMPONENT 450 - 900 HzHIGH FREQUENCY COMPONENT 5800 - 6500 Hz

(slowed by 6)

Page 8: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

SIMULATIONLOW FREQUENCY COMPONENT 450 - 900 Hz

(slowed by 6)

HIGH FREQUENCY COMPONENT 5800 - 6500 Hz

(slowed by 6)

Page 9: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Dynamic Time Warping : the Goal

Compare contours and quantify the difference.

Page 10: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Difference MatrixD[i,j] = |T(j) - Q(i)|

Q\T 1 2 3 4 5

3 2 1 0 1 2

4 3 2 1 0 1

5 4 3 2 1 0

4 3 2 1 0 1

Page 11: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Difference Matrix and Cost Matrix

D[i,j] = |T(j) - Q(i)|

q\t1 2 3 4 5

3 2 1 0 1 24 3 2 1 0 15 4 3 2 1 04 3 2 1 0 1

Q\T 1 2 3 4 5

0 0 0 0 0 0

3 1 1 1 1

4 2 2 2

5 3 3

4 4 4

M(i − 1, j-1) +D(i,j)

M(i − 1, j) +insertion cost

M(i , j-1) + deletion cost

M(i,j) =minimum of thethree

M =

Example: insertion=1 deletion = 0

Page 12: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Cost Matrix with Query and Target

Dissimilarity is M(qmax, tmax)

Page 13: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Warping Function=Minimum Path

Page 14: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Dissimilarity Matrix

n1 n2 n32 n33 n4 n5 n9

Page 15: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Clustering

DISTANCES

MULTIDIMENSIONAL SCALING (mds) Distances Positions in coordinate-like Space

CLUSTERING – Form groups with minimum distances within a group

Page 16: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Clustering Results

n1

n2

n32

n33

n4 n5

n9

Page 17: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Another Look at n2, n4, n5, n9

Page 18: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

0 10 20 30 40 50 60 70 80 90 100

LOW FREQ

HIGH FREQSUM

Results

ELLIS

KEOGH

SAKOE CHIBA p=0

SAKOE CHIBA p=1

ITAKURA

CHAI/VERCOE

NORTHERN RESIDENT CALLS

0 10 20 30 40 50 60 70 80 90 100

LOW FREQLOW FREQ + DERIVATIVE

CHAI/VERCOE

MARINELAND CALLS

Page 19: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

CONCLUSIONS

UPSIDE HIGH ACCURACY for SEPARATED CONTOURS VALIDITY of COMPARISON to HUMAN CLASSIFICATION ?

DOWNSIDE TIME-CONSUMING MEASUREMENT of the PITCH

CONTOURS

Page 20: Dynamic time warping for automatic classification of killer whale vocalizations Judy Brown Patrick Miller Physics Dept, Wellesley College Media-Lab MIT

Brown, J. C., A. Hodgins-Davis, and P. J. O. Miller (2006). “Classification of vocalizations of killer whales using dynamic time

warping’’ J. Acoust. Soc. Am. 119, EL34-EL40.

Acknowledgements: JCB thanks Dr. Eamonn Keogh for his MATLAB code which was adapted for some of the Figures. PJOM is grateful for funding from WHOI’s Ocean Life Institute and a Royal Society fellowship.