A Coding Implementation on Spatial Graph Neural Networks for Urban Function Inference Using city2graph, OSMnx, and PyTorch Geometric
This tutorial demonstrates how to build a spatial graph learning pipeline for urban function inference. It utilizes libraries like city2graph, OSMnx, and PyTorch Geometric to process OpenStreetMap data, construct graph structures, and train a GraphSAGE model. The process involves collecting Points of Interest (POI) and street network data, engineering spatial features, and creating both heterogeneous and homogeneous graph representations for predicting POI categories based on spatial context. AI
IMPACT Provides a practical guide for applying graph neural networks to urban planning and analysis.