22
Aug
How New York Tweets About Food, Part 2
Introduction
In part 1 of this series, we discovered a few things: the number of tweets about pizza dwarfs most other foods, burgers are a more popular lunchtime tweet than other foods, and that I completely ignored breakfast. In part 2, we’ll not only see when New Yorkers tweet about food, but also how they feel about their food.
Background #1: Sentiment Analysis
Over the past three weeks, a server somewhere in the world has been quietly pulling down New Yorkers’ tweets related to eleven different foods: pizza, bacon, cereal, tacos, burgers, bagels, spinach, kale, tofu, scrambled eggs, and quinoa. The sentiment of each tweet was analyzed using a naive Bayesian classifier, the same technique used in early spam filters. This method categorizes single words as positive (“awesome”, “delicious”), neutral, or negative (“terrible”, “crappy”), then examines each word in a tweet to determine whether there are a critical mass of positive or negative words. As you might guess, the method is far from perfect. A tweet such as “the worst thing about this pizza is that I can’t eat it every day”, for example, would be tagged as negative. With a sufficient volume of data — nearly 500,000 tweets for this analysis — this becomes less of an issue.
Background #2: Net Promoter Score
If you haven’t fallen asleep yet, I suggest getting a pillow now. We have one more thing to cover before getting to the good stuff. A Net Promoter Score, or NPS, is a metric used to measure customer satisfaction. If you’ve ever been asked “How likely are you to recommend this service to a friend or colleague?”, you have been part of an NPS score. Respondents answer this question on a scale of 1 to 10. The NPS score is calculated as the number of 9’s and 10’s (promoters) less the number answering 6 or less (detractors) divided by the total number of respondents. I applied this same concept to the food analysis: the NPS values calculated below equal the number of positive tweets less the number of negative tweets divided by the total tweets.
Total Number of Tweets by Food
Now on to the graphs. First, let’s revisit a few things now that we have nearly 500,000 tweets collected over a three-weeks period. In terms of raw count, pizza reigns supreme (see what I did there?), while the new kid on the block, cereal, makes a surprising appearance in the top 3:

Weekend Foods vs. Weekday Foods
Which foods are more popular on weekends? According to Twitter, at least, tofu, bagels, and pizza are the most weekend-ish foods, while scrambled eggs are most popular on weekdays.

Food Tweets by Time of Day
The first time around, the only common breakfast food analyzed was bacon, leading me to add “cereal”, “scrambled eggs”, and “bagel”. As it turns out — and contrary to a frequent Twitter complaint — tweeting about breakfast just isn’t that popular.

Also surprising: the profile of weekend (Saturday, Sunday) food-related tweets isn’t so different from weekday food tweets. The biggest delta is between 6:30 and 8:30 AM — outside of that, tweets are sent with generally similar frequencies.

Tweets by Day of Week
Affirming a finding from my earlier post, Saturday is the least popular day to tweet about food (we have better things to do!… or maybe eat different foods?) while Thursday is the most popular.

Sentiment and NPS by Food
The following chart shows the percentage of total tweets, by food, that were categorized as positive or negative. Cereal had the highest percentage of negative tweets, while bacon (!) was second. Scrambled eggs and quinoa had the highest proportion of positive tweets. The most controversial foods (i.e., those with the fewest neutral tweets) were quinoa, cereal, and scrambled eggs. The most “meh” foods were tofu, tacos, and kale.

When looking at an NPS-style score for each food, scrambled eggs and quinoa come out on top, while tacos and cereal are the cellar-dwellers.

Food Sentiment on Weekends vs. Weekdays
Across all foods studied, there is no discernible difference in weekday versus weekend sentiment. When looking at individual foods, however, there are some big jumps in sentiment. Quinoa and tacos are discussed more favorably on weekdays, while cereal has almost twice the NPS on weekends as it does on weekdays.

Sentiment Throughout the Day
One other fun way to slice our data is to look at sentiment at different times of the day. As a general rule, food-related tweets are most positive early in the day. But the most amazing feature of this chart is the “valley of regret” between 2:15 and 3:15 PM.

And that’s all she wrote! I don’t know about you, but I’m stuffed.



