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 is just a real function of three variables:
The normalized coordinates are the Cartesian coordinates of the video space. Since we focus on the temporal domain, we omit in further discussion and denote a video as . The length of the video is assumed to be normalized, that is . In our model, the content of a video is generated by a linear mixture of latent signals:
The mixing weight of each latent action signal at time is denoted as . Therefore, a given video is generated as
where is additive subgaussian noise with noise level . We assume ,
The feature extractor is assumed to be modeled as a differential operator parameterized with time skip . Given a fixed , the feature extractor generates features.
where are uniformly sampled on $i\mathbf{f}(t_{i},\tau)$ is generated by
where is a matrix, .
Most action feature extractors are different versions of . For example, STIP and Dense Trajectory can be derived from , where is the number of frames in the video.
MIFS stacks multiple with different . 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 is not necessarily a small number.
In static feature extractors such as SIFT, the weight coefficient matrix is independent of . While in a video stream, the action signal is dynamic in . To measure the dynamic of an action signal, we introduce as an index.
A latent action signal is dynamic, if given a non-negative constant , ,
provided
The value measures how fast the coefficient varies along time . Here we take the exponential function by assuming the correlation between and to be at least subgaussian. If in a given video, the -th action signal is a high frequency component, then its coefficient will behave like a random number for time skip . Therefore, we would expect that the correlation between and is close to 0. Or if the action signal is a low frequency component, the correlation indicator should be close to . For the sake of simplicity, we rearrange latent action signal by their frequency to have .
Corollary 1 shows that when the actions in the video span across a vast dynamic range (large M), the feature extractor with single tends to have ill-conditioned feature matrices. A naive solution to this problem is to increase to reduce the condition number in expection. However, this will increase the variance of because of a smaller number of features. In practice, a large also increases the difficulty in optical flow calculation and tracking. Hence, as will also be observed in our experiments, choosing a good can be fairly difficult. Intuitively speaking, selecting is a trade-off between feature bias and variance. A feature extractor with a large 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 will generate features with large bias but small variance.
2 Condition Number of P under Multiple τ𝜏\tau
Assuming we have features extracted from . For skip, the number of extracted features is . 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 improvement over the baseline method on most of the datasets except Olympics Sports. For classification, we use a linear SVM classifier with a fixed 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 MAcc, MAP, MAcc and respectively. These numbers are higher than Wang & Schmid ’s results, which are , , and , 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 to and then decrease rapidly, similar patterns can be seen in other datasets except some of them do not increase at . These results consist with our observation that different actions need different scale ranges. They also substantiate our proof that selecting time interval 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 and , 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 , 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 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 MAcc in HMDB51 and 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 . We only test MIFS with 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 . From Table 4, we can see that for both MEDTEST13 and MEDTEST14, MIFS representations consistently improve over the original-scale representation by about in both EK100 and EK10. It is worth emphasizing that MED is such a challenging task that 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 , the cost becomes 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. shows the results of only using features from every 2nd frame and 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 -th row, -th column of ,
The equalities in Eq. (21) and Eq. (22) come from the fact that is assumed to be an independent and indentical sample from the column distribution of .
By Bernstein’s Matrix inequality (Theorem 1), with probability at least , we have
2 Proof of Theorem 2
The proof is similar to Theorem 1, except that is sampled from different distribution. To borrow the proof in Theorem 1, the distribution of has components. The -th component is sampled from skip with probability where is the total number of features. Based on this observation, we have: