Back to Blog
Research
November 26, 20267 min read

Cancelling Drone Drift by Matching the Camera to a Satellite Map

A bench test of GPS-denied navigation: visual odometry drifts to 188 m over a 4.5 km flight, but matching the camera to a stored satellite map pulls it back to 2 m. Run on the public MARS-LVIG dataset, graded against RTK.

A
AirCast Team
Author
Research
GPS-Denied
Visual Odometry
Computer Vision
Left: the drone's real camera. Right: the stored map, with the true path (green), odometry left on its own (red), and odometry corrected by map fixes (blue). The drift readout is live.

A drone that loses GPS can lose more than its map pin. It can lose the ability to hold position at all. GNSS is easy to jam and easy to spoof, and over contested ground it usually is. So a flight controller needs a second opinion on where it is, one that does not depend on a satellite constellation.

One answer has been under the aircraft the whole time: the camera. Watch the ground, track how it moves, and you get visual odometry, which is dead-reckoning from pixels. It is cheap and needs no outside signal, but like all dead-reckoning it drifts. Small frame-to-frame errors pile up until the estimate is hundreds of metres off. The fix is to check the view against a map you trust every so often. We stored a satellite image of the area before the flight and matched the camera to it. This post is that experiment, with the numbers.

This is a bench test, not an AirCast flight.

We did not fly this. We ran our pipeline offline on a public research dataset: MARS-LVIG (HKU MARS Lab), sequence AMtown01. It is a DJI drone with a downward camera, LiDAR and RTK, flown in a lawnmower survey at about 80 m over a town in Armenia. The RTK track is centimetre-accurate, so we use it only as ground truth to grade against. The navigation below never sees it. Satellite imagery is Esri World Imagery.

Two parts: odometry that drifts, map fixes that correct

Visual odometry. We track corner features from one frame to the next with classic optical flow (Shi-Tomasi and Lucas-Kanade), fit the rigid image motion, and convert pixels to metres using the height above ground. Integrate that and you have a path. It is pure dead-reckoning, with no AI and no map, and it drifts.

Map-matching. Every few seconds we take the current frame, rotate it north-up to match the satellite's orientation and scale, and match it against the stored tile with SuperPoint + LightGlue , a learned keypoint detector and matcher. A homography through the inlier correspondences gives an absolute position on the map, which resets the odometry's accumulated error to zero. The hard part is that the camera and the satellite were shot at different times, by different sensors, often in different seasons, and the corners of buildings and road junctions still have to line up. They do.

Drone camera frame rectified north-up, with correspondence lines to a satellite tile and a footprint box
One fix: the camera frame (left) rectified north-up, with 199 SuperPoint + LightGlue correspondences to the stored Esri satellite tile (right). The yellow box is where the camera lands on the map, about 7 m from the RTK truth here.

The result

Over the full 22-minute, 4.5 km survey, optical-flow odometry on its own ends 188 m from the truth. That is about 4.3% of the distance flown, which is ordinary for camera dead-reckoning. Feed it 121 real map fixes and the corrected track ends 2 m out, sitting on the RTK path for the whole flight. Every fix landed within 12 m of truth, the median was 7.2 m, and not one was a bad match.

NavigationError at endMean errorNeeds a signal?
Visual odometry only188 m194 mNo
Odometry + satellite map fixes2 m21 mNo
RTK GNSS (ground truth)n/an/aYes (jammable)
Satellite map of a town with three overlaid flight tracks: truth, odometry-only, and corrected
The whole 4.5 km survey. Green is RTK truth, red is optical-flow odometry left to run on its own, blue is the same odometry snapped by 121 map fixes (yellow dots). Blue sits on top of green; red walks away.

The honest limit: it needs something to look at

Map-matching only works where the ground has structure the satellite also recorded, like buildings, road junctions or field edges. The corrected mean error above is 21 m, not 2 m, because of the gaps. Twice the flight crossed open fields for up to 90 seconds with nothing matchable below. In those stretches there are no fixes, the drone is back on pure odometry, and the corrected track drifts about 100 m before the next town pulls it back. You can see it in the video as a slow wander followed by a snap.

That boundary is not a flaw to hide. It is the design rule. Map-matching bounds drift wherever there is structure, and between those places odometry and an IMU carry you. Feature-sparse terrain like open water, desert or fresh snow is where this approach is weakest, and where a flight would lean harder on inertial sensing between fixes.

Why we are looking at this

AirCast already puts a camera and a capable computer on the aircraft. A way to hold position when GNSS is denied, using hardware that is already there and a map downloaded before take-off, is worth understanding well. This is early research, run on someone else's dataset to keep ourselves honest. The next step is doing it with a forward or oblique camera instead of a perfect downward one, and on our own flights. We will write that up when we have it.

In the meantime, if you want a camera link on your own aircraft today, start with Start here, or see how we streamed 98 minutes of live video over 4G over the Alazani Valley.