Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Sentiment and Emotion Analysis with Large Language Models for Political Security Prediction Framework

Author 1: Liyana Safra Zaabar Author 2: Adriana Arul Yacob Author 3: Mohd Rizal Mohd Isa Author 4: Muslihah Wook Author 5: Nor Asiakin Abdullah Author 6: Suzaimah Ramli Author 7: Noor Afiza Mat Razali
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 1 · Published 2025

DOI: https://doi.org/10.14569/IJACSA.2025.0160192

Abstract

The increasing spread of textual content on social media, driven by the rise of Large Language Models (LLMs), has highlighted the importance of sentiment analysis in detecting threats, racial abuse, violence, and implied warnings. The subtlety and ambiguity of language present challenges in developing effective frameworks for threat detection, particularly within the political security domain. While significant research has explored hate speech and offensive content, few studies focus on detecting threats using sentiment analysis in this context. Leveraging advancements in Natural Language Processing (NLP), this study employs the NRC Emotion Lexicon to label emotions in a political-domain social media dataset. TextBlob is used to extract sentiment polarity, identifying potential threats where anger and fear intensities exceed a threshold alongside negative sentiment. The Bidirectional Encoder Representations from Transformers (BERT) was applied to enhance threat detection accuracy. The proposed framework achieved an Area Under the ROC Curve (AUC) of 87%, with the BERT model achieving 91% accuracy, 90.5% precision, 81.3% recall and F1-score of 91%, outperforming baseline models. These findings demonstrate the effectiveness of sentiment and emotion-based features in improving threat detection accuracy, providing a robust framework for political security applications.

Keywords

How to Cite this Article

Zaabar, L. S., Yacob, A. A., Isa, M. R. M., Wook, M., Abdullah, N. A., Ramli, S., & Razali, N. A. M. (2025). Sentiment and Emotion Analysis with Large Language Models for Political Security Prediction Framework. International Journal of Advanced Computer Science and Applications, 16(1). https://doi.org/10.14569/IJACSA.2025.0160192

Zaabar, Liyana Safra, et al.. "Sentiment and Emotion Analysis with Large Language Models for Political Security Prediction Framework." International Journal of Advanced Computer Science and Applications, vol. 16, no. 1, 2025, https://doi.org/10.14569/IJACSA.2025.0160192.

@article{Zaabar2025,
  title     = {Sentiment and Emotion Analysis with Large Language Models for Political Security Prediction Framework},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {1},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Liyana Safra Zaabar and Adriana Arul Yacob and Mohd Rizal Mohd Isa and Muslihah Wook and Nor Asiakin Abdullah and Suzaimah Ramli and Noor Afiza Mat Razali},
  doi       = {10.14569/IJACSA.2025.0160192},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160192}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.