﻿# SpaceNet roads: a connected route is a different target from a road mask

Use the SpaceNet road-network task to distinguish visual road segmentation from graph connectivity and evaluate a reproducible raster-to-network pipeline.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-spacenet-roads-network-connectivity/
Language: en

## Define the downstream object

A road segmentation image and a road network are different outputs. The [SpaceNet road dataset](https://www.spacenet.ai/spacenet-roads-dataset/) supplies satellite imagery with road centerline information for network extraction. If the intended application plans routes, a model that merely marks likely road pixels has not finished the task. Intersections, connections and disconnected fragments determine whether the extracted map supports the required movement through the scene.

## Preserve the vector reference

Keep the published centerline geometry and its association with each image tile while preparing raster targets. A rasterized training mask is a derived representation, not a replacement for the original network reference. Pixel resolution, line thickness and clipping at tile boundaries change the training signal. Record those choices and visualize intersections after conversion, especially where a line crosses a tile edge or joins another road.

## Evaluate paths rather than appearance alone

The [APLS implementation](https://github.com/CosmiQ/apls) compares reference and proposed graphs through differences in optimal path lengths. This makes a small-looking broken connection consequential even if most road pixels overlap well. Conversely, a thick continuous mask can hide incorrect topology. Use the challenge-compatible graph construction and evaluator when comparing a result with the published task; a segmentation overlap score answers a narrower question about the raster representation.

## Keep graph construction inside the experiment

Skeletonization, node placement, edge simplification and stitching can change the graph after neural inference. Treat these operations as part of the evaluated pipeline. For example, tuning a gap-closing rule on the evaluation roads can improve apparent connectivity without demonstrating transfer. Select such settings using development data and retain both pre-stitch and final outputs when investigating failures. Preserve units and coordinate transforms when converting image locations into geographic geometry.

## State the scope of the result

The [SpaceNet overview paper](https://arxiv.org/abs/1807.01232) situates road extraction within a wider challenge series. Do not transfer a score across different SpaceNet tasks just because the imagery shares a project name. Account for the selected geographic areas and available labels. Existing guidance on [Landsat scene metadata](/journal/data-guide-usgs-landsat-scene-quality/) and [group-based partitioning](/journal/data-guide-entity-group-split-design/) provides context, while route correctness still requires the road-specific graph protocol described here.
