Skip to content
← Our work

Logistics and parcel delivery

Building a prediction platform for delivery planning at scale

A cloud-scale arrival-time prediction platform, scoring more than 300 million data points a day, that fed delivery planning and decided which packages to expedite before they ran late.

2 min read Partner experience, prior role

300M+

data points scored daily, project-reported

Billions

of historical records used for training

Client

Major global logistics company

Basis

Partner experience, prior role

The insight

“A prediction only creates value if it arrives in time to change a decision.”

Exhibit

Predictions only matter if they arrive inside the planning window

Where the prediction platform sits in the delivery planning loop

  1. 01 Operational data Shipments, network events, and history
  2. 02 Feature pipeline Prepared continuously at network scale
  3. 03 Prediction service Low latency, high throughput
  4. 04 Delivery planning Predictions consumed inside the plan
  5. 05 Operational decisions Recommendations acted on in time

↑ Outcomes feed back into operational data

Schematic of the architecture pattern, not a system diagram. Outcomes feed back into the data, so predictions improve as the network operates.

Predicting arrival times for every package, every day

A major logistics company wanted arrival-time predictions to drive delivery planning and operational recommendations across its network. The volume was large: more than 300 million data points a day, which made it one of the largest prediction workloads on the company’s cloud platform.

Value depends on arriving in time

A prediction only creates value when it arrives in time to change a decision. Delivery planning runs on tight windows, so the platform had to deliver high throughput and low latency at once. Its outputs also had to land inside the planning process, where dispatchers act, rather than in a separate analytics layer nobody consults at decision time.

Engineering for throughput, latency and the decision together

We led the design and build of an end-to-end prediction pipeline on Microsoft Azure. The pipeline integrated Kafka, Azure Event Hubs, Spark on Databricks, Docker and Kubernetes. The model was a wide-and-deep neural network in TensorFlow, trained on billions of historical records, and the serving path was engineered against the latency budget that planning imposed.

Prediction was the means, not the end. On top of the arrival-time estimates we built a decision heuristic for expedited shipping that combined the predictions with real-time logistics data, shipping costs and service-level commitments, so the network could decide which packages to expedite before they became late deliveries.

Predictions at network scale, tied to an action

The platform scored more than 300 million data points a day, improved arrival-time accuracy materially, and fed delivery planning and expedite decisions across the network. The figures are as the project reported them; Bit Bros has not independently audited them. The lesson that transfers is that latency is an economic parameter: it should be set by the decision window the prediction serves, not by what the infrastructure happens to deliver.

First page of Field Note 10

Field Note 10 / 4-page PDF

A Prediction Is Worth Nothing After the Plan Locks

The full write-up: deriving latency budgets from the planning window, why tail latency governs a plan, how batching trades throughput against delay, and a reference architecture for embedding predictions in planning.

What made the difference

01

Start from the planning window

Latency and throughput requirements were set by when delivery planning needed the answer, not by what was convenient to compute.

02

Engineer for scale

An end-to-end Azure pipeline and a wide-and-deep model trained on billions of records scored more than 300 million data points a day.

03

Turn predictions into a decision

An expedite heuristic combined the predictions with live logistics data, cost and service commitments to act on late packages before they were late.