Abstract
Researchers have developed a highly scalable method to geolocate over 100 million Twitter users with a median error of 6.38 km. By framing geotagging as a Total Variation (TV) minimization problem over a social network of over a billion connections, the system accurately infers a user's "home" location based on the locations of their friends. This approach effectively geotags over 80% of all public tweets, providing a robust alternative to sparse GPS data and noisy language-based methods.
Introduction
Geographic metadata in social media is invaluable for tracking public health trends, predicting political outcomes, and coordinating disaster response. However, only a tiny fraction of users (typically less than 2%) share GPS coordinates or provide unambiguous location data in their profiles. Existing geolocation methods generally fall into two categories: language-based (analyzing text) and network-based (analyzing social ties). Language-based methods often struggle with noisy text and multi-lingual scaling, while network-based methods have historically lacked the global guarantees and scalability required for massive datasets. This paper addresses these challenges by applying convex optimization to a global social graph.
Methodology
Communicative Locality
The core insight of this work is communicative locality: the principle that people tend to interact most frequently with those who are geographically near them. To capture these genuine social ties, the authors constructed a "bidirectional @mention network" consisting of ~110 million users and ~1 billion edges. Unlike follower graphs, which can be skewed by celebrity accounts, reciprocated mentions represent active social connections.
Total Variation Minimization
Geotagging is framed as a convex optimization problem. The goal is to minimize the weighted sum of geodesic distances between connected users, subject to the known locations of a small subset of "ground truth" users. Because the TV functional is non-differentiable, the authors employed parallel coordinate descent. In each iteration, an unknown user's location is updated to the $l_1$-multivariate median of their neighbors' locations. This algorithm was implemented using Apache Spark to handle the massive scale of the graph.
Datasets and Evaluation
The study utilized a 10% sample of public tweets collected over two years, totaling nearly 77 TB of data. Ground truth was established using two primary sources: ~12.3 million users with consistent GPS coordinates and ~15.3 million users with unambiguous profile locations.
As shown in the figure above, the discrepancy between these two ground truth sources peaks at approximately 6-7 km, establishing a baseline for the expected accuracy of any geolocation method and validating the reliability of the evaluation set.
Key Results and Insights
- Massive Scale: The system successfully inferred locations for 101,846,236 users.
- High Accuracy: The median prediction error was 6.38 km, achieving 89.7% city-level accuracy, significantly outperforming state-of-the-art language models.
- Superior Coverage: While profile-based geotagging only covers about 20% of tweet volume, this network-based method allows for the geotagging of over 80% of public tweets.
- Confidence Filtering: The authors introduced a "dispersion" metric—the median absolute deviation of a user's friends' locations. This allows researchers to filter out users with globally scattered social circles, trading off coverage for even higher precision.
Limitations and Future Work
The current method is designed for static location inference (identifying a user's "home") and cannot track real-time travel or within-city movement. Additionally, users with very high activity radii (frequent long-distance travelers) remain difficult to tag accurately. Future research may explore more specialized graph processing frameworks like GraphX or Pregel to further optimize the parallel update process and potentially incorporate temporal dynamics.
Summary updated