Modelling Temporal Information Using Discrete Fourier Transform for Video Classification

Haimin Zhang, Min Xu, Changsheng Xu, Ramesh C. JainarXiv 2016

Abstract

Video classification requires capturing both spatial content and temporal dynamics. This paper introduces a method that models the "rhythm" of a video by transforming deep learning features into the frequency domain using the Discrete Fourier Transform (DFT). By combining static CNN features with these frequency-based temporal features and employing cubic interpolation for length normalization, the proposed approach achieves state-of-the-art results in video emotion classification and competitive performance in action recognition.

Introduction

While Deep Convolutional Neural Networks (CNNs) have mastered static image recognition, video classification remains a significant challenge. A video is more than a stack of images; the timing and order of frames carry essential meaning. For example, the visual difference between sitting down and standing up is purely temporal. Existing solutions like Dense Trajectories are computationally expensive, while LSTMs are difficult to train. This paper proposes a middle ground: a computationally efficient method that captures temporal dynamics and handles varying video lengths gracefully.

Proposed Method

The proposed pipeline consists of five main steps to bridge the gap between static features and temporal dynamics:

  1. Feature Extraction: High-dimensional feature vectors are extracted for every frame using pre-trained CNNs (e.g., VGG-16) or C3D networks.
  2. The Fourier Flip: Each dimension of the feature vector is treated as a discrete signal over time. Applying a Discrete Fourier Transform (DFT) moves the data from the time domain to the frequency domain, capturing how visual features change over time.
  3. Interpolation: To handle videos of different lengths, cubic interpolation is used to resize frequency representations to a fixed length, ensuring consistency across the dataset.
  4. Feature Pooling & Encoding: Frame-level signals are aggregated into a single "video-level" descriptor using encoding methods like Average Pooling, Fisher Vectors (FV), or VLAD.
  5. Late Fusion & Classification: Static CNN features are combined with temporal DFT features and fed into a Support Vector Machine (SVM) for final classification.
Overview of the proposed video classification pipeline, highlighting the transition from the time domain to the frequency domain via DFT.

Experimental Results

The method was evaluated on two benchmarks: VideoEmotion-8 for emotion recognition and UCF-101 for action recognition.

Emotion Recognition

On the VideoEmotion-8 dataset, the combination of CNN and DFT features using Fisher Vector (FV) encoding achieved an average accuracy of 70.2%. This represents a substantial improvement over previous benchmarks, which typically ranged between 46% and 51%. The results demonstrate that the frequency domain effectively captures the emotional arcs present in user-generated videos.

Performance comparison of the proposed CNN+DFT method against existing state-of-the-art techniques on the VideoEmotion-8 dataset.

Action Recognition

On the UCF-101 dataset, the method reached 84.1% accuracy. While slightly behind models utilizing complex optical flow, this approach is significantly faster to compute and remains highly competitive. A key insight is the complementary nature of the features: CNNs identify what is in the scene, while DFT identifies how it moves.

Conclusion

The use of DFT to model temporal information provides a robust, efficient, and length-invariant descriptor for video classification. While the boost is smaller when using features that already incorporate some temporal data (like C3D), the method proves highly effective for standard 2D CNN features. Future work could explore the integration of optical flow or fine-tuning the base networks specifically for video tasks to further enhance performance.

Summary updated

BibTeX
@misc{zhang2016modelling,
  author = {Haimin Zhang and Min Xu and Changsheng Xu and Ramesh C. Jain},
  title = {{Modelling Temporal Information Using Discrete Fourier Transform for Video Classification}},
  year = {2016},
  eprint = {1603.06182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.06182},
}
Figure