Skip to main content
QUICK REVIEW

[Paper Review] Exploring Twitter Hashtags

Jan Pöschko|arXiv (Cornell University)|Nov 28, 2011
Advanced Text Analysis TechniquesComputer Science4 references11 citations
TL;DR

This paper proposes a machine learning approach to classify Twitter hashtags into five intuitive categories—organization, geolocation, person, event, and category—using co-occurrence patterns, part-of-speech tagging, and geographical knowledge. The key contribution is an interactive web application, TwitterExplorer, which enables users to explore hashtag co-occurrence dictionaries and classifier outputs, with a 5-fold cross-validation F1-score of 0.55 for category classification and 0.38 for person classification.

ABSTRACT

Twitter messages often contain so-called hashtags to denote keywords related to them. Using a dataset of 29 million messages, I explore relations among these hashtags with respect to co-occurrences. Furthermore, I present an attempt to classify hashtags into five intuitive classes, using a machine-learning approach. The overall outcome is an interactive Web application to explore Twitter hashtags.

Motivation & Objective

  • To address the ambiguity of Twitter hashtags, which often lack clear semantic meaning (e.g., #tcot, #p2), by building a semantic dictionary based on co-occurrence patterns.
  • To classify hashtags into five intuitive semantic classes—organization, geolocation, person, event, and category—using supervised machine learning.
  • To develop an interactive web application that visualizes hashtag co-occurrence networks and classifier results for public exploration.
  • To evaluate the effectiveness of feature engineering, including part-of-speech tagging and geographical name recognition, in improving classification performance.
  • To explore the feasibility of using social graph data and temporal patterns for future improvements in hashtag understanding and classification.

Proposed method

  • Built a co-occurrence dictionary by computing the number of shared tweets between hashtag pairs, storing top 10 co-occurring hashtags per hashtag in an SQLite database.
  • Used maximum entropy (MaxEnt) classification with features including part-of-speech tags, geographical name recognition (from Geonames), and contextual word features.
  • Employed 5-fold cross-validation with 100 randomly sampled tweets per hashtag to train and evaluate the classifier, reducing computational load.
  • Implemented a web application using Django, with AJAX for dynamic loading of classification details, and used Prototype and RGraph for interactive UI elements.
  • Generated a clustered graph of hashtag co-occurrences using hierarchical clustering to visualize semantic neighborhoods.
  • Pre-processed tweets using a custom regular expression to preserve hashtags, @-replies, URLs, and emoticons during tokenization.

Experimental results

Research questions

  • RQ1Can hashtag co-occurrence patterns form a reliable semantic dictionary that suggests meaningful related hashtags?
  • RQ2How effective is a machine learning classifier in distinguishing between five semantic classes of hashtags—organization, geolocation, person, event, and category?
  • RQ3To what extent do part-of-speech tagging and geographical name recognition improve classification accuracy?
  • RQ4Can the combination of co-occurrence data and linguistic features enable effective and scalable hashtag classification in real-world Twitter data?
  • RQ5How can interactive web interfaces be designed to support exploration of hashtag semantics and co-occurrence networks?

Key findings

  • The co-occurrence dictionary successfully retrieved semantically related hashtags, with high precision for common hashtags like #obama and #apple, showing plausible related terms such as #tcot and #gop for #obama.
  • The MaxEnt classifier achieved an F1-score of 0.55 for category classification, 0.38 for person classification, and 0.59 for geolocation classification, indicating moderate performance with room for improvement.
  • Event classification performed poorly, with an F1-score of only 0.08, suggesting that current features are insufficient for detecting event-related hashtags.
  • Geographical name features significantly improved geolocation classification, with 23 out of 39 geolocation hashtags correctly classified in the confusion matrix.
  • The web application, TwitterExplorer, successfully visualized hashtag co-occurrence dictionaries and classifier outputs, enabling interactive exploration of hashtags and their contexts.
  • The classifier's performance was limited by small training sets (100 tweets per hashtag) and insufficient feature engineering for event detection, which may require temporal or social network features.

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.