Abstract
Recognizing and comprehending human actions and gestures is a crucial perception requirement for robots to interact with humans and carry out tasks in diverse domains, including service robotics, healthcare, and manufacturing. Event cameras, with their ability to capture fast-moving objects at a high temporal resolution, offer new opportunities compared to standard action recognition in RGB videos. However, previous research on event camera action recognition has primarily focused on sensor-specific network architectures and image encoding, which may not be suitable for new sensors and limit the use of recent advancements in transformer-based architectures. In this study, we employ a computationally efficient model, namely the video transformer network (VTN), which initially acquires spatial embeddings per event-frame and then utilizes a temporal self-attention mechanism. In order to better adopt the VTN for the sparse and fine-grained nature of event data, we design Event-Contrastive Loss ($L_{EC}$) and event-specific augmentations. Proposed $L_{EC}$ promotes learning fine-grained spatial cues in the spatial backbone of VTN by contrasting temporally misaligned frames. We evaluate our method on real-world action recognition of N-EPIC Kitchens dataset, and achieve state-of-the-art results on both protocols—testing in seen kitchen (74.9% accuracy) and testing in unseen kitchens (42.43% and 46.66% accuracy). Our approach also takes less computation time compared to competitive prior approaches, which demonstrates the potential of our framework EventTransAct for real-world applications of event-camera based action recognition.
Introduction
Action recognition is a cornerstone of human-robot interaction. While traditional RGB cameras have dominated this field, they suffer from inherent limitations: motion blur during high-speed movements, high power consumption, and poor performance in extreme lighting. Event cameras (or Dynamic Vision Sensors) address these issues by recording per-pixel intensity changes asynchronously at microsecond resolution.
Despite these advantages, event data is sparse and fundamentally different from the dense frames used in standard computer vision. Previous attempts to bridge this gap often relied on specialized architectures like Spiking Neural Networks (SNNs) or complex, hand-crafted encoding schemes. These methods frequently fail to capitalize on the rapid advancements in transformer-based architectures. EventTransAct is designed to bridge this gap, adapting the computationally efficient Video Transformer Network (VTN) to the unique characteristics of event streams.
The EventTransAct Framework
The core philosophy of EventTransAct is the decoupling of spatial and temporal learning to maintain high efficiency without sacrificing the fine-grained temporal resolution of event data.
1. Decoupled Architecture
Unlike 3D-CNNs or spatio-temporal transformers that process expensive 3D volumes, EventTransAct utilizes a two-stage process:
- Spatial Encoder: A 2D backbone (such as ViT-B) extracts embeddings for individual event frames. This allows the model to leverage powerful pre-trained weights from the image domain.
- Temporal Encoder: A LongFormer-based transformer aggregates these spatial embeddings over time. This mechanism learns global action dependencies across the sequence, which is vital for distinguishing complex gestures.
2. Event-Contrastive Loss ($L_{EC}$)
To address the sparsity of event data, the authors introduced a specialized intra-instance loss. Standard cross-entropy loss can lead to overfitting when frames are sparse. $L_{EC}$ acts as a regularizer by:
- Maximizing agreement between two differently augmented versions of the same event frame.
- Maximizing disagreement between frames taken from different timestamps within the same video. This forces the spatial backbone to capture subtle, fine-grained features that distinguish specific moments in an action sequence.
3. Event-Specific Augmentations
To ensure robustness across different sensors and motion speeds, the framework employs two specific augmentation strategies:
- Temporal Window Variation ($\rho$): By varying the window used to aggregate events into frames, the model learns to be invariant to event density.
- Random Event Drop: This simulates sensor noise and varying levels of sparsity, forcing the model to identify the most salient features of an action.
Experimental Evaluation
Datasets
The framework was validated on two major benchmarks:
- N-EPIC Kitchens: A large-scale egocentric dataset. The authors used the ESIM simulator to convert the original RGB EPIC Kitchens dataset into event streams, focusing on 8 action classes (e.g., wash, close, pour).
- DVS Gesture: A real-world dataset containing 1,342 instances of 11 hand and arm gestures recorded with a DVS128 camera.
Performance and Efficiency
EventTransAct achieved state-of-the-art results on the N-EPIC Kitchens dataset, reaching 74.9% accuracy in seen environments. Crucially, it demonstrated superior generalization in unseen kitchens, achieving up to 46.66% accuracy, significantly outperforming prior methods like E2(GO). On the DVS Gesture dataset, the model achieved a competitive 97.9% accuracy, matching specialized SNN-based architectures.
From a computational standpoint, EventTransAct is highly efficient. It operates with only 11M parameters, a stark contrast to the 88M parameters required by models like VideoSWIN. This reduction in complexity translates to faster inference speeds and a lower power footprint, making it ideal for deployment on mobile robotic platforms.
Conclusion
EventTransAct demonstrates that general-purpose video transformers, when augmented with domain-specific loss functions and data strategies, can outperform specialized event-based architectures. By decoupling spatial and temporal processing and utilizing Event-Contrastive Loss, the framework provides a scalable, efficient solution for real-time action recognition. Future work will explore self-supervised pre-training techniques and the extension of the framework to action quality assessment, further pushing the boundaries of what is possible with event-based vision.
Summary updated