Table of Contents
Fetching ...

From Twitter to Reasoner: Understand Mobility Travel Modes and Sentiment Using Large Language Models

Kangrui Ruan, Xinyang Wang, Xuan Di

TL;DR

A novel methodological framework utilizing Large Language Models (LLMs) is introduced to infer the mentioned travel modes from social media posts, and reason people's attitudes toward the associated travel mode, without the need for manual annotation.

Abstract

Social media has become an important platform for people to express their opinions towards transportation services and infrastructure, which holds the potential for researchers to gain a deeper understanding of individuals' travel choices, for transportation operators to improve service quality, and for policymakers to regulate mobility services. A significant challenge, however, lies in the unstructured nature of social media data. In other words, textual data like social media is not labeled, and large-scale manual annotations are cost-prohibitive. In this study, we introduce a novel methodological framework utilizing Large Language Models (LLMs) to infer the mentioned travel modes from social media posts, and reason people's attitudes toward the associated travel mode, without the need for manual annotation. We compare different LLMs along with various prompting engineering methods in light of human assessment and LLM verification. We find that most social media posts manifest negative rather than positive sentiments. We thus identify the contributing factors to these negative posts and, accordingly, propose recommendations to traffic operators and policymakers.

From Twitter to Reasoner: Understand Mobility Travel Modes and Sentiment Using Large Language Models

TL;DR

A novel methodological framework utilizing Large Language Models (LLMs) is introduced to infer the mentioned travel modes from social media posts, and reason people's attitudes toward the associated travel mode, without the need for manual annotation.

Abstract

Social media has become an important platform for people to express their opinions towards transportation services and infrastructure, which holds the potential for researchers to gain a deeper understanding of individuals' travel choices, for transportation operators to improve service quality, and for policymakers to regulate mobility services. A significant challenge, however, lies in the unstructured nature of social media data. In other words, textual data like social media is not labeled, and large-scale manual annotations are cost-prohibitive. In this study, we introduce a novel methodological framework utilizing Large Language Models (LLMs) to infer the mentioned travel modes from social media posts, and reason people's attitudes toward the associated travel mode, without the need for manual annotation. We compare different LLMs along with various prompting engineering methods in light of human assessment and LLM verification. We find that most social media posts manifest negative rather than positive sentiments. We thus identify the contributing factors to these negative posts and, accordingly, propose recommendations to traffic operators and policymakers.

Paper Structure

This paper contains 12 sections, 2 equations, 10 figures, 2 tables.

Figures (10)

  • Figure 1: The overall structure for the proposed framework. For each pre-processed tweet, the reasoner predicts the travel mode and corresponding sentiment while also performing a reasoning check. Subsequently, the verifier reviews and confirms the validity of the generated responses.
  • Figure 2: Visualization of different prompting engineering methods.
  • Figure 3: The wordcloud maps for different travel modes predicted by the reasoner.
  • Figure 4: The proportion of each travel mode extracted from collected Twitter data.
  • Figure 5: Users' attitudes (Neutral/Negative/Positive) towards different travel modes.
  • ...and 5 more figures