arXiv:2610.17383cs.LGOct 2026

Manuscript Offprint

arXiv:2610.17383

Variable Input Masked Autoencoders for Wrist-Worn Accelerometry

Harish Haresamudram, Wanting Mao, Aditya Radhakrishnan, Maxwell A. Xu, James M. Rehg

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

ABSTRACT

Large-scale repositories of wearable sensor data have enabled the development of foundation models for human activities and behavior. However, existing models are pretrained using fixed input durations and sampling rates, despite substantial heterogeneity in recording conditions, downstream tasks, and deployment constraints. We introduce VarMAE, a variable input masked autoencoder that learns a single representation across sampling rates and temporal contexts. During pretraining we construct two views of the same signal: a long duration high frequency view, and a short duration, lower frequency view, obtained via random cropping and downsampling. We perform masked reconstruction within each view and introduce a cross-resolution masked reconstruction objective that uses visible tokens from the long view to predict masked tokens from the short view. Cropping and downsampling impose complementary information bottlenecks, encouraging the model to learn representations that remain effective across input durations and sampling rate changes. We pretrain VarMAE on the large-scale NHANES dataset, producing a single pretrained encoder matching or outperforming controlled foundation model baselines on eight benchmark datasets. With only 3.82M parameters, VarMAE is parameter efficient and shows that a single foundation model can achieve broad transfer capabilities across sensing configurations.

1 INTRODUCTION

The popularity and widespread use of wearables has led to transformative progress across a wide gamut of health applications, including sleep analysis (Yuan et al., 2024b), monitoring Parkinson's disease (Del Din et al., 2016), fall detection (Chatzaki et al., 2016), and predicting flu (Merrill et al., 2023). Their ubiquitous nature allows biosignals to be collected in everyday settings, leading to vast amounts of sensor data (Schuetz et al., 2026). This in turn has motivated foundation model (FM) development, as unlabeled physiological data can be collected at scale whereas obtaining high quality annotations is both expensive and time consuming (Haresamudram et al., 2025).

Among wearable sensing modalities, accelerometry is widely used to capture human movements and underpins applications ranging from gesture recognition (Bonazzi et al., 2026) to analysis of daily activities and mobility (Yang & Hsu, 2010). However, accelerometer FMs face a fundamental challenge: there is no single gold-standard input configuration in wearable sensing. Downstream applications differ substantially in both the temporal context they require and the sampling rate at which the signal is sampled. For example, the OpenWatch gesture benchmark (Bonazzi et al., 2026) utilizes one second windows recorded at 100 Hz to recognize short gestures such as pinches and slides. In contrast, Yuan et al. (2024a) utilize ten second windows at 30 Hz to model daily living activities in naturalistic conditions. These differences stem from factors such as the timescale of the activity being observed, practical constraints such as the hardware platform, and other deployment requirements.

Existing accelerometer FMs largely sidestep this heterogeneity. As noted by Tarale et al. (2026), the window duration and sampling rate are typically fixed during pretraining and downstream evaluation occurs in similar input configurations. While there are adaptations like resampling or padding that

∗^{*}Corresponding author: hkh@illinois.edu

This paper is currently under review. Please contact hkh@illinois.edu if you have any questions.

can be applied, they undermine a key promise of foundation models: a single pretrained model that transfers broadly across many applications. It remains unclear how well representations learned under one input configuration transfer to others.

Our approach, VarMAE, addresses this limitation through a variable input masked autoencoder (MAE) trained using two views of the same sensor data: (i) a long duration, high frequency view that captures the full context; and (ii) a short duration, lower frequency view which is randomly cropped from the long view, allowing the model to adapt to different frequencies. Both views are masked, and the masked regions in the short view are also masked in the long view to prevent information leakage about the masked target. In addition to within-view masked reconstruction, we introduce cross-resolution masked reconstruction, where the visible regions from the long view condition the prediction of the masked tokens of the short view.

Our key idea is to employ cropping and downsampling as information bottlenecks. On one hand, downsampling removes fine-grained temporal information while preserving the underlying signal; on the other, cropping removes the broader context surrounding the movements. Cross-resolution masked reconstruction bridges these bottlenecks by using information from the long context, high rate view to predict masked tokens at the low rate cropped view. This setup exposes a single encoder to a range of sampling rates and window durations during pre-training, enabling it to operate across a range of sensing configurations rather than specializing to a single one.

Architecturally, VarMAE retains the standard MAE's Transformer encoder-decoder, but extends it with rate flexibility in both input and output. We define patches over a fixed duration of time, causing the number of samples within each patch to vary based on the sampling rate. For example, a patch duration of 0.2s is 10 samples of sensor data at 50Hz but two samples at 10Hz. To accommodate this, a variable-rate tokenizer maps these rate dependent patches to a single fixed dimension token vector before the Transformer encoder, and correspondingly, a variable-rate reconstruction head reconstructs the decoder's outputs at the target sampling rate.

VarMAE is pretrained on NHANES (Centers for Disease Control and Prevention (CDC), 2010; Troiano, 2008), which is a publicly available large-scale wrist accelerometer dataset comprising approx. one week of data from around 16k subjects. We evaluate our single pretrained encoder on eight human activity recognition (HAR) datasets covering a wide range of activities, subject counts, recording conditions, and input configurations. Despite using only 0.7M params, VarMAE outperforms general purpose time-series FMs that are 30–550× larger. Scaling our method to 3.82M params further improves performance, and the single encoder matches or outperforms the specialist FMs we pretrain for each input configuration on all datasets. These results demonstrate that a single accelerometer FM can effectively transfer across substantially different downstream sensing configurations.

Our contributions are threefold:

(1) We introduce a variable input temporal masked autoencoder that enables a single Transformer encoder-decoder to operate across different sampling rates and window sizes, rather than specializing to a fixed sensing configuration.

(2) We propose cross-resolution masked reconstruction to jointly learn across temporal context and resolution by using a longer, high rate view to reconstruct masked information in a shorter, lower-rate view. This improves representation quality, particularly at low sampling rates.

(3) Using a single pretrained encoder, we demonstrate broad and parameter-efficient transfer across eight benchmarks spanning 1–10 s window sizes.