Abstract
Human Activity Recognition (HAR) using wearable inertial sensors is a cornerstone of mobile health and sports analytics. However, modeling long-range dependencies in noisy IMU data remains challenging for existing architectures like CNNs, RNNs, and Transformers. This paper introduces Momentum Mamba (MMA), which integrates second-order "heavy-ball" momentum into the Mamba state-space model. This approach stabilizes gradient flow and improves the capture of long-term temporal patterns without the quadratic complexity of Transformers. Evaluated on three major benchmarks, MMA achieves state-of-the-art performance with minimal computational overhead, making it ideal for edge-based wearable applications.
Introduction: The Challenge of Inertial Sensing
Human Activity Recognition (HAR) relies on Inertial Measurement Units (IMUs)—accelerometers and gyroscopes—to track movement. Modeling this data is difficult because it is inherently noisy and requires understanding patterns over extended time horizons.
Current deep learning approaches face significant trade-offs:
- CNNs lack the receptive field to capture long-term dependencies.
- RNNs suffer from vanishing gradients in long sequences.
- Transformers offer global context but their $O(L^2)$ complexity is prohibitive for battery-constrained wearables.
- Mamba (Selective SSMs) provides $O(L)$ efficiency but its first-order dynamics can be unstable in noisy environments, leading to information loss over very long sequences.
Methods: Momentum Mamba Architecture
The core innovation of this work is the Momentum Mamba (MMA) layer, which reinterprets the Mamba recurrence through the lens of momentum-based optimization.
MMA introduces an auxiliary "velocity" state ($v_n$) inspired by the "heavy-ball" momentum method. This velocity accumulates updates over time, smoothing out high-frequency noise and ensuring that early inputs maintain influence on final predictions. The authors propose three variants:
- Heavy-Ball Momentum: Basic second-order dynamics for stabilized flow.
- Complex Momentum Mamba: Uses complex-valued momentum to act as a frequency-selective filter, ideal for rhythmic motions like walking.
- Adam Momentum Mamba: Incorporates variance-aware adaptivity to handle "bursty" sensor data.
The overall pipeline consists of a 1D-Convolutional front-end for local features, followed by stacked MMA layers and a global average pooling head.
Datasets and Experimental Setup
The model was rigorously tested on three diverse multimodal datasets, summarized below:
These datasets cover a range of activities from fine-grained hand gestures (MuWiGes) to complex daily activities (UESTC-MMEA-CL and MMAct) with varying sensor placements.
Key Results and Insights
MMA consistently outperforms both Transformer-based and vanilla state-space baselines:
- Accuracy: MMA achieved accuracy gains of up to +19.11% over Transformers and +2.77% over vanilla Mamba. On MuWiGes, the Complex MMA variant reached 98.64% accuracy.
- Gradient Stability: Analysis of gradient norms shows that while vanilla Mamba's gradients vanish by step 2048, MMA maintains a robust signal, confirming the efficacy of the momentum pathway.
- Efficiency: The addition of momentum is computationally "cheap," adding less than 0.5% to the parameter count and maintaining the linear-time complexity of SSMs.
Conclusion
Momentum Mamba addresses the stability issues of first-order SSMs by introducing physically-grounded momentum dynamics. This results in a model that is both highly accurate for long-range temporal modeling and efficient enough for real-time deployment on wearable devices. Future work will explore adaptive momentum mechanisms and multimodal integration with visual data.
Summary updated