Abstract
Real-time location inference of social media users is the fundamental of some spatial applications such as localized search and event detection. While tweet text is the most commonly used feature in location estimation, most of the prior works suffer from either the noise or the sparsity of textual features. In this paper, we aim to tackle these two problems. We use topic modeling as a building block to characterize the geographic topic variation and lexical variation so that "one-hot" encoding vectors will no longer be directly used. We also incorporate other features which can be extracted through the Twitter streaming API to overcome the noise problem. Experimental results show that our RATE algorithm outperforms several benchmark methods, both in the precision of region classification and the mean distance error of latitude and longitude regression.
Introduction
Inferring a user's location from a single tweet is a critical capability for real-time applications such as disaster management, localized advertising, and event detection. However, two major hurdles impede accurate estimation: noise and sparsity. Tweets are inherently messy, containing abbreviations, emojis, and non-standard language that challenge traditional text classifiers. Furthermore, the brevity of a single tweet results in sparse data; "one-hot" encoding vectors are mostly zeros, making it difficult to identify robust statistical patterns. While social network analysis can mitigate these issues, such data is often unavailable or too slow for high-speed streaming environments. This research introduces RATE (ReAl-Time location Estimation), a model designed to estimate location using only the information within a single tweet object.
Methodology
The RATE model is a Bayesian graphical model that characterizes the relationship between tweets, latent topics, and geographic regions. It integrates three primary components:
- Textual Feature Component: Utilizing a structure similar to Latent Dirichlet Allocation (LDA), this component treats tweets as mixtures of "topics." This approach addresses sparsity by grouping tweets based on underlying themes rather than requiring exact word matches.
- Categorical Feature Component: To combat noise, the model incorporates metadata from the Twitter API, including time zone, UTC offset, and language settings. These categorical features serve as stable spatial indicators.
- Prediction Component: This component maps latent areas to specific geographic distributions. It learns the centers (latitude/longitude) and variances for these areas during training.
The model employs a Gibbs-EM algorithm for inference, iteratively estimating hidden variables and model parameters. For evaluation, the researchers used three Twitter datasets from late 2015: Europe (376,356 users), UK (77,852 tweets), and France (36,451 tweets).
Results and Discussion
Experimental results demonstrate that RATE consistently outperforms standard benchmarks, including Naive Bayes (NB), Support Vector Machines (SVM), and Logistic Regression (LR).
As shown in the performance table, RATE achieved the highest precision in region classification for the Europe dataset (0.8922) and the UK dataset (0.4325). More significantly, it drastically reduced the Mean Distance Error (MDE). In the Europe dataset, RATE's MDE was 372.8 km, a substantial improvement over the SVM (426.3 km) and text-only LR (726.9 km).
Key insights from the study include:
- Metadata Reliability: Categorical features like time zones are highly effective for coarse-grained tasks as they are unaffected by textual noise.
- Lexical Variation: The model successfully captures regional linguistic differences, such as the prevalence of weather-related terms in the UK versus sentiment-related terms in France.
- Efficiency: With a testing time of approximately 17.5ms per tweet, RATE is suitable for real-time processing of high-volume Twitter streams.
Conclusion
The RATE model effectively addresses the challenges of noise and sparsity in social media geolocation by combining topic modeling with metadata. While the current model focuses on single-tweet objects for real-time efficiency, future work could explore the integration of social graphs or more advanced sampling acceleration strategies. Additionally, scaling the model to finer-grained city-level estimation remains a promising avenue for further research.
Summary updated