Time-Parameterized Convolutional Neural Networks for Irregularly Sampled Time Series

Chrysoula Kosma, Giannis Nikolentzos, Michalis VazirgiannisarXiv 2023 · DOI

Abstract

Standard deep learning architectures for sequential data, such as Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs), typically assume equidistant sampling. However, real-world data in domains like medicine and finance are often irregularly sampled. We present Time-Parameterized Convolutional Neural Networks (TPCNN), which introduce a novel convolutional layer where kernel weights are continuous functions of time intervals. This approach allows for efficient, parallel processing of irregular time series. Our results on benchmarks like PhysioNet and MIMIC-III show that TPCNN matches the performance of complex Neural ODEs and Attention mechanisms while being significantly more parameter-efficient and faster to train.

Introduction

Most sequential models expect observations to arrive at regular intervals. In practice, data such as ICU vitals or financial ticks are "irregularly sampled," leading to gaps that standard models cannot natively handle. Common workarounds include data imputation, which can introduce noise, or Neural ODEs, which are mathematically elegant but computationally expensive and slow. TPCNN addresses this by parameterizing convolutional kernels as continuous functions of time, bringing the efficiency of CNNs to irregular data domains.

Methods

Time-Parameterized Convolution (TPC) Layer

The core innovation of TPCNN is the TPC layer. In a standard CNN, a kernel consists of a fixed set of weights. In contrast, a TPC kernel is defined as a function $g(\theta, \Delta t)$, where the weights change dynamically based on the time difference ($\Delta t$) between an observation and the center of the convolutional window.

Illustration of the TPC kernel application to a data patch with varying observation times.

To provide a strong inductive bias, the kernel is parameterized using a set of ten basis functions ($h_1$ to $h_{10}$), including linear, sinusoidal (for seasonality), and exponential (for trends) forms. The kernel value is computed as: $$g = \theta_1 \cdot \sigma(h(\theta_3 \cdot \Delta t + \theta_4)) + \theta_2$$ where $\theta$ represents learnable parameters and $\sigma$ is an activation function.

Model Architecture

The TPC layer typically serves as the initial encoder stage, mapping irregular inputs into a continuous latent representation. This representation is then processed by standard "vanilla" 1D convolutions and pooling layers.

Overview of the TPCNN architecture showing the flow for classification (left) and reconstruction (right).

A key advantage of this design is that the number of parameters in the TPC layer is independent of the kernel size, as the kernel is generated by a function with a fixed number of variables. This significantly reduces the risk of overfitting and allows for flexible window sizes without increasing model complexity.

Experiments and Datasets

The authors evaluated TPCNN on three real-world benchmarks and one synthetic dataset:

  • PhysioNet Challenge 2012 & MIMIC-III: Large-scale ICU records used for mortality prediction and interpolation.
  • Human Activity: Sensor data from wearable tags used for activity recognition.
  • Synthetic Sinusoidal Data: Used specifically to visualize how well the model reconstructs continuous signals from sparse points.

Key Results

TPCNN demonstrates competitive accuracy and superior efficiency across all benchmarks:

  • Competitive Accuracy: On the PhysioNet mortality task, TPCNN achieved an AUC of 0.833, performing as well as complex ODE-based models and nearly matching state-of-the-art Attention-based models (mTAND).
  • Massive Parameter Reduction: TPCNN is remarkably lean. On PhysioNet, it used only 350K parameters, compared to 1.3M for mTAND-Full—a nearly 4x reduction with negligible loss in performance.
  • Speed: TPCNN matches the training speed of the fastest attention models and is orders of magnitude faster than ODE-based approaches that require numerical solvers.
  • Interpolation: The model proved highly effective at "filling in the blanks," outperforming RNN-VAE and L-ODE-RNN in reconstructing missing data points across various levels of data sparsity.

Conclusion

TPCNN provides a robust and efficient framework for modeling irregularly sampled time series. By parameterizing kernels as continuous functions of time, it bridges the gap between the parallel efficiency of CNNs and the flexibility of continuous-time models. Future work may explore size-varying kernels and automated basis function selection to further enhance the model's adaptability to diverse temporal dynamics.

Summary updated

BibTeX
@misc{kosma2023time,
  author = {Chrysoula Kosma and Giannis Nikolentzos and Michalis Vazirgiannis},
  title = {{Time-Parameterized Convolutional Neural Networks for Irregularly Sampled Time Series}},
  year = {2023},
  eprint = {2308.03210},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.03210},
}
Figure