• No results found

Detection-by-tracking: State binding for space-time pose estimation

5.3 Pose and segmentation model

5.3.2 Detection-by-tracking: State binding for space-time pose estimation

In each frame It, we compute the MAP pose estimates of a static pose detector. We

consider the set of body joint detections from all framesD ={dp, p = 1· · ·nD}, where

dp = (xp, yp, tp, lp, cp) and(xp, yp, tp) denote the space-time location of the body joint,

lp ∈ {1· · ·6}denotes the body joint label and cp the score of the detection. Body joint

hypotheses that result from the same pose detection share the same score.

We use a detection-by-tracking method for populating the state space of the random variables in our graphical model. We track each detection dp forward and backward in

time using optical flow as proposed inSundaram et al.(2010) and obtain body joint trajec- toriesTD ={trDp, p= 1· · ·nD}. Trajectory points{(xtp, ypt), t = 1· · ·TP, p = 1· · ·nD}

populate the state space of the random variables of corresponding body joint labellp and

framet. Body joint detection-by-tracking can jump missed detection gaps by propagating detected body joints from ”lucky” frames to unlucky ones, where deformation prevents a reliable pose detection. The resulting state space provides a better pose oracle in com- parison to pose sampling per frame of Batra et al.(2012);Park and Ramanan(2011), as depicted also in Figure5.9. This means the resulting state space has higher probability of containing the groundtruth body joint location.

We compute motion affinities AD ∈ RnD×nD between body joint trajectories of the

same label according to motion similarity:

AD(p, q) = exp (−

dpq∆upq

σ )·δ(Tp∩Tq 6=∅)·δ(lp=lq), (5.3)

where we use the same computation and notation as in previous chapters.

We compute unary and pairwise intra-frame potentialsu RnD×1, pA ∈ RnD×nD of

body joint trajectories with motion similarity driven voting: the higher the motion similar- ity between two body joint candidates, the higher the vote:

t trDp

sk

Unary poten<als U

Figure 5.3: Body joint state binding. TopLeft: We track the MAP pose detection in each frame using optical flow. The resulting body joint trajectories can jump miss detection gaps. BottomLeft: Resulting pool of candidate body joints. Right: The state potentialsU, incorporate information from multiple frames and are indicative of the basic space-time modes of the body joints in the video.

u(p) = X q, lq=lp AD(p, q)cq (5.4) pA(p, q) = X a,b,ta=tb AD(p, a)AD(q, b)cq (5.5) (5.6)

LetS ={sk, k = 1· · ·nS}denote the set of resulting body joint candidates from the

trajectory points of TD. Let fk, tk, rk denote the trajectory index, the frame index and

random variable index for body joint candidate sk. We convert trajectory potentials to

state potentialsU RnS×1, andPA, PT ∈RnS×nS as follows:

U(k) =u(fk) (5.7) PA(k, l) =pA(fk, fl) (5.8) PT(k, l) =              1, if fk=fl,|tk−tl|= 1, log(−||(xtk fk, y tk fk)−(x tl fl, y tl fl)||2, if fk6=fl,|tk−tl|= 1, 0, otherwise. (5.9)

Body joint candidates on the same trajectory are bind together, they share the same unary scores. We compute inference in the body pose graph via tree decomposition as

in Sapp et al. (2011), also depicted in Figure 5.4. We consider 6 tree structured graphs

and sum the resulting max marginals for each body joint candidate. We denote body joint candidate max marginal scores asmxmr(sk), k = 1· · ·nS.

The body joint candidate scoresU indirectly incorporate large temporal support and clearly delineate the main modes of the space-time body joint candidates, as depicted in Figure5.3right. Thus, omitting temporal dependencies during the sum of trees relaxation affects less the quality of the approximation.

Figure 5.4: Tree decomposition. We approximate inference in the loopy graph by sum of tree inferences.

5.3.3

Trajectory motion graph

Given a video sequence I, we consider a set of dense point trajectoriesT = {tri, i =

1· · ·nT}. We compute motion affinitiesAT ∈ [0, 1]nT×nT according to long range mo-

tion similarity, as proposed in Brox and Malik (2010b). Let z ∈ {0,1}nT×1 denote the

figure-ground trajectory indicator vector, then the goodness of figure-ground trajectory classification is measured by:

nassoc(z) = z TA Tz zTD ATz , (5.10)

whereDAT = Diag(AT1nT×1). We remind the reader that maximizing normalized cluster

associations are equivalent to minimizing normalized cuts, as discussed in Chapter2. Spectral clustering inG(T,AT)often results in over-fragmentation of articulated bod-

ies. Instead of a hard clustering, we will work with soft (undiscretized) embedding trajec- tory affinitiesW˜ [0, 1]nT×nT, depicted in Figure5.5:

˜ W(i, j) =ViTΛVj/max(ρi, ρj) (5.11) ρi = max j∈N(i)(ViΛV T j ), (5.12) (5.13)

where (V,Λ = Diag(λ))are the top K eigenvectors and eigenvalues of the normalized affinity matrixD−A1

TAT andVi ∈R

K×1represents the embedding coordinates oftr

i. N(i)

K

= 10

K

= 20

˜

W

K

= 10

K

= 20

Figure 5.5: Trajectory motion graph. Columns 1, 2: Trajectory spectral clustering for number of eigenvectorsK = 10, K = 20respectively. Trajectory clustering often over- segments articulated bodies. Columns 3, 4: Normalized embedding trajectory affinitiesW˜

for number of eigenvectorsK = 10,K = 20respectively. Edges correspond to spatially neighboring trajectories and color indicates strength of affinity, with red indicating high affinity and blue low one. The reader can imagine that such pairwise affinities W˜ exist also between non spatially neighboring trajectories, not shown in the image. Varying the number of eigenvectorsK does not dramatically change affinities inW˜ .