Beyond Gaussian Pyramid: Multi-skip Feature Stacking for Action Recognition

Zhenzhong Lan, Ming Lin, Xuanchong Li, Alexander G. Hauptmann, Bhiksha Raj

Introduction

We consider the problem of enhancing video representations for action recognition, which becomes increasingly important for both analyzing human activity itself and as a component for more complex event analysis. As pointed out by Marr and Lindeberg , visual representations, or visual features, are of utmost importance for a vision system, not only because they are the chief reasons for tremendous progress in the field, but also because they lead to a deeper understanding of the information processing in the human vision system. In fact, most of the qualitative improvements to visual analysis can be attributed to the introduction of improved representations, from SIFT to Deep Convolutional Neural Networks , STIP to Dense Trajectory . A common characteristic of these several generations of visual features is that they all, in some way, benefit from the idea of multi-scale representation, which is generally viewed as an indiscriminately applicable tool that reliably yields an improvement in performance when applied to almost all feature extractors.

At the core of image multi-scale representation is the requirement that no new detail information should be artificially found at the coarse scale of resolution . Gaussian Pyramid, a unique solution based on this constraint, generates a family of images where fine-scale information is successively suppressed by Gaussian smoothing. However, in action recognition, we often desire the opposite requirements. For example, in generating action features using differential filters, we need coarse-scale features to: 1) recover the information that has been filtered out by highpass filters at fine scales, e.g., the red and cyan signals in Figure 1(c) are likely to be filtered out; 2) generate features at higher frequency for matching similar actions at different speeds and ranges of motion, e.g., the orange and green signals in Figure 1(c). Both of these requirements cannot be satisfied with a Gaussian Pyramid representation.

In this work, we introduce a Multi-skIp Feature Stacking (MIFS) representation that works by stacking features extracted by a family of differential filters parameterized with multiple time skips (scales). Our algorithm relies on the idea that by gradually reducing the frame rate, feature extractors with differential filters can extract information about more subtle movements of actions. MIFS has several attractive properties:

It is an indiscriminately applicable tool that can be reliably and easily adopted by any feature extractors with differential filters, like Gaussian Pyramid,

It generates features that are shift-invariance in frequency space, hence easier to match similar actions at different speeds and ranges of motion.

It stacks features at multiple frequencies and tends to cover a longer range of action signals, compared to conventional action representations,

It generates feature matrices that have smaller conditional numbers and variances hence stronger learnability compared to the conventional original-scale representation based on our theoretical analysis.

It significantly improves the performance of state-of-the-art methods based on experimental results on several real-world benchmark datasets.

It exponentially enhances the learnability of the resulting feature matrices. Therefore the required additional number of scales is logarithmic to the bandwidth of the action signals. Empirical studies show that one or two additional scales are enough to recover the information lost by differential operators. Hence the additional computational cost of MIFS is small.

It can be used to as a feature extraction speedup strategy with minimal or no accuracy cost. As shown in our experiments, combining features extracted from videos at lower frame rates (with different time skips) performs better than features from videos at the original frame rate at the same time requires less time to process.

In the remainder of this paper, we start by providing more background information about action recognition and multi-scale presentations. We then describe MIFS in detail, followed by theoretically proving that MIFS improves the learnability of video representations exponentially. After that, an evaluation of our method is performed. Further discussions including potential improvements are given at the end.

Related Work

There is an extensive body of literature about action recognition; here we just mention a few relevant ones involved with state-of-the-art feature extractors and feature encoding methods. See for an in-depth survey. In conventional video representations, features and encoding methods are the two chief reasons for considerable progress in the field. Among them, the trajectory based approaches , especially the Dense Trajectory method proposed by Wang et al. , together with the Fisher Vector encoding yields the current state-of-the-art performances on several benchmark action recognition datasets. Peng et al. further improved the performance of Dense Trajectory by increasing the codebook sizes, fusing multiple coding methods and adding a stacked Fisher Vector. Some success has been reported recently using deep convolutional neural networks for action recognition in videos. Karpathy et al. trained a deep convolutional neural network using 1 million weakly labeled YouTube videos and reported a moderate success on using it as a feature extractor. Simonyan &\& Zisserman reported a result that is competitive to Improved Dense Trajectory by training deep convolutional neural networks using both sampled frames and optical flows. MIFS is an indiscriminately applicable tool that can be adopted by all of above mentioned feature extractors.

Multi-scale representation has been very popular for most image processing tasks such as image compression, image enhancement and object recognition. A multi-scale key-point detector proposed by Lindeberg and used in by Lowe to detect scale invariant key points using Laplacian pyramid methods, in which Gaussian smoothing is used iteratively for each pyramid level. Simonyan &\& Zisserman reported a significant performance improvement on Imagenet Challenge 2014 by using a multi-scale deep convolutional neural network. In video processing, Space Time Interest Points (STIP) extends SIFT to the temporal domain by finding the scale invariant feature points in 3D space. Shao et al. also try to achieve scale invariance for action recognition using 3-D Laplacian pyramids and 3D Gabor filters. However, without awareness of the fundamental differences between image and video processing, was not very successful when compared to the state-of-the-art methods.

For lab datasets where human poses or action templates can be reliably estimated, Dynamic Time Warping (DTP) , Hidden Markov Models (HMMs) and Dynamic Bayesian Networks (DBNs) are well studied methods for aligning actions that have speed variation. However, for noisy real-world actions, these methods have not shown themselves to be very robust.

Multi-skIp Feature Stacking (MIFS)

We now formalize our notation. For the present discussion a video XX is just a real function of three variables:

The normalized coordinates (x,y,t)∈R3(x,y,t)\in R^{3} are the Cartesian coordinates of the video space. Since we focus on the temporal domain, we omit (x,y)(x,y) in further discussion and denote a video as X(t)X(t). The length of the video is assumed to be normalized, that is t∈t\in. In our model, the content of a video is generated by a linear mixture of kk latent signals:

The mixing weight of each latent action signal xˉi\bar{\mathbf{x}}_{i} at time tt is denoted as αi(t)\alpha_{i}(t). Therefore, a given video is generated as

where ϵ(t)\boldsymbol{\epsilon}(t) is additive subgaussian noise with noise level σ\sigma. We assume ∀i\forall i,

The feature extractor is assumed to be modeled as a differential operator F[⋅,τ]\mathcal{F}[\cdot,\tau] parameterized with time skip τ\tau. Given a fixed τ\tau, the feature extractor F[X(t),τ]\mathcal{F}[X(t),\tau] generates T=⌊1/τ⌋T=\left\lfloor 1/\tau\right\rfloor features.

where t1,t2,⋯ ,tTt_{1},t_{2},\cdots,t_{T} are uniformly sampled on $.The. Thei−thfeaturevector-th feature vector\mathbf{f}(t_{i},\tau)$ is generated by

where PP is a k×Tk\times T matrix, Pi,j=αi(tj+τ)−αi(tj)P_{i,j}=\boldsymbol{\alpha}_{i}(t_{j}+\tau)-\boldsymbol{\alpha}_{i}(t_{j}).

Most action feature extractors are different versions of F\mathcal{F}. For example, STIP and Dense Trajectory can be derived from F[⋅,1K]\mathcal{F}[\cdot,\frac{1}{K}], where KK is the number of frames in the video.

MIFS stacks multiple F[X(t),τ]\mathcal{F}[X(t),\tau] with different τ\tau. By stacking multiple features with different frequencies, MIFS seeks invariance in the frequency domain via resampling in the time domain. Figure 2 shows the difference of Gaussian Pyramid and MIFS for a real signal from an unconstrained video. It is clear that, because of smoothing, Gaussian Pyramid fails to recover signals once they have been filtered out. As the levels go higher, the feature generated by Gaussian Pyramids can only become weaker. While in MIFS, the generated features become more prominent and can be recovered as the levels go higher.

The Learnability of MIFS

In this section, we first show that under model Eq. (2), the standard feature extraction method cannot produce a feature matrix conditioned well enough. Then we show that MIFS improves the condition number of the extracted feature matrix exponentially. One of the key novelties of the MIFS is that it also reduces the uncertainty of the feature matrix simultaneously. This reduction is not possible in a naive approach.

In this subsection, we will prove, based on the Matrix Bernstein’s Inequality , that the condition number of PP is not necessarily a small number.

In static feature extractors such as SIFT, the weight coefficient matrix α\boldsymbol{\alpha} is independent of tt. While in a video stream, the action signal is dynamic in tt. To measure the dynamic of an action signal, we introduce γi\gamma_{i} as an index.

A latent action signal is γ\gamma dynamic, if given a non-negative constant c∈c\in, ∀τ∈(0,1]\forall\tau\in(0,1],

provided 1−(1+c)exp⁡(−γ/τ)≥0.1-(1+c)\exp(-\gamma/\tau)\geq 0.

The value γ\gamma measures how fast the coefficient α(t)\alpha(t) varies along time tt. Here we take the exponential function by assuming the correlation between α(t+τ)\alpha(t+\tau) and α(t)\alpha(t) to be at least subgaussian. If in a given video, the ii-th action signal is a high frequency component, then its coefficient αi(t)\boldsymbol{\alpha}_{i}(t) will behave like a random number for time skip τ\tau. Therefore, we would expect that the correlation between αi(t)\boldsymbol{\alpha}_{i}(t) and αi(t+τ)\boldsymbol{\alpha}_{i}(t+\tau) is close to 0. Or if the action signal is a low frequency component, the correlation indicator γ\gamma should be close to 11. For the sake of simplicity, we rearrange latent action signal Xˉ\bar{X} by their frequency to have γ1≤γ2≤⋯≤γk\gamma_{1}\leq\gamma_{2}\leq\cdots\leq\gamma_{k}.

Corollary 1 shows that when the actions in the video span across a vast dynamic range (large M), the feature extractor with single τ\tau tends to have ill-conditioned feature matrices. A naive solution to this problem is to increase τ\tau to reduce the condition number in expection. However, this will increase the variance Δτ\Delta_{\tau} of β(PPT)\beta(PP^{T}) because of a smaller number of features. In practice, a large τ\tau also increases the difficulty in optical flow calculation and tracking. Hence, as will also be observed in our experiments, choosing a good τ\tau can be fairly difficult. Intuitively speaking, selecting τ\tau is a trade-off between feature bias and variance. A feature extractor with a large τ\tau covers a long range of action signals but with less feature points hence generates features with small bias but large variance. Similarly, a feature extractor with a small τ\tau will generate features with large bias but small variance.

2 Condition Number of P under Multiple τ𝜏\tau

Assuming we have features extracted from {τ,2τ,⋯mτ}\{\tau,2\tau,\cdots m\tau\}. For iτi\tau skip, the number of extracted features is Ti=⌊1/(iτ)⌋T_{i}=\left\lfloor 1/(i\tau)\right\rfloor. The following theorem bounds the condition number of MIFS (see the proof in supplementary materials).

Experiments

We examine our hypothesis and the proposed MIFS representation on two tasks: action recognition and event detection. The experimental results show that MIFS representations outperform conventional original-scale representations on seven real-world challenging datasets.

Improved Dense Trajectory with Fisher Vector encoding represents the current state-of-the-arts for most real-world action recognition datasets. Therefore, we use it to evaluate our method. Note that although we use Improved Dense Trajectory, our methods can be applied to any local features that use differential filters, e.g., STIP .

The goal of this task is to recognize human actions in short clips of videos.

Datasets

Five representative datasets are used: The HMDB51 dataset has 51 action classes and 6766 video clips extracted from digitized movies and YouTube. provides both original videos and stabilized ones. We only use original videos in this paper and standard splits with MAcc (mean accuracy) are used to evaluate the performance. The Hollywood2 dataset contains 12 action classes and 1707 video clips that are collected from 69 different Hollywood movies. We use the standard splits with training and test videos provided by . Mean average precision (MAP) is used to evaluate this dataset because multiple labels can be assigned to one video clip. The UCF101 dataset has 101 action classes spanning over 13320 YouTube videos clips. We use the standard splits with training and test videos provided by and MAcc is reported. The UCF50 dataset has 50 action classes spanning over 6618 YouTube videos clips that can be split into 25 groups. The video clips in the same group are generally very similar in background. Leave-one-group-out cross-validation as recommended by is used and mean accuracy (mAcc) over all classes and all groups is reported. The Olympic Sports dataset consists of 16 athletes practicing sports, represented by a total of 783 video clips. We use standard splits with 649 training clips and 134 test clips and report mAP as in for comparison purposes.

Experimental Setting

Improved Dense Trajectory features are extracted using 15 frame tracking, camera motion stabilization and RootSIFT normalization and described by Trajectory, HOG, HOF, MBHx and MBHy descriptors. We use PCA to reduce the dimensionality of these descriptors by a factor of two. After reduction, we augmented the descriptors with three dimensional normalized location information. The only difference between MIFS and other conventional methods is that instead of using feature points extracted from one time scale, we extract and stack all the raw feature points from different scales together before encoding. For Fisher Vector encoding, we map the raw descriptors into a Gaussian Mixture Model with 256 Gaussians trained from a set of randomly sampled 256000 data points. Power and L2 normalization are also used before concatenating different types of descriptors into a video based representation. Another L2 normalization is used after the concatenation. This renormalization brings us about 1%1\% improvement over the baseline method on most of the datasets except Olympics Sports. For classification, we use a linear SVM classifier with a fixed C=100C=100 as recommended by and the one-versus-all approach is used for multi-class classification scenario.

Results

We further examine how performance changes with respect to the MIFS level, as shown in Table 1. First, let us compare the performance of L=0 to the standard location-insentative feature representation. Our performance on HMDB51, Hollywood2, UCF101 and UCF50 datasets are 62.1%62.1\% MAcc, 67.0%67.0\% MAP, 87.3%87.3\% MAcc and 93.0%93.0\% respectively. These numbers are higher than Wang & Schmid ’s results, which are 57.2%57.2\%, 64.3%64.3\%, 85.9%85.9\% and 91.2%91.2\%, respectively. This improvement is largely because of our location sensitive feature representation and the renormalization. Next, let us check the behavior of MIFS. For completeness, we list both single-scale and stacking performance. For single-scale performance, we observe that for HMDB51, its performance increases from 62.1%62.1\% to 63.1%63.1\% and then decrease rapidly, similar patterns can be seen in other datasets except some of them do not increase at L=1L=1. These results consist with our observation that different actions need different scale ranges. They also substantiate our proof that selecting time interval τ\tau is a trade-off between the feature bias and its variance. If computational cost is critical, then we can choose to only extract higher single scale features but suffering minimal or no accuracy lost and enjoying large computational reduction. Now let us compare MIFS with single-scale representation. We observe that for MIFS representations, although there is still a bias and variance trade-off as in single-scale representations for different levels, they all perform better than single-scale representation and the performance decreasing points are later than those in the single-scale representations. We also observe that for MIFS representations, most of the performance improvement comes from L=1L=1 and L=2L=2, which supports what we observed in Figure 3 that, in practice, having one or two more scales is enough to recover most of lost information due to the differential operations. Higher scale features become less reliable due to the increasing difficulty in optical flow estimation and tracking. It is also interesting to observe that HMDB51 enjoys a higher performance improvement from MIFS than the other four datasets have. We believe that the main reason is that HMDB dataset is a mixture of videos from two sources: Youtube and movie, which results in larger action velocity range than pure movie videos or Youtube in other datasets.

Comparing with State-of-the-Arts

In Table 2, we compare MIFS at L=3L=3, which performs well across all action datasets, with the state-of-the-art approaches. From Table 2, in most of the datasets, we observe improvement over the state-of-the-arts except hmdb51 and Olympics Sports, on which our L=3L=3 MIFS give inferior performance . Note that although we list several most recent approaches here for comparison purposes, most of them are not directly comparable to our results due to the use of different features and representations. The most comparable one is Wang & Schmid. , from which we build our approaches on. Sapienz et al. explored ways to sub-sample and generate vocabularies for Dense Trajectory features. Jain et al. ’s approach incorporated a new motion descriptor. Oneata et al. focused on testing Spatial Fisher Vector for multiple action and event tasks. Peng et al. improved the performance of Improved Dense Trajectory by increasing the codebook size and fusing multiple coding methods. Karpathy et al. trained a deep convolutional neural network using 1 million weakly labeled YouTube videos and reported 65.4% mean accuracy on UCF101 datasets. Simonyan & Zisserman reported results that are competitive to Improved Dense Trajectory by training deep convolutional neural networks using both sampled frames and optical flows and get 57.9%57.9\% MAcc in HMDB51 and 87.6%87.6\% MAcc in UCF101, which are comparable to the results of Wang &\& Schmid. Peng et al. achieves better results than us on HMDB51 and Olympic Sports datasets by combining a hierarchical Fisher Vector with the original one.

2 Event Detection

Given a collection of videos, the goal of an event detection task is to detect events of interest such as Birthday Party and Parade, solely based on the video content. The task is very challenging due to complex actions and scenes. By evaluating on this task, we examine whether MIFS can improve the performance of recognizing very complex actions.

Dataset

TREC Video Retrieval Evaluation (TRECVID) Multimedia Event Detection (MED) is a task organized by NIST (National Institute of Standards and Technology) aimed at encouraging new technologies for detecting complex events such as having a birthday party. Started in 2010, NIST has gradually built up a database that contains 8000 hours of videos and 40 events, which is by far the largest event detection collection. MEDTEST13, 14 datasets are two standard system evaluation datasets released by NIST in 2013 and 2014, respectively. Each of them contains around 10 percent of the whole MED collection and has 20 events. They consist of two tasks, i.e. EK100 and EK10. EK100 task has 100 positive training samples while EK10 has 10. For both tasks, they have around 5000 background samples. Together, each dataset has 8000 training samples and 24000 testing samples.

Experimental Setting

A similar setting discussed in section 5.1 is applied except we use five folders cross-validation to choose the penalty parameter C for linear SVM. For each classifier, C is chosen among 10−3,10−2,10−1,1,101,102,10310^{-3},10^{-2},10^{-1},1,10^{1},10^{2},10^{3}. We only test MIFS with L=3L=3 as recommended in section 5.1 because extracting Dense Trajectory feature from such large datasets itself is very time consuming. It took us 4 days to generate representations for both MEDTEST13, 14 using a cluster with more than 500 Intel E565+ series processors. We use MAP as evaluation criteria.

Results

Table 4 lists the overall MAP (detail results can be found in supplementary materials). The baseline method is a conventional single-scale representation with L=0L=0. From Table 4, we can see that for both MEDTEST13 and MEDTEST14, MIFS representations consistently improve over the original-scale representation by about 2%2\% in both EK100 and EK10. It is worth emphasizing that MED is such a challenging task that 2%2\% of absolute performance improvement is quite significant.

3 Computational Complexity

Level 0 of a MIFS representation has the same cost as other single pass methods, e.g., Wang & Schmid. . For level ll, the cost becomes 1/l1/l of the level 0. So with a MIFS up to level 2, the computational cost will be less than twice the cost of a single pass through the original video, yet it can significantly improve the single-pass methods. If computational efficiency is critical, the method can be sped up by removing low-scale features. For example, removing L=0 (original videos) will significantly reduce cost but still give useful improvements as shown in Table 3. L−1L-1 shows the results of only using features from every 2nd frame and L=2−0L=2-0 shows the results of combining features from level 1 (every 2nd frame) and level 2 (every 3rd frame) but not L=0. As seen, in most of cases, we can still get better results with less cost.

Conclusion

We develop the Multi-skIp Feature Stacking (MIFS) method for enhancing the learnability of action representations. MIFS stacks features extracted using a family of differential filters parameterized with multiple time skips and achieves shift-invariance in the frequency space. In contrast to Gaussian Pyramid, MIFS generates features at all scales and tends to cover a longer range of action signals. Theoretical results show that MIFS improves the learnability of action representation exponentially. Extensive experiments on seven real-world datasets show that MIFS exceeds state-of-the-art methods. Future works would be determining the appropriate level for different action types. Additionally, we would like to improve the quality of optical flow calculation and tracking at coarse scales.

Acknowledgement

This work was partially supported by Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior National Business Center contract number D11PC20068. The U.S. Government is authorized to reproduce and distribute reprints for Governmental purposes notwithstanding any copyright annotation thereon. Disclaimer: The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of IARPA, DoI/NBC, or the U.S. Government. The work was also supported in part by the U. S. Army Research Office (W911NF-13-1-0277). Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of ARO.

References

Proof

Here we give the details of proofs in the main text. Our proofs are based on the following Bernstein’s Matrix Inequaltiy.

For the ii-th row, jj-th column of PP,

The equalities in Eq. (21) and Eq. (22) come from the fact that PjP_{j} is assumed to be an independent and indentical sample from the column distribution of PP.

By Bernstein’s Matrix inequality (Theorem 1), with probability at least 1−δ1-\delta, we have

2 Proof of Theorem 2

The proof is similar to Theorem 1, except that PiP_{i} is sampled from mm different distribution. To borrow the proof in Theorem 1, the distribution of PiP_{i} has mm components. The ii-th component is sampled from iτi\tau skip with probability Ti/∑jTj=Ti/TT_{i}/\sum_{j}T_{j}=T_{i}/T where T=∑jTjT=\sum_{j}T_{j} is the total number of features. Based on this observation, we have: