Comparison of RNN and LSTM Classifiers for Sentiment Analysis of Airline Tweets

  • Rogaia Yousif Ahmed University of Gezira, Sudan
  • Noon Fahmi Yuosif University of Gezira, Sudan
  • Sarmed Awad Ahmed University of Gezira, Sudan
  • Al-Baraa Ali Mohammed University of Gezira, Yemen
Keywords: RNN, LSTM, Sentiment analysis, Time-consuming, Airlines tweets

Abstract

This study examines the application of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) models for sentiment analysis of airline-related tweets, focusing on customer feedback directed at U.S. airlines on the X platform (formerly Twitter). The objective was to utilize these deep learning models to identify sentiment trends within text data and compare their performance in terms of computation time. The analysis was conducted on a 14,640-imbalanced dataset of classified tweets from February 2015 as positive, negative, or neutral. Both models were trained under identical conditions using Term Frequency-Inverse Document Frequency (TF-IDF) and Word2Vec for feature extraction. LSTM achieved 74% accuracy with AUC scores of 0.84, 0.90, and 0.89. RNN achieved 72% accuracy with AUC scores of 0.78, 0.87, and 0.85. In terms of time efficiency, RNN outperformed LSTM, requiring 57.16 seconds for training and 0.52 seconds for testing, compared to LSTM’s 82.40 and 0.82 seconds. Time performance was also evaluated per sentiment class, and RNN consistently outperformed LSTM. These results highlight the trade-off between accuracy and computational cost. Limitations include dataset imbalance and LSTM’s slower computation due to its internal gate mechanisms. Future work could prioritize integrating hybrid models and may use data imbalance techniques to improve sentiment classification.

Downloads

Download data is not yet available.

References

R. Alroobaea, "Sentiment analysis on amazon product reviews using the recurrent neural network (rnn)," International Journal of Advanced Computer Science and Applications, vol. 13, no. 4, 2022.

M. Wankhade, A. C. S. Rao, and C. Kulkarni, "A survey on sentiment analysis methods, applications, and challenges," Artificial Intelligence Review, vol. 55, no. 7, pp. 5731-5780, 2022.

P. Cen, K. Zhang, and D. Zheng, "Sentiment analysis using deep learning approach," J. Artif. Intell, vol. 2, no. 1, pp. 17-27, 2020.

P. M. Mah, I. Skalna, and J. Muzam, "Natural language processing and artificial intelligence for enterprise management in the era of industry 4.0," Applied Sciences, vol. 12, no. 18, pp. 9207, 2022.

S. B. B. Priyadarshini, A. B. Bagjadab, and B. K. Mishra, "A brief overview of natural language processing and artificial intelligence," Natural language processing in artificial intelligence, pp. 211-224, 2020.

B. S. Anupama, D. B. Rakshith, K. M. Rahul, and M. Navaneeth, "Real time Twitter sentiment analysis using natural language processing," Int J Eng Res, vol. 9, pp. 1107-1112, 2020.

J. S. Datt, K. Bhasin, and P. Jamwal, "SENTIMENT ANALYSIS USING CUSTOMER FEEDBACK," International Journal of Trendy Research in Engineering and Technology, vol. 7, no. 4, 2023.

O. Adwan, M. Al-Tawil, A. Huneiti, R. Shahin, A. A. Zayed, and R. Al-Dibsi, "Twitter sentiment analysis approaches: A survey," International Journal of Emerging Technologies in Learning (iJET), vol. 15, no. 15, pp. 79-93, 2020.

P. C. Shilpa, R. Shereen, S. Jacob, and P. Vinod, "Sentiment analysis using deep learning," in 2021 Third International Conference on Intelligent Communication Technologies and Virtual Mobile Networks (ICICV), 2021: IEEE, pp. 930-937.

A. Alqurafi and T. Alsanoosy, "Measuring Customers’ Satisfaction Using Sentiment Analysis: Model and Tool," J. Comput. Sci, vol. 20, pp. 419-430, 2024.

S. Banerjee, A. Pandit, T. O. Olubiyi, and R. P. Kumar, "Sentiment Analysis in Customer Relationship Management," in Demystifying Emotion AI, Robotics AI, and Sentiment Analysis in Customer Relationship Management: IGI Global Scientific Publishing, 2025, pp. 161-178.

S. L. Idris and M. Mohamad, "A Study on Sentiment Analysis on Airline Quality Services: A Conceptual Paper," Information Management and Business Review, vol. 15, no. 4, pp. 564-576, 2023.

N. S. Suryawanshi, "Sentiment analysis with machine learning and deep learning: A survey of techniques and applications," in International Journal of Science and Research Archive, vol. 12: GSC Online Press, 2024, pp. 005-015.

N. C. Dang, M. N. Moreno-García, and F. De la Prieta, "Sentiment analysis based on deep learning: A comparative study," Electronics, vol. 9, no. 3, pp. 483, 2020.

M. T. H. K. Tusar and M. T. Islam, "A comparative study of sentiment analysis using NLP and different machine learning techniques on US airline Twitter data," in 2021 International Conference on Electronics, Communications and Information Technology (ICECIT), 2021: IEEE, pp. 1-4.

Y. A. Singgalen, "Sentiment Analysis and Trend Mapping of Hotel Reviews Using LSTM and GRU," Journal of Information Systems and Informatics, vol. 6, no. 4, pp. 2814-2836, 2024.

K. L. Tan, C. P. Lee, K. S. M. Anbananthen, and K. M. Lim, "RoBERTa-LSTM: a hybrid model for sentiment analysis with transformer and recurrent neural network," IEEE Access, vol. 10, pp. 21517-21525, 2022.

D. Wang, "Sentiment Analysis of English Text based on LSTM-RNN," International Journal of Educational Innovation and Science, 2022.

M. Beseiso, "Word and character information aware neural model for emotional analysis," Recent Patents on Computer Science, vol. 12, no. 2, pp. 142-147, 2019.

Y. Qixuan, "Three-Class Text Sentiment Analysis Based on LSTM," in arXiv e-prints, ed, 2024, p. arXiv:2412.17347.

Z. Jin, Y. Yang, and Y. Liu, "Stock closing price prediction based on sentiment analysis and LSTM," Neural Computing and Applications, vol. 32, pp. 9713-9729, 2020.

H. H. Hussein and A. Lakizadeh, "A Systematic Assessment of Sentiment Analysis Models on Iraqi Dialect-based Texts," Systems and Soft Computing, pp. 200203, 2025.

L. Damayanti and K. M. Lhaksmana, "Sentiment analysis of the 2024 Indonesia presidential election on twitter," Sinkron: jurnal dan penelitian teknik informatika, vol. 8, no. 2, pp. 938-946, 2024.

M. Idris, A. Rifai, and K. D. Tania, "Sentiment Analysis of Tokopedia App Reviews using Machine Learning and Word Embeddings," Sinkron: jurnal dan penelitian teknik informatika, vol. 9, no. 1, pp. 210-219, 2025.

P. C. Huy, N. Q. Minh, N. D. Tien, and T. T. Q. Anh, "Short-term electricity load forecasting based on temporal fusion transformer model," Ieee Access, vol. 10, pp. 106296-106304, 2022.

P. Pan and Y. Chen, "Automatic subject classification of public messages in e-government affairs," Data and Information Management, vol. 5, no. 3, pp. 336-347, 2021.

Published
2025-06-30
Abstract views: 1010 times
Download PDF: 490 times
How to Cite
Ahmed, R., Yuosif, N., Ahmed, S., & Mohammed, A.-B. (2025). Comparison of RNN and LSTM Classifiers for Sentiment Analysis of Airline Tweets. Journal of Information Systems and Informatics, 7(2), 1893-1913. https://doi.org/10.51519/journalisi.v7i2.1140
Section
Articles