EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

News-Based Political Sentiment Analysis for Election Outcome Verification: A BERT-Based Study of the 2024 UK General Election

Dr. Ppg Dinesh Asanka

Global Journal of Computer Science and Technology · 17.02.2026 · 26 (1)

DOI: 10.34257/gjcstd253420 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Global Journal of Computer Science and Technology, online erschienen am 17.02.2026. Verfasst von Dr. Ppg Dinesh Asanka. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Accurate verification of general election outcomes is essential for understanding political dynamics and democratic processes. However, traditional forecasting methods such as opinion polls and voter surveys often suffer from sampling bias, delayed responses, and limited ability to capture rapid sentiment shifts. This study aims to propose and evaluate a transformer-based political sentiment analysis framework using online news articles to verify the outcome of the 2024 United Kingdom General Election. A dataset of 2,299 online news articles published between January and July 2024 was collected from seven major UK news outlets. A semi-supervised labelling approach was applied to assign sentiment polarity toward the Conservative Party and the Labour Party. To handle long-form political texts exceeding transformer token limits, articles were summarised before being processed. A fine-tuned BERT-base (uncased) model was trained to classify sentiment into positive, neutral, and negative categories. Model performance was assessed using accuracy, precision, recall, and F1-score, while temporal sentiment aggregation was conducted to compare predicted trends with the actual election outcome. The fine-tuned BERT model achieved strong sentiment classification performance, demonstrating robustness in identifying political sentiment from structured news media. Temporal analysis revealed a predominance of negative sentiment toward the Conservative Party, while the Labour Party received significantly higher levels of positive sentiment, particularly in the weeks leading up to the election. These aggregated sentiment trends successfully aligned with and verified the actual election outcome. The findings confirm that online news articles are a reliable alternative data source for political sentiment analysis and election outcome verification. Additionally, the study demonstrates the effectiveness of domain-adapted transformer-based models, such as BERT, in capturing meaningful sentiment shifts that reflect real-world electoral results.

Zitieren

APA

Asanka, D. P. D. (2026). News-Based Political Sentiment Analysis for Election Outcome Verification: A BERT-Based Study of the 2024 UK General Election. Global Journal of Computer Science and Technology, 26(1). https://doi.org/10.34257/gjcstd253420

Vancouver

Asanka DPD. News-Based Political Sentiment Analysis for Election Outcome Verification: A BERT-Based Study of the 2024 UK General Election. Global Journal of Computer Science and Technology. 2026;26(1). doi:10.34257/gjcstd253420

BibTeX
@article{Asanka2026,
  author = {Asanka, Dr. Ppg Dinesh},
  title = {News-Based Political Sentiment Analysis for Election Outcome Verification: A BERT-Based Study of the 2024 UK General Election},
  journal = {Global Journal of Computer Science and Technology},
  year = {2026},
  volume = {26},
  number = {1},
  doi = {10.34257/gjcstd253420}
}
Kostenlos starten →