Introduction
Real-world multivariate time series data—such as electronic health records or air quality sensor logs—are notoriously incomplete. Sensors fail, patients are monitored at irregular intervals, and data entry errors occur. In the PhysioNet medical dataset, for instance, the average missing rate is a staggering 80.67%.
Most existing solutions fall short:
- Simple Imputation: Methods like mean-filling or zero-filling ignore the temporal relationships between data points.
- Case Deletion: Simply discarding incomplete records wastes valuable information and introduces bias.
- Matrix Factorization: While better, these methods struggle to capture the complex, non-linear distributions and temporal dependencies inherent in time series.
This paper introduces a novel approach to multivariate time series imputation by treating missing value imputation as a data generation problem. Using Generative Adversarial Networks (GANs), the goal is to learn the underlying distribution of the entire dataset so that the "holes" can be filled with values that are not just statistically plausible, but contextually accurate.
Methodology: A Two-Phase GAN Framework
The authors propose a specialized GAN-based framework designed specifically for the irregularities of time series data.
1. The GRUI Cell
Standard Recurrent Neural Networks (RNNs) assume that observations occur at fixed time intervals. To handle the "temporal irregularity" of missing data, the authors developed the GRUI (Gated Recurrent Unit for data Imputation) cell.
The GRUI cell introduces a time decay vector ($\beta$) based on the time lag ($\delta$) since the last valid observation. If a variable has been missing for a long time, the GRUI "fades" the influence of the last known value, allowing the model to rely more on the learned global distribution rather than stale data.
2. Two-Phase Training
- Phase 1: Distribution Learning. The model trains a Wasserstein GAN (WGAN) where both the Generator (G) and Discriminator (D) utilize GRUI layers. The Generator learns to map random noise to realistic-looking "complete" time series, while the Discriminator learns to distinguish these from the original incomplete data.
- Phase 2: Latent Space Optimization. Once the GAN is trained, the model doesn't just use a random noise vector $z$ to fill gaps. For a specific incomplete sample $x$, it optimizes the input noise $z$ using a two-part loss function:
- Masked Reconstruction Loss: Ensures the generated values match the known parts of the original sample.
- Discriminative Loss: Ensures the generated values look "real" enough to fool the Discriminator.
Key Insights
- Time Lags are Features: The absence of data and the time since the last check are informative. The GRUI cell explicitly models this "decay of influence," which is a more biologically and physically realistic way to handle gaps than assuming a constant state.
- GANs as Manifold Learners: By using a GAN, the model learns the "manifold" or the shape of the data. This allows it to generate values that maintain the correlations between different variables (e.g., if blood pressure drops, the imputed heart rate should reflect that relationship).
- The Power of the Discriminator: Using the Discriminator's feedback during the imputation phase acts as a "sanity check," preventing the model from imputing values that are mathematically close to the original but physically impossible.
Datasets and Results
The model was evaluated on two distinct real-world datasets:
- PhysioNet Challenge 2012: A medical dataset containing 4,000 ICU stays with 41 variables. It features a very high missing rate (80.67%) and irregular timestamps.
- KDD CUP 2018: An air quality dataset from Beijing with 132 features observed hourly.
Performance Highlights: * State-of-the-Art Prediction: On the PhysioNet mortality prediction task, the GAN-imputed data led to an AUC of 0.8603, surpassing the previous state-of-the-art (0.848). * Imputation Accuracy: On the KDD air quality dataset, the proposed model consistently achieved lower Mean Squared Error (MSE) across various missingness levels compared to KNN and Matrix Factorization. * Ablation Study: Replacing the specialized GRUI cell with a standard GRU caused the AUC on PhysioNet to drop from 0.8603 to 0.8029, proving that modeling temporal decay is critical for performance.
Limitations and Future Work
- Computational Overhead: The two-phase process requires optimizing a noise vector $z$ for every sample during the imputation stage. This backpropagation-at-inference-time can be computationally expensive compared to simple mean-filling.
- Hyperparameter Sensitivity: The balance between reconstruction loss and discriminative loss (controlled by $\lambda$) is crucial. While a higher $\lambda$ helps classification tasks (making data look "natural"), it can sometimes hurt pure regression accuracy.
- Future Directions: The authors suggest that this architecture could be extended to other RNN variants or applied to more complex downstream tasks like multi-step forecasting in highly volatile environments.
Summary updated