A delivery promise is a prediction. When a dispatcher tells a customer "before 3pm", they are forecasting traffic, loading time, the number of stops and whether the recipient will answer the phone. Most firms do this with experience and a phone call, which works until the fleet grows.

Predictive analytics improves the promise and the plan, but only for the parts of the journey that generate data. Being clear about which parts those are is the difference between a useful project and an expensive dashboard.

Three different problems

  • ETA prediction: how long will this specific delivery take, given the route, time of day, cargo and history?
  • Route planning: which sequence of stops minimises cost while meeting the windows?
  • Exception detection: which shipments are drifting off plan right now and need a call?

They share data but need different methods and different success measures. A firm that buys "AI routing" expecting better ETAs often gets neither.

Data that actually exists

SourceWhat it gives youTypical gap
Vehicle telematicsLocation, speed, idling, harsh brakingCoverage and polling frequency vary
Delivery recordsActual arrival, dwell, failed attemptsTimes are often recorded in batches at day end
Driver logsBreaks, loading delays, handoverInconsistent categories
Traffic and map dataLive and historical travel timesCoverage on unpaved and informal routes
Customer availabilityWhether the recipient is thereRarely recorded systematically
Port and border dataDwell time and clearancePublished data lags reality

Start with the lanes you run most often. A model trained on Nairobi metro deliveries will not transfer to the Northern Corridor without retraining.

What a realistic ETA model looks like

Predict travel time per leg, then add service time per stop. Use features that are available at planning time: distance, road class, time of day, day of week, vehicle type, historical dwell at that customer, weather, and whether the customer has a history of failed deliveries.

Predict the distribution, not just the average. A promise based on the median will be missed half the time; a promise based on the 85th or 95th percentile is what a service-level commitment needs. Show the dispatcher the range: "12:40 to 14:10, 90% likely".

Route planning is an optimisation problem

Route sequencing is not machine learning in the main. It is a vehicle-routing problem with constraints: time windows, vehicle capacity, driver hours, priority customers, and roads a truck cannot use. Heuristics and open-source solvers handle most fleets; the intelligence is in the constraints and the cost model.

Be honest about the objective. Minimising distance is not the same as minimising cost, and neither is the same as keeping promises. Decide which one the business is optimising before the model does it for you.

Where it breaks in Kenya

  • Traffic data is thin on informal routes and during unusual events.
  • Loading and offloading times are recorded poorly, so the model learns the average and misses the variance.
  • A single road closure or a security incident can invalidate a whole plan; you need re-planning, not just a better forecast.
  • Customer availability drives failed deliveries more than travel time does.
  • Fuel prices and tolls change the cost model faster than the route model changes.

What to automate first

  • Exception alerts: a vehicle off route, a stop overdue, a dwell time beyond the norm.
  • Customer notifications driven by actual progress, not the original estimate.
  • Daily plan versus actual reporting, by lane and by driver.
  • Failed-delivery reasons captured as structured data.
  • ETA ranges shown to dispatch and to the customer.

These produce value before any optimisation model is deployed, and they create the dataset the model needs.

Pilot design

Pick five lanes and one depot, eight weeks. Baseline on-time-in-full, ETA error, failed deliveries, empty miles and fuel per delivery. Run predictions in parallel with the current plan and compare, rather than switching the whole operation at once.

Metrics

On-time-in-full, ETA error by lane, promise reliability at the 90th percentile, failed-delivery rate and reasons, empty miles, fuel per delivery, dispatcher time per plan, and customer contacts per delivery. Cost savings come from these, so measure them directly rather than estimating a percentage.

Failure modes

  • Promising accuracy that the data cannot support.
  • Optimising distance while missing service windows.
  • No re-planning when conditions change.
  • Drivers ignoring the plan because it does not account for local knowledge.
  • Measuring the model's error instead of the operation's reliability.
  • Rolling out across regions before one lane works.

Questions we get asked

Do we need new tracking hardware?

Often not. Start with the telematics you have and the delivery records you already keep. Improving time capture at the depot is usually more valuable than another device.

How accurate can an ETA be?

It depends on lane, data quality and how far ahead you are predicting. Measure error by lane and horizon; a single accuracy figure across a network is misleading.

Can it plan routes for mixed fleets?

Yes, if the constraints are modelled explicitly - vehicle size, access restrictions, driver hours and time windows. That constraint work is most of the project.

Will it reduce cost?

It can reduce empty miles and failed deliveries, but the saving has to be measured in your operation. Treat a vendor's percentage as a hypothesis, not a promise.

Start with exception alerts and honest ETA ranges. They improve service now and produce the data a routing model needs later.