A Machine Learning Sentiment Analysis Approach on News Headlines to Evaluate the Performance of the Pakistani Government

Authors

  • Hajira Noor Faculty of Computer Science and Information Technology, Superior University, Lahore, 54000, Pakistan.
  • Jawad Ahmad Faculty of Computer Science and Information Technology, Superior University, Lahore, 54000, Pakistan.
  • Ammar Haider School of System and Technology, University of Management and Technology, Lahore, 5400, Pakistan.
  • Fawad Nasim Faculty of Computer Science and Information Technology, Superior University, Lahore, 54000, Pakistan.
  • Arfan Jaffar Faculty of Computer Science and Information Technology, Superior University, Lahore, 54000, Pakistan.

Keywords:

Sentiment Analysis (SA), Data Collection, Data Processing, Government Performance, Machine Learning (ML), Natural Language Processing (NLP), Pre-trained Models, Naïve Bayes (NB), Support Vector Machine (SVM), Linear Regression (LR)

Abstract

The growing amount of unstructured online data presents challenges in efficiently organizing and summarizing relevant information, hindering knowledge development and opinion-building on various topics. Sentimental analysis is key technique to understand public views, as news significantly influences people's perceptions and emotions on various subjects, including politics, economics, and art. The study assesses Pakistani governments' performance using machine learning sentiment analysis of news headlines scraped from Dawn news, focusing on, PMLN, and PTI political party regimes, which hold the government authorities in last ten years. This study uses machine learning and pre-trained models for textual representation, recording term context and semantics, and incorporating feature reduction to enhance sentiment analysis accuracy by selecting useful features and applying labels. The SVM and sentiment intensity analyser model performed well, in experiments on two news headline datasets, from which gaining accuracy on the dawn news dataset with the sentiment intensity analyser pre-trained model. The system evaluates government efficacy using predicted labelled news, displaying sentiment scores from headlines from four regimes containing that ranking them and assessing their impacts. 

Downloads

Published

2024-09-01

How to Cite

Hajira Noor, Jawad Ahmad, Ammar Haider, Fawad Nasim, & Arfan Jaffar. (2024). A Machine Learning Sentiment Analysis Approach on News Headlines to Evaluate the Performance of the Pakistani Government. Journal of Computing & Biomedical Informatics, 7(02). Retrieved from https://jcbi.org/index.php/Main/article/view/524