Twitter User Geolocation Using a Unified Text and Network Prediction Model

Afshin Rahimi, Trevor Cohn, Timothy Baldwin

Introduction

Determining the geographic origin of Twitter users is a fundamental task for applications ranging from disaster response to localized sentiment analysis. Despite its importance, geolocating users remains a significant challenge. Only a small fraction (1–3%) of tweets are geotagged with GPS coordinates, and user-provided profile locations are frequently missing, vague, or intentionally misleading.

Traditional approaches to this problem generally fall into two categories: text-based models, which analyze regional linguistic variations, and network-based models, which leverage the social connections between users. While text-based models can provide a prediction for any user who tweets, they often lack social context. Conversely, network-based models are highly accurate for well-connected users but struggle with scalability and fail when users have few social links.

Methodology: The Unified MAD Framework

The researchers from the University of Melbourne propose a unified approach using Modified Adsorption (MAD), a graph-based label propagation algorithm. In this framework, the Twitter social structure is modeled as a graph where users are nodes and @-mentions represent edges. To address the limitations of existing methods, the authors introduced three primary innovations:

  1. Celebrity Removal: A core assumption in network geolocation is homophily—the tendency of individuals to associate with others in close proximity. However, "celebrity" accounts (e.g., global politicians or pop stars) are mentioned by users worldwide, regardless of location. These high-degree nodes act as noise in the graph. By filtering out nodes mentioned by more than a specific threshold of users, the model preserves local geographic signals and drastically reduces the graph's complexity.
  2. Network Collapsing: To improve computational efficiency, the authors "collapsed" the network. Instead of maintaining every mentioned user as a separate node, they connected training and test users directly if they shared a common mention, effectively removing "middle-man" nodes that did not contribute location data.
  3. Text-Based Dongle Nodes: To bridge the gap between text and network data, the authors introduced "dongle nodes." For every user in the test set, a text-based logistic regression classifier generates an initial location estimate. This estimate is then attached to the user node as a "dongle," providing a weighted prior that influences the label propagation process. This ensures that even "social loners" with few network connections can be geolocated using their tweet content.
Transformation of the @-mention network into a collapsed network with text-based dongle nodes.

Experimental Setup and Datasets

The model was rigorously tested on three benchmark datasets of varying scales:

  • GEOTEXT: A small-scale dataset of 9.5K users.
  • TWITTER-US: A medium-scale dataset containing 449K users across the United States.
  • TWITTER-WORLD: A large-scale global dataset with 1.3M users.

For each user, a "meta-document" was created by concatenating all their available tweets to serve as the input for the text-based component of the model.

Key Results and Scalability

The proposed model, MADCEL-W-LR, demonstrated superior performance across all benchmarks. On the TWITTER-US dataset, it achieved an accuracy of 60% for users located within 161 km (100 miles) of their actual home location.

The integration of text-based priors proved highly effective, reducing mean error distances by 26% on TWITTER-US and 23% on TWITTER-WORLD compared to models using network data alone. Furthermore, the celebrity removal strategy was transformative for scalability. In the TWITTER-WORLD dataset, filtering celebrities reduced the number of edges from 40 billion to just 10 million. This reduction made the problem computationally tractable on standard hardware while simultaneously improving prediction accuracy by removing non-local noise.

Conclusion

By combining text-based priors with a pruned social network, this research provides a scalable and accurate solution for Twitter user geolocation. The study highlights that in large-scale social graphs, "more data" is not always better; strategically removing high-degree "celebrity" nodes can enhance both performance and efficiency. Future work may explore temporal tweet patterns and more sophisticated text representations to further refine the initial location priors.

Summary updated

BibTeX
@inproceedings{rahimi2015twitter,
  author = {Afshin Rahimi and Trevor Cohn and Timothy Baldwin},
  title = {{Twitter User Geolocation Using a Unified Text and Network Prediction Model}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-2104},
}
Figure