When someone straps on a wrist or ankle sensor, the device rarely sits at the same angle twice. Activity recognizers learned from inertial measurement units (IMUs: small accelerometer-plus-gyroscope chips) are known to break when a sensor is rotated or displaced on the body. Two fixes dominate. One is hand-designed features that throw away direction, such as signal magnitudes and gravity-filtered components. The other is learning invariance from data. Both give something up: the first discards the geometry that separates similar motions, and the second only works for the rotations the training data happened to contain. We propose to treat a set of body-worn IMUs as a graph. Each sensor is a node whose readings are stored as geometric-algebra objects: acceleration as a vector, and angular velocity as a bivector, meaning an oriented plane of rotation. Along each edge, before messages are combined, the model estimates the relative rotation between two sensors from their own signals and uses it to re-express one sensor's readings in the other's frame.
The core claim is that this construction is exactly invariant to an independent, unknown mounting rotation at every sensor. It still lets the network compare directions across sensors, such as whether the wrist and ankle accelerate in the same direction. That is a different symmetry from the one existing equivariant networks enforce. Those networks handle a single global rotation of the whole scene. Because rotating a rigidly mounted IMU about its own center transforms its accelerometer and gyroscope readings in a known way, we can test robustness to remounting on real recordings without any simulator.
Why this gap is real
Geometric algebra networks build layers from "sandwich products" $a x a^{-1}$, where $a$ is a rotation element and $x$ a multivector, so that vectors stay vectors and bivectors stay bivectors. Geometric Clifford Algebra Networks introduced these group-action layers on grids and simulated rigid bodies, cutting 3D Tetris dynamics error from 0.1596 to 0.0061 MSE against an MLP. The Geometric Algebra Transformer made them attention-based and E(3)-equivariant, reaching 5.6% versus 10.5% error on artery meshes. Both papers supply our layer primitives. Both assume one shared coordinate frame for all tokens, which is false for body-worn sensors: each IMU reports in its own frame, and each frame is rotated arbitrarily and separately.
LION is the closest work to combine Clifford algebra with graph propagation. It uses rotors to align modalities across neighbors on a graph. However, its graphs are static, its "vectors" are abstract text and image embeddings, and its algebra grows as $2^K$ in the number of modalities. We use the fixed 8-dimensional algebra of 3D space at every node, so the dimension-explosion concern does not arise.
On the sensing side, IFLF learns user and device invariance through triplet losses, and its authors acknowledge it degrades under sensor rotation or relocation. DeepConvLSTM transfer and CondConv HAR treat the x, y and z axes as unrelated channels. STGC shows that an explicit body graph helps on skeletons (86.28% vs. 82.8% on NTU RGB+D cross-view), but feeds coordinates in as raw scalars. Anguita et al. show why gravity matters: separating it out with a low-pass filter was necessary to tell Sitting from Standing. Our design keeps gravity inside the signal as a shared direction that anchors cross-sensor alignment, rather than filtering it into a separate feature.
Core Claim
Let sensor $i$ have unknown mounting rotation $g_i$. Rotating the sensor transforms its window of readings as $X_i \mapsto g_i X_i g_i^{-1}$. We build an edge estimator $R_{ij}(X_i, X_j)$ that obeys
$$R_{ij}(g_i X_i g_i^{-1},\, g_j X_j g_j^{-1}) = g_i\, R_{ij}(X_i, X_j)\, g_j^{-1}.$$
The transported message $R_{ij} X_j R_{ij}^{-1}$ then transforms like node $i$'s own features. Aggregating such messages with equivariant layers, and pooling to invariant scalars at the end, gives a classifier whose output does not change under any assignment of per-sensor rotations.
A differentiable estimator with this property is a weighted Kabsch/Wahba alignment: the rotation that best maps node $j$'s acceleration and angular-velocity sequence onto node $i$'s over the window, solved by SVD. The weights are per-time-step and computed by a small network from invariant quantities such as norms and inner products. This lets the model learn which moments are informative for alignment, for example quasi-static moments where gravity dominates both sensors, or moments when two sensors on a near-rigid chain rotate together. Sensors on different limb segments are never truly rigidly linked, so $R_{ij}$ is an approximate alignment. The invariance guarantee holds regardless, because it depends only on the transformation law above, not on the alignment being accurate.
Encoding angular velocity as a bivector rather than a vector adds correct behavior under reflections. Mirroring a left-wrist recording into a right-wrist frame flips the handedness of rotation, and a bivector carries that sign automatically.
Research Program
We will build three components. The first is a per-node temporal encoder: 1D temporal convolutions whose channel-mixing steps are group-action layers from GCAN, with multivector nonlinearities (MSiLU) and geometric normalization. The second is the weighted-Kabsch edge transport inside spatial message-passing blocks, interleaved with the temporal blocks in the decoupled style of modern spatio-temporal graph models. The third is an invariant readout. The graph is the body-placement graph: chest–wrist–ankle for PAMAP2, and the multi-IMU layout of OPPORTUNITY. We will also try a fully connected variant, because distal sensor pairs such as wrist and ankle may carry the most useful coordination signal.
The analysis side has three parts. We will measure how well-conditioned $R_{ij}$ is per activity. Static postures leave essentially one shared direction (gravity), so rotation about the vertical axis is unresolved there. We will also check whether the learned weights concentrate on interpretable moments. Finally, we will record compute cost against CondConv's reported budget of roughly 62M FLOPs.
Baselines
The naive reference point is the same backbone with no geometric structure, trained on the original data and tested on remounted data. This shows how much accuracy remounting actually destroys.
The handcrafted invariant baseline estimates gravity per sensor with a low-pass filter, following Anguita et al.. It projects acceleration onto vertical and horizontal magnitudes, adds gyroscope norms and standard time and frequency statistics, and classifies with a Random Forest, the family Kalabakov et al. found strong in low-data regimes.
The strongest existing learned method is CondConv, which reports 94.01% test accuracy on PAMAP2 with 16 experts (Hao et al.). For OPPORTUNITY, the survey by Wang et al. reports 92.7% for RNN models. We will run CondConv and DeepConvLSTM ourselves, both with and without independent per-sensor random-rotation augmentation. I found no reported result on Lacuna for any method under per-sensor remounting on PAMAP2 or OPPORTUNITY, so every rotated-protocol number will come from our own runs.
We add two structural competitors. The first is an STGC-style graph network with per-sensor augmentation. The second is a globally E(3)-equivariant multivector transformer in the style of GATr, which isolates the difference between global and per-node symmetry.
Four ablations target the key ingredient. The first removes transport and passes only invariant scalars along edges. The second uses unweighted Kabsch. The third encodes the gyroscope as a vector instead of a bivector. The fourth drops edges entirely, keeping per-node encoders with pooling.
For fairness, all models use identical windows and leave-subjects-out splits, the same hyperparameter search budget (a fixed number of trials per model), and parameter counts matched within a factor of two. Beating the field means two things. First, on unrotated data the model must stay within about one point of the best augmented baseline. Second, under per-sensor remounting it must lose clearly less accuracy than every baseline, with the gap largest in the low-data regime.
Why not just…?
Why not just augment a standard model with random per-sensor rotations? This is the main threat. Does equivariance matter at scale? shows augmentation can close the gap given enough data and compute. HAR datasets have nine to a few dozen subjects, however, and the evidence from GATr and GCAN favors built-in structure when data is scarce. We settle this empirically by training both on 10%, 25%, 50% and 100% of subjects. If augmented CondConv matches us at every data size, the construction is not worth its cost and we will report that.
Why not just align each sensor to gravity and use handcrafted invariants? Gravity fixes two of the three rotation axes, and magnitude features are exactly invariant, so this baseline is cheap and strong. It leaves rotation about the vertical axis unresolved for each sensor, and it discards cross-sensor direction relations. Bhattacharya et al. and Rehman et al. document that handcrafted pipelines are brittle across placements. The "invariant-scalars-only" ablation is the learned version of this baseline. If transport does not beat it, the claim that relative geometry matters fails.
Why not just canonicalize each sensor independently (e.g., PCA frame per window) and use any network? Per-node canonical frames are also invariant. They are discontinuous, however, when principal directions are nearly tied, and they discard relative orientation between sensors unless it is re-estimated. Our edge estimator is effectively pairwise canonicalization with learned weights. We include per-window PCA canonicalization feeding DeepConvLSTM as a direct comparison.
Why not just pretrain on massive data like harnet? Hoffman et al. show large-scale pretraining limits data-scarcity drops to within 11%. Pretraining covers only the orientations present in the pretraining data, though, and it is complementary to our approach: our encoder could itself be pretrained. We treat this as future work, not a competitor we can match on compute.
Proposed Experiments
We evaluate on PAMAP2 (three IMUs) and OPPORTUNITY (multiple body-worn IMUs), with UCI-HAR as a single-node sanity check where the graph adds nothing. The test-time protocol applies an independent uniformly random rotation to each sensor's accelerometer and gyroscope streams. This is physically exact for remounting about the sensor center, though it ignores lever-arm changes from displacement. We report macro-F1 and accuracy for clean training/clean test, clean/rotated, and rotated-augmented/rotated.
The decisive checks are four. First, our model's clean/rotated accuracy should equal its clean/clean accuracy up to numerical error, which verifies the invariance guarantee; baselines should drop. Second, transport should beat invariant-only messages, which shows cross-sensor geometry carries information. Third, the advantage over augmented CondConv should grow as training subjects shrink. Fourth, if OPPORTUNITY's paired limb sensors permit it, a model trained on one side and tested on the mirrored side should benefit from the bivector encoding over the vector encoding. We will separately report static-posture classes, where alignment is degenerate, so that any failure is visible rather than averaged away.
References
- Geometric Clifford Algebra Networks
- Geometric Algebra Transformer
- LION: A Clifford Neural Paradigm for Multimodal-Attributed Graph Learning
- Invariant Feature Learning for Sensor-Based Human Activity Recognition
- Analysis of Deep Transfer Learning Using DeepConvLSTM for Human Activity Recognition from Wearable Sensors
- Real-time Human Activity Recognition Using Conditionally Parametrized Convolutions on Mobile and Wearable Devices
- Spatio-Temporal Graph Convolution for Skeleton Based Action Recognition
- A Public Domain Dataset for Human Activity Recognition using Smartphones
- Deep learning for sensor-based activity recognition: A survey
- Does equivariance matter at scale?
- Using unlabeled data in a sparse-coding framework for human activity recognition
- Human Activity Recognition: A Comparative Study of Validation Methods and Impact of Feature Extraction in Wearable Sensors
- A benchmark for computational analysis of animal behavior, using animal-borne tags