Wearable-based Human Activity Recognition with Spatio-Temporal Spiking Neural Networks

Yuhang Li, Ruokai Yin, Hyoungseob Park, Youngeun Kim, Priyadarshini Panda

TL;DR

Wearable human activity recognition (HAR) requires processing sensor time series on battery-constrained devices, but standard Artificial Neural Networks (ANNs) demand power-hungry 32-bit floating-point math. This work introduces Spatio-Temporal Spiking Neural Networks (SNNs) to the HAR domain, matching or exceeding state-of-the-art ANN accuracy while cutting energy consumption by up to 94% through sparse, multiplication-free binary spike events.

What Problem Does This Paper Address?

Wearable devices like fitness trackers and smartwatches rely on Human Activity Recognition (HAR) to infer actions (e.g., walking, sitting, falling) from streaming accelerometer and gyroscope signals. While deep neural networks (CNNs, LSTMs, Transformers) eliminate hand-crafted feature engineering, they bring severe drawbacks to edge devices:

  1. High energy footprint: Standard ANNs execute dense, full-precision (32-bit floating-point) multiply-accumulate operations.
  2. Sub-optimal temporal modeling: Standard ReLU activations treat inputs instantaneously and rely entirely on network weights or recurrence to capture temporal correlations, ignoring biological neuron-style temporal dynamics.

Methods

The authors replace conventional ReLU activations in CNN and DeepConvLSTM (DCL) architectures with Leaky-Integrate-and-Fire (LIF) spiking neurons, creating SpikeCNN and SpikeDCL.

  • Temporal Integration: Streaming sensor pre-activations charge the LIF neuron's membrane potential across time steps ($T$). The membrane potential updates via: $$v^{(t+1),\text{pre}} = \tau v^{(t)} + c^{(t)}$$ where $\tau \in [0, 1]$ governs decay and temporal retention, and $c^{(t)}$ is the pre-synaptic input charge.

  • Binary Spike Generation: When the potential crosses a firing threshold $V_{th}$, the neuron emits a discrete binary spike ($s \in \{0, 1\}$). Downstream layers replace floating-point multiplications with simple additions.

  • Membrane Reset: The authors contrast hard-reset (forcing potential back to zero) and soft-reset (subtracting $V_{th}$ from potential to preserve residual history).
  • Surrogate Gradient Training: Because the step-firing function is non-differentiable, backpropagation uses a continuous triangular surrogate gradient function: $$\frac{\partial s}{\partial v} = \max\left(0, 1 - \left|\frac{v}{V_{th}} - 1\right|\right)$$

Datasets

The authors evaluated their models on three benchmark HAR datasets (split 64% train / 16% validation / 20% test):

  • UCI-HAR: 10.3k samples across 6 activities from 30 subjects using 50 Hz tri-axial accelerometer and gyroscope data on a smartphone.
  • UniMB SHAR: 11.7k samples across 17 activities (9 daily living, 6 falls) using tri-axial accelerometer data (up to 50 Hz).
  • HHAR (Heterogeneous HAR): 57k instances across 6 activities from 9 subjects collected from 8 smartphones and 4 smartwatches (50–200 Hz sampling rates).

No new datasets were introduced.

Key Insights and Ideas

  • LIF as an intrinsic temporal filter: Setting the decay factor $\tau = 0$ collapses the network into a memoryless Binary Activation Network (BAN), causing a steep performance drop. Maintaining $\tau > 0$ is essential because the leaky potential naturally acts as a short-term memory register across sensor frames.
  • Soft-reset preserves temporal context: Soft-reset consistently outperformed hard-reset across datasets, demonstrating that retaining residual membrane charge prevents abrupt loss of temporal history.
  • Natural Sparsity Gains: While ReLU layers hover around 50% activation sparsity, LIF neurons operate at roughly 80% sparsity because potentials only exceed $V_{th} > 0$ during salient dynamics.
  • Hyperparameter Sensitivity: Accuracy is far more sensitive to the decay factor $\tau$ than to the firing threshold $V_{th}$. For instance, altering $\tau$ on UniMB SHAR swings accuracy by over 30%, whereas varying $V_{th}$ only changes performance by fractions of a percent (peaking at $V_{th}=0.5$).

Key Results

  • Classification Accuracy:
  • On UCI-HAR, SpikeDCL achieved 98.86% accuracy, outperforming standard DeepConvLSTM (97.87%).
  • On UniMB SHAR, SpikeCNN reached 94.04%, surpassing the baseline CNN (92.38%) by 1.7%.
  • On HHAR, SpikeDCL attained 97.52% vs. 97.15% for DeepConvLSTM.
  • Hardware Energy Reduction: Evaluated using the neuromorphic SATA hardware accelerator simulator, SNNs cut dynamic energy consumption by 93.4% to 94.0% compared to equivalent ANNs.

Limitations and Future Work

  • Hardware Simulation Only: Energy and latency numbers were derived using an architecture simulator rather than on-device measurements on commercial ultra-low-power microcontrollers or physical neuromorphic silicon (e.g., Intel Loihi or SynSense Speck).
  • Hyperparameter Brittleness: The decay parameter $\tau$ strongly dictates accuracy (e.g., dropping to 60.55% when $\tau=1.0$ on SHAR), suggesting that future work should investigate learnable, per-neuron decay rates rather than fixed values.
  • Temporal Windowing Overhead: Processing streaming data over discrete temporal slices adds memory overhead to store membrane potentials across layers, a trade-off that requires further evaluation on severely RAM-limited wearables.

Summary updated

BibTeX
@inproceedings{li2022wearable,
  author = {Yuhang Li and Ruokai Yin and Hyoungseob Park and Youngeun Kim and Priyadarshini Panda},
  title = {{Wearable-based Human Activity Recognition with Spatio-Temporal Spiking Neural Networks}},
  booktitle = {TS4H @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=MW3Ar-Sun3A},
}
Figure