Skip to main content
QUICK REVIEW

[Paper Review] STFL: A Temporal-Spatial Federated Learning Framework for Graph Neural Networks

Guannan Lou, Yuze Liu|arXiv (Cornell University)|Nov 12, 2021
Privacy-Preserving Technologies in DataComputer Science28 references11 citations
TL;DR

STFL proposes a novel federated learning framework that transforms raw spatial-temporal data into graph-structured inputs for Graph Neural Networks (GNNs), enabling privacy-preserving, collaborative model training. By leveraging node correlation functions like PLV and PCC to construct dynamic adjacency matrices and features, STFL achieves superior generalization on graph-level tasks, outperforming centralized baselines on the ISRUC_S3 sleep stage dataset.

ABSTRACT

We present a spatial-temporal federated learning framework for graph neural networks, namely STFL. The framework explores the underlying correlation of the input spatial-temporal data and transform it to both node features and adjacency matrix. The federated learning setting in the framework ensures data privacy while achieving a good model generalization. Experiments results on the sleep stage dataset, ISRUC_S3, illustrate the effectiveness of STFL on graph prediction tasks.

Motivation & Objective

  • To address the challenge of training GNNs on raw spatial-temporal data without predefined graph structures, especially under data privacy constraints.
  • To develop an end-to-end framework that automatically generates graph representations from time-series data using spatial correlation and temporal feature extraction.
  • To integrate this graph generation process into a federated learning setting to preserve data privacy while improving model generalization across distributed clients.
  • To evaluate the framework’s effectiveness on real-world graph-level prediction tasks, particularly in healthcare applications like sleep stage classification.
  • To compare different node correlation functions (PLV, PCC, DB, K-NN) in constructing adjacency matrices for optimal GNN performance under federated settings.

Proposed method

  • A graph generator component transforms raw spatial-temporal sequences into node features and adjacency matrices using convolutional neural networks for feature extraction and correlation functions for edge construction.
  • The framework employs multiple node correlation functions—Pearson Correlation Coefficient (PCC), Phase Locking Value (PLV), Distance-Based (DB), and K-Nearest Neighbors (K-NN)—to dynamically define graph topology from time-series data.
  • An end-to-end federated learning pipeline is designed where clients train local GNN models on their generated graphs and send model updates to a central server for aggregation via FedAvg.
  • The framework supports graph-level classification tasks, with model training and evaluation conducted under non-IID data distributions to simulate real-world federated settings.
  • The graph generator is integrated with three GNN architectures—GCN, GAT, and GraphSage—enabling comparative analysis of model performance under federated learning.
  • Hyperparameters are kept consistent between federated and centralized training setups to ensure fair comparison of generalization performance.

Experimental results

Research questions

  • RQ1How effective are different node correlation functions (PLV, PCC, DB, K-NN) in constructing adjacency matrices for spatial-temporal GNNs under federated learning?
  • RQ2Can STFL achieve better model generalization than centralized training in non-IID data settings, especially when data is privacy-sensitive?
  • RQ3Which GNN architecture (GCN, GAT, GraphSage) performs best under the STFL framework for graph-level classification on spatial-temporal data?
  • RQ4How does the performance of federated models compare to centralized models when using the same training data size and hyperparameters?
  • RQ5Does the choice of correlation function significantly affect convergence speed and final model accuracy in federated GNN training?

Key findings

  • The Phase Locking Value (PLV) correlation function consistently outperforms PCC, DB, and K-NN, achieving the highest average F1 score across all federated GNN models on the ISRUC_S3 dataset.
  • Fed-GraphSage with PLV achieved the highest F1 score (0.848) and accuracy (0.857) among federated models, outperforming centralized baselines in some cases.
  • All federated models achieved better generalization than their centralized counterparts when trained on the same-sized local data, indicating STFL’s success in handling non-IID data distributions.
  • GraphSage showed the most stable training dynamics and highest F1 score on the REM sleep stage class (0.831), while GCN performed best on other classes (F1 > 0.90).
  • The training loss of all models fluctuated significantly in the final epochs, likely due to clients struggling to fit the global model to their local data, especially in later training stages.
  • The framework successfully transformed raw sleep EEG data into graph-structured inputs, enabling effective GNN training while preserving data privacy through federated learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.