A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter
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. Traditi...
Saved in:
| Main Authors: | , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
PeerJ Inc.
2025-05-01
|
| Series: | PeerJ Computer Science |
| Subjects: | |
| Online Access: | https://peerj.com/articles/cs-2881.pdf |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1849312255860015104 |
|---|---|
| author | Serpil Aslan Muhammed Yildirim |
| author_facet | Serpil Aslan Muhammed Yildirim |
| author_sort | Serpil Aslan |
| collection | DOAJ |
| description | 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. |
| format | Article |
| id | doaj-art-a67902f2b9124039a992488f63c41b20 |
| institution | Kabale University |
| issn | 2376-5992 |
| language | English |
| publishDate | 2025-05-01 |
| publisher | PeerJ Inc. |
| record_format | Article |
| series | PeerJ Computer Science |
| spelling | doaj-art-a67902f2b9124039a992488f63c41b202025-08-20T03:53:07ZengPeerJ Inc.PeerJ Computer Science2376-59922025-05-0111e288110.7717/peerj-cs.2881A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on TwitterSerpil Aslan0Muhammed Yildirim1Software Engineering, Malatya Turgut Ozal University, Malatya, TurkeyComputer Engineering, Malatya Turgut Ozal University, Malatya, TurkeyTwitter 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.https://peerj.com/articles/cs-2881.pdfEarthquakeDeep learningSentiment classificationAttention mechanismCNNRNN |
| spellingShingle | Serpil Aslan Muhammed Yildirim A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter PeerJ Computer Science Earthquake Deep learning Sentiment classification Attention mechanism CNN RNN |
| title | A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter |
| title_full | A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter |
| title_fullStr | A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter |
| title_full_unstemmed | A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter |
| title_short | A novel attention-based deep learning model for improving sentiment classification after the case of the 2023 Kahramanmaras/Turkey earthquake on Twitter |
| title_sort | novel attention based deep learning model for improving sentiment classification after the case of the 2023 kahramanmaras turkey earthquake on twitter |
| topic | Earthquake Deep learning Sentiment classification Attention mechanism CNN RNN |
| url | https://peerj.com/articles/cs-2881.pdf |
| work_keys_str_mv | AT serpilaslan anovelattentionbaseddeeplearningmodelforimprovingsentimentclassificationafterthecaseofthe2023kahramanmarasturkeyearthquakeontwitter AT muhammedyildirim anovelattentionbaseddeeplearningmodelforimprovingsentimentclassificationafterthecaseofthe2023kahramanmarasturkeyearthquakeontwitter AT serpilaslan novelattentionbaseddeeplearningmodelforimprovingsentimentclassificationafterthecaseofthe2023kahramanmarasturkeyearthquakeontwitter AT muhammedyildirim novelattentionbaseddeeplearningmodelforimprovingsentimentclassificationafterthecaseofthe2023kahramanmarasturkeyearthquakeontwitter |