Predicting driver route deviations
Delivery drivers reorder 72.5% of their planned routes. I built a machine learning framework that predicts where they’ll deviate and adjusts routes to fit how drivers actually drive.
Delivery drivers reorder 72.5% of their planned routes. I built a machine learning framework that predicts where they’ll deviate and adjusts routes to fit how drivers actually drive.
Route optimisers assume drivers follow the plan. They don't. In last-mile delivery, drivers constantly reorder their stops based on local knowledge: a road they avoid at school-run time, a building where the recipient is only in after 10, a cluster of nearby drops they'd rather knock out in one go. In the data I worked with, 72.5% of routes were reordered by the driver. Standard routing models treat this as noise, so the gap between the planned route and the driven route stays unexplained and unmanaged.
In my MSc thesis with Urbantz, a European last-mile delivery platform, I built a three-phase machine learning framework that treats deviation as a signal rather than noise:
Phase C reduced predicted deviation risk on 96.5% of candidate routes. It did this with an average of three or four small, targeted swaps per route, not by redesigning the routes. The analysis also showed that deviation is systematic. It is driven by route size, time-window flexibility, and recurring driver–recipient patterns. One finding ran against intuition: routes that drivers didn't reorder had more time-window violations (35% vs 22%). This suggests drivers often deviate in order to stay on time. The outcome is a lightweight "human-compatibility layer" that could sit on top of existing routing software. It shows that driver behaviour can be learned and designed around without replacing the solver.
