JNACSISSN:2582-3817

Sentiment Analysis with Text Mining: A Study from the Newspaper Contents of Bangladesh

Abstract

Analyzing public sentiment through news media is essential for understanding societal trends and opinions. This paper examines sentiment patterns in newspaper data from The Daily Sun and Dhaka Tribune, employing sentiment analysis techniques via web scraping. Despite the growing reliance on sentiment analysis, challenges remain in accurately capturing sentiment dynamics from diverse data sources, particularly news media. This paper addresses these challenges using emotion plot visualization, k-means clustering, and classifiers like Random Forest and Naive Bayes. Data was scraped from both newspapers, preprocessed, and analyzed to identify common themes and sentiment patterns. Techniques included parser selection for effective web scraping, clustering to group articles by sentiment, and applying machine learning classifiers to determine sentiment distribution. The analysis revealed that most articles in both newspapers exhibited a neutral sentiment throughout the year. The sentiment classifiers demonstrated high accuracy, with Random Forest achieving approximately 96% and Naive Bayes reaching 98%. The insights from this research can enhance predictive capabilities in sentiment analysis models and offer a deeper understanding of public opinion dynamics. Future research could explore integrating additional data sources and employing advanced models to further refine sentiment analysis accuracy.

References

  • A. Balahur, R. Steinberger, et al., “Rethinking sentiment analysis in the news: from theory to practice and back”, Proceeding of WOMSA 9, Vol. 1–12, 2009.
  • C. Ratner, “A cultural-psychological analysis of emotions”, Culture & Psychology, Vol.6 (1) (2000) 5–39.
  • D. Goleman, “Emotional intelligence”. Bantam books: N. y,1995.
  • N. Bondarchuk, N. Hrytsiv, I. Bekhta, O. Melnychuk, “Sentiment analysis of weather news in british online newspapers”, Amazonia Investiga, Vol. 12 (63),99–108, 2023.
  • M. Puteh, N. Isa, S. Puteh, N. A. Redzuan, “Sentiment mining of malay newspaper (samnews) using artificial immune system”, In: Proceedings of the World Congress on Engineering, Vol. 3, pp. 1498–1503, 2013.
  • M. D. Devika, C. Sunitha, A. Ganesh, “Sentiment analysis: a comparative study on different approaches”, Procedia Computer Science, Vol. 87 (2016) 44– 49.
  • “Social media sentiment analysis and opinion mining in public security: Taxonomy, trend analysis, issues and future directions”, Journal of King Saud University - Computer and Information Sciences, Vol. 35 (9),101776, 2023. doi:https://doi.org/10.1016/j.jksuci.2023.101776.
  • P. Sharma, T.-S. Moh, “Prediction of indian election using sentiment analysis on hindi twitter”, in: 2016 IEEE International Conference on Big Data (Big Data), 2016, pp. 1966–1971. doi:10.1109/BigData.2016.7840818.
  • B. Liu, “Sentiment analysis and opinion mining”, Springer Nature, 2022.
  • Z. Drus, H. Khalid, “Sentiment analysis in social media and its application: Systematic literature review”, Procedia Computer Science, Vol. 161 (2019) 707–714.
  • Sentiment analysis methods, applications, and challenges: A systematic literature review, Journal of King Saud University - Computer and Information Sciences 36(4) (2024) 102048. doi:https://doi.org/10.1016/j.jksuci.2024.102048.
  • A. Hossain, M. Karimuzzaman, M. M. Hossain, A. Rahman, “Text mining and sentiment analysis of newspaper headlines”, Information, Vol. 12 (10),414, 2021.
  • A. Balahur, R. Steinberger, M. Kabadjov, V. Zavarella, E. van der Goot, M. Halkia, B. Pouliquen, J. Belyaeva, “Sentiment analysis in the news”,arXiv:1309.6202, 2013.
  • J. Wiebe, “Tracking point of view in narrative”, Computational Linguistics, Vol. 20, 07, 2002.
  • B. McHale, “Unspeakable sentences, unnatural acts: Linguistics and poetics revisited”, Poetics Today, Vol. 4 (1),17–45, 1983. URL http://www.jstor.org/stable/1772149
  • C. Whitelaw, N. Garg, S. Argamon, “Using appraisal groups for sentiment analysis”, In: Proceedings of the 14th ACM international conference on Information and knowledge management, pp. 625–631, 2005.
  • A. Pandiaraj, C. Sundar, S. Pavalarajan, “Sentiment analysis on newspaper article reviews: contribution towards improved rider optimizationbased hybrid classifier”, Kybernetes, Vol. 51 (1),348–382, 2021.
  • H. Rahab, A. Zitouni, M. Djoudi, “Sana: Sentiment analysis on newspapers comments in Algeria”, Journal of King Saud University-Computer and Information Sciences, Vol, 33 (7),899–907, 2021.
  • S. Atia, K. Shaalan, “Increasing the accuracy of opinion mining in arabic”, in: 2015 first international conference on arabic computational linguistics (ACLing), IEEE, pp. 106–113, 2015.
  • H. Rahab, A. Zitouni, M. Djoudi, “Siaac: Sentiment polarity identification on arabic algerian newspaper comments”, in: Applied Computational Intelligence and Mathematical Methods: Computational Methods in Systems and Software vol. 2, Springer, 2018, pp. 139–149, 2017.
  • W. Cherif, A. Madani, M. Kissi, “Towards an efficient opinion measurement in Arabic comments”, Procedia Computer Science, Vol. 73 (2015) 122–129.
  • A. Ziani, Y. Tlili Guaissa, A. Nabiha, “D´etection de polarit´e d’opinion dans les forums en langues arabe par fusion de plusieurs svms”, vol 7,17–21, 2013.
  • W. Medhat, A. Hassan, H. Korashy, “Sentiment analysis algorithms and applications: A survey”, Ain Shams engineering journal, Vol. 5 (4),1093–1113, 2014.
  • Z. U. Rehman, I. S. Bajwa, “Lexicon-based sentiment analysis for urdu language”, in: 2016 Sixth International Conference on Innovative Computing Technology (INTECH), 2016, pp. 497–501. doi:10.1109/INTECH.2016.7845095.
  • S. L. Lo, E. Cambria, R. Chiong, D. Cornforth, “Multilingual sentiment analysis: from formal to informal and scarce resource languages”, Artificial Intelligence Review, Vol. 48,499–527, 2017.
  • H. Peng, E. Cambria, A. Hussain, “A review of sentiment analysis research in chinese language”, Cognitive Computation,Vol. 9,423–435, 2017.
  • S. Rani, P. Kumar, “A journey of indian languages over sentiment analysis: a systematic review”, Artificial Intelligence Review, Vol. 52 (2019) 1415– 1462.
  • M. Z. Asghar, A. Sattar, A. Khan, A. Ali, F. Masud Kundi, S. Ahmad, “Creating sentiment lexicon for sentiment analysis in urdu: The case of a resource-poor language”, Expert Systems, Vol. 36 (3),e12397, 2019.
  • A. Amram, A. B. David, R. Tsarfaty, “Representations and architectures in neural sentiment analysis for morphologically rich languages: A case study from modern hebrew”, in: Proceedings of the 27th International Conference on Computational Linguistics, pp. 2242–2252, 2018.
  • A. Hassan, M. R. Amin, A. K. Al Azad, N. Mohammed, “Sentiment analysis on bangla and romanized bangla text using deep recurrent models”, in: 2016 International Workshop on Computational Intelligence (IWCI), IEEE, pp. 51–56, 2016.
  • P. Sharma, T.-S. Moh, “Prediction of Indian election using sentiment analysis on hindi twitter”, In: 2016 IEEE international conference on big data (big data), IEEE, pp. 1966–1971, 2016.
  • M. Saraee, A. Bagheri, “Feature selection methods in persian sentiment analysis”, in: Natural Language Processing and Information Systems: 18th International Conference on Applications of Natural Language to Information Systems, NLDB 2013, Salford, UK, June 19-21, Proceedings 18, Springer, 2013, pp. 303–308, 2013.
  • M. Abdul-Mageed, M. Diab, S. Ku¨bler, “Samar: Subjectivity and sentiment analysis for arabic social media”, Computer Speech & Language, Vol. 28 (1),20–37, 2014.
  • M. A. Paredes-Valverde, R. Colomo-Palacios, M. d. P. Salas-Z´arate, R. Valencia-Garc´ıa, et al., “Sentiment analysis in spanish for improvement of products and services: A deep learning approach”, Scientific Programming, 2017.
  • H. Ghorbel, D. Jacot, “Sentiment analysis of french movie reviews”, in: Advances in Distributed Agent-Based Retrieval Tools, Springer, pp. 97–108, 2011.
  • M. Ptaszynski, R. Rzepka, K. Araki, Y. Momouchi, “Automatically annotating a five-billion-word corpus of japanese blogs for sentiment and affect analysis”, Computer Speech & Language, Vol. 28 (1),38–55, 2014.
  • M. Song, H. Park, K.-s. Shin, “Attention-based long short-term memory network using sentiment lexicon embedding for aspect-level sentiment analysis in korean”, Information Processing & Management, Vol. 56 (3),637–653, 2019.
  • “A systematic literature review of Arabic dialect sentiment analysis”, Journal of King Saud University - Computer and Information Sciences,Vol. 35 (6),101570, 2023. doi:https://doi.org/10.1016/j.jksuci.2023.101570.
  • D. C. Mutz, J. Soss, “Reading public opinion: The influence of news coverage on perceptions of public sentiment”, Public Opinion Quarterly,Vol.431–451.
  • C. A. Chapelle, Y.-R. Chung, “The promise of NLPand speech processing technologies in language assessment”, Language Testing, Vol, 27 (3),301–315, 2010.
  • L. Abualigah, H. E. Alfar, M. Shehab, A. M. A. Hussein, “Sentiment analysis in healthcare: a brief review”, Recent advances in NLP: the case of Arabic language,Vol. 129–141, 2020.
  • I. Aattouchi, S. Elmendili, F. Elmendili, “Sentiment analysis of health care”, in: E3S Web of Conferences, Vol. 319, EDP Sciences, p. 01064, 2021.
  • A. Zunic, P. Corcoran, I. Spasic, “Sentiment analysis in health and wellbeing: a systematic review”, JMIR medical informatics, Vol. 8 (1),e16023, 2020.
  • K. Denecke, Y. Deng, “Sentiment analysis in medical settings: New opportunities and challenges”, Artificial intelligence in medicine, Vol. 64 (1),17–27, 2015.
  • H. Pandey, A. K. Mishra, D. N. Kumar, “Various aspects of sentiment analysis: a review”, in: Proceedings of 2nd International Conference on Advanced Computing and Software Engineering (ICACSE), 2019.
  • R. Varghese, M. Jayasree, “A survey on sentiment analysis and opinion mining”, International Journal of Research in Engineering and Technology, Vol. 2 (11),2013, 312–317.
  • T. Shivaprasad, J. Shetty, “Sentiment analysis of product reviews: A review”, in: 2017 International conference on inventive communication and computational technologies (ICICCT), IEEE, pp. 298–301, 2017.