Flight flight time prediction method and device based on artificial intelligence, and medium
By using gradient boosting classifiers and seasonal time differentiation models in flight time prediction, combined with a variety of features, the existing technology solves the problem of insufficient flight time prediction accuracy and collaborative decision-making capabilities, and achieves high-precision Flight schedule prediction improves flight punctuality and operational efficiency.
Patent Information
- Application Number
- CN202410809868.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing artificial intelligence-based flight duration prediction methods have shortcomings in handling changes in different seasons and real-time data processing, and lack the ability to work collaboratively with human dispatchers, resulting in a need to improve prediction accuracy and decision-making assistance capabilities.
By collecting historical flight data, initializing the gradient boosting classifier, setting parameters, and training models for summer, autumn and winter and spring seasons respectively, taking into account meteorological, traffic and other characteristics, the flight time with the smallest error is calculated as the prediction result, combined with the mean square error Evaluate model performance and achieve high-precision flight schedule prediction.
It improves the accuracy and real-time nature of flight schedule prediction, helps airlines optimize flight plans, reduce delays, improve passenger satisfaction and operational efficiency, and enhance decision-making efficiency.
Smart Images

Figure CN118674112A
Abstract
Description
Technical Field
[0001] The present invention relates to a flight schedule prediction method, device and medium based on artificial intelligence, belonging to the technical field of civil aviation time prediction. Background Art
[0002] In the civil aviation field, the estimation of flight duration is crucial to the operational efficiency of airlines and the travel experience of passengers. Accurate flight duration estimation can help airlines optimize flight plans, reduce delays, improve passenger satisfaction, and effectively manage airline resources. However, due to the influence of many factors, such as weather changes, air traffic control, airport operations, etc., the prediction of flight duration has always been a complex and challenging task.
[0003] Traditional flight duration prediction methods mainly rely on historical data and empirical rules. These methods have limitations in processing large-scale data and real-time data updates. With the development of artificial intelligence technology, especially the application of machine learning algorithms in the prediction field, new possibilities are provided for the prediction of flight duration. Machine learning algorithms can process large amounts of historical data, learn patterns and trends therein, and thus provide more accurate prediction results.
[0004] Nevertheless, existing AI-based forecasting methods still have room for improvement. For example, they may not fully consider the impact of seasonal changes on flight duration, or they may need to improve real-time data processing and forecasting accuracy. In addition, existing methods may lack the ability to work collaboratively with human dispatchers and cannot effectively assist dispatchers in making decisions. Summary of the invention
[0005] The purpose of the present invention is to provide a flight schedule prediction method, device and medium based on artificial intelligence to perform high-precision flight schedule prediction, thereby improving flight punctuality.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions: Collect historical flight data and convert the local time of departure and arrival of historical flights into international standard time; According to the civil aviation standards, the flight routes and flight dates between the two places are judged to be summer and autumn time or winter and spring time, and the flight time in summer and autumn time and winter and spring time is calculated to obtain the flight time data set; Initialize the gradient boosting classifier and set the classifier parameters, including the number of estimators, learning rate, maximum depth, and random state; Use the summer and autumn time and winter and spring time data in the flight duration dataset to train the gradient boosting classifier, and store the model; Calculate the prediction accuracy, take the flight time with the smallest error value as the prediction result, and execute the flight accordingly.
[0007] Preferably, the mean square error (MSE) is used as the evaluation metric for the performance of the gradient boosting classifier.
[0008] Preferably, the historical flight data includes the departure place, destination, flight start time, end time and execution date.
[0009] Preferably, preprocessing of historical flight data includes data cleaning and data completion; the data completion includes: adding the airport longitude and latitude according to the airport code, adding time characteristics, traffic characteristics, meteorological characteristics and accident reports according to the flight execution date, the time characteristics include: day of the week, whether it is a holiday, and impact duration, the traffic characteristics include: airport flight flow, air traffic control restrictions, and meteorological characteristics include: temperature, humidity, wind speed, rain and snow conditions; the impact duration is the difference between the average flight duration on weekdays and the average flight duration on holidays.
[0010] Preferably, the number of gradient boosting classifier estimators is 100, the learning rate is 0.1, the maximum depth is 6, and the random state is 123.
[0011] Preferably, the specific steps for calculating the accuracy are as follows: Randomly select the flight execution time in the sample library for the past year for prediction test and get the prediction results ; Sort the flight mission array by aircraft type, departure point, and destination, and get the median. Calculate the variance between the prediction result and the last mission execution time, the average mission execution time, the median of summer and autumn time, and the median of winter and spring time; The flight time with the minimum error is returned as the estimated flight time for the flight plan.
[0012] Preferably, the variance of the predicted result and the last time the task was executed The specific formula is as follows: , in, Indicates The prediction results of flight execution time, Indicates the time when the task was last executed. Indicates the number of execution times of all flights; The variance between the predicted result and the average task execution time The specific formula is as follows: , in, Indicates the average task execution time; Variance of the forecast results and the median of summer and autumn time The specific formula is as follows: , in, represents the median summer and autumn time; The specific formula for the variance between the prediction result and the median of winter and spring time is as follows: , in, Indicates the median winter-spring time.
[0013] The advantages of the present invention are: Through high-precision flight schedule predictions, airlines can make flight plans more accurately and reduce flight delays due to unpredictable factors such as weather and traffic flow, thereby improving flight punctuality and enhancing passenger satisfaction.
[0014] Taking into account the impact of summer and autumn time and winter and spring time on flight time, this method can train the model separately to adapt to the flight conditions in different seasons, thereby improving the accuracy of the prediction.
[0015] Accurate flight schedule forecasts can help airlines better plan the allocation of personnel, aircraft and other resources, reduce resource waste and improve operational efficiency.
[0016] Through automated forecasting systems and models, airlines can quickly obtain forecast results for flight schedules, improve decision-making efficiency, and shorten planning time. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0018] Figure 1 This is a schematic diagram of the method flow of Example 1 of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] like Figure 1 As shown, a flight schedule prediction method based on artificial intelligence includes: S1: Collect historical flight data and convert the local time of departure and arrival of historical flights into international standard time.
[0021] S2: According to the civil aviation standards, the flight routes and flight dates between the two places are judged as summer and autumn time or winter and spring time, and the flight time in summer and autumn time and winter and spring time is calculated to obtain the flight time data set.
[0022] S3: Initialize the gradient boosting classifier and set the parameters of the classifier, including the number of estimators, learning rate, maximum depth, and random state.
[0023] S4: Use the summer and autumn time and winter and spring time data in the flight duration dataset to train the gradient boosting classifier respectively, and store the model.
[0024] S5: Calculate the prediction accuracy, take the flight time with the smallest error value as the prediction result, and execute the flight accordingly.
[0025] As a refinement of the above steps, the historical flight data in step S1 includes the departure place, destination, flight start time, end time and execution date.
[0026] The preprocessing of historical flight data includes data cleaning and data completion; the data completion includes: adding the airport latitude and longitude according to the airport code, adding time characteristics, traffic characteristics, meteorological characteristics and accident reports according to the flight execution date, the time characteristics include: day of the week, whether it is a holiday, and the impact duration, the traffic characteristics include: airport flight flow, air traffic control restrictions, and the meteorological characteristics include: temperature, humidity, wind speed, rain and snow conditions; the impact duration is the difference between the average flight duration on weekdays and the average flight duration on holidays.
[0027] As a refinement of the above steps, the flight time in step S2 is the take-off time minus the landing time, and the result is converted into four digits in minutes. According to flight regulations, the summer and autumn flight schedule is implemented from the last Sunday in March to the last full Saturday in October. The winter and spring flight schedule is implemented from the last Sunday in October to the last full Saturday in March of the following year, and is divided into summer and autumn time, winter and spring time, last flight time, and average flight time.
[0028] As a refinement of the above steps, the gradient boosting classifier in step S3 uses mean square error (MSE) as the performance evaluation indicator. The number of estimators is 100, the learning rate is 0.1, the maximum depth is 6, and the random state is 123.
[0029] As a refinement of the above steps, the specific steps of calculating the accuracy in step S5 are as follows: S5-1: Randomly select the flight execution time in the sample library in the past year for prediction test and obtain the prediction results ; S5-2: Sort the flight mission array according to aircraft type, departure point, and destination, and obtain the median. , , in, Indicates Flight duration in summer and autumn, Indicates The duration of each flight in winter and spring; S5-3: Calculate the variance between the prediction result and the last mission time, the average mission time, the median of summer and autumn time, and the median of winter and spring time; The variance of the predicted result and the last execution time of the task The specific formula is as follows: , in, Indicates The prediction results of flight execution time, Indicates the time when the task was last executed. Indicates the number of execution times of all flights; The variance between the predicted result and the average task execution time The specific formula is as follows: , in, Indicates the average task execution time; Variance of the forecast results and the median of summer and autumn time The specific formula is as follows: , in, represents the median summer and autumn time; The specific formula for the variance between the prediction result and the median of winter and spring time is as follows: , in, Indicates the median winter-spring time.
[0030] S5-4: Return the flight time with the minimum error as the estimated flight time for the flight plan.
[0031] It should be noted that this method can add current data as historical data in real time, adjust parameters to optimize the gradient algorithm, and improve accuracy.
[0032] The local time of historical flights is uniformly converted to international time: The local times of take-off and arrival of historical flights are converted to international time, the time zone is determined according to the four-letter airport code, and the corresponding codes are written for the take-off and landing times to achieve the conversion.
[0033] Calculate the flight time from a certain place to X during summer and autumn time: First, the summer and autumn time is determined for the flight routes and flight dates of the two places according to the civil aviation guidelines. Then, the time difference between the two places needs to be adjusted to the actual time difference of the area that implements the summer and autumn time. Finally, the flight time between the two places is calculated.
[0034] Calculate the flight time from one place to another during winter and spring time: First, according to the civil aviation guidelines, the flight routes and flight dates between the two places are judged to be winter and spring time. Then, when calculating, the time difference between the two places needs to be adjusted to the actual time difference in the area where winter and spring time is implemented. Finally, the flight time between the two places is calculated.
[0035] How to use the Gradient Boosting algorithm to accurately predict flight duration: First, the cleaned and converted information such as the flight's departure time, arrival time, flight distance, airline, and aircraft model is stored in the middleware library. Secondly, the prepared data set is divided into a training set and a test set. Usually 70% of the data is used as the training set and 30% of the data is used as the test set. Secondly, the training set data is used to train the gradient boosting model. During the training process, it is necessary to determine the parameters of the model, such as the number of trees, the depth of the tree, the learning rate, etc. Techniques such as cross-validation can be used to determine the optimal parameters. Then, the trained model is evaluated using the test set data, and the mean square error (Mse) indicator can be used to evaluate the performance of the model. Finally, the trained model is used to predict the new flight data to obtain the predicted value of the flight duration of the flight.
[0036] The disclosed embodiment also provides an artificial intelligence-based flight schedule prediction device, including a processor and a memory. Optionally, the device may also include a communication interface and a bus. The processor, the communication interface, and the memory may communicate with each other through the bus. The communication interface may be used for information transmission. The processor may call the logic instructions in the memory to execute the artificial intelligence-based flight schedule prediction method of the above embodiment.
[0037] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0038] The memory, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes the program instructions / modules stored in the memory to perform functional applications and data processing, that is, to implement the flight schedule prediction method based on artificial intelligence in the above embodiment.
[0039] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory may include a high-speed random access memory and may also include a non-volatile memory.
[0040] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned artificial intelligence-based flight schedule prediction method.
[0041] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0042] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0043] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A flight schedule prediction method based on artificial intelligence, It is characterized in that The following steps are involved: Collect historical flight data, convert the local time of departure and arrival of historical flights into international standard time, and pre-process the historical flight data; According to the civil aviation standards, the flight routes and flight dates between the two places are judged to be summer and autumn time or winter and spring time, and the flight time in summer and autumn time and winter and spring time is calculated to obtain the flight time data set; Initialize the gradient boosting classifier and set the classifier parameters, including the number of estimators, learning rate, maximum depth, and random state; Use the summer and autumn time and winter and spring time data in the flight duration dataset to train the gradient boosting classifier, and store the model; Calculate the prediction accuracy, take the flight time with the smallest error value as the prediction result, and execute the flight accordingly.
2. The method for predicting flight schedules based on artificial intelligence according to claim 1, It is characterized in that The historical flight data includes airport code, departure point, destination, flight start time, end time and execution date.
3. The method for predicting flight schedules based on artificial intelligence according to claim 2, It is characterized in that The preprocessing of historical flight data includes data cleaning and data completion; the data completion includes: adding the airport latitude and longitude according to the airport code, adding time characteristics, traffic characteristics, meteorological characteristics and accident reports according to the flight execution date, the time characteristics include: day of the week, whether it is a holiday, and the impact duration, the traffic characteristics include: airport flight flow, air traffic control restrictions, and the meteorological characteristics include: temperature, humidity, wind speed, rain and snow conditions; the impact duration is the difference between the average flight duration on weekdays and the average flight duration on holidays.
4. The method for predicting flight schedules based on artificial intelligence according to claim 1, It is characterized in that The mean squared error is used as the evaluation metric for the performance of the gradient boosting classifier.
5. The method for predicting flight schedules based on artificial intelligence according to claim 1, It is characterized in that The number of estimators of the gradient boosting classifier is 100, the learning rate is 0.1, the maximum depth is 6, and the random state is 123.
6. The method for predicting flight schedules based on artificial intelligence according to claim 1, It is characterized in that The specific steps for calculating accuracy are as follows: Randomly select the flight execution time in the sample library for the past year for prediction test and get the prediction results ; Sort the flight mission array by aircraft type, departure point, and destination, and get the median. Calculate the variance between the prediction result and the last mission execution time, the average mission execution time, the median of summer and autumn time, and the median of winter and spring time; The flight time with the minimum error is returned as the estimated flight time for the flight plan.
7. The method for predicting flight schedules based on artificial intelligence according to claim 1, It is characterized in that The variance of the predicted result and the last execution time of the task The specific formula is as follows: , in, Indicates The prediction results of flight execution time, Indicates the time when the task was last executed. Indicates the number of execution times of all flights; The variance between the predicted result and the average task execution time The specific formula is as follows: , in, Indicates the average task execution time; Variance of the forecast results and the median of summer and autumn time The specific formula is as follows: , in, represents the median summer and autumn time; The specific formula for the variance between the prediction result and the median of winter and spring time is as follows: , in, Indicates the median winter-spring time.
8. An artificial intelligence-based flight schedule prediction device, comprising a processor and a memory storing program instructions, It is characterized in that The processor is configured to execute the flight schedule prediction method based on artificial intelligence as described in any one of claims 1-7 when running the program instructions.
9. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Flight arrival time prediction method and system based on data mining analysis
CN111652427A
Flight flow prediction method and system based on clustering and improved xgboost
CN112926809A
Civil aviation flight execution result prediction method and device and electronic equipment
CN115759386A
Flight dynamic real-time data aggregation platform system based on data analysis and mining
CN116245242A
Flight arrival time prediction method and device, electronic equipment and medium
CN117764225A
Cited By
Flight-based flight time determination method and device and storage medium
CN119887140A
