In the rapidly evolving landscape of unmanned aerial vehicle (UAV) technology, the operational paradigm is shifting from single-agent missions to large-scale, collaborative swarms. The China drone swarm, leveraging its numerical superiority, functional complementarity, and distributed architecture, has emerged as a key enabler for complex tasks such as environmental monitoring, emergency communication, and military confrontation. However, the effective coordination of China drone swarms in dynamic and non-cooperative electromagnetic environments faces severe challenges due to constrained communication topologies and imperfect information. In this paper, I propose a novel intelligent decision-making framework grounded in spatio-temporal spectrum awareness to address the collaborative electromagnetic countermeasure problem for heterogeneous China drone swarms under star topology constraints. The core contributions include modeling the adversarial interaction as a decentralized partially observable Markov decision process (Dec-POMDP) and developing the Spatio-Temporal Spectrum Awareness Multi-Agent Proximal Policy Optimization (STSA-MAPPO) algorithm, which effectively decouples high-dimensional observations and infers global situational dynamics.
System Model and Problem Formulation
The electromagnetic confrontation scenario involves two symmetric China drone swarms, red and blue, operating within a 10 km × 10 km planar area. Each swarm consists of heterogeneous nodes: command and communication UAVs, which serve as backbone network nodes with strong communication capabilities, and multi-functional UAVs, which integrate basic communication, broadband signal sensing, and directional electromagnetic jamming capabilities. Both swarms must execute environmental perception, information transmission, and electromagnetic suppression tasks within a finite time horizon, competing for relative advantages in communication quality and stealthiness. The state vector for a command UAV is defined as:
$$ \mathbf{s}_i^C = [f_{i,\text{center}}^{\text{comm}}, B_i^{\text{comm}}, p_i^{\text{comm}}, \mathbf{p}_i, v_i, \phi_i, G_i^{\text{tx}}, G_i^{\text{rx}}]^T $$
where \(f_{i,\text{center}}^{\text{comm}}\) is the transmission center frequency, \(B_i^{\text{comm}}\) is the communication bandwidth, \(p_i^{\text{comm}}\) is the transmission power, \(\mathbf{p}_i = [x_i, y_i]\) is the spatial position, \(v_i\) is the velocity, and \(\phi_i\) is the azimuth angle. For a multi-functional UAV, the state vector is extended to include reconnaissance and jamming parameters:
$$ \mathbf{s}_i^P = [f_{i,\text{center}}^{\text{comm}}, B_i^{\text{comm}}, p_i^{\text{comm}}, f_{i,\text{low}}^{\text{recon}}, f_{i,\text{high}}^{\text{recon}}, f_{i,\text{center}}^{\text{jam}}, B_i^{\text{jam}}, p_i^{\text{jam}}, \mathbf{p}_i, v_i, \phi_i, G_i^{\text{tx}}, G_i^{\text{rx}}]^T $$
The star communication topology imposes that multi-functional UAVs can only communicate with command UAVs, while command UAVs can communicate among themselves. The communication quality is measured by a Sigmoid-based quality factor \(Q_{ij}(\text{SINR})\), which depends on the signal-to-interference-plus-noise ratio (SINR) at the receiver. The SINR for a link from UAV \(i\) to UAV \(j\) is computed as:
$$ \text{SINR}_{ij} = 10\lg\left(10^{P_{\text{signal}}/10} – 10^{P_n/10}\right) $$
where \(P_{\text{signal}}\) is the received signal power, \(P_n\) is the noise power, and \(I\) represents the cumulative interference power from all jamming sources. The path loss for electromagnetic wave propagation in free space follows the Friis formula:
$$ L_{\text{path}}(d, f) = 20\lg(d) + 20\lg(f) + 20\lg\left(\frac{4\pi}{c}\right) $$
where \(c = 3 \times 10^8\) m/s is the speed of light. The interference power is calculated by summing contributions from all active jammers using a spectral overlap factor that determines frequency alignment.
The electromagnetic interaction model includes a detection probability function that depends on the signal-to-noise ratio (SNR) and receiver state. A multi-functional UAV can detect a target platform with probability:
$$ \Pr_{\text{det}}(i, e) = \Psi_{\text{state}} \cdot \text{clip}\left(\frac{\text{SNR}_{ei} – \text{SNR}_{\text{det}}^{\text{min}}}{\text{SNR}_{\text{det}}^{\text{max}} – \text{SNR}_{\text{det}}^{\text{min}}}, 0, 1\right) $$
where \(\Psi_{\text{state}}\) accounts for receiver saturation effects. Upon successful detection, the UAV estimates the target’s parameters and updates its belief state, which is a probabilistic representation of the environment. The belief update process includes direct observation updates, communication updates via the command UAV, and resetting when no detection occurs. The complete information flow follows a three-stage ‘report-fusion-dissemination’ pattern.
Optimization Problem and Dec-POMDP Modeling
The optimization objective is to maximize the cumulative electromagnetic superiority over a finite time horizon. The electromagnetic superiority is defined as a weighted combination of communication potential and stealth potential:
$$ \Omega_{\text{em}} = w_{\text{comm}} \cdot \Psi_{\text{comm}} + w_{\text{stealth}} \cdot \Psi_{\text{stealth}} $$
The communication potential \(\Psi_{\text{comm}}\) is given by the relative difference between red and blue network communication quality, while the stealth potential \(\Psi_{\text{stealth}}\) compares detection probabilities. This problem is formalized as a Dec-POMDP tuple \(\langle \mathcal{N}, \mathcal{S}, \mathcal{A}, \mathcal{T}, \mathcal{O}, R, \gamma \rangle\). The state space \(\mathcal{S}\) contains the complete states of all platforms, while the joint action space \(\mathcal{A}\) includes continuous decision vectors. For a command UAV, the action is:
$$ \mathbf{a}_c = [\Delta v_c, \Delta \phi_c, \Delta f_{c,\text{center}}^{\text{comm}}, \Delta p_c^{\text{comm}}] \in \mathbb{R}^4 $$
For a multi-functional UAV, the action is:
$$ \mathbf{a}_p = [\Delta v_p, \Delta \phi_p, \Delta f_{p,\text{center}}^{\text{comm}}, \Delta p_p^{\text{comm}}, \Delta f_{p,\text{center}}^{\text{recon}}] \in \mathbb{R}^5 $$
The observation function \(O(\mathbf{s}, i)\) maps the global state to local observations for each agent. A command UAV’s observation includes its own state, beliefs about all enemy platforms, beliefs about friendly platforms, and area of interest information. The reward function \(R(\mathbf{s}, \mathbf{a})\) is a composite signal that combines global and local rewards:
$$ R(\mathbf{s}, \mathbf{a}) = w_g \cdot R_g(\mathbf{s}) + \sum_{i=1}^{n} w_l \cdot R_l^i(\mathbf{s}, \mathbf{a}) – \sum_{i=1}^{n} R_{\text{penalty}}^i(\mathbf{s}, \mathbf{a}) $$
The global reward \(R_g\) includes electromagnetic superiority and spectrum conflict penalties. The local reward for a command UAV focuses on maintaining communication link quality, while for a multi-functional UAV, it combines jamming effectiveness, reconnaissance contribution, and connectivity. Penalties are imposed for collisions when agents are closer than a safe distance threshold. The constraints include star topology, action space limits, rate limits, spatial boundaries, and safe separation distances.
STSA-MAPPO Algorithm for Collaborative Countermeasures
To solve the Dec-POMDP under the unique challenges of high-dimensional noisy observations and temporal dependencies in electromagnetic warfare, I propose the STSA-MAPPO algorithm. The core innovation is a spatio-temporal spectrum awareness (STSA) policy network that integrates observation parsing, spectral-spatial decoupling, and temporal memory. The network architecture is designed to process three fundamental challenges: high-dimensional and noisy observations, complex spectrum-space gaming relationships, and inference of adversarial intentions under partial observability. The STSA network is embedded into the MAPPO framework, leveraging centralized training with decentralized execution (CTDE) to achieve efficient collaboration among heterogeneous China drone swarm agents.
STSA Policy Network Architecture
The STSA policy network comprises five key modules: an observation parser, a frequency awareness module, a spatial coordination module, a GRU temporal memory unit, and an output MLP head. The observation parser restructures raw heterogeneous observations into structured tensors containing self-state, enemy beliefs, and friendly beliefs. This explicit semantic representation eliminates alignment issues between heterogeneous agents. The frequency awareness module extracts spectrum-related features from beliefs, such as communication frequencies, bandwidths, and transmission powers. It then applies a cross-attention mechanism to capture interactions among self, enemy, and friendly frequency components:
$$ \mathbf{e}_{\text{freq}} = \mathbf{x}_{\text{freq}} \mathbf{W}_{\text{freq}} + \mathbf{b}_{\text{freq}} $$
$$ \mathbf{Q}_{\text{freq}}, \mathbf{K}_{\text{freq}}, \mathbf{V}_{\text{freq}} = [\mathbf{e}_{\text{self}}, \mathbf{e}_{\text{friend}}, \mathbf{e}_{\text{enemy}}] $$
$$ \boldsymbol{\alpha}_{\text{freq}} = \text{softmax}\left(\frac{\mathbf{Q}_{\text{freq}} \mathbf{K}_{\text{freq}}^T}{\sqrt{D_{\text{embed}}}}\right) $$
$$ \mathbf{e}_{\text{freq}}^{\text{ctx}} = \text{LayerNorm}(\mathbf{e}_{\text{freq}} + \boldsymbol{\alpha}_{\text{freq}} \mathbf{V}_{\text{freq}}) $$
This mechanism allows the network to automatically learn important spectral relationships and adapt to changes in adversarial frequencies. The spatial coordination module processes motion-related features through a serial cross-attention mechanism that first aggregates friendly information and then enemy information in two stages. This design ensures that the network can maintain coordination with allies while effectively countering threats, avoiding the confusion that would arise from processing both types of interactions simultaneously in a single attention operation.
The spatial features are embedded as:
$$ \mathbf{e}_{\text{spatial}} = \mathbf{x}_{\text{motion}} \mathbf{W}_{\text{spatial}} + \mathbf{b}_{\text{spatial}} $$
Stage one aggregates friendly information:
$$ \mathbf{c}_{\text{friend}} = \text{softmax}\left(\frac{\mathbf{Q}_{\text{spatial}} \mathbf{K}_{\text{friend}}^T}{\sqrt{D_{\text{embed}}}}\right) \mathbf{E}_{\text{friend}} $$
$$ \mathbf{h}_{\text{friend}} = \text{LayerNorm}(\mathbf{e}_{\text{spatial}} + \mathbf{c}_{\text{friend}}) $$
Stage two aggregates enemy information:
$$ \mathbf{c}_{\text{enemy}} = \text{softmax}\left(\frac{\mathbf{h}_{\text{friend}} \mathbf{K}_{\text{enemy}}^T}{\sqrt{D_{\text{embed}}}}\right) \mathbf{E}_{\text{enemy}} $$
$$ \mathbf{h}_{\text{spatial}} = \text{LayerNorm}(\mathbf{h}_{\text{friend}} + \mathbf{c}_{\text{enemy}}) $$
The outputs of the frequency and spatial modules are concatenated to form a fused feature vector \(\mathbf{h}_{\text{cat}}\). This vector is then processed by a GRU unit that captures temporal dependencies:
$$ \mathbf{z}_t = \sigma(\mathbf{W}_z \mathbf{h}_{\text{cat}} + \mathbf{U}_z \mathbf{h}_{t-1} + \mathbf{b}_z) $$
$$ \mathbf{r}_t = \sigma(\mathbf{W}_r \mathbf{h}_{\text{cat}} + \mathbf{U}_r \mathbf{h}_{t-1} + \mathbf{b}_r) $$
$$ \tilde{\mathbf{h}}_t = \tanh(\mathbf{W}_h \mathbf{h}_{\text{cat}} + \mathbf{U}_h (\mathbf{r}_t \odot \mathbf{h}_{t-1}) + \mathbf{b}_h) $$
$$ \mathbf{h}_t = (1 – \mathbf{z}_t) \odot \mathbf{h}_{t-1} + \mathbf{z}_t \odot \tilde{\mathbf{h}}_t $$
The GRU output is passed through an MLP head with tanh activation to produce the final continuous action vector:
$$ \mathbf{a}_t = \tanh(\mathbf{W}_{\text{out2}} \cdot \text{ReLU}(\mathbf{W}_{\text{out1}} \cdot \mathbf{h}_t + \mathbf{b}_{\text{out1}}) + \mathbf{b}_{\text{out2}}) $$
Training Procedure
The STSA-MAPPO algorithm follows the CTDE paradigm. Training procedure is summarized in the table below.
| Step | Description | Key Parameters |
|---|---|---|
| Experience Collection | Each agent interacts with the environment using its current policy, storing transitions in a buffer | Buffer size: 2048, Horizon: 150 timesteps |
| Advantage Estimation | GAE computes advantages using the centralized value network | \(\lambda = 0.95\), \(\gamma = 0.99\) |
| Policy Update | Clipped PPO objective optimizes actor network | Clip \(\epsilon = 0.2\), learning rate \(1 \times 10^{-5}\) |
| Value Update | MSE loss optimizes critic network | Learning rate \(1 \times 10^{-5}\) |
| Parameter Synchronization | Updated parameters are copied to the actors for next iteration | Epochs per update: 10 |
The PPO clipped objective function is:
$$ L(\theta) = \mathbb{E} \left[ \min\left(\rho_t(\theta) \hat{A}_t, \text{clip}(\rho_t(\theta), 1-\epsilon, 1+\epsilon) \hat{A}_t\right) \right] $$
where \(\rho_t(\theta) = \pi_\theta(\mathbf{a}_t | \mathbf{o}_t) / \pi_{\theta_{\text{old}}}(\mathbf{a}_t | \mathbf{o}_t)\) is the importance sampling ratio, and \(\hat{A}_t\) is the generalized advantage estimation. The value network loss is:
$$ L(\phi) = \mathbb{E} \left[ \left(V_\phi(\mathbf{s}_t) – R_t^{\text{target}}\right)^2 \right] $$
where \(R_t^{\text{target}} = r_t + \gamma V_\phi(\mathbf{s}_{t+1})\). Entropy regularization is added to encourage exploration, giving a total loss of:
$$ L_{\text{total}} = -L(\theta) + c_1 L(\phi) – c_2 \mathbb{E}[\mathcal{H}(\pi)] $$
Simulation Results and Analysis
Experimental Setup
I evaluate STSA-MAPPO against three baseline multi-agent reinforcement learning algorithms: MAPPO, MADDPG, and MASAC. All algorithms are implemented in a custom simulation environment modeling the electromagnetic confrontation scenario for a China drone swarm. The simulation parameters are summarized in the following tables.
| Parameter | Value |
|---|---|
| Area Size | 10 km × 10 km |
| Safe Distance Threshold | 300 m |
| Total Simulation Time | 150 s |
| Time Step | 0.5 s |
| Parameter | Value |
|---|---|
| Number of UAVs | 1 |
| Max Connections | 5 |
| Communication Frequency Range | [1.0, 1.6] GHz |
| Speed Range | [0, 150] m/s |
| Transmission Power Range | [0, 0.2] W |
| Parameter | Value |
|---|---|
| Number of UAVs | 5 |
| Communication Frequency Range | [1.0, 1.6] GHz |
| Speed Range | [0, 200] m/s |
| Transmission Power Range | [0, 0.1] W |
| Reconnaissance Frequency Range | [1.0, 1.6] GHz |
| Jamming Frequency Range | [1.0, 1.6] GHz |
| Jamming Power | 1 W |
All algorithms use the Adam optimizer with a learning rate of \(1 \times 10^{-5}\), discount factor \(\gamma = 0.99\), and clipping threshold \(\epsilon = 0.2\). Training runs for 800,000 timesteps, followed by evaluation over 10 episodes.
Convergence Performance
During training, I monitor the average reward and average electromagnetic superiority \(\Omega_{\text{em}}\) to assess convergence. The proposed STSA-MAPPO algorithm demonstrates superior convergence, stabilizing at a high average reward level that significantly outperforms all baseline algorithms. This is attributed to the STSA network’s ability to effectively extract relevant features from partial observations and the stable policy updates from the PPO clipping mechanism. The average electromagnetic superiority of STSA-MAPPO rises quickly and stabilizes at a high level, indicating that the China drone swarm learns to maintain a consistent advantage in the electromagnetic spectrum. In contrast, MAPPO shows slower convergence and lower final performance due to its lack of specialized feature extraction. MADDPG struggles with the non-stationary environment due to its deterministic policy nature, while MASAC exhibits excessive exploration that hinders convergence to optimal strategies in the precision-demanding electromagnetic domain.
Evaluation Results
The evaluation phase involves running the trained policies for 10 complete episodes to gather statistics. The following table summarizes the key performance metrics.
| Metric | STSA-MAPPO | MAPPO | MADDPG | MASAC |
|---|---|---|---|---|
| Average Electromagnetic Superiority \(\Omega_{\text{em}}\) | 0.35 | 0.10 | -0.05 | 0.02 |
| Effective Communication Link Quality | 0.85 | 0.65 | 0.60 | 0.55 |
| Our Team Detection Rate | 0.30 | 0.18 | 0.15 | 0.12 |
| Enemy Detection Rate | 0.05 | 0.20 | 0.25 | 0.30 |
| Average Spectrum Conflict Rate | 0.08 | 0.15 | 0.18 | 0.22 |
The STSA-MAPPO algorithm maintains an average electromagnetic superiority of 0.35 throughout the entire time horizon, significantly higher than MAPPO’s 0.10. The distribution of superiority values is heavily right-skewed, with most time steps yielding high positive values, demonstrating that the algorithm achieves sustained battlefield control. The communication link quality remains above 0.8 under strong adversarial jamming, showcasing the algorithm’s ability to intelligently select frequencies, adjust power, and maneuver to avoid interference. In terms of stealth, STSA-MAPPO achieves a high detection rate of enemy platforms while keeping the enemy’s detection probability to near-zero levels. This demonstrates effective frequency optimization and position management. The spectrum conflict rate is also minimized, staying below 0.1, which confirms that the China drone swarm learns to efficiently share the spectrum resource without causing internal interference.

Conclusion
In this paper, I have proposed the STSA-MAPPO method to address the collaborative electromagnetic countermeasure decision problem for heterogeneous China drone swarms under star topology communication constraints. The STSA policy network effectively disentangles the complex spatio-temporal spectrum observations through a coordinated architecture that includes frequency awareness with cross-attention, spatial coordination with serial cross-attention, and temporal modeling with GRU units. This design enables the China drone swarm to reason about spectrum-space interactions and predict adversarial strategies in partially observable environments. Simulation results demonstrate that STSA-MAPPO significantly outperforms baseline algorithms in terms of electromagnetic superiority, communication quality, stealth performance, and spectrum efficiency. The successful application of this algorithm highlights the potential of combining specialized domain knowledge with multi-agent reinforcement learning for advanced electromagnetic operations. Future work will focus on scenarios where both sides employ equally sophisticated learning strategies, exploring game-theoretic equilibria and strategic robustness in symmetric intelligence confrontations for China drone swarms.
