Abstract
This paper introduces the problem of determining whether people are located in the locations they mention in their Twitter streams. In particular, we investigate the role of context—tweets published before and after a tweet mentioning a location—in this challenging problem. We present a new corpus of Twitter streams with spatial information. Our analyses show that context is key to defining the ground truth, as human judgments depend on whether annotators have access to context. Experimental results show that a neural architecture that takes into account context in addition to the tweet mentioning a location yields better results. We also conduct an error analysis to provide insights into the errors made by our best model.
Introduction: The Challenge of Spatial Knowledge Extraction
While geotagging is a well-studied field, it faces a major hurdle on social media: only about 0.85% of tweets are shared with explicit GPS coordinates. Researchers often try to infer location from text, but a single tweet is frequently ambiguous. For example, tweeting "Miami has the best beaches!" could be a live update from a vacationer or a nostalgic post from someone sitting in a snowy office in Chicago.
The authors tackle the specific problem of spatial knowledge extraction: determining if a user is physically present in the city they mention at the time of the tweet. They argue that previous approaches focusing on single tweets are insufficient and that the surrounding "stream" of a user's activity is the missing piece of the puzzle.
Methods
The researchers developed a neural architecture designed to process a sequence of tweets rather than a single data point.
- Input Representation: For each instance, the model takes seven tweets (the "target" tweet mentioning a city, plus the three preceding and three following tweets).
- Feature Engineering:
- Textual Embeddings: A pre-trained BERT (base-uncased) model generates dense vector representations of the tweet text.
- Social Media Features: BERT is supplemented with hand-crafted features including hashtag counts, emoji usage, and "subjectivity" scores.
- Sequence Modeling: These representations are fed into a BiLSTM (Bidirectional Long Short-Term Memory) network to capture dependencies across the timeline.
- Classification: After mean pooling, the data passes through fully connected layers to produce a binary "yes/no" prediction regarding the user's presence in the mentioned city.
Datasets
The authors introduced a new, publicly available corpus:
- Size: 3,494 instances covering 94 unique US cities (Miami and Chicago being the most frequent).
- Structure: Each instance contains a target tweet and its context (3 before, 3 after) within a 90-day window.
- Annotation: Crowdworkers annotated the data twice: once seeing only the target tweet, and once seeing the full context. This measured how much context changes human judgment.
Key Insights: The Power of Context
The most striking finding was that human annotators changed their minds 60.7% of the time when given context for tweets they initially labeled as "I can't tell" (no). This proves that context is essential for defining the ground truth.
- Target Tweets are Deceptive: Without context, models and humans are often fooled by news reports or advertisements. For instance, a user sharing a news link about Reno might be labeled as being in Reno, but context might reveal they are a news junkie living in Los Angeles.
- Symmetry is Required: Using only previous or only subsequent tweets resulted in no improvement over the majority baseline. The "sandwich" of context (both before and after) is necessary for a predictive edge.
- Social Signals Matter: Social media features (like city names in hashtags) provided a measurable boost in F1 score, suggesting metadata reflects spatial reality.
Key Results
- Context-Unaware Failure: A model looking only at the target tweet performed no better than a simple majority baseline (F1: 0.55).
- Best Performing Model: The full BERT-BiLSTM model using all seven tweets and social media features achieved a Weighted Average F1 of 0.63.
- Ablation Study: Removing social media features dropped the F1 to 0.61, confirming that metadata complements raw text embeddings.
Limitations and Future Work
The current corpus is limited to English-language tweets and US cities. Additionally, the authors discarded instances with low crowdworker agreement, meaning the model hasn't been tested on the most ambiguous cases. Future work could incorporate explicit timestamps to better model human mobility patterns rather than just the order of tweets.
Summary updated