SlideShare una empresa de Scribd logo
1 de 24
SENTIMENT ANALYSIS OF TWEETS
 Predicting a Movie's Box Office Success

                Vasu Jain
                 Shu Cai

                12/05/2012
SENTIMENT ANALYSIS OF TWEETS
 Predicting a Movie's Box Office success

             Under Guidance of :
                Dr. Yan Liu
AGENDA
1. Introduction
2. Related Work
3. Methodology
4. Experiments
5. Conclusion
6. Q and A




                  Image source: SNLP Slides for Sentiment Analysis
INTRODUCTION
About Twitter

•   Social networking and microblogging service
•   Enables users to send and read messages
•   Messages of length up to 140 characters, known as "tweets".

Tweets contain rich information about people’s preferences.

People share their thoughts about movies using Twitter.

Data analysis on twitter data to predict the success of a movie.
INTRODUCTION
People’s opinions towards a movie have huge impact on its
success.

Our project includes prediction using Twitter data, and analysis of
the prediction results.

High volume of positive tweets may indicate success of a movie.
But how to quantify ?




      Image source: http://www.demainlaveille.fr/2012/05/06/pourquoi-twitter-ne-peut-pas-predire-les-elections-presidentielles/
RELATED WORK
Using social media to predict the future becomes very popular in recent
years.

• Predicting the Future with Social Media (Sitaram Asur & Bernardo A.
  Huberman, 2010) tries to show that twitter-based prediction of box
  office revenue performs better than market-based prediction.

• Predicting IMDB movie ratings using social media (Andrei Oghina,
  Mathias Breuss, Manos Tsagkias & Maarten de Rijke 2012) uses twitter
  and youtube data to predict the imdb scores.

Our project includes prediction using Twitter data and investigation on two
new topics based on the prediction results.
RELATED WORK
• Predicting the results of presidential election (USC Annenberg
  Innovation Lab & USC SAIL).

• Sentiment 140 to discover the Twitter sentiment (sentiment140.com) .
  No movie prediction is provided.
OUR WORK

• Data Collection: existing twitter data set and recent tweets via
  Twitter API

• Data Pre-processing: get the "clean" data and transform it to the
  format we need

• Sentiment Analysis: train a classifier to classify the tweets as:
  positive, negative, neutral and irrelevant

• Prediction: use the statistics of the tweets' labels to predict the
  movie success (hit/flop/average)
METHODOLOGIES: Data Collection & Crawling
2009 Data set Subset of Stanford dataset (now unavailable)
   • 477 Million Tweets, period of June – Dec 2009
   • Filtered tweets during critical period for movie
   • 68.7 GB datasets (compressed format)
   • 30 movies, 6 Million relevant Tweets

2012 Data set live crawling using a script
   • Streaming API of python library for Twitter
      to collect data
   • Data Retrieval using keywords for movies
   • Data collection focus on critical period
   • 8 Movies, 2.5 Million Tweets



                         Image source: http://drupal.org/project/twitterminer
METHODOLOGIES: Data Collection & Crawling
   160000

   140000

   120000

   100000

    80000

    60000

    40000

    20000

        0
            week -6
                      week -5
                                week -4
                                          week -3
                                                    week -2
                                                              week -1
                                                                        week 0
                                                                                 week 1
                                                                                          week 2
                                                                                                   week 3
                                                                                                            week 4
                                                                                                                     week 5
                                                                                                                              week 6
                                                                                                                                       week 7
                                                                                                                                                week 8
                                                                                                                                                         week 9
                                                                                                                                                                  week 10
                                                                                                                                                                            week 11
                                                                                                                                                                                      week 12
                                                                                                                                                                                                week 13
                                                                                                                                                                                                          week 14
                                                                                                                                                                                                                    week 15
                                                                                                                                                                                                                              week 16
                                                                                                                                                                                                                                        week 17
                                                                                                                                                                                                                                                  week 18
                                                                                                                                                                                                                                                            week 19
                                                                                                                                                                                                                                                                      week 20
                                                                                                                                                                                                                                                                                week 21
                                                                                                                                                                                                                                                                                          week 22
                                                                                                                                                                                                                                                                                                    week 23
                                                                                                                                                                                                                                                                                                              week 24
                                                                                                                                       Tweets Number


                      Critical Period for movie “Harry Potter and the Half-Blood Prince".
     Show the relationship between sent time and number of tweets for the movie

                                                                                                   Image source: http://drupal.org/project/twitterminer
METHODOLOGIES: Data Preprocessing
  Why data preprocessing ?
  • Lot of noisy, spam, irrelevant tweets in our dataset
  • Convert the data to input format for our sentiment
     analysis tools.

  Techniques for preprocessing:
  • Removing URLs, user handles
  • Language detection to discard tweets not in English
  • Split the dataset into small chunks ~25000 Tweets/Chunk
  • Process chunks distributely
  • Filter for tweets related to target movies using regular
     expression.



                 Image source: http://mashable.com/2012/03/18/tweets-more-trustworthy-study/
METHODOLOGIES: Sentiment Analysis
  Algorithm:
  • Labelling tweets using Lingpipe sentiment analyzer, a natural
     language processing toolkit.
  • Sentence (tweet) based analysis with a logistic regression classifier.
     (Accuracy up to 80%)
  • Training & evaluation using 2009 dataset, testing on 2012 dataset.
  • Trained classifier labels tweet as positive, negative, neutral or
     irrelevant.
  • Calculate PT-NT Ratio for every movie. PT-NT Ratio is a function
     over parameters positive tweet ratio, negative tweet ratio, total
     tweets, neutral tweets, irrelevant tweets.
  • Thresholds to determine regions for PT-NT Ratio. Each region
     corresponds to Hit, Flop, Average results for movies.
  • Movie success correlated with PT-NT Ratio.
Experiments: Analysis of 30 Movies (Released in 2009)
Experiments: Movies vs. P/N Ratio, Profit Ratio
Experiments: Movies (Released in 2009) vs. PT-NT Ratio
Experiments: Analysis of 8 Movies (Released in 2012)
Experiments: Movies (Released in 2012) vs. PT-NT Ratio
Conclusion
Prediction for 2012 movies using our analysis:
   5 movies: Hit
   1 movie: Super hit
   1 movie: Average business
   Could not determine success rate for one due to it data unavailability.

Comparing our prediction results with box office results till date
   Prediction: exactly right for four cases
   On border line between hit and average for one case
   For remaining movies we lack data to check our prediction onfidence .

Half accuracy score if movie’ s classification near border.
Score of 4.5 out of 5 for accuracy that is equal to 90%.
Great achievement for our model even though there were limitations with
number of movies, hand labeled tweets etc.
Future Work
Bottlenecks:
1. Twitter data crawled by third party.
2. Limitation with Twitter APIs for crawling data.
3. Noise included in randomly picked 200 tweets.
4. Movies being released in limited number of theaters
    (Not enough data)

With more data, model can be more accurate and reliable.

Future work:
1. Using different other models and algorithms.
2. Temporal analysis can be added as a future work in the project.
3. Consideration of Retweets as a factor



                Image source: http://www.theispot.com/whatsnew/2012/2/brucie-rosch-twitter-data.htm
Thank you

  Q/A
Extra Slides
Experiments: Snapshot of Ling pipe's labelling results

Más contenido relacionado

La actualidad más candente

Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Rachit Goel
 
Sentiment analysis in Twitter on Big Data
Sentiment analysis in Twitter on Big DataSentiment analysis in Twitter on Big Data
Sentiment analysis in Twitter on Big DataIswarya M
 
Sentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using pythonSentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using pythonHetu Bhavsar
 
Sentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use casesSentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use casesKarol Chlasta
 
Twitter sentiment analysis
Twitter sentiment analysisTwitter sentiment analysis
Twitter sentiment analysisRahul Jha
 
Twitter Sentiment Analysis.pdf
Twitter Sentiment Analysis.pdfTwitter Sentiment Analysis.pdf
Twitter Sentiment Analysis.pdfRachanasamal3
 
Twitter sentimentanalysis report
Twitter sentimentanalysis reportTwitter sentimentanalysis report
Twitter sentimentanalysis reportSavio Aberneithie
 
Twitter sentiment analysis
Twitter sentiment analysisTwitter sentiment analysis
Twitter sentiment analysisSunil Kandari
 
social network analysis project twitter sentimental analysis
social network analysis project twitter sentimental analysissocial network analysis project twitter sentimental analysis
social network analysis project twitter sentimental analysisAshish Mundra
 
Twitter sentiment analysis project report
Twitter sentiment analysis project reportTwitter sentiment analysis project report
Twitter sentiment analysis project reportBharat Khanna
 
Approaches to Sentiment Analysis
Approaches to Sentiment AnalysisApproaches to Sentiment Analysis
Approaches to Sentiment AnalysisNihar Suryawanshi
 
Sentiment Analysis on Twitter
Sentiment Analysis on TwitterSentiment Analysis on Twitter
Sentiment Analysis on TwitterSmritiAgarwal26
 
Twitter Sentiment Analysis
Twitter Sentiment AnalysisTwitter Sentiment Analysis
Twitter Sentiment AnalysisAyush Khandelwal
 
Twitter sentiment analysis ppt
Twitter sentiment analysis pptTwitter sentiment analysis ppt
Twitter sentiment analysis pptSonuCreation
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysisAmenda Joy
 
SENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATASENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATAParvathy Devaraj
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in TwitterAyushi Dalmia
 
Sentiment Analysis using Twitter Data
Sentiment Analysis using Twitter DataSentiment Analysis using Twitter Data
Sentiment Analysis using Twitter DataHari Prasad
 
Sentiment analysis using naive bayes classifier
Sentiment analysis using naive bayes classifier Sentiment analysis using naive bayes classifier
Sentiment analysis using naive bayes classifier Dev Sahu
 
Sentiment Analysis
Sentiment Analysis Sentiment Analysis
Sentiment Analysis prnk08
 

La actualidad más candente (20)

Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14Twitter sentiment-analysis Jiit2013-14
Twitter sentiment-analysis Jiit2013-14
 
Sentiment analysis in Twitter on Big Data
Sentiment analysis in Twitter on Big DataSentiment analysis in Twitter on Big Data
Sentiment analysis in Twitter on Big Data
 
Sentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using pythonSentiment analysis of Twitter data using python
Sentiment analysis of Twitter data using python
 
Sentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use casesSentiment analysis - Our approach and use cases
Sentiment analysis - Our approach and use cases
 
Twitter sentiment analysis
Twitter sentiment analysisTwitter sentiment analysis
Twitter sentiment analysis
 
Twitter Sentiment Analysis.pdf
Twitter Sentiment Analysis.pdfTwitter Sentiment Analysis.pdf
Twitter Sentiment Analysis.pdf
 
Twitter sentimentanalysis report
Twitter sentimentanalysis reportTwitter sentimentanalysis report
Twitter sentimentanalysis report
 
Twitter sentiment analysis
Twitter sentiment analysisTwitter sentiment analysis
Twitter sentiment analysis
 
social network analysis project twitter sentimental analysis
social network analysis project twitter sentimental analysissocial network analysis project twitter sentimental analysis
social network analysis project twitter sentimental analysis
 
Twitter sentiment analysis project report
Twitter sentiment analysis project reportTwitter sentiment analysis project report
Twitter sentiment analysis project report
 
Approaches to Sentiment Analysis
Approaches to Sentiment AnalysisApproaches to Sentiment Analysis
Approaches to Sentiment Analysis
 
Sentiment Analysis on Twitter
Sentiment Analysis on TwitterSentiment Analysis on Twitter
Sentiment Analysis on Twitter
 
Twitter Sentiment Analysis
Twitter Sentiment AnalysisTwitter Sentiment Analysis
Twitter Sentiment Analysis
 
Twitter sentiment analysis ppt
Twitter sentiment analysis pptTwitter sentiment analysis ppt
Twitter sentiment analysis ppt
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
SENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATASENTIMENT ANALYSIS OF TWITTER DATA
SENTIMENT ANALYSIS OF TWITTER DATA
 
Sentiment Analysis in Twitter
Sentiment Analysis in TwitterSentiment Analysis in Twitter
Sentiment Analysis in Twitter
 
Sentiment Analysis using Twitter Data
Sentiment Analysis using Twitter DataSentiment Analysis using Twitter Data
Sentiment Analysis using Twitter Data
 
Sentiment analysis using naive bayes classifier
Sentiment analysis using naive bayes classifier Sentiment analysis using naive bayes classifier
Sentiment analysis using naive bayes classifier
 
Sentiment Analysis
Sentiment Analysis Sentiment Analysis
Sentiment Analysis
 

Más de Vasu Jain

Tech jobs beyond programming - Game design
Tech jobs beyond programming - Game designTech jobs beyond programming - Game design
Tech jobs beyond programming - Game designVasu Jain
 
Conversational AI & Smart Homes
Conversational AI & Smart HomesConversational AI & Smart Homes
Conversational AI & Smart HomesVasu Jain
 
Identifying and solving enterprise problems
Identifying and solving enterprise problems  Identifying and solving enterprise problems
Identifying and solving enterprise problems Vasu Jain
 
Building Enterprise Chat Bots
Building Enterprise Chat BotsBuilding Enterprise Chat Bots
Building Enterprise Chat BotsVasu Jain
 
Chat Bots and how to build a Slack bot
Chat Bots and how to build a Slack botChat Bots and how to build a Slack bot
Chat Bots and how to build a Slack botVasu Jain
 
Sentiment analysis of tweets [SCSE, 13]
Sentiment analysis of tweets [SCSE, 13]Sentiment analysis of tweets [SCSE, 13]
Sentiment analysis of tweets [SCSE, 13]Vasu Jain
 
Indexing and Mining a Billion Time series using iSAX 2.0
Indexing and Mining a Billion Time series using iSAX 2.0Indexing and Mining a Billion Time series using iSAX 2.0
Indexing and Mining a Billion Time series using iSAX 2.0Vasu Jain
 
How google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrowHow google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrowVasu Jain
 
Internet Explorer 9
Internet Explorer 9Internet Explorer 9
Internet Explorer 9Vasu Jain
 
Cloud Computing Architecture
Cloud Computing Architecture Cloud Computing Architecture
Cloud Computing Architecture Vasu Jain
 
Power Point 2010
Power Point 2010 Power Point 2010
Power Point 2010 Vasu Jain
 
Microsoft Office 2010 Overview
Microsoft Office 2010 OverviewMicrosoft Office 2010 Overview
Microsoft Office 2010 OverviewVasu Jain
 
Windows 7 What's Next
Windows 7 What's NextWindows 7 What's Next
Windows 7 What's NextVasu Jain
 
Windows Phone 7
Windows Phone 7Windows Phone 7
Windows Phone 7Vasu Jain
 

Más de Vasu Jain (14)

Tech jobs beyond programming - Game design
Tech jobs beyond programming - Game designTech jobs beyond programming - Game design
Tech jobs beyond programming - Game design
 
Conversational AI & Smart Homes
Conversational AI & Smart HomesConversational AI & Smart Homes
Conversational AI & Smart Homes
 
Identifying and solving enterprise problems
Identifying and solving enterprise problems  Identifying and solving enterprise problems
Identifying and solving enterprise problems
 
Building Enterprise Chat Bots
Building Enterprise Chat BotsBuilding Enterprise Chat Bots
Building Enterprise Chat Bots
 
Chat Bots and how to build a Slack bot
Chat Bots and how to build a Slack botChat Bots and how to build a Slack bot
Chat Bots and how to build a Slack bot
 
Sentiment analysis of tweets [SCSE, 13]
Sentiment analysis of tweets [SCSE, 13]Sentiment analysis of tweets [SCSE, 13]
Sentiment analysis of tweets [SCSE, 13]
 
Indexing and Mining a Billion Time series using iSAX 2.0
Indexing and Mining a Billion Time series using iSAX 2.0Indexing and Mining a Billion Time series using iSAX 2.0
Indexing and Mining a Billion Time series using iSAX 2.0
 
How google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrowHow google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrow
 
Internet Explorer 9
Internet Explorer 9Internet Explorer 9
Internet Explorer 9
 
Cloud Computing Architecture
Cloud Computing Architecture Cloud Computing Architecture
Cloud Computing Architecture
 
Power Point 2010
Power Point 2010 Power Point 2010
Power Point 2010
 
Microsoft Office 2010 Overview
Microsoft Office 2010 OverviewMicrosoft Office 2010 Overview
Microsoft Office 2010 Overview
 
Windows 7 What's Next
Windows 7 What's NextWindows 7 What's Next
Windows 7 What's Next
 
Windows Phone 7
Windows Phone 7Windows Phone 7
Windows Phone 7
 

Último

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Último (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

Sentiment analysis of tweets

  • 1. SENTIMENT ANALYSIS OF TWEETS Predicting a Movie's Box Office Success Vasu Jain Shu Cai 12/05/2012
  • 2. SENTIMENT ANALYSIS OF TWEETS Predicting a Movie's Box Office success Under Guidance of : Dr. Yan Liu
  • 3. AGENDA 1. Introduction 2. Related Work 3. Methodology 4. Experiments 5. Conclusion 6. Q and A Image source: SNLP Slides for Sentiment Analysis
  • 4. INTRODUCTION About Twitter • Social networking and microblogging service • Enables users to send and read messages • Messages of length up to 140 characters, known as "tweets". Tweets contain rich information about people’s preferences. People share their thoughts about movies using Twitter. Data analysis on twitter data to predict the success of a movie.
  • 5. INTRODUCTION People’s opinions towards a movie have huge impact on its success. Our project includes prediction using Twitter data, and analysis of the prediction results. High volume of positive tweets may indicate success of a movie. But how to quantify ? Image source: http://www.demainlaveille.fr/2012/05/06/pourquoi-twitter-ne-peut-pas-predire-les-elections-presidentielles/
  • 6.
  • 7. RELATED WORK Using social media to predict the future becomes very popular in recent years. • Predicting the Future with Social Media (Sitaram Asur & Bernardo A. Huberman, 2010) tries to show that twitter-based prediction of box office revenue performs better than market-based prediction. • Predicting IMDB movie ratings using social media (Andrei Oghina, Mathias Breuss, Manos Tsagkias & Maarten de Rijke 2012) uses twitter and youtube data to predict the imdb scores. Our project includes prediction using Twitter data and investigation on two new topics based on the prediction results.
  • 8. RELATED WORK • Predicting the results of presidential election (USC Annenberg Innovation Lab & USC SAIL). • Sentiment 140 to discover the Twitter sentiment (sentiment140.com) . No movie prediction is provided.
  • 9. OUR WORK • Data Collection: existing twitter data set and recent tweets via Twitter API • Data Pre-processing: get the "clean" data and transform it to the format we need • Sentiment Analysis: train a classifier to classify the tweets as: positive, negative, neutral and irrelevant • Prediction: use the statistics of the tweets' labels to predict the movie success (hit/flop/average)
  • 10. METHODOLOGIES: Data Collection & Crawling 2009 Data set Subset of Stanford dataset (now unavailable) • 477 Million Tweets, period of June – Dec 2009 • Filtered tweets during critical period for movie • 68.7 GB datasets (compressed format) • 30 movies, 6 Million relevant Tweets 2012 Data set live crawling using a script • Streaming API of python library for Twitter to collect data • Data Retrieval using keywords for movies • Data collection focus on critical period • 8 Movies, 2.5 Million Tweets Image source: http://drupal.org/project/twitterminer
  • 11. METHODOLOGIES: Data Collection & Crawling 160000 140000 120000 100000 80000 60000 40000 20000 0 week -6 week -5 week -4 week -3 week -2 week -1 week 0 week 1 week 2 week 3 week 4 week 5 week 6 week 7 week 8 week 9 week 10 week 11 week 12 week 13 week 14 week 15 week 16 week 17 week 18 week 19 week 20 week 21 week 22 week 23 week 24 Tweets Number Critical Period for movie “Harry Potter and the Half-Blood Prince". Show the relationship between sent time and number of tweets for the movie Image source: http://drupal.org/project/twitterminer
  • 12. METHODOLOGIES: Data Preprocessing Why data preprocessing ? • Lot of noisy, spam, irrelevant tweets in our dataset • Convert the data to input format for our sentiment analysis tools. Techniques for preprocessing: • Removing URLs, user handles • Language detection to discard tweets not in English • Split the dataset into small chunks ~25000 Tweets/Chunk • Process chunks distributely • Filter for tweets related to target movies using regular expression. Image source: http://mashable.com/2012/03/18/tweets-more-trustworthy-study/
  • 13. METHODOLOGIES: Sentiment Analysis Algorithm: • Labelling tweets using Lingpipe sentiment analyzer, a natural language processing toolkit. • Sentence (tweet) based analysis with a logistic regression classifier. (Accuracy up to 80%) • Training & evaluation using 2009 dataset, testing on 2012 dataset. • Trained classifier labels tweet as positive, negative, neutral or irrelevant. • Calculate PT-NT Ratio for every movie. PT-NT Ratio is a function over parameters positive tweet ratio, negative tweet ratio, total tweets, neutral tweets, irrelevant tweets. • Thresholds to determine regions for PT-NT Ratio. Each region corresponds to Hit, Flop, Average results for movies. • Movie success correlated with PT-NT Ratio.
  • 14. Experiments: Analysis of 30 Movies (Released in 2009)
  • 15. Experiments: Movies vs. P/N Ratio, Profit Ratio
  • 16. Experiments: Movies (Released in 2009) vs. PT-NT Ratio
  • 17. Experiments: Analysis of 8 Movies (Released in 2012)
  • 18. Experiments: Movies (Released in 2012) vs. PT-NT Ratio
  • 19. Conclusion Prediction for 2012 movies using our analysis: 5 movies: Hit 1 movie: Super hit 1 movie: Average business Could not determine success rate for one due to it data unavailability. Comparing our prediction results with box office results till date Prediction: exactly right for four cases On border line between hit and average for one case For remaining movies we lack data to check our prediction onfidence . Half accuracy score if movie’ s classification near border. Score of 4.5 out of 5 for accuracy that is equal to 90%. Great achievement for our model even though there were limitations with number of movies, hand labeled tweets etc.
  • 20. Future Work Bottlenecks: 1. Twitter data crawled by third party. 2. Limitation with Twitter APIs for crawling data. 3. Noise included in randomly picked 200 tweets. 4. Movies being released in limited number of theaters (Not enough data) With more data, model can be more accurate and reliable. Future work: 1. Using different other models and algorithms. 2. Temporal analysis can be added as a future work in the project. 3. Consideration of Retweets as a factor Image source: http://www.theispot.com/whatsnew/2012/2/brucie-rosch-twitter-data.htm
  • 21. Thank you Q/A
  • 23.
  • 24. Experiments: Snapshot of Ling pipe's labelling results