Region2Vec: Community Detection on Spatial Networks Using Graph Embedding with Node Attributes and Spatial Interactions

Yunlei Liang, Jiawei Zhu, Wen Ye, Song Gao · DOI

TL;DR

This paper introduces Region2Vec, a novel unsupervised method for community detection in spatial networks. By leveraging Graph Convolutional Networks (GCNs) and a community-oriented loss function, Region2Vec effectively balances node attributes and spatial interactions to identify meaningful regional communities. This approach outperforms existing methods by simultaneously considering both factors, leading to more robust and insightful community structures.

What Problem Does This Paper Address?

Identifying communities within spatial networks is crucial for understanding regional patterns, human mobility, and informing development decisions. Spatial networks, unlike general graphs, possess inherent geographic relationships and interactions between regions (e.g., human movement, trade). Existing community detection methods often struggle to effectively integrate both the intrinsic attributes of regions (like demographics) and their spatial interactions. Many methods either prioritize one over the other, leading to incomplete or biased community structures. This paper aims to bridge this gap by proposing a method that holistically considers both regional attributes and spatial interactions for more accurate and comprehensive community detection.

Methods

The core of Region2Vec is a two-stage approach.

Stage One: Node Representation Learning: This stage utilizes a Graph Convolutional Network (GCN) to learn embeddings for each region (node). Unlike standard GCNs, Region2Vec incorporates a custom, community-oriented loss function. This loss function is designed to:

  • Maximize spatial interaction intensity: Regions with strong flow connections are pulled closer in the embedding space.
  • Incorporate spatial contiguity: Regions that are geographically distant are pushed apart, enforcing local structure.
  • Handle negative sampling: Regions with no flow interactions are treated as negative pairs and pushed away. The GCN architecture uses two convolutional layers to aggregate information from node attributes and spatial adjacency, creating rich feature representations.

Stage Two: Agglomerative Clustering: Once node embeddings are generated, agglomerative clustering is applied. This bottom-up approach starts with each region as its own cluster and iteratively merges them based on similarity. The "Ward" linkage criterion is used, which minimizes the sum of squared differences within clusters, promoting regular cluster sizes. Crucially, the spatial adjacency matrix is used during clustering to preserve spatial contiguity and impose local structures, ensuring that merged communities are geographically coherent.

Datasets

The primary data source used is the SafeGraph business venue database. This database provides over 8 million points of interest (POIs) with visit patterns in the U.S.

  • Spatial Flow Network: Human movement flows between census tracts are aggregated from SafeGraph data to form the edges of the spatial network, with flow intensity as edge weights.
  • Spatial Adjacency Matrix: This is built based on the geographic boundaries of census tracts using the TIGER/Line Shapefiles. A Rook-type contiguity relationship is used, defining neighbors as tracts sharing borders larger than zero meters.
  • Node Attributes: Data from the U.S. Census American Community Survey (ACS) 2015-2019 5-year estimates is used. Features include poverty population, race/ethnicity, and household income.

Key Insights and Ideas

  • The Synergy of Attributes and Interactions: The paper strongly emphasizes that effective community detection in spatial networks requires a balanced consideration of both regional attributes (e.g., demographics) and spatial interactions (e.g., human mobility). Ignoring one aspect leads to suboptimal results.
  • Community-Oriented Loss Function: The custom loss function is a key innovation. By explicitly penalizing distant pairs and rewarding strong interactions, it guides the GCN to learn embeddings that are inherently conducive to community discovery.
  • GCNs as a Foundation for Spatial Embeddings: The paper demonstrates the suitability of GCNs for capturing complex spatial relationships and attribute dependencies, making them a powerful tool for learning region representations.
  • Agglomerative Clustering with Spatial Constraints: Using agglomerative clustering with the spatial adjacency matrix as a constraint ensures that the detected communities are not only internally cohesive but also geographically contiguous, a critical aspect of spatial analysis.

Key Results

Region2Vec was compared against several baseline algorithms (Louvain, DeepWalk, Node2vec, LINE, K-Means) using four evaluation metrics: Intra/Inter Flow Ratio, Inequality, Cosine Similarity, and Homogeneity Score.

  • Overall Performance: Region2Vec consistently performed well across multiple metrics, demonstrating a strong balance between attribute similarity and spatial interaction intensity.
  • Intra/Inter Flow Ratio: Region2Vec achieved the second-highest flow ratio, indicating good performance in capturing spatial interaction patterns, though Louvain (which only uses flow) was slightly better.
  • Inequality: Region2Vec had the second-lowest inequality score, suggesting it groups nodes with similar features effectively. K-Means, which relies solely on attributes, was best here.
  • Cosine Similarity: K-Means was best, as expected, due to its attribute-only focus. Region2Vec was second best, showing strong attribute similarity within its communities.
  • Homogeneity Score: K-Means again led, but Region2Vec was second best, indicating its ability to group homogeneous nodes better than other baselines that rely solely on edge information.

Limitations and Future Work

Limitations: * The paper acknowledges that while Region2Vec balances attribute similarity and spatial interaction, K-Means excels at pure attribute similarity, and Louvain excels at pure spatial interaction. This suggests there might be trade-offs depending on the specific application's priorities. * The optimal number of communities (K=14) was determined by the Louvain algorithm, implying that determining the optimal K for Region2Vec itself might require further investigation.

Future Work: The authors propose applying Region2Vec to regionalization problems such as:

  • Rational service area development in public health.
  • Redistricting problems in political science. They also highlight the broader potential of integrating geospatial constraints into deep learning models for GeoAI development.

Summary updated

BibTeX
@inproceedings{liang2022region,
  author = {Yunlei Liang and Jiawei Zhu and Wen Ye and Song Gao},
  title = {{Region2Vec: Community Detection on Spatial Networks Using Graph Embedding with Node Attributes and Spatial Interactions}},
  booktitle = {SIGSPATIAL/GIS},
  year = {2022},
  doi = {10.1145/3557915.3560974},
}
Figure