Flight risk prediction method based on interpretable bidirectional time-series-feature attention network
By using an interpretable bidirectional temporal-feature attention network, the problem of insufficient coupling dependency between time and feature dimensions in existing technologies is solved, achieving high-precision flight risk prediction and visual tracing, and improving the accuracy and interpretability of flight safety management.
Patent Information
- Application Number
- CN202611232327.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to simultaneously uncover the bidirectional coupling dependency between the time and feature dimensions. The models perform poorly when adapting to heterogeneous sampled time-series data and lack interpretability, failing to meet the civil aviation sector's demand for high-precision prediction and visual tracing of landing risks.
We adopt an interpretable bidirectional temporal-feature attention network-based approach. We extract multi-scale temporal features through a multi-scale TCN embedding module, perform joint modeling with a parallel LSTM-SEBlock architecture, use a bidirectional temporal-feature attention module to characterize the cross-dependency between time and features, and generate a visual heatmap through Grad-CAM to assist in risk tracing.
It significantly improves the accuracy and real-time performance of flight safety event prediction, quantifies the contribution of various flight parameters and time intervals to risk events, provides reliable decision support, and offers greater precision and interpretability for flight safety management.
Smart Images

Figure CN123158181A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent monitoring and time series data mining technology for civil aviation flight safety, specifically involving a flight risk prediction method based on an interpretable bidirectional time-series-feature attention network. Background Technology
[0002] The landing phase accounts for only about 1% of the total flight time, but it is a high-risk phase for incidents such as hard landings and tail strikes. These incidents can easily cause structural damage to the aircraft and, in extreme cases, lead to flight safety accidents. Quick Access Recorders (QARs) continuously record massive amounts of flight parameters, including aircraft flight status, pilot commands, and external environmental weather conditions, forming high-dimensional, multivariate, heterogeneous time-series data with sampling frequencies ranging from 1Hz to 8Hz. This data is crucial for flight risk identification, flight quality assessment, and post-accident investigations. Predicting landing risks using QAR data has become a key research area in civil aviation safety management.
[0003] Currently, the industry mainly uses traditional machine learning, recurrent neural networks, graph neural networks, and temporal Transformer models to conduct research on hard landing and tail-scratching risks using QAR data. Among them, traditional machine learning models such as SVM can only extract shallow statistical features of the data and cannot capture the temporal patterns of flight parameters evolving over time, resulting in significant shortcomings in prediction accuracy. Recurrent neural networks such as LSTM only focus on mining single-dimensional temporal dependencies and are unable to characterize the coupling relationships between different flight parameters that change dynamically over time. Although cutting-edge deep temporal models such as MDGNN, Crossformer, and iTransformer can capture variable associations or long-term temporal dependencies, they do not conduct bidirectional cross-cooperative modeling for the time and feature dimensions. At the same time, existing deep learning models generally have "black box" characteristics, only outputting risk assessment results and unable to quantify the contribution of each flight parameter and each landing time window to the over-limit event. They lack intuitive risk tracing visualization methods, have poor model interpretability, and are difficult to support pilot operation review and safety management personnel in risk root cause localization.
[0004] In addition, existing technologies suffer from insufficient adaptability to heterogeneous time-series data. The sampling frequencies of various flight parameters in QAR differ significantly, and existing models are prone to losing multi-scale local temporal details during alignment and downsampling to a uniform sequence length. Furthermore, existing models cannot simultaneously model the "modulation effect of different time steps on each feature parameter" and the "key response intervals of each feature parameter in the temporal dimension," making it difficult to fully exploit the cumulative interactions across time steps and features during flight control, further limiting the recognition accuracy and generalization ability of risk prediction models. In summary, existing technologies struggle to simultaneously address the three core requirements of multi-frequency QAR heterogeneous time-series feature extraction, bidirectional dependency coupling modeling of time and features, and interpretability of model decisions, failing to meet the practical business requirements of high-precision landing risk prediction and visualized traceability management in the civil aviation sector. Summary of the Invention
[0005] In view of this, the purpose of this invention is to provide a flight risk prediction method based on an interpretable bidirectional temporal-feature attention network. This method aims to solve the technical problems of existing temporal models, such as difficulty in simultaneously mining the bidirectional coupling dependency between the time dimension and the feature dimension, insufficient model interpretability, and poor adaptation to QAR heterogeneous sampling temporal data. It enables high-precision advance prediction of flight risks such as hard landing and tail strike during the landing phase of civil aviation, and quantifies the contribution of each flight parameter and time interval to risk events, supporting flight risk tracing and operational review.
[0006] To achieve the above objectives, the present invention adopts the following technical solution:
[0007] A flight risk prediction method based on an interpretable bidirectional temporal-feature attention network includes the following steps:
[0008] S1. Acquire multi-source heterogeneous flight multivariate time series data collected by the Quick Access Recorder (QAR);
[0009] S2. By using a multi-scale TCN embedding module, a dedicated TCN branch is constructed for flight parameters with different sampling frequencies, multi-scale time features are extracted and the sequence length is unified. Then, the embedding layer is used to map to a high-dimensional feature space to enhance the ability to model cross-variable dependencies and time dependencies.
[0010] S3. Input the output of the multi-scale TCN embedding module into the preliminary time-feature encoding module, and use the parallel LSTM-SEBlock architecture to jointly model the time information and feature information;
[0011] The LSTM branch captures long-term dependencies and dynamic evolution patterns in time series data, transforming input features into features with time-enhanced properties. The SEBlock branch adaptively learns the importance of each feature channel, strengthens key variables, and suppresses redundant information.
[0012] S4. Input the output of the initial temporal-feature encoding module into the bidirectional temporal-feature attention module. Through time-to-feature cross-attention, the influence of different time points on the feature response is characterized to model the modulation effect of time changes on variable behavior. Through feature-to-time cross-attention, the importance distribution of variables in the time dimension is characterized to capture the dynamic evolution pattern of variables. The outputs of the two attention paths are spliced and fused to obtain the joint feature representation.
[0013] S5. Input the high-dimensional temporal features output by the bidirectional temporal-feature attention module into the classifier and map them to obtain the final flight risk event prediction probability result;
[0014] S6. By using a gradient-based interpretable module, the Grad-CAM method is employed to reveal the region of interest of the model in the time and feature dimensions through gradient backpropagation, generating a visual heatmap to help identify the root cause of risk events.
[0015] Furthermore, the processing steps of the multi-scale TCN embedding module specifically include:
[0016] Each flight parameter is independently processed by two 3×1 convolution operations, weight normalization, ReLU activation function and Dropout. Residual connections are introduced to alleviate the gradient vanishing problem. Then the output feature map is compressed into a single-channel representation by 1×1 convolution. Linear interpolation is used to resample the feature maps of all flight parameters to a fixed uniform time length. All processed features are concatenated in the channel dimension and finally mapped to a high-dimensional feature space of a specified dimension.
[0017] Furthermore, the calculation process of the SEBlock branch specifically includes:
[0018] I. Compression: Given an input tensor In the feature dimension Perform global average pooling on top;
[0019]
[0020] In the formula, This represents the representation after global aggregation along the feature dimension; To output tensor The value of the element at the nth row and mth column; This represents the original element value of the input tensor X at the d-th feature dimension, the n-th position, and the m-th channel.
[0021] II. Stimulation: By explicitly modeling the dependencies between channels, the characteristic responses of each channel are adaptively recalibrated;
[0022] ;
[0023]
[0024] In the formula, and These represent the weight matrices of the two fully connected layers, respectively. Represents the ReLU activation function; Represents the Sigmoid function; Represents channel-level attention weights; ⊙ represents element-wise multiplication; This represents the final output of SEBlock.
[0025] Furthermore, step S4 includes the following sub-steps:
[0026] S4.1 Cross-attention from time to feature;
[0027] The reshaped As a query, The Q, K, and V matrices, serving as keys and values, are constructed as follows:
[0028]
[0029]
[0030]
[0031] In the formula, , , It is a learnable linear projection matrix; For the reshaped feature tensor containing time-dimensional information; Represents the query matrix; Represents the key matrix; Represents a value matrix;
[0032] The projected feature representation is divided into the last dimension. The number of parallel attention heads, for the first... Each attention head, and its corresponding query, key, and value tensors are represented as follows: , and Subsequently, regarding the first Each attention head applies a self-attention mechanism, as shown below:
[0033]
[0034] In the formula, Indicates the first The output of each attention head; Represents the dimension of the key tensor; Indicates transpose;
[0035] The outputs of all attention heads are concatenated in the last dimension to obtain the final multi-head attention output:
[0036]
[0037] in, It is a learnable linear projection matrix used to map the concatenated multi-head outputs back to the model's embedding dimension. ;
[0038] S4.2 Feature-to-Time Cross-Attention;
[0039] The reshaped As a query, Using key and value pairs, a multi-head attention computation logic consistent with time-to-feature cross-attention is employed to identify the most critical time step in each feature channel, thereby obtaining the final multi-head attention output. ;
[0040] S4.3 output generation;
[0041] Will Rearrange to match The shape, denoted as Then, the features are concatenated along the last dimension to form a joint feature representation, which is expressed as follows:
[0042]
[0043] Subsequently, the spliced features are compressed and integrated through feature fusion operations:
[0044]
[0045] In the formula, , Represents the weight matrix; This represents the GELU activation function; for and The joint feature representation obtained by concatenating the last dimension; for The fusion feature obtained after compression and integration operations;
[0046] The fused features are then processed through a residual MLP module with layer normalization:
[0047]
[0048] In the formula, This represents the final output of the bidirectional temporal-feature attention module.
[0049] Furthermore, the specific content of step S5 is as follows:
[0050] Output from the bidirectional temporal-feature attention module First, aggregation is performed along the feature dimension, and then expansion is performed along the time dimension to obtain the feature vector. eigenvectors It is then fed into a classifier to obtain the probability of each event category;
[0051]
[0052] In the formula, This represents the predicted probability distribution for each event category; , Represents the weight matrix; This represents the bias vector of the first fully connected layer; This represents the bias vector of the second fully connected layer.
[0053] Furthermore, the processing steps of the gradient-based interpretable module specifically include:
[0054] The gradients of the model output relative to each position of the attention matrix are calculated for the cross-attention matrix from time to feature and the cross-attention matrix from feature to time, respectively. Global average pooling is performed on the gradients along the corresponding dimensions to obtain importance weight coefficients. The attention matrix is weighted using these weight coefficients and the ReLU activation function is applied to calculate the final saliency map. The generated heatmap can intuitively show the contribution of different flight features and time windows in the model decision-making process.
[0055] On the other hand, the present invention also provides a flight risk prediction system based on an interpretable bidirectional temporal-feature attention network, comprising:
[0056] The multi-scale TCN embedding module is used to receive raw QAR flight data, extract multi-scale time features and unify sequence length, and map flight parameters to a high-dimensional feature space.
[0057] The preliminary temporal-feature encoding module uses parallel LSTM and SEBlock structures to extract temporal dynamic features and adaptively enhance key flight feature channels, respectively.
[0058] The bidirectional temporal-feature attention module uses two cross-attention paths, time-to-feature and feature-to-time, to collaboratively model the coupling dependency between the temporal dimension and the flight feature dimension, and outputs a joint feature that integrates temporal and feature information.
[0059] The classifier receives the joint features output by the bidirectional temporal-feature attention module and outputs the prediction results of hard landing and tail-flying risk events;
[0060] The gradient-based interpretable module calculates the contribution weights of each time window and each flight parameter to the prediction results based on Grad-CAM gradient backpropagation, and generates a risk source heat map.
[0061] Beneficial effects:
[0062] This invention, by introducing a bidirectional temporal-feature attention mechanism, fully explores and utilizes the implicit interaction between flight parameters in the time and feature dimensions, significantly improving the accuracy and real-time performance of joint predictions for flight safety events, especially hard landings and tail strike risks. This method not only deeply analyzes the dynamic changes in flight data but also reveals the intrinsic correlation between key flight parameters at the time and feature levels, thereby achieving more accurate and timely flight safety warnings. Case studies validate the effectiveness of the proposed model, and combined with interpretability analysis of the model's decision-making process, it provides reliable decision support for flight safety management. The related research results not only contribute to improving aviation operational safety but also provide new research ideas and technical paths for the development of intelligent aviation safety technologies. Furthermore, the application of this invention can further optimize flight operation procedures, enhance pilots' safety awareness, and help airlines achieve better results in flight safety monitoring and accident prevention, demonstrating its significant application value and innovative significance in the field of flight safety.
[0063] Other advantages, objectives, and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination, or may be learned from practice of the invention. The objectives and other advantages of the invention can be realized and obtained through the following description. Attached Figure Description
[0064] Figure 1 This is a flowchart of a flight risk prediction method based on an interpretable bidirectional temporal-feature attention network according to the present invention;
[0065] Figure 2 This is an architecture diagram of the TCN model;
[0066] Figure 3 A cross-attention architecture for time-to-feature approaches;
[0067] Figure 4 A feature-to-temporal cross-attention architecture;
[0068] Figure 5 Weighting of attention to the incident of wiping the tail of the aircraft;
[0069] Figure 6 This is a typical case of an incident involving rubbing the tail of an aircraft.
[0070] Figure 7 Attention weight for hard landing events;
[0071] Figure 8 This is a typical case of a hard landing incident;
[0072] Figure 9 Parameter analysis for d_model and nheads;
[0073] Figure 10 For parameter analysis of the learning rate. Detailed Implementation
[0074] To make the technical solutions, advantages, and objectives of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the protection scope of this application.
[0075] like Figure 1 As shown, this embodiment provides a flight risk prediction method based on an interpretable bidirectional temporal-feature attention network, including the following steps:
[0076] S1. Acquire multi-source heterogeneous flight multivariate time series data collected by the Quick Access Recorder (QAR);
[0077] S2. By using a multi-scale TCN embedding module, a dedicated TCN branch is constructed for flight parameters with different sampling frequencies, multi-scale time features are extracted and the sequence length is unified. Then, the embedding layer is used to map to a high-dimensional feature space to enhance the ability to model cross-variable dependencies and time dependencies.
[0078] To effectively capture local and global temporal information in flight data, this invention designs a multi-scale TCN embedding module. This module is specifically designed for processing multi-source heterogeneous time series data. It adapts and models the data to the characteristics of QAR data, such as inconsistent sampling frequencies for different parameters and complex sequence structures. While extracting multi-scale temporal features, it also achieves a unified representation of sequence length and minimizes information loss caused by downsampling or alignment operations. Furthermore, by introducing an embedding layer, the scalar observations of each flight parameter at each time step are mapped to a high-dimensional feature space, thereby enhancing the model's ability to express complex temporal dependencies. The overall architecture of the TCN is as follows: Figure 2 As shown, it mainly consists of key components such as dilated convolution, weight normalization, ReLU activation function, Dropout, and channel dimensionality reduction interpolation.
[0079] Each TCN module can learn independently and simultaneously. The different flight parameters are denoted as:
[0080]
[0081] in, This represents the i-th flight parameter. Each flight parameter... After undergoing two convolution operations, weight normalization, activation function, and Dropout processing, the final output is obtained, represented as:
[0082]
[0083]
[0084] To alleviate the vanishing gradient problem and promote stable training of deep networks, residual connections are introduced, represented as:
[0085]
[0086] Each output feature map pass Convolutional compression into a single-channel representation:
[0087]
[0088] To align the time dimension across all variables, linear interpolation was then used to resample the feature maps to a fixed length. :
[0089]
[0090] All The processed features of each flight parameter are concatenated along the channel dimension to form a unified feature representation:
[0091]
[0092] Finally, it is mapped along the feature dimension to... The feature space is dimensional, thus obtaining the representation. .
[0093] S3. Input the output of the multi-scale TCN embedding module into the preliminary time-feature encoding module, and use the parallel LSTM-SEBlock architecture to jointly model the time information and feature information;
[0094] The LSTM branch captures long-term dependencies and dynamic evolution patterns in time series data, transforming input features into features with time-enhanced properties. The SEBlock branch adaptively learns the importance of each feature channel, strengthens key variables, and suppresses redundant information.
[0095] 1) Long Short-Term Memory Network:
[0096] LSTM branches are used to model the temporal dependencies in flight parameter sequences. By maintaining a memory state between time steps, it can simultaneously capture short-term fluctuations and long-term temporal dynamics, thus preserving the continuity of the sequence and tracking the evolution of parameter values over time. After processing by LSTM, the input features... Transformed into features with time-enhancing properties .
[0097] 2) Compression-Excitation Module
[0098] This module emphasizes the importance of modeling feature dimensions. Through a "squeeze-and-excitation" mechanism, it compresses and reweights feature channels to learn global contextual relationships, thereby automatically highlighting key information features while suppressing irrelevant or noisy features. This process makes the final feature representation more discriminative.
[0099] Compression: This operation is performed on the feature dimension. Perform global average pooling on the input tensor. This operation is defined as:
[0100]
[0101] in, This represents the representation after global aggregation along the feature dimension; To output tensor The value of the element at the nth row and mth column; This represents the original element value of the input tensor X at the d-th feature dimension, the n-th position, and the m-th channel.
[0102] The incentive aims to adaptively recalibrate the feature responses of each channel by explicitly modeling the dependencies between channels. Specifically, it involves the channel description vectors obtained from the squeeze operation. It will be fed into two consecutive fully connected layers to capture the nonlinear interactions between channels. This process can be represented as follows:
[0103]
[0104] in, and These represent the weight matrices of the two fully connected layers, respectively. Represents the ReLU activation function; Represents the Sigmoid function; This represents the channel-level attention weights. The final channel-level attention weights are... It will be applied to the original feature map through element-wise multiplication, thereby reweighting it:
[0105]
[0106] Here, ⊙ represents element-wise multiplication. This indicates the final output of SEBlock.
[0107] S4. Input the output of the initial temporal-feature encoding module into the bidirectional temporal-feature attention module. Through time-to-feature cross-attention, the influence of different time points on the feature response is characterized to model the modulation effect of time changes on variable behavior. Through feature-to-time cross-attention, the importance distribution of variables in the time dimension is characterized to capture the dynamic evolution pattern of variables. The outputs of the two attention paths are spliced and fused to obtain the joint feature representation.
[0108] S4.1 Cross-attention from time to feature;
[0109] The reshaped As a query, As keys and values, this design explicitly models which feature channels are the most informative at each time step. Its architecture is as follows: Figure 3 As shown.
[0110] The Q, K, and V matrices are constructed as follows:
[0111]
[0112]
[0113]
[0114] In the formula, , , It is a learnable linear projection matrix; For the reshaped feature tensor containing time-dimensional information; Represents the query matrix; Represents the key matrix; Represents a value matrix;
[0115] The projected feature representation is divided into the last dimension. The number of parallel attention heads, for the first... Each attention head, and its corresponding query, key, and value tensors are represented as follows: , and Subsequently, regarding the first Each attention head applies a self-attention mechanism, as shown below:
[0116]
[0117] In the formula, Indicates the first The output of each attention head; Represents the dimension of the key tensor; Indicates transpose;
[0118] The outputs of all attention heads are concatenated in the last dimension to obtain the final multi-head attention output:
[0119]
[0120] in, It is a learnable linear projection matrix used to map the concatenated multi-head outputs back to the model's embedding dimension. ;
[0121] S4.2 Feature-to-Time Cross-Attention;
[0122] The reshaped As a query, As keys and values, this design enables the model to identify the most critical time steps in each feature channel. Its architecture Figure 4 As shown.
[0123] , , The matrix is constructed as follows:
[0124]
[0125]
[0126]
[0127] Subsequently, on the first Each attention head applies a self-attention mechanism, as shown below:
[0128]
[0129] Finally, the outputs of all attention heads are concatenated in the last dimension to obtain the final multi-head attention output:
[0130]
[0131] S4.3 output generation;
[0132] Obtaining time-aware path output and feature-aware path output After that, first of all Rearrange to match The shape, denoted as Then, the features are concatenated along the last dimension to form a joint feature representation, which is expressed as follows:
[0133]
[0134] Subsequently, the spliced features are compressed and integrated through feature fusion operations:
[0135]
[0136] In the formula, , Represents the weight matrix; This represents the GELU activation function; for and The joint feature representation obtained by concatenating the last dimension; for The fusion feature obtained after compression and integration operations;
[0137] To further enhance representation capabilities and stabilize the training process, the fused features are then processed through a residual MLP module with layer normalization, which is formally represented as follows:
[0138]
[0139] In the formula, This represents the final output of the bidirectional temporal-feature attention module.
[0140] S5. Input the high-dimensional temporal features output by the bidirectional temporal-feature attention module into the classifier and map them to obtain the final flight risk event prediction probability result;
[0141] Output from the bidirectional temporal-feature attention module First, aggregation is performed along the feature dimension, and then expansion is performed along the time dimension to obtain the feature vector. eigenvectors It is then fed into a classifier to obtain the probability of each event category;
[0142]
[0143] In the formula, This represents the predicted probability distribution for each event category; , Represents the weight matrix; This represents the bias vector of the first fully connected layer; This represents the bias vector of the second fully connected layer. The ReLU activation function is used to introduce non-linearity, thereby enhancing the model's representational power; while the Dropout operation randomly deactivates some neurons during training to reduce overfitting and improve the model's generalization performance.
[0144] S6. By using a gradient-based interpretable module, the Grad-CAM method is employed to reveal the region of interest of the model in the time and feature dimensions through gradient backpropagation, generating a visual heatmap to help identify the root cause of risk events.
[0145] In this invention, we introduce a gradient-based interpretability module into the proposed model to quantify the contribution of different time segments and feature dimensions in the input data to the final prediction result. The core idea is to evaluate the importance of each feature map in a specific category by analyzing the gradient information of the model output relative to the intermediate feature representation. Specifically, the raw flight parameter data is first processed by time-to-feature cross-attention and feature-to-time cross-attention modules to fully extract temporal and feature information. Based on this, after applying the ReLU activation function, Grad-CAM further calculates the contribution of each feature map to the target category and generates corresponding heatmaps to visually demonstrate the importance of different features and time windows in the model's decision-making process.
[0146] 1) Significance calculation
[0147] Grad-CAM is used to calculate the contribution of each feature map and its corresponding time window to the final classification result. Let... Indicates the model output, The cross-attention matrix represents the time-to-feature representation. This represents the feature-to-time cross-attention matrix. For each... and The gradient is calculated as follows:
[0148]
[0149] Where t represents the time step and f represents the number of features. and These represent the values of the attention matrix at positions (t,f) and (f,t), respectively.
[0150] 2) Global average pooling
[0151] for and The importance weights are calculated using average pooling, which involves averaging the gradient along the corresponding dimension to obtain the weight coefficients, expressed as follows:
[0152]
[0153] 3) Grad-CAM calculation
[0154] Grad-CAM calculates the final saliency map by weighting the attention matrix with corresponding importance coefficients and then applying the ReLU activation function. Its calculation process can be represented as follows:
[0155]
[0156]
[0157] 4) Heatmap generation
[0158] The Grad-CAM heatmap, weighted based on a bidirectional attention mechanism, is generated, and its final calculation is shown below:
[0159]
[0160] This heatmap clearly shows the features and time windows that the model focuses on when abnormal events occur, thus providing valuable explanations for understanding the model's decision-making process.
[0161] This invention also provides a flight risk prediction system based on an interpretable bidirectional temporal-feature attention network, comprising:
[0162] The multi-scale TCN embedding module is used to receive raw QAR flight data, extract multi-scale time features and unify sequence length, and map flight parameters to a high-dimensional feature space.
[0163] The preliminary temporal-feature encoding module uses parallel LSTM and SEBlock structures to extract temporal dynamic features and adaptively enhance key flight feature channels, respectively.
[0164] The bidirectional temporal-feature attention module uses two cross-attention paths, time-to-feature and feature-to-time, to collaboratively model the coupling dependency between the temporal dimension and the flight feature dimension, and outputs a joint feature that integrates temporal and feature information.
[0165] The classifier receives the joint features output by the bidirectional temporal-feature attention module and outputs the prediction results of hard landing and tail-flying risk events;
[0166] The gradient-based interpretable module calculates the contribution weights of each time window and each flight parameter to the prediction results based on Grad-CAM gradient backpropagation, and generates a risk source heat map.
[0167] I. Experimental Data and Environment
[0168] To verify the effectiveness of this invention, the datasets used were derived from Airbus A320 flights operated by two Chinese airlines in 2018, collected based on real QAR flight records. The first dataset contains 9,203 flight samples, and the second dataset contains 23,210 flight samples, each represented as a multivariate time series. This paper selects 17 representative flight parameters for analysis, such as engine thrust parameters (N11 and N12), altitude, and vertical acceleration, covering the complete flight process from takeoff to landing. This dataset is large in scale, has a clear temporal structure, and exhibits significant temporal dynamics. Table 1 summarizes the names, physical meanings, and sampling frequencies of each parameter. The sampling frequencies of these parameters range from 1 Hz to 8 Hz, with parameters having a sampling frequency of 1 Hz classified as low-frequency variables, and those with sampling frequencies higher than 1 Hz considered as high-frequency variables. To evaluate the innovativeness and effectiveness of this invention, the original dataset was first divided into a training set and a test set by stratified random sampling in a 7:3 ratio. Then, the heavy landing and tail-scratching samples in the training set were oversampled, and the normal landing and tail-scratching samples in the test set were downsampled, thereby achieving a balance between the categories.
[0169] Table 1 QAR Parameter Description
[0170]
[0171] The experimental environment configuration used in this invention is shown in Table 2:
[0172] Table 2 Experimental Environment Configuration
[0173]
[0174] II. Experiment Setup
[0175] This paper focuses on analyzing flight data corresponding to the aircraft landing phase. Based on industry research and consultation with flight operation experts, the thresholds for hard landings and tail-scratching risk events were set at 1.5 g and 6.3°, respectively. According to the above standards, Dataset 1 contains 96 hard landing samples, 128 tail-scratching risk event samples, and 8,979 normal landing samples; Dataset 2 contains 161 hard landing samples, 235 tail-scratching risk event samples, and 22,814 normal landing samples.
[0176] The implementation details of training the IBTFAN model include: the number of heads for multi-head attention is set to 3, the embedding dimension of the multi-scale TCN embedding module is set to 64, and the batch size and learning rate are set to 256 and 10, respectively. −4 To mitigate overfitting, the weight decay was also set to 10. −5 Experiments were conducted using Python 3.9.0 and PyTorch 1.10.1 over 20 epochs. Average performance is reported, with classification performance evaluated using four metrics: overall accuracy (OA), macro-recall (macro-R), macro-precision (macro-P), and macro-F1 score (macro-F1).
[0177] III. Benchmark Model and Comparison Results
[0178] This experiment selected a model that has recently performed well in predicting hard landing and tail-scratching risk events as the baseline model. Considering that hard landing and tail-scratching risk event prediction is a multi-class classification problem involving multiple time series data, this invention also adopted a model that has demonstrated excellent classification performance across numerous relevant datasets and tasks as the baseline. Specifically:
[0179] SVM: A commonly used machine learning classification model, known for its strong generalization ability and good adaptability to high-dimensional data.
[0180] LSTM: A model suitable for multivariate time series classification that can learn long-term dependencies in time series data.
[0181] MDGNN: A model that combines Temporal Convolutional Networks and Dynamic Graph Neural Networks to predict risk events through multi-scale temporal encoding and spatiotemporal modeling.
[0182] Crossformer: A model that employs a two-stage attention mechanism to model dependencies between variables at multiple time scales and long-term time dependencies.
[0183] iTransformer: A model that treats variables as “tokens” and performs an attention mechanism in the time dimension, thereby effectively modeling long-range time dependencies in multivariate time series.
[0184] Pathformer: A dynamic multi-path Transformer model that uses an adaptive routing mechanism to select among multiple transformation paths with different receptive fields, thereby effectively modeling short-term fluctuations and long-term dependencies in multivariate time series.
[0185] Given the baseline model's requirement for consistent input sequence length, this invention calculates the average number of observations per second for high sampling frequency parameters to standardize the sequence length for all parameters. To ensure fair comparisons between different methods, this invention carefully tunes the hyperparameters of the baseline model using a cross-validation strategy.
[0186] Table 3 presents the performance comparison results of the baseline model and the proposed IBTFAN model on two datasets, with the best results highlighted in bold. Experimental results show that the IBTFAN model achieves best or highly competitive performance on all evaluation metrics, significantly outperforming other baseline methods. Compared with traditional machine learning models such as SVM and classic deep learning models such as LSTM, the IBTFAN model achieves higher classification accuracy. Furthermore, compared with advanced deep learning methods such as MDGNN and iTransformer, IBTFAN demonstrates a stronger ability to capture the intrinsic correlation between temporal dynamic features and feature representations. Notably, IBTFAN exceeds 90% on all evaluation metrics, further validating its effectiveness in time series classification tasks and demonstrating its significant potential in practical applications.
[0187] Table 3. Classification results of IBTFAN and the baseline model in experiments with two datasets.
[0188]
[0189] IV. Explainable Experiments
[0190] To verify the interpretability of the IBTFAN model, hard landing and tail-striking risk samples from the test set were input into the trained IBTFAN model for in-depth analysis. Specifically, the Grad-CAM method was used to visualize the feature representations of the time-to-feature cross-attention and feature-to-time cross-attention modules. This visualization process effectively integrates flight parameter information and temporal features, thereby more clearly and intuitively identifying the key flight parameters leading to hard landing and tail-striking risk events and their corresponding key time windows. This further reveals the potential coupling relationship between flight parameters and the time dimension, enhancing the interpretability and credibility of the model's prediction results.
[0191] Figure 5 and Figure 6 This demonstrates a typical tail-grinding event. Among them, Figure 6 The horizontal axis of each sub-graph represents time, and the vertical axis represents the value of the corresponding flight parameter. The red curve shows the trend of key flight parameters for abnormal flights over time, while the blue curve shows the average trend of corresponding parameters for all normal landing flights. Figure 5 and Figure 6 As shown, RADIO_LH, RADIO_RH, PITCH, PITCH_CMD, and wind field-related parameters WIN_CRS and WIN_ALG played crucial roles in the tail-strike event. Among these, anomalous changes in PITCH and PITCH_CMD had the most significant impact on tail-strike risk, especially in the approximately 5 seconds before touchdown. Simultaneously, the rapid descent of radio altitude and changes in the external wind field further reduced landing stability. The results indicate that this tail-strike event was the result of the combined effects of anomalous fluctuations in flight parameters and pilot maneuvers, with the critical time window before touchdown having a significant impact on tail-strike risk.
[0192] Figure 7 and Figure 8 This demonstrates a typical hard landing event. For example... Figure 7 and Figure 8 As shown, IAS, IVV, RADIO_LH, RADIO_RH, PITCH, ROLL, N11, N12, and WIN_CRS are of high importance in hard landing events. Among them, persistent anomalies in IAS, radio altitude, and engine speed within approximately 30 seconds before touchdown have a long-term impact on hard landing risk; while significant anomalies in IVV within approximately 6 seconds before touchdown, and significant fluctuations in PITCH and ROLL within approximately 5 seconds before touchdown, have the most significant impact on hard landing risk. The results indicate that pilot control, abnormal aircraft attitude, and external environmental factors jointly lead to hard landing events, with approximately 5 seconds before touchdown being the most critical time window.
[0193] V. Ablation Experiment
[0194] To verify the effectiveness of key components that enhance the performance of the IBTFAN model, ablation experiments were also conducted, the results of which are detailed in Table 4. IBTFAN model variants lacking specific components are as follows:
[0195] Table 4 Ablation studies of the two datasets
[0196]
[0197] IBTFAN TFMSA-: The IBTFAN model omits cross-attention between time and features. This prevents the model from effectively capturing the relative importance of different feature channels at each time step. Consequently, the model's ability to identify key information variables is weakened, leading to a decline in overall performance.
[0198] IBTFAN FTMSA-: The IBTFAN model omits the cross-attention from features to time. The model fails to effectively capture the most informative positions of key variables in the time dimension. Therefore, its ability to model key temporal patterns is weakened, leading to a decline in overall performance.
[0199] As shown in Table 4, the following conclusions can be drawn: the time-to-feature cross-attention module plays a crucial role in enhancing the model's understanding of important variables at each time point, while the feature-to-time cross-attention module plays a significant role in enhancing the model's understanding of the importance of key variables over time. Removing either the time-to-feature cross-attention module or the feature-to-time cross-attention module leads to a decrease in model performance. This indicates that each module in the IBTFAN model plays an indispensable role in improving the model's classification ability. Overall, the ablation experiments clearly verify the significant contributions of each component module to the overall performance of the IBTFAN model.
[0200] VI. Classification results with different hyperparameter settings
[0201] Finally, the impact of hyperparameters, namely embedding dimension d_model, attention head number nheads, and learning rate, on classification performance was explored.
[0202] like Figure 9 As shown, experimental results indicate that the embedding dimension d_model and the number of attention heads nheads have a significant impact on model performance. With the increase of d_model and nheads, model performance initially improves and then declines, achieving the best results at d_model=64 and nheads=3. This demonstrates that reasonable parameter settings can enhance feature representation capabilities, while excessively large parameter sizes may introduce redundant information and reduce the model's generalization ability.
[0203] likeFigure 10 As shown, the learning rate has a significant impact on model performance. Experimental results indicate that as the learning rate gradually increases from a small value, the F1 score improves, suggesting that a larger learning rate can accelerate model convergence and update parameters more effectively. However, when the learning rate is too large, the F1 score decreases, which may be due to training instability or gradient overshoot, thus weakening the model's generalization ability.
[0204] It is hereby declared that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A flight risk prediction method based on an interpretable bidirectional temporal-feature attention network, characterized in that, Includes the following steps: S1. Acquire multi-source heterogeneous flight multivariate time series data collected by the Quick Access Recorder (QAR); S2. By using a multi-scale TCN embedding module, a dedicated TCN branch is constructed for flight parameters with different sampling frequencies, multi-scale time features are extracted and the sequence length is unified. Then, the embedding layer is used to map to a high-dimensional feature space to enhance the ability to model cross-variable dependencies and time dependencies. S3. Input the output of the multi-scale TCN embedding module into the preliminary time-feature encoding module, and use the parallel LSTM-SEBlock architecture to jointly model the time information and feature information; The LSTM branch captures long-term dependencies and dynamic evolution patterns in time series data, transforming input features into features with time-enhanced properties. The SEBlock branch adaptively learns the importance of each feature channel, strengthens key variables, and suppresses redundant information. S4. Input the output of the initial temporal-feature encoding module into the bidirectional temporal-feature attention module. Through time-to-feature cross-attention, the influence of different time points on the feature response is characterized to model the modulation effect of time changes on variable behavior. Through feature-to-time cross-attention, the importance distribution of variables in the time dimension is characterized to capture the dynamic evolution pattern of variables. The outputs of the two attention paths are spliced and fused to obtain the joint feature representation. S5. Input the high-dimensional temporal features output by the bidirectional temporal-feature attention module into the classifier and map them to obtain the final flight risk event prediction probability result; S6. By using a gradient-based interpretable module, the Grad-CAM method is employed to reveal the region of interest of the model in the time and feature dimensions through gradient backpropagation, generating a visual heatmap to help identify the root cause of risk events.
2. The flight risk prediction method based on an interpretable bidirectional temporal-feature attention network according to claim 1, characterized in that, The processing steps of the multi-scale TCN embedding module specifically include: Each flight parameter is independently processed by two 3×1 convolution operations, weight normalization, ReLU activation function and Dropout. Residual connections are introduced to alleviate the gradient vanishing problem. Then the output feature map is compressed into a single-channel representation by 1×1 convolution. Linear interpolation is used to resample the feature maps of all flight parameters to a fixed uniform time length. All processed features are concatenated in the channel dimension and finally mapped to a high-dimensional feature space of a specified dimension.
3. The flight risk prediction method based on an interpretable bidirectional temporal-feature attention network according to claim 2, characterized in that, The calculation process of the SEBlock branch specifically includes: I. Compression: Given an input tensor In the feature dimension Perform global average pooling on top; In the formula, This represents the representation after global aggregation along the feature dimension; To output tensor The value of the element at the nth row and mth column; This represents the original element value of the input tensor X at the d-th feature dimension, the n-th position, and the m-th channel. II. Stimulation: By explicitly modeling the dependencies between channels, the characteristic responses of each channel are adaptively recalibrated; ; In the formula, and These represent the weight matrices of the two fully connected layers, respectively. Represents the ReLU activation function; Represents the Sigmoid function; Represents channel-level attention weights; ⊙ represents element-wise multiplication; This indicates the final output of SEBlock.
4. The flight risk prediction method based on an interpretable bidirectional temporal-feature attention network according to claim 3, characterized in that, Step S4 includes the following sub-steps: S4.1 Cross-attention from time to feature; The reshaped As a query, The Q, K, and V matrices, serving as keys and values, are constructed as follows: In the formula, , , It is a learnable linear projection matrix; For the reshaped feature tensor containing time-dimensional information; Represents the query matrix; Represents the key matrix; Represents a value matrix; The projected feature representation is divided into the last dimension. The number of parallel attention heads, for the first... Each attention head, and its corresponding query, key, and value tensors are represented as follows: , and Subsequently, regarding the first Each attention head applies a self-attention mechanism, as shown below: In the formula, Indicates the first The output of each attention head; Represents the dimension of the key tensor; Indicates transpose; The outputs of all attention heads are concatenated in the last dimension to obtain the final multi-head attention output: in, It is a learnable linear projection matrix used to map the concatenated multi-head outputs back to the model's embedding dimension. ; S4.2 Feature-to-Time Cross-Attention; The reshaped As a query, Using key and value pairs, a multi-head attention computation logic consistent with time-to-feature cross-attention is employed to identify the most critical time step in each feature channel, thereby obtaining the final multi-head attention output. ; S4.3 output generation; Will Rearrange to match The shape, denoted as Then, the features are concatenated along the last dimension to form a joint feature representation, which is expressed as follows: Subsequently, the spliced features are compressed and integrated through feature fusion operations: In the formula, , Represents the weight matrix; This represents the GELU activation function; for and The joint feature representation obtained by concatenating the last dimension; for The fusion feature obtained after compression and integration operations; The fused features are then processed through a residual MLP module with layer normalization: In the formula, This represents the final output of the bidirectional temporal-feature attention module.
5. The flight risk prediction method based on an interpretable bidirectional temporal-feature attention network according to claim 4, characterized in that, The specific content of step S5 is as follows: Output from the bidirectional temporal-feature attention module First, aggregation is performed along the feature dimension, and then expansion is performed along the time dimension to obtain the feature vector. eigenvectors It is then fed into a classifier to obtain the probability of each event category; In the formula, This represents the predicted probability distribution for each event category; , Represents the weight matrix; This represents the bias vector of the first fully connected layer; This represents the bias vector of the second fully connected layer.
6. The flight risk prediction method based on an interpretable bidirectional temporal-feature attention network according to claim 5, characterized in that, The processing steps of the gradient-based interpretable module specifically include: The gradients of the model output relative to each position of the attention matrix are calculated for the cross-attention matrix from time to feature and the cross-attention matrix from feature to time, respectively. Global average pooling is performed on the gradients along the corresponding dimensions to obtain importance weight coefficients. The attention matrix is weighted using these weight coefficients and the ReLU activation function is applied to calculate the final saliency map. The generated heatmap can intuitively show the contribution of different flight features and time windows in the model decision-making process.
7. A flight risk prediction system based on an interpretable bidirectional temporal-feature attention network, characterized in that, include: The multi-scale TCN embedding module is used to receive raw QAR flight data, extract multi-scale temporal features and unify sequence length, and map flight parameters to a high-dimensional feature space. The preliminary temporal-feature encoding module uses parallel LSTM and SEBlock structures to extract temporal dynamic features and adaptively enhance key flight feature channels, respectively. The bidirectional temporal-feature attention module uses two cross-attention paths, time-to-feature and feature-to-time, to collaboratively model the coupling dependency between the temporal dimension and the flight feature dimension, and outputs a joint feature that integrates temporal and feature information. The classifier receives the joint features output by the bidirectional temporal-feature attention module and outputs the prediction results of hard landing and tail-flying risk events. The gradient-based interpretable module calculates the contribution weights of each time window and each flight parameter to the prediction results based on Grad-CAM gradient backpropagation, and generates a risk source heat map.
