Playbook
From EDA (Exploratory Data Analysis) to Fleet Waiting Hotspots (From Eda To Fleet Waiting Hotspots)
Starting with EDA on location and wait histories, then productizing where vehicles wait most.
Fleet Route Intelligence ML (Machine Learning)
Part 1 of 10
EDA, scikit-learn/PyTorch, OSRM, and foundation-model APIs for wait hotspots, preferred routes, and fuel-waste analysis.
See the distribution before you fit a model
A wait hotspot looks like a dashboard ask; it is really EDA first — duration distributions, day/night drift, yard density. scikit-learn / PyTorch only matter after that map exists.
Telemetry + wait events
↓ EDA
distributions / outliers
↓ clustering
wait hotspots
↓ API
heatmap UI (control plane)
This series connects OSRM baselines, preferred routes, fuel/km/delay, and the map UI bridge.
Concepts, defined where they first appear
📦 OSRM
Open-source road-network shortest-path engine used as the recommended-route baseline.
📦 Preferred Path
The path drivers actually take — recovered from telemetry traces.
📦 Km Extension
Extra kilometers of the preferred path versus the OSRM baseline.
📦 Wait Hotspot
Geographic cluster where waiting events concentrate.
OSRM is an open-source shortest-path engine; preferred paths are learned from telemetry.
Mandatory EDA steps
Null geometry, impossible speeds, duplicate pings — remove trash before models.
Hotspot as product
Cluster centers and density scores reach the heatmap via the Django API.
Frontend bridge
The Logistics Ops Control Plane heatmap draws these scores — not raw Mongo.
The mappings that get confused most often
❌ Model first, EDA later
✓ Models without EDA mislead operations
❌ Hotspot = random grid
✓ Hotspots need telemetry + wait taxonomy
❌ Map shows raw pings
✓ Map shows productized scores
A checklist for auditing your own system
- Have you plotted wait-duration distributions?
- What is your outlier speed threshold?
- Which fields are in the hotspot API DTO?
- Which frontend surface owns the heatmap?
- How are PII coordinates rounded?
What to take away from this part
- EDA is the gateway to fleet ML.
- A hotspot is a product, not only a notebook.
- Control-plane heatmaps consume clean scores.
A model fit before you see the distribution is expensive prejudice.
FAQ
Frequently asked questions
What is OSRM?
Open-source road-network shortest-path engine used as the recommended-route baseline.
What is Preferred Path?
The path drivers actually take — recovered from telemetry traces.
Is it true that "Model first, EDA later"?
Models without EDA mislead operations
What does this part lock in?
This series connects OSRM baselines, preferred routes, fuel/km/delay, and the map UI bridge. A wait hotspot looks like a dashboard ask; it is really EDA first — duration distributions, day/night drift, yard density. scikit-learn / PyTorch only matter after that map exists.
Engineering Principles Learned
- Fleet ML starts with EDA.
- Hotspot scores ship through an API.
- The map is not a raw telemetry dump.
Continue reading
Continue reading
Next in series
scikit-learn and PyTorch on Location Histories
scikit-learn and PyTorch on Location Histories — a production lesson from an ABC Logistics backend/data platform.
Same series
OSRM (Open Source Routing Machine) Shortest Path vs Driver Preferred Path
OSRM Shortest Path vs Driver Preferred Path — a production lesson from an ABC Logistics backend/data platform.
Same series
Measuring Fuel Waste and Km Extension
Measuring Fuel Waste and Km Extension — a production lesson from an ABC Logistics backend/data platform.