All work

Vehicle pre-inspection for a large general insurer

A self-serve inspection a first-time customer finishes in about 6–7 minutes on their own phone, replacing inspector site visits.

Company
Anaira AI
Year
2026
Role
Senior Software Engineer. Built the capture app, upload pipeline, insurer dashboard, reports and SDK.
Domain
Insurance, AI, Edge AI

The problem

Before a motor policy is issued, someone has to inspect the vehicle. For one of India's largest general insurers that meant sending an inspector on site, billed at ₹20 per km, with photos kept on the inspector's own phone. Slow, expensive and hard to audit.

Try it

cut the network mid-upload

Ready to upload 12 video chunks.

A simulation with sample data, built for this page.

AI on the phone, during development*

Front of a car with boxes and confidence scores for each part the on-device model found: 9 parts in 264 msRight side of a car with boxes and confidence scores for each part the on-device model found: 12 parts in 207 ms

* Development build, not what customers saw. The detection and segmentation models ran in the browser on the phone, and we used this view to check their results in real time while tuning them. The car is mine and the number plate is blurred.

How it works

  1. 1Link
  2. 2Permissions
  3. 3Guided capture
  4. 4Chunked upload
  5. 5OCR + damage AI
  6. 6Insurer review
  7. 7Report

Architecture

  1. Customer's phone

    • Capture app (React)
    • IndexedDB upload queue
    • Service Worker uploader
    • On-device image checks (ONNX / TF.js)
  2. Chunked uploads over presigned URLs

    AWS

    • S3 (photos and video)
    • FastAPI backend
  3. Processing

    • RC and odometer OCR
    • Damage detection
    • Validation
  4. Insurer

    • Review dashboard (React on S3 + CloudFront)
    • Inspection report
    • SDK for insurer apps

What I built

  • Mobile-web capture app: link validation, camera, mic and location permissions with retry, and guided capture of RC, odometer, VIN/chassis, exterior and damage, with continuous audio/video recording.
  • Voice instructions, landscape mode, zoom, notch handling and Android exposure/metering fixes, tuned for low-end phones on both Android and iOS.
  • On-device checks: an edge model spots missing car parts and asks the customer for those shots before they submit.
  • Backend integration for RC/odometer OCR, AI damage detection, validation and the inspection report (image flow, butterfly view, HTML report).
  • Insurer dashboard (React/Vite on S3 + CloudFront, FastAPI backend) for review, verification and decisions, plus an SDK so insurers can embed the flow in their own apps.
  • Observability with Axiom and Sentry, traced end to end by inspection ID.

The hard parts

Uploads that survive real networks

Customers record on ~1 Mbps connections and get interrupted by calls, dead batteries and dropped signal. Every file is queued in IndexedDB (Dexie) and uploaded by a Service Worker in concurrent S3 chunks with retry and resume. Expired presigned URLs are refreshed, recording drops from HD to SD when the network is weak, and submit stays locked until every mandatory upload has landed.

Image quality checks that don't drain the phone

A cheap Laplacian blur/sharpness check runs first; the pretrained model (ONNX Runtime / TensorFlow.js) only runs when that check can't decide. That keeps CPU and battery cost low on budget devices.

Camera behaviour across devices

Permission prompts, autoplay limits on voice prompts, exposure on Android and safe areas on iOS all behave differently per device, so each one needed its own fallback and retry path.

How I kept it working

  • Capture-to-submit flow covered by Playwright end-to-end tests.
  • Sentry and Axiom telemetry on every step, traced by inspection ID, so a failed upload on one customer's phone can be followed end to end.

Outcome

The insurer's feedback on the UX was consistently positive. An ML engineer owned the models; I owned everything the customer and the insurer touch.

Stack

  • React
  • TypeScript
  • Service Workers
  • IndexedDB / Dexie
  • ONNX Runtime
  • TensorFlow.js
  • FastAPI
  • AWS S3
  • CloudFront
  • Sentry
  • Axiom