0% found this document useful (0 votes)
9 views3 pages

Flight Satisfaction Prediction Project

The project focuses on predicting flight passenger satisfaction using a dataset that includes features such as gender, age, customer type, and various satisfaction levels related to airline services. The methodology involves data preprocessing, exploratory data analysis, applying machine learning algorithms like Logistic Regression and Random Forest, and evaluating model performance. The final goal is to create a web application using Streamlit to generate predictions based on the best-performing model.

Uploaded by

singamanu12
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Flight Satisfaction Prediction Project

The project focuses on predicting flight passenger satisfaction using a dataset that includes features such as gender, age, customer type, and various satisfaction levels related to airline services. The methodology involves data preprocessing, exploratory data analysis, applying machine learning algorithms like Logistic Regression and Random Forest, and evaluating model performance. The final goal is to create a web application using Streamlit to generate predictions based on the best-performing model.

Uploaded by

singamanu12
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Data Science Project

Project Name:
Data Science with Python Minor Project

Project Description:
Flight Passenger Satisfaction Prediction

Dataset Download link:


[Link]

Dataset Features
1. Gender: Gender of the passengers (Female, Male)

2. Customer Type: The customer type (Loyal customer, disloyal customer)

3. Age: The actual age of the passengers

4. Type of Travel: Purpose of the flight of the passengers (Personal Travel, Business
Travel)

5. Class: Travel class in the plane of the passengers (Business, Eco, Eco Plus)

6. Flight distance: The flight distance of this journey

7. Inflight wifi service: Satisfaction level of the inflight wifi service (0:Not Applicable;1-5)

8. Departure/Arrival time convenient: Satisfaction level of Departure/Arrival time


convenient

9. Ease of Online booking: Satisfaction level of online booking

10. Gate location: Satisfaction level of Gate location

11. Food and drink: Satisfaction level of Food and drink

12. Online boarding: Satisfaction level of online boarding

13. Seat comfort: Satisfaction level of Seat comfort

SKILLFORGE E- LEARNING SOLUTIONS PRIVATE LIMITED

No. 1537 , 5th Main Road, Rajiv Gandhi Nagar, Sector - 7, HSR Layout, Bangalore - 560102

W | [Link] E | support@[Link] M | +91 6361512442


14. Inflight entertainment: Satisfaction level of inflight entertainment

15. On-board service: Satisfaction level of On-board service

16. Leg room service: Satisfaction level of Leg room service

17. Baggage handling: Satisfaction level of baggage handling

18. Check-in service: Satisfaction level of Check-in service

19. Inflight service: Satisfaction level of inflight service

20. Cleanliness: Satisfaction level of Cleanliness

21. Departure Delay in Minutes: Minutes delayed when departure

22. Arrival Delay in Minutes: Minutes delayed when Arrival

23. Satisfaction: Airline satisfaction level(Satisfaction, neutral or dissatisfaction)

Steps

1. Read the Train and test dataset

2. Apply data cleaning/preprocessing including

• Handling Null Values


• Handling Duplicates
• Handling Inconsistent data
• Changing feature data types

3. Split the data into numerical and categorical features

4. Apply EDA

• Uni-variate Analysis - Categorical features – Countplot and Piechart


• Bi-variate Analysis – Categorical vs Target Features – Barplot
• Uni-variate Analysis - Numerical features – KDEplot
• Bi-variate Analysis – Numerical vs Target Feature – Barplot

5. Generate heatmap to represent correlation between the features

6. Handle Outliers if any

7. Separate train data into x(independent features) and y(target variable)

8. Split the x,y data into x_train and x_test, y_train and y_test

SKILLFORGE E- LEARNING SOLUTIONS PRIVATE LIMITED

No. 1537 , 5th Main Road, Rajiv Gandhi Nagar, Sector - 7, HSR Layout, Bangalore - 560102

W | [Link] E | support@[Link] M | +91 6361512442


9. Apply the following ML Algorithms

• Logistic Regression
• Decision Tree Classifier
• Random Forest Classifier

10. Evaluate each of these models based on the classification metrics – Accuracy,
Precision, Recall, F1-Score

11. Select the ML model with the best score.

12. Use the best ML model to generate predictions for the test data

13. Create an ML model Web App using Streamlit.

SKILLFORGE E- LEARNING SOLUTIONS PRIVATE LIMITED

No. 1537 , 5th Main Road, Rajiv Gandhi Nagar, Sector - 7, HSR Layout, Bangalore - 560102

W | [Link] E | support@[Link] M | +91 6361512442

Common questions

Powered by AI

Univariate Analysis helps in summarizing and visualizing individual features, which can reveal underlying distribution patterns such as customer age and satisfaction levels across different classes. Bivariate Analysis, particularly categorical vs. target features and numerical vs. target features, allows exploration of relationships between independent variables and satisfaction outcomes, revealing correlations or dependencies which might inform feature importance for model training .

A heatmap visualizes the correlation matrix, showing the strength and direction of relationships between pairs of features. This is useful in a flight satisfaction dataset to identify which features might be redundant or highly correlated, suggesting opportunities for feature reduction and avoiding multicollinearity. Understanding these correlations helps in better model selection and improves interpretability of the data .

Handling null values, duplicates, and inconsistent data is crucial during data preprocessing to ensure the quality and integrity of the dataset. Null values can lead to incorrect model predictions or errors during the analysis. Duplicates can introduce bias and affect model accuracy by over-representing certain data points. Inconsistent data can lead to incorrect conclusions as they might reflect erroneous or misleading information .

Logistic Regression is beneficial for binary classification problems like predicting flight passenger satisfaction due to its simplicity and efficiency for large datasets. It provides clear insights into the importance of each feature. However, its assumptions of linearity between the independent variables and the log odds can be a drawback. If the true relationship is not linear, predictions may be inaccurate. Additionally, it can struggle with large numbers of categorical variables or highly complex datasets .

Several factors impacting model accuracy include the quality of input data, feature selection, model parameters, and presence of overfitting. Decision Tree Classifiers are sensitive to overfitting due to high variance, often requiring pruning or ensemble methods like Random Forest for better generalization. Random Forests address this by averaging multiple trees but can be computationally expensive, potentially impacting real-time prediction efficiency .

Splitting data into training and testing sets ensures that a model learns from a portion of the dataset (training set) and is validated against unseen data (testing set). This prevents overfitting to the training data and helps evaluate the model's generalizability to new, unfamiliar data, enhancing its reliability and robustness in predicting flight passenger satisfaction .

Not handling outliers can skew data analysis and lead to inaccurate model predictions. In the context of flight passenger satisfaction, outliers might incorrectly influence metrics like means, thus misleading insights about passenger satisfaction levels. Outliers can also adversely affect model performance, especially in algorithms sensitive to the presence of extreme values such as Linear Regression .

Building a machine learning model web app with Streamlit allows for interactive and user-friendly interfaces that stakeholders can easily use to predict passenger satisfaction. Streamlit enables rapid deployment of models without extensive web development expertise, offering real-time predictions and visualization capabilities, which enhance stakeholder decision-making processes and can facilitate further model refinement based on user feedback .

Precision measures the accuracy of positive predictions, important in contexts where false positives are costly. Recall indicates how well the model captures all positive instances, key for ensuring all true positives are identified. F1-Score balances precision and recall, providing a single metric to evaluate model effectiveness when false negatives and positives must be equally minimized, crucial for balanced and effective passenger satisfaction prediction .

You might also like