Skip to main content

Sentiment Analysis of YouTube Video Comments Using Deep Neural Networks

  • Conference paper
  • First Online:
Artificial Intelligence and Soft Computing (ICAISC 2019)

Abstract

Over the years, social networks have become an important vehicle for communication. Many users on YouTube use comments to express opinions or critique a subject. The amount of comments, for famous videos and channels, is huge, which poses the challenge of analysing user opinions efficiently. This article proposes a sentiment analysis model of YouTube video comments, using a deep neural network. We employed an embedding layer to represent input text as a tensor, then we used a pair of convolutional layers to extract features and a fully connected layer to make the classification. The output of the neural network is the sentiment classification among negative, positive or neutral. Two videos were chosen and their comments were classified by our model, by an alternative statistical model and by humans. The human classification was considered to be 100% accurate. The results showed that our model achieves better accuracy than the statistical model, and the classification accuracy is in the range 60%–84%.

Supported by Pontifical Catholic University of Rio de Janeiro

Supported by Intel® Corporation.

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 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.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

References

  1. Data and tools \(<\) semval 2014 task 4. http://alt.qcri.org/semeval2014/task4/index.php?id=data-and-tools. Accessed 20 Nov 2018

  2. Intel distribution for python \(|\) intel software. https://software.intel.com/en-us/distribution-for-python

  3. Intel optimization for tensorflow* installation guide. https://software.intel.com/en-us/articles/intel-optimization-for-tensorflow-installation-guide. Accessed May 2019

  4. Semeval 2015 task 10: Sentiment analysis in twitter \(<\) semeval 2015 task 10. http://alt.qcri.org/semeval2015/task10/. Accessed 20 Nov 2018

  5. Abadi, M., et al.: Tensorflow: large-scale machine learning on heterogeneous systems (2015). https://www.tensorflow.org/, software available from tensorflow.org

  6. Asghar, M.Z., Ahmad, S., Marwat, A., Kundi, F.M.: Sentiment analysis on youtube: a brief survey. CoRR abs/1511.09142 (2015). http://arxiv.org/abs/1511.09142

  7. Guzman, E., Maalej, W.: How do users like this feature? A fine grained sentiment analysis of app reviews. In: 2014 IEEE 22nd International Requirements Engineering Conference (RE), pp. 153–162. IEEE (2014)

    Google Scholar 

  8. Hasselman, J.: Lula entrega passaporte; mpf sugere prisão; fuga era óbvia. https://www.youtube.com/watch?v=JoIsGhHL9u8. Accessed 2018

  9. Hasselman, J.: #lulanacadeia: A arruaça dos mortadelas e as manifestações do povo dia 24. https://www.youtube.com/watch?v=WSycy0oQITs. Accessed 2018

  10. Huang, K., Hussain, A., Wang, Q.F., Zhang, R.: Deep Learning: Fundamentals, Theory and Applications., 1st edn. Springer International Publishing, Switzerland (2019)

    Book  Google Scholar 

  11. Kim, J.: The institutionalization of youtube: from user-generated content to professionally generated content. Media, Cult. Soc. 34(1), 53–67 (2012). https://doi.org/10.1177/0163443711427199

    Article  Google Scholar 

  12. Ortigosa, A., Martín, J.M., Carro, R.M.: Sentiment analysis in facebook and its application to e-learning. Comput. Hum. Behav. 31, 527–541 (2014)

    Article  Google Scholar 

  13. Poria, S., Cambria, E., Gelbukh, A.: Aspect extraction for opinion mining with a deep convolutional neural network. Knowl.-Based Syst. 108, 42–49 (2016)

    Article  Google Scholar 

  14. Qiu, G., Liu, B., Bu, J., Chen, C.: Opinion word expansion and target extraction through double propagation. Comput. Linguist. 37(1), 9–27 (2011). https://doi.org/10.1162/coli_a_00034

    Article  Google Scholar 

  15. Rasmussen, C.E.: The infinite gaussian mixture model. In: Advances in Neural Information Processing Systems, pp. 554–560 (2000)

    Google Scholar 

  16. Reynolds, D.A., Rose, R.C.: Robust text-independent speaker identification using gaussian mixture speaker models. IEEE Trans. Speech Audio Process. 3(1), 72–83 (1995)

    Article  Google Scholar 

  17. dos Santos, C., Gatti, M.: Deep convolutional neural networks for sentiment analysis of short texts. In: Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pp. 69–78 (2014)

    Google Scholar 

  18. Severyn, A., Moschitti, A.: Twitter sentiment analysis with deep convolutional neural networks. In: Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2015, pp. 959–962. ACM, New York (2015). https://doi.org/10.1145/2766462.2767830

  19. Zhang, D., Xu, H., Su, Z., Xu, Y.: Chinese comments sentiment classification based on word2vec and SVMperf. Expert Syst. Appl. 42(4), 1857–1863 (2015). https://doi.org/10.1016/j.eswa.2014.09.011. http://www.sciencedirect.com/science/article/pii/S0957417414005508d

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alexandre Ashade Lassance Cunha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Cunha, A.A.L., Costa, M.C., Pacheco, M.A.C. (2019). Sentiment Analysis of YouTube Video Comments Using Deep Neural Networks. In: Rutkowski, L., Scherer, R., Korytkowski, M., Pedrycz, W., Tadeusiewicz, R., Zurada, J. (eds) Artificial Intelligence and Soft Computing. ICAISC 2019. Lecture Notes in Computer Science(), vol 11508. Springer, Cham. https://doi.org/10.1007/978-3-030-20912-4_51

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-20912-4_51

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-20911-7

  • Online ISBN: 978-3-030-20912-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics