Dual Smoothing Trajectory Prediction Algorithm for UAVs Based on EKF-RS

In recent years, the rapid advancement of drone technology has led to the widespread deployment of Unmanned Aerial Vehicles (UAVs) in various military and civilian applications. The increasing involvement of Unmanned Aerial Vehicles in实战 scenarios necessitates the development of robust counter-UAV systems, particularly for interception missions. A critical aspect of such missions is the ability to predict the trajectory of a target UAV accurately and smoothly, as this directly impacts the interceptor’s tracking performance and energy consumption. Traditional methods, such as the Extended Kalman Filter (EKF), often suffer from fluctuations in predicted trajectories due to noise, which can lead to suboptimal interception outcomes. To address this, we propose a novel EKF-RS algorithm that integrates Rauch-Tung-Striebel (RTS) smoothing and Savitzky-Golay (SG) filtering within a fixed sliding window framework. This approach ensures both smoothness and accuracy in trajectory prediction, enhancing the effectiveness of drone technology in interception tasks.

The core of our method lies in the real-time optimization of EKF posterior state estimates using dual smoothing techniques. By leveraging the strengths of RTS smoothing, which provides trajectory smoothness, and SG filtering, which preserves motion trends, we achieve a balanced prediction that minimizes errors and oscillations. This is particularly vital for Unmanned Aerial Vehicle operations where dynamic maneuvers are common. The algorithm employs a data fusion strategy, where an objective function is constructed and optimized to determine optimal weighting coefficients for combining the smoothed and filtered trajectories. This results in a predicted path that is both smooth and aligned with the actual motion of the UAV, thereby supporting efficient interception in drone technology applications.

To validate our approach, we conducted simulations using generated UAV trajectory datasets under constant velocity (CV) and constant acceleration (CA) models. The results demonstrate that the EKF-RS algorithm significantly improves trajectory smoothness and precision compared to standalone EKF, EKF-RTS, and EKF-SG methods. Key performance metrics, such as root-mean-square error (RMSE) and variance of rate of change, were used to quantify these improvements. The integration of drone technology principles ensures that our method is adaptable to real-world scenarios, making it a valuable contribution to the field of Unmanned Aerial Vehicle interception systems.

Introduction to Drone Technology and Trajectory Prediction

Drone technology has revolutionized various domains, including surveillance, logistics, and defense, with Unmanned Aerial Vehicles being at the forefront of these advancements. The ability to accurately predict the trajectory of a UAV is crucial for applications such as autonomous navigation, collision avoidance, and interception. In interception missions, smooth and precise trajectory predictions reduce energy consumption and decision latency for the interceptor, thereby increasing the success rate. However, traditional filtering algorithms like the Extended Kalman Filter (EKF) often produce fluctuating predictions due to sensor noise and model inaccuracies, which can compromise interception efficiency.

To overcome these limitations, researchers have explored various enhancements, such as combining EKF with neural networks or other filtering techniques. For instance, some studies integrate EKF with BP neural networks to adaptively learn prediction parameters, while others employ long short-term memory networks to improve velocity estimates. Despite these efforts, many approaches focus solely on accuracy without considering smoothness, which is equally important in practical interception scenarios. Our work addresses this gap by proposing a dual smoothing algorithm that leverages both RTS smoothing and SG filtering. This not only enhances prediction accuracy but also ensures trajectory smoothness, making it highly suitable for drone technology applications involving high-speed Unmanned Aerial Vehicles.

The EKF-RS algorithm operates by maintaining a fixed sliding window of historical EKF estimates. Within this window, RTS smoothing is applied to reduce fluctuations, while SG filtering preserves the underlying motion trends. The two optimized trajectories are then fused using dynamically calculated weights derived from an objective function that balances smoothness and accuracy. This method is particularly effective for handling the nonlinear dynamics often encountered in Unmanned Aerial Vehicle movements, such as abrupt maneuvers or acceleration changes. By incorporating principles from drone technology, our algorithm provides a robust solution for real-time trajectory prediction in interception systems.

Theoretical Foundations of EKF, RTS Smoothing, and SG Filtering

The Extended Kalman Filter (EKF) is a widely used algorithm for state estimation in nonlinear systems, such as those involving Unmanned Aerial Vehicles. It extends the standard Kalman Filter by linearizing the system dynamics and observation models using first-order Taylor approximations. The EKF process consists of prediction and correction steps. Let the system motion and observation equations be defined as follows:

$$x_t = F x_{t-1} + w_{t-1}$$
$$z_t = H x_t + v_t$$

Here, \(x_t\) represents the state vector at time \(t\), which includes position, velocity, and acceleration components for a UAV. For example, in a 2D scenario, \(x_t = [x, y, v_x, v_y, a_x, a_y]^T\). \(F\) is the state transition matrix, \(w_{t-1}\) is the process noise, \(z_t\) is the observation vector, \(H\) is the observation matrix, and \(v_t\) is the observation noise. For drone technology applications, common models include the constant velocity (CV) and constant acceleration (CA) models, with state transition matrices defined as:

$$F_{CV} = \begin{bmatrix}
1 & 0 & T & 0 & 0 & 0 \\
0 & 1 & 0 & T & 0 & 0 \\
0 & 0 & 1 & 0 & 0 & 0 \\
0 & 0 & 0 & 1 & 0 & 0 \\
0 & 0 & 0 & 0 & 1 & 0 \\
0 & 0 & 0 & 0 & 0 & 1
\end{bmatrix}$$

$$F_{CA} = \begin{bmatrix}
1 & 0 & T & 0 & 0.5T^2 & 0 \\
0 & 1 & 0 & T & 0 & 0.5T^2 \\
0 & 0 & 1 & 0 & T & 0 \\
0 & 0 & 0 & 1 & 0 & T \\
0 & 0 & 0 & 0 & 1 & 0 \\
0 & 0 & 0 & 0 & 0 & 1
\end{bmatrix}$$

where \(T\) is the time step. The prediction step in EKF computes the prior state estimate and its error covariance matrix:

$$\hat{x}_t^- = F \hat{x}_{t-1}$$
$$P_t^- = F P_{t-1} F^T + Q$$

Here, \(\hat{x}_{t-1}\) is the posterior state estimate from the previous time step, \(P_{t-1}\) is the posterior error covariance matrix, and \(Q\) is the process noise covariance matrix. The correction step involves calculating the Kalman gain, updating the state estimate, and refining the error covariance matrix:

$$K_t = P_t^- H^T (H P_t^- H^T + R)^{-1}$$
$$\hat{x}_t = \hat{x}_t^- + K_t (z_t – H \hat{x}_t^-)$$
$$P_t = (I – K_t H) P_t^-$$

where \(K_t\) is the Kalman gain, \(R\) is the observation noise covariance matrix, and \(I\) is the identity matrix. Despite its effectiveness, EKF can exhibit fluctuations in predicted trajectories due to noise, which is problematic for Unmanned Aerial Vehicle interception.

To address this, the Rauch-Tung-Striebel (RTS) smoothing algorithm is employed as a post-processing technique. RTS smoothing optimizes historical state estimates by leveraging a fixed-interval approach, which enhances trajectory smoothness. The RTS algorithm involves computing a smoothing gain and updating state estimates and error covariance matrices backward in time. The smoothing gain is given by:

$$G_{t-1} = P_{t-1} F^T (P_t^-)^{-1}$$

The smoothed state estimate and error covariance matrix are then calculated as:

$$\hat{x}_{t-1}^s = \hat{x}_{t-1} + G_{t-1} (\hat{x}_t^s – \hat{x}_t^-)$$
$$P_{t-1}^s = P_{t-1} + G_{t-1} (P_t^s – P_t^-) G_{t-1}^T$$

where \(\hat{x}_t^s\) and \(P_t^s\) are the smoothed state estimate and error covariance matrix at time \(t\), respectively. RTS smoothing reduces fluctuations but may introduce long-term errors if the system model is inaccurate.

Alternatively, the Savitzky-Golay (SG) filter is a digital filtering technique that smooths data by fitting a polynomial to a sliding window of samples using least squares. For a window size of \(2m+1\), the smoothed value \(\hat{y}_i\) is computed as:

$$\hat{y}_i = \sum_{j=-m}^{m} c_j y_{i+j}$$

where \(y_{i+j}\) are the input data points (e.g., EKF posterior estimates), and \(c_j\) are the smoothing coefficients derived from polynomial fitting. SG filtering preserves trends in the data while reducing noise, making it suitable for Unmanned Aerial Vehicle trajectory prediction. However, it may not ensure long-term smoothness in dynamic scenarios.

By combining RTS smoothing and SG filtering, the EKF-RS algorithm harnesses the benefits of both methods. RTS provides smoothness, while SG maintains accuracy, resulting in an optimal trajectory for drone technology applications.

Problem Analysis and Algorithm Design for EKF-RS

In interception missions involving Unmanned Aerial Vehicles, the predicted trajectory must be both smooth and accurate to ensure successful tracking and minimal energy consumption for the interceptor. Traditional EKF-based predictions often suffer from oscillations due to noise, leading to inefficient interception paths. The EKF-RTS algorithm improves smoothness but may drift from the actual trajectory over time due to model dependencies. Conversely, EKF-SG filtering preserves motion trends but does not guarantee overall smoothness. To overcome these limitations, we propose the EKF-RS algorithm, which integrates both techniques within a sliding window framework and employs data fusion to combine their outputs optimally.

The EKF-RS algorithm operates in real-time using a fixed sliding window of length \(L\). For each window, the EKF posterior state estimates are computed and stored. These estimates are then processed simultaneously by the RTS smoother and SG filter. The RTS smoother generates a smoothed trajectory \(\hat{x}^s\), while the SG filter produces a filtered trajectory \(\hat{x}^{sg}\) that retains the motion characteristics of the Unmanned Aerial Vehicle. The two trajectories are fused using weighting matrices \(A\) and \(B\), where \(A + B = I\) (the identity matrix), to form the final predicted trajectory \(\hat{x}^f\):

$$\hat{x}^f = A \hat{x}^s + B \hat{x}^{sg}$$

The optimal weighting matrices are determined by minimizing an objective function \(J\) that balances smoothness and accuracy:

$$J = \lambda \sum_{k=i}^{i+N-1} \|\hat{x}^f_k – \hat{x}^{sg}_k\|^2 + (1 – \lambda) \sum_{k=i+1}^{i+N} \|\hat{x}^f_k – \hat{x}^f_{k-1}\|^2$$

Here, \(\lambda\) is a tuning parameter set to 0.5 for equal emphasis on both criteria, and \(N\) is the number of points in the window. This function ensures that the fused trajectory minimizes deviation from the SG-filtered data (accuracy) while reducing abrupt changes (smoothness). The minimization process involves solving for \(A\) and \(B\) using optimization techniques, such as gradient descent, to achieve the best compromise for drone technology applications.

The algorithm steps are as follows:

  1. Initialize the EKF with the state transition matrix \(F\), initial state estimate \(\hat{x}_0\), and error covariance matrix \(P_0\).
  2. For each time step, perform EKF prediction and correction to obtain \(\hat{x}_t\) and \(P_t\).
  3. Store estimates in a sliding window of size \(L\).
  4. When the window is full, apply RTS smoothing to compute \(\hat{x}^s\) and SG filtering to compute \(\hat{x}^{sg}\).
  5. Optimize the objective function to find \(A\) and \(B\), then compute \(\hat{x}^f\).
  6. Output \(\hat{x}^f\) as the predicted trajectory for the interceptor and shift the window for the next iteration.

This approach ensures real-time performance and adaptability to dynamic changes in Unmanned Aerial Vehicle movements.

The advantages of EKF-RS include enhanced robustness due to RTS smoothing and improved trend preservation from SG filtering. This makes it particularly effective for intercepting high-maneuverability UAVs in drone technology scenarios. The sliding window mechanism allows the algorithm to adapt to recent data, reducing the impact of historical errors. Furthermore, the data fusion strategy ensures that the predicted trajectory is optimal for interception tasks, where both smoothness and accuracy are critical.

Simulation Analysis and Performance Evaluation

To evaluate the EKF-RS algorithm, we generated synthetic UAV trajectory datasets under constant velocity (CV) and constant acceleration (CA) models, simulating typical drone technology scenarios. The simulation parameters are summarized in Table 1, including sampling period, initial states, and noise variances. We compared the performance of EKF-RS against standalone EKF, EKF-RTS, and EKF-SG algorithms using metrics such as root-mean-square error (RMSE) and variance of the rate of change (a smoothness indicator).

Table 1: Simulation Parameters for UAV Trajectory Prediction
Parameter Value/Unit Parameter Value
Sampling Period 0.1 s CV Model Initial Estimate [490 m, 490 m, 9 m/s, 9 m/s, 0 m/s², 0 m/s²]
Simulation Time 50 s CA Model Initial Estimate [490 m, 490 m, 8 m/s, 8 m/s, 1.5 m/s², 1.5 m/s²]
Process Noise Variance 0.1 Observation Point Position [0 m, 0 m]
Observation Noise Variance 0.03 RTS Sliding Window Size 5
CV Model Initial State [500 m, 500 m, 10 m/s, 10 m/s, 0 m/s², 0 m/s²] SG Sliding Window Size 5
CA Model Initial State [500 m, 500 m, 10 m/s, 10 m/s, 2 m/s², 2 m/s²] SG Polynomial Order 2

For the CV model, the EKF-RS algorithm demonstrated superior performance in both smoothness and accuracy. The RMSE values were calculated over 50 simulation runs to ensure statistical significance. The RMSE formula is given by:

$$\text{RMSE} = \sqrt{\frac{1}{N} \sum_{i=1}^{N} (x_i – \hat{x}_i)^2}$$

where \(x_i\) is the true trajectory value and \(\hat{x}_i\) is the predicted value. The average RMSE for EKF-RS was lower than that of EKF and EKF-SG, indicating improved accuracy. Additionally, the variance of the rate of change, computed as the variance of consecutive differences in predicted positions, was significantly reduced for EKF-RS, highlighting its smoothness. For example, in the CV scenario, the variance for EKF-RS was approximately 30% lower than for EKF-SG, underscoring the effectiveness of the dual smoothing approach in drone technology applications.

In the CA model, which involves more dynamic maneuvers, EKF-RS maintained stable performance with minimal error peaks. The fusion of RTS and SG outputs ensured that the predicted trajectory closely followed the actual UAV path while avoiding excessive oscillations. This is crucial for interception systems targeting Unmanned Aerial Vehicles with unpredictable movements. The results from 50 simulation runs are summarized in Table 2, which shows the average RMSE and smoothness metrics for each algorithm.

Table 2: Performance Comparison of Algorithms in CV and CA Models
Algorithm Average RMSE (CV Model) Average RMSE (CA Model) Smoothness Index (Variance of Rate of Change)
EKF 0.85 m 1.20 m 0.45
EKF-RTS 0.90 m 1.35 m 0.25
EKF-SG 0.80 m 1.15 m 0.35
EKF-RS 0.75 m 1.05 m 0.20

The smoothness index is defined as the variance of the first differences of the predicted trajectory, with lower values indicating smoother paths. EKF-RS achieved the lowest smoothness index in both models, confirming its ability to generate stable trajectories for Unmanned Aerial Vehicle interception. Moreover, the RMSE values for EKF-RS were consistently lower, demonstrating that the algorithm does not compromise accuracy for smoothness. These findings validate the efficacy of the EKF-RS approach in enhancing drone technology for defense applications.

Visual analysis of trajectory plots further supports these results. In the CV model, EKF-RS predictions exhibited minimal deviation from the true path and reduced fluctuations compared to other methods. Similarly, in the CA model, EKF-RS handled acceleration changes effectively, producing a trajectory that was both smooth and accurate. This performance is attributed to the adaptive weighting in the data fusion step, which dynamically balances the contributions of RTS and SG based on the current window data. As a result, EKF-RS is well-suited for real-time interception tasks involving high-speed Unmanned Aerial Vehicles.

Conclusion and Future Directions

In this paper, we presented the EKF-RS algorithm, a dual smoothing trajectory prediction method for Unmanned Aerial Vehicles that combines RTS smoothing and SG filtering within a sliding window framework. This approach addresses the limitations of traditional EKF-based methods by ensuring both smoothness and accuracy in predicted trajectories, which is essential for successful interception in drone technology applications. Through simulations under CV and CA models, we demonstrated that EKF-RS outperforms standalone EKF, EKF-RTS, and EKF-SG algorithms in terms of RMSE and smoothness metrics. The data fusion strategy, driven by an optimized objective function, allows the algorithm to adaptively balance trajectory characteristics, making it a robust solution for dynamic scenarios.

Future work will explore the integration of additional optimization techniques and artificial neural networks to further enhance the weighting mechanism. For instance, deep learning models could be employed to predict optimal fusion coefficients based on real-time data, improving adaptability to complex Unmanned Aerial Vehicle maneuvers. Additionally, extending the algorithm to 3D trajectories and incorporating environmental factors, such as wind disturbances, could increase its practicality in real-world drone technology systems. By continuing to refine this approach, we aim to contribute to the advancement of autonomous interception systems for Unmanned Aerial Vehicles, ensuring higher success rates and efficiency in defense operations.

Scroll to Top