Evaluating the Effectiveness of CNN, LSTM, and Bi-LSTM Models in Classifying Twitter Sentiments

Introduction: Twitter sentiment analysis is an essential tool for understanding public opinions and extracting valuable insights from social media discussions. However, the informal, concise nature of tweets, along with their context-dependent language, poses significant challenges for accurate sentiment classification. Deep learning techniques have shown promise in addressing these challenges due to their ability to learn complex patterns and contextual relationships in data. This study explores the application of Convolutional Neural Networks (1D-CNN), Long Short-Term Memory (LSTM), and Bidirectional LSTM (Bi-LSTM) models for classifying tweet sentiments into four categories: positive, negative, neutral, and irrelevant. Objectives: The primary objective of this study is to evaluate the effectiveness of deep learning models, including 1D-CNN, LSTM, and Bi-LSTM, in classifying tweet sentiments into categories such as positive, negative, neutral, and irrelevant. By analyzing the performance of these models, the study aims to compare their accuracy, precision, recall, and F1-score to determine their strengths and limitations. Additionally, the research seeks to identify the most suitable model capable of effectively capturing the sequential and contextual nature of tweets, addressing the unique challenges posed by the informal and context-dependent language of social media data. Methods: The study employs a publicly available Twitter sentiment dataset comprising 73,906 tweets related to general Twitter discussions. The dataset undergoes pre-processing steps, including tokenization, stopword removal, and handling emoticons and hashtags, to ensure clean input for training the models. Tweets are represented using pre-trained word embeddings, specifically GloVe and Word2Vec, which provide rich semantic information by capturing word meanings in context. Individual models—1D-CNN, LSTM, and Bi-LSTM—are trained and evaluated using this pre-processed data. Performance metrics, including accuracy, precision, recall, and F1-score, are calculated to compare the models' effectiveness. Results: The experimental analysis demonstrates that each model has unique strengths in sentiment classification. However, the 1D-CNN outperforms both LSTM and Bi-LSTM models, achieving superior results in capturing both the sequential and contextual information inherent in tweet data. This highlights its efficiency and suitability for Twitter sentiment analysis. Conclusions: This study underscores the potential of deep learning techniques for sentiment analysis in social media. Among the evaluated models, 1D-CNN proves to be the most effective, offering a robust approach to handling the complexities of tweet sentiment classification. Future work could explore hybrid models and further optimization techniques to enhance sentiment analysis performance.

Authors

Publication Details

Journal
Journal of Information Systems Engineering & Management
Published
2025-03-04
DOI
https://doi.org/10.52783/jisem.v10i15s.2475
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluating the Effectiveness of CNN, LSTM, and Bi-LSTM Models in Classifying Twitter Sentiments

P Naveen
Journal of Information Systems Engineering & Management
Sentiment Analysis and Opinion Mining
article

Evaluating the Effectiveness of CNN, LSTM, and Bi-LSTM Models in Classifying Twitter Sentiments

P Naveen
article en

Abstract

Introduction: Twitter sentiment analysis is an essential tool for understanding public opinions and extracting valuable insights from social media discussions. However, the informal, concise nature of tweets, along with their context-dependent language, poses significant challenges for accurate sentiment classification. Deep learning techniques have shown promise in addressing these challenges due to their ability to learn complex patterns and contextual relationships in data. This study explores the application of Convolutional Neural Networks (1D-CNN), Long Short-Term Memory (LSTM), and Bidirectional LSTM (Bi-LSTM) models for classifying tweet sentiments into four categories: positive, negative, neutral, and irrelevant. Objectives: The primary objective of this study is to evaluate the effectiveness of deep learning models, including 1D-CNN, LSTM, and Bi-LSTM, in classifying tweet sentiments into categories such as positive, negative, neutral, and irrelevant. By analyzing the performance of these models, the study aims to compare their accuracy, precision, recall, and F1-score to determine their strengths and limitations. Additionally, the research seeks to identify the most suitable model capable of effectively capturing the sequential and contextual nature of tweets, addressing the unique challenges posed by the informal and context-dependent language of social media data. Methods: The study employs a publicly available Twitter sentiment dataset comprising 73,906 tweets related to general Twitter discussions. The dataset undergoes pre-processing steps, including tokenization, stopword removal, and handling emoticons and hashtags, to ensure clean input for training the models. Tweets are represented using pre-trained word embeddings, specifically GloVe and Word2Vec, which provide rich semantic information by capturing word meanings in context. Individual models—1D-CNN, LSTM, and Bi-LSTM—are trained and evaluated using this pre-processed data. Performance metrics, including accuracy, precision, recall, and F1-score, are calculated to compare the models' effectiveness. Results: The experimental analysis demonstrates that each model has unique strengths in sentiment classification. However, the 1D-CNN outperforms both LSTM and Bi-LSTM models, achieving superior results in capturing both the sequential and contextual information inherent in tweet data. This highlights its efficiency and suitability for Twitter sentiment analysis. Conclusions: This study underscores the potential of deep learning techniques for sentiment analysis in social media. Among the evaluated models, 1D-CNN proves to be the most effective, offering a robust approach to handling the complexities of tweet sentiment classification. Future work could explore hybrid models and further optimization techniques to enhance sentiment analysis performance.

Journal of Information Systems Engineering & ManagementVol. 10(15s)
Openalex Percentile: Top 98%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.