Spatiotemporal Modeling of Multivariate Signals With Graph Neural Networks and Structured State Space Models

Siyi Tang, Jared A. Dunnmon, Liangqiong Qu, Khaled Kamal Saab, Christopher Lee-Messer, Daniel L. Rubin

Abstract

GraphS4mer is a novel architecture designed to process multivariate biosignals, such as EEG and ECG, by integrating Structured State Space (S4) models with dynamic Graph Neural Networks (GNNs). This framework effectively captures long-range temporal dependencies and evolving spatial relationships between sensors. GraphS4mer achieves state-of-the-art performance in seizure detection, sleep staging, and cardiac classification, demonstrating significant improvements over existing models without requiring extensive pre-training.

Introduction

Multivariate biosignals, collected from sensors like EEG electrodes or ECG leads, are critical in clinical diagnostics. However, modeling these signals presents two primary challenges:

  1. Long-Range Temporal Dependencies: High sampling frequencies result in sequences with tens of thousands of time steps. Traditional Recurrent Neural Networks (RNNs) and Transformers often fail to scale or maintain memory over such lengths.
  2. Dynamic Spatial Correlations: While sensor placements are fixed, the functional connectivity between them is dynamic. For example, brain regions synchronize differently during a seizure compared to rest. Static graph models fail to capture this biological evolution.

Methodology

The GraphS4mer framework addresses these challenges through a three-stage end-to-end process:

  1. Temporal Modeling with S4: The model employs stacked Structured State Space (S4) layers. S4 layers are highly efficient at capturing long-range context in extremely long sequences (10k+ steps), surpassing the capabilities of standard RNNs or CNNs.
  2. Dynamic Graph Structure Learning (GSL): Instead of a fixed adjacency matrix, GraphS4mer uses a self-attention-inspired layer to compute dynamic relationships between S4 embeddings of different sensors. This allows the model to learn time-varying connectivity.
  3. Spatial Modeling with GNNs: A Graph Isomorphism Network (GIN) aggregates information across sensors based on the learned dynamic graph.

To ensure physical plausibility, graph regularization is applied to encourage smooth, sparse, and connected structures.

Overview of the GraphS4mer architecture.

Experimental Setup

The model was evaluated on three diverse large-scale datasets:

  • TUSZ (Temple University Hospital EEG Seizure Corpus): Binary seizure detection from 19-channel EEG signals.
  • DOD-H (Dreem Open Dataset-Healthy): 5-stage sleep staging from 16-channel polysomnography (PSG) signals.
  • ICBEB (2018 Challenge): Multi-label classification of 9 cardiac conditions from 12-lead ECG signals.

Results and Discussion

GraphS4mer consistently outperformed existing state-of-the-art (SOTA) models across all tasks.

Performance Benchmarks

  • Seizure Detection: GraphS4mer achieved an AUROC of 0.906, a 3.1-point improvement over the previous SOTA, notably without the need for self-supervised pre-training.
  • Sleep Staging: The model reached a macro-F1 score of 0.818, improving upon specialized models like RobustSleepNet by 4.1 points.
  • ECG Classification: It achieved a macro-F1 score of 0.809, surpassing previous benchmarks by 2.7 points.
Performance comparison on the TUSZ seizure detection dataset.

Key Insights

Ablation studies confirmed that S4 layers are essential; replacing them with GRUs led to significant performance degradation. Furthermore, learning dynamic connectivity proved superior to using fixed, distance-based graphs, indicating that functional distance is a more relevant metric for biosignals.

The learned graphs also offer clinical interpretability. For instance, visualizations showed the EMG channel "disconnecting" during REM sleep, reflecting physiological muscle paralysis, and increased global synchronization during generalized seizures.

Conclusion

GraphS4mer represents a significant advancement in spatiotemporal modeling for biosignals. While highly effective, future work could address the quadratic scaling of the GSL layer for high-density sensor arrays and integrate physical sensor geometry to further refine the learned graphs.

Summary updated

BibTeX
@inproceedings{tang2023spatiotemporal,
  author = {Siyi Tang and Jared A. Dunnmon and Liangqiong Qu and Khaled Kamal Saab and Christopher Lee-Messer and Daniel L. Rubin},
  title = {{Spatiotemporal Modeling of Multivariate Signals With Graph Neural Networks and Structured State Space Models}},
  booktitle = {CHIL},
  year = {2023},
  url = {https://openreview.net/forum?id=XDm8Z5GVZr},
}
Figure