Finding Short Signals in Long Irregular Time Series with Continuous-Time Attention Policy Networks

Thomas Hartvigsen, Jidapa Thadajarassiri, Xiangnan Kong, Elke A. RundensteinerarXiv 2023 · DOI

Abstract

Classifying long, irregularly-sampled time series (ITS) is often a "needle in a haystack" problem where only tiny snippets of data contain the relevant signal. Traditional models that process entire sequences linearly or through imputation suffer from low signal-to-noise ratios and computational inefficiency. We present CAT (Continuous-time Attention policy network), a novel framework that treats classification as a sequential search process. By employing reinforcement learning to "jump" across a continuous timeline, CAT intelligently seeks out and models only the most informative moments. Our evaluations demonstrate that CAT outperforms state-of-the-art methods by over 8% in accuracy while training up to 7x faster.

Introduction

In domains such as healthcare monitoring and wearable sensor analysis, data is frequently collected at irregular intervals. These irregularly-sampled time series (ITS) can be exceptionally long, yet the critical patterns—such as a specific gesture or a medical event—may occupy only a fraction of the total duration.

The "needle in a haystack" problem in smartphone sensor data, where a fall event is a tiny fraction of the total signal.

Existing approaches typically attempt to impute missing values or process the entire sequence linearly. This leads to several challenges: a low signal-to-noise ratio that causes "vanishing gradients," extreme computational overhead for long sequences, and the neglect of "informative irregularity"—the fact that the timing of measurements itself often carries diagnostic value.

The CAT Architecture

The proposed CAT model addresses these issues by treating classification as a strategic search. Instead of reading the series from start to finish, CAT takes a small number of strategic "glimpses" (typically $K=3$) at the timeline. The architecture consists of four primary components:

  1. Receptor Network: Extracts local representations of data values and "observation density" (sampling frequency) within a small window around a chosen timestamp.
  2. Moment Network: Acts as the policy "brain." Using the REINFORCE algorithm, it predicts the next optimal timestamp to investigate based on prior observations.
  3. Transition Model: A Gated Recurrent Unit (GRU) that maintains a "memory" of all visited moments, synthesizing a global understanding of the series.
  4. Discriminator Network: A final classifier that uses the accumulated memory to predict the class label.
The full CAT architecture, showing the interaction between the Receptor, Transition, Moment, and Discriminator networks.

By utilizing reinforcement learning, CAT learns to navigate the continuous timeline without requiring explicit labels for the "important" segments. This allows the model to be resolution-independent and highly efficient.

Experimental Evaluation

The model was evaluated against ten state-of-the-art methods, including mTAN, NCDE, and GRU-D, across one synthetic and five real-world datasets (e.g., UWave gesture recognition and ExtraSensory smartphone data).

Key Results

  • Superior Accuracy: CAT outperformed competitors across all real-world datasets, showing an average improvement of over 8%.
  • Massive Speedup: In high-resolution scenarios, CAT trained 7x faster than the next-best competitor. Its complexity scales with the number of "hops" ($K$), not the total sequence length.
  • Robustness to Noise: On synthetic tasks, CAT maintained high accuracy even when the relevant signal occupied only 6% of the timeline, a scenario where traditional RNNs failed.

Conclusion

CAT introduces a paradigm shift in processing long, irregular time series by replacing linear processing with an intelligent, sparse search policy. By focusing only on relevant "moments," the model achieves superior accuracy and significant computational savings. Future work may involve integrating more complex modules like Neural ODEs into the Receptor component to further enhance local feature extraction.

Summary updated

Abstract

Irregularly-sampled time series (ITS) are native to high-impact domains like healthcare, where measurements are collected over time at uneven intervals. However, for many classification problems, only small portions of long time series are often relevant to the class label. In this case, existing ITS models often fail to classify long series since they rely on careful imputation, which easily over- or under-samples the relevant regions. Using this insight, we then propose CAT, a model that classifies multivariate ITS by explicitly seeking highly-relevant portions of an input series' timeline. CAT achieves this by integrating three components: (1) A Moment Network learns to seek relevant moments in an ITS's continuous timeline using reinforcement learning. (2) A Receptor Network models the temporal dynamics of both observations and their timing localized around predicted moments. (3) A recurrent Transition Model models the sequence of transitions between these moments, cultivating a representation with which the series is classified. Using synthetic and real data, we find that CAT outperforms ten state-of-the-art methods by finding short signals in long irregular time series.
BibTeX
@misc{hartvigsen2023finding,
  author = {Thomas Hartvigsen and Jidapa Thadajarassiri and Xiangnan Kong and Elke A. Rundensteiner},
  title = {{Finding Short Signals in Long Irregular Time Series with Continuous-Time Attention Policy Networks}},
  year = {2023},
  eprint = {2302.04052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.04052},
}
Figure