Leveraging NLP and deep learning models for political opinion mining: sentiment classification and sequential analysis of news media influence on elections

Although the impact of digital news media on public opinion has grown significantly, there are currently no computational frameworks that empirically connect news mood to election results. This research suggests an artificial intelligence (AI)-based solution that uses deep learning and natural language processing to analyze how political news sentiment affects election outcomes. A dataset of 17,000 political news stories gathered during the general elections in Pakistan in 2024 was manually classified into three categories: good, negative, and neutral. In order to capture contextual and temporal relationships in political speech, the texts underwent normalization, tokenization, lemmatization, and modeling using a Bidirectional Long Short-Term Memory (BiLSTM) network. To evaluate media influence, party-level mood indices were calculated using model predictions and statistically associated with official vote shares. According to experimental results, the suggested BiLSTM model outperforms conventional machine learning baselines and reaches an accuracy of 89%. Additionally, sentiment indices and electoral results show a statistically significant link, suggesting a quantifiable relationship between media mood and voter behavior. The suggested paradigm offers empirical insights into the function of news sentiment in election dynamics and a repeatable technique for extensive political media study.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2026-07-21
DOI
https://doi.org/10.7717/peerj-cs.4001
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging NLP and deep learning models for political opinion mining: sentiment classification and sequential analysis of news media influence on elections

Syed Rizwan Hassan, Teong Chee Chuah, Muhammad Kashif, Javed Ferzund et al.
PeerJ Computer Science
Sentiment Analysis and Opinion Mining
article

Leveraging NLP and deep learning models for political opinion mining: sentiment classification and sequential analysis of news media influence on elections

Syed Rizwan Hassan, Teong Chee Chuah, Muhammad Kashif, Javed Ferzund, Yawar Abbas Abid, Muhammad Sheraz
article en

Abstract

Although the impact of digital news media on public opinion has grown significantly, there are currently no computational frameworks that empirically connect news mood to election results. This research suggests an artificial intelligence (AI)-based solution that uses deep learning and natural language processing to analyze how political news sentiment affects election outcomes. A dataset of 17,000 political news stories gathered during the general elections in Pakistan in 2024 was manually classified into three categories: good, negative, and neutral. In order to capture contextual and temporal relationships in political speech, the texts underwent normalization, tokenization, lemmatization, and modeling using a Bidirectional Long Short-Term Memory (BiLSTM) network. To evaluate media influence, party-level mood indices were calculated using model predictions and statistically associated with official vote shares. According to experimental results, the suggested BiLSTM model outperforms conventional machine learning baselines and reaches an accuracy of 89%. Additionally, sentiment indices and electoral results show a statistically significant link, suggesting a quantifiable relationship between media mood and voter behavior. The suggested paradigm offers empirical insights into the function of news sentiment in election dynamics and a repeatable technique for extensive political media study.

PeerJ Computer ScienceVol. 12
Gachon University (KR), COMSATS University Islamabad (PK), Multimedia University (MY), Guilin University of Electronic Technology (CN)
Quality Education
Openalex Percentile: Top 6%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.