You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

VTT Classify: powertrain and size class of light-duty vehicles from trajectories

VTT Classify reads the speed trace of a vehicle (time and speed, nothing else) and estimates whether the vehicle is battery-electric (BEV) or combustion (ICE). For a file of many vehicles it reports the share of each class in the fleet, with an interval, after correcting for the classifier's measured errors. A second input tier reads the 20 CAN-level channels of the VTT research dataset and adds a size class (small / mid / large by footprint).

It ships as one Python package with four ways in:

way in for whom start it with
web application analysts: upload a file, check the data, see the fleet composition, download a report python -m vtt_classify serve
command line scripted use, batch jobs python -m vtt_classify classify FILE
LLM harness language models: an MCP server and a ready Claude agent over the same nine tools python -m vtt_classify mcp, examples/agent_claude.py
Python and REST API integration into other software from vtt_classify import api, GET/POST /api/...

Everything runs on the user's machine, on CPU, without a network connection. Trajectory files are never sent anywhere; the optional Claude assistant sends only the compact results of the tools.

Start in three minutes

python -m venv .venv && . .venv/bin/activate
pip install ".[all]"                      # core + web + mcp + assistant; "pip install ." is enough for the command line
python -m vtt_classify demo               # classifies the bundled sample fleet and compares with its true labels
python -m vtt_classify serve              # then open http://127.0.0.1:8765/ and click "10 Hz feed"

demo/README.md walks through the complete demonstration (web application, command line, Python, language-model harness); docs/QUICKSTART.md has the same steps with explanations.

What it measures, and how well

Speed trace only: battery-electric (BEV) vs combustion (ICE). Measured on 39 car models that are absent from training (836 drives, 244 vehicles). A drive is one recording of a vehicle.

source drives labelled correctly balanced accuracy BEV recognised ICE recognised
10 Hz 85.4 % 83.5 % 74.9 % 92.1 %
2 Hz 84.6 % 83.2 % 77.1 % 89.4 %
1 Hz 79.4 % 79.9 % 82.3 % 77.6 %
1 Hz, 1 km/h 79.5 % 76.5 % 62.7 % 90.4 %
10 Hz, noise 0.1 84.0 % 81.2 % 68.5 % 93.9 %
10 Hz, first 30 s 79.9 % 77.1 % 64.2 % 90.0 %
10 Hz, first 15 s 76.3 % 73.3 % 59.6 % 87.0 %

Balanced accuracy by the minutes of data used per drive (10 Hz): 1 min 68.9 %, 2 min 73.6 %, 3 min 75.1 %, 5 min 79.3 %, 10 min 82.7 %, 20 min 86.9 %.

Public datasets recorded by other people and systems (only their speed is read):

dataset vehicles BEV / ICE vehicles recognised true BEV share share the tool reports (95 % interval)
ved 267 BEV 0.0, ICE 99.6 1.1 % 0.0 % (0.0 to 0.0)
tesla_yuan 1 BEV 100.0, ICE n/a - -
openacc_500x 1 BEV n/a, ICE 100.0 - -
openacc 19 BEV 28.6, ICE 91.7 - -
ccs 2512 BEV 52.6, ICE 94.1 24.7 % 5.9 % (0.0 to 13.8)
moretorque 12 BEV 0.0, ICE 100.0 - -

Note: hybrids (HEV / PHEV) are outside the two classes; in the evaluation 23 % of hybrid drives were called BEV and the rest ICE, so a corrected BEV share counts roughly that part of the hybrids as electric.

Note: on public datasets recorded by others, BEV vehicles were recognised 52 times in 100 (632 vehicles) and ICE vehicles 95 times in 100 (2180 vehicles), against 80 and 95 in the evaluation; on a new data source the BEV share can therefore come out too low until it is checked against a labelled sample from that source.

Full CAN-level inputs (20 channels of the research dataset).

task drives labelled correctly balanced accuracy recall
powertrain (BEV / ICE) 93.7 % 92.8 % BEV 88.7, ICE 96.9
size (SMALL / MID / LARGE) 70.8 % 66.8 % SMALL 80.6, MID 61.3, LARGE 58.6

Size class is not offered from the speed alone: on car models absent from training every model trained on speed-only inputs stayed at the chance level (research/TRAJ.md). It needs the steering channels of the full tier.

Every figure above is generated from vtt_classify/models/performance.json (python export/render_docs.py); the full sheet is docs/ACCURACY.md and the same tables are shown inside the application ("How accurate is this?").

Read these three points before using a result:

  1. A share over many vehicles is the product; a single vehicle is a hint. One drive is labelled correctly about five times in six on unseen car models at 10 Hz; the fleet share is corrected for exactly those errors.
  2. A new data source needs a check, and without one the share is not reliable. On public datasets recorded by other systems the classifier kept its low rate of combustion vehicles called electric, but recognised clearly fewer of the electric ones than on the research recordings, and on the largest of those datasets the share it reported was far below the true one, with an interval that did not contain it (table above). The correction assumes the error rates measured on the research recordings; where they do not hold, neither does the share. Before a share from a new source is quoted, compare it on a sample with known powertrain from that source.
  3. Scope. Light-duty passenger vehicles (cars, SUVs, pickups, vans). Heavy trucks, buses and motorcycles were not evaluated. Hybrids are outside the two classes; the accuracy sheet says how they are counted.

Input

One row per vehicle and time stamp, CSV / TSV (optionally gzipped) or Parquet:

  • a time column (seconds, milliseconds, date-time text, or a frame counter with a known frame rate),
  • a speed column (m/s, km/h, mph, ft/s or knots; two velocity components also work),
  • a vehicle or trip identifier when the file holds more than one vehicle.

Sampling every 1.5 s or faster; at least 15 s of continuous data per vehicle, with the vehicle moving. The model reads 60-second windows; more minutes per vehicle give a better decision. Column names and units are detected (NGSIM, highD and VED layouts are recognised) and can be overridden. Details: docs/USER_GUIDE.md.

What is in this repository

path content
vtt_classify/ the package: signal preparation, model bundle runtime, pipeline, fleet estimate, reader, API, command line, report, REST service, web application, tool registry, MCP server, Claude assistant
vtt_classify/models/ the model bundle: 9 ONNX networks (three seed ensembles), manifest.json, performance.json
vtt_classify/sample_data/ demonstration fleet: 38 vehicles of car models absent from training, as a 10 Hz feed and as a 1 Hz feed, with their true labels
checkpoints/ the PyTorch checkpoints the bundle was exported from
demo/ the runnable demonstration package
examples/ Claude agent script, MCP client configuration
docs/ quick start, user guide, LLM harness, deployment, model card, accuracy sheet, note for transportation agencies
research/ how the speed-only model was trained and selected (code and results)
export/ development scripts: export checkpoints to the bundle, measure the bundle, build the sample files, render the documents
tests/ offline test suite (python -m pytest)

Where the model comes from

The networks were trained on the VTT dataset (9,062 drives of 1,431 light-duty vehicles, 174 car models, 3,950 hours of 10 Hz trajectories with CAN signals; Hugging Face dataset HenryYHW/Vehicle_Power_Type_Trajectory_Dataset) and are evaluated on 41 car models that no training window contains. The speed-only model was trained on inputs rebuilt from the speed alone and degraded the way a coarser source delivers them (1 to 10 Hz, speed noise, rounding, short observation); research/TRAJ.md reports the selection and the test results, docs/MODEL_CARD.md the details and limits.

Licence: not yet chosen by the owner; until a licence file is added, all rights are reserved.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support