Exploring the Usage of Online Food Delivery Data for Intra-Urban Job and Housing Mobility Detection and Characterization

Yawen Zhang, Seth E. Spielman, Qi Liu, Si Shen, Jason Shuo Zhang, Qin Lv

Abstract

Understanding intra-urban mobility is critical for effective urban planning and policy development. However, traditional data sources like censuses are often infrequent and lack granularity. This paper presents a novel framework that leverages large-scale online food delivery data to track job and housing mobility. By analyzing 27 million meal orders from Baidu Waimai in Beijing, the study identifies "dining hubs" to characterize urban migration patterns. The findings reveal significant insights into seasonal move patterns, commuting distance tolerances, and the impact of work-life balance on relocation decisions.

Introduction

As cities grow, understanding how residents move between homes and workplaces becomes vital. Traditional surveys and national censuses are often "coarse-grained" and updated only once a decade, making them ill-suited for capturing the rapid, meso-scale dynamics of modern urban life. While digital footprints like smartcard data or social media check-ins offer higher frequency, they often lack the context to distinguish between a home and a workplace.

This research explores whether online food delivery data—a service used by nearly half of Chinese internet users—can fill this gap. By providing high-frequency, location-specific data points that reflect daily routines, food delivery patterns offer a unique lens into the lives of the city's most mobile demographics.

Methodology

The researchers developed a two-step computational framework to transform raw order data into mobility insights.

1. Dining Hub Detection

Since exact user addresses are not present in the dataset, the team employed a Weighted Kernelized MeanShift (WKMS) clustering algorithm to identify "dining hubs." A key innovation was using average delivery time as a weight; shorter delivery times suggest a restaurant is geographically closer to the user's actual location. The spatial constraint (bandwidth) was set to 4.4km, representing the 95th percentile of delivery distances in Beijing.

2. Hub Identification and Move Detection

Hubs were filtered based on frequency (at least 10% of a user's total orders) and duration (at least 30 days of activity). Using K-means clustering, these hubs were classified as "Home" (H) or "Work" (W) based on temporal ordering patterns (e.g., weekday lunch vs. weekend orders). A "move" was defined as a transition from one stable hub to another with no temporal overlap.

Figure 5: Detection of dining hubs and the transition between them over time.

Datasets

The primary dataset consisted of a complete snapshot of Baidu Waimai rating data from Beijing between June 2014 and June 2017. After filtering for active users, the dataset included nearly 27 million orders from 0.7 million users. To validate and contextualize these findings, the researchers used data from the 3rd National Economic Census, the 6th National Population Census, and monthly housing transaction data from NetEase.

Key Insights and Analysis

The "Gold March" Phenomenon

The data revealed a synchronized seasonal pattern in Beijing's mobility. Job and housing moves peak in March, aligning with the "Gold March, Silver April" period in China, when employees frequently switch jobs after receiving year-end bonuses.

Commuting Tolerance and Overtime

The study identified a "commuting distance tolerance" of approximately 11.75 km. Users whose commutes exceeded this threshold were significantly more likely to relocate or change jobs. Furthermore, "job hoppers" who frequently worked overtime (indicated by weekday dinner orders at the office) were more likely to switch to roles with shorter working hours, suggesting a drive for better work-life balance.

The Suburban Trade-off

As residents move from the city core to the suburbs, a clear trade-off emerges: significantly lower housing costs are balanced against a corresponding increase in commuting distance.

Results and Validation

The framework's accuracy was validated by comparing identified Home and Work hubs with official census data, yielding a 0.74 Pearson correlation. This proves that food delivery patterns are a highly reliable proxy for actual population distribution.

Figure 6: Spatial distribution of identified home hubs in Beijing.

From the sample, the researchers identified 17,249 "stayers," 4,138 "job hoppers," and 2,368 "home movers." Job moves were concentrated in high-tech and business hubs like the Haidian district, while housing moves were more diffused toward suburban areas such as Tongzhou and Changping.

Conclusion

While the study is limited by the demographic bias of food delivery users (predominantly aged 25–34), it demonstrates the power of non-traditional data in urban sensing. Future work should focus on ensemble-based approaches that combine food delivery data with transit or social media data to create a more inclusive picture of urban dynamics while addressing the privacy considerations inherent in inferring home and work locations.

Summary updated

BibTeX
@inproceedings{zhang2020exploring,
  author = {Yawen Zhang and Seth E. Spielman and Qi Liu and Si Shen and Jason Shuo Zhang and Qin Lv},
  title = {{Exploring the Usage of Online Food Delivery Data for Intra-Urban Job and Housing Mobility Detection and Characterization}},
  booktitle = {ISPA/BDCloud/SocialCom/SustainCom},
  year = {2020},
  doi = {10.1109/ispa-bdcloud-socialcom-sustaincom51426.2020.00130},
}
Figure