Measuring road qualityfrom the phones in passing cars.
Phones in ordinary vehicles find road damage and estimate roughness as they drive. I was the lead engineer across the app, the on-device model, the backend and AWS.
- Product
- InnoMob
- Domain
- Smart mobility · road analytics
- Client
- Intellisync
- Role
- Lead Engineer · contract
- When
- Dec 2024 – Jun 2025
- Scope
- Mobile, wearables, backend, cloud
- Model
- YOLOv11 on TensorFlow Lite
A road survey that happens while people drive
Road condition is usually measured by specialised survey vehicles, so most roads are checked rarely. InnoMob uses phones in ordinary vehicles instead. Each drive becomes a trace of position, motion and camera detections, and repeated passes over the same road build up a picture of every segment. It's meant for monitoring a whole network and deciding where to look closer, not for replacing reference profilometers.
Detecting road damage on the phone
Damage detection runs entirely on the device, inside the camera's frame processors on both Android and iOS. I integrated a YOLOv11 model exported to TensorFlow Lite in FP16, FP32 and INT8-quantised variants, and built the pipeline around it: letterbox preprocessing, input quantisation, parsing the model's output heads and our own non-max suppression. It uses the GPU delegate where it can and falls back to NNAPI, then XNNPACK on the CPU.
- All eight RDD2022 classes, not only the four scored in the challenge
- Longitudinal, transverse and alligator cracks, potholes
- Construction-joint cracks (D01, D11) and worn crosswalks and lane markings (D43, D44)
- Non-max suppression at IoU 0.45, confidence threshold 0.2
“A phone's accelerometer records the car as much as the road. Most of the work is separating the two.”
Turning accelerometer noise into a roughness estimate
A phone's accelerometer records the car as much as the road, so the analytics pipeline does a lot of cleaning first. It band-pass filters the signal with a Butterworth filter, rotates it into world-vertical acceleration with the device's orientation quaternion, estimates the power spectral density with Welch's method and fits a power law to classify the segment under ISO 8608. It also estimates IRI with several independent estimators so they can be checked against each other.
- Speed, vehicle dynamics and mounting all change the readings
- Estimates are aggregated per segment across repeated passes
- GPS traces map-matched to OpenStreetMap with Valhalla and PostGIS
- A three-stage batch pipeline rolls metrics up from daily to all-time
- Heart-rate variability and abrupt-braking detection alongside
One app, two watches, a lot of sensors
I built the mobile app in React Native and Expo with TypeScript, with native modules in Kotlin and Objective-C++ for the camera frame processors. Sensor readings go through a Kalman filter, live charts and the speedometer are drawn with Skia, and telemetry is published over MQTT. Companion apps on Wear OS in Kotlin and watchOS in SwiftUI stream heart rate over BLE, using Health Connect and HealthKit, so driver physiology can be lined up with the road.
From the car to the map
Telemetry goes from the phone over MQTT (EMQX) to a recording API and into PostgreSQL with PostGIS. I designed the two FastAPI services, one for recording and one for results, with a hexagonal structure, async SQLAlchemy 2 and Pydantic v2. Around them are Redis caching, MinIO or S3 storage, JWT auth with argon2, and OpenTelemetry and Prometheus. The results feed a React and Leaflet dashboard and generated PDF reports.
- AWS in Terraform: Elastic Beanstalk, RDS, ElastiCache, S3 and networking
- The full stack runs locally in Docker Compose, Valhalla included
- GitHub Actions for CI/CD, EAS for mobile release builds
- A prototype of roadside 'smart pillars' on Redis Streams that pass braking alerts to their neighbours
The part that had to be true is the whole chain. A model on a phone in a moving car finds a pothole. That same drive becomes a roughness number for one road segment. The segment shows up on a map and in a PDF. Each of those was a separate mess. They had to agree.
Technologies
React Native, Expo, TypeScript, Kotlin, Objective-C++, SwiftUI, TensorFlow Lite, YOLOv11, Python, FastAPI, NumPy / SciPy, PostgreSQL, PostGIS, Valhalla, MQTT (EMQX), Redis, React, Leaflet, AWS, Terraform, Docker