Skip to main content

An Effective Framework for Sentiment Analysis Using RNN and LSTM-Based Deep Learning Approaches

  • Conference paper
  • First Online:
Advances in Computing and Data Sciences (ICACDS 2023)

Abstract

Sentiment Analysis (SA) is an active research field in modern times by studying people’s sentiments posted on different web platforms over the internet. To study these sentiments, different machine and deep learning techniques are in use. Deep learning is an efficient approach for SA. It gives more accurate results by learning text features from sentiments using a deep neural network. In this paper, we proposed a framework for sentiment classification;. The model was, trained, and tested on Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Deep Learning (DL) algorithms for SA. The performance of proposed framework was evaluated using accuracy, precision, recall, and F-1 score values. To calculate the performance, the data set was split in the ratio of 70:30, 80:20, and 90:10 for training and testing the model and observed that LSTM performs well with 88% accuracy and precision value, 87% recall value, and 87% F-1 measures.

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 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.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. Priyadarshini, I., Cotton, C.: A novel LSTM–CNN–grid search-based deep neural network for sentiment analysis. J. Supercomput. 77(12), 13911–13932 (2021). https://doi.org/10.1007/s11227-021-03838-w

    Article  Google Scholar 

  2. Huang, F., Li, X., Yuan, C., Zhang, S., Zhang, J., Qiao, S.: Attention-emotion-enhanced convolutional LSTM for sentiment analysis. IEEE Trans. Neural Netw. Learn. Syst. (2021)

    Google Scholar 

  3. Priyadarshini, I., Mohanty, P., Kumar, R., Sharma, R., Puri, V., Singh, P.K.: A study on the sentiments and psychology of Twitter users during the COVID-19 lockdown period. Multimed. Tools Appl. 1–23 (2021)

    Google Scholar 

  4. Shrivash, B.K., Verma, D.K., Pandey, P.: An analysis on machine learning approaches for sentiment analysis. In: Somani, A.K., Mundra, A., Doss, R., Bhattacharya, S. (eds.) Smart Systems: Innovations in Computing. SIST, vol. 235, pp. 499–513. Springer, Singapore (2022). https://doi.org/10.1007/978-981-16-2877-1_46

    Chapter  Google Scholar 

  5. Zhao, N., Gao, H., Wen, X., Li, H.: Combination of convolutional neural network and gated recurrent unit for aspect-based sentiment analysis. IEEE Access 9, 15561–15569 (2021)

    Article  Google Scholar 

  6. Lu, Q., Zhu, Z., Zhang, G., Kang, S., Liu, P.: Aspect-gated graph convolutional networks for aspect-based sentiment analysis. Appl. Intell. 51(7), 4408–4419 (2021). https://doi.org/10.1007/s10489-020-02095-3

    Article  Google Scholar 

  7. Pota, M., Ventura, M., Catelli, R., Esposito, M.: An effective BERT-based pipeline for Twitter sentiment analysis: a case study in Italian. Sensors 21(1), 133 (2021)

    Google Scholar 

  8. Basiri, M.E., Nemati, S., Abdar, M., Cambria, E., Acharya, U.R.: ABCDE: an attention-based bidirectional CNN-RNN deep model for sentiment analysis. Futur. Gener. Comput. Syst. 115, 279–294 (2021)

    Article  Google Scholar 

  9. Srividya, K., Sowjanya, A.M.: NA-DLSTM–A neural attention-based model for context-aware Aspect-based sentiment analysis. Materials Today: Proceedings (2021)

    Google Scholar 

  10. Dang, N.C., Moreno-García, M.N., De la Prieta, F.: Sentiment analysis based on deep learning: a comparative study. Electronics 9(3), 483 (2020)

    Google Scholar 

  11. Kandasamy, I., Vasantha, W.B., Obbineni, J.M., Smarandache, F.: Sentiment analysis of Tweets using refined neutrosophic sets. Comput. Ind. 115, 103180 (2020)

    Article  Google Scholar 

  12. Alharbi, A.S.M., de Doncker, E.: Twitter sentiment analysis with a deep neural network: an enhanced approach using user behavioural information. Cognit. Syst. Res. 54, 50–61 (2019)

    Article  Google Scholar 

  13. Pham, D.H., Le, A.C.: Learning multiple layers of knowledge representation for aspect-based sentiment analysis. Data Knowl. Eng. 114, 26–39 (2018)

    Article  Google Scholar 

  14. Gupta, U., Chatterjee, A., Srikanth, R., Agrawal, P.: A sentiment-and-semantics-based approach for emotion detection in textual conversations (2017). arXiv preprint arXiv:1707.06996

  15. Zhang, L., Wang, S., Liu, B.: Deep learning for sentiment analysis: a survey. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 8(4), e1253 (2018)

    Article  Google Scholar 

  16. Hassan, A., Mahmood, A.: Deep learning approach for sentiment analysis of short texts. In: 2017 3rd International Conference on Control, Automation and Robotics (ICCAR), pp. 705–710. IEEE (2017)

    Google Scholar 

  17. Preethi, G., Krishna, P.V., Obaidat, M.S., Saritha, V., Yenduri, S.: Application of deep learning to sentiment analysis for recommender system on the cloud. In: 2017 International Conference on Computer, Information and Telecommunication Systems (CITS), pp. 93–97. IEEE (2017)

    Google Scholar 

  18. Salas-Zárate, M.D.P., Medina-Moreira, J., Lagos-Ortiz, K., Luna-Aveiga, H., Rodriguez-Garcia, M.A., Valencia-Garcia, R.: Sentiment analysis on tweets about diabetes: an aspect-level approach. Comput. Math. Methods Med. (2017)

    Google Scholar 

  19. Ain, Q.T., et al.: Sentiment analysis using deep learning techniques: a review. Int. J. Adv. Comput. Sci. Appl. 8(6) (2017)

    Google Scholar 

  20. Rojas-Barahona, L.M.: Deep learning for sentiment analysis. Lang. Linguist. Compass 10(12), 701–719 (2016)

    Article  Google Scholar 

  21. Zhou, B., et al.: Learning deep features for discriminative localization. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2921–2929 (2016)

    Google Scholar 

  22. Tang, D., et al.: Sentiment embeddings with applications to sentiment analysis. IEEE Trans. Knowl. Data Eng. 28(2), 496–509 (2015)

    Google Scholar 

  23. 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, pp. 959–962 (2015)

    Google Scholar 

  24. Li, X., et al.: Exploiting BERT for end-to-end aspect-based sentiment analysis (2019). arXiv preprint arXiv:1910.00883

  25. Yang, M., et al.: Attention based LSTM for target dependent sentiment classification. In: Proceedings of the AAAI Conference on Artificial Intelligence (2017)

    Google Scholar 

  26. Ma, X., Zhou, C., Yang, X., Huang, Y., Zhu, X.: Modeling sentences with LSTM for emotion detection in textual conversations. In: Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (ACL), pp. 1426–1436 (2018)

    Google Scholar 

  27. Wang, K., et al.: Relational graph attention network for aspect-based sentiment analysis (2020). arXiv preprint arXiv:2004.12362

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Brajesh Kumar Shrivash .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Shrivash, B.K., Verma, D.K., Pandey, P. (2023). An Effective Framework for Sentiment Analysis Using RNN and LSTM-Based Deep Learning Approaches. In: Singh, M., Tyagi, V., Gupta, P., Flusser, J., Ören, T. (eds) Advances in Computing and Data Sciences. ICACDS 2023. Communications in Computer and Information Science, vol 1848. Springer, Cham. https://doi.org/10.1007/978-3-031-37940-6_28

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-37940-6_28

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-37939-0

  • Online ISBN: 978-3-031-37940-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics