Cities are usually divided into disjoint regions, yet many places serve several of them. From the trips between census block groups, a graph neural network infers how strongly each place belongs to each of ten communities. These weighted, overlapping memberships reproduce a city's flows and generate the flows of places they were not fitted to.
Each layer is one community: the block groups whose membership exceeds 0.5. A place drawn in several layers is shared by these communities; thin lines join its copies.
Loading the city…
The model approximates the logarithm of the trips between two block groups by the inner product of their memberships. Two places that belong strongly to the same communities have many trips between them; a place shared by two communities has many trips with both. Choose any block group on the map to see the flows its memberships imply.
Bars show Fuk for the ten communities; the line marks 0.5, the threshold of the overlap count. On the map, brighter block groups have a larger Fu·Fv with the selected one, that is, more expected trips.
Every representation is converted into a flow model whose weights are fitted under the same error, L1, the mean absolute difference between predicted and observed log flows. The weighted memberships F have a lower L1 than their own binary and partitioned versions, nine existing community-detection methods and two node embeddings, in every one of the 50 cities.
L1 of F and of each comparator in the chosen city (lower is better). Colours mark families: F's own discretizations, overlapping methods, partitions, embeddings, references without communities, and the strongest comparator of each city.
Each dot is a city: 100 × (L1 of comparator − L1 of F) / L1 of comparator. Numbers give the median over cities; every value is positive (two-sided Wilcoxon signed-rank test, P = 1.8 × 10−15 for each comparison). The chosen city is ringed.
Origins were split at random into training, validation and test sets five times. For each split, F was re-estimated from the flows leaving the training origins, and Deep Gravity generated the outflows of the test origins. With F as place features, the common part of commuters (CPC) and the Spearman correlation were higher than with population, points of interest or both, and than the radiation and four gravity models, in every city.
CPC of the generated outflows of held-out origins in the chosen city, mean over five splits (higher is better). SC, singly constrained.
Each dot is a city: CPC with F minus CPC with population and points of interest, the baseline with the highest mean CPC. The chosen city is ringed.
Choose what to map. Circle area follows the number of block groups; click a city to load it above. Smaller cities had more overlap: a city's mean overlap count fell with its population (Spearman ρ = −0.73).
Mean overlap count, the average number of communities in which a block group's membership exceeds 0.5, against the city's population (log scale).
Each dot is a point of interest, placed at random within its block group; block groups are shaded by overlap count. Arcs are the strongest flows the memberships imply, exp(Fu·Fv), between block groups whose largest memberships lie in different communities (at most ten per block group).
Bars: the chosen city; lines: median of the 50 cities. G, the mean log2 odds ratio of higher-order minus everyday categories, for overlap counts 2, 3 and ≥4, each against 0–1 (Supplementary Table 12).
Before the analysis, 30 point-of-interest categories were assigned by name to a higher-order group (such as comparison retail, hotels and specialty hospitals) and an everyday group (such as schools, groceries and child day care), following the central-place order of goods. Places shared by several communities hold higher-order categories more often, and their inbound trips start in a more income-mixed set of neighbourhoods.
Odds that a point of interest of each category lies in the overlap zone rather than the rest of its city, relative to all other points of interest (log2 odds ratio): median over cities (dot) and interquartile range (line). Rings show the chosen city.
G, the mean log2 odds ratio of the higher-order categories minus that of the everyday ones; positive in all 50 cities.
Difference in Hinc, the income-quintile entropy of the block groups where a block group's inbound trips start, between the overlap zone and the rest; higher in the overlap zone in 49 of 50 cities.
Network construction, inference of the memberships, flow reconstruction, flow generation and every analysis and figure of the paper.
GitHub repositoryThe ten memberships F of every census block group in the 50 cities and the Twin Cities metropolitan area, as used in the paper.
data/membershipsThe per-city results behind every figure and table, including the values drawn on this page.
data/resultsMobility data: anonymized device records (PlaceIQ, now Precisely), aggregated to trips between census block groups. Points of interest: SafeGraph. Residents: American Community Survey 2016–2020 via NHGIS. Block-group boundaries: US Census Bureau TIGER/Line. State outlines: Natural Earth.