Modeling Multivariate Biosignals with Graph Neural Networks and Structured State Space

Siyi Tang, Jared Dunnmon, Liangqiong Qu, Khaled Kamal Saab, Tina Baykaner, Christopher Lee-Messer, Daniel Rubin

TL;DR

This paper introduces GraphS4mer, a novel deep learning architecture that models complex biosignals (like EEG, PSG, ECG) by combining structured state space models for long-range temporal patterns with graph neural networks for spatial relationships. This approach significantly improves performance on critical tasks like seizure detection, sleep staging, and ECG classification by dynamically learning the relationships between sensors.

What Problem Does This Paper Address?

Multivariate biosignals, such as electroencephalograms (EEGs) for brain activity, polysomnograms (PSGs) for sleep, and electrocardiograms (ECGs) for heart activity, are rich sources of medical information. However, analyzing them is challenging due to two main issues:

  1. Long-Range Temporal Dependencies: Biosignals can exhibit patterns that span very long time scales, making it difficult for traditional sequence models to capture them effectively.
  2. Complex Spatial Correlations: The sensors (electrodes) used to record these signals have intricate, non-Euclidean relationships. For instance, EEG electrodes are placed on the scalp, and their readings are influenced by nearby brain regions, but these relationships aren't always straightforward or static.

Existing methods often struggle with one or both of these challenges, either by simplifying the temporal dynamics or by assuming static relationships between sensors.

Methods

The authors propose GraphS4mer, a novel architecture with three key components:

  1. Structured State Space (S4) Layers: These are state-of-the-art deep sequence models designed to efficiently capture long-range temporal dependencies. By applying S4 layers to each sensor's signal independently, GraphS4mer can effectively learn these extended temporal patterns.
  2. Graph Structure Learning (GSL) Layer: This is a crucial innovation. Instead of assuming a fixed relationship between sensors, GraphS4mer learns these relationships dynamically over time. It treats biosignals as time-dependent graphs where sensors are nodes and their relationships are edges. The GSL layer uses a self-attention mechanism (similar to what's used in Transformers) to learn these dynamic graph structures within short time intervals. This allows the model to adapt to changing biological states (e.g., transitioning from a normal state to a seizure).
  3. Graph Neural Network (GNN) Layers: Once the dynamic graph structures are learned, GNN layers are used to process the sensor embeddings (from S4) and the learned graph structures, effectively capturing the spatial dependencies between sensors.

The model combines these components by first using S4 to get temporal embeddings, then using GSL to learn dynamic graphs, and finally using GNNs to integrate spatial and temporal information for classification.

Datasets

The proposed model was evaluated on three publicly available datasets:

  • Temple University Hospital EEG Seizure Corpus (TUSZ): For seizure detection from EEG signals.
  • Dreem Open Dataset-Healthy (DOD-H): For sleep staging from polysomnographic (PSG) signals.
  • ICBEB ECG dataset: For 12-lead electrocardiogram (ECG) classification.

The paper does not introduce new benchmarks but utilizes established datasets to demonstrate the effectiveness of their approach.

Key Insights and Ideas

  • Dynamic Sensor Relationships are Crucial: The most significant insight is that the relationships between biosignal sensors are not static. They evolve with changes in the underlying biological state (e.g., seizure activity, sleep stages, heart conditions). GraphS4mer's ability to learn these dynamic relationships is key to its improved performance.
  • S4 is Powerful for Long Sequences: The paper highlights the effectiveness of Structured State Space models (S4) in handling the extremely long sequences common in biosignals, outperforming traditional RNNs and Transformers in this regard.
  • Self-Attention for Graph Learning: Adapting self-attention mechanisms, a success in natural language processing, for learning graph structures in biosignals proves to be a powerful approach.
  • End-to-End Learning: GraphS4mer learns temporal dependencies, spatial relationships, and graph structures in an end-to-end fashion, eliminating the need for manual feature engineering or predefined graph structures.

Key Results

GraphS4mer consistently outperformed existing state-of-the-art models across all three tasks:

  • Seizure Detection (EEG): Achieved a 3.1-point improvement in AUROC compared to a previous GNN with self-supervised pre-training, and importantly, was trained from scratch.
  • Sleep Staging (PSG): Showed a 4.1-point improvement in macro-F1 score over existing sleep staging models.
  • ECG Classification: Outperformed previous state-of-the-art models by 2.7 points in macro-F1 score.

Qualitative analysis also showed that the learned graph structures were meaningful and reflected the underlying disease states or sleep stages.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Domain Knowledge Integration: The current GSL layer doesn't explicitly incorporate domain knowledge (e.g., standard sensor placement). Future work could leverage this to further improve performance.
  • Computational Cost of Self-Attention: Self-attention's quadratic complexity with respect to the number of nodes (sensors) can be a bottleneck for datasets with many sensors. Exploring more efficient attention mechanisms is suggested.
  • Variable Length ECGs: Handling variable-length ECG signals by setting the temporal resolution to the full sequence length was a practical choice. Future work could explore methods to use shorter temporal resolutions for such data.
  • Broader Applications: The study focused on classification tasks. Applying GraphS4mer to other biosignal-related tasks like regression or forecasting is a promising avenue.

Summary updated

BibTeX
@inproceedings{tang2023modeling,
  author = {Siyi Tang and Jared Dunnmon and Liangqiong Qu and Khaled Kamal Saab and Tina Baykaner and Christopher Lee-Messer and Daniel Rubin},
  title = {{Modeling Multivariate Biosignals with Graph Neural Networks and Structured State Space}},
  booktitle = {CHIL},
  year = {2023},
  url = {https://openreview.net/forum?id=XDm8Z5GVZr},
}
Figure