Research Article

Sentiment classification for movie reviews based on machine learning

Enzheng Chen*
Wuhan University

* Corresponding author: [email protected]

Abstract

The research of this article aims to achieve the classification of positive and negative emotions in film review texts. The dataset used is the IMDB dataset from the Kaggle website, which contains approximately 50,000 movie reviews that are classified as positive or negative emotions. This is a dataset for binary-sensitive classification containing substantively more data than previous benchmark datasets. This research will use two different models, SVM and CNN, to classify the dataset and then compare and analyze them. After completing the experiment, the SVM model achieved an accuracy of nearly 90%, while the CNN model only had an accuracy of about 82%. This research found that for binary classification problems, as long as the input data is processed well, SVM can also achieve results that are no less than or even better than CNN. SVM is simple and efficient but difficult to implement for large-scale training samples; CNN is suitable for solving problems with complex internal mechanisms, but its learning speed is relatively slow. Finally, we proposed our prospects for future research.

Keywords: sentiment; machine learning; SVM; CNN
Published: July 5, 2024
DOI: 10.54254/2755-2721/73/20240399
Volume: ACE Vol.73
pp. 204-213
Download PDF

References

  1. Yue G and Dong YH 2013 On the categorical and dimensional approaches of the theories of the basic structure of emotions Nankai Journal(Philosophy,Literature and Social Science Edition) 140-50
  2. Shu L, Xie J, Yang M, Li Z, Li Z, Liao D, Xu X and Yang X 2018 A Review of Emotion Recognition Using Physiological Signals. Sensors 18(7) 2074
  3. Ekman P 1992 An Argument for basic emotions Cogn. Emot 6 (3) 169-200
  4. Plutchik R 2001 The nature of emotions: Human emotions have deep evolutionary roots, a fact that may explain their complexity and provide tools for clinical practice Am. Sci 89 (4) 344-50
  5. Izard CE Basic emotions 2007 Natural kinds, emotion schemas, and a new paradigm Perspect. Psychol. Sci 2 (3) 260-80
  6. Levenson RW 2011 Basic Emotion Questions Emotion Review 3(4) 379-86
  7. Russel JA 1980 A circumplex model of affect J.Pers.Soc.Psychol 39(6) 1161-1178
  8. Mehrabian A 1997 Comparison of the PAD and PANAS as models for describing emotions and for differentiating anxiety from depression J. Psychopathol. Behavioural Assess 19(4) 331-57
  9. Watson D, Tellegen A, Wiese D and Vaidya J 1999 The two general activation systems of affect: Structural findings, evolutionary considerations, and psychobiological evidence J. Personal. Soc. Psychol 76(5) 820-838
  10. Valitutti A and Strapparava C 2010 Interfacing WORDNET-AFFECT with OCC Model of Emotions LREC 2010 - SEVENTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION J16-J19
  11. Vujic A, Starner T and Jackson M 2016 ISWC'16 - PROCEEDINGS OF THE 2016 ACM INTERNATIONAL SYMPOSIUM ON WEARABLE COMPUTERS 36-39
  12. Pang B, Lee L and Vaithyanathan S 2002 PROCEEDINGS OF THE 2002 CONFERENCE ON EMPIRICAL METHODS IN NATURAL LANGUAGE PROCESSING 79-86
  13. Wang, S and Manning C 2012 Baselines and bigrams: simple, good sentiment and topic classification Proceedings of the 50th annual meeting of the association for computational linguistics vol.2 90–94
  14. Collobert R and Wetson J 2008 A unified architecture for natural language processing: Deep neural networks with multitask learning International Conference on Machine Learning
  15. Kim Y 2014 Convolutional neural networks for sentence classification Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP) 1746-51.
  16. Kalchbrenner N, Grefenstette E and Blunsom P 2014 A Convolutional Neural Network for Modelling Sentences Proceedings of ACL 2014
  17. Vapnik V 2006 Learning hidden information: SVM+ 2006 IEEE International Conference on Granular Computing 22
  18. Kandel ER 2009 An introduction to the work of David Hubel and Torsten Wiesel The Journal of Physiology 587(12) 2733-41
  19. Tran M, Ray S and Pose R 2000 Neocognitron for rotated pattern recognition COMPUTERS AND THEIR APPLICATIONS 211-4