arXiv(opens in a new tab)cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.27233

HALO: A Heterogeneity-Aware Language-Aligned IMU Foundation Model for Open-Set Human Activity Recognition

Zihan Ding, Liyu Zhang, Xiaomin Ouyang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zihan Ding

Hong Kong University of Science

and Technology

Hong Kong, China

alxd219p1@gmail.com

Liyu Zhang

Hong Kong University of Science

and Technology

Hong Kong, China

lzhangcx@connect.ust.hk

Xiaomin Ouyang

Hong Kong University of Science

and Technology

Hong Kong, China

xmouyang@cse.ust.hk

ABSTRACT

Human Activity Recognition (HAR) using inertial measurement units (IMUs) enables a wide range of applications, yet the field still lacks a unified model that can generalize across diverse subjects, devices, and activities. Training such a model is difficult due to two key challenges: sensing heterogeneity—differences in sampling rates, channel configurations, and sensor placements—and poor generalization to unseen activities and label vocabularies. We introduce HALO (Heterogeneity-Aware Language-aligned Open-set model), a domain-specific IMU foundation model that addresses both challenges through a two-stage training framework 1^{1}. Stage 1 pretrains the IMU encoder with heterogeneity-aware self-supervised learning, including adaptive-pooling tokenization, channel-independent feature extraction, and contextualized sensor conditioning that injects natural-language sensor descriptions into each channel embedding. Stage 2 aligns this IMU encoder with text embeddings via synonym-aware soft contrastive learning, enabling open-set recognition via cosine-similarity retrieval without per-dataset classifiers. Trained on 10 public HAR datasets and evaluated on 7 held-out datasets, HALO outperforms five state-of-the-art baselines on all 8 aggregate metrics, and still leads on 3 of 4 settings under baseline-matched inputs. Despite using only ∼\sim35M trainable parameters—10 ×\times fewer than the latest foundation model MOMENT (341.2M)—HALO improves zero-shot open-set accuracy, measured over all 87 training labels, by 13.7 percentage points. On two further datasets with severe distribution shift, every model including HALO collapses zero-shot. A video demonstration of HALO’s performance in real world is available at https://youtu.be/rooVKragtFU.

1 INTRODUCTION

Inertial measurement units (IMUs) are among the most widely deployed sensors in consumer electronics such as smartwatches and smartphones, enabling human activity recognition (HAR) for applications in health monitoring [2], rehabilitation [25], sports analytics [3], and human-computer interaction. However, developing a unified model for HAR that generalizes across diverse subjects, devices, and activities remains challenging due to two fundamental issues. First, sensing heterogeneity: datasets differ substantially in sampling rates (20–100 Hz), sensor suites (3–45 channels spanning accelerometers, gyroscopes, and magnetometers at various body placements), and label vocabularies with inconsistently overlapping activity names. Second, limited generalization: models trained on one dataset typically transfer poorly to others, especially when faced with unseen activities or mismatched label spaces.

Addressing these challenges requires a model that can (i) operate at arbitrary sampling rates without architectural modifications, (ii) handle variable sensor suites and placements, and (iii) recognize activities absent from training—i.e., support open-vocabulary recognition under label shift. Existing approaches address these axes in isolation. Self-supervised methods (LiMU-BERT [36], CrossHAR [4]) improve transferability but require closed-world classifiers. General-purpose foundation models (MOMENT [8]) cover diverse signal types but lack HAR-specific inductive biases. Language-aligned models (LanHAR [13]) decouple the label interface via text similarity, but without strong sensor pretraining, naive text alignment proves insufficient for robust zero-shot transfer.

We present HALO (Heterogeneity-Aware Language-aligned Open-set model), a domain-specific IMU foundation model that enables a new deployment capability: a single pretrained model that accepts diverse wearable and phone IMU configurations—varying sampling rates, channel counts, and sensor placements—and recognizes activities via open-vocabulary cosine-similarity retrieval, with no

1^{1}Preprint of work completed in March 2026, released as a citable record of that version; a substantially revised and extended version is in preparation. The source code and pretrained models for HALO will be released upon publication.

Diverse Wearable Devices

Figure

Figure 1: HALO is a domain-specific IMU foundation model that can tackle various sensing heterogeneity for open-set human activity recognition.

per-dataset classifier or architectural modification required. HALO achieves this through a two-stage framework driven by the three design requirements above. Stage 1 pretrains a heterogeneity-aware IMU encoder via self-supervised objectives (masked patch autoencoding and contrastive learning), using (1) seconds-based adaptive-pooling tokenization for rate invariance, (2) channel-independent processing for variable sensor suites, and (3) contextualized sensor conditioning that injects natural-language descriptions of each channel's sensor configuration (e.g., "Accelerometer X-axis, waist-mounted phone") to provide placement context. Stage 2 aligns this encoder with a frozen SentenceBERT backbone [24] via synonym-aware soft contrastive learning: soft targets derived from text-text similarity allow semantically related labels (e.g., "walking", "strolling", "ambulating") to reinforce one another, resolving the label-conflict problem inherent to multi-dataset training. At inference, activity recognition is cosine-similarity retrieval over any text label library—eliminating per-dataset classifiers.

We train HALO on 10 public HAR datasets and evaluate it on seven held-out test datasets—five main test datasets with high label coverage and two severe out-of-domain datasets containing entirely unseen activities—under four evaluation settings: zero-shot open-set (predicting from all 87 training labels with no knowledge of which labels appear in the test set), zero-shot closed-set (predicting only from the labels present in the test dataset), and 1% and 10% supervised fine-tuning. Against five state-of-the-art baselines spanning reconstruction-based, text-aligned, and LLM-based paradigms, HALO leads on all 8 aggregate metrics across the five main test datasets, improving zero-shot open-set accuracy by 13.7 percentage points over the general-purpose foundation model MOMENT [8] (42.0% vs. 28.3%) while using only ~35M trainable parameters—10× fewer than MOMENT (341.2M). On two severe out-of-domain datasets, all models—including HALO—collapse in zero-shot, confirming the limits of current cross-dataset transfer under extreme sensor or label shift; yet HALO adapts effectively with as little as 1% labeled data, recovering to the strongest supervised performance on the harder of the two datasets.

We make the following contributions:

• We systematically investigate sensing heterogeneity and open-set generalization as the two fundamental barriers preventing current IMU models from serving as general-purpose foundations for mobile HAR, and derive three concrete design requirements: rate-agnostic tokenization, variable-channel processing, and synonym-robust label alignment.

• We propose HALO, a domain-specific IMU foundation model that jointly addresses all three requirements through a two-stage training framework. The key integration insight is that heterogeneity-aware pretraining (adaptive-pooling tokenization, channel-independent processing, and contextualized sensor conditioning via natural-language placement descriptions) provides a robust encoder that can then be aligned to text via synonym-aware soft contrastive learning, enabling a deployment capability no prior system achieves: a single model that accepts diverse IMU configurations and recognizes activities via open-vocabulary cosine-similarity retrieval.

• We establish a unified cross-dataset benchmark spanning 10 training and 7 test datasets with four evaluation settings (eight metrics), and demonstrate that HALO outperforms five state-of-the-art baselines on all 8 aggregate metrics—including under baseline-equivalent input conditions (20 Hz, generic descriptions)—with ~35M trainable parameters. We will release the pretrained model checkpoint and codebase to facilitate reproducible research.