Adaptive Activity Monitoring with Uncertainty Quantification in Switching Gaussian Process Models

Randy Ardywibowo, Guang Zhao, Zhangyang Wang, Bobak Mortazavi, Shuai Huang, Xiaoning Qian

Introduction

Continuous health monitoring via wearable devices like smartphones and smartwatches has become a cornerstone of personalized medicine. However, these systems face a significant "battery killer" problem: the high-frequency polling of accelerometers and gyroscopes required for accurate activity recognition rapidly depletes device power. Not all sensor data is equally valuable at all times; for instance, if a user is stationary, high-frequency sampling provides diminishing returns. This paper addresses the accuracy-resource trade-off by proposing a hierarchical framework that quantifies prediction uncertainty to dynamically manage sensor activation.

Methodology

Hierarchical Model Architecture

The proposed framework utilizes a two-layer hierarchical model to capture both macro-level activity transitions and micro-level sensor signal patterns.

  1. Hidden Semi-Markov Model (HSMM): At the top layer, an HSMM represents discrete activity states (e.g., walking, sitting). Unlike standard Markov models, the HSMM explicitly models the duration of each activity using a Gamma distribution. This allows the model to incorporate "common sense" temporal priors—for example, recognizing that walking upstairs typically occurs in shorter bursts than sleeping.
  2. Switching Gaussian Processes (GP): Within each state, sensor signals are modeled as Gaussian Processes. The model "switches" its GP parameters based on the current HSMM state to reflect the unique signal signatures of different activities.
Hierarchical structure of the HSMM and Switching GP model, illustrating the relationship between state transitions, durations, and sensor observations.

Computational Efficiency

To overcome the $O(N^3)$ complexity of standard GPs, which is prohibitive for mobile hardware, the authors employ a block circulant embedding technique. By treating covariance matrices as circulant, the system utilizes Fast Fourier Transforms (FFT) for inference. This reduces the computational burden to $O(P^2 T \log T)$, where $P$ is the number of features and $T$ is the number of time points, making real-time multivariate GP modeling viable on wearables.

Adaptive Monitoring and Uncertainty

The core innovation lies in using predictive entropy as a control signal. The system calculates a Bayesian loss function that balances the uncertainty of the next state prediction against the energy cost of specific sensor groups. When the model is confident in its prediction, it deactivates redundant sensors; when uncertainty spikes—typically during activity transitions—it activates more sensors to regain confidence.

Experimental Evaluation

Dataset and Preprocessing

The framework was evaluated using the UCI Human Activity Recognition (HAR) dataset, featuring data from 30 volunteers performing six activities. Principal Component Analysis (PCA) was used to reduce 561 features into 10 principal components, which served as "virtual sensors" with distinct energy costs for the adaptive monitoring simulation.

Results and Discussion

The model achieved a trajectory prediction Mean Squared Error (MSE) of 0.3852 and an average activity recognition accuracy of 74.21%. A key finding was the effectiveness of the duration modeling; Figure 6 illustrates the distinct Gamma distributions learned for various activities, which provide the temporal context necessary for robust state estimation.

Probability Density Functions (PDF) of activity durations modeled by Gamma distributions, showing how the HSMM captures the temporal characteristics of different states.

In adaptive monitoring tests, the system demonstrated significant efficiency gains. With an energy cost parameter of $\lambda = 0.1$, the model maintained 79.26% accuracy while utilizing only 73.42% of the available sensor data. Most recognition errors occurred during the "lag" period immediately following an activity switch, as the model requires a brief window of new data to overcome its previous state confidence.

Conclusion

By combining the temporal modeling of HSMMs with the signal-level flexibility of Switching GPs, this framework provides a principled way to manage the energy-accuracy trade-off in wearable monitoring. The use of uncertainty as a trigger for sensor selection allows for a "lazy" yet robust monitoring strategy that significantly extends battery life without sacrificing high-stakes accuracy. Future work will focus on reducing the transition lag and refining the mapping between virtual PCA features and physical hardware sensor costs.

Summary updated

Abstract

Emerging wearable sensors have enabled the unprecedented ability to continuously monitor human activities for healthcare purposes. However, with so many ambient sensors collecting different measurements, it becomes important not only to maintain good monitoring accuracy, but also low power consumption to ensure sustainable monitoring. This power-efficient sensing scheme can be achieved by deciding which group of sensors to use at a given time, requiring an accurate characterization of the trade-off between sensor energy usage and the uncertainty in ignoring certain sensor signals while monitoring. To address this challenge in the context of activity monitoring, we have designed an adaptive activity monitoring framework. We first propose a switching Gaussian process to model the observed sensor signals emitting from the underlying activity states. To efficiently compute the Gaussian process model likelihood and quantify the context prediction uncertainty, we propose a block circulant embedding technique and use Fast Fourier Transforms (FFT) for inference. By computing the Bayesian loss function tailored to switching Gaussian processes, an adaptive monitoring procedure is developed to select features from available sensors that optimize the trade-off between sensor power consumption and the prediction performance quantified by state prediction entropy. We demonstrate the effectiveness of our framework on the popular benchmark of UCI Human Activity Recognition using Smartphones.
BibTeX
@inproceedings{ardywibowo2019adaptive,
  author = {Randy Ardywibowo and Guang Zhao and Zhangyang Wang and Bobak Mortazavi and Shuai Huang and Xiaoning Qian},
  title = {{Adaptive Activity Monitoring with Uncertainty Quantification in Switching Gaussian Process Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure