January 16, 2026
Predicting air passenger satisfaction with Machine Learning techniques
Author: Marcella de Souza Ribeiro — Advisor: Luana Maria Benicio
Summary prepared by the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege focused on synthesis and writing.
This research aims to predict airline passenger satisfaction using Machine Learning, identify its main influencing factors, and segment customers by behavior. The study builds and compares classification models to determine the most accurate approach, identifying friction points in the consumer journey. The objective is to provide subsidies for airlines to implement strategic improvements, personalize services, and enhance the quality of experience, strengthening loyalty and competitiveness.
In the competitive airline industry, customer satisfaction is a crucial differentiator. Value perception encompasses the entire passenger journey, and anticipating their needs is fundamental for retention (Kotler and Keller, 2012). The consumer experience is shaped by multiple interactions, and the quality of contact with employees strengthens brand trust. Loyalty is a direct consequence of the company’s interaction with the customer before, during, and after the trip (Arruda and Arruda, 1998).
Customer segmentation is essential for directing strategies. Grouping passengers by travel purpose (business or leisure) or flight frequency allows for personalized offers. A business traveler may value Wi-Fi and quick boarding, while a leisure traveler may prioritize promotions and entertainment. Identifying target segments with common characteristics is essential for developing strategies that meet each group’s expectations (Zeithaml et al., 2014).
Machine Learning techniques allow the analysis of large volumes of data to discover complex patterns in consumer behavior. These algorithms build predictive models that anticipate outcomes based on historical data, transforming raw data into actionable insights for decision-making (Escovedo and Koshiyama, 2020). An example is the use of models to predict aircraft failures from sensor data, reducing costs and delays, which demonstrates the technology’s potential in the sector.
The application of statistical and machine learning methods on passenger data transforms feedbacks and operational data into business intelligence. By identifying the factors with the greatest impact on satisfaction, it is possible to prioritize investments and optimize processes. This study uses a real dataset to demonstrate how predictive analytics can be employed to understand the nuances of passenger satisfaction, transforming data into effective decisions (Fávero and Belfiore, 2024).
The study used a public dataset from the Maven Analytics repository (2022), with 129,880 observations and 24 variables on demographic characteristics, flight information, and service ratings on a scale of 0 to 5. The analysis was performed in Python on Google Colab, using the libraries Pandas, Matplotlib, Seaborn, Numpy, Sklearn, and Imblearn. The initial phase consisted of an exploratory analysis to understand the data structure, identify missing values, analyze distributions, and examine correlations.
In the preprocessing stage, the ‘Arrival Delay’ variable was removed due to missing values and high correlation with ‘Departure Delay’, thus avoiding redundancy. The ‘ID’ field was discarded as it lacked analytical value. Nominal categorical variables, such as ‘Gender’ and ‘Type of Travel’, were converted to a numerical format using One-Hot Encoding to prevent the interpretation of a non-existent hierarchical order. For scale-sensitive models like K-means and Logistic Regression, Z-score standardization was applied, which normalizes data to a mean of zero and a standard deviation of one. This data treatment is essential for model robustness (Kalinowski et al., 2023).
For segmentation, the unsupervised clustering algorithm K-means was employed, which partitions observations into distinct clusters. The optimal number of clusters was determined by the Elbow Method, which analyzes the within-cluster sum of squares (WCSS). Complementarily, Principal Component Analysis (PCA) was used to reduce dimensionality and identify the variables with the greatest contribution to variance, facilitating cluster interpretation. While K-means groups by proximity, PCA helps explain the structure of this proximity (Bruce and Bruce, 2019).
In predictive modeling, the data were divided into 70% for training and 30% for testing. Undersampling was applied to the training set to balance the target variable ‘Satisfaction’ and reduce the risk of bias. Three algorithms were trained and evaluated: Random Forest Classifier, Ada-Boost Classifier, and Logistic Regression. The performance of each was optimized with GridSearchCV, and robustness was ensured by Cross-Validation with 5 folds to prevent overfitting. Evaluation metrics included Accuracy, Mean Squared Error (MSE), Classification Report (precision, recall, F1-score), and Confusion Matrix.
Exploratory analysis revealed a slight imbalance in the database: 57% of passengers classified as neutral or dissatisfied and 43% as satisfied. Determinant factors were identified. Recurring customers showed higher satisfaction (48% positive reviews) compared to first-time travelers (24%). The relationship between travel type and satisfaction was strong: 58% of business passengers declared themselves satisfied, versus only 10% of those traveling for leisure. Flight class also showed a direct correlation, with the Business class presenting the highest satisfaction rate. Statistical analysis is fundamental to understanding the distributions and trends that a variable can assume (Morettin and Bussab, 2017). The Pearson correlation map confirmed that ‘Online Boarding’ had the strongest positive correlation with satisfaction, while ‘Type of Travel’ and ‘Class’ had the most pronounced negative correlations.
The application of K-means, with three clusters defined by the Elbow Method, identified distinct profiles. Cluster 1, “Highly Satisfied”, was mainly composed of Business class passengers (74%) with high scores (4 and 5) for services such as seat comfort, cleanliness, and food. Cluster 2, “Moderately Dissatisfied”, presented scores of 2 and 3, with complaints about the ease of online booking, the online boarding process, and the convenience of schedules. Cluster 3, “Mixed with Focus on Operations”, had ratings between 3 and 4, with criticisms similar to Cluster 2 regarding the digital platform and logistics, but with a positive evaluation of comfort. The results indicate that the onboard experience is a strong point for the premium audience, while digital processes and punctuality are friction points for other segments.
Principal Component Analysis (PCA) complemented the segmentation. The first principal component (PC1), responsible for 18.44% of the variance, was associated with in-flight experience variables, such as ‘In-flight Entertainment’, ‘Seat Comfort’, and ‘Cleanliness’, representing the “In-flight Quality and Comfort” dimension. The second principal component (PC2), with 10.82% of the variance, related to operational and logistical aspects, such as ease of online booking, Wi-Fi, and schedules, representing the “Journey Efficiency and Convenience” dimension. The analysis reinforces that passenger satisfaction is a multidimensional construct, influenced by both the quality of the in-flight service and the efficiency of the processes that precede it.
In predictive modeling, the Random Forest Classifier presented the best performance, achieving an accuracy of 96.14% and a mean squared error (MSE) of only 0.0386 on the test set. The classification report and confusion matrix confirmed its high predictive capacity. Random forest models, although more complex to interpret, often outperform linear models in accuracy (Morettin and Singer, 2022). The variable importance analysis revealed that ‘Online Boarding’, ‘In-flight wifi service’, and ‘Type of Travel’ were the most determining factors for the model’s predictions.
The Ada-Boost Classifier model also showed robust performance, with an accuracy of 92.79% and an MSE of 0.0721. As a technique that combines weak classifiers to create a strong model, Ada-Boost is a viable and powerful alternative (Hastie et al., 2009). The variable importance analysis in this model highlighted ‘In-flight wifi service’ as the factor with the highest weight, with over 20% influence. The Logistic Regression model, although simpler, achieved 86.8% accuracy. This model is widely used to estimate the probability of a binary event (Batista, 2015). Its analysis revealed that the variable ‘Type of Travel Personal’ was the factor with the greatest negative influence, while being a returning customer (‘Customer Type Returning’) had a significant positive influence.
The comparative analysis of the three models consolidated Random Forest as the most accurate for this dataset, due to its ability to capture non-linear relationships. The consistency of ‘Online Boarding’ as one of the main predictors in all models suggests that optimizing the digital check-in and boarding process is a high-impact action. The finding that passengers on personal trips are less satisfied points to the need to develop more flexible services and policies for this audience, such as easier rebooking options and proactive communication in case of delays.
This study demonstrated the effectiveness of Machine Learning as a strategic tool for the airline industry, allowing for the prediction of satisfaction with high accuracy and customer segmentation for personalized strategies. The findings should be used to enhance the passenger journey. Limitations, such as the use of data from a single company and the absence of a temporal dimension or textual feedback, open avenues for future research, such as comparative analyses between competitors and the application of natural language processing to open-ended comments.
The practical application of the results can translate into direct improvements. The importance of ‘Online Boarding’ suggests that investing in an intuitive application and a frictionless digital boarding process can generate significant returns in satisfaction. The relevance of onboard Wi-Fi indicates that ensuring a stable connection is a decisive factor, especially for the business audience. The identification of groups dissatisfied with logistics points to the need to optimize the air network and improve communication about delays. It is concluded that the objective was achieved: it has been demonstrated that Machine Learning techniques are effective for predicting passenger satisfaction and identifying its main determinants, providing a solid basis for data-driven strategic decision-making.
References:
Arruda, M. C. C.; Arruda, M. L. 1998. Customer satisfaction of Brazilian airlines. RAE – Revista de Administração de Empresas 38(3): 25-33.
Batista, A. M. S. 2015. Logistic Regression: An introduction to the statistical model. Example of application to Revolving Credit. Vida Económica Editorial, Porto, Portugal.
Bruce, P.; Bruce, A. 2019. Practical Statistics for Data Scientists: 50 essential concepts. Alta Books, São Paulo, SP, Brazil.
Escovedo, T.; Koshiyama, A. 2020. Introduction to Data Science: Machine Learning algorithms and analysis methods. Casa do Código, São Paulo, SP, Brazil.
Fávero, L. P.; Belfiore, P. 2024. Data Analysis Manual: Statistics and Machine Learning with Excel, SPSS, Stata, R and Python. 2nd ed. Grupo Editorial Nacional, Rio de Janeiro, RJ, Brazil.
Hastie, T.; Tibshirani, R.; Friedman, J. 2009. The Elements of Statistical Learning: Data mining, inference and prediction. 2nd ed. Springer, New York, NY, USA.
Kalinowski, M.; Escovedo, T.; Villamizar, H.; Lopes, H. 2023. Software Engineering for Data Science: A best practices guide with an emphasis on building Machine Learning systems in Python. 1st ed. Casa do Código, São Paulo, SP, Brazil.
Kotler, P.; Keller, K. L. 2012. Marketing management. 14th ed. Pearson, São Paulo, SP, Brazil.
Maven Analytics. 2022. Airline passenger satisfaction. Available at: <https://mavenanalytics. io/data-playground>.
Morettin, P. A.; Bussab, W. de O. 2017. Basic Statistics. 9th ed. Saraiva Uni, São Paulo, SP, Brazil.
Morettin, P. A.; Singer, J. M. 2022. Statistics and Data Science. 1st ed. LTC, Rio de Janeiro, RJ, Brazil.
Zeithaml, V. A.; Bitner, M. J.; Gremler, D. D. 2014. Services Marketing: Creating Customer Value in the Service Economy. 6th ed. AMGH, Porto Alegre, RS, Brazil.
Executive summary from the Final Course Work of the Specialization in Data Science and Analytics of the MBA USP/Esalq
Learn more about the course; click here: