Skip to main content
Log in

Categorizing Sentiment Polarities in Social Networks Data Using Convolutional Neural Network

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript

Abstract

Social media and networks are essential in today’s world of communication technology. Because most people utilize social networking platforms to communicate their sentiments and emotions, each click generates vast data. As a result, we need particularly efficient ways to extract useful information from user data acquired from various social networking platforms such as Twitter. This research focuses on categorizing the different reviews offered by persons of various ethnic groups. The trials were conducted using real-time data obtained from a social media network. To classify opinions, sentiment polarities such as positive, negative, and neutral were used. Furthermore, the Convolutional Neural Network approach was utilized to conduct experiments, and the results were compared to other machine learning algorithms. The results reveal that the Convolutional Neural Network model can achieve accuracy levels of up to 94.47 %, 95.4 %, and 94 %, respectively, when evaluated using Phone, Laptop, and TV review datasets. The proposed framework can be utilized to develop a strong relationship between commercial businesses and their clients. In addition, this study discusses the different applications of sentiment analysis techniques, particularly in social networking and security.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

References

  1. Lei X, Qian X, Zhao G. Rating prediction based on social sentiment from textual reviews. IEEE Trans Multimed. 2016;18(9):1910–21.

    Article  Google Scholar 

  2. Cambria E et al. SenticNet 5: Discovering conceptual primitives for sentiment analysis by means of context embeddings. Proceedings of the AAAI conference on artificial intelligence. 2018; 32(1)

  3. Medhat W, Hassan A, Korashy H. Sentiment analysis algorithms and applications: a survey. Ain Shams Eng J. 2014;5(4):1093–113.

    Article  Google Scholar 

  4. Liu B. Sentiment analysis and opinion mining. Synth Lect Hum Lang Technol. 2012;5(1):1–167.

    Article  Google Scholar 

  5. Suresh Kumar S et al. A review on wearable and contactless sensing for COVID-19 with policy challenges. Front. Commun. Netw. (2021)

  6. Lokesh S, et al. An automatic tamil speech recognition system by using bidirectional recurrent neural network with self-organizing map. Neural Comput Appl. 2019;31(5):1521–31.

    Article  Google Scholar 

  7. Taylor W, et al. An intelligent non-invasive real-time human activity recognition system for next-generation healthcare. Sensors. 2020;20(9):2653.

    Article  Google Scholar 

  8. Chaturvedi I, et al. Distinguishing between facts and opinions for sentiment analysis: survey and challenges. Inf Fusion. 2018;44:65–77.

    Article  Google Scholar 

  9. Cambria E, et al. Affective computing and sentiment analysis. A practical guide to sentiment analysis. Cham: Springer; 2017. p. 1–10.

    Book  Google Scholar 

  10. Liu X-Q, Qiu-Lin W, Pan W-T. Sentiment classification of micro-blog comments based on Randomforest algorithm. Concurr Comput Pract Exp. 2019;31(10):e4746.

    Article  Google Scholar 

  11. Araque O, et al. Enhancing deep learning sentiment analysis with ensemble techniques in social applications. Expert Syst Appl. 2017;77:236–46.

    Article  Google Scholar 

  12. Tsytsarau M, Palpanas T. Survey on mining subjective data on the web. Data Min Knowl Discov. 2012;24(3):478–514.

    Article  Google Scholar 

  13. Chen PJ, Ding JJ, Hsu HW, Wang CY, Wang JC. Improved convolutional neural network based scene classification using long short-term memory and label relations. In 2017 IEEE international conference on multimedia and expo workshops (ICMEW), IEEE 2017; pp. 429-434

  14. Du J, et al. A convolutional attention model for text classification. National CCF conference on natural language processing and Chinese computing. Cham: Springer; 2017.

    Google Scholar 

  15. Pitsilis GK, Heri R, Helge L. Detecting offensive language in tweets using deep learning. arXiv preprint arXiv:1801.04433 (2018)

  16. Hassan A, Ausif M. Deep learning approach for sentiment analysis of short texts. 2017 3rd international conference on control, automation and robotics (ICCAR). IEEE, (2017)

  17. Shen Q, Zijian W, Yaoru S. Sentiment analysis of movie reviews based on cnn-blstm. International conference on intelligence science. Springer, Cham (2017)

  18. Chen L-C, Lee C-M, Chen M-Y. Exploration of social media for sentiment analysis using deep learning. Soft Comput. 2020;24(11):8187–97.

    Article  Google Scholar 

  19. Gandhi UD, et al. Sentiment analysis on twitter data by using convolutional neural network (CNN) and long short term memory (LSTM). Wirel Pers Commun. 2021. https://doi.org/10.1007/s11277-021-08580-3.

    Article  Google Scholar 

  20. O’Reilly T, John B. Opening welcome: state of the internet industry. San Francisco, California, (2004)

  21. Garrigos-Simon FJ, Rafael LA, Teresa BR. Social networks and Web 3.0: their impact on the management and marketing of organizations. Manag Decis. Doi: https://doi.org/10.1108/00251741211279657(2012)

  22. Del Vigna12 F et al. Hate me, hate me not: hate speech detection on facebook. Proceedings of the first italian conference on cybersecurity (ITASEC17) (2017)

  23. Cortes C, Vapnik V. Support-vector networks. Mach Learn. 1995;20(3):273–97.

    MATH  Google Scholar 

  24. Cox DR. The regression analysis of binary sequences. J R Stat Soc Ser B (Methodol). 1958;20(2):215–32.

    MathSciNet  MATH  Google Scholar 

  25. Breiman L. Bagging predictors. Mach Learn. 1996;24(2):123–40.

    MATH  Google Scholar 

  26. Safavian SR, David L. A survey of decision tree classifier methodology. IEEE Trans Syst Man Cybern. 1991;21(3):660–74.

    Article  MathSciNet  Google Scholar 

  27. Sherstinsky A. Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Phys D Nonlinear Phenom. 2020;404:132306.

    Article  MathSciNet  Google Scholar 

  28. Albawi S, Tareq AM, Saad A-Z. Understanding of a convolutional neural network. 2017 International Conference on engineering and technology (ICET). IEEE (2017)

  29. Lyu K, Kim H. Sentiment analysis using word polarity of social media. Wirel Pers Commun. 2016;89(3):941–58.

    Article  Google Scholar 

  30. Wang G, Pengbo P, Liang Y. Topic and sentiment words extraction in cross-domain product reviews. Wirel Pers Commun. 2018;102(2):1773–83.

    Article  Google Scholar 

  31. Feng X, Zhenchun P, Rui X. E-commerce product review sentiment classification based on a naïve Bayes continuous learning framework. Inf Process Manag. 2020;57(5):102221.

    Article  Google Scholar 

  32. Elnagar A, Al-Debsi R, Einea O. Arabic text classification using deep learning models. Inf Process Manag. 2020;57(1):102121.

    Article  Google Scholar 

  33. Seo S, et al. Comparative study of deep learning-based sentiment classification. IEEE Access. 2020;8:6861–75.

    Article  Google Scholar 

  34. Stieglitz S, et al. Social media analytics-Challenges in topic discovery, data collection, and data preparation. Int J Inf Manag. 2018;39:156–68.

    Article  Google Scholar 

  35. Kim H, Jeong Y-S. Sentiment classification using convolutional neural networks. Appl Sci. 2019;9(11):2347.

    Article  Google Scholar 

  36. Spencer J, Gulden U. Sentimentor: sentiment analysis of twitter data. SDAD@ ECML/PKDD (2012)

  37. Driyani A. Twitter sentiment analysis of mobile reviews using kernelized SVM. Turk J Comput Math Educ (TURCOMAT). 2021;12(10):765–8.

    Google Scholar 

  38. Mohbey KK, Sunil K, Vartika K. Advertisement prediction in social media environment using big data framework. Multimedia big data computing for IoT applications. Singapore: Springer; 2020. p. 323–41.

    Book  Google Scholar 

  39. Sharma A, Ghose U. Sentimental analysis of twitter data with respect to general elections in India. Proced Comput Sci. 2020;173:325–34.

    Article  Google Scholar 

  40. Al-mashhadani MI, Kilan MH, Enas TK. Sentiment analysis using optimized feature sets in different facebook/twitter dataset domains using big data. Iraqi J Comput Sci Math 3.1 (2022)

  41. Bagheri H, Md Johirul I. Sentiment analysis of twitter data. arXiv preprint arXiv:1711.10377 (2017)

  42. Aggarwal CC, Cheng XZ, editors. Mining text data. Berlin: Springer; 2012.

    Google Scholar 

  43. Hu M, Bing L. Mining and summarizing customer reviews. Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining (2004)

  44. Whitelaw C, Navendu G, Shlomo A. Using appraisal groups for sentiment analysis. Proceedings of the 14th ACM international conference on information and knowledge management (2005)

  45. Wu H, Xiaodong G. Towards dropout training for convolutional neural networks. Neural Netw. 2015;71:1–10.

    Article  Google Scholar 

  46. Szegedy C, Vanhoucke V, Ioffe S, Shlens J, Wojna Z. Rethinking the inception architecture for computer vision. In: Proceedings of the IEEE conference on computer vision and pattern recognition, Las Vegas, NV, USA. 2016; 30:2818–26

Download references

Funding

Funding information is not applicable.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gaurav Meena.

Ethics declarations

Conflict of interest

The authors of this manuscript state that they have no conflict of interest.

Ethical approval

This article does not contain any studies with human participants or animals performed by any of the authors.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article is part of the topical collection “Cyber Security and Privacy in Communication Networks” guest edited by Rajiv Misra, R K Shyamsunder, Alexiei Dingli, Natalie Denk, Omer Rana, Alexander Pfeiffer, Ashok Patel and Nishtha Kesswani.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Meena, G., Mohbey, K.K. & Indian, A. Categorizing Sentiment Polarities in Social Networks Data Using Convolutional Neural Network. SN COMPUT. SCI. 3, 116 (2022). https://doi.org/10.1007/s42979-021-00993-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-021-00993-y

Keywords

Navigation