Open Access iconOpen Access

ARTICLE

crossmark

Optimizing Airline Review Sentiment Analysis: A Comparative Analysis of LLaMA and BERT Models through Fine-Tuning and Few-Shot Learning

Konstantinos I. Roumeliotis1,*, Nikolaos D. Tselikas2, Dimitrios K. Nasiopoulos3

1 Department of Digital Systems, University of Peloponnese, Sparta, 23100, Greece
2 Department of Informatics and Telecommunications, University of Peloponnese, Tripoli, 22131, Greece
3 Department of Agribusiness and Supply Chain Management, School of Applied Economics and Social Sciences, Agricultural University of Athens, Athens, 11855, Greece

* Corresponding Author: Konstantinos I. Roumeliotis. Email: email

(This article belongs to the Special Issue: Enhancing AI Applications through NLP and LLM Integration)

Computers, Materials & Continua 2025, 82(2), 2769-2792. https://doi.org/10.32604/cmc.2025.059567

Abstract

In the rapidly evolving landscape of natural language processing (NLP) and sentiment analysis, improving the accuracy and efficiency of sentiment classification models is crucial. This paper investigates the performance of two advanced models, the Large Language Model (LLM) LLaMA model and NLP BERT model, in the context of airline review sentiment analysis. Through fine-tuning, domain adaptation, and the application of few-shot learning, the study addresses the subtleties of sentiment expressions in airline-related text data. Employing predictive modeling and comparative analysis, the research evaluates the effectiveness of Large Language Model Meta AI (LLaMA) and Bidirectional Encoder Representations from Transformers (BERT) in capturing sentiment intricacies. Fine-tuning, including domain adaptation, enhances the models' performance in sentiment classification tasks. Additionally, the study explores the potential of few-shot learning to improve model generalization using minimal annotated data for targeted sentiment analysis. By conducting experiments on a diverse airline review dataset, the research quantifies the impact of fine-tuning, domain adaptation, and few-shot learning on model performance, providing valuable insights for industries aiming to predict recommendations and enhance customer satisfaction through a deeper understanding of sentiment in user-generated content (UGC). This research contributes to refining sentiment analysis models, ultimately fostering improved customer satisfaction in the airline industry.

Keywords

Sentiment classification; review sentiment analysis; user-generated content; domain adaptation; customer satisfaction; LLaMA model; BERT model; airline reviews; LLM classification; fine-tuning

Cite This Article

APA Style
Roumeliotis, K.I., Tselikas, N.D., Nasiopoulos, D.K. (2025). Optimizing Airline Review Sentiment Analysis: A Comparative Analysis of LLaMA and BERT Models through Fine-Tuning and Few-Shot Learning. Computers, Materials & Continua, 82(2), 2769–2792. https://doi.org/10.32604/cmc.2025.059567
Vancouver Style
Roumeliotis KI, Tselikas ND, Nasiopoulos DK. Optimizing Airline Review Sentiment Analysis: A Comparative Analysis of LLaMA and BERT Models through Fine-Tuning and Few-Shot Learning. Comput Mater Contin. 2025;82(2):2769–2792. https://doi.org/10.32604/cmc.2025.059567
IEEE Style
K. I. Roumeliotis, N. D. Tselikas, and D. K. Nasiopoulos, “Optimizing Airline Review Sentiment Analysis: A Comparative Analysis of LLaMA and BERT Models through Fine-Tuning and Few-Shot Learning,” Comput. Mater. Contin., vol. 82, no. 2, pp. 2769–2792, 2025. https://doi.org/10.32604/cmc.2025.059567



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 2140

    View

  • 1270

    Download

  • 0

    Like

Share Link