# STM-Graph: A Python Framework for Spatio-Temporal Mapping and Graph Neural Network Predictions

arXiv: https://arxiv.org/abs/2509.10528 · HTML: https://mlsanity.com/paper/2509.10528/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- Builds on 14 of its 32 references that are in the map.
- First posted on arXiv 4 Sep 2025.

## Builds on (most cited first, 14 of 14)

- [Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting](https://mlsanity.com/paper/1709.04875/) (2017)
- [T-GCN: A Temporal Graph ConvolutionalNetwork for Traffic Prediction](https://mlsanity.com/paper/1811.05320/) (2018)
- [Dynamic Graph Convolutional Recurrent Network for Traffic Prediction: Benchmark and Solution](https://mlsanity.com/paper/2104.14917/) (2021)
- [Revisiting Spatial-Temporal Similarity: A Deep Learning Framework for Traffic Prediction](https://mlsanity.com/paper/1803.01254/) (2018)
- [PyTorch Geometric Temporal: Spatiotemporal Signal Processing with Neural Machine Learning Models](https://mlsanity.com/paper/2104.07788/) (2021)
- [DL-Traff: Survey and Benchmark of Deep Learning Models for Urban Traffic Prediction](https://mlsanity.com/paper/2108.09091/) (2021)
- [Modeling and Analyzing Urban Networks and Amenities with OSMnx](https://mlsanity.com/paper/2505.00736/) (2025)
- [UUKG: Unified Urban Knowledge Graph Dataset for Urban Spatiotemporal Prediction](https://mlsanity.com/paper/2306.11443/) (2023)
- [FlashST: A Simple and Universal Prompt-Tuning Framework for Traffic Prediction](https://mlsanity.com/paper/2405.17898/) (2024)
- [Dynamic Causal Explanation Based Diffusion-Variational Graph Neural Network for Spatio-temporal Forecasting](https://mlsanity.com/paper/2305.09703/) (2023)
- [Explainable Spatio-Temporal Graph Neural Networks](https://mlsanity.com/paper/2310.17149/) (2023)
- [Spatio-Temporal Meta Contrastive Learning](https://mlsanity.com/paper/2310.17678/) (2023)
- [EasyST: A Simple Framework for Spatio-Temporal Prediction](https://mlsanity.com/paper/2409.06748/) (2024)
- [Using Graph Neural Networks to Predict Local Culture](https://mlsanity.com/paper/2402.17905/) (2024)

## Built on by (most cited first, 2 of 2)

- [Knowledge-Integrated Representation Learning for Crypto Anomaly Detection under Extreme Label Scarcity; Relational Domain-Logic Integration with Retrieval-Grounded Context and Path-Level Explanations](https://mlsanity.com/paper/2601.12839/) (2026)
- [Graph-Conditioned Mixture of Graph Neural Network Experts for Traffic Forecasting](https://mlsanity.com/paper/2605.30486/) (2026)

## Abstract (arXiv)

Urban spatio-temporal data present unique challenges for predictive analytics due to their dynamic and complex nature. We introduce STM-Graph, an open-source Python framework that transforms raw spatio-temporal urban event data into graph representations suitable for Graph Neural Network (GNN) training and prediction. STM-Graph integrates diverse spatial mapping methods, urban features from OpenStreetMap, multiple GNN models, comprehensive visualization tools, and a graphical user interface (GUI) suitable for professional and non-professional users. This modular and extensible framework facilitates rapid experimentation and benchmarking. It allows integration of new mapping methods and custom models, making it a valuable resource for researchers and practitioners in urban computing. The source code of the framework and GUI are available at: https://github.com/Ahghaffari/stm_graph and https://github.com/tuminguyen/stm_graph_gui.
