Abstract
As food delivery platforms have become central to urban infrastructure, concerns regarding the welfare and earnings of the gig workers powering these services have intensified. Analysis of real-world data from three major Indian cities reveals significant income inequality among delivery agents, primarily driven by geographical constraints rather than individual performance. In this paper, we address the challenge of fair income distribution while maintaining service efficiency. We demonstrate that the fair delivery problem is NP-hard and inapproximable in polynomial time. To resolve this, we introduce FairFoody, a novel matching algorithm that optimizes for proportional equality. Our results show that FairFoody improves equitable income distribution by up to 10 times compared to state-of-the-art baselines, with negligible impact on customer delivery times.
Introduction
The gig economy has transformed urban logistics, yet the delivery agents underpinning this growth often face significant economic disparity. While existing platforms prioritize minimizing delivery times for customers, they frequently ignore the welfare of the drivers. Data suggests that even when agents work identical hours, their earnings can vary wildly. This disparity is often a byproduct of "catchment-based inequality," where agents are restricted to specific geographical zones with varying demand levels.
Existing algorithms, such as the efficiency-focused FoodMatch, treat driver welfare as a secondary concern. FairFoody seeks to bridge this gap by treating fairness as a primary objective, ensuring that an agent's income is proportional to their active time on the platform without compromising the customer experience.
The Problem: Catchment-Based Inequality
The researchers identified that the primary driver of income inequality is not driver skill or the timing of shifts, but rather the driver's location. Traditional platforms often confine agents to rigid zones. If an agent is assigned to a low-demand area, their earning potential is capped regardless of their effort.
Mathematically, the authors prove that the fair food delivery problem—balancing agent income while meeting Service Level Agreements (SLAs)—is NP-hard and inapproximable in polynomial time. This computational bottleneck necessitates a heuristic approach capable of handling high-volume data streams in real-time.
The FairFoody Methodology
FairFoody overcomes these challenges through several key technical innovations:
- Proportional Equality: Rather than pursuing strict egalitarianism (paying everyone the same), the algorithm aims for proportional fairness. An agent’s target income is calculated based on the total number of hours they have been active on the platform.
- Weighted Bipartite Matching: The system models the assignment problem as a bipartite graph between available vehicles and clusters of orders. It utilizes the Kuhn-Munkres algorithm to find the optimal matching based on edge weights that prioritize fairness.
- Next-Slot Normalized Income: This metric serves as the "secret sauce" for the algorithm. It calculates the potential time-normalized income an agent would achieve if assigned a specific order, specifically favoring agents who are currently "underpaid" relative to their active time.
- Dynamic Clustering and Zone Flexibility: To maintain scalability, the algorithm uses Ward’s method to cluster nearby orders. Crucially, it breaks down rigid zone restrictions, allowing agents to move across a wider range to find work, provided it does not violate delivery time guarantees.
Experimental Setup and Datasets
The study utilized a massive real-world dataset from a major food delivery platform in India, spanning three cities:
- City A: A smaller metropolis with lower order volume.
- Cities B & C: Large metropolises with high order density and over 8 million inhabitants.
The data included six days of trajectory data, restaurant and customer locations, food preparation times, and road network data from OpenStreetMap. This allowed for a high-fidelity simulation of the algorithm's performance in complex urban environments.
Key Results and Insights
1. Drastic Improvement in Fairness
FairFoody achieved a Gini coefficient (where 0 represents perfect equality) of approximately 0.035. In contrast, efficiency-only baselines produced a Gini coefficient of 0.518. This represents a more than 10-fold improvement in the equitable distribution of income.
2. Minimal Impact on Customer Experience
One of the most significant findings was the lack of a major trade-off between fairness and efficiency. The Average Delivery Time (DTPO) remained nearly identical to the baseline. For example, in City A, the baseline delivery time was 15.2 minutes, while FairFoody’s was 15.4 minutes—a difference of only 12 seconds.
3. Scalability and Driver Retention
Despite the added complexity of fairness calculations, FairFoody’s implementation was faster than the baselines due to its efficient best-first search and clustering approach. Furthermore, approximately 75% of drivers saw an increase in their income compared to traditional allocation methods, suggesting that the algorithm could significantly improve driver retention and satisfaction.
Conclusion
FairFoody demonstrates that income inequality in the gig economy is not an inevitable consequence of efficiency. By "amortizing" fairness over a shift and removing rigid geographical restrictions, platforms can ensure that delivery agents are compensated fairly for their time. While future work is needed to explore customer-side fairness and the long-term effects of supply-demand feedback loops, FairFoody provides a robust framework for a more ethical and sustainable food delivery ecosystem.
Summary updated