UMAR SAYYAD
Predictive ML
Telematics Behavior Scoring
Transformed raw vehicle sensor data into driving behaviour scores that powered usage-based insurance pricing, real-time coaching, and actuarial risk models.
Designed and led the telematics ML pipeline at State Farm, processing billions of sensor events from mobile devices and OBD-II dongles into per-trip and per-driver behaviour scores. The scoring engine powered the Drive Safe & Save discount programme, real-time driving coaching, and actuarial risk segmentation across millions of policyholders.
Full stack
- Python
- TensorFlow
- NumPy
- AWS
- S3
- SageMaker
- PostgreSQL
- React Native
- Lambda
Capability Overview
Capability Overview
- End-to-end telematics pipeline processing billions of sensor events from mobile devices and OBD-II dongles into driving behaviour scores.
- Per-trip and per-driver scoring powering usage-based insurance discounts, real-time driving coaching, and actuarial risk segmentation.
- ML models trained on labelled driving events (hard braking, rapid acceleration, phone distraction, cornering) with GPS, accelerometer, and gyroscope fusion.
- Scoring engine serving millions of active policyholders with sub-second trip score delivery.
Telematics Behavior Scoring covers the ML pipeline that transforms raw vehicle sensor data into actionable driving behaviour scores. The system ingests accelerometer, gyroscope, and GPS data from mobile apps and OBD-II devices, detects driving events, classifies trip risk, and produces per-driver scores that feed pricing, coaching, and underwriting decisions.
The core challenge was signal quality. Mobile phone sensors are noisy, mounting positions vary, and distinguishing a hard brake from setting the phone down requires sensor fusion and careful calibration. The pipeline needed to produce scores accurate enough for actuarial pricing — scores that directly determined premium discounts for millions of policyholders.
Tech in this section
- Python
- TensorFlow
- AWS
Implementation Patterns
Implementation Patterns
- Sensor fusion combining accelerometer, gyroscope, and GPS into a unified vehicle-frame signal regardless of phone mounting position.
- Event detection classifying hard braking, rapid acceleration, phone distraction, and aggressive cornering from fused sensor streams.
- Trip scoring aggregating detected events into a per-trip risk score normalised by distance, road type, and time of day.
- Driver scoring computing a rolling per-driver score from trip history with recency weighting and confidence intervals.
The telematics pipeline used four core patterns. Sensor fusion was the foundation — raw accelerometer and gyroscope readings were rotated from the phone frame into the vehicle frame using orientation estimation, so the same hard-brake event produced the same signal regardless of whether the phone was in a pocket, a cupholder, or a dashboard mount.
Event detection ran a sliding-window classifier over fused sensor streams, detecting specific driving events: hard braking (deceleration exceeding threshold), rapid acceleration, phone distraction (gyroscope patterns consistent with phone handling while driving), and aggressive cornering. Each event was tagged with severity, duration, and location.
Trip scoring aggregated events into a per-trip risk score. Raw event counts were normalised by trip distance, road type (highway vs. urban), and time of day — three hard brakes in 100 miles of highway driving is different from three in 2 miles of city driving.
Driver scoring computed a rolling score from trip history with recency weighting — recent trips influenced the score more than older ones, so improving driving behaviour was reflected quickly in the discount.
Sensor fusion
Rotate phone-frame accelerometer and gyroscope readings into vehicle-frame coordinates using orientation estimation.
- Why this
- Phone mounting position varies wildly across users. Without fusion, the same driving event produces different signals depending on phone placement.
- What it cost
- Orientation estimation adds latency and can drift during long trips. Periodic GPS-derived heading corrections kept drift bounded.
- Python
- NumPy
Event detection
Sliding-window classifier detecting hard braking, rapid acceleration, phone distraction, and aggressive cornering from fused sensor streams.
- Why this
- Raw sensor data is too noisy for direct scoring. Detecting discrete events provides interpretable, actuarially meaningful features.
- What it cost
- Fixed thresholds miss vehicle-specific dynamics (a hard brake in an SUV differs from a sports car). Mitigated by vehicle-class calibration profiles.
- TensorFlow
- Python
Trip scoring
Per-trip risk score aggregating detected events, normalised by distance, road type, and time of day.
- Why this
- Event counts alone are misleading — a long highway trip naturally accumulates more events than a short city trip. Normalisation makes trips comparable.
- What it cost
- Normalisation penalises short trips where a single event dominates the score. Minimum-distance thresholds filtered out parking-lot trips.
- Python
Driver scoring
Rolling per-driver score from trip history with recency weighting and confidence intervals.
- Why this
- Drivers need incentive to improve. Recency weighting means better driving shows up in the discount quickly rather than being diluted by months of history.
- What it cost
- Recency weighting makes scores volatile for infrequent drivers. Confidence intervals widened for low-trip-count drivers, with conservative scoring until sufficient data accumulated.
- Python
Tech in this section
- Python
- TensorFlow
- NumPy
Architecture
Architecture
- Mobile SDK collecting sensor data at 25Hz during detected driving trips, batched and uploaded on trip completion.
- Cloud ingestion pipeline receiving trip uploads, running sensor fusion and event detection, and storing results in the trip data warehouse.
- Scoring service computing per-trip and per-driver scores on demand, backed by precomputed feature aggregates.
- Actuarial integration exporting driver scores to the rating engine for premium discount calculation.
The mobile SDK ran on iOS and Android, collecting accelerometer, gyroscope, and GPS data at 25Hz during detected driving trips. Trip detection used activity recognition APIs to start and stop collection automatically. On trip completion, the raw sensor data was compressed and uploaded to S3.
The cloud pipeline consumed uploads, ran sensor fusion to rotate into vehicle-frame coordinates, applied event detection models, and stored the detected events and trip metadata in the data warehouse. Batch processing handled the computational cost of sensor fusion — real-time scoring used precomputed features rather than re-processing raw sensor data.
The scoring service exposed per-trip and per-driver scores via API. Per-trip scores were computed on ingestion. Per-driver scores aggregated trip history with recency weighting and were refreshed after each new trip.
Tech in this section
- AWS
- S3
- Python
- TensorFlow
- PostgreSQL
Stack & Tools
Stack & Tools
- TensorFlow for event detection models trained on labelled driving events with transfer learning from vehicle dynamics research.
- AWS for the cloud processing pipeline — S3 for raw data, Lambda for event-driven processing, SageMaker for model training.
- PostgreSQL for the trip and driver score data warehouse with time-series partitioning.
- React Native mobile SDK for cross-platform sensor collection on iOS and Android.
TensorFlow powered the event detection models. The sliding-window architecture processed fixed-length windows of fused sensor data and classified them into event types. Transfer learning from vehicle dynamics datasets bootstrapped the models before sufficient labelled driving data was available.
AWS provided the processing infrastructure. S3 stored raw sensor uploads. Lambda functions triggered on upload for initial processing. SageMaker ran model training and batch scoring. PostgreSQL with time-series partitioning stored trip data, events, and scores.
Tech in this section
- TensorFlow
- Python
- AWS
- S3
- SageMaker
- PostgreSQL
- React Native
- Lambda
Industry Applications
Industry Applications
- Auto insurance: usage-based insurance pricing using driving behaviour scores to calculate premium discounts.
- Fleet management: driver safety scoring and coaching for commercial vehicle fleets.
- Mobility / rideshare: driver quality scoring for ride-hailing platforms using passenger-device sensor data.
Telematics scoring applies wherever driving behaviour needs to be measured and incentivised. The sensor fusion and event detection layers transfer directly; the scoring and business rules change by domain.
Auto insurance
- Problem
- Traditional rating factors (age, location, vehicle type) are poor proxies for individual driving risk. Good drivers subsidise bad drivers, and the insurer cannot differentiate.
- Approach
- Telematics behaviour scoring from mobile sensor data: sensor fusion, event detection, trip and driver scoring, feeding actuarial rating models for usage-based premium discounts.
- Impact
- 15% loss ratio improvement in the UBI book, 25% policyholder opt-in rate, 12% improvement in driver behaviour scores among coached users.
Tech in this section
- Python
- TensorFlow
Results & Evidence
Results & Evidence
- 15% loss ratio improvement in the usage-based insurance book compared to traditionally rated policies.
- 25% policyholder opt-in rate for the Drive Safe & Save programme within the first year.
- 12% average improvement in driver behaviour scores among users receiving real-time coaching.
- Sub-second trip score delivery after upload, enabling immediate in-app feedback.
The 15% loss ratio improvement validated the core hypothesis: driving behaviour scores are better predictors of claim risk than traditional rating factors. Policyholders scored as low-risk by the telematics model filed fewer claims, and the discount they received was more than justified by the reduction in losses.
The 25% opt-in rate was critical for programme viability. Opt-in telematics only works if enough policyholders participate. Privacy-first design (sensor data processed on-device where possible, clear data retention policies) drove adoption.
Loss ratio improvement
15%
Traditional rating factorsTelematics-based scoring
UBI book vs. traditionally rated policies over 12 months.
Policyholder opt-in rate
25%
First-year adoption of Drive Safe & Save programme.
Driver behaviour improvement
12%
Average score improvement among coached users over 6 months.
Trip score delivery
<1 second
Time from upload to score availability in the app.
Tech in this section
- Python
- TensorFlow
Portfolio Links
Portfolio Links
- State Farm Drive Safe & Save — the full portfolio case study covering the mobile app, telematics platform, and programme design that this scoring capability powers.
The Drive Safe & Save portfolio project covers the full programme architecture. This capability page focuses specifically on the ML pipeline: sensor fusion, event detection, trip and driver scoring, and the feedback loops that keep models accurate.
State Farm Drive Safe & Save
Unified a fragmented multi-framework ecosystem under one design system adopted by 60+ teams.
- Industry
- Insurance
- Role
- Principal Engineer / Architect
Tech in this section
- Python