Abstract
Understanding Activities of Daily Living (ADL) is a critical challenge for assistive robotics, requiring the detection of subtle human motions often obscured by background clutter or varying viewpoints. We present the Pose-aware Attention Block (PAAB), a plug-and-play module designed for Vision Transformers (ViTs). By leveraging 2D pose keypoints as spatial priors, PAAB directs the model's attention toward human-centric regions, significantly enhancing performance in action recognition and multi-view robotic video alignment. Our approach outperforms standard ViT backbones by up to 21.8% on alignment tasks and sets new benchmarks for cross-view ADL recognition.
Introduction
As the global population ages, the demand for robots capable of assisting with tasks such as eating, dressing, and medication management increases. Unlike the high-energy actions common in web-scale video datasets (e.g., sports), ADLs are characterized by fine-grained, subtle movements. Standard Vision Transformers (ViTs) often struggle with these tasks because they process all image patches uniformly, failing to prioritize the human-centric details necessary for accurate activity understanding.
Existing solutions frequently rely on specialized 3D sensors or complex, non-transferable architectures. This research introduces a method to "teach" standard ViTs to prioritize human pose by integrating 2D keypoints into the attention mechanism without requiring a complete architectural overhaul.
Methodology: Pose-aware Attention Block (PAAB)
The core contribution is the Pose-aware Attention Block (PAAB), a modular component that can be inserted into pre-trained ViT backbones like TimeSformer or DeiT.
Pose Map Construction and Localized Attention
The process begins by extracting 2D keypoints using off-the-shelf pose estimators (e.g., OpenPose). These keypoints are mapped onto the ViT’s patch grid to create a binary "pose map." Patches containing keypoints are designated as "pose tokens," while others are "non-pose tokens."
The PAAB performs self-attention exclusively on these pose tokens. By masking non-pose patches during this step, the model is forced to learn the intricate relationships between different body parts. Crucially, PAAB does not alter the token sequence length, ensuring compatibility with existing architectures.
Architectural Variants and Integration
The authors explored several variants of the attention mechanism:
- Joint (PA-STA): Spatio-temporal attention across all pose tokens in all frames.
- Spatial (PA-SA): Attention restricted to pose tokens within a single frame.
- Spatio-temporal (Factorized PA-STA): A sequential approach applying temporal attention followed by pose-aware spatial attention.
Ablation studies indicated that PAAB is most effective when integrated into the later layers of the transformer (e.g., after layer 12). This suggests that early layers are best suited for general feature extraction, while later layers benefit from the refinement provided by pose-centric priors.
Experimental Results
The proposed method was evaluated across seven datasets covering action recognition and robotic video alignment.
Action Recognition
On the Toyota Smarthome (SH) dataset, which features real-world videos of elderly individuals, PAAB improved mean Class Accuracy (mCA) by 3.0% over the TimeSformer baseline. It also achieved state-of-the-art results on the NTU-RGB+D and Northwestern-UCLA datasets, demonstrating superior cross-view robustness.
Multi-view Robotic Video Alignment
The most significant improvements occurred in robotic alignment tasks (Minecraft, Pick, Can, and Lift). On the Minecraft dataset, PAAB reduced alignment error by 21.8% compared to a standard DeiT backbone. This success highlights the model's ability to create view-invariant representations by focusing on the essential human (or robotic) pose.
Robustness and Disentanglement
The model demonstrated remarkable robustness to noise in pose estimation. Even with significant pixel offsets in keypoint locations, PAAB-equipped models consistently outperformed baselines. Furthermore, latent space analysis showed that PAAB effectively "disentangles" pose features from background features, leading to more discriminative representations.
Conclusion and Future Work
The Pose-aware Attention Block provides a simple yet powerful "smart plugin" for general-purpose Vision Transformers. By focusing on human-centric regions, it bridges the gap between general video classification and fine-grained ADL understanding.
Future research will explore extending the pose map to include human-object interactions, as many ADLs involve tools or utensils. Additionally, the success in robotic alignment suggests that PAAB could be a foundational component for behavioral cloning, enabling robots to learn complex tasks directly from human demonstrations.
Summary updated