Title: Tweet sentiment analysis: leveraging weighted word embedding to evaluate criticality and security of events

Authors: Irfan Ali Kandhro; Ali Orangzeb Panhwar; Asma Touqir; Asadullah Burdi

Addresses: Department of Computer Science, Sindh Madressatul Islam University, Pakistan ' Department of Computer Science, SZABIST Gharo, Pakistan ' Department of Computer Science, School of Mathematics and Computer Science, IBA Karachi, Pakistan ' Institute of Mathematics and Computer Science (IMCS), University of Sindh Jamshoro, Pakistan

Abstract: Currently, one of the most important sectors globally is social media. It has been reported that about 74% of people on the planet utilise social media. This has spurred a lot of social media study. Sentiment analysis of real-time social media data for security purposes is one such helpful application. In this paper, we present a weighted word embedding approach for classification of tweets related to education. The proposed approach utilised weighted GloVe word embedding with a sequential neural network (SNN) architecture to enhance the accuracy of sentiment classification. Moreover, this paper incorporates the weighted word embeddings, assigning varying weights based on their relevance to sentiment analysis. In the empirical analysis, we evaluate the predictive performance of different word embedding schemes, including SNN word embedding, GloVe, and DIM, with deep neural network architectures. The performance of the proposed approach is measured using precision, recall, F1 score and accuracy. The experimental results showcase promising performance, effectively capturing valuable insights into public opinion during the pandemic. The combination of TF-IDF weighted GloVe word embedding and the SNN architecture proves to be a robust approach for sentiment analysis, providing accurate sentiment classification reviews on Twitter.

Keywords: security; alerts; sentiment analysis; education tweets; GloVe; word embedding; deep learning.

DOI: 10.1504/IJESDF.2025.149346

International Journal of Electronic Security and Digital Forensics, 2025 Vol.17 No.6, pp.710 - 724

Received: 19 Dec 2023
Accepted: 04 Mar 2024

Published online: 27 Oct 2025 *

Full-text access for editors Full-text access for subscribers Purchase this article Comment on this article