Skip to main content
QUICK REVIEW

[Paper Review] A spatiotemporal model with visual attention for video classification

Mo Shan, Nikolay Atanasov|arXiv (Cornell University)|Jul 7, 2017
Video Surveillance and Tracking MethodsComputer Science11 references4 citations
TL;DR

This paper proposes a spatiotemporal video classification model integrating visual attention mechanisms—specifically Deformable Convolutional Networks (DCN) and Spatial Transformer Networks (STN)—into a CNN-LSTM architecture to improve robustness against object rotation and scale variations. The DCN-LSTM variant achieves over 99% accuracy on augmented Moving MNIST with rotation, scaling, and elastic deformations, outperforming both LeNet-LSTM and STN-LSTM, demonstrating the superiority of local, learnable feature deformation over global geometric transformation.

ABSTRACT

High level understanding of sequential visual input is important for safe and stable autonomy, especially in localization and object detection. While traditional object classification and tracking approaches are specifically designed to handle variations in rotation and scale, current state-of-the-art approaches based on deep learning achieve better performance. This paper focuses on developing a spatiotemporal model to handle videos containing moving objects with rotation and scale changes. Built on models that combine Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) to classify sequential data, this work investigates the effectiveness of incorporating attention modules in the CNN stage for video classification. The superiority of the proposed spatiotemporal model is demonstrated on the Moving MNIST dataset augmented with rotation and scaling.

Motivation & Objective

  • To improve video classification robustness under geometric transformations like rotation and scale changes common in real-world autonomous systems.
  • To investigate whether visual attention mechanisms can enhance spatiotemporal modeling in video classification beyond standard CNN-RNN architectures.
  • To compare the effectiveness of different attention modules—STN and DCN—on handling object deformations in sequential video data.
  • To evaluate the model’s generalization to articulated objects, such as hand gestures, via elastic deformation augmentation.
  • To demonstrate the feasibility of extending the model to real-world robotic perception tasks involving dynamic, variable-sized, and rotated objects.

Proposed method

  • The model combines a CNN backbone with an LSTM for temporal modeling, replacing max-pooling layers with visual attention modules to improve geometric invariance.
  • Three variants are evaluated: a baseline LeNet-LSTM, STN-LSTM using a localization network to predict global affine transformations, and DCN-LSTM using learnable offsets to deform convolutional kernels locally.
  • The STN module uses a localization network to estimate affine parameters, followed by a grid generator and bilinear sampler to apply spatial transformations.
  • The DCN module introduces learnable offsets to the standard convolutional kernel sampling grid, enabling adaptive, spatially varying receptive fields.
  • The network is trained end-to-end on the augmented Moving MNIST dataset with rotation, scaling, and elastic deformations to simulate real-world motion and hand tremors.
  • A qualitative analysis is conducted to visualize attention outputs and diagnose failure modes, particularly the inability of global STN to attend to multiple independently moving objects.

Experimental results

Research questions

  • RQ1Can visual attention mechanisms improve video classification performance under object rotation and scale variations compared to standard CNN-RNN models?
  • RQ2How do different attention mechanisms—STN (global) versus DCN (local)—compare in handling geometric transformations in video data?
  • RQ3Does the integration of attention modules lead to better generalization on challenging data with complex deformations, such as hand-drawn digit gestures?
  • RQ4Why does STN-LSTM underperform despite its ability to normalize spatial configurations, especially when multiple objects are present?
  • RQ5Can the proposed model be extended to recognize articulated or deformable objects such as hands in natural motion?

Key findings

  • DCN-LSTM achieves 99.30% accuracy on digit gesture recognition with elastic deformation, significantly outperforming LeNet-LSTM (97.19%) and STN-LSTM (97.19%).
  • On the augmented Moving MNIST dataset, DCN-LSTM maintains accuracy above 99% across all transformation types, including rotation, scaling, and combined transformations.
  • STN-LSTM performs poorly on scaled images and struggles with multiple objects due to its global transformation, achieving the lowest accuracy among all models.
  • LeNet-LSTM shows consistent but lower performance across all augmentations, indicating that max-pooling offers limited robustness to large-scale changes.
  • Qualitative analysis reveals that STN’s global transformation distorts object relationships—e.g., zooming out when digits are far apart—hurting classification accuracy.
  • The results suggest that local, learnable deformation (DCN) is more effective than global, rigid transformation (STN) for modeling complex, variable geometric changes in video sequences.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.