Visual Feature Encoding for GNNs on Road Networks

Oliver Stromann, Seyed Alireza Razavi, Michael FelsbergarXiv 2022

Abstract: In this work, we present a novel approach to learning an encoding of visual features into graph neural networks with the application on road network data. We propose an architecture that combines state-of-the-art vision backbone networks with graph neural networks. More specifically, we perform a road type classification task on an Open Street Map road network through encoding of satellite imagery using various ResNet architectures. Our architecture further enables fine-tuning and a transfer-learning approach is evaluated by pretraining on the NWPU-RESISC45 image classification dataset for remote sensing and comparing them to purely ImageNet-pretrained ResNet models as visual feature encoders. The results show not only that the visual feature encoders are superior to low-level visual features, but also that the fine-tuning of the visual feature encoder to a general remote sensing dataset such as NWPU-RESISC45 can further improve the performance of a GNN on a machine learning task like road type classification.

Introduction

Open-source road data, such as OpenStreetMap (OSM), is a critical resource for autonomous vehicle research and urban planning. However, it often suffers from incompleteness (e.g., missing lane counts) and discretization, which fails to capture the continuous geometry of the environment. While Graph Neural Networks (GNNs) are adept at processing the structural topology of road networks, they typically lack the visual context of the actual environment. This paper explores whether state-of-the-art computer vision models can effectively "teach" a GNN what a road looks like from space, and how the choice of visual pretraining impacts classification performance.

Methodology

The proposed pipeline consists of three primary components designed to fuse visual and structural information:

  1. Visual Feature Encoder (VFE): ResNet-18 and ResNet-50 architectures process $120 \times 120$ pixel satellite image tiles centered on specific road segments.
  2. Graph Neural Network (GNN): The visual encodings from the VFE are concatenated with traditional geographic attributes (e.g., length, bearing). This combined feature vector is processed by a 2-layer GNN (evaluating both GCN and GraphSAGE) to aggregate information from neighboring road segments.
  3. Classification Head: A final fully connected (FC) layer maps the latent representations to one of eight road type labels.
The proposed hybrid architecture combining a Visual Feature Encoder (VFE) with a Graph Neural Network (GNN).

A key innovation of this method is the transfer learning strategy. The researchers compared standard ImageNet-pretrained ResNets against those fine-tuned on NWPU-RESISC45, a specialized remote sensing dataset, to bridge the domain gap between ground-level photography and satellite imagery.

Experimental Setup

The study utilized a road network extracted from OSM for Chengdu, China, comprising over 21,000 nodes. This was paired with high-resolution (0.5m) "TrueOrtho" RGB imagery from Maxar Technologies. For domain-specific pretraining, the NWPU-RESISC45 benchmark was used, which contains 31,500 images across 45 scene classes such as airports, bridges, and forests.

Results and Discussion

The experiments revealed a clear performance hierarchy based on the sophistication of the visual encoding. While GNNs using only basic geometry performed the worst, adding hand-crafted features like color histograms provided a baseline improvement.

Micro-averaged F1-scores across different model configurations, highlighting the performance leap with domain-specific fine-tuning.

As shown in the results, ImageNet-pretrained models provided only marginal gains over hand-crafted features. However, models fine-tuned on the NWPU-RESISC45 dataset achieved a significant performance leap. Specifically, the ResNet-50@NWPU-RESISC45 configuration using GraphSAGE reached a micro-averaged F1-score of approximately 0.75, compared to the ~0.58 of the GNN-only baseline. This suggests that moving the encoder's weights into the remote sensing domain is more critical for performance than simply increasing model depth.

Conclusion

This work demonstrates that visual features are essential for accurately classifying road types in network data. By using deep features from a ResNet, the model can identify textures and shapes—such as road width and surrounding pavement—that distinguish different road hierarchies. Future work will address existing limitations, including the heavy class imbalance in road datasets (skewed toward residential roads) and the challenge of geographic generalization across different cities and tagging conventions.

Summary updated

BibTeX
@misc{stromann2022visual,
  author = {Oliver Stromann and Seyed Alireza Razavi and Michael Felsberg},
  title = {{Visual Feature Encoding for GNNs on Road Networks}},
  year = {2022},
  eprint = {2203.01187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.01187},
}
Figure