Signatures in Shape Analysis Nikolas Tapia (WIAS/TU Berlin) joint - - PowerPoint PPT Presentation

signatures in shape analysis
SMART_READER_LITE
LIVE PREVIEW

Signatures in Shape Analysis Nikolas Tapia (WIAS/TU Berlin) joint - - PowerPoint PPT Presentation

Weierstrass Institute for Applied Analysis and Stochastics Signatures in Shape Analysis Nikolas Tapia (WIAS/TU Berlin) joint w.i.p. with E. Celledoni & P . E. Lystad (NTNU) Mohrenstrasse 39 10117 Berlin Germany Tel. +49 30 20372 0


slide-1
SLIDE 1

Weierstrass Institute for Applied Analysis and Stochastics

Signatures in Shape Analysis

Nikolas Tapia (WIAS/TU Berlin) joint w.i.p. with E. Celledoni & P . E. Lystad (NTNU)

Mohrenstrasse 39 · 10117 Berlin · Germany · Tel. +49 30 20372 0 · www.wias-berlin.de 11th Berlin-Oxford meeting. May 25, 2019

slide-2
SLIDE 2

Outline

1

Shape Analysis Practical Setup Technical Setup

2

Signatures on Lie groups Definition An example The case of SO(3)

3

Clustering Comparing signatures

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 2 (22)

slide-3
SLIDE 3

Practical Setup

The problem is to find some sort of similarity measure between shapes that is:

  • 1. accurate enough, in that it distinguishes different types of motion (clustering), and
  • 2. easy (and fast) to compute.

Our main application is to computer motion capture. For each motion, we get a set of curves in SO(3), representing the rotation of joints relative to a fixed origin (root). Given two motions, we want to compute some kind of distance between them.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 3 (22)

slide-4
SLIDE 4

Shape Analysis(cont.)

We use data from the Carnegie Melon University MoCap Database

http://mocap.cs.cmu.edu.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 4 (22)

slide-5
SLIDE 5

Shape Analysis: Technical Setup

Shapes are viewed as unparametrized curves taking values, in our case, on a finite-dimensional Lie group G whose Lie algebra is denoted by g. We identify curves modulo reparametrization. For technical reasons, we restrict to the space of immersions Imm ≔ {c : [0, 1] → G | c′ 0} The group D + of orientation-preserving diffeomorphisms of [0, 1] acts on Imm by composition

c.ϕ ≔ c ◦ ϕ.

We denote S ≔ Imm/D +.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 5 (22)

slide-6
SLIDE 6

Shape Analysis: Technical Setup

Similarity between shapes is then measured by some distance

dS([c], [c′]) ≔ inf

ϕ d P(c, c′.ϕ).

The (pseudo)distance d P on parametrized curves must be reparametrization invariant. The standard choice is obtained through a Riemannian metric on Imm. In the end one gets

d P(c, c′) = ∫ 1 q(t) − q ′(t)2 dt

where

q(t) ≔ (R −1

c(t))∗(

c(t))

  • |

c(t)|

is called the Square root velocity transform (SRVT) of the curve c.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 6 (22)

slide-7
SLIDE 7

Shape Analysis: Technical Setup

Some observations about d P:

  • 1. it is only a pseudometric.
  • 2. it corresponds to the geodesic distance of a weak Riemannian metric on Imm, obtained as the

pullback of the usual L2 metric on curves in g under the SRVT.

  • 3. it is reparametrization invariant.

Hence, the similarity measure for shapes is

dS([c], [c′]) =

inf

ϕ∈D +

∫ 1

  • q − (q ′.ϕ)
  • ϕ
  • 21/2

.

This optimization problem is often solved using dynamic programming.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 7 (22)

slide-8
SLIDE 8

Signatures on Lie groups

Let G be a d -dimensional Lie group with Lie algebra g. Definition The Maurer–Cartan form of G is the g-valued 1-form

ωg(v) ≔ (R −1

g )∗(v),

g ∈ G,v ∈ TgG.

This means that ω is a bundle morphism T G → (G × g), i.e. for each g ∈ G we have a linear map

ωg : TgG → g.

In particular, if X1, . . . , Xd is a basis for g then we may write

ωg(v) = ω1

g(v)X1 + · · · + ωd g (v)Xd .

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 8 (22)

slide-9
SLIDE 9

Signatures on Lie groups: Definition

Consider a curve α ∈ C ∞([0, 1], G). Definition (Chen (1954)) The signature on G is the map α → SG(α) defined recursively by 1, SG

s,t(α) = 1 and

ei1···in, SG

s,t(α) ≔

∫ t

s

ei1···in−1, SG

s,u(α)ωin α(u)(

α(u)) du

The Maurer–Cartan form can be computed explicitly in some situations, specially for matrix Lie groups where it takes the simple form

ωg = dg g −1.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 9 (22)

slide-10
SLIDE 10

Signatures on Lie groups: An example

An easy example is the Heisenberg group

H3 ≔         

  • 1

x z 1 y 1

  • : x, y, z ∈

         .

Then, we obtain

ωg =

  • dx

−y dx + dz

dy

  • .

Therefore

SH3

s,t (α) = 1 +

∫ t

s

  • αx(u) du e1 +

∫ t

s

  • α y(u) du e2 +

∫ t

s

( αz(u) − α y(u) αx(u)) du e3 + · · ·

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 10 (22)

slide-11
SLIDE 11

Signatures on Lie groups: The case of SO(3)

For SO(3) the computation is more difficult. However, we can do something clever: we do “geodesic interpolation”. Given A, B ∈ SO(3), let α : [0, 1] → SO(3) be given by

α(t) ≔ exp(t log(BA⊺))A,

so that α(0) = A and α(1) = B. Since SO(3) is a “nice” group, it has a unique bi-invariant Riemannian metric. For this metric, geodesics and one-parameter subgroups coincide, that is, geodesics correspond to flows of left-invariant vector fields. For this choice,

ωα(t)( α(t)) = log(BA⊺).

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 11 (22)

slide-12
SLIDE 12

Clustering: Comparing signatures

We need a way of comparing signatures. There are several choices:

  • 1. using the metric inherited from T ((d)), i.e.

d(g, h) ≔ h − g T ((d )),

  • 2. using the homogeneous norm on truncated characters, i.e.

ρn(g, h) ≔ h−1 ⊗ g G(n),

  • 3. compare log-signatures.

We also compare with currently used methods based on the SRVT, i.e. dynamic programming.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 12 (22)

slide-13
SLIDE 13

Clustering

−0.4 −0.2 0.0 0.2 0.4 0.6 −0.6 −0.4 −0.2 0.0 0.2 0.4

walk run walk jump run jump walk jump run run walk jump jump walk walk walk walk walk run run walk jump jump jump jump run walk walk run run walk

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 13 (22)

slide-14
SLIDE 14

Clustering

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 14 (22)

slide-15
SLIDE 15

Clustering: a computation

Let a ∈ 2 and consider x : [0, 1] → 2 given by x(t) ≔ at . Then:

S(x) = exp⊗(a) = 1 + a + 1

2a ⊗ a + 1 6a ⊗ a ⊗ a + · · ·

For small ε > 0 define xε(t) ≔ (a + εv)t . Then:

S(xε) = exp⊗(a + εv)

By Baker–Campbell–Hausdorff:

gε ≔ S(x)−1 ⊗ S(xε) = exp⊗(εv + BCH(−a, a + εv)).

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 15 (22)

slide-16
SLIDE 16

Clustering: a computation (cont.)

Truncating at n = 2,

gε = exp⊗

  • εv − 1

2[a, a + εv]

  • = 1 + εv − ε

2[a,v] + 1 2ε2v ⊗ v,

hence

ρ(S(xε), S(x)) = gεG(2) = max

  • |ε|,
  • |ε|

2

  • 4ε2 + 1

2(a1v2 − v1a2)21/4

  • = O

√ε

  • .

In general

gεG(n) = O(ε1/n).

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 16 (22)

slide-17
SLIDE 17

Clustering: a concrete example

Now, let ca and cb correspond to “walking” and “jogging” animations. We generate a geodesic interpolation ¯

c between the curves, i.e. c(0, ·) = ca, c(1, ·) = cb and for s ∈ (0, 1) the animation c(s, ·) is a mixture of both.

In practice, this is generated using the SRVT so in fact we are doing linear interpolation at the level

  • f the Lie algebra.

Signatures were computed using the iisignature Python package by J. Reizenstein and B. Graham. We can then look at the behaviour of the different similarity measures when s varies. Remark Since the distance dS coincides with the geodesic distance, we will see a straight line for this metric.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 17 (22)

slide-18
SLIDE 18

Clustering: a concrete example (cont.)

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 18 (22)

slide-19
SLIDE 19

Clustering: a concrete example (cont.)

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 19 (22)

slide-20
SLIDE 20

Clustering: a concrete example (cont.)

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 20 (22)

slide-21
SLIDE 21

Questions:

  • 1. Pullback metric from signatures to curves.
  • 2. How much does geometrical information help.
  • 3. Better understanding of the various metrics.
  • 4. Purely discrete approach.

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 21 (22)

slide-22
SLIDE 22

Thanks!

Shape Analysis · 11th Berlin-Oxford meeting. May 25, 2019 · Page 22 (22)