← Shivani Radhakrishnan

NavAssist

Indoor navigation for blind and low-vision people on an ordinary iPhone. You walk a building once; after that it guides you back to any room by voice.

Role · Solo: design, iOS app, ML, evaluation When · 2024 – present Stack · Swift, ARKit, Core ML, Create ML, Kotlin, Python
26 → 6 cmmedian depth error on iPhones without LiDAR
0.99F1 for obstacles in the walking corridor, vs 0.57 before
79% vs 47%stairs found by my detector vs Apple's classifier
162tests across the Swift core and its Kotlin port, run on every push

The problem

GPS doesn't work indoors, so blind people often rely on memory, a cane and asking strangers to find a room in an unfamiliar building. Many indoor navigation systems need beacons installed in the building or a LiDAR sensor that only Pro iPhones have.

I wanted something that works on any recent iPhone, in any building, with no setup: say "save this place as kitchen" once, then later "take me to kitchen".

How it works

Architecture diagram: the iPhone app's camera, ARKit tracking, speech and haptics feed a platform-independent navigation core with the route graph, A* routing, guidance, stairs, voice commands and place matching.

The navigation logic is a separate Swift package with 83 tests that run on a Mac without an iPhone. I ported it to Kotlin (79 tests) as the first step towards Android.

The hard part: depth without LiDAR

To warn about obstacles you need to know how far away things are, in meters. Non-Pro iPhones have no depth sensor. A neural network like Depth Anything V2 can estimate depth from a single camera image, but only relative depth: it knows the chair is closer than the wall, not that it's 1.2 m away. Its scale also changes from frame to frame.

My idea: ARKit already tracks a few hundred 3-D points in every frame, with real distances, for its own motion tracking. I use those points as a ruler. Every frame, I fit the network's output to those points (a robust least-squares fit on inverse depth, dropping the worst 25% of points twice), then convert every pixel to meters.

Result

I measured it on the TUM RGB-D benchmark (137 frames with true depth from a Kinect sensor), running the same Core ML model and the same fitting code the app uses. The baseline uses one conversion for the whole sequence.

MethodAbsRel ↓Within 1.25× ↑Median error ↓
One conversion for the whole sequence0.17270.0%26 cm
Per-frame fit (NavAssist)0.07095.3%6 cm
Three indoor scenes. For each: the camera image, the true depth from a Kinect sensor, NavAssist's estimate, which looks almost the same, and a mostly dark error map.
Camera image, true depth, NavAssist's estimate, and the error. Errors are mostly at object edges and far away.
Line chart of median depth error by true distance. NavAssist's per-frame fit stays at a few centimetres up to 1.5 m, while the single conversion drifts badly beyond 2 m.
Within the 1.5 m range used for warnings, the median error is 2–4 cm.

Accuracy barely changes from 25 points upward, and holds up with 10% noise added to the points, which matters because real ARKit points are noisier than the benchmark's.

Fewer false warnings

The first version compared obstacles against a "floor ruler" in the image. In a home test, a basket beside the path kept triggering "obstacle ahead". With metric depth, the app's warnings agree far better with warnings computed from true depth:

ZoneNavAssist F1First version F1False alarms (new vs old)
Left0.890.5310 vs 26
Ahead0.990.570 vs 3
Right0.960.614 vs 25

When both found an obstacle ahead, the distance was within 1.5 cm of the true distance (median).

Doors and stairs

Apple's built-in image classifier often missed stairs, which is the most dangerous case. I trained my own door, door-handle and stairs detector with Create ML on 4,494 Open Images pictures. On 717 held-out pictures it finds stairs in 79% of the pictures that have them (precision 91%), against 47% for Apple's classifier, and doors in 71% against 38%. It runs in 8.9 ms per image and the model is 6.9 MB.

What didn't work (yet)

I also tried to predict when a user is about to hesitate or turn too early, so the app can step in ("Not yet, keep straight for 2 meters"). I trained two small models on 7 motion features from 10 Hz trip logs.

In simulation, the early-turn model ranks events well (AUC 0.83, against 0.40 for the weights I first set by hand). But at a false-alarm rate a user would tolerate, at most 1 per minute, it only catches 13% of early turns. Speaking 6 false warnings a minute isn't acceptable, so this stays off by default.

The simulation also caught a real bug: I computed speed from path length, so tracking jitter looked like walking and no hesitation was ever detected. Speed now uses net displacement.

Limitations and next steps

What I learned

Code on GitHub ↗ Full technical report ↗ ← Back to all projects