RDeepSense: Reliable Deep Mobile Computing Models with Uncertainty Estimations

Shuochao Yao, Yiran Zhao, Huajie Shao, Aston Zhang, Chao Zhang, Shen Li, Tarek F. Abdelzaher

TL;DR

RDeepSense is the first deep learning framework designed to provide well-calibrated uncertainty estimations on resource-constrained mobile and embedded devices. By combining a tunable "scoring rule" with efficient dropout-based inference, it achieves a 90% reduction in energy consumption compared to traditional sampling methods while maintaining state-of-the-art accuracy.

The Challenge of Uncertainty in Mobile AI

Deep learning has revolutionized mobile sensing—from tracking heart rates to recognizing physical activities. However, most mobile AI models are "black boxes" that provide a single prediction without any measure of confidence. In high-stakes scenarios like health monitoring or autonomous navigation, knowing when a model is likely to be wrong (predictive uncertainty) is just as important as the prediction itself.

Existing methods for estimating uncertainty, such as Bayesian Neural Networks or model ensembles, are computationally heavy. They require running multiple versions of a model or sampling it dozens of times, which quickly drains the battery and overwhelms the limited CPUs of mobile devices. RDeepSense tackles the challenge of providing mathematically grounded, reliable uncertainty without the massive computational overhead.

Methodology: Efficiency through Scoring Rules

The authors propose a two-step "recipe" to transform a standard neural network into a reliable one:

  1. Tunable Proper Scoring Rules: Instead of using standard loss functions like Mean Square Error (MSE), RDeepSense uses a weighted sum of negative log-likelihood and MSE (controlled by a hyper-parameter $\alpha$). This allows the model to learn to output both a prediction (mean) and a measure of its own error (variance). The $\alpha$ parameter acts as a "knob" to prevent the model from being over- or under-confident.
  2. Efficient Dropout Inference: While standard uncertainty methods use "Monte Carlo Dropout" (running the model many times with different random neurons turned off), RDeepSense uses a single-pass approximation. It treats dropout as an implicit Bayesian approximation, allowing the device to estimate predictive distribution in one go.
Comparison of RDeepSense with existing uncertainty estimation algorithms.

The paper provides a theoretical proof showing that this approach is mathematically equivalent to a Deep Gaussian Process, a powerful statistical model known for its excellent uncertainty handling, but without the $O(N^3)$ complexity that usually makes GPs unscalable for large datasets.

Experimental Evaluation

The researchers evaluated RDeepSense across four diverse mobile sensing tasks:

  • BPEst: Cuffless blood pressure monitoring using photoplethysmogram (PPG) signals.
  • NYCommute: Estimating taxi commute times in New York City.
  • GasSen: Estimating concentrations of gas mixtures from chemical sensor arrays.
  • HHAR: Heterogeneous Human Activity Recognition using motion sensors from smartphones and watches.

Key Insights

  • The Efficiency Breakthrough: You don't need 20 samples to understand a model's confidence. By training the model to output variance directly using a "proper scoring rule," a single pass is sufficient for mobile use cases. This led to a 90% reduction in energy consumption and inference time compared to Monte Carlo dropout and ensemble methods.
  • The Bias-Variance Knob: The hyper-parameter $\alpha$ is crucial. The authors found that training solely with log-likelihood often leads to over-confident models, while MSE-only training ignores uncertainty. The weighted combination allows for "well-calibrated" results—meaning if the model says it's 90% sure, it's actually right 90% of the time.
  • Reliability: In "reliability diagrams" (calibration curves), RDeepSense consistently stayed closest to the ideal diagonal line, significantly outperforming other deep learning baselines which tended to either wildly underestimate or overestimate their own errors.

Limitations and Future Work

The current implementation of RDeepSense focuses on fully-connected layers. While the authors discuss the potential to extend this to Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) by using convolutional or recurrent dropout, those specific architectures were not the primary focus of the experimental evaluation in this paper. Additionally, the method requires tuning the $\alpha$ hyper-parameter on a validation set, which adds a step to the training pipeline.

Summary updated

BibTeX
@article{yao2017rdeepsense,
  author = {Shuochao Yao and Yiran Zhao and Huajie Shao and Aston Zhang and Chao Zhang and Shen Li and Tarek F. Abdelzaher},
  title = {{RDeepSense: Reliable Deep Mobile Computing Models with Uncertainty Estimations}},
  journal = {Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.},
  year = {2017},
  doi = {10.1145/3161181},
}
Figure