Predicting the Impact of Political Leaders' Decisions Using Natural Language Processing and Machine Learning
This chapter investigates the application of Machine Learning (ML) and Deep Learning (DL) models for political sentiment analysis, focusing on the classification of positive, negative, and neutral sentiments in political discourse. Using a publicly available, preprocessed corpus of political speeches from the 2023 Greek national elections, experiments were conducted using Logistic Regression (LR), Random Forest (RF), Extreme Gradient Boosting (XGBoost), Bidirectional Gated Recurrent Unit (BiGRU), and a Hybrid Stacking Ensemble (HSE) combining BiGRU and XGBoost with LR as a meta-classifier. LR achieved 90.2% test accuracy, confirming the effectiveness of classical linear models for high-dimensional textual data. XGBoost achieved 89.8% accuracy, while BiGRU captured sequential and contextual dependencies with 88.9% accuracy. Although HSE achieved a lower accuracy of 86.3%, it demonstrated improved robustness across sentiment classes and reduced extreme misclassifications. Comparative analysis indicates that the proposed models perform competitively against BiLSTM and transformer-based approaches. The findings highlight the potential and limitations of political sentiment analysis, with neutral sentiment remaining the most difficult category to classify. The chapter demonstrates the value of hybrid modelling strategies that combine interpretability with contextual learning and support scalable applications
Authors
- Fahad Burhan Ahmad (ORCID: https://orcid.org/0000-0001-5269-0427)
- Usama Sami
Institutions
- University of Portsmouth (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24559660
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- preprint