Spatio-Temporal Hierarchical Adaptive Dispatching for Ridesharing Systems

Chang Liu, Jiahui Sun, Haiming Jin, Meng Ai, Qun Li, Cheng Zhang, Kehua Sheng, Guobin Wu, Xiaohu Qie, Xinbing Wang · DOI

Abstract

Ridesharing platforms typically dispatch orders at uniform, fixed time intervals across an entire city. However, real-world demand is highly uneven across both space and time, making fixed intervals suboptimal. This paper proposes a hierarchical adaptive dispatching framework that adjusts intervals based on real-time demand to maximize platform profit while respecting passenger waiting time constraints. The approach involves clustering geographical areas with similar shareability patterns and applying optimal stopping theory to determine dispatch times within each cluster. Evaluated on a dataset of 3.5 million orders from Didi Chuxing in Beijing, the proposed algorithms significantly outperform traditional fixed-interval strategies.

What Problem Does This Paper Address?

In ridesharing systems like Uber or Didi, the platform batches incoming orders and dispatches them to drivers. The industry standard is to use a fixed interval (e.g., every 2 seconds). This approach fails to account for the "spatio-temporal" nature of urban mobility.

Temporal distribution of ridesharing orders over a week in Beijing, highlighting peak and off-peak periods.

As shown in Figure 1, demand fluctuates wildly throughout the day and week. During morning peaks, residential areas might see high demand, while commercial districts peak in the evening. If the dispatch interval is too short, the platform misses opportunities to "pool" multiple riders into a single vehicle, reducing profit. Conversely, if the interval is too long, passengers may cancel due to excessive wait times. The goal is to find an adaptive "Goldilocks" interval that balances pooling efficiency with passenger patience.

Methods

The authors introduce a two-stage hierarchical framework to manage this complexity:

1. Spatial Clustering (SC)

The city is first partitioned into hexagonal cells. To group these cells effectively, the system constructs a Spatial Shareability Graph. In this graph, nodes represent cells, and edge weights represent the historical frequency of shareable order pairs between them.

The spatial clustering process: (a) dividing the city into hexagonal cells and (b) constructing a spatial shareability graph.

Using a Maximum Spanning Tree (MST) and a recursive edge-deletion algorithm, the framework identifies clusters of cells that exhibit similar shareability potential. This ensures that areas with similar demand characteristics are managed under the same temporal logic.

2. Adaptive Interval (ADI) Decision

Within each spatial cluster, the system must decide in real-time when to trigger a dispatch. This is framed as an Optimal Stopping Problem. The authors propose two main algorithms:

  • 1/e-pre-ADI: Based on the "Secretary Problem," this algorithm observes the first 37% ($1/e$) of the maximum allowed window to set a profit baseline, then dispatches at the first instance that exceeds it.
  • BI-pre-ADI: This version utilizes Backward Induction and historical data to predict future profit increments, optimizing decisions when partial future knowledge is available.

Technically, the authors also provide a theoretical proof showing that it is impossible to design a constant-competitive-ratio algorithm for this problem in an adversarial environment, which justifies the use of these data-driven heuristics.

Datasets and Evaluation

The framework was tested using a comprehensive dataset from Didi Chuxing, covering all 3.5 million ridesharing orders in Beijing during October 2018. This dataset includes precise timestamps for order requests and cancellations, allowing for the creation of a high-fidelity simulator to test passenger patience and platform profit.

Key Results and Insights

  • Profit Optimization: Both adaptive algorithms (1/e and BI) consistently yielded higher profits than the "Uniform-base" fixed-interval strategy.
  • Flexibility Benefits: As the maximum allowable waiting time ($\beta$) increased, the adaptive algorithms showed a marked improvement in profit, demonstrating the value of having the flexibility to wait for better matches.
  • Efficiency: The spatial clustering and online decision-making components are computationally efficient, with the online dispatching logic operating in $O(1)$ time, making it suitable for real-time deployment in massive cities.

Conclusion

By decoupling spatial clustering from temporal dispatching decisions, this research provides a scalable solution to the inefficiencies of fixed-interval dispatching. The use of optimal stopping theory allows platforms to dynamically adapt to the ebb and flow of urban demand, maximizing profit without compromising the user experience. Future work may involve integrating deep learning to improve the predictive accuracy of the Backward Induction models.

Summary updated

BibTeX
@inproceedings{liu2020spatio,
  author = {Chang Liu and Jiahui Sun and Haiming Jin and Meng Ai and Qun Li and Cheng Zhang and Kehua Sheng and Guobin Wu and Xiaohu Qie and Xinbing Wang},
  title = {{Spatio-Temporal Hierarchical Adaptive Dispatching for Ridesharing Systems}},
  booktitle = {SIGSPATIAL/GIS},
  year = {2020},
  url = {https://openreview.net/forum?id=zPH1NcFSbGo},
}
Figure