In recent years, the advancement of sensor technology, wireless communication, and intelligent control has led to the widespread application of Unmanned Aerial Vehicles (UAVs) in both military and civilian domains. However, single UAVs face significant limitations due to restricted functionalities, lightweight payloads, and limited perception ranges, making it challenging to execute diverse tasks in complex environments. In contrast, coordinating multiple UAVs into a formation can overcome these shortcomings, enhancing overall system performance and offering substantial advantages in missions such as area coverage, reconnaissance, and search-and-rescue operations. Among these, fixed-wing drone formation presents unique challenges due to non-holonomic constraints and susceptibility to environmental disturbances like airspeed variations and crosswinds. Traditional methods, such as model predictive control or consensus theory, often rely on precise models of the platform and disturbances, which are difficult to obtain in dynamic and uncertain settings. To address this, model-free reinforcement learning (RL) has emerged as a promising alternative, enabling agents to learn optimal policies through interaction with the environment without requiring explicit models. In this work, we focus on the coordination control problem for fixed-wing drone formation in stochastic and uncertain environments, proposing a novel deep reinforcement learning-based approach to enable autonomous following and formation maintenance.
The coordination control of drone formation is formalized as a Markov Decision Process (MDP), where each follower UAV acts as an agent interacting with the environment. We consider a Leader-Follower topology, where a leader UAV broadcasts its state information to followers, and each follower must generate control commands, specifically roll angle setpoints, to maintain a desired positional relationship with the leader. The goal is for followers to stay within an annular region centered on the leader, as illustrated in the following representation of the drone formation scenario. The state representation for the system combines the relative positions, heading differences, and roll angles of the leader and followers. Let $\xi_l := [x_l, y_l, \psi_l, \phi_l]$ denote the leader’s state (position, heading, and roll angle), and $\xi_f := [x_f, y_f, \psi_f, \phi_f]$ denote the follower’s state. The joint system state $s$ is defined as:
$$ s = \begin{bmatrix} s_1 \\ s_2 \\ s_3 \\ s_4 \\ s_5 \\ s_6 \end{bmatrix} = \begin{bmatrix} \cos\psi_l & \sin\psi_l \\ -\sin\psi_l & \cos\psi_l \end{bmatrix} \begin{bmatrix} x_f – x_l \\ y_f – y_l \end{bmatrix}, \quad s_3 = \psi_f – \psi_l, \quad s_4 = \phi_f, \quad s_5 = \phi_l, \quad s_6 = \phi_l^d $$
where $\phi_l^d$ is the leader’s desired roll angle, introduced to account for environmental randomness. The action space $A$ for the follower is discrete, consisting of roll angle adjustments: $A := \{ -a_{\text{max}}, 0, +a_{\text{max}} \}$, with $a_{\text{max}}$ as the maximum roll action. The reward function $r$ is designed to encourage the follower to remain within the annular region and align with the leader’s heading:
$$ r = – \text{Cost}, \quad \text{Cost} = \max \left( d, \frac{d_1 |s_3|}{\pi} (1 + \omega d) \right) $$
$$ d = \max( d_1 – \rho, 0, \rho – d_2 ), \quad \rho = \sqrt{s_1^2 + s_2^2} $$
Here, $d_1$ and $d_2$ are the inner and outer radii of the annulus, $\rho$ is the distance between leader and follower, and $\omega$ is a weighting factor. This reward structure penalizes deviations from the desired formation, promoting stable drone formation coordination.
To model the stochastic dynamics of fixed-wing UAVs, we employ a kinematic model with random perturbations to account for environmental uncertainties. The state evolution is given by:
$$ \dot{\xi} = \frac{d}{dt} \begin{bmatrix} x \\ y \\ \psi \\ \phi \end{bmatrix} = \begin{bmatrix} v \cos\psi + \eta_x \\ v \sin\psi + \eta_y \\ -(\alpha_g / v) \tan\phi + \eta_\psi \\ f(\phi, \phi_d) \end{bmatrix} $$
where $v$ is the airspeed following a normal distribution $\mathcal{N}(\bar{v}, \sigma_v^2)$, $\eta_x, \eta_y, \eta_\psi$ are perturbation terms modeling environmental noise, and $f(\phi, \phi_d)$ represents the roll channel dynamics approximated by a second-order system with stochastic parameters. This model captures the randomness inherent in real-world drone formation flights, ensuring that learned policies are robust to variations.

Our approach leverages deep reinforcement learning, specifically an improved Deep Q-Network (DQN) algorithm, to solve this coordination control problem. We propose the Imitative Dueling Double Deep Q-Network (ID3QN) algorithm, which integrates several enhancements to boost learning efficiency and stability. First, we introduce the $\epsilon$-imitation action selection strategy, which combines the standard $\epsilon$-greedy exploration with an imitation policy. This strategy guides the follower to mimic the leader’s behavior based on relative state information, reducing无效 exploration and accelerating learning. The strategy is outlined as follows: when exploiting with probability $1-\epsilon$, the follower selects actions based on the leader’s heading and roll angle. For instance, if the heading difference exceeds a threshold $\psi_\delta$, the follower chooses a roll action to reduce this difference; if the headings are similar, it aligns its roll angle with the leader’s. This balances exploration and exploitation, crucial for efficient drone formation learning.
The core of ID3QN is a neural network architecture that combines dueling networks and double Q-learning. The network takes the joint state $s$ as input and outputs Q-values for each action. It consists of a multi-layer perceptron (MLP) with three fully connected layers (64, 256, and 128 nodes, using ReLU activations), followed by a dueling structure with two streams: one for estimating the state value function $V(s)$ and another for the advantage function $A(s, a)$. The final Q-value is computed as:
$$ Q(s, a; \theta) = V(s; \theta) + \left( A(s, a; \theta) – \frac{1}{|A|} \sum_{a’} A(s, a’; \theta) \right) $$
where $\theta$ represents the network parameters. This dueling architecture allows for better generalization across actions, particularly in drone formation tasks where some states require precise action evaluation. Double Q-learning is incorporated to mitigate overestimation bias by decoupling action selection and evaluation. The target Q-value $y_t$ for training is:
$$ y_t = r_{t+1} + \gamma Q(s_{t+1}, \arg\max_{a’} Q(s_{t+1}, a’; \theta); \theta^-) $$
where $\theta$ and $\theta^-$ are the parameters of the main and target networks, respectively, and $\gamma$ is the discount factor. The loss function minimized during training is:
$$ L(\theta) = \mathbb{E} \left[ (y_t – Q(s_t, a_t; \theta))^2 \right] $$
We employ experience replay with a buffer capacity of 100,000 transitions, sampling mini-batches of 32 for training. The exploration rate $\epsilon$ decays linearly from 1.0 to 0.1 over 10,000 episodes, while learning rates are adjusted exponentially. Key parameters for the ID3QN algorithm are summarized in Table 1, which provides a comprehensive overview of the experimental setup for drone formation coordination.
| Parameter | Value | Description |
|---|---|---|
| $d_1$ | 40 m | Inner radius of annulus |
| $d_2$ | 65 m | Outer radius of annulus |
| $\omega$ | 0.05 | Reward weighting factor |
| $\bar{v}$ | 10 m/s | Mean airspeed |
| $\sigma_v$ | 0.8 m/s | Airspeed standard deviation |
| $a_{\text{max}}$ | 15° | Maximum roll action |
| $\psi_\delta$ | 20° | Heading difference threshold |
| $\gamma$ | 0.95 | Discount factor |
| Batch size | 32 | Mini-batch size for training |
| Replay buffer size | 100,000 | Capacity of experience replay |
| Learning rate $\alpha$ | $10^{-3} \to 10^{-4}$ | Exponential decay |
| Target update rate $\tau$ | $10^{-2} \to 10^{-3}$ | Soft update rate |
To validate our ID3QN algorithm, we conducted extensive numerical simulations and hardware-in-the-loop experiments. In numerical simulations, we trained the policy for 50,000 episodes, each lasting 30 seconds, in a stochastic environment modeled by the kinematic equations above. We compared ID3QN against baseline algorithms such as Dueling Double DQN (D3QN) and Double DQN (DDQN), all using the same network architecture and parameters. The performance was evaluated using the average return per episode, defined as $G_{\text{Ave}} = \frac{1}{N_e N_s} \sum_{n=1}^{N_e} \sum_{t=1}^{N_s} r_{nt}$, where $N_e$ is the number of episodes and $N_s$ is the number of steps per episode. The learning curves, shown in Figure 1 (though not referenced by number), demonstrate that ID3QN achieves higher average returns and faster convergence compared to D3QN and DDQN, highlighting the effectiveness of the $\epsilon$-imitation strategy in drone formation coordination.
After training, we tested the learned policy in a scenario with one leader and two followers over 120-second simulations. The leader executed random roll commands, while followers used the trained ID3QN policy to select actions. The trajectories revealed that followers successfully maintained the annular formation, even during maneuvers such as turns and straight flights. For instance, when followers were ahead of the leader, they performed circling maneuvers to reduce distance, showcasing the policy’s adaptability. Quantitative results from 100 test episodes with four followers using different policies are summarized in Table 2. ID3QN achieved the highest average return and lowest variance, indicating robust performance in drone formation tasks.
| Policy | Average Return $G_{\text{Ave}}$ | Variance |
|---|---|---|
| ID3QN | -11.04 | 22.35 |
| D3QN | -11.61 | 26.71 |
| DDQN | -11.86 | 32.27 |
| Imitation | -39.39 | 596.42 |
To further assess practicality, we developed a high-fidelity semi-physical simulation system for hardware-in-the-loop experiments. The system includes a ground control station, X-Plane 10 flight simulator, Pixhawk autopilots, and NVIDIA Jetson TX2 onboard processors. The software architecture, built on ROS (Robot Operating System), integrates nodes for communication, flocking command (running ID3QN), control (PID-based), and MAVROS for interfacing with PX4 firmware. In experiments, a follower directly used the policy trained in numerical simulations without any fine-tuning, following a leader with random roll commands over 120 seconds. The results, depicted in trajectory plots, show that the follower consistently stayed within the desired annulus, with distance $\rho$ maintained below 75 m and heading difference $\Delta\psi$ within ±25° after initial adjustments. The immediate reward $r$ remained high throughout, confirming the policy’s effectiveness in real-time drone formation coordination. This seamless transfer from simulation to semi-physical environment underscores the adaptability and utility of our ID3QN approach for fixed-wing drone formation.
The success of our method can be attributed to several factors. First, the $\epsilon$-imitation strategy reduces the sample complexity by leveraging leader behavior, which is critical in complex drone formation scenarios where random exploration might be inefficient. Second, the dueling network architecture enhances the estimation of Q-values by separately modeling state value and action advantages, allowing the agent to focus on relevant actions for formation keeping. Mathematically, this can be expressed as the advantage function capturing the relative importance of each action: $A(s, a) = Q(s, a) – V(s)$. Third, double Q-learning stabilizes training by reducing overestimation bias, a common issue in deep RL for continuous state spaces like those in drone formation control. The combination of these techniques enables robust learning in stochastic environments, as evidenced by the low variance in test returns.
Moreover, our kinematic model incorporates randomness in airspeed, position, and heading, simulating real-world disturbances. This ensures that the learned policy generalizes to dynamic conditions, a key requirement for practical drone formation applications. The reward function design balances distance and alignment penalties, encouraging smooth formation maintenance. For example, when the follower deviates, the cost increases proportionally to the distance $d$ and heading difference $s_3$, promoting corrective actions. This aligns with the overall goal of autonomous drone formation coordination, where multiple UAVs must operate cohesively under uncertainty.
In comparison to traditional methods, our deep reinforcement learning approach eliminates the need for precise system models, making it suitable for unknown or changing environments. While classical control theories might require linearized models or predefined trajectories, ID3QN learns directly from interactions, adapting to variations in leader behavior and environmental factors. This is particularly advantageous for fixed-wing drone formation, where aerodynamic constraints add complexity. Our experiments show that even with simple discrete actions (roll adjustments), the policy achieves sophisticated coordination, demonstrating the power of deep RL in solving high-dimensional decision problems.
Future work could extend this approach to larger drone formations with more complex topologies, such as decentralized networks or dynamic role switching. Incorporating continuous action spaces via algorithms like Deep Deterministic Policy Gradient (DDPG) might further enhance control smoothness. Additionally, real-world flight tests with physical UAVs would validate the policy’s robustness to sensor noise and communication delays. The integration of multi-agent reinforcement learning could enable collaborative learning among followers, potentially speeding up training and improving scalability for massive drone formation operations.
In conclusion, we have presented a novel coordination control method for fixed-wing drone formation using deep reinforcement learning. By proposing the ID3QN algorithm with $\epsilon$-imitation action selection, dueling networks, and double Q-learning, we address the challenges of stochastic environments and non-holonomic kinematics. Numerical simulations and hardware-in-the-loop experiments confirm the algorithm’s efficiency, adaptability, and practicality, enabling autonomous following and formation maintenance without prior model knowledge. This work contributes to the growing field of intelligent UAV systems, paving the way for more autonomous and resilient drone formation applications in complex scenarios.
