Abstract
Sentiment analysis is the process of extracting and analyzing opinions, attitudes, and emotions expressed in text data. Due to the increased amount of user-generated content on the Internet, sentiment analysis has become an important research area, which has successfully been tackled with machine learning models such as SVMs and Random Forests. Against the backdrop of rapidly growing popularity of Generative Pre-trained Transformers (GPT), the question arises, as to how good such models perform in sentiment analysis. This research paper analyzes and compares the performance of GPT-based models with traditional machine learning models for sentiment analysis. The results paint a clear picture: GPTs are a powerful concept that are applicable in sentiment analysis. In our study, they outperform traditional models such as SVM, Random Forests, or Naïve Bayes based on F1-score, precision, accuracy, and AUC-ROC score. As more advanced versions of GPT continue to be developed, it is likely that these models will become even more effective and popular sentiment analysis. Hence, the application and evaluation of GPTs represents a promising avenue for future research.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Wankhade M, Rao ACS, Kulkarni C (2022) A survey on sentiment analysis methods, applications, and challenges. Artif Intell Rev 55:5731–5780. https://doi.org/10.1007/s10462-022-10144-1
Singh PN, Behera S (2022) The transformers’ ability to implement for solving intricacies of language processing. In: 2022 2nd Asian conference on innovation in technology (ASIANCON). IEEE, pp 1–7. https://doi.org/10.1109/ASIANCON55314.2022.9909423
Gupta A, Das N (2022) ProdRev: A DNN framework for empowering customers using generative pre-trained transformers. In: 2022 international conference on decision aid sciences and applications (DASA). IEEE, pp 895–899. https://doi.org/10.1109/DASA54658.2022.9765232
Mathew L, Bindu VR (2022) Efficient classification techniques in sentiment analysis using transformers. In: Khanna A, Gupta D, Bhattacharyya S, Hassanien AE, Anand S, Jaiswal A (eds) International conference on innovative computing and communications. Advances in intelligent systems and computing, vol 1387. Springer Singapore, Singapore, pp 849–862. https://doi.org/10.1007/978-981-16-2594-7_69
Liu B (2012) Sentiment analysis and opinion mining. Synth Lect Hum Lang Technol 5:1–167. https://doi.org/10.2200/S00416ED1V01Y201204HLT016
Udokwu C, Darbanian F, Falatouri TN, Brandtner P (2020) Evaluating technique for capturing customer satisfaction data in retail supply chain. In: 2020 the 4th international conference on e-commerce, e-business and e-government. ACM, New York, NY, USA, pp 89–95. https://doi.org/10.1145/3409929.3414743
AminiMotlagh M, Shahhoseini H, Fatehi N (2023) A reliable sentiment analysis for classification of tweets in social networks. Soc Netw Anal Min 13:7. https://doi.org/10.1007/s13278-022-00998-2
Grljević O, Bošnjak Z (2018) Sentiment analysis of customer data. Strateg Manage-Int J Strateg Manage Decis Support Syst Strateg Manage 23:38–49. https://doi.org/10.5937/StraMan1803038G
Chauhan UA, Afzal MT, Shahid A, Abdar M, Basiri ME, Zhou X (2020) A comprehensive analysis of adverb types for mining user sentiments on amazon product reviews. World Wide Web 23:1811–1829. https://doi.org/10.1007/s11280-020-00785-z
Brandtner P, Darbanian F, Falatouri T, Udokwu C (2021) Impact of COVID-19 on the customer end of retail supply chains: a big data analysis of consumer satisfaction. Sustainability 13:1464
Taherdoost H, Madanchian M (2023) Artificial intelligence and sentiment analysis: a review in competitive research. Computers 12:37. https://doi.org/10.3390/computers12020037
Panigrahi S, Momin S, Patil P, Kshirsagar P (2017) Sentiment analysis of application reviews on google Playstore. Int J Sci Res Comput Sci Eng Inf Tech 2:510–513
Kowsari K, Meimandi J, Heidarysafa M, Mendu S, Barnes L, Brown D (2019) Text classification algorithms: a survey. Information 10:150. https://doi.org/10.3390/info10040150
Lagrari F-E, Elkettani Y (2021) Traditional and deep learning approaches for sentiment analysis: a survey. Adv Sci Technol Eng Syst J 6:1–7. https://doi.org/10.25046/aj060501
Thakkar KY, Jagdishbhai N (2023) Exploring the capabilities and limitations of GPT and chat GPT in natural language processing. JMRA 10:18–20. https://doi.org/10.18231/j.jmra.2023.004
Gao T, Xia L, Yu D (ed) (2019) Fine-tuning pre-trained language model with multi-level adaptive learning rates for answer selection
Ye J, Chen X, Xu N, Zu C, Shao Z, Liu S, Cui Y, Zhou Z, Gong C, Shen Y et al (2023) A comprehensive capability analysis of GPT-3 and GPT-3.5 Series Models. arXiv
Ranjan S, Mishra S (2020) Comparative sentiment analysis of app reviews
Sällberg H, Wang S, Numminen E (2022) The combinatory role of online ratings and reviews in mobile app downloads: an empirical investigation of gaming and productivity apps from their initial app store launch. J Market Anal. https://doi.org/10.1057/s41270-022-00171-w
Pilliang M, Akbar H, Firmansyah G (2022) Sentiment analysis for super applications in Indonesia: a case study of Gov2Go App. In: 2022 3rd International conference on electrical engineering and informatics (ICon EEI). IEEE, pp 80–85. https://doi.org/10.1109/IConEEI55709.2022.9972291
Brown TB, Mann B, Ryder N, Subbiah M, Kaplan J, Dhariwal P, Neelakantan A, Shyam P, Sastry G, Askell A et al (2020) Language models are few-shot learners
Radford A, Wu J, Child R, Luan D, Amodei D, Sutskever I (2019) Language models are unsupervised multitask learners 1–9
Mikolov T, Chen K, Corrado G, Dean J (2013) Efficient estimation of word representations in vector space
Khandelwal K, Dhaka D, Barsopia V (2021) Predicting future classifiers for evolving non-linear decision boundaries. In Hutter F, Kersting K, Lijffijt J, Valera I (eds) Machine learning and knowledge discovery in databases. European conference, ECML PKDD 2020, Ghent, Belgium, September 14–18, 2020: proceedings, Parts I-V/Frank Hutter, Kristian Kersting, Jefrey Lijffijt, Isabel Valera (ed). LNCS Sublibrary: SL7—Artificial Intelligence, vol 12457. Springer, Cham, pp. 628–643. https://doi.org/10.1007/978-3-030-67658-2_36
Goldman DS (2023) A stateful multi-context aware design using openAI’s GPT (Towards Digital Sentience)
Avinash M, Sivasankar E (2019) A study of feature extraction techniques for sentiment analysis. In: Abraham A, Dutta P, Mandal JK, Bhattacharya A, Dutta S (eds) Emerging technologies in data mining and information security. Advances in intelligent systems and computing, vol 814. Springer Singapore, Singapore, pp 475–486. https://doi.org/10.1007/978-981-13-1501-5_41
Hovy D, Spruit SL (2016) The social impact of natural language processing. In: Erk K, Smith NA (eds.) Proceedings of the 54th annual meeting of the association for computational linguistics (Volume 2: Short Papers). Association for Computational Linguistics, Stroudsburg, PA, USA, pp 591–598. https://doi.org/10.18653/v1/p16-2096
Acknowledgements
This research has been funded by the CDG as part of the Josef Ressel Centre PREVAIL.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Obinwanne, T., Brandtner, P. (2024). Enhancing Sentiment Analysis with GPT—A Comparison of Large Language Models and Traditional Machine Learning Techniques. In: Nagar, A.K., Jat, D.S., Mishra, D., Joshi, A. (eds) Intelligent Sustainable Systems. WorldS4 2023. Lecture Notes in Networks and Systems, vol 803. Springer, Singapore. https://doi.org/10.1007/978-981-99-7569-3_17
Download citation
DOI: https://doi.org/10.1007/978-981-99-7569-3_17
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-99-7568-6
Online ISBN: 978-981-99-7569-3
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)