Log-Euclidean Bag of Words for Human Action Recognition

Masoud Faraki, Maziar Palhang, Conrad Sanderson

Abstract

This paper introduces the Log-Euclidean Bag of Words (LE-BoW) framework, a novel approach to human action recognition that bridges the gap between powerful covariance-based descriptors and the popular Bag of Words (BoW) model. By mapping descriptors from their natural, curved Riemannian manifold into a flat Euclidean space via a matrix logarithm, the authors enable standard machine learning tools to achieve state-of-the-art accuracy on challenging video datasets.

Introduction

In computer vision, representing videos using local features—such as motion or appearance—is standard practice. However, simply collecting these features often results in noisy, high-dimensional data. Covariance matrices have emerged as an elegant solution: they capture second-order statistics, fuse different feature types naturally, and are robust to noise.

Despite their effectiveness, covariance matrices present a geometric challenge. They are Symmetric Positive Definite (SPD) matrices, meaning they do not reside in a flat Euclidean space but rather on a curved Riemannian manifold. Applying standard "flat" mathematics, such as calculating an arithmetic mean for k-means clustering, leads to the "swelling effect," where the resulting average has a larger determinant than any of the original samples. This geometric mismatch results in poor discrimination. The LE-BoW framework addresses this by respecting the non-Euclidean geometry of the data without incurring prohibitive computational costs.

Conceptual representation of a tangent space $T_P\mathcal{M}$ to a Riemannian manifold $\mathcal{M}$ at point $P$. This illustrates the mapping from a curved space to a flat Euclidean space.

Methodology

The proposed LE-BoW pipeline consists of three primary stages designed to transform raw video data into a robust global representation:

  1. Feature Extraction: The system densely samples trajectories in videos and computes Histograms of Optical Flow (HOF). These features are then used to form $72 \times 72$ covariance matrices for local spatio-temporal blocks.
  2. Log-Euclidean Mapping: To handle the manifold geometry, the authors utilize a diffeomorphism (a smooth, invertible mapping). Specifically, they apply the principal matrix logarithm to the SPD matrices. This "flattens" the manifold into a tangent space—a Euclidean vector space—where standard operations like addition and subtraction become valid.
  3. Encoding Strategies: Once in the Euclidean space, three encoding strategies are employed to generate the final video representation:
  4. Hard Assignment (HA): Assigns each descriptor to the nearest "visual word."
    • Spatio-Temporal Pyramids (STP): Retains structural information by dividing the video into grids and concatenating histograms from each cell.
  5. Sparse Coding (SC): Represents each descriptor as a sparse linear combination of dictionary atoms, providing superior reconstruction at a higher computational cost.
Overview of the LE-BoW pipeline, illustrating the flow from feature extraction and covariance computation to manifold mapping and final histogram encoding.

Key Insights and Results

The core contribution of this work is the demonstration that geometry is a first-class citizen in feature representation. Treating matrices as flat vectors limits performance, whereas the Log-Euclidean approach provides a mathematically rigorous yet efficient correction. By using the matrix logarithm as a bridge, researchers can leverage "off-the-shelf" Euclidean algorithms (like standard k-means and SVMs) on non-Euclidean data.

The LE-BoW approach consistently outperformed previous state-of-the-art methods across three benchmark datasets:

  • KTH: Achieved 97.4% accuracy using Sparse Coding, surpassing the previous best of 95.3%.
  • Olympic Sports: Reached a Mean Average Precision (MAP) of 80.6% using Spatio-Temporal Pyramids.
  • Activity of Daily Living (ADL): Achieved 91.3% accuracy, improving upon the previous 89% benchmark.

Notably, the authors found that while Sparse Coding is the most accurate, it is computationally intensive (33 seconds per video). Spatio-Temporal Pyramids offered a "sweet spot," providing high accuracy in just 1.2 seconds per video.

Limitations and Future Work

While effective, the framework has limitations. Sparse Coding remains a computational bottleneck for real-time applications. Additionally, the STP encoding is sensitive to grid selection; grids that are too fine can lead to rank deficiency in covariance matrices, resulting in impoverished histograms. Future research may focus on extending these Riemannian tools to more complex deep learning architectures, moving beyond the traditional Bag of Words model.

Summary updated

BibTeX
@article{faraki2015log,
  author = {Masoud Faraki and Maziar Palhang and Conrad Sanderson},
  title = {{Log-Euclidean Bag of Words for Human Action Recognition}},
  journal = {Iet Comput. vis},
  year = {2015},
  doi = {10.1049/iet-cvi.2014.0018},
}
Figure