Flight delay level prediction method, device, electronic device and storage medium

By combining long short-term memory network, convolutional neural network and capsule network, the temporal and spatial features in flight delay data are extracted and fused, which solves the problem of insufficient prediction accuracy and generalization ability in the existing technology, and achieves more accurate Flight delay level prediction.

CN118312733BActive Publication Date: 2024-09-20THE SECOND RES INST OF CIVIL AVIATION ADMINISTRATION OF CHINA +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410742663.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-20
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Existing flight delay prediction technologies have difficulties in capturing nonlinear relationships in data and processing large data sets, resulting in limited prediction accuracy and generalization capabilities.

Method used

The long-short-term memory network layer is used to extract temporal features, the convolutional neural network layer is used to extract spatial features, and the capsule network layer is used to achieve deep integration of temporal features and spatial features to further explore the intrinsic relationship between spatio-temporal features.

Benefits of technology

It improves the accuracy and generalization ability of flight delay prediction, enables comprehensive and in-depth analysis and processing of time series and spatial characteristics related to flight delays, and achieves accurate delay level prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118312733B
    Figure CN118312733B
Patent Text Reader

Abstract

The present application provides a flight delay level prediction method, device, electronic device and storage medium, including: obtaining the data information related to time series in the data information after data preprocessing of the target airline, inputting it into the long short-term memory network layer, performing feature processing on the data information related to time series, and outputting the time series features of the flight; inputting the data information related to space in the data information after data preprocessing into the convolutional neural network layer, performing convolution processing on the data information related to space, and outputting the spatial features of the flight; inputting the time series features and the spatial features of the flight into the capsule network layer, processing the time series features and the spatial features of the flight based on the dynamic routing processing mechanism, and predicting the flight delay level of each flight. In this way, the time series and spatial features closely related to flight delays can be comprehensively and deeply analyzed and processed, and the flight delay level can be accurately predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of aerospace technology, and in particular to a flight delay level prediction method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of the aviation transportation industry, flight delays have gradually evolved into an industry-wide bottleneck problem. To meet this challenge, it is particularly important to accurately predict the level of flight delays. In this context, it is crucial to deeply explore the spatiotemporal correlation of flight delays and accurately predict the delays that future flights may face. This can not only help airports and airlines to make timely warnings and take countermeasures, but also enhance the understanding of the inherent laws of flight delays and provide solid support for the continuous optimization of the aviation industry. Although flight delay prediction technology has made significant progress, it still faces some problems and challenges. Methods based on statistical analysis are limited by the linear assumption of data features and it is difficult to effectively capture the nonlinear relationship between data, which restricts the accuracy and generalization ability of the prediction model. In contrast, although machine learning methods can automatically extract features and learn patterns, they may face difficulties in processing large data sets and high-dimensional sparse data, and require more efficient feature selection and dimensionality reduction methods. Therefore, how to improve the accuracy of flight delay prediction has become a technical issue that cannot be underestimated. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a flight delay level prediction method, device, electronic device and storage medium. The long short-term memory network layer is used to extract time series features and effectively capture the time dependency in flight delay data. The convolutional neural network layer is responsible for extracting spatial features and mining key spatial information related to delays from complex flight data. The capsule network layer is introduced to achieve a deep fusion of time series features and spatial features, and further mine the intrinsic connection and correlation between time and space features, so as to comprehensively and deeply analyze and process the time series and spatial features closely related to flight delays, and accurately predict the flight delay level.

[0004] The present application embodiment provides a flight delay level prediction method, the flight delay level prediction method comprising:

[0005] Obtaining data information of the target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information;

[0006] Inputting the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, performing feature processing on the data information related to the time series, and outputting the time series features of the flight;

[0007] Inputting the space-related data information in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the space-related data information, and outputting the spatial features of the flight;

[0008] The temporal characteristics of the flight and the spatial characteristics of the flight are input into the capsule network layer of the flight delay level prediction model, and the temporal characteristics of the flight and the spatial characteristics of the flight are processed based on a dynamic routing processing mechanism to predict the flight delay level of each flight of the target airline.

[0009] In a possible implementation manner, the data information related to time series in the data information after data preprocessing is input into the long short-term memory network layer of the pre-trained flight delay level prediction model, and feature processing is performed on the data information related to time series to output the time series features of the flight, including:

[0010] In the long short-term memory network layer, feature processing is performed on a first feature output by a memory unit at a previous time step, a second feature output by a hidden unit at a previous time step, and data information related to time series at a current time step to determine a time series feature at the current time step;

[0011] The time series features of each time step are concatenated to generate the time series features of the flight.

[0012] In a possible implementation manner, the temporal characteristics of the flight and the spatial characteristics of the flight are input into the capsule network layer of the flight delay level prediction model, and the temporal characteristics of the flight and the spatial characteristics of the flight are processed based on a dynamic routing processing mechanism to predict the flight delay level of each flight of the target airline, including:

[0013] In the capsule network layer, the temporal features of the flight and the spatial features of the flight are fused to determine the fused features of the flight;

[0014] The main capsule sub-network layer and multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline; wherein the number of the label capsule sub-network layers is consistent with the number of flight delay levels.

[0015] In a possible implementation manner, the main capsule sub-network layer and the multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline, including:

[0016] The main capsule sub-network layer performs convolution processing on the fused features of the flight based on the activation function and outputs a feature vector;

[0017] For each of the label capsule sub-network layers, the label capsule sub-network layer determines the flight delay level prediction probability corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer;

[0018] A flight delay level prediction vector is determined based on the flight delay level prediction probability corresponding to each label capsule sub-network layer, and the index of the maximum flight delay level prediction probability in the flight delay level prediction vector is used as the predicted flight delay level.

[0019] In a possible implementation manner, for each of the label capsule sub-network layers, the label capsule sub-network layer determines the flight delay level prediction probability corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer, including:

[0020] Determine a prediction vector based on the product of the feature vector and the weight matrix of the label capsule sub-network layer;

[0021] Based on the prediction vector and the weight value between the main capsule sub-network layer and the label capsule sub-network layer, the flight delay level prediction probability corresponding to the label capsule sub-network layer is determined.

[0022] In a possible implementation manner, the flight delay level prediction model is trained by the following steps:

[0023] Obtaining sample data information and flight delay level label information corresponding to historical flights in the sample data information;

[0024] Input the time-series-related sample data information in the sample data information into the initial long short-term memory network layer of the initial model to output the time-series features of the historical flights, and input the space-related data information in the sample data information into the initial convolutional neural network layer of the initial model to output the space features of the historical flights;

[0025] Input the temporal features of the historical flight and the spatial features of the historical flight into the initial capsule network layer of the initial model, and output the flight delay level prediction vector of the historical flight;

[0026] The loss value of the initial model is determined based on the flight delay level label information and the flight delay level prediction vector of the historical flight based on the boundary loss function; if the loss value does not change continuously during the training cycle, the training of the initial model is stopped, and the initial model is used as the flight delay level prediction model; if the loss value continues to change during the training cycle, the network parameters of the initial long short-term memory network layer, the initial convolutional neural network layer, and the initial capsule network layer are adjusted.

[0027] In a possible implementation, the loss value of the initial model is determined by the following formula:

[0028]

[0029] in, is the loss value, t is the number of flight delay levels, Indicates Does the flight delay level label information exist? is the upper threshold, is the lower threshold, is the flight delay level prediction vector of historical flights. j Sub-label capsules The corresponding modulus length of the predicted probability of flight delay level, is a fixed value, j and t The number is consistent.

[0030] The embodiment of the present application further provides a flight delay level prediction device, the flight delay level prediction device comprising:

[0031] An acquisition module is used to acquire the data information of the target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information;

[0032] A time series feature processing module, used to input the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, perform feature processing on the data information related to the time series, and output the time series features of the flight;

[0033] A spatial feature processing module, used for inputting the data information related to space in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the data information related to space, and outputting the spatial features of the flight;

[0034] The feature depth processing module is used to input the temporal features of the flight and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, process the temporal features of the flight and the spatial features of the flight based on the dynamic routing processing mechanism, and predict the flight delay level of each flight of the target airline.

[0035] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the flight delay level prediction method as described above are performed.

[0036] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the flight delay level prediction method as described above are executed.

[0037] The embodiments of the present application provide a flight delay level prediction method, device, electronic device and storage medium. The flight delay level prediction method includes: obtaining data information of a target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information; inputting the data information related to time series in the data information after data preprocessing into the long short-term memory network layer of a pre-trained flight delay level prediction model, performing feature processing on the data information related to time series, and outputting the time series features of the flight; inputting the data information related to space in the data information after data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the data information related to space, and outputting the spatial features of the flight; inputting the time series features of the flight and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, processing the time series features of the flight and the spatial features of the flight based on the dynamic routing processing mechanism, and predicting the flight delay level of each flight of the target airline. The beneficial effects of this scheme are as follows: the long short-term memory network layer is used to extract temporal features and effectively capture the time dependency in flight delay data; the convolutional neural network layer is responsible for extracting spatial features and mining key spatial information related to delays from complex flight data; and the introduction of the capsule network layer is to achieve a deep fusion of temporal features and spatial features, further mining the intrinsic connection and correlation between temporal and spatial features, so as to comprehensively and deeply analyze and process the temporal and spatial features closely related to flight delays, and accurately predict the flight delay level.

[0038] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A flowchart of a flight delay level prediction method provided in an embodiment of the present application;

[0041] Figure 2 One of the structural schematic diagrams of a flight delay level prediction device provided in an embodiment of the present application;

[0042] Figure 3The second structural diagram of a flight delay level prediction device provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0045] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied in the field of aerospace technology.

[0046] Research has found that with the rapid development of the aviation transportation industry, flight delays have gradually evolved into an industry-wide bottleneck problem. To meet this challenge, it is particularly important to accurately predict the level of flight delays. In this context, it is crucial to deeply explore the spatiotemporal correlation of flight delays and accurately predict the delays that future flights may face. This can not only help airports and airlines to make timely warnings and take countermeasures, but also enhance the understanding of the inherent laws of flight delays and provide solid support for the continuous optimization of the aviation industry. Although flight delay prediction technology has made significant progress, it still faces some problems and challenges. Methods based on statistical analysis are limited by the linear assumption of data features and it is difficult to effectively capture the nonlinear relationship between data, which restricts the accuracy and generalization ability of the prediction model. In contrast, although machine learning methods can automatically extract features and learn patterns, they may face difficulties in processing large data sets and high-dimensional sparse data, and require more efficient feature selection and dimensionality reduction methods. Therefore, how to improve the accuracy of flight delay prediction has become a technical issue that cannot be underestimated.

[0047] Based on this, an embodiment of the present application provides a method for predicting the level of flight delays. The long short-term memory network layer is used to extract temporal features and effectively capture the time dependency in flight delay data. The convolutional neural network layer is responsible for extracting spatial features and mining key spatial information related to delays from complex flight data. The capsule network layer is introduced to achieve a deep fusion of temporal features and spatial features, and further mine the intrinsic connections and correlations between temporal and spatial features, so that the temporal and spatial features closely related to flight delays can be comprehensively and deeply analyzed and processed, and the level of flight delays can be accurately predicted.

[0048] See also Figure 1 , Figure 1 This is a flow chart of a flight delay level prediction method provided in an embodiment of the present application. Figure 1 As shown in , the flight delay level prediction method provided by the embodiment of the present application includes:

[0049] S101: Acquire data information of a target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information.

[0050] In this step, the data information of the target airline is obtained after data preprocessing.

[0051] Here, the data information includes flight information (such as flight number, airline, aircraft type, flight schedule, delay time, etc.), meteorological data information (such as weather conditions, wind speed, wind direction, visibility, etc.), airport resource distribution information (such as runway, boarding gate, parking position, etc.), real-time operation data information (such as ADS-B positioning, push-out sequence), air traffic control information (such as release flow, release time slot, airspace resource allocation), all data will be integrated into one table to ensure data integrity and consistency.

[0052] The original data set needs to be preprocessed to ensure its quality and adapt to the needs of model input. Data preprocessing mainly includes data cleaning, such as removing duplicate, erroneous or incomplete records; data conversion, such as embedding text into vector format and performing timestamp conversion on time fields; and feature engineering, which is to extract meaningful features based on domain knowledge.

[0053] S102: Inputting the data information related to the timing in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, performing feature processing on the data information related to the timing, and outputting the timing features of the flight.

[0054] In this step, the data information related to the time series in the data information after data preprocessing is input into the long short-term memory network layer of the pre-trained flight delay level prediction model, the data information related to the time series is feature processed, and the time series features of the flight are output.

[0055] Among them, in the flight delay level prediction model, the long short-term memory network layer (LSTM) is responsible for processing time series data. It receives time series data such as flight schedule data, weather condition change sequences in meteorological data, flight release time slots, flight launch order, etc. By capturing the long-term dependencies and time series patterns in the data, it deeply explores the impact of time factors on flight delays and outputs a set of vectors that can be interpreted as a set of vectors representing the possibility of flight delays.

[0056] In a possible implementation manner, the data information related to time series in the data information after data preprocessing is input into the long short-term memory network layer of the pre-trained flight delay level prediction model, and feature processing is performed on the data information related to time series to output the time series features of the flight, including:

[0057] A: In the long short-term memory network layer, feature processing is performed on the first feature of the memory unit output of the previous time step, the second feature of the hidden unit output of the previous time step, and the time series-related data information of the current time step to determine the time series feature of the current time step.

[0058] Here, in the long short-term memory network layer, feature processing is performed on the first feature of the memory unit output of the previous time step, the second feature of the hidden unit output of the previous time step, and the time series-related data information of the current time step to determine the time series feature of the current time step.

[0059] Among them, in the LSTM network layer The calculation process in is as follows:

[0060]

[0061] in, yes The temporal characteristics of the time step, The first feature of the memory unit output at the previous time step, is the second feature output by the hidden layer unit, It is the time series related data information of the previous time step.

[0062] B: Concatenate the time series features of each time step to generate the time series features of the flight.

[0063] Here, the time series features at each time step are concatenated to generate the time series features of the flight.

[0064] S103: Inputting the space-related data information in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the space-related data information, and outputting the spatial characteristics of the flight.

[0065] In this step, the space-related data information in the data information after data preprocessing is input into the convolutional neural network layer of the flight delay level prediction model, and the space-related data information is convolutionally processed to output the spatial characteristics of the flight.

[0066] Here, the convolutional neural network layer (CNN) focuses on processing spatial data. It receives features with spatial characteristics such as airport resource distribution (aircraft positions, runways, boarding gates, etc.), airspace resource allocation in air traffic control information, ADS-B positioning, etc., and uses the convolution layer to extract the spatial structure information of these data. CNN can identify spatial features that have a key impact on flight punctuality and output a set of spatial feature vectors, providing important spatial dimension input for the model.

[0067] Among them, the CNN module is responsible for processing data with spatial characteristics. Through the operations of convolutional layers and pooling layers, it can extract local spatial features of the input data and reduce the dimension of the data. These processed spatial features will also be passed to the capsule network module for fusion with temporal features.

[0068] Here, it is assumed that the matrix composed of spatial features is , after CNN processing, the spatial features are obtained The process is as follows:

[0069]

[0070] in, Represents nonlinear Relu The convolution operation of the activation function, represents the weight, is a bias term. In this scheme, convolution kernels of multiple sizes are used for convolution operations to capture spatial features from different granularities.

[0071] S104: Input the temporal characteristics of the flight and the spatial characteristics of the flight into the capsule network layer of the flight delay level prediction model, process the temporal characteristics of the flight and the spatial characteristics of the flight based on a dynamic routing processing mechanism, and predict the flight delay level of each flight of the target airline.

[0072] In this step, the flight's temporal characteristics and the flight's spatial characteristics are input into the capsule network layer of the flight delay level prediction model. The flight's temporal characteristics and the flight's spatial characteristics are processed according to the dynamic routing processing mechanism to predict the flight delay level of each flight of the target airline.

[0073] Here, the feature vectors processed by LSTM and CNN are further passed to the capsule network layer. As an advanced neural network structure, the capsule network layer has a strong representation learning ability. It can capture the hierarchical relationship and association information of features, and deeply explore the intrinsic connection between temporal features and spatial features and their joint impact on flight delays. Through further processing by the capsule network, the model can more comprehensively understand the complex mechanism of flight delays. After processing by a unique dynamic routing mechanism, the capsule network outputs a vector corresponding to the delay category. The index with the maximum confidence probability in the vector is the predicted flight delay category, providing strong decision support for airlines and passengers.

[0074] In a possible implementation manner, the temporal characteristics of the flight and the spatial characteristics of the flight are input into the capsule network layer of the flight delay level prediction model, and the temporal characteristics of the flight and the spatial characteristics of the flight are processed based on a dynamic routing processing mechanism to predict the flight delay level of each flight of the target airline, including:

[0075] a: In the capsule network layer, the temporal features of the flight and the spatial features of the flight are fused to determine the fused features of the flight.

[0076] Here, the temporal features of the flight and the temporal features of the flight are fused in the capsule network layer to determine the fused features of the flight.

[0077] b: The main capsule sub-network layer and multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline; wherein the number of the label capsule sub-network layers is consistent with the number of flight delay levels.

[0078] Here, the main capsule sub-network layer and multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight according to the dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline.

[0079] In a possible implementation manner, the main capsule sub-network layer and the multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline, including:

[0080] (1): The main capsule sub-network layer performs convolution processing on the fused features of the flight based on the activation function and outputs a feature vector.

[0081] Here, the feature vector output by the main capsule sub-network layer is determined by the following formula:

[0082]

[0083] in, is the feature vector output by the main capsule sub-network layer, is the fused feature of the flight, represents a convolution operation with a nonlinear Squash activation function, which can limit the length of the vector output to between 0 and 1 to represent the probability of each class, represents the weight, is the bias term.

[0084] (2): For each of the label capsule sub-network layers, the label capsule sub-network layer determines the predicted probability of flight delay level corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer.

[0085] Here, for each of the label capsule sub-network layers, the label capsule sub-network layer determines the predicted probability of flight delay level corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer.

[0086] In a possible implementation manner, for each of the label capsule sub-network layers, the label capsule sub-network layer determines the flight delay level prediction probability corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer, including:

[0087] Based on the product of the feature vector and the weight matrix of the label capsule sub-network layer, a prediction vector is determined; based on the prediction vector and the weight value between the main capsule sub-network layer and the label capsule sub-network layer, the flight delay level prediction probability corresponding to the label capsule sub-network layer is determined.

[0088] Here, the predicted probability of the flight delay level corresponding to the label capsule sub-network layer is determined by the following formula:

[0089]

[0090]

[0091] in, For the j The predicted probability of flight delay level corresponding to the label capsule sub-network layer, is the feature vector of the output of the main capsule layer Multiply by the weight matrix The calculated prediction vector, It is the weight value between the main capsule sub-network layer and the label capsule sub-network layer related to the entire iterative process of dynamic routing. Usually, the weight value represents the connection strength between two capsules in adjacent layers. By Routing Function calculation can ensure The sum of all coupling coefficients of the label capsule sub-network layers is 1. t Label capsules Classification is performed through the above dynamic routing, where represents the number of delay levels in the scenario, The value of is 5.

[0092] (3): Based on the flight delay level prediction probability corresponding to each label capsule sub-network layer, a flight delay level prediction vector is determined, and the index of the maximum flight delay level prediction probability in the flight delay level prediction vector is used as the predicted flight delay level.

[0093] Here, the flight delay level prediction vector is determined according to the flight delay level prediction probability corresponding to each label capsule sub-network layer, and the index of the maximum flight delay level prediction probability in the flight delay level prediction vector is used as the predicted flight delay level.

[0094] Among them, the flight delay level is divided into five categories, namely no delay, slight delay, moderate delay, high delay and severe delay. If the flight delay level prediction vector obtained by a flight prediction result is , where the third position has the highest probability, the flight delay prediction result is the third level of moderate delay.

[0095] In a possible implementation manner, the flight delay level prediction model is trained by the following steps:

[0096] I: Obtain sample data information and flight delay level label information corresponding to historical flights in the sample data information.

[0097] Here, the sample data information and the flight delay level label information corresponding to the historical flights in the sample data information are obtained.

[0098] II: Input the time-related sample data information in the sample data information into the initial long short-term memory network layer of the initial model to output the time-series features of the historical flights, and input the space-related data information in the sample data information into the initial convolutional neural network layer of the initial model to output the spatial features of the historical flights.

[0099] Here, the sample data information related to time series in the sample data information is input into the initial long short-term memory network layer of the initial model to output the time series characteristics of historical flights, and the data information related to space in the sample data information is input into the initial convolutional neural network layer of the initial model to output the spatial characteristics of historical flights.

[0100] Here, the processing process of the initial long short-term memory network layer is consistent with the processing process of the long short-term memory network layer, and the processing process of the initial convolutional neural network layer is consistent with the processing process of the convolutional neural network layer, which will not be repeated in this part.

[0101] III: Input the temporal features of the historical flight and the spatial features of the historical flight into the initial capsule network layer of the initial model, and output the flight delay level prediction vector of the historical flight.

[0102] Here, the temporal features of historical flights and the spatial features of historical flights are input into the initial capsule network layer of the initial model, and the flight delay level prediction vector of the historical flights is output.

[0103] IV: Determine the loss value of the initial model based on the flight delay level label information and the flight delay level prediction vector of the historical flight based on the boundary loss function; if the loss value does not change continuously during the training cycle, stop training the initial model and use the initial model as the flight delay level prediction model; if the loss value continues to change during the training cycle, adjust the network parameters of the initial long short-term memory network layer, the initial convolutional neural network layer and the initial capsule network layer.

[0104] Here, the loss value of the initial model is determined according to the boundary loss function for the flight delay level label information and the flight delay level prediction vector of the historical flights. If the loss value does not change continuously during the training cycle, the training of the initial model is stopped, and the initial model is used as the flight delay level prediction model. If the loss value continues to change during the training cycle, the network parameters of the initial long short-term memory network layer, the initial convolutional neural network layer, and the initial capsule network layer are adjusted, and the adjusted initial model is continued to be trained until the loss value does not change continuously, then the training of the initial model is stopped.

[0105] In a possible implementation, the loss value of the initial model is determined by the following formula:

[0106]

[0107] in, is the loss value, t is the number of flight delay levels, Indicates Does the flight delay level label information exist? is the upper threshold, is the lower threshold, is the flight delay level prediction vector of historical flights. j Sub-label capsules The corresponding modulus length of the predicted probability of flight delay level, is a fixed value, j and t The number is consistent.

[0108] Here, during the model training phase, a series of key parameters are dynamically adjusted based on the model's predicted performance on the validation set to continuously optimize the model's performance. The range of adjusted parameters is wide, covering the number of hidden layer units in the LSTM module, the convolution kernel size of the CNN module, the choice of activation function, and the kernel size of the capsule network. In addition, I also made detailed adjustments to hyperparameters such as learning rate, batch size, number of training rounds, and optimization algorithm. Through continuous iterative training and parameter optimization, the best configuration of the model is found to achieve the best prediction performance. This process ensures that the model can effectively learn and adapt to the spatiotemporal characteristics of the data, thereby providing support for subsequent prediction tasks.

[0109] In this solution, considering that flight delay level prediction is a classification prediction task, recall, precision, and F1-Score are selected as evaluation indicators to comprehensively and accurately measure the prediction performance of the model. Assume that TP is a positive sample that is judged as positive, TN is a negative sample that is judged as negative, FP is a negative sample that is judged as positive, and FN is a positive sample that is judged as negative. is the probability of being predicted as a positive sample among the samples that are actually positive. The calculation process is as follows:

[0110]

[0111] Precision is the probability that all samples predicted as positive are actually positive samples, representing the accuracy of prediction in the positive sample results. The calculation process is as follows:

[0112]

[0113] The F1 score can be understood as the recall rate And precision The harmonic mean combines the results of precision and recall, and its calculation process is as follows:

[0114]

[0115] This solution adopts a hybrid deep learning model, which innovatively integrates three different neural network architectures: long short-term memory network (LSTM), convolutional neural network (CNN) and capsule network. LSTM is responsible for capturing long-term dependencies in time series data, CNN focuses on extracting spatial features, and capsule network achieves deep fusion of time series features and spatial features through its unique dynamic routing algorithm. In traditional deep learning models, feature fusion is usually achieved by simple splicing or weighted summation, which cannot fully capture the intrinsic connection and hierarchical structure between features. The present invention introduces capsule network, and uses its unique dynamic routing algorithm to establish connections between features at different levels, thereby achieving deep fusion of features. This fusion mechanism not only takes into account the existence or non-existence of features, but also the relative relationship and importance between features, thereby more accurately mining the correlation between spatiotemporal features.

[0116] An embodiment of the present application provides a flight delay level prediction method, which includes: obtaining data information of a target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information; inputting the data information related to time series in the data information after data preprocessing into the long short-term memory network layer of a pre-trained flight delay level prediction model, performing feature processing on the data information related to time series, and outputting the time series features of the flight; inputting the data information related to space in the data information after data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the data information related to space, and outputting the spatial features of the flight; inputting the time series features of the flight and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, processing the time series features of the flight and the spatial features of the flight based on a dynamic routing processing mechanism, and predicting the flight delay level of each flight of the target airline. The long short-term memory network layer is used to extract temporal features and effectively capture the time dependency in flight delay data. The convolutional neural network layer is responsible for extracting spatial features and mining key spatial information related to delays from complex flight data. The capsule network layer is introduced to achieve a deep fusion of temporal and spatial features, further mining the intrinsic connections and correlations between temporal and spatial features, so that the temporal and spatial features closely related to flight delays can be comprehensively and deeply analyzed and processed, and the flight delay level can be accurately predicted.

[0117] See also Figure 2 , Figure 3 , Figure 2 One of the structural schematic diagrams of a flight delay level prediction device provided in an embodiment of the present application; Figure 3 This is a second structural diagram of a flight delay level prediction device provided in an embodiment of the present application. Figure 2 As shown in , the flight delay level prediction device 200 includes:

[0118] The acquisition module 210 is used to acquire the data information of the target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information;

[0119] The time series feature processing module 220 is used to input the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, perform feature processing on the data information related to the time series, and output the time series features of the flight;

[0120] The spatial feature processing module 230 is used to input the spatially related data information in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, perform convolution processing on the spatially related data information, and output the spatial features of the flight;

[0121] The feature depth processing module 240 is used to input the temporal features of the flight and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, process the temporal features of the flight and the spatial features of the flight based on the dynamic routing processing mechanism, and predict the flight delay level of each flight of the target airline.

[0122] Furthermore, the time series feature processing module 220 is used to input the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, perform feature processing on the data information related to the time series, and output the time series features of the flight. The time series feature processing module 220 is specifically used to:

[0123] In the long short-term memory network layer, feature processing is performed on a first feature output by a memory unit at a previous time step, a second feature output by a hidden unit at a previous time step, and data information related to time series at a current time step to determine a time series feature at the current time step;

[0124] The time series features of each time step are concatenated to generate the time series features of the flight.

[0125] Furthermore, when the feature depth processing module 240 is used to input the temporal features of the flight and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, and processes the temporal features of the flight and the spatial features of the flight based on the dynamic routing processing mechanism to predict the flight delay level of each flight of the target airline, the feature depth processing module 240 is specifically used to:

[0126] In the capsule network layer, the temporal features of the flight and the spatial features of the flight are fused to determine the fused features of the flight;

[0127] The main capsule sub-network layer and multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline; wherein the number of the label capsule sub-network layers is consistent with the number of flight delay levels.

[0128] Further, when the feature depth processing module 240 performs dynamic routing processing on the fused features of the flight based on the dynamic routing processing mechanism in the main capsule sub-network layer and the multiple label capsule sub-network layers in the capsule network layer and outputs the flight delay level of each flight of the target airline, the feature depth processing module 240 is specifically used to:

[0129] The main capsule sub-network layer performs convolution processing on the fused features of the flight based on the activation function and outputs a feature vector;

[0130] For each of the label capsule sub-network layers, the label capsule sub-network layer determines the flight delay level prediction probability corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer;

[0131] A flight delay level prediction vector is determined based on the flight delay level prediction probability corresponding to each label capsule sub-network layer, and the index of the maximum flight delay level prediction probability in the flight delay level prediction vector is used as the predicted flight delay level.

[0132] Further, such as Figure 3 As shown, the flight delay level prediction device 200 further includes a model training module 250, and the model training module 250 is used to train the flight delay level prediction model through the following steps:

[0133] Obtaining sample data information and flight delay level label information corresponding to historical flights in the sample data information;

[0134] Input the time-series-related sample data information in the sample data information into the initial long short-term memory network layer of the initial model to output the time-series features of the historical flights, and input the space-related data information in the sample data information into the initial convolutional neural network layer of the initial model to output the space features of the historical flights;

[0135] Input the temporal features of the historical flight and the spatial features of the historical flight into the initial capsule network layer of the initial model, and output the flight delay level prediction vector of the historical flight;

[0136] The loss value of the initial model is determined based on the flight delay level label information and the flight delay level prediction vector of the historical flight based on the boundary loss function; if the loss value does not change continuously during the training cycle, the training of the initial model is stopped, and the initial model is used as the flight delay level prediction model; if the loss value continues to change during the training cycle, the network parameters of the initial long short-term memory network layer, the initial convolutional neural network layer, and the initial capsule network layer are adjusted.

[0137] Furthermore, the model training module 250 determines the loss value of the initial model by the following formula:

[0138]

[0139] in, is the loss value, t is the number of flight delay levels, Indicates Does the flight delay level label information exist? is the upper threshold, is the lower threshold, is the flight delay level prediction vector of historical flights. j Sub-label capsules The corresponding modulus length of the predicted probability of flight delay level, is a fixed value, j and t The number is consistent.

[0140] An embodiment of the present application provides a flight delay level prediction device, the flight delay level prediction device comprising: an acquisition module, used to acquire data information of a target airline after data preprocessing; wherein the data information comprises flight information, meteorological data information, aviation real-time operation data information and air traffic control information; a temporal feature processing module, used to input the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of a pre-trained flight delay level prediction model, perform feature processing on the data information related to the time series, and output the temporal features of the flight; a spatial feature processing module, used to input the data information related to the space in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, perform convolution processing on the data information related to the space, and output the spatial features of the flight; a feature depth processing module, used to input the temporal features of the flight and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, process the temporal features of the flight and the spatial features of the flight based on the dynamic routing processing mechanism, and predict the flight delay level of each flight of the target airline. The long short-term memory network layer is used to extract temporal features and effectively capture the time dependency in flight delay data. The convolutional neural network layer is responsible for extracting spatial features and mining key spatial information related to delays from complex flight data. The capsule network layer is introduced to achieve a deep fusion of temporal and spatial features, further mining the intrinsic connections and correlations between temporal and spatial features, so that the temporal and spatial features closely related to flight delays can be comprehensively and deeply analyzed and processed, and the flight delay level can be accurately predicted.

[0141] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .

[0142] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The specific implementation of the steps of the flight delay level prediction method in the method embodiment shown can be found in the method embodiment, which will not be repeated here.

[0143] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1The specific implementation of the steps of the flight delay level prediction method in the method embodiment shown can be found in the method embodiment, which will not be repeated here.

[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0145] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0148] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0149] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A flight delay level prediction method, characterized in that: The flight delay level prediction method comprises: Obtaining data information of the target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information; Inputting the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, performing feature processing on the data information related to the time series, and outputting the time series features of the flight; Inputting the space-related data information in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the space-related data information, and outputting the spatial features of the flight; Inputting the temporal characteristics of the flight and the spatial characteristics of the flight into the capsule network layer of the flight delay level prediction model, processing the temporal characteristics of the flight and the spatial characteristics of the flight based on a dynamic routing processing mechanism, and predicting the flight delay level of each flight of the target airline; The step of inputting the time series characteristics and the spatial characteristics of the flight into the capsule network layer of the flight delay level prediction model, processing the time series characteristics and the spatial characteristics of the flight based on a dynamic routing processing mechanism, and predicting the flight delay level of each flight of the target airline includes: In the capsule network layer, the temporal features of the flight and the spatial features of the flight are fused to determine the fused features of the flight; The main capsule sub-network layer and multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline; wherein the number of the label capsule sub-network layers is consistent with the number of flight delay levels.

2. The flight delay level prediction method according to claim 1, characterized in that: The data information related to the time series in the data information after the data preprocessing is input into the long short-term memory network layer of the pre-trained flight delay level prediction model, the data information related to the time series is subjected to feature processing, and the time series features of the flight are output, including: In the long short-term memory network layer, feature processing is performed on a first feature output by a memory unit at a previous time step, a second feature output by a hidden unit at a previous time step, and data information related to time series at a current time step to determine a time series feature at the current time step; The time series features of each time step are concatenated to generate the time series features of the flight.

3. The flight delay level prediction method according to claim 1, characterized in that: The main capsule sub-network layer and the multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline, including: The main capsule sub-network layer performs convolution processing on the fused features of the flight based on the activation function and outputs a feature vector; For each of the label capsule sub-network layers, the label capsule sub-network layer determines the flight delay level prediction probability corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer; A flight delay level prediction vector is determined based on the flight delay level prediction probability corresponding to each label capsule sub-network layer, and the index of the maximum flight delay level prediction probability in the flight delay level prediction vector is used as the predicted flight delay level.

4. The flight delay level prediction method according to claim 3, characterized in that: For each of the label capsule sub-network layers, the label capsule sub-network layer determines the flight delay level prediction probability corresponding to the label capsule sub-network layer based on the feature vector, the weight matrix of the label capsule sub-network layer, and the weight value between the main capsule sub-network layer and the label capsule sub-network layer, including: Determine a prediction vector based on the product of the feature vector and the weight matrix of the label capsule sub-network layer; Based on the prediction vector and the weight value between the main capsule sub-network layer and the label capsule sub-network layer, the flight delay level prediction probability corresponding to the label capsule sub-network layer is determined.

5. The flight delay level prediction method according to claim 1, characterized in that: The flight delay level prediction model is trained by the following steps: Obtaining sample data information and flight delay level label information corresponding to historical flights in the sample data information; Input the time-series-related sample data information in the sample data information into the initial long short-term memory network layer of the initial model to output the time-series features of the historical flights, and input the space-related data information in the sample data information into the initial convolutional neural network layer of the initial model to output the space features of the historical flights; Input the temporal features of the historical flight and the spatial features of the historical flight into the initial capsule network layer of the initial model, and output the flight delay level prediction vector of the historical flight; The loss value of the initial model is determined based on the flight delay level label information and the flight delay level prediction vector of the historical flight based on the boundary loss function; if the loss value does not change continuously during the training cycle, the training of the initial model is stopped, and the initial model is used as the flight delay level prediction model; if the loss value continues to change during the training cycle, the network parameters of the initial long short-term memory network layer, the initial convolutional neural network layer, and the initial capsule network layer are adjusted.

6. The flight delay level prediction method according to claim 5, characterized in that: The loss value of the initial model is determined by the following formula: in, is the loss value, t is the number of flight delay levels, Indicates Does the flight delay level label information exist? is the upper threshold, is the lower threshold, is the flight delay level prediction vector of historical flights. j Sub-label capsules The corresponding modulus length of the predicted probability of flight delay level, is a fixed value, j and t The number is consistent.

7. A flight delay level prediction device, characterized in that: The flight delay level prediction device comprises: An acquisition module is used to acquire the data information of the target airline after data preprocessing; wherein the data information includes flight information, meteorological data information, aviation real-time operation data information and air traffic control information; A time series feature processing module, used to input the data information related to the time series in the data information after the data preprocessing into the long short-term memory network layer of the pre-trained flight delay level prediction model, perform feature processing on the data information related to the time series, and output the time series features of the flight; A spatial feature processing module, used for inputting the data information related to space in the data information after the data preprocessing into the convolutional neural network layer of the flight delay level prediction model, performing convolution processing on the data information related to space, and outputting the spatial features of the flight; A feature depth processing module, used to input the temporal features and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, process the temporal features and the spatial features of the flight based on a dynamic routing processing mechanism, and predict the flight delay level of each flight of the target airline; The feature depth processing module is used to input the time series features and the spatial features of the flight into the capsule network layer of the flight delay level prediction model, process the time series features and the spatial features of the flight based on the dynamic routing processing mechanism, and predict the flight delay level of each flight of the target airline. The feature depth processing module is specifically used to: In the capsule network layer, the temporal features of the flight and the spatial features of the flight are fused to determine the fused features of the flight; The main capsule sub-network layer and multiple label capsule sub-network layers in the capsule network layer perform dynamic routing processing on the fused features of the flight based on a dynamic routing processing mechanism, and output the flight delay level of each flight of the target airline; wherein the number of the label capsule sub-network layers is consistent with the number of flight delay levels.

8. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the flight delay level prediction method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the flight delay level prediction method according to any one of claims 1 to 6 are executed.