Skip to main content

What Emotions Make One or Five Stars? Understanding Ratings of Online Product Reviews by Sentiment Analysis and XAI

  • Conference paper
  • First Online:
Artificial Intelligence in HCI (HCII 2020)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 12217))

Included in the following conference series:

Abstract

When people buy products online, they primarily base their decisions on the recommendations of others given in online reviews. The current work analyzed these online reviews by sentiment analysis and used the extracted sentiments as features to predict the product ratings by several machine learning algorithms. These predictions were disentangled by various methods of explainable AI (XAI) to understand whether the model showed any bias during prediction.

Study 1 benchmarked these algorithms (knn, support vector machines, random forests, gradient boosting machines, XGBoost) and identified random forests and XGBoost as best algorithms for predicting the product ratings. In Study 2, the analysis of global feature importance identified the sentiment joy and the emotional valence negative as most predictive features. Two XAI visualization methods, local feature attributions and partial dependency plots, revealed several incorrect prediction mechanisms on the instance-level. Performing the benchmarking as classification, Study 3 identified a high no-information rate of 64.4% that indicated high class imbalance as underlying reason for the identified problems.

In conclusion, good performance by machine learning algorithms must be taken with caution because the dataset, as encountered in this work, could be biased towards certain predictions. This work demonstrates how XAI methods reveal such prediction bias.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Carvalho, D.V., Pereira, E.M., Cardoso, J.S.: Machine learning interpretability: a survey on methods and metrics. Electronics 8, 1–34 (2019). https://doi.org/10.3390/electronics8080832

    Article  Google Scholar 

  2. Rudin, C.: Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nat. Mach. Intell. 1, 206–215 (2019). https://doi.org/10.1038/s42256-019-0048-x

    Article  Google Scholar 

  3. Mudambi, S.M., Schuff, D.: What makes a helpful online review? A study of customer reviews on amazon.com. MIS Q. Manag. Inf. Syst. 34, 185–200 (2010). https://doi.org/10.2307/20721420

    Article  Google Scholar 

  4. Bansal, B., Srivastava, S.: On predicting elections with hybrid topic based sentiment analysis of tweets. Procedia Comput. Sci. 135, 346–353 (2018). https://doi.org/10.1016/j.procs.2018.08.183

    Article  Google Scholar 

  5. Akhtar, N., Zubair, N., Kumar, A., Ahmad, T.: Aspect based sentiment oriented summarization of hotel reviews. Procedia Comput. Sci. 115, 563–571 (2017). https://doi.org/10.1016/j.procs.2017.09.115

    Article  Google Scholar 

  6. Hasan, A., Moin, S., Karim, A., Shamshirband, S.: Machine learning-based sentiment analysis for twitter accounts. Math. Comput. Appl. 23, 11 (2018). https://doi.org/10.3390/mca23010011

    Article  Google Scholar 

  7. Yu, Y.: Aspect-based Sentiment Analysis on Hotel Reviews. Arxiv Preprint 10 (2016)

    Google Scholar 

  8. de Kok, S., Punt, L., van den Puttelaar, R., Ranta, K., Schouten, K., Frasincar, F.: Review-level aspect-based sentiment analysis using an ontology. In: Proceedings of the ACM Symposium on Applied Computing, pp. 315–322 (2018). https://doi.org/10.1145/3167132.3167163

  9. Ekman, P.: Are there basic emotions? Psychol. Rev. 99, 550–553 (1992). https://doi.org/10.4081/jear.2011.169

    Article  Google Scholar 

  10. Vytal, K., Hamann, S.: Neuroimaging support for discrete neural correlates of basic emotions: a voxel-based meta-analysis. J. Cogn. Neurosci. 22, 2864–2885 (2010). https://doi.org/10.1162/jocn.2009.21366

    Article  Google Scholar 

  11. Saarimäki, H., et al.: Discrete Neural Signatures of Basic Emotions. Cereb. Cortex 26, 2563–2573 (2016). https://doi.org/10.1093/cercor/bhv086

    Article  Google Scholar 

  12. Rucker, D.D., Petty, R.E.: Emotion specificity and consumer behavior: anger, sadness, and preference for activity. Motiv. Emot. 28, 3–21 (2004). https://doi.org/10.1023/B:MOEM.0000027275.95071.82

    Article  Google Scholar 

  13. Delplanque, S., Lavoie, M.E., Hot, P., Silvert, L., Sequeira, H.: Modulation of cognitive processing by emotional valence studied through event-related potentials in humans. Neurosci. Lett. 356, 1–4 (2004). https://doi.org/10.1016/j.neulet.2003.10.014

    Article  Google Scholar 

  14. Bohrn, I.C., Altmann, U., Lubrich, O., Menninghaus, W., Jacobs, A.M.: When we like what we know - a parametric fMRI analysis of beauty and familiarity. Brain Lang. 124, 1–8 (2013). https://doi.org/10.1016/j.bandl.2012.10.003

    Article  Google Scholar 

  15. Kuhn, M.: Caret: classification and regression training (2018)

    Google Scholar 

  16. Karatzoglou, A., Smola, A., Hornik, K., Zeileis, A.: kernlab – an S4 package for kernel methods in R. J. Stat. Softw. 11, 1–20 (2004)

    Article  Google Scholar 

  17. Therneau, T., Atkinson, B.: rpart: recursive partitioning and regression trees (2019)

    Google Scholar 

  18. Liaw, A., Wiener, M.: Classification and regression by randomForest. R News 2, 18–22 (2002)

    Google Scholar 

  19. Greenwell, B., Boehmke, B., Cunningham, J., Developers, G.B.M.: gbm: Generalized Boosted Regression Models (2019)

    Google Scholar 

  20. Chen, T., Guestrin, C.: XGBoost: A Scalable Tree Boosting System. Arxiv (2016)

    Google Scholar 

  21. Doshi-Velez, F., Kim, B.: Towards a rigorous science of interpretable machine learning. 1–13 (2017)

    Google Scholar 

  22. Friedman, J.H.: Greedy function approximation: a gradient boosting machine. Ann. Stat. 29(5), 1189–1232 (2001). https://doi.org/10.2307/2699986

    Article  MathSciNet  MATH  Google Scholar 

Download references

Acknowledgment

This research was supported by the Yonsei University Faculty Research Fund of 2019-22-0199.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chaehan So .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

So, C. (2020). What Emotions Make One or Five Stars? Understanding Ratings of Online Product Reviews by Sentiment Analysis and XAI. In: Degen, H., Reinerman-Jones, L. (eds) Artificial Intelligence in HCI. HCII 2020. Lecture Notes in Computer Science(), vol 12217. Springer, Cham. https://doi.org/10.1007/978-3-030-50334-5_28

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-50334-5_28

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-50333-8

  • Online ISBN: 978-3-030-50334-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics