A Hybrid Approach for Automated Document-level Sentiment...

33
A Hybrid Approach for Automated Document-level Sentiment Classification (Proposal) Supervisor: Dr. Ahmed Rafea Presented by: Sara A. Morsy

Transcript of A Hybrid Approach for Automated Document-level Sentiment...

Page 1: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

A Hybrid Approach for Automated Document-level Sentiment Classification

(Proposal)

Supervisor:

Dr. Ahmed Rafea

Presented by:Sara A. Morsy

Page 2: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Overview

• Introduction & Background

• Approaches

• Literature Review

• Problem Statement & Motivation

• Proposed Approach

• Experimentation & Evaluation

2

Page 3: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

3

Page 4: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

What is Sentiment Classification?

• Aka Opinion Mining, Sentiment Extraction/Analysis, or Review Mining.

• It is the area of research that attempts to identify the opinion/sentiment that a person may hold towards an object.

• It is a broad area of computational lingu-

istics, natural language processing, text

mining and machine learning.

4

Page 5: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Sentiment Classification Tasks

• At the document-level:▫ Classify a whole document as positive, negative or

neutral.

• At the sentence-level:▫ Classify a sentence as subjective or objective and

then identify its sentiment as positive, negative or neutral.

• At the feature-level:▫ Classify the opinions on specific features in a

single review as positive, negative or neutral.

5

Page 6: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Applications

• “What other people think” is an important piece of information for most of us:▫ Individual Interest: People are interested in others’ opinions when purchasing a

product/service or finding opinions on political topics.▫ Market Intelligence: Companies are interested in categorizing positive and negative

reviews about their products. ▫ Political Interest: Government intelligence systems seek political opinions

expressed online.

• Opinion Search: ▫ Not supported by current search engines

• Recommendation & Summarization Systems

6

Page 7: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Resources and Tools for

Sentiment Analysis

7

Lexicons ToolsAnnotated

Corpora

Page 8: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

What is a Sentiment Lexicon?

8

• Find relevant words, phrases, and patterns that can be used to express subjectivity

▫ Words: adjectives, verbs, adverbs and nouns

▫ Phrases containing adjectives and adverbs

▫ Lexico-syntactic patterns

e.g. expense of <np>: at the expense of the world’s security and stability

• Determine the polarity of subjective expressions

Page 9: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Annotated Corpora

9

• An annotated corpus is needed to:

▫ Understand the problem.

▫ Create training data and gold standards.

• Annotation is done manually by analyzing the corpus documents and individual sentences and labeling them to their corresponding sentiment (positive, negative or neutral).

Page 10: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Tools

• An online dictionary to search for synonyms and antonyms, e.g. WordNet

• Machine learning classifiers that use text-classification algorithms:

▫ Support Vector Machines (SVM)

▫ Naïve Bayes (NB)

• Part-Of-Speech (POS) tagger

• Stemmer/Lemmatizer

10

Page 11: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Challenges

• Subjectivity detection & polarity classification:▫ It can’t be done with just a set of subjective keywords!▫ Context-sensitive This camera is great. (+ve)

A great amount of money was spent for promoting this camera. (neutral)

If you think this is a great camera, well think again, because … (-ve)

This film should be brilliant. It sounds like a great plot, the actors are first grade, and the supporting cast is goodas well, and Stallone is attempting to deliver a goodperformance. However, it can’t hold up. (-ve)

11

Page 12: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Challenges (cont’d)▫ Domain-dependent “Go read the book” can indicate +ve sentiment for book

reviews but –ve sentiment for movie reviews.

“Unpredictable”: +ve for movie reviews, -ve for car’s steering.

▫ Feature-dependent “long”: - This camera has a long battery life (+ve), vs

- The lens of this camera takes a long time to focus (-ve).

• Topic-sentiment interaction:▫ “Walmart reports that the profits rose”

- would be a +ve sentiment if the document is talking about Walmart.

- would be a -ve sentiment if the document is talking about Target.

12

Page 13: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

13

Page 14: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Document-level Sentiment

Classification

Machine Learning

Semantic Orientation

Manually Corpus-basedDictionary-

based

Hybrid Approaches

14

Page 15: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

1- Machine Learning (ML) Approach

• A classifier is trained using annotated corpora.• Features used:

▫ Syntactic Features: e.g. POS tags, n-grams, punctuation▫ Stylistic Features: Lexical Features: e.g. character- or word-based statistical

measures of word variation

Structural Features: e.g. number of paragraphs

• It uses text-classification algorithms, such as:▫ Support Vector Machines (best performance)▫ Naïve Bayes▫ AdaBoost

15

Page 16: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

2- Semantic Orientation (SO)

Approach

• A sentiment lexicon is built assigning polarity to sentiment-bearing words/phrases.

• Manually:▫ Labor-intensive task.▫ Done with the other techniques.

• Corpus-based: ▫ It finds co-occurrence patterns of words to determine their

sentiment polarity.▫ It requires a large corpus.▫ It can find words with domain-specific orientation.

• Dictionary-based: ▫ It uses a small seed list in a bootstrapping process to search for

synonyms and antonyms in a dictionary to determine their sentiment polarity.

▫ It can find a lot of words.

16

Page 17: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Pros and Cons of Approaches

ML Approach SO Approach

Advantages

Performs better on a single domain

Performs better across different domains

Contextual and domain-specific polarity

Does not require labeled data

Disadvant-ages

Requires a large annotatedcorpus

Prior polarity (no domain-specific polarity)

Does not take linguistic contextinto account, e.g. negation & intensification

Needs a manual check for the words and their correspondingpolarity and inter-annotator agreement

Negative classification bias Positive classification bias

17

Page 18: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Classification Bias of ML and SO

Approaches• Negative feelings are usually expressed using both

positive and negative words, e.g. This car is not good.

• Positive feelings are usually expressed using positive words only.

• The SO approach has a positive classification bias:▫ Since polarities of words are known in advance and

positive words sometimes predominate even in negative documents.

• The ML approach has a negative classification bias:▫ Since polarities of words are learnt automatically so it

is easier for the classifier to learn negative expressions.

18

Page 19: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

3) Hybrid Approaches

• Many researchers tried combining both ML and SO approaches to make use of their benefits.

• Examples include:

▫ Adding sentiment-bearing words with their SO as features for the classifier.

▫ Classifying documents with a sentiment lexicon and applying the high-confidence classified set to a classifier as training data.

19

Page 20: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

20

Page 21: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

1) Sentiment Analysis in Multiple

Languages• The authors used both syntactic and stylistic

features on an SVM classifier on movie reviews as well as English and Arabic web forums of extremist/hate groups.

• They developed a feature selection algorithm, called Entropy Weighted Genetic Algorithm.

• Using 10-fold cross-validation, they achieved the highest accuracy so far: ▫ 91.7% for movie reviews, and▫ 92.8% and 93.6% for English and Arabic web forums,

respectively.

21

Page 22: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

2) Lexicon-based Methods for Sentiment

Analysis

• The authors developed a sentiment lexicon manually, having separate dictionaries for:

▫ Adjectives – nouns – verbs – adverbs – intensifiers

• They also developed a list of:

▫ Negators – irrealis markers (modals, conditional markers (e.g. if), negative polarity items (e.g. any and anything), questions, and words enclosed in quotes)

• Besides, they implemented:

▫ Text-level features (e.g. frequency of unigrams) –weighting techniques – multiple cut-offs

22

Page 23: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

2) Lexicon-based Methods for

Sentiment Analysis, cont’d• They achieved high accuracy among different

review domains, with overall 78.74% accuracy.

• They achieved accuracy between 62.17-88.98%across different domains, e.g. MPQA, news, blogs and headlines.

• They also outperformed other sentiment lexicons, such as:

▫ The Maryland dictionary – The General Inquirer –The Subjectivity Dictionary – SentiWordNet

23

Page 24: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

3) A Lexicon-Enhanced Method for

Sentiment Classification

• The authors used a hybrid approach by adding sentiment-bearing words from SentiWordNet3.0 as features to an SVM classifier, beside syntactic and stylistic features.

• They applied Information Gain heuristic as a feature selection method.

• Using 10-fold cross-validation, they achieved between 78.85-84.15% accuracy among different review domains.

24

Page 25: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

4) SELC: A Self-Supervised Model for

Sentiment Classification• The authors developed a 2-phase model:

▫ 1st phase is lexicon-based: They used a sentiment lexicon and negation word list to

classify a set of documents.

▫ 2nd phase is corpus-based: They applied the high-confidence classified set as

training data for an SVM classifier and classified the uncertain set.

▫ Then, results from both phases were integrated to remove the classification bias of both approaches.

• They achieved an overall F1-score of 89.35% across different Chinese review domains.

25

Page 26: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Flow Chart of the SELC Model

26

Page 27: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Problem Statement & Motivation

• There is currently no automated domain-independent sentiment classification tool with high accuracy that does not need a manually-annotated corpus.

• Such a tool is needed for opinion search, recommendation, summarization and mining of the increasingly web opinionated content.

27

Page 28: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Proposed Approach

• Use an efficient sentiment lexicon (verbs, adverbs, adjectives, nouns, and intensifiers) and a negation word list and irrealis markers to classify the documents and apply the high-confidence ones as training data for an SVM classifier.

• Build an SVM classifier with selected syntactic, stylistic and sentiment features.

• Integrate the results of both the sentiment lexicon and the classifier.

• Compare these results with the base-line results.

28

Page 29: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Experimentation & Evaluation

• Datasets that will be used:▫ The Polarity Dataset (2,000 movie review texts, 1,000

positive and 1,000 negative) provided by Pang and Lee 2004.

▫ 400 review texts on: books, cars, computers, cookware, hotels, movies, music, and phones (25 positive and 25 negative reviews in each domain), obtained from Epinions.com (Taboada et al. 2011).

▫ A dataset of blogs collected about Jan 25 Revolution.• Different sentiment, syntactic and stylistic features

with different feature selection algorithms will be compared to apply the most efficient ones to the classifier.

29

Page 30: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

Experimentation & Evaluation (cont’d)

• Tools used:▫ Weka Software (SVM classifier)▫ Stanford POS tagger▫ MorphAdorner English Stemmer/Lemmatizer▫ A sentiment lexicon

• Evaluation metrics that will be used:▫ Precision▫ Recall▫ Accuracy▫ F1-score

30

Page 31: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

References

• A. Abbasi, H. Chen, and A. Salem, “Sentiment Analysis in Multiple Languages: Feature Selection for Opinion Classification in Web Forums,” ACM Trans. Information Systems, 2008, vol. 26, no. 3, pp. 1–34.

• A. Abbasi and H. Chen, “Applying Authorship Analysis to Extremist-Group Web Forum Messages,” IEEE Intelligent Systems, 2005, vol. 20, no. 5, pp. 67–75.

• B. Liu, “Sentiment Analysis and Subjectivity”, Handbook of Natural Language Processing, Second Edition, (editors: N. Indurkhya and F. J. Damerau), 2010.

• B. Pang and L. Lee, “A Sentimental Education: Sentiment Analysis using Subjectivity Summarization based on Minimum Cuts”, Proceedings of 42nd Meeting of the Association for Computational Linguistics, 2004, pp. 271-278, Barcelona, Spain.

31

Page 32: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

References (cont.)

• B. Pang and L. Lee, “Opinion Mining and Sentiment Analysis”, Foundations and Trends in Information Retrieval, 2008, vol. 2, nos. 1–2 pp. 1–135, ebook from http://www.cs.cornell.edu/home/llee/omsa/omsa.pdf

• L. Qiu , W. Zhang , C. Hu, and K. Zhao, “SELC: A Self-Supervised Model for Sentiment Classification”, Proceedings of the 18th ACM conference on Information and knowledge Management, November 02-06, 2009, Hong Kong, China.

• M. Taboada, J. Brooke, M. Tofiloski, K. Voll, and M. Stede, “Lexicon-based Methods for Sentiment Analysis”, Association for Computational Linguistics, 2011, vol. 1, no. 1, pp. 1-42.

• Y. Dang, Y. Zhang, and H. Chen, “A Lexicon-Enhanced Method for Sentiment Classification: An experiment on online product reviews”. IEEE Intelligent Systems, 2010, vol. 25, no. 4, pp. 46-53.

32

Page 33: A Hybrid Approach for Automated Document-level Sentiment ...rafea/CSCE590/Spring11/Presentations/Se… · Challenges •Subjectivity detection & polarity classification: ... “Sentiment

33