How hussein-ahmad-ahmad/reliability-first-stgnn-benchmark works
This repository is a reliability-focused benchmark for seven spatiotemporal graph neural networks on three traffic datasets. Its principal workflow configures and trains/evaluates forecasting models, then compares point-forecast accuracy across seeds and datasets. Separate analysis branches address uncertainty calibration, sensor-ablation robustness, explanations, and compute. The tree and README establish these capabilities; many analysis implementations were not excerpted, so their internal calls and wiring are not asserted.
Main entry points: configs Experiment configs · model_registry.py Model registry · base_epoch_runner.py Training runner · uncertainty Uncertainty tools
Components 20
Forecasting benchmark
- Experiment configs
configs - Traffic data
src/data/loaders.py - Graph construction
src/data/graph_construction.py
Model architectures
- D2STGNN
models/D2STGNN/arch/d2stgnn_arch.py - MTGNN
models/MTGNN/arch/mtgnn_arch.py - MegaCRN
models/MegaCRN/arch/megacrn_arch.py - STAEformer
models/STAEformer/arch/staeformer_arch.py - STGCN-Cheb
models/STGCNChebGraphConv/arch/stgcn_arch.py - STID
models/STID/arch/stid_arch.py - STNorm
models/STNorm/arch/stnorm_arch.py
Reliability analysis
- Uncertainty tools
src/uncertainty - Conformal intervals
scripts/generate_conformal_intervals.py - Sensor ablation
pipelines/run_sensor_dropout.py
Model explanations
- Explainability
src/explainability
Shared framework
- Training runner
framework/basicts/runners/base_epoch_runner.py - Data scaling
framework/basicts/scaler - Forecast metrics
framework/basicts/metrics - Model registry
src/models/model_registry.py - Forecast datasets
framework/basicts/data/simple_tsc_dataset.py
Other components
- Benchmark user
Connections 23
- Benchmark user → Experiment configs: selects runs
README.md - Experiment configs → Training runner: configures training
- Traffic data → Graph construction: builds graphs
- Training runner → Forecast metrics: evaluates forecasts
- Benchmark user → Uncertainty tools: analyzes calibration
README.md - Benchmark user → Sensor ablation: tests robustness
README.md - Benchmark user → Explainability: inspects explanations
README.md - Experiment configs → D2STGNN: selects model
configs/D2STGNN/PEMS-BAY_seed43.py - Experiment configs → MTGNN: selects model
configs/MTGNN/PEMS-BAY_seed43.py - Experiment configs → MegaCRN: selects model
configs/MegaCRN/METR-LA_seed43.py - Experiment configs → STAEformer: selects model
configs/STAEformer/METR-LA_seed43.py - Experiment configs → STGCN-Cheb: selects model
configs/STGCNChebGraphConv/PEMS-BAY_seed43.py - Experiment configs → STID: selects model
configs/STID/PEMS-BAY_seed43.py - Experiment configs → STNorm: selects model
configs/STNorm/METR-LA_seed43.py - Uncertainty tools → Conformal intervals: generates intervals
src/uncertainty/calibration.py - Training runner → Data scaling: uses scaling
- Model registry → D2STGNN: registers model
- Model registry → MTGNN: registers model
- Model registry → MegaCRN: registers model
- Model registry → STAEformer: registers model
- Model registry → STGCN-Cheb: registers model
- Model registry → STID: registers model
- Model registry → STNorm: registers model