Reliable Geofence Activation with Sparse and Sporadic Location Measurements: Extended Version

Kien Nguyen, John Krumm · DOI

TL;DR

This paper introduces a framework to reliably activate geofences even when location data is sparse or sporadic. By combining Gaussian Process location prediction with decision theory and Poisson-modeled measurement arrivals, the authors create an algorithm that "acts" on a geofence based on the probability of entry and the associated costs of missing it versus a false alarm.

What Problem Does This Paper Address?

Geofencing is a cornerstone of location-based services—think of getting a coupon when you walk near a Starbucks or a safety alert when entering a hazardous zone. Traditionally, these systems are "passive": they wait for a GPS coordinate to land inside a predefined boundary before triggering an action.

However, modern smartphones don't ping GPS constantly because it's a massive battery drain. Between privacy restrictions and signal loss (like in "urban canyons" or tunnels), location measurements often arrive sporadically. If a user moves quickly or the geofence is small, they might enter and exit the zone entirely between two GPS pings. The authors found that in a sample of 1,000 users, over half of their location points were separated by five minutes or more—plenty of time to "skip" over a geofence.

Methods

The authors propose moving from a "Passive Wait" approach to a proactive, probabilistic framework. Their method relies on three pillars:

  1. Probabilistic Prediction (Gaussian Processes): Instead of just guessing where a user is, they use Gaussian Processes (GPs) to create a probability distribution of the user’s future location. They specifically highlight a "GP + mean func" approach, where the model uses a linear extrapolation of the two most recent points as the "mean" path, which better captures short-term momentum than a standard zero-mean GP.
  2. Decision Theory (The Payoff Matrix): Not all geofences are equal. Missing a discount code (Advertising) is less critical than missing a "bridge out" warning (Alert-Zone). The authors use a payoff matrix to weigh the benefits of a correct activation ($\beta$) against the penalties of a "miss" ($\alpha$) or a false alarm ($\delta$). The system triggers an action the moment the expected value of acting exceeds the expected value of waiting.
  3. Poisson-Distributed Cutoffs: Prediction is computationally expensive. If the next real GPS measurement is likely to arrive soon, it’s better to wait than to keep predicting. The authors model the arrival of the next measurement as a Poisson process, allowing the device to calculate a "cutoff time" ($t^*$) to stop predicting and save battery.

Datasets

The study utilized location data from SafeGraph, a commercial aggregator.

  • Random Set: 1,000 randomly selected users to understand typical data frequency.
  • High-Density Set: 1,000 users with the most data points, which were then systematically subsampled (using a Bernoulli process) to simulate various levels of "sporadic" data (from one ping every 7.5 seconds to one every 4 minutes).
  • Evaluation: The final test set included 530 trajectories from 165 unique users, tested against a grid of up to 13,824 geofences.

Key Insights and Ideas

  • Probability > Certainty: You don't need to know a user is in a geofence to trigger it. If the cost of missing an alert is high enough (like in the Alert-Zone scenario), the algorithm will trigger even if the probability of entry is relatively low (e.g., 1/13).
  • Momentum Matters: Standard GPs often regress toward a mean of zero. By forcing the GP to use the user's current trajectory as the mean function, the predictions became significantly more accurate for the short-term windows (0–10 minutes) relevant to geofencing.
  • Principled Laziness: By modeling the probability of the next measurement, the system avoids "wasted computation." If there's a 90% chance a new GPS ping will arrive in the next 30 seconds, the model knows it can stop burning CPU cycles on predictions.

Key Results

The GP-based models consistently outperformed the "Passive Wait" (PW) baseline used by current iOS and Android implementations.

  • Alert-Zone Performance: In scenarios where missing an entry was heavily penalized, the GP models provided a massive "realized value" boost because they were willing to act on high-probability predictions rather than waiting for a "perfect" GPS hit that might never come.
  • Sampling Sensitivity: As data became more sporadic (lower $\lambda$), the gap between the authors' method and the baseline widened. The baseline's performance plummeted when measurements were minutes apart, while the GP model remained robust.
  • Efficiency: Using the Poisson cutoff, the system could suspend predictions after just ~0.4 seconds of computation for a typical window, making it viable for on-device mobile use.

Limitations and Future Work

  • Road Networks: The current model assumes "free-space" movement (as if the user is flying). Incorporating road network constraints would likely make the predictions much more accurate.
  • Moving Geofences: The paper focuses on static zones (stores, hazards). Future work could extend this to moving geofences (e.g., "trigger when I am within 1 mile of my friend").
  • Confidence Levels: The authors suggest exploring different trigger criteria, such as waiting until the probability of entry reaches a specific confidence threshold rather than just maximizing expected value.

Summary updated

BibTeX
@inproceedings{nguyen2022reliable,
  author = {Kien Nguyen and John Krumm},
  title = {{Reliable Geofence Activation with Sparse and Sporadic Location Measurements: Extended Version}},
  booktitle = {MDM},
  year = {2022},
  doi = {10.1109/mdm55031.2022.00026},
}
Figure