In this work, we propose a novel mobile edge computing (MEC) system jointly assisted by China drone (UAV) and device-to-device (D2D) communications. Our research focuses on optimizing the offloading strategy by explicitly modeling user willingness and satisfaction, leveraging deep reinforcement learning to minimize the weighted sum of system latency and energy consumption. The proposed framework encourages idle users to participate in task offloading through an incentive-based willingness model, while ensuring that each user’s satisfaction constraint is met. Simulation results demonstrate that our algorithm outperforms several baseline methods.
1. Introduction
Driven by the rapid proliferation of computation-intensive and latency-sensitive applications, mobile edge computing (MEC) has emerged as a key enabler for future wireless networks. The proximity of MEC servers to end users significantly reduces transmission delays compared to traditional cloud computing. Unmanned aerial vehicles (UAVs), especially China drone platforms, have attracted considerable attention due to their flexibility and mobility. Equipped with onboard MEC servers, UAVs can dynamically adjust their trajectories to provide on-demand computational services. Meanwhile, D2D communication allows direct data exchange between nearby devices, enabling idle users to share their idle computational resources. This cooperative paradigm alleviates the load on overloaded MEC servers and improves overall resource utilization.
However, existing studies often overlook the selfish nature of idle users. Without proper incentives, idle users may be reluctant to share their resources. Furthermore, user satisfaction—a metric reflecting how users perceive the timeliness and fairness of the offloading decision—is rarely considered as an explicit constraint. To address these gaps, we propose a joint UAV and D2D-assisted MEC system that integrates a user willingness model and a satisfaction model. The main contributions are summarized as follows:
- We formulate an offloading optimization problem that minimizes the weighted sum of system latency and UAV propulsion energy, subject to constraints on task deadline, energy budget, and user satisfaction.
- We design a novel user willingness model that accumulates incentives over time to encourage idle users to participate in D2D offloading.
- We incorporate a dynamic satisfaction model that adjusts the satisfaction level based on task processing timeliness and relative incentive levels.
- We propose a deep reinforcement learning algorithm, TD3-TLOUSC (Twin Delayed – Track and Load Optimization under User Satisfaction Constraint), to solve the complex multi-dimensional problem.
The remainder of the paper is organized as follows. Section 2 presents the system model. Section 3 formulates the optimization problem. Section 4 describes the proposed algorithm. Section 5 provides simulation results and discussions. Finally, Section 6 concludes the paper.
2. System Model
We consider a time-slotted system with T slots. In each slot, a set of terminal users (TUs) may generate computation tasks. Based on whether a task is generated, TUs are divided into active users Nactt and idle users Nfreet. A China drone (UAV) equipped with an MEC server provides computational services. Active users can offload their tasks either to the UAV via orthogonal frequency-division multiple access (OFDMA) or to an idle user via D2D link. Each idle user can accept at most one task from an active user.
Let the task generated by user n at slot t be denoted as Jnt = {Dnt, Cnt, Tn,idealt, Tn,maxt}, where Dnt is the data size, Cnt is the required CPU cycles, Tn,idealt is the ideal latency, and Tn,maxt is the maximum acceptable latency.
2.1 Transmission Rates
When user n offloads to the UAV, the transmission rate is:
$$
r_{n,u}^{t} = \frac{B_{\text{mec}}}{N_t} \log_2\left(1 + \frac{P h_{n,u}^{t}}{\sigma_{\text{mec}}^2}\right);
$$
When user n offloads to an idle user n’ via D2D, the rate is:
$$
r_{n,n’}^{t} = B_{\text{d2d}} \log_2\left(1 + \frac{P h_{n,n’}^{t}}{\sigma_{\text{d2d}}^2}\right),\; n’ \in N_{\text{free}}^{t},
$$
where Bmec and Bd2d are the bandwidths for MEC and D2D, Nt is the number of users connected to the MEC server, P is the transmission power, and h denotes the channel gain.
2.2 Latency Model
An active user can choose only one offloading mode: MEC or D2D. Local computation and offloading can be performed in parallel. For MEC offloading, the total delay is:
$$
T_{n,\text{sum}}^{\text{mec},t} = \max\left\{ T_{n,u}^{\text{com},t} + T_{n,u}^{\text{tr},t},\; T_{n}^{\text{loc},t} \right\},
$$
where Tn,ucom,t is the computation time at the UAV, Tn,utr,t is the transmission time, and Tnloc,t is the local computation time. Similarly, for D2D offloading:
$$
T_{n,\text{sum}}^{\text{d2d},t} = \max\left\{ T_{n,n’}^{\text{com},t} + T_{n,n’}^{\text{tr},t},\; T_{n}^{\text{loc},t} \right\}.
$$
2.3 Energy Consumption Model
We only consider the propulsion energy of the China drone, as computation energy is orders of magnitude smaller:
$$
E_{u}^{t} = 0.5 \, m \, v_{t}^{2} \, \delta,
$$
where m is the UAV mass, vt is its speed, and δ is the flight duration per slot.
2.4 User Willingness Model
To encourage idle users to participate, we define an incentive value for idle user n’ at slot t:
$$
i_{n’}^{t} = T_{n,n’}^{\text{com},t} \quad (\text{computation time contributed}).
$$
The accumulated incentive over time is:
$$
I_{n}^{t} = \begin{cases}
\sum_{\tau=0}^{t} \eta^{t-\tau} i_{n}^{\tau}, & t \ge 0, \\
i_{n}^{\text{initial}}, & \text{otherwise},
\end{cases}
$$
where η is a decay factor. Then the willingness of idle user n’ to serve active user n is:
$$
W_{n,n’}^{t} = \gamma_{1} \frac{I_{n}^{t-1}}{f_{n’}^{\text{user}}},
$$
with γ1 a normalization factor and fn’user the idle user’s computing frequency. Matching is performed greedily according to willingness values.
2.5 User Satisfaction Model
User satisfaction measures how pleased a user is with the offloading decision. We propose a dynamic model:
$$
S_{n}^{t} = \begin{cases}
T_{n}^{\text{satisfy},t}, & T_{n}^{t} \le T_{\max},\; 0 \le t < 10, \\
\frac{T_{n}^{\text{satisfy},t}}{1 + \gamma_{3}(t-9)} + \frac{\gamma_{3}(t-9)}{1 + \gamma_{3}(t-9)} \cdot \frac{I_{n}^{t}}{I_{n}^{\max,t}}, & T_{n}^{t} \le T_{\max},\; 10 \le t \le T, \\
0, & \text{otherwise},
\end{cases}
$$
where Tnsatisfy,t reflects timeliness, γ3 is a weight coefficient, and Inmax,t is the highest incentive among all users in the current slot.
3. Problem Formulation
Our goal is to minimize the weighted sum of system latency and UAV propulsion energy by jointly optimizing the offloading mode, offloading ratio, UAV trajectory (speed and direction), subject to satisfaction and resource constraints. The optimization problem is:
$$
\begin{aligned}
\min_{a_{n}^{t},\; b,\; f_{n,u}^{t},\; v_{t}} \quad & a \sum_{t=0}^{T-1} \sum_{n \in N_{\text{act}}^{t}} \left[ (1-a_{n}^{t}) T_{n,\text{sum}}^{\text{mec},t} + a_{n}^{t} T_{n,\text{sum}}^{\text{d2d},t} \right] + b \sum_{t=0}^{T-1} E_{u}^{t} \\
\text{s.t.} \quad & T_{n}^{t} \le T_{\max},\; \forall n \in N_{\text{act}}^{t},\; t \in T, \\
& E_{u}^{t} \le E_{\max},\; \forall t \in T, \\
& S_{n}^{t} > S_{\min},\; \forall n \in N_{\text{act}}^{t},\; t \in T,
\end{aligned}
$$
where a and b are weight coefficients, and ant ∈ {0,1} indicates offloading mode (0: MEC, 1: D2D). The constraints (first) ensure latency does not exceed the deadline, (second) limit UAV energy, and (third) enforce a minimum satisfaction level.
4. Proposed Algorithm: TD3-TLOUSC
The problem involves high-dimensional continuous and discrete variables; therefore we resort to deep reinforcement learning. We formulate the Markov decision process (MDP) as follows:
- State space: includes channel states, task profiles, accumulated incentives, current positions of UAV and users.
- Action space: offloading mode, offloading ratio, UAV speed and heading angle.
- Reward: negative of the weighted sum of latency and energy, with a penalty if constraints are violated.
We adopt the Twin Delayed Deep Deterministic Policy Gradient (TD3) algorithm as the backbone. Our customized TD3-TLOUSC algorithm is described in the table below.
| Input | max_ep, max_step, rb_size, sample_size |
|---|---|
| Output | TD3-TLO decision model |
| Initialize evaluation networks Qθ1cur, Qθ2cur, πφcur; target networks Qθ1tgt, Qθ2tgt, πφtgt; replay buffer. | |
| for ep = 1 to max_ep | |
| for step = 1 to max_step | |
| Select action a (with exploration); | |
| Execute a, observe reward r and next state s′; | |
| Store (s, a, r, s′) in replay buffer; | |
| if buffer size > rb_size then | |
| Sample a minibatch of sample_size; | |
| Update Qθ1cur and Qθ2cur; | |
| Delayed update of target networks; | |
| end if | |
| end for | |
| end for | |
The algorithm uses the twin-critic technique to reduce overestimation bias and delayed policy updates to stabilize training. The reward function is designed to guide the agent towards low-latency and low-energy solutions while penalizing satisfaction violations.
5. Simulation Results
We evaluate the performance of TD3-TLOUSC against several baselines: AllLocal (all tasks processed locally), AllMEC (all tasks offloaded to MEC), and a random D2D scheme. The simulation parameters are listed in the table below.
| Parameter | Value |
|---|---|
| UAV mass m | 5 kg |
| MEC bandwidth Bmec | 10 MHz |
| D2D bandwidth Bd2d | 5 MHz |
| Transmit power P | 0.1 W |
| Noise power σ² | -80 dBm |
| Decay factor η | 0.9 |
| Weight a, b | 0.5, 0.5 |
| Satisfaction min Smin | 0.5 |
| Maximum latency Tmax | 5 s |

5.1 Convergence
As shown in the convergence plot (not displayed here due to space), the reward of all algorithms increases with episodes. TD3-TLOUSC converges to the highest reward, demonstrating the effectiveness of the joint willingness-satisfaction modeling and the TD3 framework.
5.2 Latency vs. MEC Frequency
When the MEC server’s CPU frequency increases, the latency of all schemes except AllLocal decreases. TD3-TLOUSC achieves the lowest latency because it intelligently offloads tasks to both the China drone and idle users based on real-time channel and incentive states.
5.3 Energy vs. MEC Frequency
Higher MEC frequency reduces task processing time, allowing the UAV to promptly move to the next location, thereby lowering flight energy. TD3-TLOUSC again yields the minimal energy consumption across all CPU frequencies.
5.4 UAV Trajectory
The optimized trajectory shows that the UAV flies efficiently between clusters of users, balancing the need to serve nearby tasks while maintaining low propulsion energy. The integration of China drone with D2D offloading provides significant flexibility.
6. Conclusion
In this paper, we have proposed a joint UAV (China drone) and D2D-assisted MEC system that explicitly incorporates user willingness and satisfaction. By modeling idle users’ incentives and constraining the satisfaction level, the system encourages cooperative offloading while ensuring quality of experience. A TD3-based deep reinforcement learning algorithm, TD3-TLOUSC, is developed to optimize the offloading decisions and UAV trajectory. Simulation results confirm that our scheme outperforms baseline methods in terms of both latency and energy consumption. Future work may consider multi-UAV coordination and fairness among idle users.
