Open Access Open Access  Restricted Access Subscription Access

Sentiment Analysis of Twitter Data for Better Services of Airlines Using Classifier-Model Algorithms, AI, and NLP Techniques

Zahoor Ahmed, Yaseen ., Ayoub Rehman, Saddam Hussain, Faheem Jamro, Talat Saeed


The rising attractiveness of social media sites and usage of social websites is to share information. Tweet, for instance, is a stage in which audiences direct, and examine posts recognized as “tweets,” and engage together in one-of-a-kind communities through feedback, comments, tweets, and reviews. There are so many companies that want tweets, comments, reviews, and analyses on their products and services, so they can improve their services, products, and customer satisfaction. We are highlighting airline companies where people are interested in checking the first company’s feedback, reviews, and tweets so they can use airline services as per their choice and needs with satisfaction. There are many airlines that have some good products and services, and some are bad, some are good for timings, luggage, meal, and customer service, Users proportion their everyday lives, and put up their reviews on all products and services. Many corporations can advantage profit from the large-scale platform by using amassing and analyzing data related to reviews on them. The foremost objective of this study article is to provide a classifier model; it may carry out sentimental and intent analysis of actual records accumulated from Tweets for airline services. Unstructured data in Tweet is the highly unstructured text which builds it harder to identify. However, in this article, we are classifying the sentiment and intent of tweets by revealing results through the classifier algorithms using python and its libraries, framework, and tools. We proposed our models based on NLP (natural language processing). Then, tweets are mined and pre-processed and then categorized into neutral, negative, and positive and highlight labels of services of the intent analysis it is a problem-solving analysis that helps people who want to use airline services, it would provide better recommendations as per people’s need. Naive Bayes classifier, Support Vector Machine, Random Forests, Logistic Regression, and Ensemble learning Voting Classifier algorithms are used by us for developing and outperform classifiers with better accuracy.


Sentiment analysis, naive bayes classifier, support vector machine, random forests, logistic regression, ensemble learning, voting classifier, NLP

Full Text:



Kaggle. (2015). Twitter U.S. airline sentiment. [Online] Available at [Accessed on February 2023].

Kaushik L, Sangwan A, Hansen JHL. Automatic sentiment detection in naturalistic audio. IEEE ACM Trans Aud Speech Lang Process. Aug 2017; 25 (8): 1668–1679. doi: 10.1109/TASLP.2017.2678164.

Hakh H, Aljarah I, Al-Shboul B. Online social media-based sentiment analysis for U.S. airline companies. Conference: Proceedings of the New Trends in Information Technology (NTIT-2017), Amman, Jordan; 2017. Available at _Social_Media-based_Sentiment_Analysis_for_US_Airline_companies [Accessed on February 2023]

Prabhakar E, Santhosh M, Hari Krishnan A, Kumar T, Sudhakar R. Sentiment analysis of US airline twitter data using new Adaboost approach. Int J Eng Res Technol. 2019; 7 (01). Available at [Accessed on February 2023]

Das D, Sharma S, Natani S, Khare N, Singh B. Sentimental analysis for airline twitter data. IOP Conf. Ser: Mater. Sci. Eng. 2017; 263 (4): 042067. doi: 10.1088/1757-899X/263/4/042067.

Saad SE, Yang J. Twitter sentiment analysis based on ordinal regression. IEEE Access. 2019; 7: 163677–163685. doi: 10.1109/ACCESS.2019.2952127.

Shayaa S, Jaafar NI, Bahri S, Sulaiman A, Seuk Wai P, Wai Chung Y et al. Sentiment analysis of big data: methods, applications, and open challenges. IEEE Access. 2018; 6: 37807–37827. doi: 10.1109/ACCESS.2018.2851311.

Prabhakar E, Sugashini K. New ensemble approach to analyze user sentiments from social media Twitter data. The SIJ Trans Ind Financ Bus Manag. 2018; 6(1): 7–11.

Li Z, Li R, Jin G. Sentiment analysis of danmaku videos based on naïve Bayes and sentiment dictionary. IEEE Access. 2020; 8: 75073–75084. doi: 10.1109/ACCESS.2020.2986582.

Jianqiang Z, Xiaolin G, Xuejun Z. Deep convolution neural networks for Twitter sentiment analysis. IEEE Access. 2018; 6: 23253–23260. doi: 10.1109/ACCESS.2017.2776930.

Phan HT, Nguyen NT, Van Cuong T, Hwang D. A method for detecting and analyzing the sentiment of tweets containing fuzzy sentiment phrases. In: Proceedings of the IEEE Int. Symp. Innov Intell Syst Appl (INISTA); Jul 2019; Sofia, Bulgaria: p. 1–6. Available at [Accessed on February 2023]

Al-Twairesh N, Al-Negheimish H. Surface and deep features ensemble for sentiment analysis of Arabic tweets. IEEE Access. 2019; 7: 84122-31. doi: 10.1109/ACCESS.2019.2924314.

Shen JH, Fratamico L, Rahwan I, Rush AM. Darling or babygirl? Investigating stylistic bias in sentiment analysis. In: Proceedings of the of FATML; 2018. Available at [Accessed on February 2023]

Hidayatullah AF, Ratnasari CI, Wisnugroho S. Analysis of stemming influence on Indonesian tweet classification. TELKOMNIKA (telecommunication computing electronics and control). 2016 Jun 1; 14 (2): 665–673.

Wahbeh AH, Al-Radaideh QA, Al-Kabi MN, Al-Shawakfa EM. A comparison study between data mining tools over some classification methods. Int J Adv Comput Sci Appl. 2011 Sep; 8 (2): 18–26.

Barbosa L, Feng J. Robust sentiment detection on twitter from biased and noisy data. Coling. 2010; Poster Volume: 36–44. Available at [Accessed on February 2023]

Wiebe J, Riloff E. Creating subjective and objective sentence classifiers from unannotated texts. In Proceedings of the 6th International Conference on Computational Linguistics and Intelligent Text Processing (CICLing-05); 2005: 486–497. Available at [Accessed on February 2023]


  • There are currently no refbacks.

Copyright (c) 2022 Current Trends in Information Technology

  • eISSN: 2249-4707
  • ISSN: 2348-7895