In recent years, the integration of unmanned aerial vehicles (UAVs) with mobile edge computing (MEC) has emerged as a promising paradigm to provide flexible and low-latency computation services, especially in scenarios where ground infrastructure is limited or overloaded. As a country at the forefront of drone technology, China drone research has made significant strides in both civilian and industrial applications. Our work is motivated by the pressing need to address two critical challenges in China drone-assisted MEC systems: the efficient computation offloading under dynamic user demands and the protection of user privacy during task migration. The high mobility of UAVs introduces additional complexity in trajectory planning, while the untrusted nature of edge servers raises serious privacy concerns. In this paper, we propose a novel framework that jointly optimizes the offloading strategy and the three-dimensional (3D) trajectory of a UAV, while ensuring differential privacy for each user. The core contribution is a deep reinforcement learning algorithm named DDPG-PPCOTO, which is designed to minimize the system latency under strict privacy guarantees.
We consider a scenario where a single UAV equipped with a MEC server (UAV-MEC) serves N ground users over a time horizon divided into T equal-length slots. Each user generates a computation task at each time slot and can decide to offload a portion of the task to the UAV-MEC. However, the UAV-MEC is assumed to be honest-but-curious: it will faithfully execute the offloaded tasks but may attempt to infer sensitive information from the offloading patterns. To prevent such inference, we adopt a range-restricted Laplace mechanism that perturbs the original offloading ratio, providing a quantifiable privacy guarantee. The optimization problem is formulated to minimize the total system delay subject to constraints on user location, UAV mobility, and cumulative privacy requirements.
The rest of this article is organized as follows. The system model including communication, computation, mobility, and privacy is detailed. Then the problem formulation and the DDPG-based algorithm are presented. Simulation results and analysis follow, and finally, conclusions are drawn.
System Model
Our system consists of one UAV-MEC and N ground users. The UAV can adjust its position in 3D space, with coordinates Quav(t) = (Xu(t), Yu(t), Zu(t)). The user n is located at Qnuser(t) = (Xn(t), Yn(t), 0). The total time horizon Y is divided into T time slots of length δ.
Communication Model
The air-to-ground path loss model incorporates both Line-of-Sight (LoS) and Non-Line-of-Sight (NLoS) components. The average path loss between user n and the UAV at slot t is:
$$ L_n(t) = P_n^{LoS}(t) \cdot L_n^{LoS}(t) + P_n^{NLoS}(t) \cdot L_n^{NLoS}(t) $$
where the probabilities PnLoS and PnNLoS depend on the elevation angle and environment parameters. The channel gain is given by:
$$ h_n(t) = g(t) \cdot 10^{-L_n(t)/10} $$
with g(t) following a Rayleigh small-scale fading distribution. Assuming equal bandwidth allocation among users, the data rate for user n is:
$$ R_n(t) = B \log_2\left(1 + \frac{P_n h_n(t)}{\sigma_0^2}\right) $$
where B is the per-user bandwidth, Pn the transmit power, and σ02 the noise power.
Computation Model
Each user n generates a task with data size Sn(t) and computation intensity Fn(t) (CPU cycles per bit). The offloading ratio is denoted βn(t) ∈ [0,1]. The local processing delay at the user side is:
$$ T_n^{loc}(t) = \frac{(1-\beta_n(t)) S_n(t) F_n(t)}{f_n(t)} $$
where fn(t) is the local CPU frequency. The transmission delay for offloading is:
$$ T_n^{tr}(t) = \frac{\beta_n(t) S_n(t)}{R_n(t)} $$
and the computation delay at the UAV-MEC is:
$$ T_n^{uav}(t) = \frac{\beta_n(t) S_n(t) F_n(t)}{f_u(t)} $$
where fu(t) is the UAV’s computing resource. The result downloading delay is negligible due to the small size of computation results.
Mobility Model
The UAV’s 3D trajectory is controlled by its velocity vector v(t) = [vux(t), vuy(t), vuz(t)]. The position update is:
$$ \begin{aligned}
X_u(t+1) &= X_u(t) + v_u^x(t) \delta \\
Y_u(t+1) &= Y_u(t) + v_u^y(t) \delta \\
Z_u(t+1) &= Z_u(t) + v_u^z(t) \delta
\end{aligned} $$
The velocity magnitude is constrained by a maximum speed vmax.
Privacy Model
We adopt ε-differential privacy to perturb the true offloading ratio. The privacy protection level for user n at time t is measured by Pattern Chaos:
$$ PC_n(t) = |\beta_n(t) – \tilde{\beta}_n(t)| $$
where βn(t) is the original ratio and ˜βn(t) is the perturbed ratio. The perturbed ratio is drawn from a range-restricted Laplace distribution with probability density function:
$$
f(\beta_n(t)) = \begin{cases}
\frac{1}{2\sigma} e^{-\frac{|\beta_n(t)-\tilde{\beta}_n(t)|}{\sigma}} + \frac{e^{-\frac{\tilde{\beta}_n(t)}{\sigma}} + e^{-\frac{1+\tilde{\beta}_n(t)}{\sigma}}}{2}, & \beta_n(t) \in [0,1] \\
0, & \text{otherwise}
\end{cases}
$$
where σ = Δf/ε is the scale parameter. Each user has a cumulative privacy requirement φn over the whole horizon, i.e., ∑t=1T PCn(t) ≥ φn.
Problem Formulation
The objective is to minimize the total system delay by jointly optimizing the offloading ratios {βn(t)} and the UAV’s velocity {v(t)}. The problem is formulated as:
$$ \min_{\{\beta_n(t)\},\{v(t)\}} \sum_{t=1}^T \sum_{n=1}^N \max\left\{ T_n^{tr}(t) + T_n^{uav}(t),\ T_n^{loc}(t) \right\} $$
subject to:
$$ \text{(C1)} \quad Q_n^{user}, Q_u^{uav} \in \{X_{size}, Y_{size}, Z_{size}\}, \quad \forall n \in N $$
$$ \text{(C2)} \quad \beta_n(t) \in [0,1], \quad n \in N, t \in T $$
$$ \text{(C3)} \quad 0 \leq \|v(t)\|_2 \leq v_{\max}, \quad \forall t \in T $$
$$ \text{(C4)} \quad \sum_{t=1}^T PC_n(t) \geq \phi_n, \quad \forall n \in N $$
Constraint (C1) confines the positions within the service area. (C2) limits the offloading ratio. (C3) enforces UAV speed limits. (C4) ensures each user’s privacy requirement is satisfied.
DDPG-PPCOTO Algorithm
We model the problem as a Markov decision process (MDP) and solve it using the Deep Deterministic Policy Gradient (DDPG) algorithm, which is well-suited for continuous action spaces. The key components are defined as follows.
State Space
The state st includes: the UAV’s current 3D position Quav(t), channel gains hn(t) for all users, task sizes Sn(t), and the remaining privacy requirements φn(t) for each user.
Action Space
The action at consists of: UAV velocities vux(t), vuy(t), vuz(t) and the perturbed offloading ratios ˜βn(t) for all users.
Reward
The reward rt is designed as the negative of the total system delay at slot t plus a penalty for privacy violation:
$$ r_t = -\sum_{n=1}^N \max\{T_n^{tr}(t)+T_n^{uav}(t),\ T_n^{loc}(t)\} – \eta \cdot \sum_{n=1}^N \max\{0, \phi_n – \sum_{\tau=1}^t PC_n(\tau)\} $$
where η is a large positive constant to discourage privacy breaches.
Training Procedure
The DDPG-PPCOTO algorithm is summarized in the following pseudo-code.
| Input: | Max episodes E, steps per episode T, mini-batch size V, discount factor γ, soft update rate τ |
|---|---|
| Output: | Trained policy network (Actor) and value network (Critic) |
|
1. Initialize critic network θcur, actor network φ, target networks θtarget, φtarget, and replay buffer RB. |
|
The algorithm leverages the actor-critic structure to handle continuous actions. The experience replay stabilizes training, and soft updates ensure gradual improvement of target networks.
Simulation Results and Analysis
We conduct simulations in an urban scenario with a 500 m × 500 m area. The UAV flies at altitudes between 20 m and 150 m. The average per-slot privacy requirement per user is 0.25, and the privacy budget ε is set to 6. Other simulation parameters are listed in the following table.
| Parameter | Value |
|---|---|
| Number of users N | 10 |
| Time slots T | 200 |
| Slot duration δ | 1 s |
| Bandwidth per user B | 1 MHz |
| Transmit power Pn | 0.1 W |
| Noise power σ02 | -100 dBm |
| Task data size Sn(t) | Uniform [1, 5] MB |
| CPU cycles per bit Fn(t) | 500 cycles/bit |
| Local CPU frequency fn(t) | 1 GHz |
| UAV CPU frequency fu(t) | 10 GHz |
| UAV max speed vmax | 20 m/s |
| Privacy budget ε | 6 |
| Per-user privacy requirement φn | T × 0.25 |
Convergence Performance
We compare the proposed DDPG-PPCOTO with a baseline DQN algorithm (discretized actions) and a fixed-trajectory scheme. The reward curves over training episodes are shown in the following figure.

The DDPG-PPCOTO algorithm converges after approximately 250 episodes, achieving about 36.5% higher reward than DQN. This demonstrates the advantage of continuous action control in 3D trajectory and offloading optimization.
Average Delay Comparison
The following table presents the average system delay for different algorithms after convergence.
| Algorithm | Average Delay (s) |
|---|---|
| DDPG-PPCOTO (proposed) | 1.24 |
| DDPG without privacy | 1.02 |
| DQN-based offloading | 1.79 |
| Random offloading + fixed trajectory | 2.38 |
The DDPG-PPCOTO incurs a moderate delay increase (about 21.6%) compared to the non-privacy version, which is the cost of providing differential privacy. However, it significantly outperforms the DQN and random baselines by 30.7% and 47.9%, respectively. This confirms the effectiveness of our joint optimization.
Impact of 3D Trajectory
We further evaluate the benefit of 3D trajectory optimization by comparing with a 2D version where the UAV’s altitude is fixed at 70 m. The average delay under 3D optimization is about 7% lower than the 2D case, and 44.5% lower than a random deployment (UAV hovers at a fixed point). This is because the UAV can descend closer to users to improve channel quality and reduce transmission delay.
The optimized 3D trajectory is illustrated in the conceptual diagram (see the figure above). The UAV starts from (0, 0, 70) and gradually moves toward the user-dense cluster while adjusting altitude to balance coverage and path loss.
Conclusion
In this work, we investigated a privacy-preserving computation offloading scheme in a China drone-assisted MEC system. By exploiting the 3D mobility of the China drone, we formulated a joint optimization problem of offloading ratios and UAV trajectory under user privacy constraints. We proposed the DDPG-PPCOTO algorithm based on deep reinforcement learning to solve the problem efficiently. Simulation results demonstrated that our algorithm achieves lower system delay compared to DQN and fixed-trajectory baselines, while providing rigorous differential privacy guarantees. The 3D trajectory optimization further reduces the delay by approximately 7% over 2D trajectories. Future work could extend the framework to multi-UAV scenarios and consider energy consumption of China drone fleets.
