Skip to main content
QUICK REVIEW

[Paper Review] Machine learning modeling for time series problem: Predicting flight ticket prices

Jun Lu|arXiv (Cornell University)|May 19, 2017
Imbalanced Data Classification TechniquesComputer Science6 references9 citations
TL;DR

This paper proposes a machine learning approach to predict optimal flight ticket purchase timing using time series data from 8 routes over 103 days. It employs AdaBoost-Decision Tree Classification for the specific problem (with historical data), achieving 61.35% better performance than random purchase, and extends the method to new routes via HMM Sequence Classification, yielding 31.71% better performance than random purchase without historical data.

ABSTRACT

Machine learning has been used in all kinds of fields. In this article, we introduce how machine learning can be applied into time series problem. Especially, we use the airline ticket prediction problem as our specific problem. Airline companies use many different variables to determine the flight ticket prices: indicator whether the travel is during the holidays, the number of free seats in the plane etc. Some of the variables are observed, but some of them are hidden. Based on the data over a 103 day period, we trained our models, getting the best model - which is AdaBoost-Decision Tree Classification. This algorithm has best performance over the observed 8 routes which has 61.35$\%$ better performance than the random purchase strategy, and relatively small variance over these routes. And we also considered the situation that we cannot get too much historical datas for some routes (for example the route is new and does not have historical data) or we do not want to train historical data to predict to buy or wait quickly, in which problem, we used HMM Sequence Classification based AdaBoost-Decision Tree Classification to perform our prediction on 12 new routes. Finally, we got 31.71$\%$ better performance than the random purchase strategy.

Motivation & Objective

  • To develop a machine learning model that predicts the optimal time to purchase airline tickets based on historical price data.
  • To address the challenge of predicting ticket prices on new or data-scarce routes where no historical data is available.
  • To compare multiple classification and regression models for time series prediction in airline pricing.
  • To reduce prediction variance and improve robustness across diverse flight routes.
  • To design a generalized model that leverages pre-trained knowledge from existing routes to enable fast, low-computation predictions on new routes.

Proposed method

  • The study uses a 103-day dataset of daily flight prices from 8 routes, collected via web crawling between November 2015 and February 2016.
  • Outliers are removed using K-Means and EM algorithms to improve model robustness.
  • Class imbalance is mitigated through random over-sampling to prevent bias toward majority classes.
  • Hyperparameters are tuned via 5-fold grid search to optimize model performance.
  • For the specific problem (with historical data), AdaBoost-Decision Tree Classification is applied and compared with Q-Learning, uniform blending, and other classifiers.
  • For the generalized problem (no historical data), HMM Sequence Classification is combined with the pre-trained AdaBoost-Decision Tree model to predict on 12 new routes.

Experimental results

Research questions

  • RQ1Which machine learning model achieves the highest performance in predicting optimal flight ticket purchase timing on routes with historical data?
  • RQ2How does the performance of the model vary across different flight routes with diverse pricing behaviors?
  • RQ3Can a generalized model predict optimal purchase timing for new routes without any historical data?
  • RQ4How does the performance of the generalized model compare to random purchase and other baselines on new routes?
  • RQ5Why does classification outperform regression in this time series prediction task?

Key findings

  • AdaBoost-Decision Tree Classification achieved the best performance on the specific problem, with 61.35% better results than the random purchase strategy across 8 routes.
  • The uniform blending classifier showed the lowest variance across routes, indicating high robustness despite slightly lower performance.
  • The Q-Learning method achieved performance close to AdaBoost-Decision Tree, with a mean performance of 55.11% and moderate variance.
  • For the generalized problem, the HMM Sequence Classification-based model achieved 31.71% better performance than random purchase on 12 new routes with no historical data.
  • Performance on the two overlapping routes (R3 and R6) dropped significantly in the generalized setting (from 71.69% and 85.33% to 63.11% and 0.54%), confirming the challenge of zero-shot prediction.
  • Classification models showed significantly smaller variance in cross-validation error and precision compared to regression models, indicating better stability for this task.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.