Hierarchical Self Attention Based Autoencoder for Open-Set Human Activity Recognition
M Tanjid Hasan Tonmoy, Saif Mahmud, A K M Mahbubur Rahman, M Ashraful Amin, Amin Ahsan Ali
TL;DR
Open-set recognition in wearable HAR is addressed by a hierarchical self-attention autoencoder that fuses spatial and temporal sensor information. The model comprises a Hierarchical Window Encoder and a Session Encoder with modular and aggregator self-attention, trained under an ELBO-based reconstruction objective to detect unseen activities. It outperforms state-of-the-art baselines on five public HAR datasets and demonstrates robustness to noise and subject variability, with attention maps offering interpretable insights into sensor and temporal importance. This approach provides a scalable, explainable framework for reliable open-set HAR in real-world wearable sensing.
Abstract
Wearable sensor based human activity recognition is a challenging problem due to difficulty in modeling spatial and temporal dependencies of sensor signals. Recognition models in closed-set assumption are forced to yield members of known activity classes as prediction. However, activity recognition models can encounter an unseen activity due to body-worn sensor malfunction or disability of the subject performing the activities. This problem can be addressed through modeling solution according to the assumption of open-set recognition. Hence, the proposed self attention based approach combines data hierarchically from different sensor placements across time to classify closed-set activities and it obtains notable performance improvement over state-of-the-art models on five publicly available datasets. The decoder in this autoencoder architecture incorporates self-attention based feature representations from encoder to detect unseen activity classes in open-set recognition setting. Furthermore, attention maps generated by the hierarchical model demonstrate explainable selection of features in activity recognition. We conduct extensive leave one subject out validation experiments that indicate significantly improved robustness to noise and subject specific variability in body-worn sensor signals. The source code is available at: github.com/saif-mahmud/hierarchical-attention-HAR
