Applied AI for Enterprise Motor Carriers: Systems Playbook Part 5 | Strong Tower Consulting
Fleet Systems Engineering

Applied AI for Enterprise Motor Carriers: Systems Playbook Part 5

Technical playbook part 5 covering telematics ingestion, MILP dispatch optimization, and straight-through billing pipelines.

Enterprise motor carriers operating 250+ power units face increasing pressure to move from reactive dispatch models to predictive, mathematically optimized operations. This fifth installment of the Applied AI for Enterprise Motor Carriers Systems Playbook focuses on three production-grade technical capabilities: real-time telematics ingestion pipelines, mixed-integer linear programming (MILP) dispatch optimization engines, and straight-through processing (STP) billing architectures.

Strong Tower Consulting has helped carriers running Truckmate, McLeod, and TMW systems integrate these capabilities without replacing their core TMS. The architectures described here are vendor-neutral and emphasize clean data contracts, idempotent processing, and exception-driven workflows that respect existing driver settlement, fuel surcharge, and detention logic.

Real-Time Telematics Ingestion Architecture

Modern fleet systems require sub-second ingestion of ELD, GPS, and engine data. The reference pattern uses Apache Kafka as the event backbone with schema registry enforcement for positional, duty-status, and fault-code events.

A typical carrier ingests data from multiple providers (Samsara, Geotab, PeopleNet, and OEM APIs) into a unified telematics_raw topic. A stream processor (Flink or Spark Structured Streaming) normalizes payloads into a canonical vehicle_telemetry schema before writing to both a time-series database (TimescaleDB) and the operational data store.

Telematics Event Schema Comparison
Field Raw Provider Format Canonical Model Target Store
event_timestamp ISO with timezone variance UTC bigint (ms) TimescaleDB + Kafka
vehicle_id Provider-specific Internal asset_id (FK to TMS) SQL Server / PostgreSQL
latitude / longitude Decimal degrees GEOGRAPHY point PostGIS / SQL Server Spatial
driver_id ELD username Normalized driver_master key TMS driver table
event_type Vendor enum Standard enum (DVCR, IGNITION, FAULT) Operational warehouse

This normalized feed becomes the single source of truth for hours-of-service compliance, fuel tax reporting, and dynamic ETA calculations used by the downstream MILP optimizer.

MILP Dispatch Optimization Engine

Rule-based dispatch systems in Truckmate or McLeod often leave 8-14% of available miles unoptimized. A production MILP solver (using Gurobi, CPLEX, or open-source HiGHS via Python) can close most of this gap when properly constrained by carrier-specific business rules.

The mathematical formulation is expressed as:

minimize Σ (c_ij * x_ij) + Σ (d_k * y_k)
subject to:
  Σ x_ij = 1 ∀ loads j
  Σ x_ij = 1 ∀ trucks i
  flow conservation at each terminal
  HOS feasibility via time-space network
  driver settlement and fuel surcharge constraints
  x_ij ∈ {0,1}, y_k ∈ {0,1}

Key constraints include detention thresholds, fuel surcharge tiers by lane, and driver escrow balance minimums. The model is warm-started nightly from the prior solution and re-solved in real time when telematics events indicate a significant deviation (late arrival, breakdown, or new high-value load).

Integration with existing TMS occurs through a bidirectional REST/EDI bridge. The optimizer reads open loads from the McLeod or TMW dispatch board via SQL views and writes recommended assignments back through the standard load-tender interface (EDI 204 outbound, 990 confirmation).

Straight-Through Billing Pipeline

Once a load reaches delivered status with confirmed telematics proof-of-delivery, the STP pipeline triggers automatically. This includes:

  • Validation of accessorials (detention, layover, lumper) against GPS and driver ELD records
  • Calculation of fuel surcharge using the carrier's proprietary rate matrix and actual route miles
  • Generation of EDI 210 invoice with embedded proof-of-delivery reference
  • Driver settlement file creation that accounts for escrow, advances, and per-diem

The pipeline is built as a series of idempotent Apache Airflow DAGs that can be replayed without duplicating invoices or settlements. All transactions are written to an immutable audit ledger (SQL Server temporal tables or PostgreSQL with audit triggers) before transmission to the customer via EDI 210 or API.

Exception Management and Human-in-the-Loop Design

No optimization system is 100% autonomous. The playbook specifies a threshold-based exception engine that routes problems to the appropriate role:

  • Optimization infeasibility > 5% of daily volume → Senior dispatcher review
  • Detention claim > 2 hours without matching telematics → Billing analyst queue
  • HOS violation risk within next 90 minutes → Driver manager mobile alert

Each exception record carries full lineage back to the originating telematics event, MILP constraint that was violated, and the final human decision. This data is later mined for continuous improvement of the constraint set and cost coefficients.

Implementation Roadmap for Enterprise Carriers

Most carriers we advise begin with telematics normalization, followed by offline MILP model tuning against 90 days of historical dispatch data. Only after the model demonstrates at least 6% improvement in loaded miles or revenue per mile do we move the system into shadow mode alongside the existing Truckmate or McLeod dispatch process.

Straight-through billing is typically implemented last, once the data contracts between telematics, optimization, and accounting are proven stable.

Frequently Asked Questions

How do you integrate the MILP optimizer with an existing McLeod or TMW dispatch board?

The optimizer reads open orders through a set of high-performance SQL views that mirror the native dispatch tables. Recommended assignments are posted back using the TMS load assignment API or direct database procedures that respect all native business rules for driver qualifications, equipment compatibility, and fuel surcharge calculations.

What telematics platforms does the ingestion pipeline support?

The reference architecture currently supports Samsara, Geotab, PeopleNet, Motive, and all major OEM telematics APIs (Volvo, Freightliner, International). New providers are added by implementing a normalization adapter that maps to the canonical event schema registered in the Kafka schema registry.

Can this architecture support both asset-based and brokerage loads in the same optimization run?

Yes. The MILP formulation includes a binary variable that distinguishes between company equipment and carrier-partner capacity. Brokerage loads carry different cost structures and are subject to additional constraints around carrier vetting status and insurance compliance.

How are driver settlements protected when the optimization engine makes lane recommendations?

Every recommended move is evaluated against the carrier's published driver pay matrix before being presented to the dispatcher. The model explicitly maximizes driver earnings within the feasible set while still optimizing overall network contribution margin. Settlement files are generated directly from the executed moves with full audit traceability.

Enterprise carriers ready to move beyond rule-based dispatch and manual billing reconciliation will find the greatest return by implementing these three capabilities as an integrated platform rather than isolated point solutions.

Strong Tower Consulting, LLC and Exspeedite LLC are separately organized sister companies under common ownership. Carriers never have to buy our software. Our only product is better decisions.