17

Portions of a hike I did recently involved me going through tunnels that had some twists and turns. How would these work with an app like AllTrails or another GPS tracker?

As I understand it, assisted GPS is able to keep track of where you're at, even when satellites aren't available, by using an internal gyroscope. I feel like this means that most GPS trackers that record routes should be able to work, similarly, even when being unable to connect to satellites?

8
  • 4
    Assisted GPS helps if you've got a mobile data signal, inertial navigation is something different. The latter is what you need
    – Chris H
    Mar 8, 2021 at 6:52
  • 2
    Thanks for accepting my answer, neubert. It is mostly advised to wait a bit longer before accepting an answer though, since this would incentivise others to also pitch in and would likely result in you getting more/better answers. --> Something to keep in mind for the next question. :)
    – fgysin
    Mar 8, 2021 at 8:28
  • @fgysinreinstateMonica - I unaccepted it and will reaccept whatever the best answer that gets posted in a day or two - thanks for the suggestion!
    – neubert
    Mar 8, 2021 at 9:08
  • 1
    If you're interested in some theory, Kalman Filters are a key technology here, they "merge" independent imprecise signals to obtain more precision, e.g. combine pure GPS with inertial navigation Mar 19, 2021 at 9:24
  • 1
    I'm working on indoor navigation for the visually impaired, a related problem, but I can't point to a commercial product ready for you to buy (yet). It could help those of us working on navigation aids for the visually impaired if we knew that there would be other uses for the navigation technology. Is navigation / tracking without the help of a GPS signal or beacon a problem worth $10 to a hiker? $100? Possibly more? The navigation techniques I know about beyond the inertial measurement techniques already mentioned are proprietary and/or work in lab conditions only.
    – Rethunk
    Mar 31, 2021 at 15:26

5 Answers 5

20

How would GPS trackers work when underground?

Poorly

I have no personal experience with Alltrails, but the GPS apps which I have used in the past mostly did not cope well with GPS reception being spotty. Generally this resulted in strange erroneous routes being tracked, with large jumps in between points where the device had a GPS signal. How bad this is for you depends on a lot of factors:

  • How clever your device/software is in interpolating the route between known GPS locations.
  • How obstructed the path actually is, i.e. how often the device might still get a somewhat accurate GPS fix.
  • How important it is for you to accurately track the underground parts of your hikes. E.g. does your underground route-finding, i.e. safety, depend on it?!

The actual solution to your underground navigation problem is called Inertial Navigation, and is able to function completely without contact to any satellites. I am, however, not aware of any consumer-level products in this regard. Caving itself is a rather specialised undertaking, and navigation in/mapping of caves remains, as far as I know, rather involved and technical.

7
  • 5
    You're right (+1), but don't go far enough: In a cave you'll get nothing from GPS. I often ride through (straightish) tunnels, and typically you get a few dodgy data points near the entrance, then nothing at all until after you're out again for long enough to pick up a signal. Most mapping apps would link those with a straight line, like this ride segment.
    – Chris H
    Mar 8, 2021 at 10:08
  • 1
    Inertial navigation will become useless after some time (due to accumulating offset errors). How long is this time? Mar 9, 2021 at 2:28
  • 6
    @PeterMortensen That depends greatly on the quality of the gyroscopes & accelerometers on the one side, and the specific movement pattern of the device. So that would always be user-dependent. But wikipedia has this to say: "Even the best accelerometers, with a standard error of 10 micro-g, would accumulate a 50-meter error within 17 minutes."
    – Mr47
    Mar 9, 2021 at 8:04
  • @PeterMortensen however, those accelerometers are far too big and expensive to take in a hike
    – Hobbamok
    Mar 9, 2021 at 8:27
  • Many, if not most, smartphones will use inertial navigation to complement data from GPS (which they actually use quite rarely) and Wi-Fi/cellular trilateration. But that's only a complement, as inherent drift means they need to get their actual position from other means quite often.
    – jcaron
    Mar 9, 2021 at 18:15
16

Assisted GPS is different from inertial navigation. It uses ground stations to transmit GPS almanacs and ephemeris for faster GPS start-up. There are also wide-area augmentation services such as EGNOS which work in a manner similar to differential GPS to improve accuracy by transmitting positioning signals from ground stations. Needless to say, both of these require reception of radio signals, which won't happen underground.

No handheld GPS receivers that I know of include an Inertial Measurement Unit (IMU), probably due to expense and conflict with the desire for long battery run-times. Usually an IMU has a tendency to long-term drift (they work by integrating accelerations) and benefit from at least periodic correction from GPS fixes. Without correction, you'll become increasingly inaccurate over time.

The best way to track your location underground is the traditional way, by plotting timestamps in pencil on your survey.

For making cave surveys, we also use traditional techniques - trigonometric survey created by measuring bearing, inclination and distance from station to station. There are electronic devices for the actual measurement, though ordinary compass, clino and tape are often preferred for their robustness.

Some people are experimenting with drone-based mapping, combining a drone's IMU and laser-scanning to generate point clouds which then subsequently become the "anchor" for the next bit of survey and so on. That's not in regular use for cave survey (and it does require enough room for a drone to manoeuvre, so only suited to large chambers) but is an interesting technology to watch. At present, it requires a lot of number-crunching back home to post-process the data, but it's conceivable that one day, real-time cloud-point surveying will become feasible.

9
  • 1
    @Nobody, no I'm not sure (hence the qualifier "that I know of". If you happen to know some counterexamples, it would be great to hear about them and how they perform. (I love being wrong - that's when I get to learn!) Mar 9, 2021 at 7:26
  • 1
    It looks like you can buy IMUs with GPS, but they're over £600 and you may still need to do a lot in terms of software (plus carry a laptop)
    – Chris H
    Mar 9, 2021 at 13:40
  • 1
    @Chris It's a steep-sided bealach (though I'm not sure it's actually Beinn Fhada - I think it might be the one just north of Beinn a' Bhealaich) where there's nowhere near enough view of satellites. Yes, it's frustrating that (like last year) I'll not be getting any visitors Mar 9, 2021 at 13:41
  • 1
    Not quite consumer, and I'm no expert so would have to put some effort into working out capabilities, but: omniinstruments.co.uk/gyros-accelerometers-imu-s-tilt-sensors/… (specs seem suitable at a glance, going by the papers I've skimmed)
    – Chris H
    Mar 9, 2021 at 13:43
  • 1
    My unfinished comment was going to be "not be getting any visitors before the midges are out." That said, kayaking and caving are the usual options to avoid the little buggers. Mar 9, 2021 at 13:58
7

GPS and similar technologies do not work at all underground, they can be blocked fairly effectively by dense tree-cover or being deep in a valley, even with clear views of the sky. Any thickness of rock will be impenetrable by the radio waves used to communicate with the GPS satellites.

Inertial guidance technology is improving, particularly with the advent of sports watches, but these generally need at least occasional reception from the GPS and/or regular stride patterns (e.g such as when walking, not something you often come across underground) for them to estimate the route with any degree of accuracy.

The simplest solution, and one that has been known and used for thousands of years is... a string/rope. This sort of thing is what cave surveyors actually use. Needs to be long enough for your purpose and strong enough that it doesn't snap easily. There's things like distance thread measures (e.g. this one) used in forestry that pull out a cotton thread up to 2.5 km (~1.5 mi), which would work pretty well for short non-critical distance - the devices aren't cheap, but I am fairly sure you could hold the thread spool in your hand or dangle it from a pack and have it unspool. The real risk here is that the thread breaks and you wander off without noticing that you are dragging a broken string, thereby separating the ends and leaving you none the wiser as to where you are.

3
  • 2
    It's a very long time since I've seen a survey chain used in cave surveying - we mostly use open-reel tape measures or laser disto these days. Mar 8, 2021 at 12:19
  • @TobySpeight - good to know, not being a speleologist myself. I was more meaning for marking a route rather than actually measuring something, just to make sure you don't get lost.
    – bob1
    Mar 8, 2021 at 19:54
  • 1
    That's not often an issue in caves, but I have used a long nylon string as marker when conducting a search in old mines (which do tend to look very uniform). If you do that, it's important to be clear which way is "in" and which is "out"! Mar 8, 2021 at 20:32
4

As others have stated, the way to keep track of your position when you can't use GPS is inertial navigation, also known as dead reckoning. This uses various sensors, such as accelerometers, magnetometers and gyroscopes, which form an IMU (inertial measurement unit).

The issue is that it is by definition subject to drift (so with time the estimated position can get further and further away from the actual position), and that it's even more complex on a hand-held device such as a mobile phone as opposed to a car.

On a car, you can get (if the GPS is properly wired into the car system) two bits of information that are quite handy:

  • The orientation of a car (from a magnetometer which is basically an electronic compass)
  • The distance traveled (by counting wheel turns and knowing the wheel size -- this is how your mileage counter works).

Each wheel turn, you add the size of perimeter of the wheel to your previous position in the direction of the orientation of the car.

This can give you a pretty accurate result. You will get slightly off if you turn a lot (or if the tire size doesn't match!), but the error should remain quite manageable.

If your GPS cannot get the wheel turns information (i.e. it's an add-on device, not wired into the car), then it get slightly more tricky, as you can't directly get a distance traveled. Instead, you rely on accelerometers, which will give you... acceleration (it's the only thing you can measure directly).

From acceleration, by integration, you can get speed: if you start at 0 m/s and measure a constant 1 m/s^2 acceleration, after one second your speed is 1 m/s, after 2 seconds it's 2 m/s, and so on. If acceleration drops to 0, then the speed remains constant.

From speed, you can get distance traveled via the same mechanism. Double integration means that your position is based on the square of elapsed time (x = x0 + 0.5.a.t^2 if acceleration was constant). This means that even a slight error in measurement of acceleration will quickly grow to become a quite large error in the measurement of distance travelled. To minimise error, you need to have the lowest possible error in measurement (better sensors), and perform measurements as frequently as possible (we're talking fractions of a second).

With this, it's still possible to get a decent estimate, especially as a car doesn't (usually) swerve around a lot, or have lots of variation in acceleration. The magnetometer being fixed in the car means that it can tell you quite precisely where the car is headed.

However this all goes awry when you consider a mobile phone. You have it in your hand. Try as you may, you will at the very least bounce it slightly left and right and up and down as you walk. You probably don't have a constant speed either, so you'll also impart a slight acceleration front and back. This means acceleration changes a lot in all 3 axes. Orientation as well.

This results in a lot more difficult measurement, will lots of errors, especially if you don't sample acceleration and orientation and rotation often enough. Modern IMUs will do that all inside the chip to try to get the best estimate possible, but that's a pretty difficult task.

Wikipedia reminds us that maths dictates that:

To get a rough idea, this means that, for a single, uncorrected accelerometer, the cheapest (at 100 mg) loses its ability to give 50-meter accuracy after around 10 seconds, while the best accelerometer (at 10 µg) loses its 50-meter accuracy after around 17 minutes.

And that's just based on pure acceleration, not even taking into account rotation of the phone.

Not all phones are created equal in that respect, and some will have better performance than others (because they have more recent, more expensive IMUs with less errors, higher frequency), but in any case, it won't (and can't) give you a precise position for a very long time: they need to be frequently re-synchronised to their actual position through other means (GPS or Wi-Fi/cellular trilateration).

2

To supplement @fgysin answer:

Modern smartphones contain enough sensors (acceleration, gyro, compass) to do inertial navigation.

These sensors are not of a great precision, so I think the integration errors will accumulate quickly.

Searching for "inertial navigation app" gives some results that pretend to do the thing.

I am really curious and will try some time soon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.