BenchHAR: Benchmarking Self-Supervised Learning for Generalizable Sensor-based Activity Recognition

Yize Cai, Rui Feng, Anlan Yu, Baoshen Guo, Zhiqing HongarXiv 2026

TL;DR

BenchHAR introduces a comprehensive, large-scale benchmark to evaluate how well self-supervised learning (SSL) methods generalize to completely unseen datasets in sensor-based Human Activity Recognition (HAR). By evaluating eight SSL methods across 12 encoder-classifier architectures on a standardized multi-source dataset, the study reveals a massive generalization gap: even the best configurations top out at a 61.31% F1-score, highlighting the critical need for more robust sensor foundation models.

What Problem Does This Paper Address?

Wearable devices like smartwatches and smartphones generate vast amounts of Inertial Measurement Unit (IMU) data, which can be used for Human Activity Recognition (HAR) in healthcare and behavior science. However, training models that work reliably in the real world is notoriously difficult due to cross-domain data heterogeneity (variations in user habits, device types, and sensor placements) and sensor data scarcity (high cost and ambiguity of labeling continuous physical data).

While self-supervised learning (SSL) has revolutionized computer vision and NLP by learning generalizable representations from unlabeled data, its efficacy in HAR remains unclear. Most existing SSL studies for HAR evaluate models on target datasets that were partially seen during training. This paper addresses this gap by establishing a realistic, strict cross-dataset evaluation protocol where the target datasets are completely withheld during training.

Figure 1: Benchmark overview. Unlike most existing cross-dataset studies that utilize target datasets during training, HAR-Bench evaluates generalization by training on source datasets and testing on unseen target datasets, reflecting realistic sensor-based HAR deployment scenarios.

Methods

The authors developed BenchHAR, a unified framework to systematically evaluate key design choices in SSL-based HAR. They investigated four core pretraining paradigms using eight representative SSL methods:

  1. Recognition Paradigm: BioBankSSL (predicting data transformations).
  2. Reconstruction Paradigm: LIMU-BERT and CRT (recovering masked or dropped data segments).
  3. Contrastive Paradigm: TS-TCC, TS2Vec, and FOCAL (maximizing similarity between augmented views).
  4. Hybrid Paradigm: CrossHAR and SimMTM (combining reconstruction and contrastive objectives).

These methods were evaluated across 12 encoder-classifier architectures combining three sensor encoders (Transformer, ResNet, CNN) and four classifiers (CNN, MLP, GRU, Transformer), under two modality settings (accelerometer-only vs. combined accelerometer and gyroscope).

Datasets

To overcome the small scale of individual HAR datasets, the authors curated and standardized 14 publicly available datasets (including UCI, HHAR, Shoaib, Motion, DSADS, USC-HAD, KU-HAR, PAMAP2, TNDA-HAR, Mhealth, WISDM, RealWorld, HARSense, and UT-Complex).

The resulting aggregated dataset contains:

  • ~258K samples (~430 hours of data)
  • 300+ subjects across 11 countries
  • 13 body locations and 2 device types (consumer-grade vs. research-grade)
  • 62 standardized activity classes (with a focus on 8 core overlapping activities for downstream evaluation: sitting, standing, lying, upstairs, downstairs, walking, running, and jumping).
Figure 2: Benchmark dataset statistics. (top) Sample size distribution of each dataset. (bottom left) Subject count distribution. (bottom middle) Activity class distribution. (bottom right) Sample size distribution of each body location. (right) Illustration of body locations.

Key Insights and Ideas

  • The Hybrid Paradigm Rules: Combining reconstruction and contrastive objectives (like in SimMTM) yields the best overall generalization performance. It captures both local temporal structures and global semantic features.
  • CNNs are Superior Encoders for Sensors: Despite the hype around Transformers, standard CNN encoders demonstrated the strongest ability to learn generalizable sensor representations. Transformers performed notably worse, likely because current sensor data scales are still insufficient to fully exploit their massive parameter capacity.
  • Not All Unlabeled Data Helps: Scaling up unlabeled pretraining data only improves generalization if the data comes from downstream activity classes. Incorporating unlabeled data from completely irrelevant activity classes actually provided no performance benefits.
  • Asymmetric Generalization:
  • Models trained on consumer-grade devices (smartphones/smartwatches) generalize better to research-grade equipment than vice versa.
  • Sensor data from limbs (wrists/ankles) transfers more effectively to trunk positions (chest/back) than vice versa.

Key Results

  • The Generalization Gap: While traditional in-dataset HAR models routinely achieve over 80% F1-scores, the best cross-dataset generalization performance achieved in this benchmark was just 61.31% (using a ResNet encoder, CNN classifier, and BioBankSSL pretraining on accelerometer-only data).
  • Top Performers: The contrastive method FOCAL achieved the highest average F1-score (56.98%) across all architectures, closely followed by the hybrid method SimMTM (55.52%).
  • Labeled Data Diminishing Returns: When fine-tuning the classifier, increasing the labeled data ratio from 1% to 10% provided substantial performance gains, but increasing it further yielded almost no improvement. This proves that generalization is constrained by representation quality, not label scarcity.

Limitations and Future Work

The downstream evaluation in BenchHAR is currently restricted to eight core activity classes due to the lack of alignment across the 14 source datasets. Future work will focus on expanding the activity class coverage and scaling up the data diversity. Additionally, the benchmark is currently limited to IMU (accelerometer and gyroscope) sensors; extending this framework to multimodal wearable data (e.g., heart rate, PPG, EMG) is a crucial next step toward building true multi-sensor foundation models.

Summary updated

BibTeX
@misc{cai2026benchhar,
  author = {Yize Cai and Rui Feng and Anlan Yu and Baoshen Guo and Zhiqing Hong},
  title = {{BenchHAR: Benchmarking Self-Supervised Learning for Generalizable Sensor-based Activity Recognition}},
  year = {2026},
  eprint = {2605.08296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.08296},
}
Figure