Irregularity-Informed Time Series Analysis: Adaptive Modelling of Spatial and Temporal Dynamics

Liangwei Nathan Zheng, Zhengyang Li, Chang George Dong, Wei Emma Zhang, Lin Yue, Miao Xu, Olaf Maennel, Weitong Chen

TL;DR

This paper introduces MTSFormer, a novel Transformer-based framework designed to handle Irregular Time Series Data (IRTS) by considering multiple data views (locality, time, spatial, and irregularity). A key innovation is an "irregularity gate" that adaptively learns to leverage informative irregularity patterns in Natural Irregular Time Series (NIRTS) while suppressing noise from Accidental Irregular Time Series (AIRTS), achieving state-of-the-art performance across diverse datasets.

What Problem Does This Paper Address?

Many real-world applications generate time series data that is "irregular," meaning measurements are not taken at consistent time intervals. This irregularity arises from two main sources: Natural Irregular Time Series (NIRTS), where sensors naturally sample at different rates (e.g., medical monitoring), and Accidental Irregular Time Series (AIRTS), where data is missing due to sensor failures or other disruptions. Existing methods often struggle with IRTS because they either ignore the irregularity, leading to biased predictions, or statically try to learn from it, failing to differentiate between informative (NIRTS) and noisy (AIRTS) patterns. This leads to models that perform well on one type of IRTS but poorly on the other, highlighting a need for a unified, adaptive approach.

Methods

The core of MTSFormer is a multi-view Transformer architecture. It processes the irregular time series data through four distinct "views":

  • Sensor as Channel: Uses Temporal Dilated Convolution (TC) to capture local temporal patterns and locality information.
  • Time as Token: Treats time steps as tokens, using a standard Transformer encoder to capture global temporal dynamics like periodicity and tendency.
  • Sensor as Token: Integrates sensor readings over time to capture spatial correlations and sensor dependencies using a Transformer encoder.
  • Irregularity: This view specifically focuses on the patterns of missingness.

Crucially, the paper introduces an "irregularity gate" mechanism. This gate adaptively learns which aspects of the irregularity information are relevant for the specific task and dataset. It uses a learned gate to control the flow of information from the irregularity view, allowing it to emphasize informative patterns in NIRTS while filtering out distracting noise in AIRTS. This adaptive filtering is key to the model's generalization capabilities. The embeddings from these four views are then fused using a multi-view self-attention mechanism.

Datasets

The paper evaluates MTSFormer on three benchmark datasets:

  • P12: A NIRTS dataset with 36 sensors and 88.4% missing ratio, used for binary classification (mortality prediction in ICU patients).
  • P19: Another NIRTS dataset with 34 sensors and a very high 94.9% missing ratio, also for binary classification (sepsis prediction).
  • PAM: An AIRTS dataset with 17 sensors and 60% missing ratio, used for classifying 8 distinct human activities.

These datasets represent both natural and accidental irregularity, with varying levels of missingness.

Key Insights and Ideas

  • Irregularity is Informative (Sometimes): The paper strongly suggests that the pattern of missing data in NIRTS is not just noise but contains valuable predictive information, especially when the original observed values might be biased.
  • Adaptive Gating is Crucial: Simply concatenating or ignoring irregularity masks doesn't work universally. An adaptive mechanism (the "irregularity gate") is essential to dynamically decide how much irregularity information to use, depending on whether the data is NIRTS or AIRTS.
  • Multi-View Fusion for Robustness: Combining information from different perspectives (local temporal, global temporal, spatial, and irregularity) provides a more comprehensive understanding of the complex dynamics in IRTS.
  • Sensor View Limitations: The "Sensor as Token" view, while capturing spatial correlations, showed weaker performance when used alone, suggesting that pure spatial relationships are less informative than temporal or irregularity patterns in many IRTS scenarios.

Key Results

MTSFormer achieved state-of-the-art performance across all three benchmark datasets.

  • On the NIRTS datasets (P12 and P19), MTSFormer significantly improved upon strong baselines like WarpFormer, showing gains of up to 1.4% AUC and 6% AUPR on P12, and 1.1% AUC and 4.3% AUPR on P19.
  • For the AIRTS dataset (PAM), MTSFormer also outperformed baselines, with improvements of up to 3.3% in Accuracy, 3.2% in Precision, 2.9% in Recall, and 3.1% in F1 score compared to WarpFormer.
  • The model demonstrated strong resistance to varying missing data ratios, outperforming other methods even under high missingness scenarios.
  • Ablation studies confirmed the importance of the irregularity gate, with MTSFormer V4 (the full model with the gate) generally outperforming variants that either ignored irregularity, used raw masks, or concatenated masks without adaptive filtering.

Limitations and Future Work

  • ViTST Performance: The paper notes that ViTST, a vision Transformer approach, achieved competitive results but relied heavily on pre-trained models. When trained from scratch, its performance was significantly worse, suggesting that its strength comes from large-scale pre-training rather than inherent IRTS modeling capabilities. The authors excluded it from direct comparison due to this dependency.
  • Variant Performance Fluctuations: While MTSFormer V4 (the proposed method) was generally the best, some variants (e.g., MTSFormer V2, which only used irregularity masks) performed exceptionally well on NIRTS (P19), suggesting that for purely natural irregular data, the irregularity itself is highly predictive. This reinforces the need for the adaptive gate to balance these different data types.
  • Future Work: The paper implicitly suggests further exploration into how the irregularity gate can be further optimized or adapted for even more diverse IRTS scenarios. The success on both NIRTS and AIRTS also opens avenues for applying this adaptive approach to other complex time series problems.

Summary updated

BibTeX
@inproceedings{zheng2024irregularity,
  author = {Liangwei Nathan Zheng and Zhengyang Li and Chang George Dong and Wei Emma Zhang and Lin Yue and Miao Xu and Olaf Maennel and Weitong Chen},
  title = {{Irregularity-Informed Time Series Analysis: Adaptive Modelling of Spatial and Temporal Dynamics}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  url = {https://openreview.net/forum?id=1UnhMcAXnY},
}
Figure