TL;DR
This paper introduces a novel approach to efficiently detect spatio-temporal features in videos by learning a classifier that mimics existing feature detectors. This method allows for frame-rate detection of complex features, independent of their original formulation, by extending the "Ferns" classifier to the spatio-temporal domain.
What Problem Does This Paper Address?
Recognizing actions in videos is a challenging task due to factors like occlusion, cluttered backgrounds, camera motion, and variations in scale and illumination. A common strategy is to extract local spatio-temporal interest points and encode them with robust descriptors. However, existing methods for detecting these interest points can be computationally expensive, hindering real-time applications. This paper aims to bridge this gap by developing a generic, computationally efficient classifier that can learn to detect these features accurately, regardless of the complexity of the original detection algorithm.
Methods
The core of this paper is the extension of the "Ferns" classifier, a non-hierarchical structure based on ordered binary tests, to the spatio-temporal domain. Instead of comparing single pixel intensities, the proposed method defines a "node" as a comparison between the sums of two normalized subpatches within a spatio-temporal "cuboid" (a volume of pixels around an interest point). These subpatches are randomly sized and located within the cuboid, and their sums are calculated efficiently using integral images.
The training process involves feeding detected feature cuboids to the classifier. Each node in a fern performs a test, generating a binary digit. The combination of these digits forms a binary code, which is converted to a decimal value. Histograms of these decimal values are built for each class (e.g., "feature" vs. "background") to create probability distributions. Multiple ferns are trained to improve robustness.
For classification, a scanning window moves across the video. The fern classifier is applied to the region within the window. The decimal value obtained from the node tests determines a bin in the class distributions. The class with the highest likelihood, derived from combining probabilities across ferns, is selected. This approach allows for frame-rate processing by using integral images for fast subpatch sum calculations and a scanning window.
Datasets
The KTH video dataset is used for training and evaluation. This dataset contains videos of 25 persons performing six actions (boxing, hand waving, walking, running, jogging, and hand clapping) across four scenarios with varying conditions (static background, scale variations, different clothing, and illumination changes). The authors use 8 persons for training, 9 for testing, and the remainder for validation.
Key Insights and Ideas
- Classifier Mimicry for Efficiency: The fundamental idea is that a complex feature detector can be "learned" by a simpler, faster classifier. This decouples detection speed from the inherent complexity of the original feature formulation.
- Ferns in Spatio-Temporal Domain: Extending the Ferns classifier to handle spatio-temporal data (cuboids) without significantly increasing computational overhead is a key novelty.
- Subpatch Sum Comparisons: Using sums of subpatches, rather than individual pixel comparisons, makes the classifier more robust to scale variations.
- Generic Approach: The method is presented as a generic framework, capable of learning to detect features identified by different underlying detectors (e.g., Laptev and Dollar's methods).
- Frame-Rate Performance: The proposed classifier, implemented in C++ and utilizing integral images, achieves frame-rate processing on the KTH dataset, a significant improvement for real-time applications.
Key Results
- The spatio-temporal Fern classifier achieves high detection rates, often exceeding 95% for Dollar features with less than 5% error across various scenarios.
- For Laptev features, the classifier achieves approximately 90% equal error rates, with a slight drop to 85% in scenarios with illumination variations. This is attributed to the more localized nature of Laptev features compared to Dollar's.
- The classifier demonstrates robustness to scale variations, performing comparably across different scenarios even when trained at a single scale.
- The method shows invariance to action type, as demonstrated by successful detection of walking features when trained on boxing features.
- The classifier achieves comparable performance to the original feature detectors while operating at frame rate.
Limitations and Future Work
- Matlab Implementation: The original Dollar and Laptev detectors are implemented in Matlab, which is noted as being slower than the C++ implementation of the proposed classifier. While the proposed classifier is fast, further optimization could be achieved by optimizing the original detectors or the classifier's parameters (number of ferns and nodes).
- Classifier Optimization: The paper suggests that optimizing the spatio-temporal support region of the classifier for different features could further improve performance.
- Early Rejection: Ferns can be structured to allow for early rejection of classifications with low cumulative likelihood, which could further speed up processing.
- Scale and Temporal Variations: While the classifier shows robustness to scale changes, future work could investigate more explicit handling of varying spatio-temporal scales during training and detection.
Summary updated