HarmonICA: Quasi-Time-Invariant ICA for Motor Unit Decomposition during Dynamic Contractions

Alexander Kenneth Clarke, Dimitrios Halatsis, Agnese Grison, Irene Mendez Guerra, Noura Ezaz-Nikpay, Pranav Mamidanna, Shihan Ma, Silvia Muceli, Dario FarinaNeurIPS 2026

TL;DR

Reading individual spinal motor neuron spikes from skin-surface electrodes is the holy grail for controlling next-generation prosthetics and exoskeletons, but standard algorithms fail the moment you actually move a muscle. HarmonICA solves this by placing a lightweight, time-varying "lens" in front of a classic static unmixing filter, continuously undoing the physical distortions caused by movement. By keeping the distortion-corrector and the neuron-finder strictly separated during training, it recovers more than twice as many high-accuracy motor neurons during dynamic movement as standard baselines.

What Problem Does This Paper Address?

Every time you flex your wrist, spinal motor neurons fire electrical spikes into your muscle fibers. High-density surface electromyography (HD-EMG) captures these signals through grids of skin electrodes, creating a classic "cocktail party" problem: many neurons talking at once, recorded by many microphones.

Standard algorithms—like Independent Component Analysis (ICA)—unmix these signals brilliantly, provided you don't move. They assume the physical path from neuron to electrode is frozen in time (isometric contraction). During actual movement, muscle fibers shorten, tissues deform, and electrodes shift. The electrical waveform of a single neuron morphs continuously, causing static ICA filters to lose track of the spikes outside a narrow time window.

Figure 1: (a) A static ICA filter wj recovers spikes only in the narrow local window where the mixing matches it; outside this window, the source approaches the noise floor and roughly half of the ground-truth spikes are missed. (b) HarmonICA’s time-varying compensator Aj(t) rotates the filter (equivalently, the signal space) so that the same source extracts cleanly across the full recording. (c) The learned rotation tracks the angle-driven MUAP variation. (d) The two-component GMM stationarity loss propagates this rotation reliably; classical FastICA non-Gaussianity contrasts are less reliable on this benchmark (see supplementary §H.1).

Existing workarounds chop recordings into tiny "locally stationary" windows or try to adapt filters on the fly, which breaks down during fast movements. Conversely, throwing deep, unconstrained nonlinear ICA at the problem fails mathematically: without extra side-information, unsupervised nonlinear ICA isn't identifiable—it can scramble the true sources arbitrarily.

Methods

HarmonICA introduces a quasi-time-invariant formulation. Instead of using one complex, time-varying filter, it splits the job into two distinct stages:

  1. A time-varying compensator $A_j(t)$: Because physical tissue deformation changes the signal smoothly within a low-dimensional subspace, HarmonICA models this drift using a low-rank Woodbury layer ($A_j(t) = I + U_j(t)V_j^\top$, with rank $r=3$) borrowed from normalizing flows. Driven by a small neural network taking either blind sinusoidal positional encodings of time (like NeRFs) or measured joint angles, it rotates the distorted signal space back into alignment.
  2. A static linear separator $\mathbf{w}_j$: Once the signal space is stabilized, a standard, fixed vector plucks out the individual neuron's spike train.
HarmonICA architecture, decoupled training, and neural peel-off

What makes this tick is alternating, decoupled optimization and neural peel-off:

  • Decoupled losses: $\mathbf{w}_j$ is trained using a classic sparsity-seeking ICA loss on the uncompensated signal. Meanwhile, the compensator $A_j(t)$ is trained (with $\mathbf{w}_j$ frozen/detached) using a custom stationarity loss: a two-component Gaussian Mixture Model (GMM) that squeezes the extracted signal into two tight clusters—"baseline noise" and "clean spike."
  • Neural peel-off: Once a neuron is found, you subtract its waveform from the recording to find quieter neurons underneath. Classical peel-off subtracts a static template, leaving messy residuals when waveforms drift. Because the Woodbury layer has a fast, closed-form analytical inverse ($O(rK)$ cost), HarmonICA computes a clean template in the stabilized space, warps it backward into each spike's exact moment in time, and subtracts a dynamically shifting waveform.

Datasets

  • muniverse-benchmark-dynamic: A simulated dynamic HD-EMG dataset built on the public MUniverse stack (coupling NeuroMotion volume-conductor deformation with BioMime waveform synthesis) providing exact ground-truth spike trains. The test split features 168 10-second recordings per electrode grid (70-channel and 320-channel) across 5 virtual subjects performing sinusoidal or triangular wrist sweeps ($\pm 32.5^\circ$ or $\pm 65^\circ$) at 20 or 25 dB SNR.
  • Real dynamic HD-sEMG: Two 65.5-second forearm recordings (64-channel grid) from a human participant flexing digits while a motorized platform steps the wrist from $0^\circ$ to $-40^\circ$.

Key Insights and Ideas

  • Divide and conquer preserves identifiability: By refusing to share gradients between the separator and the compensator, HarmonICA prevents the neural network from hallucinating fake spikes or jumping between different neurons mid-recording. Source identification stays anchored in provable linear ICA, while the network only flattens out amplitude drift.
  • Kurtosis is a trap for compensator training: Standard ICA uses kurtosis (fourth-order moments) to find spiky signals. When the authors tried training the compensator with kurtosis instead of their GMM stationarity loss, yield collapsed by up to 81%. Kurtosis happily rewards blowing up a single outlier spike rather than making all spikes uniform across time.
  • Blind time-encodings nearly match physical sensors: Feeding the compensator blind sinusoidal functions of time performs almost as well as feeding it the exact, measured joint angle—meaning you don't necessarily need external motion-capture hardware to track moving muscles.

Key Results

  • More than double the yield of standard ICA: On the dynamic benchmark at a strict recall threshold ($R \ge 0.95$), HarmonICA recovers 2.5$\times$ as many motor units per recording as unrefined linear ICA on the 320-channel grid (~3.2 vs. ~1.3 MUs/recording) and 2.2$\times$ on the 70-channel grid.
  • Dominates adaptive baselines: Across all motor-unit density tiers at $F_1 \ge 0.95$ on the 320-channel grid, blind HarmonICA recovers 515 total motor units (rising to 571 when given joint angles), compared to 249 for standard ICA and 350 for the strongest tuned adaptive baseline (Mendez Guerra 2024).
Figure 3: Yield × recall Pareto curve (ch320 benchmark, 168 recordings × 5 seeds). x-axis: average MUs per recording-seed at recall ≥R; y-axis: recall threshold R. Higher and further-right is better. Dashed line: unrefined ICA / cBSS reference; filled circles: each method’s coverage cap. Mendez Guerra 2024 is run with hyperparameters tuned on the validation split (§4.3). Per-grid Pareto-crossover yields (including the 70-channel grid) are in supplementary Table 13.
  • Fast runtime & real-world reliability: Processing a 10s recording takes ~45s on an NVIDIA A40 GPU (vs. ~28s for batch FastICA). On the slow-drifting real human forearm data, HarmonICA improved linear ICA on every unit (mean $F_1$ rising from 0.854 to 0.918) and tied the top online baseline without suffering any catastrophic tracking failures (worst run $F_1$ of 0.732 vs. 0.102 and 0.079 for adaptive competitors).

Limitations and Future Work

  • Offline only: HarmonICA optimizes over an entire recording at once. Deploying it for real-time prosthetic control would require conditioning on live joint-angle sensors rather than blind time encodings—a setup not yet tested on unseen incoming streams.
  • Bounded by its starting seed: Because the compensator cannot discover new neurons on its own, HarmonICA relies on an initial FastICA warm-start; if a neuron is completely invisible to the seed, HarmonICA won't find it (random initialization drops yield to zero).
  • Simplified physiology: The benchmark covers single-joint movement under constant neural drive, without neurons turning on or off (recruitment/derecruitment). Multi-joint movements will likely require a higher-rank compensator, and real-data validation remains small (one participant, five units, no invasive needle-EMG ground truth).

Summary updated

Abstract

Decomposing surface electromyography (EMG) into the spike trains of individual motor neurons is a long-standing inverse problem and a key step toward motor-neuron-driven neural interfaces such as prosthetics and exoskeletons. The standard approach, independent component analysis (ICA) of the multichannel signal, assumes that the mixing from neurons to electrodes is stationary in time. This assumption fails during movement, when volume-conductor deformation makes the mixing time-varying, and current decomposition algorithms are correspondingly restricted to isometric contractions. We introduce HarmonICA, a quasi-time-invariant ICA formulation in which a static linear separator is preceded by a learned, low-rank, time-varying invertible transformation. The separator is trained with an independence loss on the uncompensated projection, and the transformation with a stationarity loss on the recovered source. Gradients are not shared between the two, so source extraction remains a classical linear-ICA problem while non-stationary distortion is absorbed by the transformation. The closed-form inverse of the transformation enables per-spike subtraction with a time-varying template during sequential peel-off. On a public simulated benchmark of dynamic high-density EMG with ground-truth spike trains, the method outperforms five adaptive ICA baselines at every recall threshold, recovering more units at a higher accuracy.
BibTeX
@inproceedings{clarke2026harmonica,
  author = {Alexander Kenneth Clarke and Dimitrios Halatsis and Agnese Grison and Irene Mendez Guerra and Noura Ezaz-Nikpay and Pranav Mamidanna and Shihan Ma and Silvia Muceli and Dario Farina},
  title = {{HarmonICA: Quasi-Time-Invariant ICA for Motor Unit Decomposition during Dynamic Contractions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hzu7eYXCns},
}
Figure