MMA: A Momentum Mamba Architecture for Human Activity Recognition with Inertial Sensors

Thai-Khanh Nguyen, Uyen Vo, Tan M. Nguyen, Thieu N. Vo, Trung-Hieu Le, Cuong PhamarXiv 2025 · DOI

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.

The MomentumMamba architecture integrates a velocity state ($v_n$) to stabilize hidden state ($h_n$) updates, alongside a 1D-CNN front-end for local feature extraction.

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:

  1. Heavy-Ball Momentum: Basic second-order dynamics for stabilized flow.
  2. Complex Momentum Mamba: Uses complex-valued momentum to act as a frequency-selective filter, ideal for rhythmic motions like walking.
  3. 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:

Summary of the MuWiGes, UESTC-MMEA-CL, and MMAct datasets used for evaluation.

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

Abstract

Human activity recognition (HAR) from inertial sensors is essential for ubiquitous computing, mobile health, and ambient intelligence. Conventional deep models such as Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), and transformers have advanced HAR but remain limited by vanishing or exloding gradients, high computational cost, and difficulty in capturing long-range dependencies. Structured state-space models (SSMs) like Mamba address these challenges with linear complexity and effective temporal modeling, yet they are restricted to first-order dynamics without stable longterm memory mechanisms. We introduce Momentum Mamba, a momentum-augmented SSM that incorporates second-order dynamics to improve stability of information flow across time steps, robustness, and long-sequence modeling. Two extensions further expand its capacity: Complex Momentum Mamba for frequency-selective memory scaling. Experiments on multiple HAR benchmarks demonstrate consistent gains over vanilla Mamba and Transformer baselines in accuracy, robustness, and convergence speed. With only moderate increases in training cost, momentum-augmented SSMs offer a favorable accuracy-efficiency balance, establishing them as a scalable paradigm for HAR and a promising principal framework for broader sequence modeling applications.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MuWiGesMomentum MambaAccuracy98.43%Human Activity Recognition · split: test · overlap=50% · modality=inertial-sensors · window-length=512
Source quote
L450: Momentum Mamba (Ours) │ 98.43 │ 98.56 │ 98.26 │ 98.41
UESTC-MMEA-CLMomentum MambaAccuracy92.32%+3.56 vs baselineHuman Activity Recognition · split: test · overlap=50% · modality=inertial-sensors · window-length=512
Source quote
L471: Momentum Mamba (Ours) │ 92.32 │ 92.10 │ 92.60 │ 92.39
MMActMomentum MambaAccuracy75.49%+3.63 vs baselineHuman Activity Recognition · split: test · overlap=50% · modality=inertial-sensors · window-length=512
Source quote
L492: Momentum Mamba (Ours) │ 75.49 │ 75.86 │ 75.10 │ 75.45
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
UESTC-MMEA-CLVanilla Mamba baselineAccuracy88.76%Human Activity Recognition · split: test · overlap=50% · modality=inertial-sensors · window-length=512
Source quote
L469: Vanilla Mamba │ 88.76 │ 88.30 │ 89.20 │ 88.73
MMActVanilla Mamba baselineAccuracy71.86%Human Activity Recognition · split: test · overlap=50% · modality=inertial-sensors · window-length=512
Source quote
L490: Vanilla Mamba │ 71.86 │ 72.24 │ 71.56 │ 71.83
BibTeX
@misc{nguyen2025mma,
  author = {Thai-Khanh Nguyen and Uyen Vo and Tan M. Nguyen and Thieu N. Vo and Trung-Hieu Le and Cuong Pham},
  title = {{MMA: A Momentum Mamba Architecture for Human Activity Recognition with Inertial Sensors}},
  year = {2025},
  eprint = {2511.21550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.21550},
}
Figure