VoltFleet: a production-grade IoT analytics platform for EV fleets

Updated: Nov 15

IoT Analytics for EV Fleets
Fleet operators running electric vehicles face an asymmetry of information that costs them money every week. The vehicles generate enormous quantities of data - battery states, voltages, current draws, power-train temperatures, GPS, wheel speeds - every few seconds. Even today, much of it still goes nowhere. When something fails, it usually fails in the field, resulting in recovery time, warranty costs, roadside assistance, and unimpressed customers.
The answer is of course to utilise that existing vehicle and fleet data for predictive diagnostics, as engineers have known for several years now. In the real world however those projects often get pushed back and postponed. Infrastructure and data were never the core competencies of legacy OEMs. Aftersales departments and service networks already existed, as did contracts with outsourced recovery and repair providers. So the perceived complexity has often been cited as a reason (and often a good operational reason amongst competing priorities) to push this along the roadmap another year.
So in an attempt to answer that, I wanted to create an agentic workflow to build me a predictive diagnostics demo in an afternoon. The brief I gave to my Claude agents was: build a telemetry ingestion and anomaly detection platform for a simulated fleet of EVs. Detect a failing battery before it fails, and do it properly. Not a notebook or prototype, but something with real architectural decisions behind it and real production patterns throughout. Something that was basically scalable, that would prove whether AI agentic teams could unlock this type of stalled initiative. And maybe more interestingly, what this would mean to an organisation now the Engineering and Product teams can create a demo or POC for every day of the week.
Architecture first
The first items I always instruct my agents to produce are PRDs and ADRs. For a project like this, the ADR especially is critical.
Thirteen decisions were executed during that process: the processing model (Kappa architecture over Lambda), the ingestion protocol (MQTT for real vehicles, HTTP for simulation), the storage layer (medallion architecture: Bronze, Silver, Gold), the anomaly detection algorithm (IsolationForest), rate limiting strategy, circuit breaker design, data residency across EU, US and Japan, and associated GDPR compliance.
This is the part many agentic experimentation projects skip in the (understandable) rush to build shiny things. But it's also the part that most clearly distinguishes a throwaway vibe-coded project from one that is built with potential to scale into production. as ever, the decisions and their consequences follow you through the entire build.
Kappa over Lambda is the clearest example. Lambda splits processing into a batch layer for accuracy and a speed layer for latency, then merges the outputs - two separate codebases doing essentially the same work. At 100 events per second from 500 vehicles, that complexity is unjustifiable. Kappa uses one pipeline for everything; historical reprocessing is done by replaying the stream through the same code. Simpler, maintainable, and entirely appropriate for this scale. That decision was made between the agents and I before a single function was written, saving an hour of redesign further downstream .

The medallion architecture in practice
The Bronze/Silver/Gold pattern is a data engineering convention that has become standard in production data platforms.
Bronze is raw, unmodified data exactly as it arrived. Append-only. Nothing is changed or deleted after the initial write. This is the source of truth. If a bug corrupts the Silver layer six months from now, you reprocess from Bronze. Without it, that recovery is not possible.
Silver is the cleaned, validated, enriched layer: range checks, null handling, unit normalisation, and a join against vehicle metadata to add rated battery capacity and manufacture year to each telemetry record.
Gold is the aggregated, business-ready layer. One record per vehicle per 30-second pipeline cycle, containing rolling averages, a computed discharge rate over a five-minute window, and a health score. This is what the anomaly detection model and the dashboard read from.
The pipeline runs on a 30-second micro-batch cycle; the same logical operation Apache Spark Streaming performs, implemented here in pandas. The window size is configurable and the pattern is transferable.
The circuit breaker makes it reliable. If more than 10% of records in a batch fail Silver validation (indicating a systematic data quality problem upstream) the pipeline halts rather than writing a corrupted batch. It raises an operational alert and waits for the next cycle. In production this would page an on-call engineer, whereas here it logs prominently (since I am the on-call engineer in this case). The principle however is the same.
Finding the anomaly without being told what to look for
The anomaly detection uses IsolationForest, an algorithm introduced by Liu, Ting and Zhou in 2008.
Normal data points cluster together, while anomalous ones sit apart. Randomly partition the feature space and you isolate a normal point only after many cuts, as there are always neighbours nearby. An anomalous point is isolated in far fewer cuts because there is nothing nearby to confuse it with.
The algorithm requires no labelled data. There are no historical records tagged with "this was a failing battery." The model learns what the normal fleet looks like and flags anything that deviates from it. For a fleet analytics problem where failures are rare and unlabelled, this is the right tool.
Five elements then feed this model: average battery percentage, average voltage, average current draw, average EV motor temperature, and the rolling five-minute discharge rate. Discharge rate is the most sensitive signal - a battery losing charge at three times the fleet average is the clearest early indicator of a cell fault.
The simulated anomalous vehicle was therefore given precisely that fault - a 3x normal discharge rate and an elevated motor temperature - and the model found it. After two consecutive anomalous prediction windows, an alert fired with contributing features listed in order of deviation from fleet average. Discharge rate first, temperature second.
The alert was not raised on the first anomalous reading. A single out-of-range sensor value is noise, while two consecutive windows represent a pattern. That distinction is what separates a system that cries wolf from one a maintenance team can put their faith in and respond to.
A shadow model also runs alongside the production model. Its predictions log to a separate table but never trigger alerts - this is how you validate a retrained model on live data before promoting it to production.
Compliance as a first-class concern
The platform targeted three hypothetical markets: EU, USA/Canada, and Japan. GDPR, CCPA, APPI as mandatory data privacy compliance requirements. GPS coordinates tied to a vehicle identifier constitute PII in all three jurisdictions where the vehicle is assigned to a named driver.
Compliance of course is a major driver of any architecture, and a misstep here would either result in a product that couldn't launch, or start the snowball of tech debt rolling, forcing a panic and rushed workaround in future as teams scramble to get something across the line. So this step had to be right first time.
Bronze records are immutable, but the right to erasure requires that personal data can be removed. The solution is to null out the identifying fields (vehicle ID and GPS) rather than deleting rows, preserving sensor readings for statistical purposes while severing the link to any individual. An erasure log records every request with a timestamp and record counts affected across all tables. A DPIA (Data Protection Impact Assessment) is a pre-go-live requirement under GDPR Article 35 given the systematic location monitoring involved. An agent can be configured to draft this of course, only requiring a spec and access to the code to do so. Another AI time-efficiency versus asking a busy feature-owning engineer to complete the paperwork.
Data residency meanwhile compounds the compliance requirement. EU vehicle data stays in EU infrastructure. Japanese data stays in Japan. The architecture therefore supports regional deployments sharing a common codebase but with independent storage layers; only anonymised, aggregated Gold statistics cross regional boundaries.
None of this is built in the local simulation of course, as that would be overkill (and too expensive) for such a demo where the main objective is related to AI build capability, rather than launching a global data analytics solution. However all of it is designed, documented, and stubbed so that a production deployment does not require architectural rethinking to be compliant. In other words, production is possible.
The dashboard
A dark-mode operational dashboard was built by my front-end Claude agent in React (single HTML file served by Flask, no build step) with Chart.js for telemetry charts and Leaflet for the map.

Five views were included in the dashboard: fleet overview, individual vehicle detail, alerts, pipeline health, and live GPS map. The map plots all ten vehicles across a region of the UK; red markers for vehicles under alert, green for healthy. Clicking a marker surfaces battery state, temperature, speed, firmware version, and a link through to the vehicle detail view.
The firmware version column was the last feature added. Vehicle 001's end-of-life firmware (v1.8.2) sits in red next to its anomaly score and active alert. Anyone who has managed a mixed-version fleet understands what they're looking at.
What this is and what it isn't
The vehicles are simulated, not real. The Kafka cluster is a Python queue. The data lake is SQLite. The load balancer is a stub in a config file. This is an experiment in AI after all, not a commercial deployment.
The patterns, architecture decisions, compliance design, and operational thinking are not simulated however - they demonstrate what a workflow looks like when agents are assigned specific real-world responsibilities and agency.
The exercise was to build something a data engineer would recognise as reflecting how production systems actually work. Not a vibe-coded proto that happens to run, but a project where every decision can be explained and defended. The ADR exists for exactly that reason. Every choice has a rejected alternative and a reason.
The production delta is documented in the accompanying README: an MQTT broker, Apache Kafka, Parquet on S3 with Apache Iceberg, mTLS for vehicle authentication, OAuth 2.0 for the dashboard, automated backups with tested restore procedures, horizontal scaling. These require infrastructure a local project doesn't justify, and would only have obscured the patterns rather than clarified them. This is a scope and cost decision rather an avoidance - one man and a Claude subscription built this in an hour.
What we learned about agentic workflows
What did we learn? Primarily, and unsurprisingly, utilising an agentic workflow can compress timelines. And it can cover architectural decisions, document the trade-offs, and design something based on sound production practices. And if the orchestrator (i.e. the architect or engineer running the process) understands their domain well enough, asking the right questions and articulating a full set of operational requirements clearly, then AI can create an incredibly complete product - that is, a scalable, cost effective and compliant product.
What we learned about organisational impact
To answer the initial question that sparked this experiment - could OEM teams get complex programs like Predictive Analytics approved and funded more often than previously, utilising AI - the answer is yes. Timelines will be shorter, testing more frequent, costs lower. The boxes that a Program Director or Chief Engineer needs to check are more feasible by orders of magnitude than only a couple of years ago. The caveat though is that is requires careful preparation on the part of the engineer proposing the project. This isn't about writing a prompt and leaving Claude running while you go for a coffee.
Code generation is GenAI's forte, being text-based as it is. Millions, if not billions of lines of code from public and private repos have been used to train models like Sonnet 5 (which I used here). So that's the quick and easy part. Success though ultimately depends on getting the requirements right.
For a heavily-regulated industry like Automotive it's imperative to design the agents, loops and workflows with precision - compliance and scalability must always be at the forefront. Specify instructions and create artefacts that can satisfy audit trails for R155/6, FuSa and GDPR. Avoid tech debt snowballing from Day 1 by making comprehensive architectural reviews and applying industry best practices. Avoid huge infrastructure or compute bills by doing the same. Make sure your software shipping process and toolchain is included as necessary. Extend this rigour throughout the fundamental planning stages rather than relying on silver-bullet prompting - taking a vibe-code approach to your agentic workflows might cost your product line its homologation.
The summary is that yes, you can bring complex products to market faster and cheaper than ever before. But that requires high-standards of domain knowledge and systems thinking from engineers and architects, and the right challenging questions from the Directors and Execs on the hook to approve or reject. And the latter is probably the bigger ask for most organisations. Engineers are supposed to be experimenting with the latest AI models and tools, none of the above should be news to an engineer or architect worth his salt. But leaders who operate across domains and disciplines often don't have the time or inclination to prioritise such things. Arming them with the right questions and knowledge is paramount to how well your organisation will utilise the potential of AI.
Full repository at github.com
David Turner is the founder of Kói, an independent strategic advisory working across technology, product strategy and creative disciplines. He advises organisations, founders and investors on complex technologies, products and organisational challenges.
You can reach him at: enquiries@dkoi.design
© Kói Holdings Ltd 2026. All Rights Reserved.


