Abstract: We investigate automatic geolocation (i.e. identification of the location, expressed as latitude/longitude coordinates) of documents. Geolocation can be an effective means of summarizing large document collections and it is an important component of geographic information retrieval. We describe several simple supervised methods for document geolocation using only the document's raw text as evidence. All of our methods predict locations in the context of geodesic grids of varying degrees of resolution. We evaluate the methods on geotagged Wikipedia articles and Twitter feeds. For Wikipedia, our best method obtains a median prediction error of just 11.8 kilometers. Twitter geolocation is more challenging: we obtain a median error of 479 km, an improvement on previous results for the dataset.
Introduction
Document geolocation—the task of automatically identifying the primary latitude and longitude coordinates of a text—is a critical component of modern geographic information retrieval. While humans can often infer location from context, automating this process typically involves complex metadata or computationally expensive latent-variable models. This paper demonstrates that simple supervised learning techniques, when paired with a discrete "geodesic grid" of the Earth, can geolocate documents with surprising accuracy using only their raw text.
Methodology
The core innovation of this approach is the use of geodesic grids to transform a continuous spatial problem into a discrete classification task. The Earth's surface is divided into square cells of equal degree (e.g., $0.1^\circ$ to $10^\circ$). Each cell is treated as a single document created by concatenating all training texts located within its boundaries.
Several Information Retrieval (IR) based methods were evaluated:
- Kullback-Leibler (KL) Divergence: The most successful method, which measures the similarity between the word distribution of a new document and each grid cell. It identifies the cell that provides the lowest divergence (best encoding) for the document's text.
- Naive Bayes: A standard generative model calculating the probability of a cell given the document's vocabulary.
- Average Cell Probability (ACP): A method that averages the global probability distributions of individual words in the document.
- Smoothing: Good-Turing smoothing was applied to handle out-of-vocabulary words by allowing models to "back off" to a global distribution.
Evaluation Datasets
The models were tested on two distinct datasets:
- Wikipedia: A clean, reference-heavy dataset of ~488,000 geotagged English articles.
- Twitter (GeoText Corpus): A noisier dataset of 380,000 tweets from the continental US. This task is significantly harder due to the "quotidian" nature of tweets, which often lack explicit geographic markers.
Performance Analysis
A key finding is that resolution matters significantly. There is a "Goldilocks zone" for grid size: if the grid is too coarse, accuracy is limited by cell size; if it is too fine, data sparsity prevents reliable word distribution modeling.
As shown in Figure 1, the KL divergence method consistently outperforms the others across various grid resolutions. For Wikipedia, the $0.1^\circ$ resolution proved optimal, yielding a median error of 11.8 km. On the sparser Twitter dataset, a coarser $5^\circ$ grid was required to achieve a median error of 479 km, which nonetheless outperformed contemporary latent-variable models.
Error Distribution and Insights
While median errors are low, mean errors remain higher due to specific challenges like the "Ship Problem." Articles about mobile entities (like ships) often describe a history of locations rather than a single point, leading to significant outliers.
Figure 5 illustrates the distribution of these errors. The KL Divergence model shows a much higher density of low-error predictions compared to the "Most Frequent Toponym" baseline, which simply picks the most mentioned place name. KL divergence's success is attributed to its non-symmetric nature, which weights specific landmarks mentioned in the document more heavily than background noise.
Conclusion and Future Work
This research proves that simple, scalable IR methods can match or exceed the performance of complex models in document geolocation. Future work may involve moving beyond the "bag-of-words" assumption to handle multi-word toponyms and incorporating non-textual data, such as Twitter follower graphs or Wikipedia link structures, to further refine spatial predictions.
Summary updated