Last-mile delivery accounts for 53% of total UK logistics costs (McKinsey 2025). With 4.5B+ UK parcel deliveries annually and consumer expectations of same/next-day, ML is no longer optional. Royal Mail, DPD, DHL, and Evri all run ML-powered route optimisation. Key challenge: dynamic routing accounting for real-time traffic (TomTom/Google Maps API), delivery time windows, van capacity constraints, driver fatigue regulations (EU Working Time Directive, still applicable in UK).
Route optimisation ML: Vehicle Routing Problem (VRP) is NP-hard at scale — heuristic approaches (Clarke-Wright savings algorithm, or-tools/Google Operations Research) + ML for historical delivery duration prediction. Features: postcode sector density, time-of-day traffic patterns, property type (residential vs commercial), access notes from historical deliveries. 12-15% fuel saving typical. Carbon reporting integration for UK SECR compliance.
ETA prediction ML: gradient boosting on route features + real-time traffic, weather (Met Office API), local events (concerts, football matches increasing traffic). Sequence-aware models (LSTM, Transformer) for multi-stop journey ETA. Customer communication trigger: SMS/email when driver is 2 stops away. UK consumer expectation: ETA accuracy within ±15 minutes for 90% of deliveries.
Failed delivery prediction: 8-11% of UK parcel deliveries fail first attempt (£6.50 average reattempt cost). ML predicts failure probability 24h ahead using: historical delivery success rate at address, customer profile, time slot selected, parcel value. Trigger proactive redelivery instructions or locker redirect. Codeworth delivers last-mile ML integrated with UK carrier APIs (Royal Mail OBA, DPD API, Evri integration).
Related Codeworth Services
Need Help with Implementation?
The Codeworth team is ready to implement these ideas in your project. Free consultation.
Discuss the ProjectCodeworth team specialist.