When a phone or smartwatch learns a new user's movements from a handful of examples, it has to decide which of those examples to trust and what to ask for next. Today it decides with a single confidence score. That score mixes three different reasons for doubt. The first is that the device's estimate of which way is "down" was wrong while the example was recorded. The second is that this person moves unlike anyone the model has seen. The third is that the movement is simply ambiguous. Only the second is fixed by collecting more of the user's data. The first is fixed by discarding or re-recording the example, and the third is not fixed at all.
We propose to split a wearable classifier's uncertainty exactly into these three parts and to use the split to run personalization. The split is cheap because one ingredient is physics. Rotating sensor readings so one axis points along gravity (gravity alignment) leaves only two kinds of frame error: heading around the vertical axis, which is unknown without a compass, and error in the gravity estimate during vigorous motion. Both are low-dimensional and can be integrated over explicitly. The claim is testable: on few-shot benchmarks with realistically corrupted calibration samples, filtering and querying by the three-way split should beat the same procedures driven by total entropy, while staying within a wearable compute budget.
Core Claim
Prior systems use at most two of these ingredients. TLIO rotates IMU (inertial measurement unit: accelerometer plus gyroscope) windows into a gravity-aligned frame and regresses one displacement covariance, reporting over 99% of errors inside its predicted 3σ bounds. That covariance does not say whether error comes from noise or from an unfamiliar gait, and the network is frozen at deployment. HDUQ-HAR runs uncertainty-aware activity recognition on a Cortex-M4 and is the closest precursor. It treats orientation changes as external corruptions rather than normalizing them, produces heuristic reason codes rather than a decomposition, and uses fixed prototypes with no per-user adaptation. BiCrossNet personalizes custom gestures from five or fewer samples but works on raw sensor axes and outputs plain softmax scores.
Our contribution is a nested decomposition. Its middle term is "frame uncertainty," which is neither aleatoric (irreducible noise) nor epistemic (model ignorance) in the usual sense. We then use the three terms as control signals during few-shot calibration.
Let $x$ be a sensor window and $y$ the activity label. Let $R$ be the unknown residual rotation, combining heading and gravity-estimate error, with a distribution $p(R \mid x)$ computed from the orientation filter. Let $\theta$ be the user-specific classifier parameters, with a posterior $p(\theta \mid \mathcal{D}_u)$ given the user's calibration set $\mathcal{D}_u$. The chain rule of mutual information gives an exact split of predictive entropy:
$$H[y \mid x] = \mathbb{E}_{\theta, R}\, H[y \mid x, R, \theta] \;+\; \mathbb{E}_{\theta}\, I(y; R \mid x, \theta) \;+\; I(y; \theta \mid x).$$
The first term is ambiguity that remains after both the frame and the model are fixed. The second is frame uncertainty: how much the prediction would change if we knew the true orientation. The third is user-model ignorance, which shrinks as calibration data arrives.
Research Program
The frame term rests on a geometric observation. After gravity alignment, RIDI showed that orientation ambiguity reduces to the heading plane. The remaining tilt error comes from dynamic acceleration that corrupts the gravity estimate, which the file lists as an open problem for gravity alignment. We model $p(R \mid x)$ as follows. Heading gets either a uniform distribution, when no magnetometer is available, or a von Mises distribution around the magnetometer heading. Tilt gets a small error cone around the filter's gravity estimate. The cone's width grows with the deviation of acceleration magnitude from $g$ within the window, a quantity the filter already computes. We approximate the frame term with a handful of rotated forward passes (8 to 16). Because heading is a single circle, a deterministic quadrature grid replaces random sampling.
The personalization head is chosen so the epistemic term is analytic. We do not use bootstrapped ensembles, because Rethinking Aleatoric and Epistemic Uncertainty shows that sampling-based information estimates such as BALD have high error exactly when data are scarce. That result constrains our design. On top of a frozen population encoder trained in the gravity-aligned frame, each class is a Gaussian prototype. Its prior is the population class mean and spread, so a new user's two to five calibration windows give a closed-form posterior. The approach follows the residual-offset view of Personalized Image Aesthetics, where the user is a deviation from the population. The difference is that our offset carries a posterior rather than a point estimate.
The decomposition then drives two decisions. A calibration sample is down-weighted when its frame term dominates. This targets the "unrepresentative calibration samples" failure that the file notes locks portfolios and adapters into wrong states. When the epistemic term is high for a class, the system asks the user to repeat that class. When the aleatoric term is high, the system stops asking, because more data will not help.
We measure the wearable budget rather than assume it. The target is a small encoder whose forward pass multiplied by the quadrature count fits within the per-window latency HDUQ-HAR reports on a Cortex-M4 (3 to 5 ms). If it does not fit, we use a lighter 1-D convolutional encoder instead.
Baselines
The naive reference is the population model in the gravity-aligned frame with no personalization. Its decisions use softmax entropy. This isolates how much any adaptation helps.
The strongest personalization competitor is the same encoder with plain prototype adaptation, meaning nearest class mean over the user's samples with every sample weighted equally. This is the gradient-free selection-style approach Gesture Recognition Portfolios shows can match heavy adaptation, with an F-score of about 0.82 from 2 samples per class on MSRC-12.
We also run Meta-HAR, which meta-trains a shared embedding for quick per-user adaptation and reports 92.5% to 98.4% accuracy on public datasets including HHAR. We run it from the same encoder size and the same calibration budget.
The strongest uncertainty competitor is HDUQ-HAR's conformal pipeline, which reports shift and out-of-distribution AUROC of 0.92 to 0.96 and average set size 1.18 to 1.25 at 90% coverage. We rerun it on our splits rather than quoting its numbers across settings.
We also run BiCrossNet on its own raw-frame inputs. Its reported gains are relative: up to 8.85% F1 on GRHand and 12.7% on UMAHand over earlier baselines. No absolute GRHand F1 was found in the file.
All methods get the same pretraining data, the same calibration samples per user, the same encoder parameter budget, and the same hyperparameter search budget on held-out pretraining subjects.
Two ablations isolate the key ingredient. The first drives filtering and querying with total entropy, keeping everything else fixed. The second collapses the frame and aleatoric terms into a two-way split, which is what a TLIO-style single covariance would give. Beating these ablations is the central result. We require a gain in post-calibration macro-F1 under corrupted-calibration conditions that holds across seeds and subjects. We also require no loss on clean calibration.
Why not just…?
Why not just augment with random rotations and skip gravity alignment? Using Mobile Phones for Activity Recognition in Parkinson's Patients applied coordinate transforms as augmentation and still saw accuracy fall from 96.1% to 60.3% when moving from healthy users to Parkinson's patients. Augmentation does not separate orientation from how a person moves. TLIO reports that gravity alignment cut position drift by 33% versus the best baseline. More importantly for us, a rotation-augmented network folds frame error into what looks like noise, so it cannot tell the user "re-record that sample." We include a rotation-augmented encoder as an arm and compare both accuracy and calibration-sample filtering.
Why not just use rotation-invariant features, such as vertical acceleration plus horizontal magnitude? This is a real threat for activities whose direction does not matter. Upstairs/downstairs discrimination reached over 95% accuracy from vertical projection alone. If invariant features match our method's accuracy, the heading part of the frame term is unnecessary and only the tilt-error part matters. We run this arm and report the result either way. We expect it to lose on gestures and on body-relative motion, where horizontal direction carries the class.
Why not just filter calibration samples by total entropy? A corrupted sample and a genuinely novel one both raise entropy. Filtering on total entropy therefore discards exactly the novel samples personalization needs, especially for outlier users such as Parkinson's patients. The total-entropy ablation tests this directly. If it matches the decomposed version, our central claim fails.
Why not just use a deep ensemble or MC Dropout for the epistemic term? Ensembles cost multiples of the compute budget, as noted for CLEAR and HyperDM. MC Dropout performed poorly on out-of-domain detection in Bayesian Prior Networks with PAC Training, with ECDF-AUC of 0.429 versus 0.055. We still run a five-member ensemble head as an accuracy ceiling to measure what the analytic posterior gives up.
Proposed Experiments
Validating the frame term. On the RIDI and TLIO pedestrian data, ground-truth orientation comes from visual-inertial odometry. We test whether the frame term ranks windows by true gravity-direction error better than total predictive variance does, measured by Spearman correlation and by AUROC for flagging windows with error above 5°.
Few-shot personalization. We use leave-one-subject-out splits on PAMAP2, HHAR, UCI HAR, WISDM, and the Parkinson's phone dataset, with 1, 3, and 5 calibration windows per class. The Parkinson's data is accelerometer-only, so gravity there comes from low-pass filtering. Reference points from the file are 75.1% leave-one-subject-out accuracy on the Parkinson's cohort and about 54% F1 on PAMAP2 with 5 to 6% labeled data from Cross-Domain HAR. We add GRHand and UMAHand where available.
Corrupted calibration, the decisive check. In each calibration set, 20% to 40% of windows are replaced. Some replacements are vigorous-motion segments whose gravity estimate is wrong. Others are rotated copies with a mis-specified tilt, or windows from an ambiguous neighbouring class. We report post-calibration macro-F1, the fraction of corrupted samples rejected and of novel samples kept, and accuracy gain per query under active querying. The proposal succeeds if the three-way split beats both the total-entropy and two-way ablations under corruption and does not lose on clean calibration. It fails if the frame term adds nothing beyond rotation-invariant features.
Deployment. We report latency and memory on a Cortex-M4-class board next to HDUQ-HAR's reported 3 to 5 ms and roughly 6 to 9 KB RAM.
References
- TLIO: Tight Learned Inertial Odometry
- Efficient Uncertainty Aware Human Activity Recognition On Microcontrollers Using Hyperdimensional Computing And Conformal Prediction
- BiCrossNet with Decoupled Dual Generators: A Parameter‑Efficient and Generalizable Few‑Shot Custom Gesture Recognition Framework
- RIDI: Robust IMU Double Integration
- Rethinking Aleatoric and Epistemic Uncertainty
- Personalized Image Aesthetics
- Gesture Recognition Portfolios for Personalization
- Meta-HAR: Federated Representation Learning for Human Activity Recognition
- Using Mobile Phones for Activity Recognition in Parkinson’s Patients
- Discrimination between Upstairs and Downstairs Based on Accelerometer
- CLEAR: Calibrated Learning for Epistemic and Aleatoric Risk
- Estimating Epistemic and Aleatoric Uncertainty with a Single Model
- Bayesian Evidential Deep Learning with PAC Regularization
- Cross-Domain HAR: Few-Shot Transfer Learning for Human Activity Recognition