Skip to main content
QUICK REVIEW

[Paper Review] A Hierarchical Location Prediction Neural Network for Twitter User Geolocation

Binxuan Huang, Kathleen M. Carley|arXiv (Cornell University)|Oct 28, 2019
Human Mobility and Location-Based AnalysisSocial Sciences38 references6 citations
TL;DR

This paper proposes a hierarchical location prediction neural network (HLPNN) that first predicts a user's country and then uses that result to guide city-level geolocation. By integrating character-aware word embeddings, transformer encoders, and multi-level attention, HLPNN achieves state-of-the-art performance on Twitter geolocation benchmarks, reducing mean error distance while improving accuracy across multiple feature settings.

ABSTRACT

Accurate estimation of user location is important for many online services. Previous neural network based methods largely ignore the hierarchical structure among locations. In this paper, we propose a hierarchical location prediction neural network for Twitter user geolocation. Our model first predicts the home country for a user, then uses the country result to guide the city-level prediction. In addition, we employ a character-aware word embedding layer to overcome the noisy information in tweets. With the feature fusion layer, our model can accommodate various feature combinations and achieves state-of-the-art results over three commonly used benchmarks under different feature settings. It not only improves the prediction accuracy but also greatly reduces the mean error distance.

Motivation & Objective

  • To address the limitation of existing neural network models in ignoring the hierarchical structure of geographic locations (e.g., country vs. city).
  • To improve geolocation accuracy on noisy social media text by employing character-aware word embeddings to handle out-of-vocabulary and informal language.
  • To reduce mean error distance in city-level predictions by using country-level supervision as a guiding signal.
  • To design a flexible model architecture that supports various combinations of text, metadata, and network features.

Proposed method

  • The model uses a two-stage hierarchical prediction: first predicting the user's home country, then using that prediction to guide city-level geolocation.
  • A character-aware CNN layer processes raw text to generate robust word representations that capture morphology and handle out-of-vocabulary words.
  • Transformer encoders with multi-head attention learn cross-feature correlations across text, metadata, and network features.
  • Field-level and word-level attention mechanisms are applied to focus on salient features within each input modality.
  • The model employs a multi-task loss function with a learnable weight α to balance country-level and city-level supervision signals.
  • Feature fusion is achieved through shared and parallel transformer encoders that decouple the two prediction heads while preserving inter-feature dependencies.

Experimental results

Research questions

  • RQ1Can incorporating hierarchical geographic structure (country → city) improve the accuracy and robustness of Twitter user geolocation models?
  • RQ2How effective are character-aware word embeddings in handling the noise and informality of social media text for geolocation tasks?
  • RQ3Does using country-level prediction as a supervisory signal reduce the mean error distance in city-level predictions?
  • RQ4To what extent do transformer-based attention mechanisms improve feature representation learning across diverse input modalities (text, metadata, network)?
  • RQ5How does the model perform under different combinations of input features (text, metadata, network) compared to prior state-of-the-art methods?

Key findings

  • HLPNN achieves state-of-the-art performance on three benchmark datasets (WNUT, GeoNames, and Twitter-15) across multiple feature settings, with a top accuracy of 37.3% on WNUT using text features alone.
  • The model reduces the mean error distance to 1,289.4 km on the WNUT dataset, significantly outperforming prior methods.
  • The ablation study shows that character-aware word embeddings contribute most to performance, reducing mean error by over 140 km compared to models without them.
  • Country-level supervision with α = 20 reduces the relative country error (misclassified cities in wrong countries) from 26.2% to 23.1%, demonstrating improved geographical consistency.
  • The field-level attention provides only marginal gains, as the transformer encoders already capture inter-feature dependencies effectively.
  • The model maintains strong performance across all feature combinations, including text-only, text+metadata, text+network, and full feature settings, proving its flexibility and robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.