arXiv:2611.12090cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12090

TSFFormer: A Frequency-Domain Spike Transformer for Green Human Activity Recognition

Jiale Deng, Shuiying Xiang

Abstract

Wearable Inertial Measurement Units (IMUs) enable pervasive Human Activity Recognition (HAR), but traditional Deep Neural Networks (DNNs) suffer from an “arithmetic-latency deadlock” due to dense floating-point MAC operations. While Spiking Neural Networks (SNNs) offer ultra-low power, existing ones face spatial blind spots, rigid neurons, and gradient degradation. To address these, we propose TSF-Former, a purely spiking Fourier Transformer for Green HAR. It introduces two key innovations: (1) a Multi-HeadFourier attention that performs frequency-domain global mixing, reducing complexity from O(V2)O(V^2) to O(Vlog⁡V)O(V \log V), eliminating spatial blind spots, and saving ~50% GPU memory; and (2) a dual-compartment Temporal Spiking LIF (TSLIFNode) that utilizes dynamic thresholds to adapt to non-stationary rhythms and mitigate gradient degradation. Extensive experiments on 8 public IMU benchmarks demonstrate that TSFFormer surpasses state-of-the-art SNNs and even the classic DeepConvLSTM, achieving a ~3× faster training speed with an energy footprint of 0.1 pJ. Ablation studies confirm the synergistic effect of our modules, providing a highly accurate, ultra-low-power event-driven paradigm for wearable sensing.

1. Introduction

HAR using IMUs is a cornerstone of pervasive computing[24]. Over the past decade, the field has evolved from hand-crafted features and shallow classifiers to DNNs and, more recently, heavy Transformer-based foundation models [22]. However, this relentless pursuit of accuracy has spawned a critical bottleneck in edge deployment: the arithmetic-latency deadlock. DNNs rely on dense 32-bit floating-point (FP32) Multiply-Accumulate (MAC) operations (~4.6 pJ per

step) and rigid “buffer-then-compute” paradigms, resulting in prohibitive power consumption and observation latency that make always-on HAR impractical.

SNNs offer a neuromorphic alternative by replacing dense MACs with sparse Accumulate (AC) operations (~0.1 pJ) [2]. Despite this efficiency, applying SNNs to IMU-based HAR faces severe limitations: (1) Spatial blind spots: naive SNNs flatten sensor data, ignoring human biomechanical topology[24]. (2) Neural rigidity: standard Leaky Integrate-and-Fire (LIF) neurons use fixed thresholds, failing to adapt to non-stationary motion rhythms[6]. (3) Gradient degradation: training long sequences via BPTT forces models to rely on long integration windows, precluding low-latency inference.

To bridge these gaps, we propose TSFFormer, a purely spiking Fourier Transformer for Green HAR. It integrates a Temporal Spiking LIF (TSLIF) neuron to dynamically modulate firing thresholds, and a Multi-HeadFourier attention [7] to efficiently capture global spatio-temporal dependencies in the frequency domain. Combined with a non-downsampling Patch Embedding (MS-SPS) to preserve spatial topology, TSFFormer fundamentally resolves the aforementioned limitations. Our main contributions are:

  • Purely Spiking Fourier Paradigm: We propose TSF-Former, a HAR architecture that deeply fuses spiking neural networks with Fourier attention. This model significantly reduces the operation energy consumption and greatly improves the inference speed.
  • Dual-Adaptive Spatio-Temporal Core: We used a dual adaptive core. The TSLIF neuron prevents catastrophic accuracy drops caused by fixed thresholds. Meanwhile, MultiHeadFourier reduces complexity from O(V2)O(V^2) to O(Vlog⁡V)O(V \log V), accelerating training by ~3× and saving ~50% GPU memory.
  • Topology-Preserving Sparse Computation: We adopt MS-SPS for channel mapping and keep the vertex dimension unchanged, so as to completely

preserve the spatial structure of sensor nodes. Combined with the sparse event-driven characteristics of spiking MLP, the model greatly reduces redundant computations while maintaining high accuracy.

References (27)