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

Applied AI for Enterprise Motor Carriers: Systems Playbook Part 14

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

Enterprise motor carriers operating 250+ power units face increasing pressure to extract maximum utilization from assets while maintaining service levels. Part 14 of the Applied AI for Enterprise Motor Carriers Systems Playbook focuses on three production-grade systems that deliver measurable ROI: real-time telematics ingestion pipelines, mixed-integer linear programming (MILP) dispatch optimization engines, and straight-through processing (STP) billing architectures.

Strong Tower Consulting has architected these systems for carriers running Truckmate, McLeod, and TMW suites. The patterns described below are battle-tested in live environments handling 800+ daily dispatches, 1.2 million GPS pings per day, and 18,000 monthly invoices.

Real-Time Telematics Ingestion Architecture

Modern fleet systems require sub-second ingestion of ELD, asset, and sensor data. The reference architecture uses Apache Kafka as the event backbone with schema registry enforcement for positional, HOS, fault code, and engine telemetry streams.

Raw data from Samsara, Geotab, and Omnitracs is normalized into a canonical event model before landing in both a hot path (Redis + PostgreSQL) and cold path (data lake). The ingestion layer applies business rules for out-of-route detection, fuel stop validation, and detention start/stop events using a rules engine backed by Drools or custom TypeScript decision tables.

Telematics Event Volume by Source (Typical 400-Truck Fleet)
Source Events/Day Avg Size (KB) Peak Rate (eps)
Samsara ELD 1,240,000 0.8 185
Geotab GO 680,000 1.1 92
Engine ECM 310,000 2.4 47
Asset Sensors 95,000 0.6 18

MILP Dispatch Optimization Engine

The dispatch optimization core uses a mixed-integer linear program solved with Gurobi or OR-Tools. The objective function minimizes total cost while respecting hard constraints on driver hours-of-service, equipment compatibility, customer delivery windows, and fuel surcharge logic.

Key decision variables include assignment of driver-power unit-trailer triples to loads, start times, and route sequences. The model incorporates real-time telematics to adjust ETA predictions using current traffic, weather, and driver fatigue scores derived from HOS and biometric data.

Typical model size for a regional carrier with 180 open loads and 95 available drivers runs approximately 14,000 variables and 9,200 constraints. Solve time averages 18 seconds on a 32-core server, well within operational windows.

Core MILP Formulation (Simplified)

Minimize: Σ (c_ij * x_ij) + Σ (d_k * y_k)
Subject to:
  Σ_j x_ij = 1 ∀ i ∈ Loads
  Σ_i x_ij ≤ 1 ∀ j ∈ Driver-Unit pairs
  t_arrive_i + s_i + travel_ij ≤ t_window_j
  HOS_remaining_j ≥ hours_required_ij
  x_ij, y_k ∈ {0,1}

Post-optimization, the solution is pushed back into the TMS (Truckmate or McLeod) via direct SQL updates to the dispatch board tables and EDI 204 generation for tender confirmation.

Straight-Through Billing Pipeline

The STP billing system eliminates 70-85% of manual invoice touches by combining three data sources: optimized dispatch events, telematics-derived accessorial triggers (detention, layover, fuel surcharge), and EDI 214 status updates.

When a load reaches Delivered status, the pipeline triggers a rules engine that calculates line-haul, fuel surcharge (using the carrier's proprietary rate matrix), detention (based on geofence arrival/departure times), and any lumper or tarp charges. The resulting invoice is posted to the McLeod or TMW AR module and transmitted via EDI 210.

Exception management is handled through a configurable workflow. Common exceptions include missing proof-of-delivery images, fuel surcharge disputes, or rate discrepancies greater than 4%. These are routed to the revenue management team with full context from the optimization run and telematics history.

Integration Points with Core TMS Platforms

  • Truckmate: Direct PostgreSQL writes to Dispatch, OrderHeader, and Settlement tables. Custom views for real-time optimization feedback.
  • McLeod: Use of the LoadMaster API and SQL Server stored procedures for dispatch updates and driver settlement integration.
  • TMW: OpSQL layer with custom triggers that sync optimization results to the Operations module.

Exception Management and Human-in-the-Loop Design

No optimization system is perfect. The playbook mandates that every MILP solution includes a confidence score and top three alternative assignments. When confidence falls below 0.82, the load is routed to a senior planner queue with one-click acceptance or manual override capability that feeds back into the model as a training signal.

FAQ

How long does it typically take to implement a production MILP dispatch optimizer?

For a carrier already running a modern TMS with clean SQL access, the core optimization engine can be placed into production within 14-18 weeks. This includes data pipeline development, model tuning against 90 days of historical loads, integration with the dispatch board, and change management training.

Can this architecture work with both Truckmate and McLeod simultaneously?

Yes. The optimization and billing engines are deliberately TMS-agnostic. A thin translation layer normalizes data from each platform into the canonical model. Carriers running dual TMS instances during mergers frequently use this pattern.

What ROI have carriers seen from straight-through billing pipelines?

Our clients typically reduce days sales outstanding (DSO) by 6-11 days and cut billing labor by 65-80%. One 600-truck carrier recovered $187,000 in previously missed detention and fuel surcharge revenue in the first full year after implementation.

Does the MILP model account for driver settlement rules and escrow balances?

Absolutely. The model includes driver-specific cost coefficients that incorporate per-mile rates, accessorial splits, and escrow deduction logic. This ensures the optimization produces operationally feasible assignments that align with the carrier's driver compensation program.

Strong Tower Consulting, LLC and Exspeedite LLC are separately organized sister companies under common ownership. Founded in Minnesota in 2008 by Scott Elliott, the firm has spent more than 18 years helping enterprise motor carriers design and implement high-performance technology architectures.

Our only product is better decisions.

Schedule a Systems Assessment

Call 763-244-1373 to speak with our team.

Continue the Series

Read the complete Applied AI for Enterprise Motor Carriers series or explore related technical playbooks below.