Skip to main content

Text Sentiment Analysis Based on Improved Naive Bayes Algorithm

  • Conference paper
  • First Online:
Artificial Intelligence and Security (ICAIS 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13338))

Included in the following conference series:

  • 1539 Accesses

Abstract

Aiming at the lack of specific domain corpus in text sentiment polarity analysis, the inaccurate classification accuracy of the naive Bayes algorithm due to the independence assumption and the sparse word vector matrix, a text sentiment analysis method based on the improved naive Bayes algorithm is proposed. Combining machine learning methods with domain sentiment dictionary weighting methods. The improved word frequency inverse file frequency algorithm is used to extract the feature word vector of hotel review text, and the weight of the feature word vector of the domain dictionary after regression test is introduced to weaken the influence of the independence assumption. The singular value decomposition algorithm realizes the dimensionality reduction of the word vector sparse matrix and eliminates redundancy. The remaining features are used to construct a polynomial model of Naive Bayes. The results of simulation research show that this method can effectively improve the effect of text sentiment classification.

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. Huang, L.W., Jiang, B.T., Lu, S.Y.: A survey of research on recommendation systems based on deep learning. Chin. J. Comput. 41(07), 1619–1647 (2018)

    Google Scholar 

  2. Lin, J.H., Zhou, Y.M., Yang, A.M.: The construction of domain sentiment dictionary based on word vector. J. Shandong Univ. (Eng. Technol. Ed.) 48(03), 40–47 (2018)

    Google Scholar 

  3. Wu, J.S., Lu, K.: Research on sentiment analysis of Chinese Weibo based on multiple sentiment dictionaries and rule sets. Comput. Appl. Softw. 36(09), 93–99 (2019)

    Google Scholar 

  4. Yang, X., Jiao, W.: Sentiment analysis of homestay reviews based on domain dictionary. Sci. Technol. Eng. 20(07), 2794–2800 (2020)

    Google Scholar 

  5. Hu, S.C., Sun, J.P., Ju, S.G.: Chinese sentiment feature selection method based on extended sentiment dictionary and chi-square model. J. Sichuan Univ. (Nat. Sci. Ed.) 56(01), 37–44 (2019)

    Google Scholar 

  6. Zhu, J., Liu, J.Y., Zhang, T.F.: Emotion polarity classification method based on sentiment dictionary and ensemble learning. Comput. Appl. 38(S1), 95–98 (2018)

    Article  Google Scholar 

  7. Liu, L., Li, X.Y., Huang, Y.F.: Emotional fuzzy computing classification method based on ensemble learning. Comput. Eng. Des. 39(07), 1872–1876 (2018)

    Google Scholar 

  8. Cheng, Y., Yao, L.B., Zhang, G.H.: Multi-channel CNN and BiGRU based on attention mechanism text sentiment tendency analysis. Comput. Res. Dev. 57(12), 2583–2595 (2020)

    Google Scholar 

  9. Chen, K., Xie, B., Zhu, X.T.: Research on sentiment analysis algorithm based on sentiment dictionary and transformer model. J. Nanjing Univ. Posts Telecommun. (Nat. Sci. Ed.) 40(01), 55–62 (2020)

    Google Scholar 

  10. Shao, L.S., Zhou, Y.: Research on sentiment classification of online comments based on semantic rules and RNN model. Chin. J. Inf. 33(06), 124–131 (2019)

    Google Scholar 

  11. Saraswathy, K.S., Devi, S.L.: Enhancement of sentiment analysis using clause and discourse connectives. Comput. Mater. Continua 68(2), 1981–1999 (2021)

    Google Scholar 

  12. Ibrahim, A.F., Hassaballah, M., Ali, A.A.: Covid19 outbreak: a hierarchical framework for user sentiment analysis. Comput. Mater. Continua 70(2), 2507–2524 (2022)

    Article  Google Scholar 

  13. Lin, Z.L., Wang, X.C., Gu, Y.: Fast sentiment analysis algorithm based on double model fusion. Comput. Syst. Sci. Eng. 36(1), 175–188 (2021)

    Article  Google Scholar 

  14. Muhammad, A., Abdullah, S., Sani, N.S.: Optimization of sentiment analysis using teaching-learning based algorithm. Comput. Mater. Continua 69(2), 1783–1799 (2021)

    Article  Google Scholar 

  15. Hnaif, A.A., Kanan, E., Kanan, T.: Sentiment analysis for Arabic social media news polarity. Intell. Autom. Soft Comput. 28(1), 107–119 (2021)

    Article  Google Scholar 

  16. Xu, Y.Y., Chai, Y.M., Wang, L.M., et al.: Emotional sentence classification method based on OCC model and Bayesian network. Comput. Sci. 47(03), 222–230 (2020)

    Google Scholar 

  17. Li, X.D., Xiao, J.Y., Zou, Y.F.: Research on sentiment classification based on improved TF-IDF and Hidden Naive Bayes. J. Nanhua Univ. (Nat. Sci. Ed.) 33(02), 79–84 (2019)

    Google Scholar 

  18. Zeng, Y., Liu, P.Y., Liu, W.F., et al.: Naive Bayes sentiment classification algorithm based on feature weighted fusion. J. Northwest Norm. Univ. 53(04), 56–60 (2017)

    Google Scholar 

  19. Luo, H.Q., Lu, X.Y., Zhang, X.B., et al.: Emotion classification method of product reviews based on Hidden Naive Bayes. Comput. Eng. Des. 38(01), 203–208 (2017)

    Google Scholar 

  20. Qi, Y., Qiao, Y.: Text categorization based on naive Bayesian. Electron. Sci. Technol. 4(5), 114–116 (2017)

    Google Scholar 

  21. Xie, X.L., Li, X.F., Chen, L.B., et al.: A method for classifying hotel reviews emotional polarity based on emotional dictionary weighting. Guangxi Zhuang Autonomous Region: CN113673239A (2021)

    Google Scholar 

  22. Qiu, N.J., Cong, L., Zhou, S.C., et al.: SVD-CNN barrage text classification algorithm combined with improved active learning. Comput. Appl. 39(03), 644–650 (2019)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xiaolan Xie .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 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

Li, X., Xie, X., Wang, J., Tang, Y. (2022). Text Sentiment Analysis Based on Improved Naive Bayes Algorithm. In: Sun, X., Zhang, X., Xia, Z., Bertino, E. (eds) Artificial Intelligence and Security. ICAIS 2022. Lecture Notes in Computer Science, vol 13338. Springer, Cham. https://doi.org/10.1007/978-3-031-06794-5_41

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-06794-5_41

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-06793-8

  • Online ISBN: 978-3-031-06794-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics