Handling Variable-Dimensional Time Series with Graph Neural Networks

Vibhor Gupta, Jyoti Narwariya, Pankaj Malhotra, Lovekesh Vig, Gautam ShroffarXiv 2020

TL;DR

This paper introduces a novel architecture that allows deep learning models to handle multivariate time series with a varying number of sensors. By using a Graph Neural Network (GNN) to generate a "conditioning vector" based on which sensors are currently active, the model can successfully generalize to previously unseen sensor combinations—a capability known as zero-shot transfer learning.

What Problem Does This Paper Address?

Most current deep learning models for multivariate time series (like those used in activity recognition or industrial health monitoring) assume a fixed input dimension. In other words, they expect the exact same set of sensors to be present every time.

In the real world of the Internet of Things (IoT), this assumption often fails. Different users might wear different brands of smartwatches with different sensor suites (e.g., one has a magnetometer, another doesn't). Similarly, industrial engines might be outfitted with different subsets of temperature, vibration, and pressure sensors depending on their specific configuration.

Standard approaches usually involve "mean imputation" (filling in missing values with an average) or training a separate model for every possible sensor combination. The former often leads to poor performance as missingness increases, while the latter is computationally impossible because the number of combinations grows exponentially.

Methods

The authors propose a two-module architecture called GRU-CM (Gated Recurrent Unit with Conditioning Module):

  1. Core Dynamics Module (CDM): This is a standard recurrent neural network (specifically a GRU) that processes the temporal patterns of the data. To keep the input size fixed, missing sensors are filled with their mean values.
  2. Conditioning Module: This is the "brain" of the approach. It takes the information about which sensors are available and maps them to learned sensor embedding vectors. These embeddings are fed into a Graph Neural Network (GNN).

In this GNN, each active sensor is a node. The nodes exchange messages with each other, allowing the model to learn the relationships between the specific sensors present in a given instance. The GNN then summarizes these interactions into a single conditioning vector via a max-pooling operation. This vector is fed into the CDM at every time step, essentially "telling" the GRU how to adjust its internal logic based on the specific sensor suite it is currently seeing.

Figure 1: Illustrative flow-diagram for the proposed approach. The available sensors in a time series and corresponding active embeddings and nodes are shown in color while the missing sensor/dimension is shown in grey color (dashed). The active nodes corresponding to the available sensors exchange messages with each other via a graph neural network, and generate a conditioning vector that is used by the core dynamics module (a recurrent neural network) processing the time series to estimate the target.

Datasets

The researchers evaluated their approach on three benchmark datasets:

  • DSADS (Daily and Sports Activities Data Set): 19 activities recorded via 45 sensors placed on different body parts.
  • HAR (Human Activity Recognition Using Smartphones): 6 activities recorded via 9 sensors on a waist-mounted smartphone.
  • Turbofan Engine (FD002): A regression task aimed at estimating the Remaining Useful Life (RUL) of aircraft engines using 21 sensors.

Key Insights and Ideas

  • Combinatorial Generalization: The most powerful aspect of using a GNN is its ability to handle "unseen" combinations. Because the GNN learns how sensors interact generally, it can produce a meaningful conditioning vector for a combination of sensors it never encountered during training.
  • Message Passing Matters: The authors performed an ablation study (GRU-SE) where they skipped the GNN message passing and just pooled the raw sensor embeddings. The full GNN model performed significantly better, proving that the relationships between available sensors are crucial for robust inference.
  • Graceful Degradation: While all models perform worse as more sensors are removed, the GRU-CM approach degrades much more slowly than vanilla RNNs. It effectively "squeezes" more information out of the remaining sensors by knowing exactly what is missing.

Key Results

The authors tested the model in a Zero-Shot setting (testing on sensor combinations never seen in training) and a Fine-Tuning setting (allowing a small amount of data from the new combination).

As shown in the results table below, GRU-CM consistently outperformed the vanilla GRU baseline across all datasets. For example, on the DSADS dataset with 40% of sensors missing ($f_{te} = 40$), the GRU-CM reduced the error rate from 12.0% to 8.1% in the zero-shot setting.

Table 2: Results comparing the proposed approach GRU-CM with other baselines. Classification error rates are reported for DSADS and HAR, while RMSE is reported for Turbofan. (Lower numbers are better). GRU-A is the upper bound assuming all the sensors are available at train and test time. The numbers in bold are statistically significant from the rest with p < 0.01.

The model also proved to be more efficient than "instance-specific" fine-tuning. In a side study, they found that a pre-trained GRU-CM model without any fine-tuning often performed better than a vanilla GRU that had been specifically fine-tuned on the new sensor combination.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain open for exploration:

  • Input Imputation: The Core Dynamics Module still relies on mean-imputation for its primary input. Future work could explore more sophisticated ways to integrate the conditioning vector directly into the input layer to avoid the biases of mean-filling.
  • Graph Structure: The current model assumes a fully-connected graph between all active sensors. In very high-dimensional systems, a more sparse or hierarchical graph structure based on physical proximity (e.g., sensors on the same engine component) might be more effective.
  • Domain Transfer: The authors suggest that this work could be extended to transfer learning across entirely different domains (e.g., from one type of engine to another) by mapping sensor embeddings across datasets.

Summary updated

BibTeX
@misc{gupta2020handling,
  author = {Vibhor Gupta and Jyoti Narwariya and Pankaj Malhotra and Lovekesh Vig and Gautam Shroff},
  title = {{Handling Variable-Dimensional Time Series with Graph Neural Networks}},
  year = {2020},
  eprint = {2007.00411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00411},
}
Figure