This repository presents an independent algorithmic reproduction and synthetic validation study of:
Positive Definite Wasserstein Graph Kernel for Brain Disease Diagnosis Ma et al., MICCAI 2023
The original work introduces a novel graph kernel framework that combines:
- Graph spectral representation
- Optimal transport geometry
- Sliced Wasserstein distance
- Positive definite kernel learning
- Kernel-based classification
for the analysis of brain functional connectivity networks.
This project reconstructs the complete computational pipeline from the mathematical formulation of the paper and evaluates the behavior of the proposed Sliced Wasserstein Graph Kernel (SWG) under controlled synthetic brain network conditions.
The main objectives of this project are:
-
Independent reproduction of the SWG graph kernel framework
-
Implementation of the complete mathematical pipeline
-
Construction of synthetic functional brain networks with disease-specific connectivity alterations
-
Evaluation using kernel SVM classification
-
Visualization of graph-level geometric differences using Wasserstein distance matrices
This project is not only a software implementation.
The complete methodology was independently reconstructed from the original research formulation:
✓ Graph representation
✓ Laplacian spectral embedding
✓ Wasserstein-based graph comparison
✓ Sliced projection approximation
✓ Positive definite kernel construction
✓ Kernel SVM classification
✓ Cross-validation evaluation framework
The repository serves as a reproducible research artifact demonstrating the connection between:
- Medical AI
- Graph Machine Learning
- Optimal Transport
- Computational Neuroscience
Brain functional connectivity networks can be represented as weighted graphs:
- Nodes → brain regions
- Edges → functional connectivity strength
Traditional graph analysis often relies on handcrafted local features:
- Degree statistics
- Clustering coefficients
- Centrality measures
However, these descriptors may not fully capture global structural differences between brain networks.
The SWG framework addresses this challenge by representing graphs as geometric distributions in spectral space.
Brain Connectivity Graph
|
v
Laplacian Spectral Embedding
|
v
Node Distribution in Latent Space
|
v
Sliced Wasserstein Distance
|
v
Positive Definite Graph Kernel
|
v
Kernel SVM Classification
Because the original neuroimaging datasets were unavailable in this reproduction setting, synthetic functional connectivity networks were generated.
Each graph contains:
- 90 brain regions
- 6 modular communities
- Weighted adjacency matrix
- Gaussian subject-level noise
- Disease-specific connectivity perturbations
Dataset configuration:
100 subjects per disease experiment
50 Healthy Controls (NC)
50 Disease Subjects
Simulated alteration:
- Reduced fronto-parietal connectivity
- Weakening of inter-module communication
Simulated alteration:
- Increased connectivity within a DMN-like module
- Reduced cross-module connectivity
Simulated alteration:
- Temporal-occipital network disruption
- Reduced intra-module connectivity
For each brain graph:
where:
- A = adjacency matrix
- D = degree matrix
The graph is embedded using the smallest non-zero eigenvectors:
Each graph becomes a point cloud representation in spectral space.
The embedded graphs are compared using Wasserstein geometry.
Random projection directions:
For each projection:
- Project node embeddings
- Sort projected distributions
- Compute 1D Wasserstein distance
The final graph distance:
is obtained by averaging over multiple slices.
The graph similarity is defined as:
This produces a positive definite kernel matrix suitable for SVM learning.
Classifier:
Support Vector Machine
Kernel: Precomputed SWG Kernel
Evaluation:
Leave-One-Out Cross Validation
Hyperparameter search:
| Parameter | Values |
|---|---|
| λ | 0.01, 0.1, 1, 10, 100 |
| C | 0.001 - 100 |
Metrics:
- Accuracy
- ROC-AUC
- Runtime
- Wasserstein distance visualization
| Dataset | Accuracy | AUC | Interpretation |
|---|---|---|---|
| ADHD vs NC | 67.0% | 0.726 | Subtle connectivity alteration |
| ASD vs NC | 100% | 1.000 | Strong modular separation |
| EMCI vs NC | 100% | 1.000 | Strong structural disruption |
| Dataset | Original Paper Accuracy | Synthetic Validation |
|---|---|---|
| ADHD | 78.83% | 67.0% |
| ASD | 90.54% | 100.0% |
| EMCI | 85.44% | 100.0% |
Important:
The results in this repository are obtained from synthetic brain networks, not the original fMRI datasets.
Therefore:
- These values demonstrate algorithmic sensitivity.
- They should not be interpreted as clinical diagnostic performance.
- Real-world validation requires external neuroimaging datasets.
The Wasserstein distance matrices provide an interpretable view of graph-level separation.
SWG-Kernel-Brain-Network-Diagnosis/
│
├── paper/
│ └── Positive_Definite_Wasserstein_Graph_Kernel_MICCAI2023.pdf
│
├── presentation/
│ └── Positive Definite Sliced Wasserstein Graph Kernel.pptx
│
├── report/
│ └── PDSW_Graph_Kernel_Report.pdf
│
├── results/
│ ├── heatmap_ADHD.png
│ ├── heatmap_ASD.png
│ └── heatmap_EMCI.png
│
├── src/
│ └── swg_brain_diagnosis_pipeline.py
│
├── requirements.txt
├── CITATION.cff
├── LICENSE
└── README.md
- Python 3.10
- NumPy
- SciPy
- scikit-learn
- Matplotlib
- Kernel SVM
- Leave-One-Out Cross Validation
- Hyperparameter Optimization
- Spectral Graph Theory
- Optimal Transport
- Wasserstein Distance
- Positive Definite Kernels
git clone https://github.com/hannah-fathi/SWG-Kernel-Brain-Network-Diagnosis.git
cd SWG-Kernel-Brain-Network-Diagnosis
pip install -r requirements.txtpython src/swg_brain_diagnosis_pipeline.pyThe pipeline automatically:
- Generates synthetic brain graphs
- Computes spectral embeddings
- Builds SWG kernel matrices
- Performs SVM classification
- Reports Accuracy and AUC
- Generates Wasserstein heatmaps
All experiments use:
- Fixed random seed = 42
- Deterministic synthetic graph generation
- Embedding dimension:
- Number of Wasserstein slices:
The complete experiment can be reproduced from the provided source code.
The SWG framework was reconstructed from the original mathematical description without relying on unavailable official implementation.
This project combines:
- Graph spectral methods
- Wasserstein geometry
- Kernel learning
- Medical AI
A biologically motivated synthetic framework was designed to model:
- Network disruption
- Modular connectivity changes
- Disease-related graph geometry alterations
The repository provides:
- Source implementation
- Scientific report
- Research presentation
- Original paper reference
- Experimental results
- Visualization outputs
Synthetic networks cannot fully capture:
- Biological variability
- Scanner effects
- Individual differences
- Real fMRI complexity
The current evaluation uses flat hyperparameter search.
Future studies should include:
- Nested cross-validation
- Statistical significance testing
- External dataset validation
Potential datasets:
- ADHD-200
- ABIDE
- ADNI
Future extensions:
- Graph Neural Networks
- Neural Optimal Transport
- Learnable Wasserstein projections
Investigate multiple embedding dimensions:
for richer structural representations.
Ma et al.
Positive Definite Wasserstein Graph Kernel for Brain Disease Diagnosis
MICCAI 2023.
This repository was developed as a graduate-level Artificial Intelligence research project exploring the intersection of:
- Medical AI
- Graph Machine Learning
- Optimal Transport
- Brain Network Analysis
It provides a reproducible foundation for future experiments on real neuroimaging datasets.
If you use this repository in academic work, please cite:
Fathi, Hannah.
Positive Definite Sliced Wasserstein Graph Kernel for Brain Disease Diagnosis:
Independent Algorithmic Reproduction and Synthetic Validation Study.
Fall 2025.
Fall 2025
Hannah Fathi
Research Interests:
- Computer Vision
- Medical AI
- Remote Sensing
- Large Language Models (LLMs)
- Graph Machine Learning
- Optimal Transport
- Brain Network Analysis


