Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition

Human Activity Recognition (HAR) models often suffer from performance degradation in real-world applications due to distribution shifts in activity patterns across individuals. Test-Time Adaptation (TTA) is an emerging learning paradigm that aims to utilize the test stream to adjust predictions in real-time inference, which has not been explored in HAR before. However, the high computational cost of optimization-based TTA algorithms makes it intractable to run on resource-constrained edge devices. In this paper, we propose an Optimization-Free Test-Time Adaptation (OFTTA) framework for sensor-based HAR. OFTTA adjusts the feature extractor and linear classifier simultaneously in an optimization-free manner. For the feature extractor, we propose Exponential DecayTest-time Normalization (EDTN) to replace the conventional batch normalization (CBN) layers. EDTN combines CBN and Test-time batch Normalization (TBN) to extract reliable features against domain shifts with TBN's influence decreasing exponentially in deeper layers. For the classifier, we adjust the prediction by computing the distance between the feature and the prototype, which is calculated by a maintained support set. In addition, the update of the support set is based on the pseudo label, which can benefit from reliable features extracted by EDTN. Extensive experiments on three public cross-person HAR datasets and two different TTA settings demonstrate that OFTTA outperforms the state-of-the-art TTA approaches in both classification performance and computational efficiency. Finally, we verify the superiority of our proposed OFTTA on edge devices, indicating possible deployment in real applications. Our code is available at \href{https://github.com/Claydon-Wang/OFTTA}{this https URL}.

[1]  Liang Wang,et al.  AdaNPC: Exploring Non-Parametric Classifier for Test-Time Adaptation , 2023, ICML.

[2]  Jian Liang,et al.  A Comprehensive Survey on Test-Time Adaptation under Distribution Shifts , 2023, ArXiv.

[3]  Jiaxiang Wu,et al.  Towards Stable Test-Time Adaptation in Dynamic Wild World , 2023, ICLR.

[4]  J. Choo,et al.  TTN: A Domain-Shift Aware Batch Normalization in Test-Time Adaptation , 2023, ICLR.

[5]  Bowen Zhao,et al.  DELTA: degradation-free fully test-time adaptation , 2023, ICLR.

[6]  Prateek Mittal,et al.  Uncovering Adversarial Risks of Test-Time Adaptation , 2023, ICML.

[7]  Hao Wu,et al.  Deep Ensemble Learning for Human Activity Recognition Using Wearable Sensors via Filter Activation , 2022, ACM Trans. Embed. Comput. Syst..

[8]  Wang Lu,et al.  Domain Generalization for Activity Recognition via Adaptive Feature Fusion , 2022, ACM Trans. Intell. Syst. Technol..

[9]  M-U Jang,et al.  Test-Time Adaptation via Self-Training with Nearest Neighbor Information , 2022, ICLR.

[10]  Sinno Jialin Pan,et al.  Semantic-Discriminative Mixup for Generalizable Sensor-based Cross-domain Activity Recognition , 2022, Proc. ACM Interact. Mob. Wearable Ubiquitous Technol..

[11]  K. Jia,et al.  Revisiting Realistic Test-Time Training: Sequential Inference and Adaptation by Anchored Clustering , 2022, NeurIPS.

[12]  Jiaxiang Wu,et al.  Efficient Test-Time Model Adaptation without Forgetting , 2022, ICML.

[13]  Ramakant Nevatia,et al.  MixNorm: Test-Time Adaptation Through Online Normalization Estimation , 2021, ArXiv.

[14]  S. Levine,et al.  MEMO: Test Time Robustness via Adaptation and Augmentation , 2021, NeurIPS.

[15]  Zhou Zhao,et al.  Test-time Batch Statistics Calibration for Covariate Shift , 2021, ArXiv.

[16]  A. Dosovitskiy,et al.  Do Vision Transformers See Like Convolutional Neural Networks? , 2021, NeurIPS.

[17]  Chunyan Miao,et al.  Latent Independent Excitation for Generalizable Sensor-based Cross-Person Activity Recognition , 2021, AAAI.

[18]  Abhimanyu Dubey,et al.  Adaptive Methods for Real-World Domain Generalization , 2021, 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).

[19]  Cuiling Lan,et al.  Generalizing to Unseen Domains: A Survey on Domain Generalization , 2021, IEEE Transactions on Knowledge and Data Engineering.

[20]  Gao Huang,et al.  Revisiting Locally Supervised Learning: an Alternative to End-to-end Training , 2021, ICLR.

[21]  Ankit Thakkar,et al.  A survey on video-based Human Action Recognition: recent updates, datasets, challenges, and applications , 2020, Artif. Intell. Rev..

[22]  Matthias Bethge,et al.  Improving robustness against common corruptions by covariate shift adaptation , 2020, NeurIPS.

[23]  Junehwa Song,et al.  A Systematic Study of Unsupervised Domain Adaptation for Robust Human-Activity Recognition , 2020, Proc. ACM Interact. Mob. Wearable Ubiquitous Technol..

[24]  Jiashi Feng,et al.  Do We Really Need to Access the Source Data? Source Hypothesis Transfer for Unsupervised Domain Adaptation , 2020, ICML.

[25]  Hongnian Yu,et al.  A survey on wearable sensor modality centred human activity recognition in health care , 2019, Expert Syst. Appl..

[26]  Christopher A. Choquette-Choo,et al.  Machine Unlearning , 2019, 2021 IEEE Symposium on Security and Privacy (SP).

[27]  Paolo Fornacciari,et al.  IoT Wearable Sensor and Deep Learning: An Integrated Approach for Personalized Human Activity Recognition in a Smart Home Environment , 2019, IEEE Internet of Things Journal.

[28]  Geoffrey E. Hinton,et al.  Similarity of Neural Network Representations Revisited , 2019, ICML.

[29]  Archan Misra,et al.  Scaling Human Activity Recognition via Deep Learning-based Domain Adaptation , 2018, 2018 IEEE International Conference on Pervasive Computing and Communications (PerCom).

[30]  Xiaohui Peng,et al.  Deep Learning for Sensor-based Activity Recognition: A Survey , 2017, Pattern Recognit. Lett..

[31]  Paolo Napoletano,et al.  UniMiB SHAR: A Dataset for Human Activity Recognition Using Acceleration Data from Smartphones , 2016, 1611.07688.

[32]  Reshma Khemchandani,et al.  Robust least squares twin support vector machine for human activity recognition , 2016, Appl. Soft Comput..

[33]  Daniel Roggen,et al.  Deep Convolutional and LSTM Recurrent Neural Networks for Multimodal Wearable Activity Recognition , 2016, Sensors.

[34]  Jian Sun,et al.  Deep Residual Learning for Image Recognition , 2015, 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR).

[35]  Xiaoli Li,et al.  Deep Convolutional Neural Networks on Multichannel Time Series for Human Activity Recognition , 2015, IJCAI.

[36]  François Laviolette,et al.  Domain-Adversarial Training of Neural Networks , 2015, J. Mach. Learn. Res..

[37]  Bo Yu,et al.  Convolutional Neural Networks for human activity recognition using mobile sensors , 2014, 6th International Conference on Mobile Computing, Applications and Services.

[38]  James A. Reggia,et al.  Robust human action recognition via long short-term memory , 2013, The 2013 International Joint Conference on Neural Networks (IJCNN).

[39]  Davide Anguita,et al.  Human Activity Recognition on Smartphones Using a Multiclass Hardware-Friendly Support Vector Machine , 2012, IWAAL.

[40]  Paul Lukowicz,et al.  Collecting complex activity datasets in highly rich networked sensor environments , 2010, 2010 Seventh International Conference on Networked Sensing Systems (INSS).

[41]  Michael L. Littman,et al.  Activity Recognition from Accelerometer Data , 2005, AAAI.

[42]  Ling Bao,et al.  Activity Recognition from User-Annotated Acceleration Data , 2004, Pervasive.

[43]  Vladimir Vapnik,et al.  Principles of Risk Minimization for Learning Theory , 1991, NIPS.

[44]  Lingjuan Lyu,et al.  MECTA: Memory-Economic Continual Test-Time Model Adaptation , 2023, ICLR.

[45]  Jindong Wang,et al.  Domain-Specific Risk Minimization , 2022, ArXiv.

[46]  Yusuke Iwasawa,et al.  Test-Time Classifier Adjustment Module for Model-Agnostic Domain Generalization , 2021, NeurIPS.

[47]  Trevor Darrell,et al.  Tent: Fully Test-Time Adaptation by Entropy Minimization , 2021, ICLR.

[48]  Bernt Schiele,et al.  A tutorial on human activity recognition using body-worn inertial sensors , 2014, CSUR.

[49]  Dong-Hyun Lee,et al.  Pseudo-Label : The Simple and Efficient Semi-Supervised Learning Method for Deep Neural Networks , 2013 .

[50]  Geoffrey E. Hinton,et al.  Visualizing Data using t-SNE , 2008 .

[51]  Jianhua Lin,et al.  Divergence measures based on the Shannon entropy , 1991, IEEE Trans. Inf. Theory.