DSN2099 Project Exhibition-II
Team : 20
Flight Fare Prediction Webapp
Guide:
Dr. Paras Jain
(Senior Assistant Professor)
Team Members:
Yash Sharma Mayank Samadhiya Shivam Bajpeyi Himanshu
(19MIM10068) (19MIM10077) (19MIM10082) (19MIM10085)
ML Model Front-end Back-end EDA
INTRODUCTION
Optimal timing for airline ticket purchasing from the consumer’s perspective is challenging principally because buyers have insufficient information for reasoning about future price movements. In this project we will make a webapp for computing expected future prices of several airlines.
EXITING WORK WITH LIMITATIONS
From the very beginning people try to book flights at cheaper cost so for doing that they follow some of these facts-
so people prefer to book flights at that time.
Monday or Tuesday whereas Wednesday and Thursday
are the cheapest days to book airline tickets.
PROPOSED WORK AND METHODOLOGY
NOVELTY OF THE PROJECT
REAL TIME USAGE
In the current scenario, many airlines change ticket prices for their revenue management. The airline may increase the prices when the demand is to be expected to increase the capacity and many people are unaware about it.
To estimate the minimum airfare , we have been collected the data for a specific air route including the features like departure time, arrival time and airways over a specific period.
Through this web app people can get minimum fare price for their journey and save more money.
HARDWARE REQUIRED
Minimum Laptop hardware requirements
SOFTWARE REQUIRED
Programming Languages used:
➔ Python (3.9.0) for Machine Learning and making Webapp
➔ HTML (HTML5) for making frontend of webapp
Python Libraries used:
➔ numpy(1.16.5), matplotlib(3.1.1), sklearn(0.21.3), seaborn(0.9.0), pandas(0.25.1), etc.
*Libraries(version)
OVERALL SYSTEM ARCHITECTURE DIAGRAM
User Data
Model Prediction
Predicted Flight Fare
LITERATURE REVIEW
REFERENCES
[1] An airfare prediction model for developing markets
Addressed Problem- Ticket price prediction
Dataset- 51,000 records of a 7-day round trip nonstop flights of three domestic airlines
Features- Airline, flight number, date of purchase, departure date, departure time, arrival time, fare class, number of stops, price, departure airport, arrival airport, arrival date
Computational Techniques Used- A model called Stacked prediction model based on. Random Forest and Multilayer Perceptron model.
Performance Result- 4.4% and 7.7% better than Random Forest and Multilayer Perceptron respectively as measured by R2
Key Findings- They proposed a new model that can help the buyer to predict the price trends without official information from the airlines. There findings demonstrated that the proposed model can predict the trends as well as actual airfares changes up to the departure dates using public airfare data available online despite the missing of many key features like the number of unsold seats on flights. They also identified the features that have the strongest impacts on the airfare changes.
[2] An ensemble learning based approach for building airfare forecast service.
Addressed Problem- Minimum Ticket Price Prediction
Dataset- More than 3 months (110 days) data for 5 international routes.
Features- Prices of the same itinerary, prices of recent itineraries before the target day, prices of itineraries with the same day of week, price of itineraries with the same day of month.
Computational Techniques Used- An ensemble-based learning algorithm Learn++.NSE is modified and used.
Performance Result- Mean absolute percentage error (MAPE) of 10.7% as compared to KNN (12.58) and PA (15.41%).
Key Findings- In this paper, they address the problem of airfare forecast and present a systematic approach that covers the most important aspects of building a forecast service, including data modelling, forecast algorithm and long-term prediction strategies. A novel matrix-like data schema is first introduced to organize price series and extract temporal features. For the prediction task, we specifically investigate Learn++.NSE, an incremental ensemble classifier designed for learning in nonstationary environments. We further evaluate the forecast model on real-world price data collected from diverse routes and discuss its performance with respect to short-term and long-term prediction.
[3] ACER: An adaptive context-aware ensemble regression model for airfare price prediction
Addressed Problem- Predicting the lowest price available before departure date
Dataset- Data consisting of 19 different routes and spans three months period (92 days).
Features-Historical ticket prices, a signal indicating whether the departure date is holiday or not and number of days before departure.
Computational Techniques Used- Ensemble model that uses techniques such as K-Nearest Neighbors, Random Forest and Bayesian.
Performance Result- Improved the MAPE from (7% −12%) to (3.7% − 6%).as compared to the single model.
Key Findings- Inspired by the idea of bagging and boosting, context features are randomly selected to cluster data efficiently and multiple regression models are trained for data with different contexts. In the experiment on the real data set, model is compared with the baseline regression model, random forest and classical time series models.
[4] Airfare prices prediction using machine learning techniques
Addressed Problem- Comparing regression machine learning models for predicting airline ticket prices.
Dataset- A dataset consisting of 1814 flights for a single international route.
Features- Departure time, arrival time, number of free luggage, days before departure, number of intermediate stops, holiday, time of day and day of week.
Computational Techniques Used- Eight regression machine learning models had used that are linear regression, ridge regression, neural network regression, bagging regression, decision tree regression, random forest regression, SVM, KNN model.
Performance Result- Bagging Regression: 87.42% accuracy and Random Forest Regression Tree: 85.91% accuracy.
Key Findings- Along with the prediction accuracy of each model, this paper studies the dependency of the accuracy on the feature set used to represent an airfare. The derived experimental results reveal that the ML models are able to handle this regression problem with almost 88% accuracy, for a certain type of flight features.
MODULE DESCRIPTION
We have divided our whole project work into five modules that are-
IMPLEMENTATION AND CODING
Key functions used:-
MODULE WORKFLOW EXPLANATION
Figure 1: loading the data
SCREENSHOT & DEMO VIDEO
Figure 2: info() of data and removing null-values
Figure 3: EDA (Data Visualization and encoding)
Figure 4: Feature Selection(correlation)
Figure 5: Feature Selection(Feature Importance)
Figure 6: Model training and evaluation
TESTING
RESULT AND DISCUSSION
MAE: 1155.30; MSE: 3806211.66; RMSE: 1950.95
Figure 7: WebApp Interface (Input)
Figure 8: WebApp Interface (Output)
WEBAPP LINK
CONCLUSION
In this project to deal with the dynamic price changes in the flight tickets is presented, this gives the information about the highs and lows in the airfares according to the days, weekend and time of the day that is morning, evening and night also the machine learning models in the computational intelligence fields that are evaluated before on different datasets are studied. their accuracy and performances are evaluated and compared in order to get better results in this project. The accuracy of the Flight Fare Prediction Webapp model using random forest algorithm is 81.51% which is greater than the accuracy of other models that we have studied in the research papers. In the future, this work could be extended…………..
THANK YOU