Quantifying Uncertainty in Machine Learning-Based Pervasive Systems: Application to Human Activity Recognition
Vladimir Balditsyn, Philippe Lalanda, German Vega, Stéphanie Chollet
TL;DR
The study tackles unreliable predictions from ML-based pervasive HAR systems by proposing a cascaded uncertainty quantification framework that combines a MAE-based Transformer, reconstruction-loss thresholds, latent-space distance, and MC dropout. It demonstrates that different uncertainty cues excel under distinct distributional shifts and that cascading these cues improves detection of out-of-distribution inputs while remaining computationally feasible on edge devices. The approach is validated on RealWorld and HHAR datasets, using a green/red flag scheme to communicate reliability to domain operators. This work advances practical, risk-aware deployment of HAR in IoT environments and outlines avenues for further enhancement with density-based and evidential learning techniques.
Abstract
The recent convergence of pervasive computing and machine learning has given rise to numerous services, impacting almost all areas of economic and social activity. However, the use of AI techniques precludes certain standard software development practices, which emphasize rigorous testing to ensure the elimination of all bugs and adherence to well-defined specifications. ML models are trained on numerous high-dimensional examples rather than being manually coded. Consequently, the boundaries of their operating range are uncertain, and they cannot guarantee absolute error-free performance. In this paper, we propose to quantify uncertainty in ML-based systems. To achieve this, we propose to adapt and jointly utilize a set of selected techniques to evaluate the relevance of model predictions at runtime. We apply and evaluate these proposals in the highly heterogeneous and evolving domain of Human Activity Recognition (HAR). The results presented demonstrate the relevance of the approach, and we discuss in detail the assistance provided to domain experts.
