[Paper Review] Optimization-Free Test-Time Adaptation for Cross-Person Activity Recognition
This paper proposes Optimization-Free Test-Time Adaptation (OFTTA) for cross-person sensor-based human activity recognition, enabling real-time, efficient adaptation on edge devices without parameter optimization. OFTTA uses Exponential Decay Test-time Normalization (EDTN) to stabilize feature extraction and a prototype-based classifier updated via pseudo-labels, achieving state-of-the-art accuracy and computational efficiency on three HAR datasets and real edge hardware.
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 https://github.com/Claydon-Wang/OFTTA.
Motivation & Objective
- Address the challenge of performance degradation in sensor-based HAR due to inter-person distribution shifts during inference.
- Overcome the high computational cost of optimization-based test-time adaptation (TTA) methods, which limits deployment on resource-constrained edge devices.
- Develop an efficient, hardware-friendly TTA framework that maintains high accuracy without requiring model retraining or optimization during inference.
- Enable real-time adaptation on edge devices such as Raspberry Pi by minimizing time and memory overhead.
- Ensure robustness to unseen domains by combining test-time normalization and prototype-based classification with pseudo-labeling.
Proposed method
- Propose Exponential Decay Test-time Normalization (EDTN), which blends conventional batch normalization (CBN) and test-time batch normalization (TBN), with TBN's influence decaying exponentially through deeper network layers.
- Use a support set of prototypes updated via pseudo-labels to dynamically adjust the classifier during inference, avoiding optimization steps.
- Compute final predictions as the distance between input features and the nearest prototype in the support set, enabling fast, parameter-free inference.
- Maintain a running average of features per class to form reliable prototypes, updated only when new pseudo-labeled predictions are confident.
- Integrate EDTN and prototype-based adaptation into a unified framework that jointly adapts feature extractor and classifier without optimization.
- Design the method to be compatible with edge devices by avoiding backpropagation and optimization loops, reducing memory and latency.
Experimental results
Research questions
- RQ1Can an optimization-free TTA framework achieve competitive performance on cross-person HAR without relying on parameter updates during inference?
- RQ2How does EDTN compare to conventional batch normalization and test-time batch normalization in handling domain shifts across individuals?
- RQ3What is the impact of using a pseudo-labeled support set for classifier adaptation on model accuracy and efficiency?
- RQ4How does OFTTA perform in terms of inference latency and memory usage on real edge devices like Raspberry Pi?
- RQ5Can OFTTA effectively handle distribution shifts in real-world HAR applications without catastrophic forgetting or high computational cost?
Key findings
- OFTTA outperforms state-of-the-art optimization-based TTA methods in both classification accuracy and computational efficiency across three public cross-person HAR datasets.
- On edge devices such as Raspberry Pi with ARM Cortex-A53, OFTTA incurs negligible time and memory overhead compared to optimization-based methods, which cause significant latency and overheating.
- The incremental CPU temperature increase during 100 adaptation steps is acceptable for OFTTA, while optimization-based methods lead to rapid overheating and longer adaptation times.
- EDTN effectively stabilizes feature representations across domains by gradually reducing reliance on test-time statistics in deeper layers, improving robustness to distribution shifts.
- The prototype-based classifier with pseudo-labeling enables accurate, fast inference without optimization, achieving competitive performance even under domain shift.
- OFTTA maintains high accuracy on unseen subjects in leave-one-out evaluation, demonstrating strong generalization and adaptability in real-world scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.