Direkt zum Hauptbereich

Sentiment Analysis mit Twitter-Daten über Fracking: Ein misslungener Versuch



Das Problem

In einem Projekt am FoKoS versuchen wir, Twittermeldungen zum Thema "fracking" (eine kontrovers diskutierte Fördertechnik für Erdgas) zu analysieren. Pro Woche gibt es in etwa 20.000 solcher Tweets.
Wir würden gerne wissen, welche Meldungen pro oder contra fracking sind. Morry hat versucht, dies über eine Sentiment-Analyse zu ermitteln und beschreibt im Folgenden die Methode:

Measuring semantics of a sentence or expression…

The idea comes from the availability of WordNet Dictionary[i]. Within this dictionary the definition of each adjective includes all its synonyms. So, it is possible to measure the distance of two adjectives as the number of the synonyms between two different adjectives. It is expected the more similar the adjectives are the less distance between them would exist. As example the distance between words “honest” and “good” is just two words, but the distance between “honest” and “bad” is 6.

Jaap Kamps[ii] developed this idea to measure the positivity, potency and activeness of an adjective as below:

Where d(word1 , word2) stands for the distance between two words on WordNet dictionary. Thease measurements range from -1 to +1 and the greater the measurement, the closer the adjective is to either good/bad, strong/weak, or active/passive.
So we extend this idea to measure the semantic of the expressions. In an expression there are some few words. We want to evaluate all the words in an expression and take an average to measure the expression in an algorithmic way. Take these two samples,
“My life is nice and pretty”:

“I have always been unlucky and sinister”
The drawback of this method is that it cannot capture the negative meanings like “I have never been unlucky and sinister”.
We used this method to check if this is useful to tag the Tweets on Twitter about  “fracking”. We tagged 500 Tweets manually and then tried to see if this method is useful to measure the semantic of the Tweets as we tagged. We separated negative tagged Tweets (Tweets opposing fracking) from positive tagged Tweets (Tweets supporting fracking). Then we plotted the distributions of the three measurements. We expected to find some significant difference between the two tagged groups of Tweets. From the plots below you see we did not manage to do this, as the Tweets are more complex and they contain ambiguous expressions and negative tenses which this method cannot distinguish.
ACT plot of positive tagged Tweets and negative tagged Tweets
EVA plot of positive tagged Tweets and negative tagged Tweets
POT plot of positive tagged Tweets and negative tagged Tweets
Morteza Shahrezaye



[i] http://wordnet.princeton.edu/
[ii] http://dare.uva.nl/document/154122

Was lief schief?

Der Datensatz enthält Tweets wie: 
"US Fracking Boom Creating Crisis of Illegal Toxic Dumping http://t.co/J4vXYSBwrc"
"Fracking Foes Cringe as Unions Back Drilling Boom http://t.co/htrynwJMTG"
"#HumanRightsHere's What #Fracking Can Do to Your #Health"
Ob die Sprache eher negativ oder positiv ist, ist daher kein Indikator für die Haltung des Sprechers gegenüber Fracking. Außerdem enthalten viele Tweets gar keine Adjektive...

Kommentare

Beliebte Posts aus diesem Blog

#RTutorial: Using R to Harvest the Twitter STREAM API

Initializing the Twitter API In this tutorial, the so called STREAMING-API from Twitter is used. This API provides real-time access to Twitter, so the results are dependent from what is actually going on, right now. Before we start, we have to initialize the Twitter-API. To use the Twitter API, a consumer key and consumer secret is required. Therefore, you have to register as a developer who is creating a Twitter app. Create a Twitter account and then sign in at https://apps.twitter.com/. The account has to be verified with a phone number. This can be done on the Twitter webpage in the account settings. Fill in name, description and any valid URL with leading “http://”. It is important NOT to provide any call-back URL, because otherwise the registration from R will not function. After this, you can see a summary of your newly created app with a link to “manage keys and access tokens”. The consumer key and consumer secret that can be found there have to be copied into the following R-...

Deep-Dive Impfeffektivität: Eine kritische Datenanalyse der RKI-Berechnungen / Teil 1: Die Methode

Die Einschätzung, wie effektiv die COVID-Impfung ist, ist eine der politisch relevantesten Kennzahlen derzeit. Insbesondere für die Einschätzungen der Angemessenheit einr Impfpflicht ist diese Zahl extrem wichtig. In der Vergangenheit hat sich immer wieder gezeigt, dass die Berechnungen des RKI nicht in jeder Hinsicht eindeutig sind, sondern auf vielen Annahmen beruhen, die man auch kritisch hinterfragen kann und muss. Für die politische Datenwissenschaft ist es daher essenziell, diese Berechnungen nachvollziehbar zu machen. In diesem Beitrag wird das methodische Vorgehen des RKI zur Berechnung der Impfeffektivität analysiert. Die Informationen dazu entstammen den RKI-Wochenberichten .  In einem zweiten Teil habe ich die konkreten Berechnungen des RKI so weit wie möglich rekonstruiert und kann daher zeigen, wie stark die Ergebnisse schwanken, wenn Annahmen leicht verändert werden. Meine Erkenntnisse aus der folgenden Analyse: Das RKI verwendet zur Berechnung der Impfeffektivität di...

The Social Science One Facebook Cooperation: A Systemic Failure

This blogpost is a detailed background statement to this comment published in Nature at https://www.nature.com/articles/d41586-020-00828-5 . Fast-Read The following text argues that the Social Science One initiative that is celebrated by Facebook as success is an systemic failure. Privacy concerns are instrumentalized to withhold data from independent researchers while similar data is still available to private companies. The hurdles for researchers at Social Science One are set in a way that it is nearly impossible to study the effect of social media on elections and democracy. This fits to the strategic interest of Facebook to play cooperative but to control the outcomes of research. Social Science One is structured in a way that it is easy for Facebook to instrumentalize this organization. We end with policy recommendations. An appendix shows that the dataset delivered by Facebook is more or less useless. Background Facebook has announced the release of a dataset that is shar...