Aircraft trajectory prediction model training method and aircraft trajectory prediction method
By normalizing the aircraft trajectory sequence samples based on mean and variance, and using the self-attention module to extract trajectory attention samples, the problem of feature loss caused by data compression in the existing technology is solved, and the accuracy of the aircraft trajectory prediction model is improved. Accuracy and reliability.
Patent Information
- Application Number
- CN202410970597.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The existing aircraft trajectory prediction model results in data compression through global normalization processing, resulting in missing sample features, low data quality, reduced computer performance, and low model prediction accuracy and reliability.
By obtaining trajectory sequence samples, normalize them according to the trajectory attribute class mean and class variance, retain the time stage and regional characteristics, and input the self-attention module to obtain trajectory attention samples and train the prediction model.
It improves data quality, improves computer performance, makes prediction results more interpretable and reliable, and improves the accuracy of prediction models.
Smart Images

Figure CN118520249B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of artificial intelligence technology and aircraft technology, and more specifically to a prediction model training method for aircraft trajectories and a prediction method for aircraft trajectories. Background Art
[0002] With the rapid development of science and technology, aircraft trajectories can be predicted to ensure the interval and safe distance between aircraft, avoid mid-air collisions and dangerous situations, and provide data reference for airlines and pilots to optimize flight paths and route selection.
[0003] However, the models used for aircraft trajectory prediction usually perform global normalization on the overall sample data, which causes data compression and loss of sample features, resulting in low data quality, reduced computer performance, and low prediction accuracy and reliability of the model. Summary of the invention
[0004] In view of the above problems, the present invention provides a prediction model training method for aircraft trajectory and a prediction method for aircraft trajectory.
[0005] According to a first aspect of the present invention, there is provided a method for training a prediction model of an aircraft trajectory, comprising:
[0006] A plurality of trajectory sequence samples are obtained, wherein the trajectory sequence samples are composed of a trajectory attribute data set of at least one time point arranged based on a time series relationship, and the trajectory attribute data set includes at least one type of trajectory attribute data; a plurality of trajectory attribute data are normalized according to a trajectory attribute class mean and a trajectory attribute class variance of the trajectory sequence samples to obtain a plurality of normalized samples, wherein the trajectory attribute class mean and the trajectory attribute class variance are both calculated based on the same type of trajectory attribute data of a plurality of trajectory attribute data sets in the trajectory sequence samples; a plurality of normalized samples are input into a self-attention module to obtain a plurality of trajectory attention samples representing the correlation between the plurality of trajectory attribute data, wherein the prediction model includes a self-attention module; and a prediction model is trained using the plurality of trajectory attention samples.
[0007] A second aspect of the present invention provides a method for predicting an aircraft trajectory, the method comprising:
[0008] The trajectory sequence of the aircraft is input into the trained prediction model to obtain a predicted trajectory sequence, wherein the trained prediction model is trained according to any one of the above methods.
[0009] According to an embodiment of the present invention, by obtaining multiple trajectory sequence samples, the trajectory sequence samples are composed of trajectory attribute data sets of at least one time point arranged based on a time series relationship, and the trajectory attribute data sets include at least one type of trajectory attribute data. Since the trajectory attribute class mean and trajectory attribute class variance are calculated based on the same type of trajectory attribute data of multiple trajectory attribute data sets in the trajectory sequence samples, the multiple trajectory attribute data are normalized according to the trajectory attribute class mean and trajectory attribute class variance to obtain multiple normalized samples, and the normalization of a single trajectory sequence sample is realized to retain the time stage, region and other characteristics of the single trajectory sequence sample, improve data quality, and improve computer operation performance. Then, the multiple normalized samples are input into the self-attention module of the prediction model to obtain multiple trajectory attention samples that can characterize the correlation between multiple trajectory attribute data, so that the prediction result is more interpretable and the reliability of the prediction model is improved. In this way, the prediction accuracy of the prediction model trained using multiple trajectory attention samples is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0011] Figure 1 An application scenario diagram of a prediction model training method for aircraft trajectories according to an embodiment of the present invention is shown;
[0012] Figure 2 A flowchart of a prediction model training method for aircraft trajectories according to an embodiment of the present invention is shown;
[0013] Figure 3 An architectural diagram of an Inivformer network model according to an embodiment of the present invention is shown;
[0014] Figure 4 A flow chart showing a method for predicting an aircraft trajectory according to an embodiment of the present invention is shown;
[0015] Figure 5 A schematic diagram showing the steps of predicting an aircraft trajectory according to an embodiment of the present invention is shown;
[0016] Figure 6 A block diagram of an electronic device suitable for implementing a prediction model training method for aircraft trajectories according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0017] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0018] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0019] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0020] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0021] The models used for aircraft trajectory prediction usually perform global normalization on the overall sample data without considering the characteristics of individual sample data, which results in missing sample features due to data compression, low data quality, reduced computer performance, and low model prediction accuracy.
[0022] An embodiment of the present invention provides a method for training a prediction model of an aircraft trajectory, comprising: obtaining a plurality of trajectory sequence samples, the trajectory sequence samples being composed of a trajectory attribute data set of at least one time point arranged based on a time series relationship, the trajectory attribute data set comprising at least one type of trajectory attribute data; normalizing the plurality of trajectory attribute data according to a trajectory attribute class mean and a trajectory attribute class variance of the trajectory sequence samples to obtain a plurality of normalized samples, the trajectory attribute class mean and the trajectory attribute class variance being both calculated based on the same type of trajectory attribute data of a plurality of trajectory attribute data sets in the trajectory sequence samples; and training a prediction model using the plurality of normalized samples.
[0023] Figure 1The application scenario diagram of the aircraft trajectory prediction model training method according to an embodiment of the present invention is schematically shown.
[0024] like Figure 1 As shown, the application scenario 100 according to this embodiment may include an aircraft 101, a network 102, and a server 103. The network 102 is used to provide a medium for a communication link between the aircraft 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0025] The aircraft 101 interacts with the server 103 via the network 102 to receive or send messages, etc. The aircraft 101 may be equipped with sensors to obtain a trajectory attribute data set at at least one time point, wherein the trajectory attribute data set includes at least one trajectory attribute data.
[0026] The aircraft 101 may be equipped with ADS-B (Automatic Dependent Surveillance-Broadcast) equipment to send trajectory attribute data of the aircraft 101 to the server 103. The trajectory attribute data may be information such as position, altitude, speed, heading, and identification number.
[0027] The server 103 may be a server that provides various services, such as a background management server (only as an example) that uses the trajectory attribute data of the aircraft 101 to provide support. The background management server may analyze the received trajectory attribute data and feed back the processing results (such as predicting the flight trajectory based on the trajectory attribute data) to the aircraft 101. At the same time, the processing results may also be sent to the terminal device for user reference. The terminal device may be an electronic device such as a mobile phone or a computer with an electronic display screen.
[0028] It should be noted that the prediction model training method for the aircraft trajectory provided in the embodiment of the present invention can generally be executed by the server 103. Accordingly, the prediction model training device for the aircraft trajectory provided in the embodiment of the present invention can generally be set in the server 103. The prediction model training method for the aircraft trajectory provided in the embodiment of the present invention can also be executed by a server or server cluster that is different from the server 103 and can communicate with the aircraft 101 and / or the server 103. Correspondingly, the prediction model training device for the aircraft trajectory provided in the embodiment of the present invention can also be set in a server or server cluster that is different from the server 103 and can communicate with the aircraft 101 and / or the server 103.
[0029] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0030] Figure 2 The flowchart of the aircraft trajectory prediction model training method according to an embodiment of the present invention is schematically shown.
[0031] like Figure 2 As shown, the aircraft trajectory prediction model training method of this embodiment includes operations S210 to S240.
[0032] In operation S210 , a plurality of trajectory sequence samples are acquired.
[0033] According to an embodiment of the present invention, the trajectory sequence sample is composed of a trajectory attribute data set of at least one time point arranged in a time series relationship, and the trajectory attribute data set includes at least one type of trajectory attribute data.
[0034] According to an embodiment of the present invention, the temporal relationship may represent the early and late relationship between time points. For example, the trajectory sequence samples may be arranged in order from early to late time, that is, in the order of 20 seconds before and 20 seconds after.
[0035] According to the embodiment of the present invention, there is no specific limitation on the time points, and the time series relationship may also be an early and late relationship between the time points of collecting data, or an early and late relationship between the time points of generating data, etc.
[0036] According to an embodiment of the present invention, the trajectory attribute data may be timestamp information, flight geographic information, flight position information, aircraft fuselage operation information, aircraft attribute information, etc. sent by the aircraft to a server that executes a prediction model training method for aircraft trajectories.
[0037] For example, flight geographic information may include flight longitude and latitude. Flight position information may include flight altitude and heading angle. Aircraft fuselage operation information may include pressure altitude, aircraft component temperature, ground speed, vertical speed, etc. Aircraft attribute information may include aircraft unique identification, flight number, etc.
[0038] For example, the trajectory sequence sample can be composed of trajectory attribute data sets of five time points arranged based on the temporal relationship. The five time points can be 9:10:20, 9:10:40, 9:11:00, 9:11:20 and 9:11:40. The trajectory attribute data sets corresponding to the five time points are A, B, C, D and E. The temporal relationship can be arranged from early to late, and the trajectory sequence sample can be {A, B, C, D, E}.
[0039] In operation S220 , a plurality of trajectory attribute data are normalized according to the trajectory attribute class mean and the trajectory attribute class variance of the trajectory sequence samples to obtain a plurality of normalized samples.
[0040] According to an embodiment of the present invention, both the trajectory attribute class mean and the trajectory attribute class variance are calculated based on the same type of trajectory attribute data of multiple trajectory attribute data sets in the trajectory sequence sample.
[0041] For example, the trajectory attribute data may be ground speed, and all ground speeds in the trajectory sequence samples {A, B, C, D, E} may be averaged to obtain the ground speed mean, that is, the trajectory attribute class mean.
[0042] According to an embodiment of the present invention, the trajectory attribute class variance may be calculated based on the trajectory attribute class mean.
[0043] According to an embodiment of the present invention, the trajectory attribute class mean and trajectory attribute class variance of the same type of trajectory sequence samples are normalized to the same type of trajectory attribute data, and then the trajectory attribute data after multiple normalization processes are determined as the data set in the normalized sample.
[0044] The above operation S220 is not to simply perform global normalization on the trajectory sequence samples, but to perform normalization on the statistical characteristics of the trajectory attribute data in the trajectory sequence samples, which can reduce feature loss caused by compression of data changes.
[0045] There are obvious differences in the trajectory attribute data between the trajectory sequence samples of the aircraft in the climbing phase and the trajectory sequence samples in the descending phase. If the trajectory sequence samples are simply globally normalized, the difference in trajectory attribute data becomes smaller, and the prediction accuracy of the prediction model obtained by training the samples after global normalization is low.
[0046] If the mean and variance of the same type of trajectory attribute class in the trajectory sequence samples of the climbing phase or the trajectory sequence samples of the descending phase are normalized for the same type of trajectory attribute data, the obtained normalized samples can retain the characteristics of the climbing phase or the descending phase.
[0047] The above is not limited to the obvious differences between the trajectory sequence samples of the aircraft in the climbing phase and the descending phase, and may also be trajectory sequence samples in different regions, etc. The above operation S220 can retain the characteristics of a single sample.
[0048] In operation S230, the plurality of normalized samples are input into a self-attention module to obtain a plurality of trajectory attention samples representing the correlation between the plurality of trajectory attribute data.
[0049] According to an embodiment of the present invention, the prediction model includes a self-attention module. The self-attention module can be constructed based on the self-attention mechanism between attributes. The self-attention mechanism between attributes can obtain the correlation between different types of trajectory attribute data in the same sample.
[0050] Usually the self-attention mechanism generates weights for the relationship between each time point in the homogenized sample and other time points to obtain the mutual influence between time steps.
[0051] The self-attention module of the embodiment of the present invention can mine the relationship between trajectory attribute data in the sample and assign a greater weight to highly correlated trajectory attribute data, making the prediction result more interpretable.
[0052] In operation S240 , a prediction model is trained using a plurality of trajectory attention samples.
[0053] According to an embodiment of the present invention, the prediction model may be a neural network model, and the training method may be supervised learning, unsupervised learning, semi-supervised learning, end-to-end learning, etc.
[0054] According to an embodiment of the present invention, by obtaining multiple trajectory sequence samples, the trajectory sequence samples are composed of trajectory attribute data sets of at least one time point arranged based on a time series relationship, and the trajectory attribute data sets include at least one trajectory attribute data. Since the trajectory attribute class mean and trajectory attribute class variance are calculated based on the same type of trajectory attribute data of multiple trajectory attribute data sets in the trajectory sequence samples, the multiple trajectory attribute data are normalized according to the trajectory attribute class mean and trajectory attribute class variance to obtain multiple normalized samples, and the normalization of a single trajectory sequence sample is realized to retain the time stage, region and other characteristics of the single trajectory sequence sample, improve data quality, and improve computer operation performance. Then, the multiple normalized samples are input into the self-attention module of the prediction model to obtain multiple trajectory attention samples that can characterize the correlation between multiple trajectory attribute data, so that the prediction result is more interpretable and the reliability of the prediction model is improved. In this way, the prediction accuracy of the prediction model trained using multiple trajectory attention samples is higher.
[0055] According to an embodiment of the present invention, a prediction model includes a feedforward neural network module and an inverse instance normalization module; using multiple normalized samples to train the prediction model includes: inputting multiple trajectory attention samples into the feedforward neural network module to obtain multiple prediction normalized samples; inputting the multiple prediction normalized samples into the inverse instance normalization module respectively to obtain multiple prediction trajectory sequence samples corresponding to the multiple trajectory sequence samples; processing the multiple prediction trajectory sequence samples based on a loss function to obtain a loss function value; and training the prediction model based on the loss function value.
[0056] According to an embodiment of the present invention, a feedforward neural network can perform flight trajectory prediction based on trajectory attention samples. The predicted normalized samples can be samples with the same characteristics as the normalized samples, that is, the range of the same type of trajectory attribute data is the same.
[0057] According to an embodiment of the present invention, the inverse instance normalization module may map the range of trajectory attribute data in the predicted normalized sample to the range of trajectory attribute data in the trajectory sequence sample (the original sample data range).
[0058] According to an embodiment of the present invention, the loss function may be a mean square error, a cross entropy loss function, a logarithmic loss function, etc. The loss function may be a function that measures the difference between the predicted trajectory sequence samples and the actual trajectory sequence samples.
[0059] According to an embodiment of the present invention, multiple normalized samples are processed by a self-attention module to obtain multiple trajectory attention samples with higher interpretability, and the trajectory attention samples can characterize the correlation between multiple trajectory attribute data. The multiple trajectory attention samples are then input into a feedforward neural network module to obtain multiple predicted normalized samples. The predicted normalized samples are restored to the original data range by an inverse instance normalization module, so that the inverse instance normalization module has stronger adaptability to trajectory data at different stages and in different regions.
[0060] According to an embodiment of the present invention, the trajectory attribute class mean The formula is:
[0061] (1)
[0062] Trajectory attribute class variance The formula is:
[0063] (2)
[0064] , , L is the number of time points in the trajectory sequence sample, N is the number of types of trajectory attribute data, It represents the nth trajectory attribute data in the trajectory attribute data set at the lth time point, where L and N are both integers greater than or equal to 1.
[0065] According to an embodiment of the present invention, the prediction model further includes an instance normalization module, which is used to generate normalized samples according to the input trajectory sequence samples. The formula for normalization processing of the instance normalization module is:
[0066] (3)
[0067] ε、 , are the normalized training parameters of the prediction model, It represents the normalized data of the nth trajectory attribute at the lth time point in the normalized sample. The statistics are the mean and variance of the trajectory attribute class.
[0068] According to an embodiment of the present invention, inputting multiple normalized samples into a self-attention module to obtain multiple trajectory attention samples that characterize the correlation between multiple trajectory attribute data also includes: inputting multiple normalized samples into an embedding module of a prediction model to obtain multiple embedded samples; transposing the multiple embedded samples respectively to obtain multiple transposed samples, and the multiple transposed samples are composed of time points arranged based on the sequence relationship of multiple trajectory attribute data; inputting the multiple transposed samples into the self-attention module to obtain multiple trajectory attention samples that characterize the correlation between multiple trajectory attribute data.
[0069] According to an embodiment of the present invention, the trajectory sequence sample may be a data sequence in which the trajectory attribute data in the trajectory attribute data set at at least one time point are arranged in order, that is, the normalized sample is also a data sequence.
[0070] According to an embodiment of the present invention, the embedding module embeds the normalized sample into the word unit.
[0071] (4)
[0072] Q represents the embedded sample, TL represents the normalized sample, D is the embedding dimension, and Embedding(∙) embedding is achieved through a multi-layer perceptron.
[0073] (5)
[0074] Embed e0 to e in sample Q N They represent N types of trajectory attribute datasets in the embedded samples respectively.
[0075] According to an embodiment of the present invention, the score A of the self-attention module i,j The expression is:
[0076] (6)
[0077] A i,j represents the correlation value between the attribute data of the i-th trajectory and the attribute data of the j-th trajectory, Q is the embedded sample, is the transposed sample, represents the query of the attribute data label of the i-th track, is the key for marking the attribute data of the j-th trajectory, where i and j are both integers greater than or equal to 1.
[0078] According to an embodiment of the present invention, the prediction model also includes at least one layer normalization module, and the layer normalization module is arranged behind the self-attention module and / or the feedforward neural network module.
[0079] According to an embodiment of the present invention, a layer normalization module is used to normalize the same type of trajectory attribute data in a single trajectory attention sample or a predicted normalized sample to solve the non-stationary problem.
[0080] (7)
[0081] h n Represents the output value of the self-attention module or the feedforward neural network module, and LayerNorm(H) is the normalized sample.
[0082] According to an embodiment of the present invention, the layer normalization module can also be set behind any module in the prediction model to achieve normalization of trajectory attribute data, accelerate the learning speed of the prediction model, and improve numerical stability.
[0083] According to an embodiment of the present invention, after inputting multiple trajectory attention samples into a feedforward neural network module to obtain multiple predicted normalized samples, the method further includes: inputting multiple predicted normalized samples into a sequence projection module of a prediction model to obtain multiple predicted projection sequence samples of preset dimensions; and inputting the multiple predicted projection sequence samples into an inverse instance normalization module respectively to obtain multiple predicted trajectory sequence samples corresponding to the multiple trajectory sequence samples.
[0084] According to an embodiment of the present invention, the sequence projection module is used to perform dimensional projection on the predicted normalized samples.
[0085] (8)
[0086] h n Represents the predicted normalized sample (the output value of the feedforward neural network module), To predict the projection sequence samples, the predicted projection sequence samples are data sequences with preset dimensions.
[0087] According to an embodiment of the present invention, the inverse instance normalization formula of the inverse instance normalization module is:
[0088] (9)
[0089] To predict the projection sequence samples, is the predicted trajectory sequence sample. The same normalized statistics used in formula (3), that is, the normalized statistics are also the trajectory attribute class mean and trajectory attribute class variance.
[0090] According to an embodiment of the present invention, an instance normalization module, an embedding module, a self-attention module, a feedforward neural network model, a sequence projection module, an inverse instance normalization module, and multiple layer normalization modules can be combined to obtain an Inivformer network model (prediction model). The layer normalization module can be a transformer encoder.
[0091] Figure 3The schematic diagram shows the architecture of the Inivformer network model according to an embodiment of the present invention.
[0092] like Figure 3 As shown, the Inivformer network model 300 of this embodiment includes an instance normalization module 310, an embedding module 320, a self-attention module 330, multiple layer normalization modules 340, a feedforward neural network model 350, a sequence projection module 360, and an inverse instance normalization module 370. Among them, the self-attention module 330, multiple layer normalization modules 340, and the feedforward neural network model 350 can be repeatedly set D times in the existing order, that is, including 2D layer normalization modules 340, D self-attention modules 330, and D feedforward neural network models 350, where D is an integer greater than 1. The trajectory sequence sample is input into the Inivformer network model 300, and the predicted trajectory sequence sample is output.
[0093] Figure 4 The flowchart of the method for predicting the trajectory of an aircraft according to an embodiment of the present invention is schematically shown.
[0094] like Figure 4 As shown, the aircraft trajectory prediction method of this embodiment includes operation S410.
[0095] In operation S410, the trajectory sequence of the aircraft is input into the trained prediction model to obtain a predicted trajectory sequence, wherein the trained prediction model is trained according to a prediction model training method for aircraft trajectories.
[0096] According to an embodiment of the present invention, the above-mentioned aircraft trajectory prediction model training method and aircraft trajectory prediction method are described in detail with examples.
[0097] For example, historical trajectories, future trajectories, and mathematical representations of trajectory points are defined.
[0098] In aircraft trajectory prediction, given trajectory points , x n It is the attribute data of the trajectory point, including longitude, latitude, pressure altitude, ground speed, vertical speed, and heading angle. The fixed trajectory point P is the trajectory attribute data set.
[0099] Given a historical trajectory , where P L is the trajectory attribute data set at the lth time point in the historical trajectory, L is the number of time points in the trajectory sequence sample, and N is the number of types of trajectory attribute data.
[0100] Given a predicted trajectory , P L+h is the trajectory attribute dataset at the hth time point in the predicted trajectory, and H is the time step for predicting the future.
[0101] It should be noted that there are no restrictions on the time points in the historical trajectory and the future trajectory, and the time points can be distributed with uniform time steps or with random time steps.
[0102] Figure 5 The following is a schematic diagram of the steps of predicting an aircraft trajectory according to an embodiment of the present invention.
[0103] like Figure 5 As shown, the step of predicting the aircraft trajectory in this embodiment mainly includes operations S510 to S530.
[0104] In operation S510, data processing is performed on the collected data to obtain a plurality of trajectory sequence samples.
[0105] In operation S520, the Inivformer network model is trained using a plurality of trajectory sequence samples to obtain a trained Inivformer network model.
[0106] In operation S530, the trajectory sequence of the aircraft is predicted using the trained Inivformer network model.
[0107] According to an embodiment of the present invention, the collected data may be obtained through an ADS-B device and a receiving device installed on an aircraft, and the original data is saved in the form of a csv file, the specific form of which is shown in Table 1.
[0108]
[0109] According to an embodiment of the present invention, after obtaining the original trajectory data csv file, multi-level sorting is performed by flight and timestamp, flights are divided, missing values and outliers are processed, sample sampling is performed based on the time sliding window for each flight, and the data set is divided.
[0110] According to an embodiment of the present invention, in order to obtain the flight trajectory data of a certain flight to facilitate subsequent data processing, the flight number of the aircraft is used as an index for grouping, and a text file named after each flight number is generated.
[0111] According to an embodiment of the present invention, for flight trajectory data with a large number of null values, the flight data is removed, and linear interpolation is used to complete the flight data with individual missing values.
[0112] According to an embodiment of the present invention, based on the sample sampling of the time sliding window, a sliding window of (L+H)×N is used to sample the sliders in sequence within the same flight number, and the sliding step length of each time is H. After sampling, the dimension of the input sample set is (Number, L+H, N), where Number is the number of samples.
[0113] According to an embodiment of the present invention, the data set is divided into a training set, a validation set and a test set in a ratio of 6:2:2 for prediction model training, parameter verification and effect testing. There are a total of (L+H) time points, and the data sets corresponding to the first L time points can be determined as trajectory sequence samples, and the data sets corresponding to the last H time points can be determined as actual trajectory sequence samples. The Inivformer network model is trained based on the loss function value between the predicted trajectory sequence samples and the actual trajectory sequence samples.
[0114] According to an embodiment of the present invention, an Inivformer trajectory prediction network model is constructed and trained.
[0115] The pure encoder architecture of Transformer is adopted, including instance normalization module, inverse normalization module, embedding module, sequence projection module and layer normalization module.
[0116] For the aircraft time series trajectory data, the instance normalization module normalizes the trajectory attribute data, the embedding module embeds the variable sequence words, the sequence projection module restores the embedded variable sequence, and the inverse instance normalization module can restore the original distribution of the trajectory and output the predicted trajectory.
[0117] According to an embodiment of the present invention, an instance normalization module (Formulas (1) to (3)) is constructed. For each trajectory sequence sample, the trajectory attribute class mean and trajectory attribute class variance of each feature channel (each type of trajectory attribute data) are calculated, and the trajectory attribute class mean and trajectory attribute class variance are used to normalize each type of trajectory attribute data of the trajectory sequence sample.
[0118] According to an embodiment of the present invention, a time series embedding module (Formula (4)) is constructed to embed the sequence in the entire normalized sample into word units.
[0119] According to an embodiment of the present invention, a self-attention module between attributes is constructed (Formula (5) to Formula (6)). In the aircraft trajectory prediction task, the attention mechanism is no longer used to model the time dependency, but multiple embedded samples are transposed respectively to obtain multiple transposed samples. A sequence of time points of an input trajectory attribute data is regarded as an independent process, that is, multiple transposed samples are composed of time points arranged based on the sequence relationship of multiple trajectory attribute data.
[0120] Since each tag has been normalized in the feature dimension of its trajectory attribute data, multiple transposed samples are input into the self-attention module to obtain multiple trajectory attention samples that characterize the correlation between multiple trajectory attribute data. To some extent, the correlation between multiple trajectory attribute data can be revealed, and the entire score map A∈R N×NMulti-trajectory attribute data correlations between paired trajectory attribute data labels are demonstrated.
[0121] According to an embodiment of the present invention, a layer normalization module (Formula (7)) is constructed. Layer normalization is used to improve the convergence and training stability of deep networks. In a typical Transformer-based prediction model, this module normalizes multiple trajectory attribute data of the same timestamp and gradually merges the trajectory attribute data. In this embodiment, the normalization module is applied to the sequence (trajectory attention sample) representation of a single trajectory attribute data to solve the non-stationary problem.
[0122] According to an embodiment of the present invention, a feedforward neural network module between time steps is constructed. Transformer uses a feedforward neural network (FFN) as a basic building block for encoding tag representation, and the same application is performed on each tag. Since tags composed of multiple trajectory attribute data at the same timestamp (i.e., a sequence of multiple trajectory attribute data corresponding to a time point) may be improperly positioned and too localized, they cannot reveal enough information for prediction.
[0123] In this embodiment, FFN is used for the sequence representation of each trajectory attribute data tag (i.e., the sequence of multiple time points corresponding to a trajectory attribute data), extracts complex representation to describe the time series, and encodes the observed time series using dense nonlinear connections through the stacking of inversion blocks, and decodes the representation of the future sequence.
[0124] According to an embodiment of the present invention, a layer normalization module is constructed after the feedforward neural network module.
[0125] According to an embodiment of the present invention, a sequence projection module (Formula (8)) is constructed to input multiple predicted normalized samples into the sequence projection module of the prediction model to obtain multiple predicted projection sequence samples of preset dimensions.
[0126] According to an embodiment of the present invention, an inverse instance normalization module (Formula (10)) is constructed, which reverses the normalization at the output layer and explicitly returns the non-stationary attributes deleted from the input data to the model output.
[0127] According to an embodiment of the present invention, an Inivformer network model is constructed by combining the self-attention module between attributes, the layer normalization module, and the feedforward neural network module between time steps, the layer normalization module becomes a repeatable transformer-like encoder module, the instance normalization module, the embedding module, N transformer-like encoder modules, and the inverse real normalization module.
[0128] According to an embodiment of the present invention, Inivformer network model training: After constructing all modules of the entire Inivformer network model, the model is trained using a training set divided in advance, and hyperparameters are adjusted according to a validation set to obtain the best trajectory prediction model through training.
[0129] Construct training and testing functions, and adjust hyperparameters according to the results of the validation set. Table 2 shows the final values of hyperparameters that have a greater impact on the model prediction performance.
[0130]
[0131] According to an embodiment of the present invention, the trained Inivformer network model is used to predict the trajectory sequence of the aircraft. The aircraft trajectory of length L is input, and the model predicts the aircraft trajectory of the next H steps in real time.
[0132] In summary, the specific implementation methods described above can achieve multi-stage, wide-area aircraft trajectory prediction.
[0133] Improve aircraft trajectory prediction at different stages and in different regions based on the instance normalization module. By using instance normalization, the sample longitude, latitude, altitude and speed sequences are normalized respectively to replace the global normalization of the demarcated data area, avoiding the compression of data changes and the loss of features. By restoring the original data distribution through inverse instance normalization, it has stronger adaptability to trajectory data at different stages and in different regions.
[0134] Improve the relationship mining and prediction interpretability between trajectory attribute data based on the self-attention module between attributes. The entire time window sequence of a single trajectory attribute data is used as an input, which retains the complete local time information and avoids the loss of local information in the time series position encoding of the traditional transformer model. The self-attention mechanism is used to fully utilize the relationship between trajectory attribute data, and linear projection is used to obtain queries, keys and values. The entire score graph of the multiplication of the query and key matrices shows the correlation of multiple trajectory attribute data between paired variable labels. In the matrix multiplication with the value, highly correlated trajectory attribute data will be given more weight. Based on this mechanism, the prediction of aircraft trajectories is more interpretable. A feedforward neural network is used to globally represent historical trajectories, and dense nonlinear connections are used to encode the observed time series and decode the representation of future trajectories.
[0135] According to an embodiment of the present invention, the constructed prediction model can greatly enhance the trajectory prediction capability of complex flight phases such as climbing and descending; can make highly robust predictions based on changes in the aircraft's geographical range, thereby improving the flexibility of the prediction range; and allow the trajectory prediction trajectory model to be more interpretable and reliable.
[0136] Figure 6A block diagram of an electronic device suitable for implementing a prediction model training method for aircraft trajectories according to an embodiment of the present invention is schematically shown.
[0137] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present invention includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0138] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present invention by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present invention by executing the program stored in the one or more memories.
[0139] According to an embodiment of the present invention, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0140] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0141] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.
[0142] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the aircraft trajectory prediction model training method provided by the embodiment of the present invention.
[0143] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when it is executed by the processor 601. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0144] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0145] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0146] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in the various embodiments of the present invention may be combined and / or combined in various ways. All of these combinations and / or combinations fall within the scope of the present invention.
[0149] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A method for training a prediction model of an aircraft trajectory, characterized in that: The method comprises: Acquire a plurality of trajectory sequence samples, wherein the trajectory sequence samples are composed of a trajectory attribute data set of at least one time point arranged based on a time series relationship, and the trajectory attribute data set includes at least one type of trajectory attribute data; Normalizing the plurality of trajectory attribute data according to the trajectory attribute class mean and trajectory attribute class variance of the trajectory sequence samples to obtain a plurality of normalized samples, wherein the trajectory attribute class mean and the trajectory attribute class variance are both calculated based on the same type of trajectory attribute data of the plurality of trajectory attribute data sets in the trajectory sequence samples; Inputting the plurality of normalized samples into a self-attention module to obtain a plurality of trajectory attention samples representing the correlation between the plurality of trajectory attribute data, wherein the prediction model includes the self-attention module; Training the prediction model using the multiple trajectory attention samples; The step of inputting the plurality of normalized samples into a self-attention module to obtain a plurality of trajectory attention samples representing the correlation between the plurality of trajectory attribute data further comprises: Inputting the multiple normalized samples into an embedding module of the prediction model to obtain multiple embedded samples; Transposing the plurality of embedded samples respectively to obtain a plurality of transposed samples, wherein the plurality of transposed samples are composed of time points arranged based on a sequence relationship of a plurality of the trajectory attribute data; The plurality of transposed samples are input into the self-attention module to obtain the plurality of trajectory attention samples representing the correlation between the plurality of trajectory attribute data.
2. The method according to claim 1, characterized in that The prediction model includes a feedforward neural network module and an inverse instance normalization module; The using the multiple trajectory attention samples to train the prediction model comprises: Inputting the plurality of trajectory attention samples into the feedforward neural network module to obtain a plurality of predicted normalized samples; Inputting the plurality of predicted normalized samples into the inverse instance normalization module respectively to obtain a plurality of predicted trajectory sequence samples corresponding to the plurality of trajectory sequence samples; Processing the plurality of predicted trajectory sequence samples based on a loss function to obtain a loss function value; The prediction model is trained based on the loss function value.
3. The method according to claim 1, characterized in that: The score A of the self-attention module i,j The expression is: (1) A i,j represents the correlation value between the i-th track attribute data and the j-th track attribute data, Q is the embedded sample, is the transposed sample, represents the query of the attribute data label of the i-th track, is the key for marking the attribute data of the j-th trajectory, where i and j are both integers greater than or equal to 1.
4. The method according to claim 2, characterized in that: After inputting the multiple trajectory attention samples into the feedforward neural network module to obtain multiple predicted normalized samples, the method further includes: Inputting a plurality of predicted normalized samples into a sequence projection module of the prediction model to obtain a plurality of predicted projection sequence samples of a preset dimension; The plurality of predicted projection sequence samples are respectively input into the inverse instance normalization module to obtain a plurality of predicted trajectory sequence samples corresponding to the plurality of trajectory sequence samples.
5. The method according to claim 2, characterized in that: The prediction model also includes at least one layer normalization module, which is arranged behind the self-attention module and / or the feedforward neural network module.
6. The method according to claim 4, characterized in that The trajectory attribute class mean The formula is: (2) The trajectory attribute class variance The formula is: (3) , , L is the number of time points in the trajectory sequence sample, N is the number of types of trajectory attribute data, It represents the nth trajectory attribute data in the trajectory attribute data set at the lth time point, where L and N are both integers greater than or equal to 1.
7. The method according to claim 6, characterized in that The prediction model further includes an instance normalization module, which is used to generate the normalized samples according to the input trajectory sequence samples. The normalization processing formula of the instance normalization module is: (4) , , are the normalized training parameters of the prediction model, Represents the normalized data of the nth trajectory attribute at the lth time point in the normalized sample.
8. The method according to claim 7, characterized in that The inverse instance normalization formula of the inverse instance normalization module is: (5) is the predicted projection sequence sample, is the predicted trajectory sequence sample.
9. A method for predicting an aircraft trajectory, characterized in that: The method comprises: The trajectory sequence of the aircraft is input into a trained prediction model to obtain a predicted trajectory sequence, wherein the trained prediction model is trained according to any one of the methods of claims 1 to 8.
