Abstract
This research is aimed to solve the tweet/user geolocation prediction task and provide a flexible methodology for the geo-tagging of textual big data. The suggested approach implements neural networks for natural language processing (NLP) to estimate the location as coordinate pairs (longitude, latitude) and two-dimensional Gaussian Mixture Models (GMMs). The scope of proposed models has been finetuned on a Twitter dataset using pretrained Bidirectional Encoder Representations from Transformers (BERT) as base models. Performance metrics show a median error of fewer than 30 km on a worldwide-level, and fewer than 15 km on the US-level datasets for the models trained and evaluated on text features of tweets' content and metadata context.
Introduction
Social media data represents a massive repository of information for social science, public health, and crisis management. However, a significant barrier to utilizing this data is the lack of explicit geographic information; only approximately 1–2% of tweets are geo-tagged by users. Traditional geolocation methods often treat this as a classification problem, which lacks precision, or rely on manual gazetteers that struggle with the informal and evolving nature of social media language.
This paper introduces a high-precision method for "fine-grained" geolocation, predicting exact coordinates from noisy, short-form text and metadata. The goal is to create a flexible, semi-supervised methodology that handles linguistic ambiguity (e.g., distinguishing between different cities with the same name) without requiring external geographic dictionaries.
Methodology
The core architecture utilizes a modified BERT (Bidirectional Encoder Representations from Transformers) model. Instead of the standard classification head used for sentiment analysis or entity recognition, the authors integrated custom linear regression wrapper layers to the BERT pooler output.
Probabilistic Regression
Rather than predicting a single (lat, lon) coordinate, the model predicts the parameters of a Gaussian Mixture Model (GMM), including means, weights, and spherical covariance. This Probabilistic Multiple Outcome Prediction (PMOP) allows the system to express uncertainty. If a tweet is ambiguous, the GMM can assign high probability to multiple distinct geographic locations rather than "averaging" them into an incorrect central point (like the middle of an ocean).
Multitask Learning and Custom Loss
The training process employs a "teacher" approach using two sets of features:
- Key Features (KF): Tweet text and user profile information.
- Minor Features (MF): High-accuracy 'place' metadata.
During training, the model learns from both, but at inference time, it relies solely on the KF. To optimize the GMM, the authors utilized Negative Log-Likelihood (NLLH) combined with a Lower-Bounded SoftPlus (LBSP) function. This ensures the covariance parameter (σ) remains positive and above a specific threshold, preventing gradient instability when the model becomes overconfident in an incorrect location.
Datasets and Training
The study leveraged a massive archive of tweets collected between 2020 and 2022. The training set consisted of 2.7 million geo-tagged tweets, with an additional 300,000 for validation. A specific ablation study was conducted on a subset of 3 million tweets from Great Britain, France, and Canada to evaluate the model's performance in multilingual environments.
To ensure the results reflected human movement rather than automated activity, the researchers filtered out "bot" accounts (defined as users posting more than 20 times per day) for the final evaluation.
Key Results
The experimental results demonstrate that numerical regression to coordinates consistently outperforms geographic classification.
- Worldwide Performance: The best PMOP model (with 5 outcomes) achieved a median error of 29.4 km.
- US-Level Performance: On more localized data, accuracy improved significantly, with median errors dropping below 15 km.
- Ablation Study: In the UK/France/Canada test, the model achieved a median error of just 3.68 km, with 96% of predictions falling within 161 km (100 miles) of the true location.
- Computational Efficiency: Despite the added complexity of GMMs, the probabilistic models only required a 12% increase in computational time compared to simple coordinate regression, processing approximately 15 tweets per second on standard hardware.
Limitations and Future Work
While highly effective, the model is currently constrained by BERT’s 512-token limit, which complicates the geolocation of users based on long-term history. Future iterations could incorporate temporal data (timestamps) and visual data (images), which provide additional spatial cues.
Furthermore, the authors emphasize the ethical implications of high-precision geolocation. While valuable for research, such technology poses privacy risks, necessitating strict data protection and anonymization protocols. Future work will also explore different map projections beyond Plate Carrée to better address polar distortion in global datasets.
Summary updated