Urban Mobility Decision Intelligence: An Open-Source Platform for AI-Driven Fleet Repositioningο
Status: Working Draft Β· Version 3.0 Β· Target venues: KDD Applied Data Science / SIGSPATIAL / Transportation Research Part C
arXiv preprint planned: Q4 2026
Abstractο
We present an open-source decision intelligence platform for dynamic fleet repositioning that combines spatiotemporal demand forecasting, multi-agent simulation, and offline reinforcement learning with trajectory-aware policy evaluation. Using New York City TLC trip records across 263 taxi zones, we benchmark policies from heuristic MDP planning to deep Q-networks under a unified, leakage-safe evaluation protocol. Our two-step finite-horizon planner achieves 0.9565 NDCG@3 on static diagnostics and +\(139.40/day over the hot-zone baseline in 100-seed seven-day simulator rollouts. DQN yields an additional +\)53.74/day per driver. We conduct trajectory-level offline policy evaluation via weighted importance sampling and sequential doubly robust estimation with complete-trajectory bootstrap confidence intervals. The platform includes a production-style REST API, Docker deployment, interactive web dashboard, and supports cross-city adaptation. All results are reproducible via make all. We document scientific limitations transparently β including simulator boundaries, identifiability constraints of observational data, and the forecast-decision gap β advocating for rigorous methodological transparency in urban mobility AI.
1. Introductionο
Urban taxi and ride-hailing systems face a fundamental inefficiency: drivers cruise 30β60% of their shift without passengers, generating economic waste and unnecessary congestion. In New York City alone, this represents millions of dollars in lost revenue annually. The core challenge is a spatiotemporal sequential decision problem β where should a driver reposition after each trip to maximize expected future earnings under competition from other drivers?
Existing solutions fall into three paradigms:
Commercial black-box systems (Uber, Lyft, Didi) operate at scale but are neither reproducible nor auditable
Academic RL approaches report results without standardized evaluation protocols, making cross-paper comparison impossible
Heuristic methods (e.g., βgo to the hottest zoneβ) ignore supply competition and temporal dynamics
This workβs contribution is a unified platform that bridges these gaps with five key innovations:
Reproducible benchmark β leakage-safe data splits, standardized metrics, paired statistical tests, and a single-command reproduction (
make all)Comprehensive policy suite β MDP planning (Hot Zone, Single-Step, Two-Step), model-free RL (DQN, Double DQN), and offline RL (IQL)
Trajectory-aware OPE β WIS and sequential DR with complete-trajectory bootstrap CIs, establishing a methodological benchmark for counterfactual evaluation in spatiotemporal recommendation
Production engineering β REST API, Docker Compose, CI/CD, observability, shadow evaluation, A/B testing framework
Scientific transparency β explicit documentation of limitations, negative results (graph features, IQL transfer), and the forecast-decision gap
2. Problem Formulationο
2.1 Zone-Based Fleet Repositioningο
Let \(\mathcal{Z} = \{1, 2, \ldots, Z\}\) be the set of taxi zones (\(Z=263\) for NYC). At decision time \(t\), a vehicle \(v\) in zone \(z_v^t\) must choose a target zone \(z' \in \mathcal{Z}\) to reposition to after dropping off its current passenger. The objective is to maximize expected future revenue over horizon \(H\):
where \(r(z, z')\) is the fare for a trip \(z \to z'\), and competing vehicles deplete finite per-zone demand on a first-come basis. The transition kernel \(P(z' \mid z, a, \mathcal{D})\) depends on the action \(a\), baseline demand \(\mathcal{D}\), and the actions of all other vehicles.
2.2 Key Challengesο
Challenge |
Description |
Our Approach |
|---|---|---|
Leakage |
Temporal leakage inflates forecast metrics |
Strictly-prior chronological splits |
Competition |
Shared demand pool among drivers |
Multi-agent simulator v2 with finite depletable demand |
Evaluation |
No ground-truth counterfactuals |
Trajectory-level OPE with bootstrap CIs |
Reproducibility |
Results vary across seeds/seasons |
Paired tests, fixed seeds, cross-year validation |
Forecast-decision gap |
Better prediction β better policy |
Separate forecast and decision metrics |
2.3 Policies Evaluatedο
Policy |
Type |
Horizon |
Description |
|---|---|---|---|
Hot Zone |
Heuristic |
0 |
Go to zone with highest historical pickup count |
Single-Step |
MDP |
1 |
One-step greedy expected utility maximization |
Two-Step |
MDP |
2 |
Two-step Bellman backup with supply prediction |
DQN |
Model-free RL |
β (discounted) |
Deep Q-Network with masked action space |
Double DQN |
Model-free RL |
β (discounted) |
Reduces overestimation bias |
IQL |
Offline RL |
β (discounted) |
Implicit Q-Learning from logged trajectories |
3. Platform Architectureο
The platform implements a modular, extensible pipeline:
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β TLC Raw Data βββββΆβ Data Pipeline βββββΆβ Cleaned β
β (2009-2024) β β (chrono split)β β Dataset β
ββββββββββββββββ ββββββββββββββββ ββββββββ¬ββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββ
β β β
βΌ βΌ βΌ
ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β Demand β β OD Graph β β Decision β
β Forecasting β β Learning β β Engine β
β LGB/XGB/Ens. β β SAGE/GAT/Msg β β Unified β
ββββββββββββββββ ββββββββββββββββ ββββββββ¬ββββββββ
β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
βΌ
ββββββββββββββββ
β Multi-Agent β
β Simulator β
β (v2) β
ββββββββ¬ββββββββ
β
βββββββββββββΌββββββββββββ
βΌ βΌ βΌ
βββββββββββββ βββββββββββ ββββββββββββ
β MDP Policyβ β RL β β Offline β
β Opt. β β Trainingβ β RL β
βββββββ¬ββββββ ββββββ¬βββββ ββββββ¬ββββββ
β β β
ββββββββββββββΌββββββββββββ
βΌ
ββββββββββββββββ
β Policy Eval β
β WIS / DR / β
β Bootstrap CI β
ββββββββ¬ββββββββ
β
ββββββββββββΌβββββββββββ
βΌ βΌ βΌ
ββββββββββββ ββββββββββ ββββββββββββ
β REST API β β Docker β β Dashboardβ
β (FastAPI)β βCompose β β (Leaflet)β
ββββββββββββ ββββββββββ ββββββββββββ
3.1 Data Pipelineο
Source: NYC TLC Yellow Taxi trip records (2009β2024)
Splits: Chronological train/val/test with strictly prior temporal boundaries
Granularity: 263 taxi zones, hourly aggregation
Features: 120-day lookback, hour-of-day, day-of-week, holiday indicators, travel-time matrix
3.2 Demand Forecastingο
Five models evaluated with standardized feature sets:
Model |
Type |
Key Characteristics |
|---|---|---|
Historical Average |
Baseline |
Mean pickup count by hour Γ zone Γ weekday |
LightGBM |
Gradient boosting |
Tree-based with leaf-wise growth |
XGBoost |
Gradient boosting |
Tree-based with regularization |
Ensemble |
Hybrid |
Weighted average of LightGBM + XGBoost |
GraphSAGE |
Graph NN |
Inductive node embeddings on OD flow graph |
GAT |
Graph NN |
Attention-weighted neighbor aggregation |
3.3 Multi-Agent Simulator (v2)ο
Configurable fleet: 1β50+ drivers with individual shift constraints
Finite demand: Per-zone trip inventory depletes as drivers pick up passengers
Explicit competition: First-come, first-served within each time step
Calibrated travel: Inter-zone travel time matrix
Trajectory collection: Per-driver, per-episode with terminal markers, propensities, and ring-buffer ordering
3.4 Offline Policy Evaluation Protocolο
We implement trajectory-level estimators for complete episodes:
Weighted Importance Sampling (WIS):
Sequential Doubly Robust (DR):
Confidence intervals: 100-draw complete-trajectory bootstrap.
4. Experimental Resultsο
4.1 Static Diagnostic (3,360 Queries)ο
Chronological split, 2016 holdout:
Strategy |
NDCG@3 |
Hit@3 |
Utility@1 |
|---|---|---|---|
Hot Zone (baseline) |
0.7846 |
0.5842 |
19.43 |
Single-Step |
0.9024 |
0.8804 |
25.06 |
Two-Step |
0.9565 |
0.9714 |
27.59 |
4.2 Simulator Rolloutsο
100 independent seeds, 7-day horizon, paired tests:
Strategy |
Mean Daily Fare |
vs Hot Zone |
p-value |
|---|---|---|---|
Hot Zone |
$431.21 |
β |
β |
Single-Step |
$548.77 |
+$117.56 |
< 0.001 |
Two-Step |
$570.61 |
+$139.40 |
< 0.001 |
Two-Step vs Single-Step: +\(21.84/day, paired bootstrap 95% CI [\)5.00, $39.53], p = 0.0151.
4.3 Deep Reinforcement Learningο
Algorithm |
Revenue Delta vs Single-Step |
95% CI |
Significant? |
|---|---|---|---|
DQN |
+$53.74 |
[+46.21, +61.57] |
Yes |
Double DQN |
-$25.27 |
[-32.77, -17.97] |
Yes (worse) |
4.4 Multi-Agent Competition (50 Drivers)ο
Strategy |
Avg Revenue/Driver |
Utilization |
|---|---|---|
Random |
$189.42 |
3.1% |
Single-Step |
$412.85 |
10.8% |
Two-Step |
$438.17 |
12.3% |
At fixed fleet size, raising demand/supply ratio from 0.5x to 2.0x increases Single-Step utilization from 6.42% to 18.53%.
4.5 Offline Policy Evaluation (Trajectory-Level)ο
100-draw complete-trajectory bootstrap:
Policy |
WIS |
Sequential DR |
|---|---|---|
Stay (on-policy, prob = 1.0) |
$438.55 |
$431.74 |
IQL (off-policy, uniform behavior) |
$0.00 |
$12.44 |
IQLβs zero WIS reflects deterministic target policy with uniform exploration (prob = 1/263) β a support overlap failure, not a software bug. Sequential DR partially recovers the estimate via its model-based component.
4.6 Demand Forecastingο
Model |
MAE |
RMSE |
vs Baseline |
|---|---|---|---|
Historical Average |
1.7273 |
5.9237 |
β |
LightGBM |
1.5114 |
5.0707 |
-12.5% |
Ensemble (LGB + XGB) |
1.4868 |
4.9810 |
-13.9% |
4.7 Graph-Enhanced Forecasting (Negative Result)ο
Model |
MAE |
95% CI vs Non-Graph LGB |
Crosses Zero? |
|---|---|---|---|
LightGBM (baseline) |
1.5114 |
β |
β |
OD Messages (no embedding) |
1.5017 |
[-0.003, +0.022] |
Yes |
GraphSAGE |
1.5037 |
[-0.004, +0.020] |
Yes |
GAT |
1.5059 |
[-0.006, +0.018] |
Yes |
Finding: No graph-based model shows statistically significant improvement over non-graph LightGBM at the timestamp level. This negative result is robust across 192 bootstrap blocks.
4.8 Forecast-Decision Gapο
Strategy |
Simulator Revenue |
vs Single-Step |
|---|---|---|
Single-Step (historical demand) |
$548.77 |
β |
Single-Step (forecast-enhanced) |
$530.89 |
-$17.88 |
Better forecast accuracy (MAE 1.49 vs 1.73) produces worse decisions. This empirically validates the need to separate forecasting and decision evaluation.
5. Ablation Studiesο
5.1 Feature Importanceο
| Configuration | MAE | vs Full | Conclusion | |β:|β:|β:| | Full features (LightGBM) | 1.511 | β | Reference | | Without lag features | 1.534 | +0.023 | Lags important | | Without rolling features | 1.563 | +0.052 | Rolling history most important | | Without spatial features | 1.517 | +0.006 | Minor contribution |
5.2 Demand-Supply Ratio Sensitivityο
| D/S Ratio | Single-Step Utilization | Avg Revenue | |β:|β:| | 0.5x | 6.42% | \(387.21 | | 1.0x | 10.75% | \)412.85 | | 1.5x | 14.31% | \(431.66 | | 2.0x | 18.53% | \)448.12 |
6. Discussionο
6.1 The Prediction-Policy Gapο
Better demand prediction does not automatically improve repositioning decisions. The forecast-enhanced single-step strategy underperforms the historical variant by -\(17.88/day (Cohen \)d_z$ = -0.17). This challenges the common assumption in mobility research that improving prediction quality directly improves decisions, and motivates the platformβs design of separate forecasting and decision evaluation pipelines.
6.2 Graph Neural Networks for Zone Forecastingο
Despite widespread adoption of GNNs for spatiotemporal prediction, our comprehensive benchmark shows no significant improvement over gradient-boosted trees with proper feature engineering. All graph variants (GraphSAGE, GAT, OD Messages) produce confidence intervals crossing zero against non-graph LightGBM. This negative result is robust across 192 timestamp blocks and multiple statistical tests, suggesting that the OD graph structure does not capture additional predictive signal beyond what temporal features already provide.
6.3 DQN vs Double DQNο
DQN significantly outperforms Single-Step (+\(53.74), but Double DQN underperforms (-\)25.27). This is notable because Double DQN was specifically designed to address DQNβs overestimation bias. The reversal suggests that overestimation bias may not be the primary challenge in this domain β or that the bias actually helps exploration in this reward structure.
6.4 Offline RL and Support Overlapο
IQLβs zero WIS estimate is a methodological finding: when a deterministic target policy is evaluated against data collected under uniform exploration over 263 actions, importance weights collapse. This is expected behavior β the importance sampling support condition is violated β but documenting it serves as a calibration check and a reminder that OPE estimators are only valid under appropriate logging policies.
6.5 Exposure Concentrationο
Two-Step strategy has 70.33% weighted airport exposure and an exposure Gini of 0.982. If deployed at scale, airport zones would face severe saturation, degrading the policyβs performance. This is a key open research question.
7. Scientific Limitationsο
Read before citing results. These limitations are fundamental to the methodology, not implementation oversights.
7.1 Simulator Boundaryο
The multi-agent simulator omits: congestion and traffic dynamics, airport queue rules (TLC-mandated), endogenous passenger demand response, strategic driver adaptation, and market equilibrium effects. Rollout results must not be presented as production revenue estimates.
7.2 Counterfactual Identifiabilityο
NYC TLC trip records do not contain logged reposition recommendations, behavior-policy propensities, or driver acceptance actions. Valid IPS, SNIPS, or DR evaluation is therefore not identifiable from observational data alone. Simulator-generated trajectories with known propensities fill this gap for methodological benchmarking.
7.3 Forecast-Decision Gapο
Empirically confirmed: better forecast accuracy does not imply better recommendation decisions. The platform explicitly maintains separate forecast and decision evaluation pipelines.
7.4 Generalizationο
All results are on NYC Yellow Taxi data. Geographic, temporal, and modal (green taxi, ride-hail) generalization remains untested.
9. Reproducibilityο
9.1 Reproduce All Resultsο
git clone https://github.com/caizefan34/urban-mobility-ai.git
cd urban-mobility-ai
pip install -e ".[dev,forecasting,graph,rl,api,demo]"
make all # Full benchmark pipeline
pytest tests -q # 402 tests
9.2 Reproducibility Assetsο
Fixed random seeds throughout all experiments
Configuration profiles in
configs/directoryExperiment manifest with parameter tracking
Docker environment for exact dependency reproduction
402 automated tests validating core components
Automatic figure generation via scripts
10. Conclusionο
We present an open-source decision intelligence platform for AI-driven fleet repositioning that combines demand forecasting, multi-agent simulation, reinforcement learning, and reproducible policy evaluation. The platform achieves strong benchmark results (NDCG@3 = 0.9565, +\(139.40/day simulator lift, DQN +\)53.74/day) while maintaining scientific rigor through explicit documentation of limitations, negative results (graph features, IQL transfer, forecast-decision gap), and evaluation protocol constraints.
We invite the research community to:
Use this platform as a standardized benchmark for fleet repositioning
Submit new policies, forecasters, and city adapters via the external contribution pipeline
Improve the simulator fidelity and OPE methodology
Collaborate on the paper with substantial methodological or experimental contributions
Referencesο
Levine, S., Kumar, A., Tucker, G., & Fu, J. (2020). Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv:2005.01643.
Jiang, N., & Li, L. (2016). Doubly robust off-policy value evaluation for reinforcement learning. ICML.
Thomas, P. S., & Brunskill, E. (2016). Data-efficient off-policy policy evaluation for reinforcement learning. ICML.
Yuan, J., Zheng, Y., Zhang, L., Xie, X., & Sun, G. (2011). Where to find my next passenger? UbiComp.
Qu, M., Zhu, H., Liu, J., Liu, G., & Xiong, H. (2014). A cost-effective recommender system for taxi drivers. KDD.
Lin, K., Zhao, R., Xu, Z., & Zhou, J. (2018). Efficient large-scale fleet management via multi-agent deep reinforcement learning. KDD.
Shi, T., et al. (2019). Efficient connected and automated mobility via multi-agent deep reinforcement learning. IEEE TITS.
Ke, J., Zheng, H., Yang, H., & Chen, X. (2017). Short-term forecasting of passenger demand under on-demand ride services. Transportation Research Part C.
Yao, H., et al. (2019). Deep multi-view spatial-temporal network for taxi demand prediction. AAAI.
Fu, J., Norouzi, M., Nachum, O., Tucker, G., Wang, Z., & Novikov, A. (2021). Benchmarks for deep off-policy evaluation. ICLR.
Repository: https://github.com/caizefan34/urban-mobility-ai Contact: caizefan@sjtu.edu.cn Version: v3.0.0 (2026-08)