Aslan Serpil, Yildirim Muhammed
Software Engineering, Malatya Turgut Ozal University, Malatya, Turkey.
Computer Engineering, Malatya Turgut Ozal University, Malatya, Turkey.
PeerJ Comput Sci. 2025 May 8;11:e2881. doi: 10.7717/peerj-cs.2881. eCollection 2025.
Twitter has emerged as one of the most widely used platforms for sharing information and updates. As users freely express their thoughts and emotions, a vast amount of data is generated, particularly in the aftermath of disasters, which can be collected quickly and directly from individuals. Traditionally, earthquake impact assessments have been conducted through field studies by non-governmental organizations (NGOs), a process that is often time-consuming and costly. Sentiment analysis (SA) on Twitter presents a valuable research area, enabling the extraction and interpretation of real-time public perceptions. In recent years, attention-based methods in deep learning networks have gained significant attention among researchers. This study proposes a novel sentiment classification model, MConv-BiLSTM-GAM, which leverages an attention mechanism to analyze public sentiment following the 7.8 and 7.5 Mw earthquakes that struck Kahramanmaraş, Turkey. The model employs the FastText word embedding technique to convert tweets into vector representations. These vectorized inputs are then processed by a hybrid model integrating convolutional neural networks (CNNs) and recurrent neural networks (RNNs) with a global attention mechanism. This ensures careful consideration of semantic dependencies in sentiment classification. The proposed model operates in three stages: (i) MConv-Local Contextual Feature Extraction, (ii) bidirectional long short-term memory (BiLSTM)-sequence learning, and (iii) Global Attention Mechanism (GAM)-Attention Mechanism. Experimental results demonstrate that the model achieves an accuracy of 93.32%, surpassing traditional deep learning models in the literature by approximately 3%. This research aims to provide objective insights to policymakers and decision-makers, facilitating adequate support for individuals and communities affected by disasters. Moreover, analyzing public sentiment during earthquakes contributes to understanding societal responses and emotional trends in disaster scenarios.
推特已成为最广泛使用的信息和动态分享平台之一。由于用户可以自由表达自己的想法和情感,会产生大量数据,尤其是在灾难发生后,这些数据可以迅速且直接地从个人那里收集到。传统上,地震影响评估是由非政府组织通过实地研究来进行的,这个过程往往既耗时又昂贵。推特上的情感分析是一个有价值的研究领域,能够提取和解读实时的公众看法。近年来,深度学习网络中基于注意力的方法在研究人员中受到了广泛关注。本研究提出了一种新颖的情感分类模型MConv-BiLSTM-GAM,该模型利用注意力机制来分析土耳其卡赫拉曼马拉什发生7.8级和7.5级地震后的公众情绪。该模型采用FastText词嵌入技术将推文转换为向量表示。然后,这些向量化的输入由一个集成了卷积神经网络(CNN)和循环神经网络(RNN)以及全局注意力机制的混合模型进行处理。这确保了在情感分类中仔细考虑语义依赖关系。所提出的模型分三个阶段运行:(i)MConv-局部上下文特征提取,(ii)双向长短期记忆(BiLSTM)-序列学习,以及(iii)全局注意力机制(GAM)-注意力机制。实验结果表明,该模型的准确率达到了93.32%,比文献中的传统深度学习模型高出约3%。本研究旨在为政策制定者和决策者提供客观的见解,以便为受灾害影响的个人和社区提供充分的支持。此外,分析地震期间的公众情绪有助于了解灾难场景中的社会反应和情感趋势。