The table
Use one row per vehicle per day, or per trip if your questions are about trips. Each row holds the values as they stood at the end of that day.vehicle_days.csv
Questions you can ask
For a target about a future period, put the answer on the row of the day the question is asked, and set
target_delay_days to the length of the period. Each row is then predicted only from answers that were known by its own date. See Time and leakage.
Battery health in 90 days
Lenders and insurers
An EV loan or lease adds telematics to the usual credit data. The vehicle’s use says a lot about the borrower’s business: a delivery three-wheeler that stops driving often stops earning. A monthly table per loan, with the month’s usage summarised next to the repayment status, fits the same setup as a behaviour score. The vehicle’s usage columns sit next to the credit columns, and the model reads both.Things that often go wrong
- Readings dated by upload. A vehicle that uploads its data a week late should still have each reading on the day it was taken. Otherwise a row reads data it could not have had.
- State of health that jumps. Battery health estimates are often recalibrated after a firmware update. A sudden step on many vehicles at once is a change in measurement, not in the batteries. Add the firmware version as a column.
- Vehicles replaced under the same id. If a vehicle id is reused for a new vehicle, its history starts again. Give the new vehicle a new id.