Skip to main content

Sentiment Analysis of Political Post Classification Based on XGBoost

  • Conference paper
  • First Online:
Proceedings of International Conference on Computing and Communication Networks

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 394))

Abstract

The number of Websites and the volume of posts published on the Internet have increased dramatically in recent years. The ability to automatically assess the political polarity of a post (text) can be useful in a variety of fields including security and academics. The sentiment classification of postings, on the other hand, appears to be more complicated compared to classifying the sentiment of traditional texts. The classification procedure adopted in this research uses XGBoost algorithm and bag of word as feature extraction. To test the accuracy of the approach, the study used the confusion matrix. The proposed approach achieved 95.161 accuracy percentage.

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 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.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. B. Pang, L. Lee, Opinion mining and sentiment analysis. Found. Trends® Inf. Ret. 2(1–2), 1–135 (2008)

    Google Scholar 

  2. B. Liu, Sentiment analysis and subjectivity, in Handbook of Natural Language Processing, vol. 2, no. 2010 (2010), pp. 627–666

    Google Scholar 

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

    Article  Google Scholar 

  4. C. Tan, L. Lee, J. Tang, L. Jiang, M. Zhou, P. Li, User-level sentiment analysis incorporating social networks, in Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (ACM, 2011), pp. 1397–1405

    Google Scholar 

  5. D.H. Abd, A.R. Abbas, A.T. Sadiq, Analyzing sentiment system to specify polarity by lexicon-based. Bull. Electr. Eng. Inform. 10(1), 283–289 (2021)

    Article  Google Scholar 

  6. R. Xia, C. Zong, S. Li, Ensemble of feature sets and classification algorithms for sentiment classification. Inf. Sci. 181(6), 1138–1152 (2011)

    Article  Google Scholar 

  7. J.K. Alwan, A.J. Hussain, D.H. Abd, A.T. Sadiq, M. Khalaf, P. Liatsis, Political Arabic articles orientation using rough set theory with sentiment lexicon. IEEE Access 9, 24475–24484 (2021)

    Article  Google Scholar 

  8. T. Chen, C. Guestrin, XGBoost: a scalable tree boosting system, in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (2016), pp. 785–794

    Google Scholar 

  9. J.A. Balazs, J.D. Velásquez, Opinion mining and information fusion: a survey. Inf. Fusion 27, 95–110 (2016)

    Article  Google Scholar 

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

    Article  Google Scholar 

  11. K. Ravi, V. Ravi, A survey on opinion mining and sentiment analysis: tasks, approaches and applications. Knowl.-Based Syst. 89, 14–46 (2015)

    Article  Google Scholar 

  12. B. Pang, L. Lee, S. Vaithyanathan, Thumbs up?: sentiment classification using machine learning techniques, in Proceedings of the ACL-02 Conference on Empirical Methods in Natural Language Processing, vol. 10 (Association for Computational Linguistics, 2002), pp. 79–86

    Google Scholar 

  13. M.A. Hearst, Direction-based text interpretation as an information access refinement, in Text-Based Intelligent Systems: Current Research and Practice in Information Extraction and Retrieval (1992), pp. 257–274

    Google Scholar 

  14. W. Sack, On the computation of point of view, in AAAI (1994), p. 1488

    Google Scholar 

  15. A. Huettner, P. Subasic, Fuzzy typing for document management, in ACL 2000 Companion Volume: Tutorial Abstracts and Demonstration Notes (2000), pp. 26–27

    Google Scholar 

  16. S. Das, M. Chen, Yahoo! for Amazon: extracting market sentiment from stock message boards, in Proceedings of the Asia Pacific Finance Association Annual Conference (APFA), vol. 35 (Bangkok, Thailand, 2001), p. 43

    Google Scholar 

  17. Z. Wang, V.J.C. Tong, P. Ruan, F. Li, Lexicon knowledge extraction with sentiment polarity computation, in 2016 IEEE 16th International Conference on Data Mining Workshops (ICDMW) (IEEE, 2016), pp. 978–983

    Google Scholar 

  18. V. Hatzivassiloglou, K.R. McKeown, Predicting the semantic orientation of adjectives, in Proceedings of the 35th Annual Meeting of the Association for Computational Linguistics and Eighth Conference of the European Chapter of the Association for Computational Linguistics (Association for Computational Linguistics, 1997), pp. 174–181

    Google Scholar 

  19. P.D. Turney, M.L. Littman, Unsupervised learning of semantic orientation from a hundred-billion-word corpus. arXiv preprint cs/0212012 (2002)

    Google Scholar 

  20. D.H. Abd, A.T. Sadiq, A.R. Abbas, PAAD: political Arabic articles dataset for automatic text categorization. Iraqi J. Comput. Inform. 46(1), 1–10 (2020)

    Article  Google Scholar 

  21. D.H. Abd, A.T. Sadiq, A.R. Abbas, Classifying political Arabic articles using support vector machine with different feature extraction, in International Conference on Applied Computing to Support Industry: Innovation and Technology (Springer, 2019), pp. 79–94

    Google Scholar 

  22. A. Oussous, A.A. Lahcen, S. Belfkih, Impact of text pre-processing and ensemble learning on Arabic sentiment analysis, in Proceedings of the 2nd International Conference on Networking, Information Systems & Security (ACM, 2019), p. 65

    Google Scholar 

  23. D.H. Abd, A.T. Sadiq, A.R. Abbas, Political articles categorization based on different Naïve Bayes models, in International Conference on Applied Computing to Support Industry: Innovation and Technology (Springer, 2019), pp. 286–301

    Google Scholar 

  24. N. Hardeniya, J. Perkins, D. Chopra, N. Joshi, I. Mathur, Natural Language Processing: Python and NLTK (Packt Publishing Ltd, 2016)

    Google Scholar 

  25. M. Mustafa, A.S. Eldeen, S. Bani-Ahmad, A.O. Elfaki, A comparative survey on Arabic stemming: approaches and challenges. Intell. Inf. Manag. 9(02), 39 (2017)

    Google Scholar 

  26. R. Abooraig, S. Al-Zu’bi, T. Kanan, B. Hawashin, M. Al Ayoub, I. Hmeidi, Automatic categorization of Arabic articles based on their political orientation. Digit. Investig. 25, 24–41 (2018)

    Google Scholar 

  27. D.H. Abd, W. Khan, K.A. Thamer, A.J. Hussain, Arabic light stemmer based on ISRI stemmer, in International Conference on Intelligent Computing (Springer, 2021), pp. 32–45

    Google Scholar 

  28. C.C. Aggarwal, C. Zhai, A survey of text classification algorithms, in Mining Text Data (Springer, 2012), pp. 163–222

    Google Scholar 

  29. D.H. Abd, A.T. Sadiq, A.R. Abbas, Political Arabic articles classification based on machine learning and hybrid vector, in 2020 5th International Conference on Innovative Technologies in Intelligent Systems and Industrial Applications (CITISIA) (IEEE, 2020), pp. 1–7

    Google Scholar 

  30. R. Mitchell, E. Frank, Accelerating the XGBoost algorithm using GPU computing. PeerJ Comput. Sci. 3, e127 (2017)

    Google Scholar 

  31. M. Khalaf et al., An application of using support vector machine based on classification technique for predicting medical data sets, in International Conference on Intelligent Computing (Springer, 2019), pp. 580–591

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dhafar Hamed Abd .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nsaif, A.A., Abd, D.H. (2022). Sentiment Analysis of Political Post Classification Based on XGBoost. In: Bashir, A.K., Fortino, G., Khanna, A., Gupta, D. (eds) Proceedings of International Conference on Computing and Communication Networks. Lecture Notes in Networks and Systems, vol 394. Springer, Singapore. https://doi.org/10.1007/978-981-19-0604-6_16

Download citation

  • DOI: https://doi.org/10.1007/978-981-19-0604-6_16

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-19-0603-9

  • Online ISBN: 978-981-19-0604-6

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics