Skip to content
Ali Zarreh
Open source Insurance

Telematics Risk Assessment

Predicting insurance claims from how people actually drive.

A dual-model machine-learning system that turns raw trip telematics — GPS, accelerometer, speed — into 50+ driving-behavior features, then predicts both the probability and the likely severity of an insurance claim, with interpretable risk factors and risk tiers.

claim ROC-AUC (baseline 0.524)
0.689
severity R² (baseline 0.398)
0.485
engineered driving features
50+

Why it exists

Usage-based insurance prices risk from behavior rather than from proxies such as age or postcode. That requires two things traditional rating models do not handle well: turning noisy, high-frequency sensor data into meaningful driving features, and predicting both whether a claim will happen and how expensive it is likely to be.

How it works

  1. 01 Input Raw trip data GPS, accelerometer, speed
  2. 02 Code Feature engineering 50+ behavior & time features
  3. 03 Model / AI Claim probability XGBoost classifier
  4. 04 Model / AI Claim severity XGBoost regressor
  5. 05 Output Risk tier & drivers low → very high
In order · Code Model / AI
  • Feature engineering converts trip data into more than 50 features: harsh-driving intensity, speeding patterns, distance, night driving, time-of-day patterns and a composite risk score.
  • Two models, two questions. A classifier predicts claim probability; a separate regressor predicts claim amount. Class imbalance is handled with scale_pos_weight, and claim amounts are log-transformed.
  • Tuned with Optuna, then versioned in a simple model registry for batch or single-trip inference.
  • Interpretable output: each driver gets a risk tier and the factors behind it.

Results and honest limits

From the project’s experiments on a 1,200-driver dataset:

  • Claim probability: ROC-AUC improved from 0.524 to 0.689 and recall doubled after tuning and feature work.
  • Claim severity: RMSE fell from $2,156 to $1,847 and R² rose from 0.398 to 0.485.
  • Top predictive features: composite risk score, harsh-driving intensity, speed risk, total distance and night driving.

Engineering decisions

  • Separate frequency and severity models, mirroring how actuaries decompose expected loss.
  • Explicit imbalance handling and log-transformed targets rather than accepting a model that predicts “no claim” for everyone.
  • Reproducible environment: Docker and Docker Compose for training, inference and notebooks, with command-line, Python and notebook interfaces.

Who it’s for

For insurers exploring usage-based products, it is a transparent starting point that separates claim frequency from severity. For data scientists, it is an honest example of what imbalanced claim data does to headline metrics.

All case studies
Claim Processing Agent claim-submission form with a sample auto-insurance claim and the active pipeline status
Live demo Insurance

Claim Processing Agent

An agentic RAG system that validates an auto-insurance claim against policy records, retrieves the relevant policy language, checks the claimed repair cost against market estimates, and returns a structured, explainable coverage decision — through two interchangeable agent frameworks.

  • Agentic AI
  • RAG & retrieval
  • Evaluation & guardrails
Credit Decisioning review page showing the model's reasons and the eight notice-verification checks
Live demo Finance

Credit Decisioning

A calibrated credit model, notices written by code from a reviewed template, an independent eight-check verifier proven by mutation testing, and a human who makes the call. A read-only AI analyst explains cases — and code checks every number it states.

  • Evaluation & guardrails
  • Fairness & explainability
  • Machine learning
Cohort Risk & Review Lab home page showing the four-step flow from risk model to fairness audit to AI evidence agent to clinician decision
Live demo Healthcare

Cohort Risk & Review Lab

A calibrated risk model decides who is flagged, fairness is audited for every subgroup, an AI agent assembles the evidence, and a clinician makes every enrolment decision. It also reproduces how training on cost instead of illness burden skews who gets care.

  • Fairness & explainability
  • Agentic AI
  • Machine learning

Open to consulting, advisory roles and select projects.

Building AI that has to be right?

I help teams design systems with verifiers, guardrails and human review built in from the start — not bolted on after the demo.

Search zarreh.ai