Network-Based Spatial Analysis

Statistics
Introduced by
Atsuyuki Okabe and colleagues
Year
1990s–2000s
Type
Spatial network model
Family
GIS / spatial

What does it do?

Network-based spatial analysis (NBSA) studies the distribution and interaction of phenomena constrained to a network, such as roads, railways, or rivers, by measuring distance along the network rather than in straight Euclidean lines.

It is the appropriate framework when movement, accessibility, or risk is governed by network topology rather than by open space.

The intuition behind the method

Traffic accidents, street crime, and pedestrian activity occur on a road network, and people reach them by travelling along it. Straight-line distance can therefore mislead: two locations may be close in the plane but far apart by road, for example when a river or railway separates them. Okabe et al. (2008) report an empirical finding for urbanized areas that Euclidean distance differs significantly from shortest-path distance at distances below 500 m, which motivates treating the network as the arena of analysis. NBSA computes shortest-path distances through the network, so the set of locations considered 'near' an event changes. This can change density estimates and cluster results relative to planar analysis of the same events, so planar proximity can misrepresent network proximity. Whether the conclusions change depends on the data.

History

Okabe et al. formulated generalized network Voronoi diagrams for service areas defined on a network and developed efficient algorithms for constructing them, together with the SANET toolbox for spatial analysis on a network in a GIS environment.

When to use it

Choose NBSA when events or flows are physically confined to a network and the question concerns proximity, accessibility, or risk along it: road traffic incidents, crime on street segments, pipeline failures, or species distribution along river systems. It is especially relevant when straight-line distance is a poor proxy for travel, such as where barriers separate nearby locations. Do not use it when events occur across an open plane, such as the spread of an airborne pollutant over a field; planar methods are more appropriate there. It also requires a topologically sound network dataset with consistent connectivity and known edge lengths. Without such a dataset, the results will not be reliable.

Limitations and considerations

  • Results depend on the network dataset: gaps, dangling edges, or incorrect connectivity change shortest paths and therefore every downstream density and cluster estimate.
  • Computing shortest paths between many events and query locations is costly on large networks, because the number of paths grows with network size and sample size.
  • Network KDE has no fixed rule for choosing the bandwidth h, and estimated surfaces can change noticeably with it, so sensitivity should be reported.
  • Phenomena that occur off the network, such as pedestrians crossing an open park, fall outside the model's assumptions.
  • Significance testing usually relies on Monte Carlo simulation on the network, which can be slow for large networks or many simulations.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Distances follow the network that the phenomenon actually uses, so proximity reflects travel along roads or channels rather than straight-line separation.
  • Avoids reporting clusters that span barriers such as rivers or railway lines, which planar hotspot analysis can produce.
  • Network kernel density estimates are defined on the edges themselves, so exposure or risk is attributed to specific street or pipe segments.
  • Because results lie on the network, they suit siting decisions for stations, stops, or sensors that must also be located on that network.

Applications

  • Traffic accident hotspot detection on road networks to prioritize safety interventions.
  • Crime pattern analysis along street segments for evidence-based police patrol allocation.
  • Optimal placement of emergency service stations, bus stops, or EV charging points on a road network.
  • Epidemiological risk mapping of waterborne disease along distribution pipe networks.
  • Retail site selection based on pedestrian flow and network accessibility.
  • Wildlife corridor analysis along river or hedgerow networks in landscape ecology.

How it works

How it works

1

The real network (road graph, river system, utility network) is represented as nodes (intersections, junctions) connected by edges (road segments, pipes), each carrying a length or travel-cost weight. Point events such as accidents, stores, or incidents are assigned to their nearest position on the network, so that every event lies on an edge.

2

Distances between events, or between events and query locations, are computed as shortest paths through the network rather than as straight lines. The network distance d_N(i,j) is the minimum total edge weight over all paths p connecting i and j.

Formula
d_N(i,j) = \min_{p \in P_{ij}} \sum_{e \in p} w_e
3

Network kernel density estimation places a kernel function on the network around each event and evaluates it at points along the edges, using network distance as its argument. The bandwidth h controls how far the smoothing spreads along the network. The resulting density is defined on network edges rather than on the plane. The summation in the mechanics step shows only the structure of the estimator. A normalized network KDE also applies a kernel normalization constant and bandwidth scaling, which depend on the chosen definition and implementation.

Formula
\hat{\lambda}(x) = \sum_{i=1}^{n} k\!\left(\frac{d_N(x, e_i)}{h}\right)
4

Spatial autocorrelation statistics adapted to networks, such as a network version of Moran's I or a network Ripley's K-function, test whether events cluster, disperse, or are randomly distributed along the network. The usual null hypothesis is complete spatial randomness on the network: given the observed number of events, each event is equally likely to lie at any position along the edges. The observed statistic is compared with its distribution under this null. For Moran's I, the spatial weights are built from network adjacency or inverse network distance, so the value depends on that choice. Significance is usually assessed by Monte Carlo simulation. Events are repeatedly relocated at random on the same network, the statistic is recomputed for each simulated pattern, and the p-value is the proportion of simulated values at least as extreme as the observed value, with the observed pattern counted among them. Values above the null expectation indicate clustering and values below it indicate dispersion. The significance threshold is chosen by the analyst, and the number of simulations should be large enough for the p-value to be stable.

5

Clusters and hotspots are reported as network segments, because the evidence is at edge level, not as areal zones. Results are typically displayed by colouring or thickening edges according to estimated density or cluster membership.

Common pitfalls

  • Applying planar KDE or Moran's I to network-constrained events can attribute clustering to Euclidean proximity that does not correspond to travel along the network.
  • Projection or unit errors in the network data propagate directly into edge lengths and hence into distances and density values.
  • A bandwidth large enough to connect separate branches of the network smooths signal across routes that events do not share.
  • Ignoring edge direction, such as one-way streets or river flow, can misrepresent accessibility where direction matters for the phenomenon.
  • Reporting edge-level evidence as areal hotspot maps misstates where the evidence lies and can misdirect policy decisions.

Frequently asked questions

How is network-based spatial analysis different from standard GIS buffer analysis?

Buffer analysis draws zones using Euclidean distance and ignores barriers and the routes that people or vehicles actually take. NBSA measures shortest-path distance along the network, so two locations that look equally close on a map can differ substantially in network distance, for example where a river has no nearby crossing. Okabe et al. (2008) report that Euclidean and shortest-path distances differ significantly in urbanized areas at short ranges. Which measure is appropriate depends on whether movement is constrained to the network.

What software can run network-based spatial analysis?

SANET is the toolbox for spatial analysis on a network described in Okabe et al. (2008). Other GIS, R, and Python network-analysis tools can compute shortest paths, but their support for network KDE and network autocorrelation tests should be checked against their own documentation before use.

What network data quality is needed before analysis?

The network must be topologically consistent: edges should meet at shared nodes, with no dangling segments or gaps, one-way links should be coded correctly, and the data should be in a planar projection with meaningful length units. Cleaning and topology validation should be completed before analysis, using the tools available in the GIS or network software in use.

How do I choose the bandwidth for network kernel density estimation?

No universal rule exists. The bandwidth should reflect the scale of the phenomenon and the question being asked, and data-driven selection such as cross-validation can serve as a starting point. Because results depend on h, the sensitivity of the conclusions to the bandwidth should be reported.

Can I apply Moran's I to network-constrained data?

Standard Moran's I uses a planar spatial weights matrix and is not appropriate for network data. A network-adapted weights matrix, where neighbors are defined by adjacency along the network and weights by inverse network distance, should be constructed instead, and significance tested by Monte Carlo permutation on the network.

Related methods

Sources

  1. Okabe, A., Satoh, T., Furuta, T., Sugihara, K., & Okano, K. (2006). Generalized network Voronoi diagrams: Concepts, computational methods, and applications. International Journal of Geographical Information Science, 22(9), 965–994.

    Open DOI reference
  2. Okabe, A., & Sugihara, K. (2012). Spatial Analysis Along Networks: Statistical and Computational Methods. Wiley.

    ISBN: 978-0470770818