Telematics product

Scoring driver risk on the phone instead of in the cloud

A telematics product moved its sensor math onto the device, so scores arrive when the trip ends and the phone is not streaming raw data the whole drive.

The situation

A telematics product needed driver risk scores that insurers could use for pricing and vetting. The first approach streamed raw sensor data to the cloud and scored it there.

That cost battery, because the phone was sending data constantly. It cost money on every active mile. It also broke in patchy coverage, and scores arrived long after the trip ended.

Drivers noticed the battery drain and some uninstalled the app. The business needed the scoring to move closer to the sensors.

What we did

  1. 01

    Moved the filtering onto the device

    We wrote the mathematical filtering that cleans raw accelerometer and gyroscope signals so it runs locally. Noise is removed before anything is stored or sent.

  2. 02

    Detected the events that matter

    The engine picks out harsh braking, rapid acceleration and cornering from the filtered signal, and judges each against safe margins.

  3. 03

    Turned events into a risk score

    Detected events roll up into a trip score and a driver profile on the phone, so the result does not wait on a server.

  4. 04

    Synced one small digest per trip

    The phone sends a compact trip summary once per trip. That score feeds the insurer's pricing and underwriting layer.

  5. 05

    Brought the old codebase up to date

    We moved the legacy Android code to a current target API level and tightened the R8/ProGuard rules, which also shrank the app.

What changed

  • Scores are ready when a trip ends, with no cloud delay.
  • The phone sends far less data, so battery and cellular use dropped.
  • Scoring still works when coverage is patchy, since it runs locally.
  • The legacy codebase now targets a current Android API level and ships smaller.

Stack

  • Android
  • On-device sensor processing
  • Accelerometer and gyroscope
  • R8 / ProGuard