TL;DR
This paper introduces SGN-SHA, a novel lightweight neural network for skeleton-based action recognition. By replacing the computationally expensive Graph Convolutional Network (GCN) in the joint-level module of the Semantic-Guided Neural Network (SGN) with a Single Head Attention (SHA) mechanism, the authors achieve comparable accuracy with significantly reduced parameters and computational complexity, enabling real-time action recognition on low-end devices.
What Problem Does This Paper Address?
Human action recognition, particularly from skeletal data, is crucial for applications like human-computer interaction, surveillance, and augmented reality. While existing methods like Semantic-Guided Neural Networks (SGNs) offer good performance, they often suffer from high computational complexity and a large number of parameters due to their reliance on Graph Convolutional Networks (GCNs). GCNs, while effective at capturing global spatial features, can be inefficient for local dependencies between joints, and their structure leads to increased computational overhead, hindering real-time applications on resource-constrained devices. This paper aims to bridge this gap by developing a lightweight action recognition model that maintains high accuracy while drastically reducing computational demands.
Methods
The core innovation of this work lies in the modification of the SGN architecture. The proposed SGN-SHA model retains the overall structure of the SGN, which consists of three sequential modules: Dynamic Representation (DR), Joint-Level, and Frame-Level.
- Dynamic Representation (DR) Module: This module processes joint positions and velocities to create an initial feature representation. This part is largely similar to the original SGN.
- Joint-Level Module (Novelty): This is where the primary change occurs. Instead of using multiple GCN layers as in the original SGN, the authors replace this with a Single Head Attention (SHA) mechanism. The SHA module, inspired by transformers, takes the joint features (combined with joint type information) and computes attention scores between joints. This allows the model to focus on important joint relationships and capture both global and local spatial features more efficiently. The SHA module uses Query, Key, and Value matrices derived from the input features, and the attention is calculated via scaled dot-product. A residual network is also incorporated to prevent feature loss and emphasize embedded features.
- Frame-Level Module: This module processes the output from the joint-level module to capture temporal dependencies across frames, using spatial and temporal pooling, and CNNs.
The key advantage of replacing GCNs with SHA is its ability to learn spatial features more efficiently, leading to a significant reduction in parameters and computational complexity without sacrificing accuracy.
Datasets
The proposed SGN-SHA model was evaluated on three widely used skeleton-based action recognition datasets:
- NTU-RGB+D 60 (NTU60): A benchmark dataset with 60 action classes, collected from 40 subjects, featuring depth maps, 3D skeletal joint positions, RGB frames, and infrared sequences. It uses cross-subject (XSub) and cross-view (XView) evaluation protocols.
- NTU-RGB+D 120 (NTU120): An extension of NTU60, featuring 120 action classes from 106 subjects. It uses cross-subject (XSub) and cross-setup (XSet) evaluation protocols.
- NW-UCLA DB: A dataset containing RGB, depth, and human skeletal data with 10 action categories performed by 10 people.
Key Insights and Ideas
- Attention for Efficient Spatial Feature Learning: The paper demonstrates that a Single Head Attention mechanism can effectively replace computationally intensive GCNs for capturing spatial relationships between joints in skeleton-based action recognition. This is a significant insight for designing lightweight models.
- Balancing Accuracy and Efficiency: The core idea is that by focusing attention on relevant joint interactions, the model can achieve comparable accuracy to more complex GCN-based methods while drastically reducing computational cost. This is crucial for deploying action recognition systems on edge devices.
- SHA's Advantage over MHA: The authors argue that while Multi-Head Attention (MHA) is powerful, some heads might attend to irrelevant parts. Using SHA, they can still achieve good performance with fewer parameters and lower complexity, suggesting that for this specific task, a single, well-tuned attention mechanism is sufficient.
- Real-time Potential: The significant reduction in parameters and GFLOPS directly translates to the potential for real-time action recognition, a critical requirement for many practical applications.
Key Results
The SGN-SHA model demonstrated strong performance across the evaluated datasets:
- NTU60: Achieved an accuracy of 87.5% (XSub) and 92.6% (XView). Crucially, it reduced the number of parameters by approximately 50% and computational complexity (GFLOPS) by 2.6-fold compared to the base SGN. It also showed a significant reduction in parameters and GFLOPS compared to other state-of-the-art methods, while maintaining competitive accuracy.
- NTU120: Achieved an accuracy of 78.5% (XSub) and 87.1% (XSet). Again, it exhibited the smallest number of parameters (0.32M) and the lowest GFLOPS (0.062) among the compared methods, highlighting its efficiency.
- NW-UCLA: Showed a slight improvement in overall accuracy (92.6%) compared to the base SGN (92.5%), with comparable performance across detailed action classes, despite having fewer parameters and lower computational complexity.
- Attention Heads Experiment: Increasing the number of attention heads improved accuracy slightly but led to an exponential increase in parameters and computational complexity, reinforcing the benefit of using a single head for efficiency.
Limitations and Future Work
- Accuracy vs. Top Performers: While SGN-SHA achieves competitive accuracy, it is noted that methods like Info-GCN sometimes achieve higher accuracy, albeit at a much greater computational cost. The paper emphasizes the trade-off between accuracy and efficiency.
- Future Work: The authors plan to expand their research to develop a real-time action recognition model that further reduces computational complexity and improves performance by fusing skeleton sequences with RGB video frames. This suggests a multimodal approach for future enhancements.
Summary updated