A Practical Guide for the Effective Evaluation of Twitter User Geolocation

Ahmed Mourad, Falk Scholer, Walid Magdy, Mark SandersonarXiv 2019 · DOI · arXiv

TL;DR

This paper exposes how inconsistent evaluation metrics and population biases in Twitter user geolocation research lead to contradictory and misleading conclusions. To fix this, the authors introduce a standardized evaluation framework, benchmarking 15 models across 10 different metrics and proposing a tailored suite of statistical significance tests.

What Problem Does This Paper Address?

Geolocating Twitter users—determining their home location based on their tweets—is crucial for applications like tracking disease outbreaks, managing natural disasters, and local journalism. However, the field suffers from an evaluation crisis.

Different researchers use entirely different metrics (e.g., raw accuracy, accuracy within a 100-mile radius, or median error distance) and disparate "earth representations" (discrete cities, uniform grids, or administrative polygons). Furthermore, because Twitter’s terms of service only allow sharing tweet IDs, datasets suffer from "data decay" over time as tweets are deleted, making direct comparisons across papers nearly impossible. Finally, social media data is heavily biased toward densely populated urban areas, meaning a model can look highly accurate overall simply by guessing "New York" or "London" repeatedly, while failing miserably in rural areas.

Methods

The authors propose a standardized evaluation protocol to ensure fair, apples-to-apples comparisons:

  1. Unified Output: All model predictions are converted to raw GPS coordinates.
  2. Single Reverse-Geocoding: A single online reverse-geocoding API maps these coordinates to administrative levels (city, county, state, country) to eliminate representation bias.
  3. Multi-Metric & Multi-Granularity Analysis: They evaluate systems using 10 metrics (including continuous distance errors and discrete micro/macro precision, recall, and F1-scores) across 4 geographic granularities.
  4. Rank Correlation: They use Kendall’s $\tau_B$ to measure how consistently different metrics rank the same set of systems.
  5. Micro vs. Macro Significance Testing: They introduce a suite of parametric (t-test) and non-parametric (sign test, Wilcoxon) tests specifically chosen to handle the skewed category distributions inherent in geographic data.

Datasets

The study evaluates two distinct sets of systems:

  • LOCAL Models: Four text-based geolocation models (including Linear SVM and Naïve Bayes variants) and two baselines trained on TwArchive, a global collection of English tweets from 2014 (~1.5 million users, ~3.1 million tweets).
  • W-NUT Models: Eleven submissions from the 2016 W-NUT shared task on user geolocation, allowing the authors to test their evaluation framework on external, state-of-the-art ensemble and neural network models.

The historical landscape of datasets and metrics used in the field is summarized in the paper's literature review:

An overview of past work on evaluation metrics and datasets

Key Insights and Ideas

  • Earth Representation Dictates Distance Metrics: Grid-based models naturally achieve lower error distances simply because their predictions are calculated from the center of a cell. This makes distance-based metrics (Mean/Median error) highly biased toward specific model architectures rather than actual accuracy.
  • The Urban Bias Blindspot: Standard accuracy and micro-averaged metrics are dominated by high-population urban centers. Switching to macro-averaged metrics (which treat every location equally) reveals a massive drop in performance, proving that current models struggle significantly outside major cities.
  • The Majority Class is Surprisingly Strong: At coarse granularities like the country level, a simple baseline that always predicts the most frequent location (Majority Class) frequently outperforms complex machine learning models.

Key Results

  • Contradictory Rankings: Rank correlation analysis showed a weak agreement when ranking models across different granularities (city vs. country). A system judged "best" at the city level was often not the best at the country level.
  • Statistically Significant Disagreements (SSD): The authors found that different metrics could lead to statistically significant but completely contradictory conclusions. At the city level, metrics actively disagreed on system superiority up to 10.9% of the time.
  • Macro vs. Micro Disparity: For the LOCAL models, the Linear SVM achieved the best accuracy at the city level (14.5%), but a Naïve Bayes approach (Hn14) performed vastly better under macro-precision, highlighting how standard accuracy masks poor performance on low-frequency locations.

Limitations and Future Work

The primary limitation is that this study focuses strictly on text-based geolocation methods. It does not extend the standardized evaluation framework to network-based approaches (which rely on user followers/mentions) or deep-learning hybrid models. Network-based models introduce unique evaluation challenges, such as "user coverage" (the percentage of users a model can actually predict given sparse social ties).

For future work, the authors plan to investigate geolocation evaluation analytically and collaborate with domain experts (like humanitarians and journalists) to tailor evaluation metrics to specific real-world tasks.

Summary updated

Abstract

Geolocating Twitter users---the task of identifying their home locations---serves a wide range of community and business applications such as managing natural crises, journalism, and public health. Many approaches have been proposed for automatically geolocating users based on their tweets; at the same time, various evaluation metrics have been proposed to measure the effectiveness of these approaches, making it challenging to understand which of these metrics is the most suitable for this task. In this paper, we propose a guide for a standardized evaluation of Twitter user geolocation by analyzing fifteen models and two baselines in a controlled experimental setting. Models are evaluated using ten metrics over four geographic granularities. We use rank correlations to assess the effectiveness of these metrics. Our results demonstrate that the choice of effectiveness metric can have a substantial impact on the conclusions drawn from a geolocation system experiment, potentially leading experimenters to contradictory results about relative effectiveness. We show that for general evaluations, a range of performance metrics should be reported, to ensure that a complete picture of system effectiveness is conveyed. Given the global geographic coverage of this task, we specifically recommend evaluation at micro versus macro levels to measure the impact of the bias in distribution over locations. Although a lot of complex geolocation algorithms have been applied in recent years, a majority class baseline is still competitive at coarse geographic granularity. We propose a suite of statistical analysis tests, based on the employed metric, to ensure that the results are not coincidental.
BibTeX
@misc{mourad2019practical,
  author = {Ahmed Mourad and Falk Scholer and Walid Magdy and Mark Sanderson},
  title = {{A Practical Guide for the Effective Evaluation of Twitter User Geolocation}},
  year = {2019},
  eprint = {1907.12700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.12700},
}
Figure