Nothing Special   »   [go: up one dir, main page]

CN107274215A - Flight prices Forecasting Methodology, device, equipment and storage medium - Google Patents

Flight prices Forecasting Methodology, device, equipment and storage medium Download PDF

Info

Publication number
CN107274215A
CN107274215A CN201710395448.1A CN201710395448A CN107274215A CN 107274215 A CN107274215 A CN 107274215A CN 201710395448 A CN201710395448 A CN 201710395448A CN 107274215 A CN107274215 A CN 107274215A
Authority
CN
China
Prior art keywords
price
flight
price data
departure
sample
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710395448.1A
Other languages
Chinese (zh)
Inventor
王楠
常龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianhai Travel Shenzhen Co Ltd Operating Data
Heilongjiang University
Original Assignee
Shenzhen Tengbang International Business Services Co Ltd
Heilongjiang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tengbang International Business Services Co Ltd, Heilongjiang University filed Critical Shenzhen Tengbang International Business Services Co Ltd
Priority to CN201710395448.1A priority Critical patent/CN107274215A/en
Publication of CN107274215A publication Critical patent/CN107274215A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0206Price or cost determination based on market factors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Game Theory and Decision Science (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Artificial Intelligence (AREA)
  • Educational Administration (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of flight prices Forecasting Methodology, device, equipment and storage medium.This method can include method:N price data of same flight scheduled time slot before departure from port of T different predetermined date of departure is obtained, wherein, price data includes:Ticket price and the air ticket quantity corresponding with ticket price.P different sample of the sample length for k is obtained according to n price data.Neural network model is trained using p different samples as training sample.The price of predetermined instant of the same flight based on the predetermined date of departure of Neural Network model predictive after training before departure from port.Flight prices Forecasting Methodology, device, equipment and the storage medium, can accurately and efficiently predict the future price of the same flight of identical predetermined date of departure.

Description

航班价格预测方法、装置、设备和存储介质Airline price prediction method, device, equipment and storage medium

技术领域technical field

本发明属于计算机技术领域,尤其涉及一种航班价格预测方法、装置、 设备和存储介质。The invention belongs to the field of computer technology, and in particular relates to a flight price prediction method, device, equipment and storage medium.

背景技术Background technique

航班价格是随着市场销售情况动态变化的,销售好的航线或航班会涨 价销售反而则会降价销售。此外,各航空公司之间除了相互通过价格竞争 获取客源之外,还同时有协议保护价格,比如,一些起飞之前的3天价格 不低于8折等的价格保护协议。因此,航班的价格变化是一个十分复杂的 问题,对于价格的预测有着相当的大的难度。Airline prices change dynamically with the market sales situation. Good-selling routes or flights will be sold at an increase in price, but will be sold at a lower price. In addition, in addition to obtaining customers through price competition, airlines also have agreements to protect prices, for example, some price protection agreements that provide no less than 20% off the price three days before departure. Therefore, the flight price change is a very complicated problem, and it is quite difficult to predict the price.

发明内容Contents of the invention

本发明实施例提供了一种航班价格预测方法、装置、设备和存储介质, 能够准确、高效地预测相同预定离港日期的同一航班的未来价格。Embodiments of the present invention provide a flight price prediction method, device, equipment and storage medium, which can accurately and efficiently predict the future price of the same flight with the same scheduled departure date.

第一方面,提供了一种航班价格预测方法,可以包括:In the first aspect, a flight price prediction method is provided, which may include:

获得T个不同预定离港日期的同一航班在离港前预定时段的n个价格 数据,其中,价格数据包括:机票价格和与机票价格相对应的机票数量。Obtain n pieces of price data of the same flight with T different scheduled departure dates in the scheduled period before departure, wherein the price data includes: ticket price and the number of tickets corresponding to the ticket price.

根据n个价格数据获得样本长度为k的p个不同样本,其中,每个样 本包括的价格数据为相同预定离港日期的同一航班在预定时段的价格数据, 并且,每个样本包括一个或两个以上的同一航班价格趋势信息,k小于或 等于n。According to n price data, p different samples with a sample length of k are obtained, wherein the price data included in each sample is the price data of the same flight on the same scheduled departure date in a predetermined period, and each sample includes one or two More than one price trend information of the same flight, k is less than or equal to n.

以p个不同样本作为训练样本训练神经网络模型。Use p different samples as training samples to train the neural network model.

基于训练后的神经网络模型预测预定离港日期的同一航班在离港之前 的预定时刻的价格,其中,T、n、k、p均为正整数。Predict the price of the same flight on the scheduled departure date at the scheduled time before departure based on the trained neural network model, where T, n, k, and p are all positive integers.

第二方面,提供了一种航班价格预测装置,可以包括:数据采集单元、 样本选取单元、模型训练单元和价格预测单元。In a second aspect, a flight price prediction device is provided, which may include: a data collection unit, a sample selection unit, a model training unit, and a price prediction unit.

该数据采集单元可以用于获得T个不同预定离港日期的同一航班在离 港前预定时段的n个价格数据,其中,价格数据包括:机票价格和与机票 价格相对应的机票数量。The data collection unit can be used to obtain n price data of the same flight with T different scheduled departure dates in a predetermined period before departure, wherein the price data includes: ticket price and ticket quantity corresponding to the ticket price.

该样本选取单元可以用于根据n个价格数据获得样本长度为k的p个 不同样本,其中,每个样本可以包括的价格数据为相同预定离港日期的同 一航班在预定时段的价格数据,并且,每个样本包括一个或两个以上的同 一航班价格趋势信息,k小于或等于n。The sample selection unit can be used to obtain p different samples with a sample length of k according to n price data, wherein the price data that can be included in each sample is the price data of the same flight on the same scheduled departure date in a predetermined period of time, and , each sample includes one or more than two price trend information of the same flight, and k is less than or equal to n.

该模型训练单元可以用于以p个不同样本作为训练样本训练神经网络 模型。The model training unit can be used to train the neural network model with p different samples as training samples.

该价格预测单元可以用于基于训练后的神经网络模型预测预定离港日 期的同一航班在离港之前的预定时刻的价格,其中,T、n、k、p均为正整 数。The price prediction unit can be used to predict the price of the same flight on the scheduled departure date at the scheduled moment before departure based on the trained neural network model, where T, n, k, and p are all positive integers.

第三方面,提供了一种航班价格预测设备,可以包括存储器和处理器。 该存储器可以用于储存有可执行程序代码;该处理器可以用于读取存储器 中存储的可执行程序代码以执行上述的航班价格预测方法。In a third aspect, a flight price prediction device is provided, which may include a memory and a processor. The memory can be used to store executable program codes; the processor can be used to read the executable program codes stored in the memory to perform the above-mentioned flight price prediction method.

第四方面,提供了一种计算机可读存储介质,可以包括指令,当指令 在计算机上运行时,使得计算机执行如上述的航班价格预测方法。In a fourth aspect, a computer-readable storage medium is provided, which may include instructions, and when the instructions are run on a computer, the computer is made to execute the flight price prediction method as described above.

第五方面,提供了一种包含指令的计算机程序产品,当指令在计算机 上运行时,使得计算机执行上述的航班价格预测方法。In a fifth aspect, a computer program product containing instructions is provided, and when the instructions are run on a computer, the computer is made to execute the above-mentioned flight price prediction method.

第六方面,提供了一种计算机程序,当计算机程序在计算机上运行时, 使得计算机执行上述的航班价格预测方法。In a sixth aspect, a computer program is provided. When the computer program is run on a computer, it causes the computer to execute the above-mentioned flight price prediction method.

根据本发明实施例提供的航班价格预测方法、装置、设备和存储介质。 通过获得T个不同预定离港日期的同一航班在离港前预定时段的n个价格 数据,根据n个价格数据,获得样本长度为k的p个不同样本,每个样本 可以包括的价格数据为相同预定离港日期的同一航班在预定时段的价格数 据,并且,每个样本包括一个或两个以上的同一航班价格趋势信息,k小 于或等于n,上述样本获取方式可以获得能够预测相同预定离港日期的同 一航班的更多有效样本,并且避免通过航线价格数据预测航线价格而容易 发生的样本选取困难、计算复杂、价格预测难度高准确度低的缺陷。通过 上述p个不同样本作为训练样本训练神经网络模型,可以使经过训练的神 经网络模型准确的预测未来预定离港日期的同一航班在离港之前的预定时 刻的价格。According to the flight price prediction method, device, equipment and storage medium provided by the embodiments of the present invention. By obtaining n price data of the same flight with T different scheduled departure dates in the scheduled period before departure, according to n price data, p different samples with a sample length of k are obtained, and the price data that each sample can include is The price data of the same flight with the same scheduled departure date in the scheduled period, and each sample includes one or more than two pieces of price trend information of the same flight, k is less than or equal to n, the above sample acquisition method can be obtained to predict the same scheduled departure More effective samples of the same flight on the Hong Kong date, and avoid the defects of difficult sample selection, complex calculation, high difficulty in price prediction and low accuracy that are prone to occur when predicting route prices through route price data. By using the above p different samples as training samples to train the neural network model, the trained neural network model can accurately predict the price of the same flight on the scheduled departure date in the future at the scheduled time before departure.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例 中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅 是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性 劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1是以确定离港日的3U8996航班为例,在离港日之前该确定离港 日的3U8996航班的航班价格变化曲线;Fig. 1 is to determine the 3U8996 flight of departure date as an example, the flight price change curve of the 3U8996 flight that should determine the departure date before the departure date;

图2是以3U8996航班为例,在该航班的多个离港日之前的预定时间 段内该3U8996航班的航班价格变化曲线;Fig. 2 is an example with 3U8996 flight, the flight price change curve of this 3U8996 flight in the scheduled time period before the multiple departure days of this flight;

图3是本发明一种实施例的航班价格预测方法的示意性流程图;Fig. 3 is a schematic flow chart of the flight price prediction method of an embodiment of the present invention;

图4是本发明一种实施例的航班价格预测方法的样本获取过程的示意 性流程图;Fig. 4 is the schematic flowchart of the sample acquisition process of the flight price prediction method of an embodiment of the present invention;

图5是本发明另一种实施例的航班价格预测方法的示意性流程图;Fig. 5 is the schematic flow chart of the flight price prediction method of another embodiment of the present invention;

图6是本发明一种实施例的航班价格预测方法的价格数据的获取过程 的示意性流程图;Fig. 6 is the schematic flowchart of the acquisition process of the price data of the flight price prediction method of an embodiment of the present invention;

图7是本发明一种实施例的航班价格预测装置的示意性结构框图;Fig. 7 is a schematic structural block diagram of a flight price prediction device according to an embodiment of the present invention;

图8是本发明另一种实施例的航班价格预测装置的示意性结构框图;Fig. 8 is a schematic block diagram of a flight price prediction device according to another embodiment of the present invention;

图9是本发明一种实施例的航班价格预测设备的示意性结构框图。Fig. 9 is a schematic structural block diagram of a flight price prediction device according to an embodiment of the present invention.

具体实施方式detailed description

基于人们的惯性思维,一般情况下,航班价格会随着距离离港时间越 近而越高,所以提前较长时间预定机票,会获得一个较低的价格。然而, 基于实际航班价格大数据显示,并非距离航班离港时间越近,航班价格越 高。Based on people's inertial thinking, under normal circumstances, the flight price will increase as the departure time gets closer, so if you book a flight ticket a long time in advance, you will get a lower price. However, big data based on actual flight prices show that the closer the flight departure time is, the higher the flight price is not.

图1是以确定离港日的3U8996航班为例,在离港日之前该确定离港 日的3U8996航班的航班价格变化曲线。如图1所示,3U8996航班距离起 飞时间越近反而价格越低,造成这种情况的有很多可能,比如航班客座率 低、相关航班的价格竞争等等多种因素。并且,这些因素并非偶然现象。Fig. 1 is the 3U8996 flight whose departure date is determined as an example, the flight price change curve of the 3U8996 flight whose departure date should be determined before the departure date. As shown in Figure 1, the closer the departure time of flight 3U8996, the lower the price. There are many possible reasons for this situation, such as low passenger load factor of the flight, price competition of related flights, and other factors. And, these factors are not accidental.

图2是以3U8996航班为例,在该航班的多个离港日之前的预定时间 段内该3U8996航班的航班价格变化曲线。如图2所示,跟踪离港时间段 为2016-10-15至2016-10-24的3U8896航班价格,从图2中容易看出,在 起飞前3至15天航班价格的波动比较明显,所以,在这段时间对于航班 价格波动进行准确预测具有重要意义。Fig. 2 is to take 3U8996 flight as an example, the flight price change curve of this 3U8996 flight in the scheduled time period before multiple departure days of this flight. As shown in Figure 2, tracking the price of flight 3U8896 with a departure time period from 2016-10-15 to 2016-10-24, it is easy to see from Figure 2 that the flight price fluctuates significantly 3 to 15 days before departure. Therefore, it is of great significance to accurately predict flight price fluctuations during this period.

下面将详细描述本发明的各个方面的特征和示例性实施例。在下面的 详细描述中,提出了许多具体细节,以便提供对本发明的全面理解。但是, 对于本领域技术人员来说很明显的是,本发明可以在不需要这些具体细节 中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本 发明的示例来提供对本发明的更好的理解。Features and exemplary embodiments of various aspects of the invention will be described in detail below. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by showing examples of the present invention.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的 特征可以相互组合。下面将参考附图对实施例进行详细描述。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. Embodiments will be described in detail below with reference to the accompanying drawings.

图3是本发明一种实施例的航班价格预测方法的示意性流程图。如图 3所示,一种航班价格预测方法,可以包括:S310~S340。Fig. 3 is a schematic flowchart of a flight price prediction method according to an embodiment of the present invention. As shown in Figure 3, a flight price prediction method may include: S310-S340.

S310,获得T个不同预定离港日期的同一航班在离港前预定时段的n 个价格数据,其中,价格数据包括:机票价格和与机票价格相对应的机票 数量。S310. Obtain n pieces of price data of the same flight with T different scheduled departure dates in the scheduled period before departure, wherein the price data includes: air ticket price and the number of air tickets corresponding to the air ticket price.

S320,根据n个价格数据获得样本长度为k的p个不同样本,其中, 每个样本包括的价格数据为相同预定离港日期的同一航班在预定时段的价 格数据,并且,每个样本包括一个或两个以上的同一航班价格趋势信息, k小于或等于n。S320. Obtain p different samples with a sample length of k according to n price data, wherein the price data included in each sample is the price data of the same flight on the same scheduled departure date at a predetermined time period, and each sample includes a Or more than two same flight price trend information, k is less than or equal to n.

S330,以p个不同样本作为训练样本训练神经网络模型。S330, using p different samples as training samples to train the neural network model.

S340,基于训练后的神经网络模型预测预定离港日期的同一航班在离 港之前的预定时刻的价格,其中,T、n、k、p均为正整数。S340. Predict the price of the same flight on the scheduled departure date at the scheduled time before departure based on the trained neural network model, wherein T, n, k, and p are all positive integers.

在一些示例中,S310中的T个不同预定离港日期的同一航班可以表示 为不同离港日期的某一个特定航班。In some examples, the same flight with T different scheduled departure dates in S310 may be represented as a specific flight with different departure dates.

例如,T个不同预定离港日期可以是离港日期在2016-10-15至2016- 10-24的10个不同预定离港日期,也可以是是离港日期在2016-10-15至 2016-10-24的10个不同预定离港日期中的预定的5个离港日期。同一航班 可以3U8896航班。For example, the T different scheduled departure dates can be 10 different scheduled departure dates from 2016-10-15 to 2016-10-24, or the departure dates from 2016-10-15 to 2016 - Scheduled 5 departure dates out of 10 different scheduled departure dates for 10-24. The same flight can be flight 3U8896.

S310的预定时段可以是某一离港日期的某一预定航班离港前的预定时 段。例如,2016-10-15的3U8896航班离港前的10天至20天。The predetermined time period in S310 may be the predetermined time period before the departure of a certain scheduled flight on a certain departure date. For example, 10 to 20 days before the departure of flight 3U8896 on 2016-10-15.

那么,S310也就是,例如:选择离港日期为2016-10-15至2016-10-24 的10个不同预定离港日期的3U8896航班,获得上述航班离港前的3到15 天查询到的上述航班的航班价格数据。Then, S310 is, for example: select flight 3U8896 with 10 different scheduled departure dates from 2016-10-15 to 2016-10-24, and obtain the 3 to 15 days before the departure of the above flight. Flight price data for the above flights.

在一些示例中,S310中的价格数据可以来自中国航信互联网订座引擎 (InternetBooking Engine,IBE),该中国航信互联网订座引擎是基于因 特网的开放平台技术,为各种用户应用系统提供访问中国航信传统订座业 务系统的途径,是采用应用程序编程接口(Application Programming interface,API)方式的接口,IBE接口是由中航信提供的接口为代理人分 销全流程解决方案接口,有查询、预定、出票、变更、增值服务、基础数 据等服务。In some examples, the price data in S310 may come from China TravelSky Internet Booking Engine (IBE), which is an Internet-based open platform technology that provides access to various user application systems. The way of China TravelSky's traditional reservation business system is to use the application programming interface (Application Programming interface, API) interface. The IBE interface is the interface provided by TravelSky. Reservation, ticket issuance, change, value-added services, basic data and other services.

例如,S310中可以与IBE接口进行连接和通信,获得航班舱位状态。For example, S310 can connect and communicate with the IBE interface to obtain the status of the flight class.

在另一些示例中,也可以与其他国际航信互联网订座接口相连接和通 信,获取航班价格数据。In other examples, it can also be connected and communicated with other TravelSky Internet reservation interfaces to obtain flight price data.

在一些示例中,上述获得的舱位状态可以包括舱位类型和剩余数量。 例如:FA,I2,J2,A2,YA,BA,TS,HA,GA,SQ,LA,EA,VQ, RA,KQ,NQ,XQ,US,WQ,QQ,MQ,ZQ。In some examples, the cabin status obtained above may include cabin type and remaining quantity. For example: FA, I2, J2, A2, YA, BA, TS, HA, GA, SQ, LA, EA, VQ, RA, KQ, NQ, XQ, US, WQ, QQ, MQ, ZQ.

在一些示例中,S310的价格数据可以是根据上述舱位状态在现有的运 价基础数据库中匹配查询获得。这种获取航班价格的方式获得是航班的公 布运价,相比通过其他方式获得的航班价格,这种获取航班价格更为原始, 避免了代理商对原始价格的调整。利用公布运价预测航班价格变化相比通 过其他方式获得航班价格进行价格预测,具有预测准确度高、计算复杂度 低的优点。In some examples, the price data of S310 can be obtained by matching and querying the existing basic freight rate database according to the above-mentioned cabin status. This method of obtaining the flight price is the published freight price of the flight. Compared with the flight price obtained by other methods, this method of obtaining the flight price is more original, and avoids the adjustment of the original price by the agent. Using published freight rates to predict flight price changes has the advantages of high prediction accuracy and low computational complexity compared to obtaining flight prices in other ways.

在一些示例中,S310可以包括:In some examples, S310 may include:

将预定时段平均划分为n个时间段,将每个时间段内同一航班的最低 价格记录为每个时间段的价格数据。应理解,获取的价格数据可以为每个 时间段内同一航班的最低价格,因为用户通常只对航班的最低价格比较关 注,所以获取的价格数据是每个时间段内同一航班的最低价格,对后面的 航班价格预测才更有意义。Divide the scheduled period evenly into n time periods, and record the lowest price of the same flight in each time period as the price data of each time period. It should be understood that the obtained price data can be the lowest price of the same flight in each time period, because users usually only pay more attention to the lowest price of the flight, so the obtained price data is the lowest price of the same flight in each time period. The following flight price predictions are more meaningful.

在一些示例中,S320中的每个样本包括的价格数据为相同预定离港日 期的同一航班在预定时段的价格数据。In some examples, the price data included in each sample in S320 is the price data of the same flight on the same scheduled departure date in a predetermined time period.

例如,某一个样本可以包括离港日期为2016-10-17的3U8896航班在 离港前4至15天查询到的该航班的价格数据。For example, a certain sample may include the price data of flight 3U8896 whose departure date is 2016-10-17, which was queried 4 to 15 days before departure.

在一些示例中,S320中的每个样本还可以包括一个或两个以上的同一 航班价格趋势信息。In some examples, each sample in S320 can also include one or more than two same flight price trend information.

例如,可以是离港日期为2016-10-17的3U8896航班在离港前4至15 天查询到的该航班的价格数据之间的变化趋势信息。For example, it may be the change trend information among the price data of the flight 3U8896 with a departure date of 2016-10-17 queried 4 to 15 days before departure.

在一些示例中,例如,变化趋势信息可以是离港前第3天相对离港前 第4天3U8896航班的价格变化趋势。In some examples, for example, the change trend information may be the price change trend of flight 3U8896 on the 3rd day before departure relative to the 4th day before departure.

在一些示例中,S330的神经网络模型可以是BP神经网络模型,例如: 单隐层的BP神经网络模型。In some examples, the neural network model of S330 may be a BP neural network model, for example: a BP neural network model with a single hidden layer.

神经网络的参数有很多,且神经网络参数的设置对网络性能有很大的 影响,例如隐含层节点个数的选择,激活函数的选择,学习率的选择等。There are many parameters of the neural network, and the setting of the neural network parameters has a great influence on the network performance, such as the selection of the number of nodes in the hidden layer, the selection of the activation function, the selection of the learning rate, etc.

其中:in:

隐含层神经元数的选择非常重要,太少的神经元会使神经网络“欠拟 合”,过多的神经元会使神经网络“过拟合”,而且会增加运算量,使得 训练较慢,降低模型预测的准确度。隐含层的节点数的选择与输入的节点 数有关。The selection of the number of neurons in the hidden layer is very important. Too few neurons will make the neural network "underfitting", and too many neurons will make the neural network "overfitting", and it will increase the amount of calculation, making the training more difficult. slow, reducing the accuracy of model predictions. The choice of the number of nodes in the hidden layer is related to the number of input nodes.

激活函数的选择无论是对于识别率还是收敛速度都有显著的影响。The choice of activation function has a significant impact on both the recognition rate and the convergence speed.

学习率的选择影响网络收敛速度以及网络能否收敛。学习率的选择不 可过大,也不可过小,设置偏小可以保证网络收敛,但收敛速度较慢;相 反设置过大,有可能是网络不收敛,影响预测效果。The choice of learning rate affects the speed of network convergence and whether the network can converge. The selection of the learning rate should not be too large or too small. A small setting can ensure network convergence, but the convergence speed is slow; on the contrary, if the setting is too large, the network may not converge and affect the prediction effect.

在一些示例中,S330中的神经网络模型的隐含层节点的个数可以根据 公式(1)获得:In some examples, the number of hidden layer nodes of the neural network model in S330 can be obtained according to formula (1):

在式(1)中,S为隐含层节点数,n为输入层节点数,m为输出层 节点数,a为1~10的常数。In formula (1), S is the number of nodes in the hidden layer, n is the number of nodes in the input layer, m is the number of nodes in the output layer, and a is a constant from 1 to 10.

例如:输入层节点数为40,输出层节点数为3,那么根据公式(1), 隐含层几点个数可以是10。For example: the number of nodes in the input layer is 40, and the number of nodes in the output layer is 3, then according to the formula (1), the number of points in the hidden layer can be 10.

在一些示例中,因为在逼近高次曲线时,S型函数精度比线性函数要 高得多,S330中的神经网络模型的激活函数选择S型函数。In some examples, because the accuracy of the sigmoid function is much higher than that of the linear function when approaching the high-order curve, the activation function of the neural network model in S330 is selected as the sigmoid function.

在一些示例中,S330中的神经网络模型的学习率可以选择在0.1左右。In some examples, the learning rate of the neural network model in S330 can be selected to be around 0.1.

在一些示例中,S340可以基于上述示例训练后的神经网络模型预测预 定离港日期为2016-10-28的3U8896航班在未来的价格变化趋势。In some examples, S340 may predict the future price change trend of flight 3U8896 whose scheduled departure date is 2016-10-28 based on the neural network model trained in the above example.

在一些示例中,上述的价格变化趋势可以用数字表示,例如,0代表 价格下降,1代表价格保持不变,2代表价格上升。例如,通过上述神经 网络模型预测得到,结果是1,那么可以判定日期为2016-10-28的3U8896 航班在未来的价格与当前价格持平。In some examples, the above-mentioned price change trend can be represented by numbers, for example, 0 means that the price has decreased, 1 means that the price remains unchanged, and 2 means that the price has increased. For example, if the above neural network model predicts that the result is 1, then it can be determined that the future price of flight 3U8896 on October 28, 2016 will be equal to the current price.

在一些示例中,上述预测结果可以用于多种数据服务需求场景中,不 局限于单独的航班价格预测,可以适用于需要进行航班价格预测服务的其 他航空服务涉及的复杂场景。In some examples, the above prediction results can be used in various data service demand scenarios, not limited to a single flight price prediction, but can be applied to complex scenarios involving other aviation services that require flight price prediction services.

因此,本发明实施例提供的航班价格预测方法。可以通过获得T个不 同预定离港日期的同一航班在离港前预定时段的n个价格数据,根据n个 价格数据,获得样本长度为k的p个不同样本,每个样本可以包括的价格 数据为相同预定离港日期的同一航班在预定时段的价格数据,并且,每个 样本包括一个或两个以上的同一航班价格趋势信息,k小于或等于n,上 述样本获取方式可以获得能够预测相同预定离港日期的同一航班的更多有 效样本,并且避免通过航线价格数据预测航线价格而容易发生的样本选取 困难、计算复杂、价格预测难度高准确度低的缺陷。通过上述p个不同样 本作为训练样本训练神经网络模型,可以使经过训练的神经网络模型准确 的预测未来预定离港日期的同一航班在离港之前的预定时刻的价格。Therefore, the flight price prediction method provided by the embodiment of the present invention. By obtaining n price data of the same flight with T different scheduled departure dates in the scheduled period before departure, according to n price data, p different samples with a sample length of k can be obtained, and each sample can include price data It is the price data of the same flight with the same scheduled departure date in the scheduled period, and each sample includes one or more than two price trend information of the same flight, k is less than or equal to n, the above sample acquisition method can be obtained to predict the same scheduled More effective samples of the same flight on the departure date, and avoid the defects of difficult sample selection, complex calculation, high difficulty in price prediction and low accuracy that are prone to occur when predicting route prices through route price data. By using the above p different samples as training samples to train the neural network model, the trained neural network model can accurately predict the price of the same flight on the scheduled departure date in the future at the scheduled time before departure.

根据一些实施例,在S330之前还包括:According to some embodiments, before S330, it also includes:

比较p与样本数量阈值,并且判定p大于或等于样本数量阈值。Compare p to the sample size threshold, and determine that p is greater than or equal to the sample size threshold.

根据一些实施例,S320可以包括:According to some embodiments, S320 may include:

通过每个相同预定离港日期的同一航班在离港前预定时段的价格数据 获得m×t-k个不同样本,其中,m为预定时段的天数,t为在每天获取价格 数据的次数,其中,m×t大于或等于k;Obtain m×t-k different samples through the price data of the same flight with the same scheduled departure date in the scheduled period before departure, where m is the number of days in the scheduled period, and t is the number of times the price data is obtained per day, where m ×t is greater than or equal to k;

基于每个相同预定离港日期的同一航班在离港前预定时段的价格数据 获得的m×t-k个不同样本和不同预定离港日期的数量T获得p个不同样本。Based on m×t-k different samples obtained from the price data of the same flight with the same scheduled departure date in the scheduled period before departure and the number T of different scheduled departure dates, p different samples are obtained.

图4是本发明一种实施例的航班价格预测方法的样本获取过程的示意 性流程图。如图4所示,航班价格预测方法的样本获取过程包括: S401~S410。Fig. 4 is a schematic flowchart of the sample acquisition process of the flight price prediction method of an embodiment of the present invention. As shown in Fig. 4, the sample acquisition process of the flight price prediction method includes: S401-S410.

S401,获取当前日期D,初始化c=0,i=0。其中,c为初始样本数量, i为初始数据获取循环次数。S401. Obtain the current date D, and initialize c=0, i=0. Among them, c is the initial sample size, and i is the number of initial data acquisition cycles.

S402,i=i+1,可以理解为将初始数据获取循环次数加1。S402, i=i+1, can be understood as adding 1 to the number of initial data acquisition cycles.

S403,获取离港日期为D-i日的预定航班的价格变化和舱位变化数据。S403. Obtain price change and cabin class change data of a scheduled flight whose departure date is D-i day.

S404,在上述数据中筛选距离预定行本离港前m天的数据作为基础数 据。S404, filter the data of m days before the scheduled departure from the above data as the basic data.

S405,在基础数据中选取k个维度作为时间序列。S405. Select k dimensions in the basic data as time series.

S406,判断时间序列结果,并结合k-1个维度的时间序列的基础数据 构建机器学习样本。例如,可以将时间序列中最后一个数据相对前一个数 据的变化趋势作为时间序列结果。S406, judging the time series result, and constructing a machine learning sample in combination with the basic data of the time series of k-1 dimensions. For example, the change trend of the last data relative to the previous data in the time series can be taken as the time series result.

S407,将m×t-k个样本累计入样本库。S407. Accumulate the m×t-k samples into the sample library.

S408,c=c+m×t-k。S408, c=c+m×t-k.

S409,判断c是否大于预设本数量阈值x。如果c是大于预设本数量 阈值x进入S410,如果c是不大于预设本数量阈值x返回S402。S409, judging whether c is greater than the preset quantity threshold x. If c is greater than the preset quantity threshold x, enter S410, and if c is not greater than the preset quantity threshold x, return to S402.

S410,存储数据样本。到此为止,成功获取了X个机器学习训练样本。S410, storing data samples. So far, X machine learning training samples have been successfully obtained.

图5是本发明另一种实施例的航班价格预测方法的示意性流程图。如 图5所示,上述航班价格预测方法还可以包括:S510,当n个价格数据中 出现缺失价格数据时,选择缺失价格数据对应的价格数据采集的时间节点 的下一次价格数据采集的时间节点对应的价格数据,将选择的价格数据作 为缺失价格数据补充到n个价格数据中。Fig. 5 is a schematic flowchart of a flight price prediction method according to another embodiment of the present invention. As shown in Figure 5, the above flight price prediction method may also include: S510, when missing price data appears in the n price data, select the time node of the next price data collection corresponding to the time node of price data collection corresponding to the missing price data For the corresponding price data, the selected price data is added to the n price data as missing price data.

图6是本发明一种实施例的航班价格预测方法的价格数据的获取过程 的示意性流程图。如图6所示,该航班价格预测方法的价格数据的获取过 程可以包括:S601~S607。Fig. 6 is a schematic flowchart of the price data acquisition process of the flight price prediction method according to an embodiment of the present invention. As shown in Figure 6, the acquisition process of the price data of the flight price prediction method may include: S601-S607.

S601,获取未处理的数据。可以通过IBE接口获取未处理过的航班价 格数据。S601. Obtain unprocessed data. Unprocessed flight price data can be obtained through the IBE interface.

S602,分离舱位代码和舱位剩余座位数。在获取的未处理过的航班价 格数据对舱位代码和舱位剩余座位数进行分离。S602, separating the cabin code and the number of remaining seats in the cabin. In the obtained unprocessed flight price data, the class code and the remaining seats of the class are separated.

S603,结合舱位价格数据库获取航班最低运价。可以理解,上述航班 最低运价可以根据上述舱位状态在现有的运价基础数据库中匹配查询获得。S603. Obtain the lowest freight price of the flight in combination with the cabin price database. It can be understood that the minimum freight rate of the above-mentioned flight can be obtained by matching query in the existing basic freight rate database according to the above-mentioned cabin status.

S604,判断获取的航班最低运价也就是需要的价格数据是否出现缺失 值。如果出现缺失值,则进入S605,如果没有出现缺失值,则进入S607。S604, judging whether the obtained lowest freight rate of the flight, that is, the required price data, has a missing value. If there is a missing value, go to S605, if there is no missing value, go to S607.

S605,判断缺失值是否在允许范围内,如果缺失值是在允许范围内, 则进入S606,如果缺失值不在允许范围内,则放弃此次获取的数据,返回 S601。S605. Determine whether the missing value is within the allowable range. If the missing value is within the allowable range, proceed to S606. If the missing value is not within the allowable range, discard the data acquired this time and return to S601.

S606,利用相邻数据填补缺失值。可以理解为当价格数据中出现缺失 价格数据时,选择缺失价格数据对应的价格数据采集的时间节点的下一次 价格数据采集的时间节点对应的价格数据,将选择的价格数据作为缺失价 格数据补充到价格数据中。S606. Use adjacent data to fill missing values. It can be understood that when there is missing price data in the price data, select the price data corresponding to the time node of the price data collection corresponding to the missing price data and the price data corresponding to the time node of the next price data collection, and supplement the selected price data as the missing price data to in the price data.

S607,按照数据采集的时间、航班离港的日期将价格数据分类存入数 据库。S607. Classify and store the price data in the database according to the time of data collection and the date of departure of the flight.

上文中结合图3至图6,详细描述了根据本发明实施例的航班价格预 测方法,下面将结合图7至图9,详细描述根据本发明实施例的航班价格 预测装置、设备和存储介质。The flight price prediction method according to the embodiment of the present invention is described in detail above in conjunction with Fig. 3 to Fig. 6, and the flight price prediction device, equipment and storage medium according to the embodiment of the present invention will be described in detail below in conjunction with Fig. 7 to Fig. 9 .

图7是本发明一种实施例的航班价格预测装置的示意性结构框图。如 图7所示,航班价格预测装置700可以包括数据采集单元710、样本选取 单元720、模型训练单元730和价格预测单元740。Fig. 7 is a schematic structural block diagram of a flight price prediction device according to an embodiment of the present invention. As shown in Figure 7, the flight price prediction device 700 may include a data collection unit 710, a sample selection unit 720, a model training unit 730 and a price prediction unit 740.

数据采集单元710可以用于获得T个不同预定离港日期的同一航班在 离港前预定时段的n个价格数据。The data collection unit 710 can be used to obtain n pieces of price data of the same flight with T different scheduled departure dates in a predetermined period before departure.

样本选取单元720可以用于根据n个价格数据获得样本长度为k的p 个不同样本,其中,每个样本可以包括的价格数据为相同预定离港日期的 同一航班在预定时段的价格数据,并且,每个样本包括一个或两个以上的 同一航班价格趋势信息,k小于或等于n。The sample selection unit 720 can be used to obtain p different samples with a sample length of k according to the n price data, wherein the price data that can be included in each sample is the price data of the same flight on the same scheduled departure date in a predetermined period of time, and , each sample includes one or more than two price trend information of the same flight, and k is less than or equal to n.

模型训练单元730可以用于以p个不同样本作为训练样本训练神经网 络模型。The model training unit 730 can be used to train the neural network model with p different samples as training samples.

价格预测单元740可以用于基于训练后的神经网络模型预测预定离港 日期的同一航班在离港之前的预定时刻的价格,其中,T、n、k、p均为正 整数。The price prediction unit 740 can be used to predict the price of the same flight on the scheduled departure date at the scheduled moment before departure based on the trained neural network model, where T, n, k, and p are all positive integers.

根据本发明实施例的航班价格预测装置700可对应于根据本发明实施 例的航班价格预测方法中的执行主体,并且航班价格预测装置700中的各 个单元的功能分别为了实现图3中的各个方法的相应流程,为了简洁,在 此不再赘述。The flight price prediction device 700 according to the embodiment of the present invention may correspond to the execution subject in the flight price prediction method according to the embodiment of the present invention, and the functions of each unit in the flight price prediction device 700 are respectively to realize each method in FIG. 3 For the sake of brevity, the corresponding process will not be repeated here.

因此,根据本发明实施例提供的航班价格预测装置。通过获得T个不 同预定离港日期的同一航班在离港前预定时段的n个价格数据,根据n个 价格数据,获得样本长度为k的p个不同样本,每个样本可以包括的价格 数据为相同预定离港日期的同一航班在预定时段的价格数据,并且,每个 样本包括一个或两个以上的同一航班价格趋势信息,k小于或等于n,上 述样本获取方式可以获得能够预测相同预定离港日期的同一航班的更多有 效样本,并且避免通过航线价格数据预测航线价格而容易发生的样本选取 困难、计算复杂、价格预测难度高准确度低的缺陷。通过上述p个不同样 本作为训练样本训练神经网络模型,可以使经过训练的神经网络模型准确 的预测未来预定离港日期的同一航班在离港之前的预定时刻的价格。Therefore, an apparatus for predicting flight prices is provided according to an embodiment of the present invention. By obtaining n price data of the same flight with T different scheduled departure dates in the scheduled period before departure, according to n price data, p different samples with a sample length of k are obtained, and the price data that each sample can include is The price data of the same flight with the same scheduled departure date in the scheduled period, and each sample includes one or more than two pieces of price trend information of the same flight, k is less than or equal to n, the above sample acquisition method can be obtained to predict the same scheduled departure More effective samples of the same flight on the Hong Kong date, and avoid the defects of difficult sample selection, complex calculation, high difficulty in price prediction and low accuracy that are prone to occur when predicting route prices through route price data. By using the above p different samples as training samples to train the neural network model, the trained neural network model can accurately predict the price of the same flight on the scheduled departure date in the future at the scheduled time before departure.

在一些示例中,数据采集单元710还可以用于:In some examples, the data collection unit 710 can also be used to:

将预定时段平均划分为n个时间段,将每个时间段内同一航班的最低 价格记录为每个时间段的价格数据。Divide the scheduled period evenly into n time periods, and record the lowest price of the same flight in each time period as the price data of each time period.

在一些示例中,样本选取单元720还可以用于:In some examples, the sample selection unit 720 can also be used to:

通过每个相同预定离港日期的同一航班在离港前预定时段的价格数据 获得m×t-k个不同样本,其中,m为预定时段的天数,t为在每天获取价格 数据的次数,其中,m×t大于或等于k;Obtain m×t-k different samples through the price data of the same flight with the same scheduled departure date in the scheduled period before departure, where m is the number of days in the scheduled period, and t is the number of times the price data is obtained per day, where m ×t is greater than or equal to k;

基于每个相同预定离港日期的同一航班在离港前预定时段的价格数据 获得的m×t-k个不同样本和不同预定离港日期的数量T获得p个不同样本。Based on m×t-k different samples obtained from the price data of the same flight with the same scheduled departure date in the scheduled period before departure and the number T of different scheduled departure dates, p different samples are obtained.

在一些示例中,航班价格预测装置还可以包括判断单元,可以用于:In some examples, the flight price prediction device may also include a judging unit, which may be used for:

比较p与样本数量阈值,并且判定p大于或等于样本数量阈值。Compare p to the sample size threshold, and determine that p is greater than or equal to the sample size threshold.

图8是本发明另一种实施例的航班价格预测装置的示意性结构框图。 如图8所示,航班价格预测装置800可以包括:数据采集单元810、缺失 数据处理单元820、样本选取单元830、模型训练单元840和价格预测单 元850。Fig. 8 is a schematic block diagram of a flight price prediction device according to another embodiment of the present invention. As shown in Figure 8, the flight price prediction device 800 may include: a data collection unit 810, a missing data processing unit 820, a sample selection unit 830, a model training unit 840 and a price prediction unit 850.

数据采集单元810可以用于获得T个不同预定离港日期的同一航班在 离港前预定时段的n个价格数据,其中,价格数据包括:机票价格和与机 票价格相对应的机票数量。The data acquisition unit 810 can be used to obtain n price data of the same flight with T different scheduled departure dates in a predetermined period before departure, wherein the price data includes: ticket price and ticket quantity corresponding to the ticket price.

缺失数据处理单元,可以用于当n个价格数据中出现缺失价格数据时, 选择缺失价格数据对应的价格数据采集的时间节点的下一次价格数据采集 的时间节点对应的价格数据,将选择的价格数据作为缺失价格数据补充到 n个价格数据中。The missing data processing unit can be used to select the price data corresponding to the time node of the price data collection corresponding to the missing price data when the missing price data appears in the n price data, and the price data corresponding to the time node of the next price data collection, and the selected price The data is added to n price data as missing price data.

样本选取单元820可以用于根据n个价格数据获得样本长度为k的p 个不同样本,其中,每个样本可以包括的价格数据为相同预定离港日期的 同一航班在预定时段的价格数据,并且,每个样本包括一个或两个以上的 同一航班价格趋势信息,k小于或等于n。The sample selection unit 820 can be used to obtain p different samples with a sample length of k according to the n price data, wherein the price data that can be included in each sample is the price data of the same flight on the same scheduled departure date in a predetermined period of time, and , each sample includes one or more than two price trend information of the same flight, and k is less than or equal to n.

模型训练单元830可以用于以p个不同样本作为训练样本训练神经网 络模型。The model training unit 830 can be used to train the neural network model with p different samples as training samples.

价格预测单元840可以用于基于训练后的神经网络模型预测预定离港 日期的同一航班在离港之前的预定时刻的价格,其中,T、n、k、p均为正 整数。The price prediction unit 840 can be used to predict the price of the same flight on the scheduled departure date at the scheduled moment before departure based on the trained neural network model, where T, n, k, and p are all positive integers.

图9是本发明一种实施例的航班价格预测设备的示意性结构框图。如 图9所示,航班价格预测设备900,可以包括存储器904和处理器903。Fig. 9 is a schematic structural block diagram of a flight price prediction device according to an embodiment of the present invention. As shown in FIG. 9 , the flight price prediction device 900 may include a memory 904 and a processor 903 .

存储器904可以用于储存有可执行程序代码;处理器903可以用于读取存 储器中存储的可执行程序代码以执行上述的航班价格预测方法。The memory 904 can be used to store executable program codes; the processor 903 can be used to read the executable program codes stored in the memory to execute the above-mentioned flight price prediction method.

因此,根据本发明实施例提供的航班价格预测设备。通过获得T个不 同预定离港日期的同一航班在离港前预定时段的n个价格数据,根据n个 价格数据,获得样本长度为k的p个不同样本,每个样本可以包括的价格 数据为相同预定离港日期的同一航班在预定时段的价格数据,并且,每个 样本包括一个或两个以上的同一航班价格趋势信息,k小于或等于n,上 述样本获取方式可以获得能够预测相同预定离港日期的同一航班的更多有 效样本,并且避免通过航线价格数据预测航线价格而容易发生的样本选取 困难、计算复杂、价格预测难度高准确度低的缺陷。通过上述p个不同样 本作为训练样本训练神经网络模型,可以使经过训练的神经网络模型准确 的预测未来预定离港日期的同一航班在离港之前的预定时刻的价格。Therefore, a flight price prediction device is provided according to an embodiment of the present invention. By obtaining n price data of the same flight with T different scheduled departure dates in the scheduled period before departure, according to n price data, p different samples with a sample length of k are obtained, and the price data that each sample can include is The price data of the same flight with the same scheduled departure date in the scheduled period, and each sample includes one or more than two pieces of price trend information of the same flight, k is less than or equal to n, the above sample acquisition method can be obtained to predict the same scheduled departure More effective samples of the same flight on the Hong Kong date, and avoid the defects of difficult sample selection, complex calculation, high difficulty in price prediction and low accuracy that are prone to occur when predicting route prices through route price data. By using the above p different samples as training samples to train the neural network model, the trained neural network model can accurately predict the price of the same flight on the scheduled departure date in the future at the scheduled time before departure.

在一些示例中,航班价格预测设备900还可以包括输入设备901、输 入端口902、输出端口905、以及输出设备906。其中,输入端口902、处 理器903、存储器904、以及输出端口905通过总线910相互连接,输入 设备901和输出设备906分别通过输入端口902和输出端口905与总线 910连接,进而与设备900的其他组件连接。In some examples, the flight price prediction device 900 may also include an input device 901, an input port 902, an output port 905, and an output device 906. Wherein, the input port 902, the processor 903, the memory 904, and the output port 905 are connected to each other through the bus 910, and the input device 901 and the output device 906 are respectively connected to the bus 910 through the input port 902 and the output port 905, and then connected to other components of the device 900. Component connections.

在一些示例中,这里的输出接口和输入接口也可以用I/O接口表示。 具体地,输入设备901接收来自外部的输入信息,并通过输入端口902将 输入信息传送到处理器903。例如,输入价格数据。In some examples, the output interface and input interface here may also be represented by I/O interface. Specifically, the input device 901 receives input information from the outside, and transmits the input information to the processor 903 through the input port 902 . For example, enter price data.

在一些示例中,处理器903基于存储器904中存储的计算机可执行程 序代码或指令对输入信息进行处理以生成输出信息,例如,处理器904执 行以下步骤:获得T个不同预定离港日期的同一航班在离港前预定时段的 n个价格数据,其中,价格数据包括:机票价格和与机票价格相对应的机 票数量。根据n个价格数据获得样本长度为k的p个不同样本,其中,每 个样本包括的价格数据为相同预定离港日期的同一航班在预定时段的价格 数据,并且,每个样本包括一个或两个以上的同一航班价格趋势信息,k 小于或等于n。以p个不同样本作为训练样本训练神经网络模型。基于训 练后的神经网络模型预测预定离港日期的同一航班在离港之前的预定时刻 的价格,其中,T、n、k、p均为正整数。将输出信息临时或者永久地存储 在存储器904中,随后在需要时经由输出端口905将输出信息传送到输出 设备906。输出设备906将输出信息输出到设备900的外部。例如,在显 示设备中呈现,或上传至云端。In some examples, the processor 903 processes the input information based on computer-executable program codes or instructions stored in the memory 904 to generate output information. For example, the processor 904 performs the following steps: Obtain the same n pieces of price data of the scheduled time period before the departure of the flight, wherein the price data includes: the ticket price and the number of tickets corresponding to the ticket price. According to n price data, p different samples with a sample length of k are obtained, wherein the price data included in each sample is the price data of the same flight on the same scheduled departure date in a predetermined period, and each sample includes one or two More than one price trend information of the same flight, k is less than or equal to n. Use p different samples as training samples to train the neural network model. Predict the price of the same flight on the scheduled departure date at the scheduled time before departure based on the trained neural network model, where T, n, k, and p are all positive integers. The output information is stored temporarily or permanently in the memory 904, and then transmitted to the output device 906 via the output port 905 as needed. The output device 906 outputs output information to the outside of the device 900 . For example, rendering on a display device, or uploading to the cloud.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地 方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的 部分或者全部单元来实现本发明实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

在一些示例中,提供了一种计算机可读存储介质,可以包括指令,当 其在计算机上运行时,可以使得计算机执行上述的航班价格预测方法。In some examples, a computer-readable storage medium is provided, which may include instructions, which, when run on a computer, can cause the computer to execute the above-mentioned flight price prediction method.

在一些示例中,提供了一种包含指令的计算机程序产品,当其在计算 机上运行时,使得计算机执行上述的航班价格预测方法。In some examples, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the flight price prediction method described above.

在一些示例中,提供了一种计算机程序,当其在计算机上运行时,使 得计算机执行上述的航班价格预测方法。In some examples, a computer program is provided, which, when run on a computer, causes the computer to execute the above-mentioned flight price prediction method.

在上述示例中,可以全部或部分地通过软件、硬件、固件或者其任意 组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的 形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上 加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例 所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机 网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储 介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传 输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据 中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例 如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据 中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可 用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存 储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光 介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD)) 等。In the above examples, it may be fully or partially implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.

根据一些实施例,航班价格预测方法可以通过Matlab软件在具有 Linux系统的高性能计算服务器实现。According to some embodiments, the flight price prediction method can be implemented on a high-performance computing server with a Linux system through Matlab software.

例如,高性能计算服务器通过Webservice获取需要预测的信息,例如: 预测的信息为:2017-5-1从哈尔滨至深圳的航班ZH9628在未来24小时内 的变化趋势。For example, the high-performance computing server obtains the information that needs to be predicted through Webservice, for example: The predicted information is: the change trend of flight ZH9628 from Harbin to Shenzhen in the next 24 hours on May 1, 2017.

在一些示例中,在价格数据的采集阶段,若上述每天获取所述价格数 据的次数t取值为4,那么同样可以预测2017-5-1从哈尔滨至深圳的航班 ZH9628在未来6小时内的变化趋势。In some examples, in the price data collection stage, if the above-mentioned number of times t to obtain the price data per day is 4, it can also be predicted that the flight ZH9628 from Harbin to Shenzhen on May 1, 2017 will be in the next 6 hours. Trend.

在一些示例中,高性能计算服务器可以根据上述计算机可读存储介质 根据获取的预测信息内容从系统历史数据库中去读历史数据和用来预测的 节点数据,并形成相应的数据文件,数据文件分为预测数据和训练数据两 部分。In some examples, the high-performance computing server can read historical data and node data used for prediction from the system historical database according to the above-mentioned computer-readable storage medium according to the content of the obtained prediction information, and form corresponding data files. The data files are divided into There are two parts: prediction data and training data.

在一些示例中,高性能计算服务器可以根据上述计算机可读存储介质 通过Matlab读取训练数据文件,程序自动训练神经网络模型。训练完成后 将训练结果存储为Matlab的神经网络结构文件。通过训练后神经网络模型 计算预测数据的结果,获取预测的价格变化趋势。将预测结果通过通信端 口传输,然后再由Webservice接口发布给用户。In some examples, the high-performance computing server can read the training data file through Matlab according to the computer-readable storage medium, and the program automatically trains the neural network model. After the training is completed, the training result is stored as a neural network structure file of Matlab. Calculate the results of the forecast data through the trained neural network model to obtain the forecasted price change trend. The prediction result is transmitted through the communication port, and then released to the user by the Webservice interface.

Claims (12)

1. a kind of flight prices Forecasting Methodology, it is characterised in that methods described includes:
N price data of same flight scheduled time slot before departure from port of T different predetermined date of departure is obtained, wherein, it is described Price data includes:Ticket price and the air ticket quantity corresponding with the ticket price;
P different sample of the sample length for k is obtained according to the n price data, wherein, the price number that each sample includes According to the same flight for identical predetermined date of departure the scheduled time slot price data, also, each sample include it is described Same flight upward price trend information, k is less than or equal to n;
Neural network model is trained using described p different samples as training sample;
Pre- timing of the same flight based on the predetermined date of departure of Neural Network model predictive after training before departure from port The price at quarter, wherein, T, n, k, p are positive integer.
2. flight prices Forecasting Methodology according to claim 1, it is characterised in that acquisition T is different to make a reservation for departure from port N price data of the same flight on date scheduled time slot before departure from port, including:
The scheduled time slot is averagely divided into n period, by the lowest price of the same flight in each period Lattice are recorded as the price data of each period.
3. flight prices Forecasting Methodology according to claim 1, it is characterised in that described according to the n price data P different sample of the sample length for k is obtained, including:
M × t-k are obtained by the price data of same flight scheduled time slot before departure from port of each identical predetermined date of departure Different samples, wherein, m is the number of days of the scheduled time slot, and t is to obtain the number of times of the price data daily, wherein, m × t More than or equal to k;
M × t-k that the price data of same flight scheduled time slot before departure from port based on each identical predetermined date of departure is obtained The quantity T of individual different samples and different predetermined date of departure obtains described p different sample.
4. flight prices Forecasting Methodology according to claim 1, it is characterised in that described to be made with described p different samples Before training sample training neural network model, in addition to:
When occurring missing price data in the n price data, the corresponding price data of the missing price data is selected The corresponding price data of timing node of the collection of price data next time of the timing node of collection, the price data of selection is made Added to for the missing price data in the n price data.
5. flight prices Forecasting Methodology according to any one of claim 1 to 4, it is characterised in that described with the p Before different samples are trained as training sample to neural network model, in addition to:
Compare p and sample size threshold value, and judge that p is more than or equal to the sample size threshold value.
6. a kind of flight prices prediction meanss, it is characterised in that described device includes:
Data acquisition unit, n valency of same flight scheduled time slot before departure from port for obtaining T different predetermined date of departure Lattice data, wherein, the price data includes:Ticket price and the air ticket quantity corresponding with the ticket price;
Sample chooses unit, for obtaining p different sample of the sample length for k according to the n price data, wherein, often The price data that individual sample includes is price data of the same flight in the scheduled time slot of identical predetermined date of departure, and And, each sample includes the same flight upward price trend information, and k is less than or equal to n;
Model training unit, for training neural network model using described p different samples as training sample;
Price expectation unit, exists for the same flight based on the predetermined date of departure of Neural Network model predictive after training The price of predetermined instant before departure from port, wherein, T, n, k, p are positive integer.
7. flight prices prediction meanss according to claim 6, it is characterised in that the data acquisition unit is additionally operable to:
The scheduled time slot is averagely divided into n period, by the lowest price of the same flight in each period Lattice are recorded as the price data of each period.
8. flight prices prediction meanss according to claim 6, it is characterised in that the sample is chosen unit and is additionally operable to:
M × t-k are obtained by the price data of same flight scheduled time slot before departure from port of each identical predetermined date of departure Different samples, wherein, m is the number of days of the scheduled time slot, and t is to obtain the number of times of the price data daily, wherein, m × t More than or equal to k;
M × t-k that the price data of same flight scheduled time slot before departure from port based on each identical predetermined date of departure is obtained The quantity T of individual different samples and different predetermined date of departure obtains described p different sample.
9. flight prices prediction meanss according to claim 6, it is characterised in that returning apparatus includes missing data and handles single Member, is used for:
When occurring missing price data in the n price data, the corresponding price data of the missing price data is selected The corresponding price data of timing node of the collection of price data next time of the timing node of collection, the price data of selection is made Added to for the missing price data in the n price data.
10. the flight prices prediction meanss according to any one of claim 6 to 9, it is characterised in that described device is also wrapped Judging unit is included, is used for:
Compare p and sample size threshold value, and judge that p is more than or equal to the sample size threshold value.
11. a kind of pre- measurement equipment of flight prices, it is characterised in that including memory and processor;
The memory is used to store executable program code;
The executable program code that the processor is stored for reading in the memory is any with perform claim requirement 1 to 5 Flight prices Forecasting Methodology described in.
12. a kind of computer-readable recording medium, including instruction, when the instruction is run on computers so that the meter Calculation machine performs the flight prices Forecasting Methodology as described in claim any one of 1-5.
CN201710395448.1A 2017-05-26 2017-05-26 Flight prices Forecasting Methodology, device, equipment and storage medium Pending CN107274215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710395448.1A CN107274215A (en) 2017-05-26 2017-05-26 Flight prices Forecasting Methodology, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710395448.1A CN107274215A (en) 2017-05-26 2017-05-26 Flight prices Forecasting Methodology, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107274215A true CN107274215A (en) 2017-10-20

Family

ID=60065728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710395448.1A Pending CN107274215A (en) 2017-05-26 2017-05-26 Flight prices Forecasting Methodology, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107274215A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472399A (en) * 2018-10-23 2019-03-15 上海交通大学 Air ticket purchase decision-making method and system considering forecast uncertainty
CN111091407A (en) * 2019-10-28 2020-05-01 海南太美航空股份有限公司 Airline passenger seat rate prediction method and system
CN111858691A (en) * 2020-07-30 2020-10-30 中国民航信息网络股份有限公司 Method and device for monitoring civil aviation ticket information
CN112767035A (en) * 2021-01-25 2021-05-07 海南太美航空股份有限公司 Flight fare estimation method, system and electronic equipment
CN113222533A (en) * 2021-04-28 2021-08-06 广州民航信息技术有限公司 Method and device for automatically initializing departure flights
CN113393088A (en) * 2021-05-19 2021-09-14 悠桦林信息科技(上海)有限公司 Method, device, equipment, medium and yield management system for controlling cabin in air transportation

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472399A (en) * 2018-10-23 2019-03-15 上海交通大学 Air ticket purchase decision-making method and system considering forecast uncertainty
CN111091407A (en) * 2019-10-28 2020-05-01 海南太美航空股份有限公司 Airline passenger seat rate prediction method and system
CN111091407B (en) * 2019-10-28 2023-06-02 海南太美航空股份有限公司 Prediction method and system for passenger rate of airline
CN111858691A (en) * 2020-07-30 2020-10-30 中国民航信息网络股份有限公司 Method and device for monitoring civil aviation ticket information
CN111858691B (en) * 2020-07-30 2024-03-01 中国民航信息网络股份有限公司 Method and device for monitoring civil aviation ticketing information
CN112767035A (en) * 2021-01-25 2021-05-07 海南太美航空股份有限公司 Flight fare estimation method, system and electronic equipment
CN113222533A (en) * 2021-04-28 2021-08-06 广州民航信息技术有限公司 Method and device for automatically initializing departure flights
CN113393088A (en) * 2021-05-19 2021-09-14 悠桦林信息科技(上海)有限公司 Method, device, equipment, medium and yield management system for controlling cabin in air transportation

Similar Documents

Publication Publication Date Title
CN107274215A (en) Flight prices Forecasting Methodology, device, equipment and storage medium
US11327814B2 (en) Semaphores for serverless computing
US20190378016A1 (en) Distributed computing architecture for large model deep learning
CN106663037A (en) Feature processing tradeoff management
US11422517B2 (en) Automated transfer of items between compartments of a smart appliance
US11574254B2 (en) Adaptive asynchronous federated learning
CN109523342A (en) Service strategy generation method and device, electronic equipment, storage medium
CN110019087A (en) Data processing method and its system
US12117998B2 (en) Machine-learning-based, adaptive updating of quantitative data in database system
US10943288B2 (en) Cognitive article reception
WO2021146802A1 (en) Method and system for optimizing an objective having discrete constraints
CN114049072B (en) Index determination method and device, electronic equipment and computer readable medium
CN112102043B (en) Item recommendation page generation method and device, electronic equipment and readable medium
US11481679B2 (en) Adaptive data ingestion rates
US20180285793A1 (en) Patron presence based workforce capacity notification
CN112598337A (en) Article-oriented vehicle control method, apparatus, device and computer readable medium
US20230214764A1 (en) Supply chain demand uncensoring
US10902442B2 (en) Managing adoption and compliance of series purchases
US11645595B2 (en) Predictive capacity optimizer
CN109710497A (en) Collecting method and system
US11914733B2 (en) Timing for user data erasure requests
US11720533B2 (en) Automated classification of data types for databases
US12135727B2 (en) File ingestion in a multi-tenant cloud environment
US20230196250A1 (en) Automatic alternative route generation
US20230108482A1 (en) System and method for large-scale accelerated parallel predictive modelling and control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20171017

Address after: 150080 Harbin City, Heilongjiang Province University Road, No. 74

Applicant after: Heilongjiang University

Applicant after: Qianhai travel (Shenzhen) Co., Ltd. operating data

Address before: 150080 Harbin City, Heilongjiang Province University Road, No. 74

Applicant before: Heilongjiang University

Applicant before: SHENZHEN TENGBANG INTERNATIONAL BUSINESS SERVICES CO., LTD.

TA01 Transfer of patent application right
CB03 Change of inventor or designer information

Inventor after: Wang Nan

Inventor after: Zhao Wencheng

Inventor before: Wang Nan

Inventor before: Chang Long

CB03 Change of inventor or designer information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171020

RJ01 Rejection of invention patent application after publication