• No results found

A Framework for Combining Acoustic and Textual Features in Sentiment Analysis

N/A
N/A
Protected

Academic year: 2020

Share "A Framework for Combining Acoustic and Textual Features in Sentiment Analysis"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 7, Issue 12, December 2017)

12

A Framework for Combining Acoustic and Textual Features in

Sentiment Analysis

Sureshkumar Govindaraj

Department of Computer Science, Pondicherry University, India

Abstract—Sentiment analysis has been used in widespread applications which helps the customers to analyze product qualities and helps the business people in customer retention, product promotions and customer behavior analysis. Traditionally textual features has been used for sentiment analysis. But, textual features alone cannot capture the deep emotions of customers particularly when customer’s response is in the form of voice. In this paper, a method has been proposed for combining acoustic features and textual features for performing sentiment analysis on customers’ voice response. The proposed method, extracts potential acoustic features that represent various emotions of customers speaks about products. These acoustic emotion features are combined with lexical sentiment features and used in supervised classifier to predict the sentiments of customers. The audio speech data set prepared from Amazon product reviews by trained actors has been used for the purpose of experimental evaluations.

KeywordsSentiment Analysis, Acoustic Features, Textual Features, Sentiment Classification.

I. INTRODUCTION

Automatic sentiment analysis of voice data can support the business community to understand the true emotions of their customers, which will help them to pay special attention according to customers‘ satisfaction levels. The existing researches on sentiment analysis failed to utilize voice emotion features for sentiment analysis. The proposed approach to perform sentiment analysis investigates the effect of acoustic features when it is combined with lexicon based sentiment features. Audio features such as voice intensity, loudness, fundamental frequency (F0) and Mel-Frequency Cepstral Coefficients (MFCC) introduced by [1] has been used in this paper. The audio data is transcribed into text using automatic speech recognition [2], and then SentiWordNet [3] tool has been used for extracting word features such as positive, negative and objectivity scores. The popular classifiers Support Vector Machine is used for the automatic prediction of customer sentiments about products. The sentiments categorized as positive, neutral, and negative.

The acoustic emotion features are used to enhance the sentiment polarity indications obtained from text-based sentiment features by adopting customers‘ mood or emotions.

The experiments are conducted with voice clips generated by replicating the product review text documents crawled from amazon.com. The results obtained by well

performing supervised classifiers with different

combinations of sentiment features are analyzed.

II. RELATED WORK

The most of the existing methods proposed for performing sentiment analysis deals with textual features. There are some extended methods proposed to utilize adverbs and adjective features that enhance the sentiment polarity of sentiment words [4, 5, 6]. The bag-of-word features such as adverbs and adjectives proven to be suitable to use with rule based classifiers [7]. The sentiment analysis methods used in many applications, such as text to speech synthesis [8], opinion mining in on-line forums and electronic news media [9] [10], question answering [11], text summarization [12], and citation analysis [13].

(2)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 7, Issue 12, December 2017)

13

There are some other acoustic attributes used as the cue to recognize voice emotions are Mel-frequency cepstral coefficients (MFCC), Mel-based speech signal power coefficients, formants and temporal features such as speech rate and pausing [19]. In several methods, prosody features are also used for speech-based emotion recognition [20, 21].

From the survey it is observed that, emotion based sentiment analysis methods in general, aiming at recognizing the mood and sentiment of the people using both conceptual semantics (sentiment words) and the mental as well as physical-state of the people [22].

III. PROPOSED METHOD

[image:2.612.49.292.462.575.2]

The method proposed in this paper for automatic analysis of sentiments, utilizes emoticons features (EF) extracted from product reviews presence in the form of voice data and sentiment features (SF) extracted form of textual transcription of the same audio clips. The objective of this proposal is to identify the opinion of a customer about a product in a more accurate level. The opinion is classified into three types, which reflect the sentiment polarity and emotional status of the customers. The architecture of the proposed method is depicted in Fig. 1. The proposed model takes voice data as input and delivers any one sentiment (opinion) from the three categories; positive, neutral, and negative.

Figure 1. Architecture of the proposed sentiment classification Framework.

The central part of the proposed method is a classifier model trained by using voice and text features. The trained classifier model can be used to predict sentiments from new voice data. The features are extracted in two separate channels. The voice features are extracted using OpenEAR [1] natural language processing toolkit. The toolkit is capable to extract so many emotion features from wave format audio clips.

There are 23 features used in this paper are widely used in many researches on emotion recognition. The text feature is extracted by converting the voice into speech text using a speech recognition toolkit. Not all the words presences in speech text are expected to carry sentiment indications. Hence, a lexical parser has been used for extracting sentiment carrying words that is considered as potential sentiment features. The sentiWordNet [3] tool used for calculating sentiment scores. These voice and text features are validated using well performing classifier model to identify the suitable feature set for the prediction of sentiments from voice data.

In this paper, SVM classification model used to analyze the effectiveness of emotion features and sentiment features for sentiment analysis. The proposed method to automatically extract sentiment word features from textual product review document uses the Stanford lexical parser [23] for generating a parse tree for each individual sentence. Then, a binary decision tree-based rule engine applies set of hand-coded rules on the lexical parsing patterns. The outcome of the rule engine is a set of triples consists of three components: aspect, which represents the attributes of product; predicate which links an emotion towards the aspect; and target sentiment words, which are considered as the sentiment carrying words. The set of such triples are used to calculate sentiment scores for training the classifier model, which can be used to predict the true sentiment of the customers on a specific product.

A. Sentiment Features (SF)

The lexical tool SentiWordNet [3] is used for automatically extracting sentiment features from text. SentiWordNet consists of annotated synsets of WordNet according to the notions of ―positivity‖, ―negativity‖, and ―neutrality‖. Each synset is associated to three numerical scores Pos(s), Neg(s), and Obj(s) which indicate the positive, negative, and objective nature of the terms contained in the synset. The objectivity score of a word is calculated according to (1).

1 ( )

ObjScore  PosScoreNegScore 

(3)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 7, Issue 12, December 2017)

14

B. Emotion Features (EF)

The open source natural language processing software OpenEAR [1] has been used in this paper for extracting acoustic features from audio clips. The most important voice signal measures such as prosody, energy, voicing, spectrum, and cepstral features are being used as the acoustic features. Prosody features are extracted from frequency and amplitude of the audio signal that represent the intensity, loudness, and pitch. Energy features describe the human loudness perception, and the presence of voice is identified using energy feature. Cepstral features represent changes or periodicity in the spectrum features that is measured by Mel-frequency cepstral coefficients calculated based on the Fourier transform of a speech frame. These acoustic features represent the emotional state of the speaker.

Thus, the following emotion feature scores are calculated to construct the emotion feature vector.

Pitch: Minimum, maximum, mean, standard deviation, absolute value, quantile, ratio between voiced and unvoiced frames.

Duration: Time (

t) and Height (

h).

Intensity: Minimum, maximum, mean, standard deviation, quantile.

Formant: First formant, second formant, third formant, fourth formant, fifth formant, second formant / first formant, third formant / first formant.  Rhythm: Speaking rate.

IV. DATA AND EXPERIMENTS

The dataset used in this paper consists of 120 audio clips recorded in a controlled environment with 10 trained actors. The textual product reviews selected from Amazon product review collection in five different scenarios simulating real customer emotion during a conversation with call-centre agent are selected. These scenarios reflect the customer opinion on a product in three category. The product reviews cover five different products such as mobile phones, mp3 players, digital cameras, shoes and watches. The audio clips are converted again from speech to text for extracting lexical sentiment features. The audio clips used for training the classifiers are pre-labeled depending on the context of the speech, there are 40 instances are used in each category positive, neutral and negative.

For the purpose of feature evaluation, a separate training and test set has been prepared for text sentiment features (SF), voice emotion features (EF) and voice emotion features combined with sentiment features (EF+SF). Each data set has been selected to find the effect of emotion features on intensifying the sentiment classification process. The data sets were investigated using the well performing SVM classifier used in natural language processing researches [24, 25]. The LibSVM [26] multi-class SVM model has been used for assigning three different class labels to the product review data. Multi-class SVM (n-SVM) defines a hyper plane by calculating distance between the finite numbers of feature values. The n-SVM model is used with a RBF kernel with a bias and gamma of 1.0 as Kernel function parameters.

V. RESULTS

The individual data set has been individually evaluated using same classifier model. For the purpose of performance comparison, the test data set are manually evaluated using Gold Standard evaluation strategy. Then, the confusion matrix tables are plotted by comparing classifier outcome with human validation. From the obtained confusion tables the standard performance measures such as the accuracy, precision, and recall scores are calculated for evaluating the data sets. The calculated precision, recall and accuracy scores SF, EF and SF+EF feature sets are visualized in Table 1. When the SVM classifier model is tested with lexical sentiment feature (SF) alone, achieved a highest accuracy of 80% for ‗positive‘ category and the mean accuracy obtained for all the three categories is 72%. Highest accuracy of 73 % is achieved for ‗positive‘ category with only acoustic emotion features (EF), and the overall accuracy obtained for three categories is 65%. The same classifier model was used to test the data set consisting both sentiment and emotion features (SF+EF), that gained the highest accuracy of 93% in ‗negative‘ category and the overall accuracy of all three categories is 85%. The highest accuracy obtained against the appropriate sentiment categories are highlighted in bold.

TABLE 1

PRECISION,RECALL AND ACCURACY SCORES CALCULATED FOR SF

FEATURES.

SF

Precision Recall Accuracy

Positive 0.74 0.89 0.80 Neutral 0.56 0.53 0.58 Negative 0.82 0.78 0.78

(4)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 7, Issue 12, December 2017)

15

TABLE 2

PRECISION,RECALL AND ACCURACY SCORES CALCULATED FOR EF

FEATURES.

EF

Precision Recall Accuracy

Positive 0.65 0.83 0.73

Neutral 0.53 0.53 0.55

Negative 0.74 0.64 0.68

Mean 0.64 0.67 0.65

TABLE 3

PRECISION,RECALL AND ACCURACY SCORES CALCULATED FOR

SF+EF FEATURES.

SF+EF

Precision Recall Accuracy

Positive 0.86 0.90 0.88

Neutral 0.78 0.70 0.75

Negative 0.91 0.95 0.93

Mean 0.85 0.85 0.85

VI. DISCUSSION AND COMPARISONS

Figure 2. Comparison between Precision, Recall and accuracy scores obtained for sentiment categories with SF, EF and SF+EF features.

The key objective of this paper is to investigate the effectiveness of the emotion features extracted from voice data (speech) on improving the accuracy of sentiment classification process. Hence, the classification accuracy of SF and EF features are compared with combined SF+EF features. The accuracy comparison between three types of sentiment category is depicted in Fig. 2. Due to the effect of emotion signals, the classifier performed better for positive and negative sentiments than neutral.

The best accuracy of 93 % is obtained by SVM with SF and EF features combined together. The results may be compared with other work that utilized acoustic features for emotion recognition [19].

The best accuracy obtained by current methods is ranging from 65% to 88%. Souraya Ezzat [14] reported overall accuracy of 74.4 % using SVM Key Graph method. Thus, the proposed method achieved much better accuracy than previous approaches.

VII. CONCLUSIONS AND FUTURE WORK

In this paper, a method has been proposed that accepts a wave format audio clip to extracts emotion features and sentiment features. These extracted features used to predict sentiments of a customer speaking to a Call-Centre agent. The extracted three different feature sets are investigated by using well performing classifier. The notable contribution of this work lies in the analysis of the role of human emotions expressed in the form of speech for increasing the intensity of sentiment polarity. Also, it is demonstrated how emotion features can be combined with lexicon based sentiment features in machine learning based sentiment analysis technique. From the experimental results, it is evident that the human emotion signal increases the classification accuracy of sentiment categorization process. The finding of this qualitative study can be used in variety of applications such as automated customer behavior analysis, customer redress systems, customized retail services, and business process quality improvement.

This work can be further extended by correlating the emotion cues with sentiment polarity of corresponding word for exploiting the explicit relationship between sentiment and emotion. Furthermore, this approach can be tested with languages other than English to device a multi-lingual sentiment analysis system.

REFERENCES

[1] Florian Eyben, Martin Wöllmer, Björn Schuller, ―OpenEAR - Introducing the Munich Open-Source Emotion and Affect Recognition Toolkit,‖ in 4th International HUMAINE Association Conference on Affective Computing and Intelligent Interaction 2009 (ACII 2009), IEEE, Amsterdam, The Netherlands, 2009, pp. 8-12. [2] Povey, et. al., ―The Kaldi Speech Recognition Toolkit,‖ IEEE 2011

Workshop on Automatic Speech Recognition and Understanding, 2011, pp. 1-4.

[3] Esuli and F.Sebastiani, ―Sentiwordnet - A publicly available lexical resource for opinion mining. In: LREC (2006).

[4] Turney, ―Thumbs up or thumbs down? Semantic orientation applied to unsupervised classification of reviews,‖ in 40th Annual Meeting of the Association for Computational Linguistics (ACL 2002), Philadelphia, 2002, pp. 417–424.

[5] Hu and B. Liu, ―Mining and summarizing customer reviews,‖ in 10th

ACM SIGKDD international conference on Knowledge discovery and data mining, Seattle, Washington, 2004, pp. 168-177.

[image:4.612.56.292.115.556.2] [image:4.612.58.296.318.531.2]
(5)

International Journal of Emerging Technology and Advanced Engineering

Website: www.ijetae.com (ISSN 2250-2459, ISO 9001:2008 Certified Journal, Volume 7, Issue 12, December 2017)

16

[7] Yang and C. Cardie, ―Extracting opinion expressions with semi-markov conditional random fields,‖ in 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, Jeju Island, Korea, 2012, pp. 1335-1345.

[8] Alm, D. Roth, and R. Sproat, ―Emotions from text: Machine learning for text-based emotion prediction,‖ in Empirical Methods in Natural Language Processing, Vancouver, Canada, 2005, pp. 347–354. [9] Balog, G. Mishne, and M. de Rijke, ―Why are they excited?

Identifying and explaining spikes in blog mood levels,‖ in 11th

Meeting of the European Chapter of the Association for Computational Linguistics (EACL-2006), 2006, pp. 207-210. [10] Carvalho, L. Sarmento, J. Teixeira, and M. Silva, ―Liars and saviors

in a sentiment annotated corpus of comments to political debates,‖ in Association for Computational Linguistics (ACL 2011), Portland, OR., vol. 2, 2011, pp.564-568.

[11] Oh, K. Torisawa, C. Hashimoto, T. Kawada, S. De Saeger, J. Kazama, and Y. Wang, ―Why question answering using sentiment analysis and word classes,‖ in 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, Jeju Island, Korea, 2012, pp. 368-378. [12] Carenini, R. Ng, and X. Zhou, ―Summarizing emails with

conversational cohesion and subjectivity,‖ in Association for Computational Linguistics: Human Language Technologies (ACLHLT 2008), Columbus, Ohio, 2008, pp. 773-782.

[13] Athar and S. Teufel, ―Context-enhanced citation sentiment detection,‖ in 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Montr´eal, Canada, 2012, pp. 597-601.

[14] Souraya Ezzat, Neamat El Gayar, M.Moustafa, Ghanem, ―Sentiment Analysis of Call Centre Audio Conversations using Text Classification,‖ International Journal of Computer Information Systems and Industrial Management Applications, vol. 4, 2012, pp. 619–627.

[15] Dragut, Eduard and C.Fellbaum, ―The Role of Adverbs in Sentiment Analysis,‖ in Frame Semantics in NLP: A Workshop in Honor of Chuck Fillmore,‖ ACL, Baltimore, MD, 2004.

[16] Hu, Xia and Tang, Jiliang and Gao, Huiji and Liu, Huan, ―Unsupervised Sentiment Analysis with Emotional Signals,‖ in 22nd

International Conference on World Wide Web, (WWW '13), Rio de Janeiro, Brazil, 2013, pp. 607-618.

[17] Marcela Charfuelan, Marc Schröder, ―Correlation analysis of sentiment analysis scores and acoustic features in audio-book narratives,‖ in 4th International Workshop on Corpora for Research on Emotion Sentiment & Social Signals, Istanbul, Turkey, O.A., 2012.

[18] Samaneh Moghaddam and Martin Ester: Opinion digger: an unsupervised opinion miner from unstructured product reviews. In: Proceedings of the 19th ACM international conference on Information and knowledge management (2010) 1-10.

[19] Zhigang, Deng, ―Analysis of Emotion Recognition using Facial Expressions, Speech and Multimodal Information,‖ in ACM 6th

International Conference on Multimodal Interfaces (ICMI 2004), 2004, pp. 205-211.

[20] Tato, R.Santos, R.Kompe, and J. M. Pardo, ―Emotional space improves emotion recognition,‖ in ICSLP, 2002, pp. 2029–2032. [21] El Ayadi, M. Kamel, and F. Karray, ―Survey on speech emotion

recognition: Features, classification schemes, and databases,‖ Pattern Recognition, vol. 44(3), 2011, pp. 572 – 587.

[22] Ververidis and C. Kotropoulos, ―Emotional speech recognition: Resources, features, and methods,‖ Speech Communication, vol. 48(9), 2006, pp. 1162–1181.

[23] Marie-Catherine de Marneffe, Christopher, D. Manning, ―The Stanford typed dependencies representation,‖ in COLING Workshop on Cross-framework and Cross-domain Parser Evaluation, 23 August 2008, Manchester, UK., 2008, pp. 1–8.

[24] E. Alpaydin, ―Introduction to Machine Learning,‖ The MIT Press, ISBN: 0-262-01211-1, 2004.

[25] Duda, R. O., Hart, P. E. & Stork, D. G, ―Pattern Classification‖, John Wiley & Sons, Second edition, 2000.

Figure

Figure 1.  Architecture of the proposed sentiment classification Framework.
Figure 2.   Comparison between Precision, Recall and accuracy scores obtained for sentiment categories with SF, EF and SF+EF features

References

Related documents

Centers for Disease Control and Prevention; EHR: Electronic health record; EMR: Electronic medical record; GHC: Group health centre; ITS: [Niagara Region] information

ARDS: Acute Respiratory Distress Syndrome; ATP: adenosine triphosphate; CO: carbon monoxide; DCI: decompression injury; DCS: Decompression sickness; ECG: electrocardiogram; FiO 2

HAR Human activity recognition HGA Human gait analysis HGI Human gait inference EM Expectation-Maximization GMM Gaussian mixture model RNN Recurrent neural networks LSTM Long-short

AGFI: Adjusted goodness of fit index; Ap: Apoplexy; AVE: Average variance extracted; CACM: China Association of Chinese Medicine; CC: Common cold; CFA: Confirmatory factor

This study aimed to develop and pilot test an educa- tional video containing information regarding the in- formed consent process for trauma patients undergoing surgery, develop

Since minimally invasive surgery was not performed by all of the surgeons of our staff, patients admitted for acute abdomen were treated by Laparoscopy or open surgery according to

suis cells were detected on PAECs incubated with the negative control preparation (Figure 5d).. To assess whether the presence

In particular, we demonstrate the congruity between advertising strategy and consumer value-based product type in influencing consumers’ brand love, and show that