Skip to main content
QUICK REVIEW

[Paper Review] Sentiment in New York City: A High Resolution Spatial and Temporal View

Karla Z. Bertrand, Maya Bialik|arXiv (Cornell University)|Aug 22, 2013
Human Mobility and Location-Based AnalysisSocial Sciences17 references55 citations
TL;DR

This study maps public sentiment across New York City using geotagged Twitter data and a custom emoticon-based sentiment classifier, revealing that sentiment is highest in parks and lowest at transportation hubs, with distinct daily and weekly patterns peaking at midnight and on weekends. The method enables high-resolution spatial-temporal analysis of urban mood without relying on language-specific lexicons.

ABSTRACT

Measuring public sentiment is a key task for researchers and policymakers alike. The explosion of available social media data allows for a more time-sensitive and geographically specific analysis than ever before. In this paper we analyze data from the micro-blogging site Twitter and generate a sentiment map of New York City. We develop a classifier specifically tuned for 140-character Twitter messages, or tweets, using key words, phrases and emoticons to determine the mood of each tweet. This method, combined with geotagging provided by users, enables us to gauge public sentiment on extremely fine-grained spatial and temporal scales. We find that public mood is generally highest in public parks and lowest at transportation hubs, and locate other areas of strong sentiment such as cemeteries, medical centers, a jail, and a sewage facility. Sentiment progressively improves with proximity to Times Square. Periodic patterns of sentiment fluctuate on both a daily and a weekly scale: more positive tweets are posted on weekends than on weekdays, with a daily peak in sentiment around midnight and a nadir between 9:00 a.m. and noon.

Motivation & Objective

  • To develop a high-resolution spatial and temporal view of public sentiment in New York City using social media data.
  • To create a sentiment classifier specifically tuned for 140-character Twitter messages using emoticons, avoiding reliance on external lexicons.
  • To identify geographic and temporal patterns in public mood across urban environments, including parks, transit hubs, and medical facilities.
  • To assess the feasibility of using Twitter for real-time, fine-grained sentiment analysis in urban settings.
  • To explore the relationship between urban infrastructure and collective emotional states through digital trace data.

Proposed method

  • Collected 603,954 geotagged tweets from New York City between April 13–26, 2012, using Twitter’s Streaming API with a bounding box from 40° to 41°N and 73° to 74°W.
  • Built a binary sentiment classifier using emoticons as training labels, with positive and negative emoticons forming the basis for supervised learning.
  • Standardized tweets by removing URLs and usernames, replacing them with 'URL' and 'USER', respectively, and tokenizing the remaining text.
  • Applied two Naive Bayes classifiers—one for positive and one for negative sentiment—using feature sets derived from unique tokens in each tweet.
  • Calculated a composite sentiment score using the formula: (p₁ + (1 − p₂)) / 2, where p₁ is the probability of positive sentiment and p₂ is the probability of negative sentiment.
  • Mapped sentiment scores to census block-level spatial units, visualizing results as a color-coded sentiment map with cyan indicating high positivity and magenta low positivity.

Experimental results

Research questions

  • RQ1Where in New York City are public sentiment levels highest and lowest, and what urban features correlate with these extremes?
  • RQ2How does public sentiment vary across different times of day and days of the week?
  • RQ3To what extent does proximity to Times Square influence overall sentiment levels in surrounding areas?
  • RQ4How do specific urban infrastructures—such as transit hubs, cemeteries, and sewage facilities—affect collective mood as reflected in social media?
  • RQ5Can emoticon-based sentiment classification provide a reliable, language-agnostic method for analyzing public sentiment in short-form social media text?

Key findings

  • Public sentiment is highest in urban parks, with Central Park showing a distinct band of high positivity, and lowest at transportation hubs such as Penn Station, the Brooklyn Bridge, and the Midtown Tunnel.
  • Sentiment peaks at approximately midnight and reaches a nadir between 9:00 a.m. and noon, with a steady rise from morning to evening, especially after work hours.
  • Weekend sentiment is consistently more positive than weekday sentiment, with a similar daily pattern but higher overall positivity levels.
  • The proportion of positive tweets decreases from 0.74 at 0 km from Times Square to 0.60 at 10 km, indicating a measurable spatial gradient of sentiment centered on Times Square.
  • Cemeteries such as Palisades and Weehawken, and the Maspeth Creek sewage facility, show strong negative sentiment, likely due to odor and environmental concerns.
  • Rikers Island, medical centers like Maimonides and Lutheran Medical Centers, and airports also register as areas of strong negative or mixed sentiment, reflecting institutional or environmental stressors.

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.