Learning Datum-Wise Sampling Frequency for Energy-Efficient Human Activity Recognition

Weihao Cheng, Sarah M. Erfani, Rui Zhang, Ramamohanarao Kotagiri

Abstract

Human Activity Recognition (HAR) on wearable devices is often constrained by limited battery life. While high-frequency sampling ensures accuracy, it consumes significant energy. This paper proposes Datum-Wise Frequency Selection (DWFS), a reinforcement learning-based approach that dynamically adjusts the sampling frequency for each data point using a continuous-state Markov Decision Process (MDP). By balancing classification accuracy and energy expenditure through a tunable reward function, DWFS achieves a superior trade-off compared to fixed-frequency and heuristic-based methods across multiple real-world datasets.

Introduction

Continuous Human Activity Recognition (HAR)—identifying activities such as walking, running, or sitting—is a cornerstone of modern health tracking and smart assistance. However, these systems face a fundamental "power-accuracy" paradox. High-frequency sampling (e.g., 100Hz) captures the nuances of complex movements but rapidly depletes battery life. Conversely, low-frequency sampling extends battery life at the cost of recognition precision.

Most existing systems rely on fixed sampling rates, which are inherently inefficient as different activities require different levels of resolution. While some dynamic methods exist, they often use simple heuristics or discrete states that fail to leverage the rich information within sensor data. The authors address this by making sampling decisions "datum-wise," determining the frequency for the next data point based on the specific features of the current one.

Methodology

The authors formalize the HAR task as a reinforcement learning problem using a Markov Decision Process (MDP).

The Markov Decision Process (MDP) framework for datum-wise frequency selection.

Continuous State Space and Reward Function

Unlike previous models restricted to discrete user states, DWFS utilizes a continuous state vector. This vector integrates feature representations (extracted via Fourier coefficients) with prediction probabilities from the classification model. The system's objective is maximized through a reward function that incentivizes high classification accuracy while penalizing energy consumption, governed by a weight parameter $\lambda$.

Alternative Optimization

A key contribution is the iterative learning approach designed to handle the interdependence between the classification model and the sampling policy. The training alternates between:

  1. Updating the classifier while fixing the sampling policy.
  2. Updating the sampling policy while fixing the classifier.

Crucially, the results from the MDP are used to re-weight training data, compelling the classifier to specialize in instances sampled at the frequencies selected by the policy.

Experimental Evaluation

The model was evaluated on three diverse 3-axis accelerometer datasets:

  • HASC 2011: 6 activities at 100Hz (iPhone/iPod).
  • HARSD: 6 activities at 50Hz (Samsung Galaxy S II).
  • DSA (Daily Sport Activities): 19 activities at 25Hz (body-worn sensors).

Results and Discussion

DWFS consistently outperformed state-of-the-art baselines, including fixed-frequency sampling and Recurrent Neural Networks (RNNs), across all datasets.

Performance evaluation across HASC, HARSD, and DSA datasets showing classification error, energy cost, and frequency stability.

Key Insights

  • Context-Aware Sampling: The features of the current activity serve as the best predictors for future data requirements. For instance, "standing" allows for a significant drop in sampling frequency without loss of critical information.
  • Mutual Enhancement: The alternating training process ensures the classifier is robust to the "distorted" or low-resolution data produced by energy-saving policies.
  • Stability: The "frequency changing rate" remains stable (0.1–0.3) regardless of the energy penalty, indicating that the model makes meaningful transitions rather than erratic switches.
  • Statistical Significance: Wilcoxon signed-rank tests confirmed that DWFS's improvements over baselines like MDP-DS and RNNs are statistically significant ($p < 0.05$).

Conclusion

DWFS offers a robust framework for energy-efficient HAR by dynamically adapting sampling rates at the datum level. While current evaluations are based on offline simulations, the inference algorithm is designed for real-time constraints. Future work will explore Imitation Learning to handle more complex sensing tasks and evaluate the model across a broader range of hardware power profiles.

Summary updated

BibTeX
@inproceedings{cheng2018learning,
  author = {Weihao Cheng and Sarah M. Erfani and Rui Zhang and Ramamohanarao Kotagiri},
  title = {{Learning Datum-Wise Sampling Frequency for Energy-Efficient Human Activity Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11862},
}
Figure