Using Twitter Data to Map Emotions Geographically





A few weeks ago, I spoke at a federal agency conference in Arlington, VA and one of the most interesting topics was the potential use of social media, by intelligence agencies, to map out and predict social unrest. So I decided to start experimenting with the concept on my own.

By combining the linguistic analysis systems of TweetPsych with Twitter’s geo tagging data (which isn’t great yet) and the Google Maps API, I was able to plot tweets on specific latitude and longitude codes based on their emotional content.

Below you’ll see 6 maps of various kinds of psychological traits and their occurrences around the city of Boston. This is just the beginning of my exploration into this kind of data, so keep an eye out for more.

If you liked this post, don't forget to subscribe to my RSS feed or my email newsletter so you never miss the science.