[Paper Review] ViT-ReT: Vision and Recurrent Transformer Neural Networks for Human Activity Recognition in Videos
This paper proposes ViT-ReT, a novel hybrid neural network combining a Vision Transformer (ViT) for spatial feature extraction and a Recurrent Transformer (ReT) for temporal sequence modeling to improve human activity recognition in videos. The approach achieves comparable accuracy to CNN-RNN models but with significantly faster inference and lower memory usage, demonstrating the potential of Transformers as efficient, scalable alternatives for real-time and edge-compatible activity recognition systems.
Human activity recognition is an emerging and important area in computer vision which seeks to determine the activity an individual or group of individuals are performing. The applications of this field ranges from generating highlight videos in sports, to intelligent surveillance and gesture recognition. Most activity recognition systems rely on a combination of convolutional neural networks (CNNs) to perform feature extraction from the data and recurrent neural networks (RNNs) to determine the time dependent nature of the data. This paper proposes and designs two transformer neural networks for human activity recognition: a recurrent transformer (ReT), a specialized neural network used to make predictions on sequences of data, as well as a vision transformer (ViT), a transformer optimized for extracting salient features from images, to improve speed and scalability of activity recognition. We have provided an extensive comparison of the proposed transformer neural networks with the contemporary CNN and RNN-based human activity recognition models in terms of speed and accuracy.
Motivation & Objective
- To address the limitations of current CNN-RNN models in human activity recognition, particularly their high computational complexity and slow inference times.
- To explore the potential of Transformer neural networks (TNNs) as a lightweight, scalable alternative to deep residual CNNs and RNNs in video-based activity recognition.
- To evaluate the performance of a Recurrent Transformer (ReT) and Vision Transformer (ViT) combination in terms of accuracy, speed, and memory efficiency on video activity recognition tasks.
- To demonstrate the feasibility of deploying TNN-based models on resource-constrained edge and IoT devices for real-time applications.
Proposed method
- The model uses a Vision Transformer (ViT) to extract spatial features from individual video frames by dividing them into patches and applying learnable positional embeddings and multi-head self-attention.
- A Recurrent Transformer (ReT) is employed to model temporal dependencies across sequences of video frames, leveraging self-attention mechanisms to capture long-range temporal relationships.
- The ViT and ReT components are stacked sequentially: ViT processes each frame independently, and ReT processes the resulting sequence of features to make final predictions.
- The architecture is trained end-to-end using standard cross-entropy loss and optimized via backpropagation with Adam or similar optimizers.
- The method avoids heavy residual connections and complex hierarchical feature learning used in ResNet, relying instead on attention-based feature aggregation.
- Model efficiency is evaluated through inference speed, memory consumption, and parameter count, comparing against standard CNN-RNN baselines.
Experimental results
Research questions
- RQ1Can a Vision Transformer (ViT) effectively extract spatial features from video frames for human activity recognition, outperforming or matching CNN-based feature extractors?
- RQ2Can a Recurrent Transformer (ReT) model capture temporal dependencies in video sequences more efficiently than traditional RNNs like LSTMs or GRUs?
- RQ3Does combining ViT and ReT yield a model that maintains high accuracy while significantly improving inference speed and memory efficiency compared to CNN-RNN pipelines?
- RQ4To what extent can TNNs replace traditional CNN and RNN components in end-to-end human activity recognition systems?
Key findings
- The ReT model achieves accuracy comparable to traditional RNN-based classifiers while being faster and more memory-efficient, demonstrating the viability of Transformers for sequential modeling in activity recognition.
- The ViT-ReT pipeline significantly outperforms conventional CNN-RNN models in inference speed and memory efficiency, making it suitable for deployment on edge and IoT devices.
- The combination of ViT for spatial feature extraction and ReT for temporal modeling enables a more scalable and parallelizable architecture than traditional deep CNN and RNN stacks.
- The proposed model maintains high accuracy even when replacing complex residual CNNs and RNNs, suggesting that self-attention mechanisms can effectively replace hierarchical feature learning in video understanding.
- The results indicate that TNNs can be a strong alternative to CNN-RNN pipelines, especially in real-time and resource-constrained environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.