Supervised Project · Shenkar · Software Engineering

NavSight

Beyond GPS: precision navigation on a smartphone when conventional GPS positioning is unavailable or unreliable.

2026Roey Ben Harush · Tamir Sobuh · Morad ZubidatVisual-inertial odometryHMM map matchingSmartphone navigationOutstanding Final Project · Shenkar, 2026
91–93%travelled-distance accuracy
≤3.5%median moving-speed deviation
15.4 msmedian tracking cost per frame
13 / 13system tests passing
Problem

Navigation without relying on GPS.

Satellite positioning can be disrupted or unavailable. NavSight is an engineering capstone about precision navigation under that kind of GNSS (satellite navigation) disruption, running on a smartphone.

It was developed and validated in Haifa during persistent, wide-area GNSS jamming, when the phone's own GPS inflated a measured 1,280 m route by 33% and, on other rides, froze for 61 seconds while moving. The design question was whether the camera and inertial sensors alone can keep a rider on the right road.

Approach

  • Smartphone-based navigation
  • GPS-denied environments
  • Visual-inertial odometry
  • HMM map matching, decoded with Viterbi

Recognition

Outstanding Final Project, Shenkar, 2026.

System architecture

Camera, inertial sensors and on-device map matching in one pipeline.

The rear camera and IMU feed a native C++ visual-inertial core. Its motion estimate is constrained to an OpenStreetMap (OSM) road graph by a hidden Markov model (HMM) map matcher, and the matched position is shown to the rider.

NavSight system architecture diagram from the public project repository
The project's architecture connects smartphone camera and IMU capture to a native visual-inertial core and on-device road-network map matching. Select the image to open it full size.
Visual-inertial estimation

Two sensors that cover each other's weaknesses.

An inertial sensor is smooth between frames but drifts when integrated; a camera observes motion directly but fails when frames blur or the scene lacks texture. NavSight fuses them in an error-state extended Kalman filter (EKF), which estimates the small errors of a running pose estimate rather than the pose itself.

Visual front end

Frames from the rear camera are contrast-normalized, skipped when too blurred, and tracked with pyramidal Lucas–Kanade (KLT) optical flow on Shi-Tomasi corners. A RANSAC geometric check discards outliers such as passing cars.

Fusion

Accelerometer and gyroscope samples are preintegrated between frames. The filter adds multi-state constraint (MSCKF) updates for tracked features and self-calibrates the camera–IMU time offset and mount rotation. Heading is gyro-primary, with a gated compass correction.

Metric speed

A single camera has no scale, so the road is treated as a plane at a calibrated camera height; optical flow over it converts directly to metres per second. A two-sided vote and zero-witness rule reads a true standstill as exactly 0 km/h, and a bounded inertial bridge (trusted for at most 6 s) carries speed through short visual dropouts.

Rear-camera frame of a road with green and red optical-flow arrows over the road surface.
A rear-camera frame from a validation ride. Green arrows are the reference motion of road-texture points; red arrows are the production tracker's measurement of the same points. Select the image to open it full size.
HMM map matching

Choosing the most likely road, not the nearest one.

Visual-inertial odometry is smooth but drifts, mostly sideways. A rider is almost always on a known road, so NavSight uses the road network as a constraint. Continuously, an on-device matcher based on Newson and Krumm (2009) takes a short window of recent trajectory points and decides which roads they most likely follow.

Hidden states and emission

Every road segment within about 30 m of a trajectory point is a candidate state. The emission score rewards candidates that fit the observed position: the closer the point is to the road, the higher the likelihood, using a deliberately wide Gaussian on perpendicular distance to absorb drift and map offset.

Transition

Between consecutive points, a pair of candidates scores well when the distance between their positions on the roads matches the distance actually travelled. Small bonuses favour staying on the road already being followed, which stops the match hopping to a parallel street on every wobble.

Why Viterbi

The Viterbi algorithm finds the single most likely sequence of road states across the window, not the best road for each point on its own:

best road sequence = argmax Σ ( log emission + log transition )

Snapping each point to the geometrically nearest road is memoryless. Near parallel or crossing roads it flips to whichever segment is momentarily closer. Because the decoded sequence must be both close to the observations and consistent with the distance moved, one noisy point cannot pull the match onto a neighbouring road.

The displayed position then advances along the road graph at the estimated speed, and at a junction takes the branch whose direction best matches the heading change measured by the gyroscope. In normal operation it moves only along graph edges, so the displayed position stays on the road network instead of drifting off it; a wrong match is corrected by a confident re-match rather than a sudden jump (see limitations). Matching removes lateral and topological error; along-track distance still comes from the speed estimator.

Map-matched NavSight track on a curved road, coloured by time, with start and end markers.
NavSight's matched position over the full Route A ride, coloured by time. The track stays on the road, and the return leg after the U-turn re-traces the same road. Select the image to open it full size.
On-device operation

No satellite signal or network in the positioning loop.

Positioning, map matching and routing run on the phone. GPS supplies at most one bootstrap fix to georeference a session and is otherwise used only as a validation reference.

The road geometry around the rider comes from OSM: fetched once, cached on the device, and queried locally through a segment index, so previously visited areas work with the radio off. Destination search uses an Israel-wide place index shipped inside the app. The visible base map is a separate display layer that still uses Google Maps; the matched position does not depend on it.

Engineering details

  • Android application with C++ visual-inertial core
  • Camera + accelerometer + gyroscope
  • Error-state EKF and MSCKF updates
  • Offline OpenStreetMap road graph (cached on device)
  • Deterministic replay harness for validation
Validation

Measured on real urban rides under GNSS disruption.

Rides on a Samsung Galaxy S21 Ultra were scored against two independent references: a route measured on a map, which jamming cannot affect, and GPS screened for per-ride health.

Distance

Travelled-distance accuracy of 91% to 93%. On Route A the jammed GPS reported 1,705 m on a 1,280 m route (+33%), while NavSight integrated 1,195 m (93.4% of the map-measured distance).

Speed

Median moving speed within 3.5% of the reference (36.3 vs 35.1 km/h on the primary ride). At a standstill the estimate never exceeded 0.9 km/h and the display read exactly 0.

Tests

13 of 13 system test cases pass, backed by a deterministic desktop replay of the same C++ engine on recorded rides.

Real-time cost

Median per-frame visual tracking cost is 15.4 ms against a 200 ms real-time budget.

Line chart of speed over time comparing NavSight with the GPS reference.
Speed over time on the primary ride: NavSight's 5-second mean against the GPS reference, with implausible GPS samples marked. The report gives an RMSE of 8.9 km/h and a median moving speed of 36.3 vs 35.1 km/h. Select the image to open it full size.
Limitations and tradeoffs

What the system does not claim.

Scale depends on calibration

Speed relies on the calibrated mount height; a badly wrong height skews it proportionally until recalibrated. Only one device (the Galaxy S21 Ultra) was validated, and other phones need their own camera calibration.

The camera must see the road

In extreme darkness or with the view blocked, speed falls back to the inertial bridge for at most 6 s and then decays, rather than drifting silently.

Wrong roads are not teleported away

If the match diverges onto a wrong road, the display waits for a confident re-match instead of jumping. An aggressive re-acquisition mode exists but ships disabled until it is validated on a device.

Map data and region

The first visit to an area needs connectivity to cache road data, and the base map is still drawn with Google Maps. Validation covered rides in Haifa.

Project materials

Final report and public repository.

The student final report, and the public repository with source code, architecture documentation and validation assets.

Supervised project

Engineering capstone, Shenkar Software Engineering, 2026.

Built by Roey Ben Harush, Tamir Sobuh and Morad Zubidat.