VaCDA: Variational Contrastive Alignment-based Scalable Human Activity Recognition
Soham Khisa, Avijoy Chakma
TL;DR
VaCDA tackles domain shift in wearable HAR by combining a variational autoencoder–driven latent space with contrastive learning to align and discriminate features across multiple source sensors. The method comprises a VAE-based pretraining pipeline and a classifier that leverages shared latent representations, optimized with a joint loss that includes $L_{ ext{VAE}}$ and two contrastive terms, enabling scalable multi-source adaptation. Empirical results on four public HAR datasets show improvements in cross-position and cross-device settings, with ablations confirming the positive contribution of contrastive learning, though cross-person performance is mixed. The work advances practical HAR under heterogeneous sensor conditions and lays groundwork for future extensions such as open-set DA and novel-category recognition.
Abstract
Technological advancements have led to the rise of wearable devices with sensors that continuously monitor user activities, generating vast amounts of unlabeled data. This data is challenging to interpret, and manual annotation is labor-intensive and error-prone. Additionally, data distribution is often heterogeneous due to device placement, type, and user behavior variations. As a result, traditional transfer learning methods perform suboptimally, making it difficult to recognize daily activities. To address these challenges, we use a variational autoencoder (VAE) to learn a shared, low-dimensional latent space from available sensor data. This space generalizes data across diverse sensors, mitigating heterogeneity and aiding robust adaptation to the target domain. We integrate contrastive learning to enhance feature representation by aligning instances of the same class across domains while separating different classes. We propose Variational Contrastive Domain Adaptation (VaCDA), a multi-source domain adaptation framework combining VAEs and contrastive learning to improve feature representation and reduce heterogeneity between source and target domains. We evaluate VaCDA on multiple publicly available datasets across three heterogeneity scenarios: cross-person, cross-position, and cross-device. VaCDA outperforms the baselines in cross-position and cross-device scenarios.
