Frontiers of Data and Computing ›› 2023, Vol. 5 ›› Issue (6): 115-125.

CSTR: 32002.14.jfdc.CN10-1649/TP.2023.06.011

doi: 10.11871/jfdc.issn.2096-742X.2023.06.011

Previous Articles     Next Articles

Airfare Price Prediction Based on TPA-Transformer

SHEN Zhihao1,2(),LI Na1,YIN Shihao4,5,*(),DU Yi1,2,3,HU Lianglin1,2,3   

  1. 1. Computer Network Information Center, Chinese Academy of Sciences, Beijing 100083, China
    2. University of China Academy of Sciences, Beijing 100049, China
    3. National Basic Science Data Center, Beijing 100083, China
    4. Travelsky Technology Limited, Beijing 101318, China
    5. Key Laboratory of Intelligent Passenger Service of Civil Aviation, Beijing 101318, China
  • Received:2022-05-20 Online:2023-12-20 Published:2023-12-25

Abstract:

[Objective] The airline industry is one of the industries that use the most complex pricing strategies. Even the ticket prices on the same flight fluctuate dynamically and significantly. Passengers can only make decisions based on experience, such as buying tickets as soon as possible, but it is not always the best choice. The traditional price forecasting methods cannot sufficiently capture the dependence between complex internal/external factors and the ticket prices. [Methods] This paper designs and implements the TPA-Transformer (Ticket Price Aware Transformer) to predict ticket price and proposes a related data processing method based on time series. This model adds the attention module to introduce reference information and the multi-layer convolution after the encoder to fuse the information of different features of multiple flights and extract local features to improve the model's performance in multi-step price prediction. [Results] The model is verified on five regression evaluation indexes (MSE, RMSE, MAE, ACC, and AMS). [Conclusions] Experiments show that the model effectively improves the prediction accuracy and is superior to other five comparison models (Random Forest, XGBoost, LSTM, GRU, and Transformer).

Key words: airfare price prediction, machine learning, time series, attention mechanism