DANA: Dimension-Adaptive Neural Architecture for Multivariate Sensor Data

Year
2021
Abstract

Motion sensors embedded in wearable and mobile devices allow for dynamic selection of sensor streams and sampling rates, enabling several applications, such as power management and data-sharing control. While deep neural networks (DNNs) achieve competitive accuracy in sensor data classification, DNNs generally process incoming data from a fixed set of sensors with a fixed sampling rate, and changes in the dimensions of their inputs cause considerable accuracy loss, unnecessary computations, or failure in operation. We introduce a dimension-adaptive pooling (DAP) layer that makes DNNs flexible and more robust to changes in sensor availability and in sampling rate. DAP operates on convolutional filter maps of variable dimensions and produces an input of fixed dimensions suitable for feedforward and recurrent layers. We also propose a dimension-adaptive training (DAT) procedure for enabling DNNs that use DAP to better generalize over the set of feasible data dimensions at inference time. DAT comprises the random selection of dimensions during the forward passes and optimization with accumulated gradients of several backward passes. Combining DAP and DAT, we show how to transform non-adaptive DNNs into a Dimension-Adaptive Neural Architecture (DANA), while keeping the same number of parameters. Compared to existing approaches, our solution provides better classification accuracy over the range of possible data dimensions at inference time and does not require up-sampling or imputation, thus reducing unnecessary computations. Experiments on seven datasets (four benchmark real-world datasets for human activity recognition and three synthetic datasets) show that DANA prevents significant losses in classification accuracy of the state-of-the-art DNNs and, compared to baselines, it better captures correlated patterns in sensor data under dynamic sensor availability and varying sampling rates.

Summary

Deep neural networks for classifying sensor data (e.g. from wearables) usually expect a fixed set of sensors sampled at a fixed rate, and lose considerable accuracy when the available sensors or the sampling rate change. We introduce a dimension-adaptive pooling layer and a matching training procedure that let a network cope with variable numbers of input dimensions without retraining, turning an ordinary DNN into a Dimension-Adaptive Neural Architecture (DANA). Across seven datasets, DANA holds up much better than existing approaches when sensors drop out or sampling rates vary, without needing up-sampling or imputation.

bibtex
@article{malekzadeh2021dana,
author = {Mohammad Malekzadeh and Richard G. Clegg and Andrea Cavallaro and Hamed Haddadi},
title = {DANA: Dimension-Adaptive Neural Architecture for Multivariate Sensor Data},
journal = {Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies},
year = {2021},
volume = {5},
number = {3},
doi = {10.1145/3478074}
}
Authors
Mohammad Malekzadeh, Richard G. Clegg, Andrea Cavallaro, Hamed Haddadi
Venue
Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies (IMWUT)