SlideShare a Scribd company logo
1 of 26
Yunchao He (何云超)
2015.9.15 @ Yuan Ze University
 “unbelievably disappointing”
 “Full of zany characters and richly applied satire, and some great plot twists”
 “this is the greatest screwball comedy ever filmed”
 “It was pathetic. The worst part about it was the boxing scenes.”
 Sentiment Analysis
 Using NLP, statistics, or machine learning methods to extract, identify, or otherwise
characterize the sentiment content of a text unit
 Sometimes called opinion mining, although the emphasis in this case is on extraction
 Other names: Opinion extraction、Sentiment mining、Subjectivity analysis
2
3
 Movie: is this review positive or negative?
 Products: what do people think about the new iPhone?
 Public sentiment: how is consumer confidence? Is despair increasing?
 Politics: what do people think about this candidate or issue?
 Prediction: predict election outcomes or market trends from sentiment
4
 Short text classification based on Semantic clustering
 Sentiment intensity prediction using CNN
 Transfer Learning*
* Future works 5
 People express opinions in complex ways
 In opinion texts, lexical content alone can be misleading
 Intra-textual and sub-sentential reversals, negation, topic change common
 Rhetorical devices such as sarcasm, irony, implication, etc.
6
 Tokenization
 Feature Extraction: n-grams, semantics, syntactic, etc.
 Classification using different classifiers
 Naïve Bayes
 MaxEnt
 SVM
 Drawback
 Feature Sparsity
S1: I really like this movie
[...0 0 1 1 1 1 1 0 0 ... ]
8
S1: This phone has a good keypad
S2: He will move and leave her for good
 Using clustering algorithm to aggregate short text to form big clusters, in which
each cluster has the same topic and the same sentiment polarity, to reduce the
sparsity of short text representation and keep interpretation.
S1: it works perfectly! Love this product
S2: very pleased! Super easy to, I love it
S3: I recommend it
it works perfectly love this product very pleased super easy to I recommend
S1: [1 1 1 1 1 1 0 0 0 0 0 0 0]
S2: [0 0 0 1 0 0 1 1 1 1 1 1 0]
S3: [1 0 0 0 0 0 0 0 0 0 0 1 1]
S1+S2+S3: [...0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0...]
9
 Training data labeled with positive and negative polarity
 K-means clustering algorithm is used to cluster positive and negative text
separately.
 K-means, KNN, LDA…
works perfectly! Love this product
completely useless, return policy
very pleased! Super easy to, I am pleased
was very poor, it has failed
highly recommend it, high recommended!
it totally unacceptable, is so bad
works perfectly! Love this product
very pleased! Super easy to, I am pleased
highly recommend it, high recommended!
completely useless, return policy
was very poor, it has failed
it totally unacceptable, is so bad
Topical clusters
10
Classifier: Multinomial Naive Bayes
Probabilistic classifier: get the probability of label given a clustered text
,
1
arg max ( | )
arg max ( ) ( | )
Ci
i
s S
i j
s S j N
s P s C
P s P C s

  

 
$
( ) sN
P s
N

,
,
( , ) 1
( | )
( | ) | |
i j
i j
x V
N C s
P C s
N x s V




Bayes’ theory
Independent assumption
11
 Given an unlabeled text , we use Euclidean distance to find the most similar
positive cluster , and the most similar negative cluster
 The sentiment of , is estimated according to the probabilistic change of the
two clusters when merging with . (vs. KNN)
 This merging operation is called two-stage-merging method, as each
unlabeled text will be merged two times.
0, | ( ) ( ) | | ( ) ( ) |
( )
1, .
m m n n
j
P NC P C P NC P C
f x
otherwise
   
   
 

mC 
jx
nC 
jx
jx
12
 Dataset: Stanford Twitter Sentiment Corpus (STS)
 Baseline: bag-of-unigrams and bigrams without clustering
 Evaluation Metrics: accuracy, precision, recall
 The average precision and accuracy is 1.7% and 1.3% higher than the baseline
method.
Methods Accuracy Precision Recall
Our Method 0.816 0.82 0.813
Bigrams 0.805 0.807 0.802
13
 Continuous sentiment intensity provides fine-grained representation of sentiment.
 Representing sentiment as Valence-arousal can easily convert to discrete categories.
“unbelievably disappointing” Model
V: -0.5
A: 0.3
15
 Lexicon based Method. To find the relationship between word-level and sentence-level
sentiment values. Word-level information comes from sentiment lexicon, e.g. ANEW.
 Paltoglou 2013: Weighted Arithmetic Mean、Weighted Geometric Mean
 Malandrakis 2013: linear regression
Paltoglou, G., Theunis, M., Kappas, A., & Thelwall, M. (2013). Predicting emotional responses to long informal text. Affective Computing, IEEE Transactions on, 4(1), 106-115.
Malandrakis, N., Potamianos, A., Iosif, E., & Narayanan, S. (2013). Distributional semantic models for affective text analysis. Audio, Speech, and Language Processing, IEEE
Transactions on, 21(11), 2379-2392.
16
 To find the relationship between words and sentence-level sentiment.
CNN Method Lexicon-based Methods
Word Dense vector VA value
Relationship Auto learned Manually specified
Training data Many Few or None
Word Order Considered* Not Considered
Interpretation Black Box Easy
17
 To find the relationship between words and sentence-level sentiment.
 Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression
 Word Representation: dense vector, distributed representation
我们的
心
不像
明镜
不可以
美丑
善恶
全部
包容
boat
ship
vessel
good
happy
Beijing
Shanghai
glad
Semantic information of word is encoded in the dense vector. 18
 Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression
我们的
心
不像
明镜
不可以
美丑
善恶
全部
包容Sentence
Matrix
[ : 1,:]( )i i i mc f w S b   
 Dimension Reduced
 Reduce the parameters of the model
 Parameter sharing
f: Activation function, Relu, tanh, sigmoid, …
𝑓 𝑥 = max(0, 𝑥)
19
 Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression
 Aggregate the information and capture the most important features
我们的
心
不像
明镜
不可以
美丑
善恶
全部
包容
3 6 79 7 54
79 9
Max pool with 5×1 filters and stride 1
20
 Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression
我们的
心
不像
明镜
不可以
美丑
善恶
全部
包容
x1
x2
xn
linear ℎ 𝑥𝑖, 𝑤 = 𝑤𝑇𝑥𝑖 = 𝑦𝑖
Objective function: mean squared error (MSE)
21
 Learning Algorithm: stochastic gradient descent (SGD)
 Learning the parameters of the model with labeled data
 Word vectors
 Convolution filters weights
 Linear regression weights
 Labeled data
 Chinese: CVAT dataset
 English: VADER dataset
Dataset size #word L Dims
CVAT 720 21094 192.1 V+A
Tweets 4000 15284 13.62 V
Movie 10605 29864 18.86 V
Amazon 3708 8555 17.3 V
NYT 5190 20941 17.48 V
22
 All the dataset is separated into training set, validation set and test set for model training,
hyper-parameters selection and model evaluation.
 Evaluation Metrics
 MSE, Mean Square Error
 MAE, Mean Absolute Error
 Pearson’s correlation coefficient r
%2
1
1
( )
n
i i
i
MSE y y
n 
 
%
1
1
| |
n
i i
i
MAE y y
n 
 
% %
% %
1 1 1
2 2
1 1 1 1
1 1
( )( )
1 1
( ) ( )
n n n
i ii j
i j j
n n n n
i ii j
i j i j
y y y y
n n
r
y y y y
n n
  
   
 

  
  
   
23
Methods CNN wGW RMAR LCEL RMV
Metrics MSE MAE r MSE MAE r MSE MAE r MSE MAE r MSE MAE r
valence ratings prediction
CVAT 1.17 0.88 0.73 2.30 1.23 0.62 1.89 1.14 0.63 1.81 0.95 0.66 1.49 0.98 0.72
Tweets 1.00 0.76 0.79 2.54 1.25 0.65 1.30 0.89 0.69 1.25 0.85 0.75 1.18 0.86 0.74
Movie 2.14 1.18 0.67 6.46 2.02 0.17 3.54 1.73 0.16 2.54 1.36 0.42 2.25 1.26 0.62
Amazon 1.50 0.95 0.67 3.75 1.51 0.35 2.66 1.38 0.27 1.45 1.14 0.45 2.20 1.19 0.56
NYT 0.84 0.72 0.36 3.47 1.54 0.28 0.79 0.71 0.26 0.83 0.75 0.37 0.61 0.63 0.60
arousal ratings prediction
CVAT 0.98 0.81 0.64 1.34 0.94 0.31 1.20 0.89 0.35 1.07 0.91 0.62 0.98 0.79 0.53
CNN method improved the VA prediction experiment performance compared with the lexicon-based and
RMV method.
Baseline method:
• wGW, Weighted geometric mean method
• RMAR, Regression on mean affective ratings
• LCEL, linear combination using expanded lexicon
• RMV, regression on mean vectors method
24
 Using Transfer Learning Techniques to improve VA prediction performance.
 Motivation: There are numerous dataset for sentiment classification but only a few dataset
for VA prediction. The sentiment polarity maybe useful for VA prediction.
 Method: Pre-training the classification-CNN model, and then use the parameters of the pre-
trained networks as the initial value of VA prediction-CNN model, keep training on VA corpus.
25
何云超 yunchaohe@gmail.com
Thank you
26

More Related Content

What's hot

Power Analysis Attacks
Power Analysis AttacksPower Analysis Attacks
Power Analysis AttacksLee Stewart
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysisJason Packer
 
Utility and game theory for schoolbook
Utility and game theory for schoolbookUtility and game theory for schoolbook
Utility and game theory for schoolbookesbunag
 
Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...
Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...
Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...Daniel Katz
 
Quantum-Like Bayesian Networks using Feynman's Path Diagram Rules
Quantum-Like Bayesian Networks using Feynman's Path Diagram RulesQuantum-Like Bayesian Networks using Feynman's Path Diagram Rules
Quantum-Like Bayesian Networks using Feynman's Path Diagram RulesCatarina Moreira
 
Applications of game theory on event management
Applications of game theory on event management Applications of game theory on event management
Applications of game theory on event management Sameer Dhurat
 
Crime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVACrime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVATom Donoghue
 
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...Catarina Moreira
 
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...nszakir
 

What's hot (14)

Power Analysis Attacks
Power Analysis AttacksPower Analysis Attacks
Power Analysis Attacks
 
Sentiment analysis
Sentiment analysisSentiment analysis
Sentiment analysis
 
Bachelor Thesis
Bachelor ThesisBachelor Thesis
Bachelor Thesis
 
Game theory
Game theoryGame theory
Game theory
 
Utility and game theory for schoolbook
Utility and game theory for schoolbookUtility and game theory for schoolbook
Utility and game theory for schoolbook
 
Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...
Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...
Quantitative Methods for Lawyers - Class #6 - Basic Statistics + Probability ...
 
Quantum-Like Bayesian Networks using Feynman's Path Diagram Rules
Quantum-Like Bayesian Networks using Feynman's Path Diagram RulesQuantum-Like Bayesian Networks using Feynman's Path Diagram Rules
Quantum-Like Bayesian Networks using Feynman's Path Diagram Rules
 
Applications of game theory on event management
Applications of game theory on event management Applications of game theory on event management
Applications of game theory on event management
 
Game theory
Game theoryGame theory
Game theory
 
Game theory
Game theoryGame theory
Game theory
 
Crime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVACrime Analysis using Regression and ANOVA
Crime Analysis using Regression and ANOVA
 
FLIPKART SAMSUNG
FLIPKART SAMSUNGFLIPKART SAMSUNG
FLIPKART SAMSUNG
 
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
The Relation Between Acausality and Interference in Quantum-Like Bayesian Net...
 
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
Chapter 6 part1- Introduction to Inference-Estimating with Confidence (Introd...
 

Similar to Continuous Sentiment Intensity Prediction based on Deep Learning

韩国会议
韩国会议韩国会议
韩国会议YAO YUAN
 
Computational Finance Introductory Lecture
Computational Finance Introductory LectureComputational Finance Introductory Lecture
Computational Finance Introductory LectureStuart Gordon Reid
 
Computational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding RegionsComputational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding Regionsbutest
 
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Simplilearn
 
Textual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie ReviewsTextual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie ReviewsYousef Fadila
 
[Revised] Intro to CNN
[Revised] Intro to CNN[Revised] Intro to CNN
[Revised] Intro to CNNVincent Tatan
 
Methodological Study Of Opinion Mining And Sentiment Analysis Techniques
Methodological Study Of Opinion Mining And Sentiment Analysis Techniques  Methodological Study Of Opinion Mining And Sentiment Analysis Techniques
Methodological Study Of Opinion Mining And Sentiment Analysis Techniques ijsc
 
Methodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniquesMethodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniquesijsc
 
Regressioin mini case
Regressioin mini caseRegressioin mini case
Regressioin mini caseveesingh
 
Other classification methods in data mining
Other classification methods in data miningOther classification methods in data mining
Other classification methods in data miningKumar Deepak
 
Kinetic bands versus Bollinger Bands
Kinetic bands versus Bollinger  BandsKinetic bands versus Bollinger  Bands
Kinetic bands versus Bollinger BandsAlexandru Daia
 
Telefonica Lunch Seminar
Telefonica Lunch SeminarTelefonica Lunch Seminar
Telefonica Lunch SeminarNeal Lathia
 
Movie Sentiment Analysis using Deep Learning RNN
Movie Sentiment Analysis using Deep Learning RNNMovie Sentiment Analysis using Deep Learning RNN
Movie Sentiment Analysis using Deep Learning RNNijtsrd
 
SVM & KNN Presentation.pptx
SVM & KNN Presentation.pptxSVM & KNN Presentation.pptx
SVM & KNN Presentation.pptxMohamedMonir33
 
Facial Expression Recognition via Python
Facial Expression Recognition via PythonFacial Expression Recognition via Python
Facial Expression Recognition via PythonSaurav Gupta
 
Predicting Facial Expression using Neural Network
Predicting Facial Expression using Neural Network Predicting Facial Expression using Neural Network
Predicting Facial Expression using Neural Network Santanu Paul
 

Similar to Continuous Sentiment Intensity Prediction based on Deep Learning (20)

SAC TRECK 2008
SAC TRECK 2008SAC TRECK 2008
SAC TRECK 2008
 
韩国会议
韩国会议韩国会议
韩国会议
 
Computational Finance Introductory Lecture
Computational Finance Introductory LectureComputational Finance Introductory Lecture
Computational Finance Introductory Lecture
 
Computational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding RegionsComputational Biology, Part 4 Protein Coding Regions
Computational Biology, Part 4 Protein Coding Regions
 
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
 
Textual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie ReviewsTextual & Sentiment Analysis of Movie Reviews
Textual & Sentiment Analysis of Movie Reviews
 
[Revised] Intro to CNN
[Revised] Intro to CNN[Revised] Intro to CNN
[Revised] Intro to CNN
 
Methodological Study Of Opinion Mining And Sentiment Analysis Techniques
Methodological Study Of Opinion Mining And Sentiment Analysis Techniques  Methodological Study Of Opinion Mining And Sentiment Analysis Techniques
Methodological Study Of Opinion Mining And Sentiment Analysis Techniques
 
Methodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniquesMethodological study of opinion mining and sentiment analysis techniques
Methodological study of opinion mining and sentiment analysis techniques
 
Regressioin mini case
Regressioin mini caseRegressioin mini case
Regressioin mini case
 
Other classification methods in data mining
Other classification methods in data miningOther classification methods in data mining
Other classification methods in data mining
 
Kinetic bands versus Bollinger Bands
Kinetic bands versus Bollinger  BandsKinetic bands versus Bollinger  Bands
Kinetic bands versus Bollinger Bands
 
Telefonica Lunch Seminar
Telefonica Lunch SeminarTelefonica Lunch Seminar
Telefonica Lunch Seminar
 
Movie Sentiment Analysis using Deep Learning RNN
Movie Sentiment Analysis using Deep Learning RNNMovie Sentiment Analysis using Deep Learning RNN
Movie Sentiment Analysis using Deep Learning RNN
 
report
reportreport
report
 
SVM & KNN Presentation.pptx
SVM & KNN Presentation.pptxSVM & KNN Presentation.pptx
SVM & KNN Presentation.pptx
 
Facial Expression Recognition
Facial Expression RecognitionFacial Expression Recognition
Facial Expression Recognition
 
Facial Expression Recognition via Python
Facial Expression Recognition via PythonFacial Expression Recognition via Python
Facial Expression Recognition via Python
 
Predicting Facial Expression using Neural Network
Predicting Facial Expression using Neural Network Predicting Facial Expression using Neural Network
Predicting Facial Expression using Neural Network
 
2012 predictive clusters
2012 predictive clusters2012 predictive clusters
2012 predictive clusters
 

Recently uploaded

Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxchadhar227
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...gragchanchal546
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...gajnagarg
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...gajnagarg
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...gajnagarg
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...nirzagarg
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...HyderabadDolls
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themeitharjee
 
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...HyderabadDolls
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...HyderabadDolls
 

Recently uploaded (20)

Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
Nirala Nagar / Cheap Call Girls In Lucknow Phone No 9548273370 Elite Escort S...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about them
 
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
 

Continuous Sentiment Intensity Prediction based on Deep Learning

  • 1. Yunchao He (何云超) 2015.9.15 @ Yuan Ze University
  • 2.  “unbelievably disappointing”  “Full of zany characters and richly applied satire, and some great plot twists”  “this is the greatest screwball comedy ever filmed”  “It was pathetic. The worst part about it was the boxing scenes.”  Sentiment Analysis  Using NLP, statistics, or machine learning methods to extract, identify, or otherwise characterize the sentiment content of a text unit  Sometimes called opinion mining, although the emphasis in this case is on extraction  Other names: Opinion extraction、Sentiment mining、Subjectivity analysis 2
  • 3. 3
  • 4.  Movie: is this review positive or negative?  Products: what do people think about the new iPhone?  Public sentiment: how is consumer confidence? Is despair increasing?  Politics: what do people think about this candidate or issue?  Prediction: predict election outcomes or market trends from sentiment 4
  • 5.  Short text classification based on Semantic clustering  Sentiment intensity prediction using CNN  Transfer Learning* * Future works 5
  • 6.  People express opinions in complex ways  In opinion texts, lexical content alone can be misleading  Intra-textual and sub-sentential reversals, negation, topic change common  Rhetorical devices such as sarcasm, irony, implication, etc. 6
  • 7.
  • 8.  Tokenization  Feature Extraction: n-grams, semantics, syntactic, etc.  Classification using different classifiers  Naïve Bayes  MaxEnt  SVM  Drawback  Feature Sparsity S1: I really like this movie [...0 0 1 1 1 1 1 0 0 ... ] 8 S1: This phone has a good keypad S2: He will move and leave her for good
  • 9.  Using clustering algorithm to aggregate short text to form big clusters, in which each cluster has the same topic and the same sentiment polarity, to reduce the sparsity of short text representation and keep interpretation. S1: it works perfectly! Love this product S2: very pleased! Super easy to, I love it S3: I recommend it it works perfectly love this product very pleased super easy to I recommend S1: [1 1 1 1 1 1 0 0 0 0 0 0 0] S2: [0 0 0 1 0 0 1 1 1 1 1 1 0] S3: [1 0 0 0 0 0 0 0 0 0 0 1 1] S1+S2+S3: [...0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0...] 9
  • 10.  Training data labeled with positive and negative polarity  K-means clustering algorithm is used to cluster positive and negative text separately.  K-means, KNN, LDA… works perfectly! Love this product completely useless, return policy very pleased! Super easy to, I am pleased was very poor, it has failed highly recommend it, high recommended! it totally unacceptable, is so bad works perfectly! Love this product very pleased! Super easy to, I am pleased highly recommend it, high recommended! completely useless, return policy was very poor, it has failed it totally unacceptable, is so bad Topical clusters 10
  • 11. Classifier: Multinomial Naive Bayes Probabilistic classifier: get the probability of label given a clustered text , 1 arg max ( | ) arg max ( ) ( | ) Ci i s S i j s S j N s P s C P s P C s        $ ( ) sN P s N  , , ( , ) 1 ( | ) ( | ) | | i j i j x V N C s P C s N x s V     Bayes’ theory Independent assumption 11
  • 12.  Given an unlabeled text , we use Euclidean distance to find the most similar positive cluster , and the most similar negative cluster  The sentiment of , is estimated according to the probabilistic change of the two clusters when merging with . (vs. KNN)  This merging operation is called two-stage-merging method, as each unlabeled text will be merged two times. 0, | ( ) ( ) | | ( ) ( ) | ( ) 1, . m m n n j P NC P C P NC P C f x otherwise            mC  jx nC  jx jx 12
  • 13.  Dataset: Stanford Twitter Sentiment Corpus (STS)  Baseline: bag-of-unigrams and bigrams without clustering  Evaluation Metrics: accuracy, precision, recall  The average precision and accuracy is 1.7% and 1.3% higher than the baseline method. Methods Accuracy Precision Recall Our Method 0.816 0.82 0.813 Bigrams 0.805 0.807 0.802 13
  • 14.
  • 15.  Continuous sentiment intensity provides fine-grained representation of sentiment.  Representing sentiment as Valence-arousal can easily convert to discrete categories. “unbelievably disappointing” Model V: -0.5 A: 0.3 15
  • 16.  Lexicon based Method. To find the relationship between word-level and sentence-level sentiment values. Word-level information comes from sentiment lexicon, e.g. ANEW.  Paltoglou 2013: Weighted Arithmetic Mean、Weighted Geometric Mean  Malandrakis 2013: linear regression Paltoglou, G., Theunis, M., Kappas, A., & Thelwall, M. (2013). Predicting emotional responses to long informal text. Affective Computing, IEEE Transactions on, 4(1), 106-115. Malandrakis, N., Potamianos, A., Iosif, E., & Narayanan, S. (2013). Distributional semantic models for affective text analysis. Audio, Speech, and Language Processing, IEEE Transactions on, 21(11), 2379-2392. 16
  • 17.  To find the relationship between words and sentence-level sentiment. CNN Method Lexicon-based Methods Word Dense vector VA value Relationship Auto learned Manually specified Training data Many Few or None Word Order Considered* Not Considered Interpretation Black Box Easy 17
  • 18.  To find the relationship between words and sentence-level sentiment.  Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression  Word Representation: dense vector, distributed representation 我们的 心 不像 明镜 不可以 美丑 善恶 全部 包容 boat ship vessel good happy Beijing Shanghai glad Semantic information of word is encoded in the dense vector. 18
  • 19.  Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression 我们的 心 不像 明镜 不可以 美丑 善恶 全部 包容Sentence Matrix [ : 1,:]( )i i i mc f w S b     Dimension Reduced  Reduce the parameters of the model  Parameter sharing f: Activation function, Relu, tanh, sigmoid, … 𝑓 𝑥 = max(0, 𝑥) 19
  • 20.  Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression  Aggregate the information and capture the most important features 我们的 心 不像 明镜 不可以 美丑 善恶 全部 包容 3 6 79 7 54 79 9 Max pool with 5×1 filters and stride 1 20
  • 21.  Sentence Matrix -> Convolution Operator -> Max Pooling -> Regression 我们的 心 不像 明镜 不可以 美丑 善恶 全部 包容 x1 x2 xn linear ℎ 𝑥𝑖, 𝑤 = 𝑤𝑇𝑥𝑖 = 𝑦𝑖 Objective function: mean squared error (MSE) 21
  • 22.  Learning Algorithm: stochastic gradient descent (SGD)  Learning the parameters of the model with labeled data  Word vectors  Convolution filters weights  Linear regression weights  Labeled data  Chinese: CVAT dataset  English: VADER dataset Dataset size #word L Dims CVAT 720 21094 192.1 V+A Tweets 4000 15284 13.62 V Movie 10605 29864 18.86 V Amazon 3708 8555 17.3 V NYT 5190 20941 17.48 V 22
  • 23.  All the dataset is separated into training set, validation set and test set for model training, hyper-parameters selection and model evaluation.  Evaluation Metrics  MSE, Mean Square Error  MAE, Mean Absolute Error  Pearson’s correlation coefficient r %2 1 1 ( ) n i i i MSE y y n    % 1 1 | | n i i i MAE y y n    % % % % 1 1 1 2 2 1 1 1 1 1 1 ( )( ) 1 1 ( ) ( ) n n n i ii j i j j n n n n i ii j i j i j y y y y n n r y y y y n n                     23
  • 24. Methods CNN wGW RMAR LCEL RMV Metrics MSE MAE r MSE MAE r MSE MAE r MSE MAE r MSE MAE r valence ratings prediction CVAT 1.17 0.88 0.73 2.30 1.23 0.62 1.89 1.14 0.63 1.81 0.95 0.66 1.49 0.98 0.72 Tweets 1.00 0.76 0.79 2.54 1.25 0.65 1.30 0.89 0.69 1.25 0.85 0.75 1.18 0.86 0.74 Movie 2.14 1.18 0.67 6.46 2.02 0.17 3.54 1.73 0.16 2.54 1.36 0.42 2.25 1.26 0.62 Amazon 1.50 0.95 0.67 3.75 1.51 0.35 2.66 1.38 0.27 1.45 1.14 0.45 2.20 1.19 0.56 NYT 0.84 0.72 0.36 3.47 1.54 0.28 0.79 0.71 0.26 0.83 0.75 0.37 0.61 0.63 0.60 arousal ratings prediction CVAT 0.98 0.81 0.64 1.34 0.94 0.31 1.20 0.89 0.35 1.07 0.91 0.62 0.98 0.79 0.53 CNN method improved the VA prediction experiment performance compared with the lexicon-based and RMV method. Baseline method: • wGW, Weighted geometric mean method • RMAR, Regression on mean affective ratings • LCEL, linear combination using expanded lexicon • RMV, regression on mean vectors method 24
  • 25.  Using Transfer Learning Techniques to improve VA prediction performance.  Motivation: There are numerous dataset for sentiment classification but only a few dataset for VA prediction. The sentiment polarity maybe useful for VA prediction.  Method: Pre-training the classification-CNN model, and then use the parameters of the pre- trained networks as the initial value of VA prediction-CNN model, keep training on VA corpus. 25