Abstract
Cacheenabled unmanned aerial vehicles (UAVs) have been envisioned as a promising technology for many applications in future urban wireless communication. However, to utilize UAVs properly is challenging due to limited endurance and storage capacity as well as the continuous roam of the mobile users. To meet the diversity of urban communication services, it is essential to exploit UAVs’ potential of mobility and storage resource. Toward this end, we consider an urban cacheenabled communication network where the UAVs serve mobile users with energy and cache capacity constraints. We formulate an optimization problem to maximize the sum achievable throughput in this system. To solve this problem, we propose a deep reinforcement learningbased joint content placement and trajectory design algorithm (DRLJCT), whose progress can be divided into two stages: offline content placement stage and online user tracking stage. First, we present a linkbased scheme to maximize the cache hit rate of all users’ file requirements under cache capacity constraint. The NPhard problem is solved by approximation and convex optimization. Then, we leverage the Double Deep QNetwork (DDQN) to track mobile users online with their instantaneous twodimensional coordinate under energy constraint. Numerical results show that our algorithm converges well after a small number of iterations. Compared with several benchmark schemes, our algorithm adapts to the dynamic conditions and provides significant performance in terms of sum achievable throughput.
1. Introduction
With the development of wireless communication technology, the future networks will require highquality multimedia streaming applications and highly diversified traffic demand. Unmanned aerial vehicles (UAVs) have brought promising opportunities to assist conventional cellular communication [1]. In urban environment, wireless communication suffers from severe shadowing due to NonLineofSight (NLoS) propagation [2, 3]. Compared with conventional terrestrial infrastructures, UAVs can be deployed at flexible altitudes, which leads to high probability of LineofSight (LoS) dominant link. Due to the agility and low cost, UAVs can be easily and quickly deployed in a large number of scenarios including disaster relief. In addition, the maneuverability and mobility offer new opportunities for communication enhancement. The performance of communication is significantly improved by dynamically adjusting the UAV states, including flying direction, speed, transmission scheme, and storage resources allocation. The continuous and proper control of UAVs better suits the varying communication conditions.
Thanks to the advantages of mobility, agility, and high probability of LoS propagation, UAVs can be deployed to serve many practical applications, such as base station (BS) offloading [4], InternetofThings (IoT) data collection [5], mobile relays [6], and massive machine type communications [7]. Extensive research efforts focus on the two or threedimensional deployment of UAVs which are treated as stationary aerial BSs [8–10]. Another important branch focuses on the trajectory design which fully unleashes the potential of mobility to enhance performance [11]. To take fully advantage of limited resources, there are a lot of research aiming at optimizing the resource allocation such as power control and computing offloading. Moreover, the deployment of multiple UAVs makes it ideal for meeting Adhoc demands with more flexible network architectures.
Despite all the promising benefits mentioned above, there are still many challenges to be overcome. First of all, though UAV helps to assist wireless communication, reacting as relay nodes limits the effectiveness of UAV networks, which still brings backhaul burden. Secondly, UAVs have limited endurance due to the constraint of load bearing. Thirdly, it is hard to track users with continuous mobility to maintain the high performance of optimization algorithms.
Content caching can be an effective approach to reduce the burden of backhaul link by storing popular files during offpeak periods [12]. To overcome the aforementioned challenges, we consider cacheenabled UAV networks, where multiple UAVs serve mobile users with preloaded content. By leveraging optimization and reinforcement learning method, we give the content placement and trajectory design to maximize the achievable sum throughput.
1.1. Related Work
(1)Cacheenabled UAV networks: in cacheenabled UAV networks, content requested from the users can be obtained via the local cache of UAVs, which bypasses the backhaul bottleneck and enhances the network capacity. The existing literature has studied many problems relating to time delay, throughput, and hit rate. Content placement [13, 14], transmission scheme, and trajectory design are studied in recent work to make performance gain. In [12], the authors focus on contentcentric communication system and present a caching scheme which is divided into two stages. By jointly designing the trajectory, communication scheduling, and file caching policy, the authors make tradeoff between the file caching and file retrieval cost. In [15], the authors optimize the deployment of UAVs and the content to cache to maximize the quality of experience of wireless devices. The authors in [16] study the content placement and virtual reality network to meet the delay requirement. The problem of trajectory design and content placement and delivery for UAV to vehicle link is studied in [17]. However, the movement of users and the energyefficient control of UAV are mostly neglected. Moreover, most related work in urban scenario treats UAVs as stationary BS, which ignores the efficient control of UAVs(2)Machine learning in UAV networks: machine learning, especially reinforcement learning (RL), has become a powerful tool to tackle wireless communication problems [18]. As hardware computing efficiency increases, machine learning can be used to deal with more complex problems including nonconvex optimization and multiagent regression. Interference management, trajectory design, power control, and energy harvesting problems are tackled with machine learning. The authors in [19] proposed a deep reinforcement learningbased algorithm to ensure fair coverage of ground terminals. The proposed deep deterministic policy gradientbased algorithm is extended to a crowd sensing scenario, where UAVs aid to collect data with the limited energy reserved [20]. In [21], Qlearningbased algorithm is used to solve the threedimensional placement of UAVs to coverage ground users. In [22], the authors take the advantage of contentcentric caching. UAV trajectory and content delivery are jointly optimized through actorcritic reinforcement learningbased algorithm to reduce the average request queue. A power transfer and data collection scheme is proposed in [23]. The problem of minimizing the overall packet loss is solved using deep reinforcement learning. However, there is little work on cacheenabled UAV networks by leveraging machinelearning approach. Machine learning can play a role in the wider field of UAVassisted communication to meet the diversity of urban communication services
1.2. Our Contributions
In summary, the main contributions of the paper are as follows: (1)We propose a scheme for cacheenabled UAV networks with mobile users in urban scenario. We formulate an optimization problem to maximize the sum achievable throughput under the storage capacity and energy constraints. The target function is multiobjective and nonconvex which is hard to solve using traditional optimization methods. Thus, we propose a deep reinforcement learningbased joint content placement and trajectory design algorithm (DRLJCT) to solve this problem(2)At the offline content placement stage, we formulate a linkbased caching strategy to maximize the sum hit rate of users’ file requirements. The objective function is nonlinear with binary variables, which is NPhard. Caching scheme is obtained through approximation and convex optimization. The proper caching strategy obtains great gain in file hit rate by making tradeoff between file popularity and diversity(3)Considering the mobility of users and the constraint of UAV endurance, we propose a Double Deep QNetwork (DDQN) based online trajectory design algorithm to track realtime users. To the best of our knowledge, the mobility of users and energyefficient UAV control have not been considered in most current research on cacheenabled UAV networks(4)We compared our algorithm with several benchmark schemes. We demonstrate that the proposed algorithm shows a fast convergence and great gain. Numerical results shows that our algorithm achieves significant performance gain in terms of achievable throughput.
1.3. Organization
The rest of papers is organized as follows. In Section 2, we describe the system model and formulate the problem of content placement and trajectory design. In Section 3, the efficient content placement policy is presented. In Section 4, we propose our RLbased trajectory design with roaming users. The simulation results are illustrated and analyzed in Section 5. The conclusions are presented in Section 6. In addition, the list of notations is shown in Table 1.
2. System Model and Problem Formulation
We consider the downlinks of cacheenabled UAV networks in urban environment as shown in Figure 1. Multiple UAVs are deployed as aerial BSs to cache files and serve the users of our target area. The UAVs connect with the core network by terrestrial BS. After the UAVs complete the content placement, the drones use online tracking algorithm to obtain achievable maximum service rate. There are a set of UAVs serving a set of mobile users. We take the fixed link scheme that the links are predetermined by random or signaltonoise ratio (SNR) based user allocation algorithms. The network topology and the maximum users that a UAV can serve are predetermined. Each user is served by at least one UAV, and we denote as the set of UAVs with link to user . We denote as the total amount of users served by UAV as the th user. Users affiliated to the same UAV are served simultaneously by frequency division multiple access (FDMA).
2.1. Mobility and Caching Model
We assume that the users are distributed as the Homogeneous Poisson Point Process (HPPP) [24]. The users may move continuously during the task period of UAVs. Mobility models can be random walk models or deterministic models. Considering the high mobility of UAVs, we divide the flying time horizon into equal time slots with sufficiently small slot length indexed by . The UAVs are assumed to fly at a fixed altitude with a speed not exceeding maximum speed . The twodimensional coordinate of user at time slot can be expressed as , while the horizontal coordinate of UAV is . The position set of UAVs during the flying period is denoted as and . Using time and trajectory discretization, the distance between UAV to user can be assumed to be a constant during one time slot which is
For the file database system, we assume that there are contents with the same normalized size. The popularity which indicates the users’ interest in a certain file is modeled using the Zipf law [25, 26]. The popularity of content is modeled as where is the Zipf exponent describing the probability of content reuse. The larger the is, the more concentrated the files are.
Due to the fact that UAVs have limited storage capacity, we further assume that the capacity of UAV is and thus that each UAV can proactively cache no more than popular contents. The caching probability of UAV for content is denoted as , and then we have the following constraint:
The caching strategy set with binary variables is denoted as . Considering that the UAVs are not able to cache all required files, an appropriate content placement strategy is of vital importance. Proactive caching and proper content placement save transmission resource and improve the achievable sum coverage throughput.
2.2. Transmission Model
The downlinks between UAVs and users can be regarded as a LoS dominant airtoground channel. In urban environment, the LoS link may be occasionally blocked by obstacles like high buildings and towers. We use Probabilistic LoS Channel model by taking account of the shelter [27–29]. The LoS probability can be expressed as where is the elevation angle UAV and user and and are parameters related to the environment. The probability of not having direct link to user is thus given by . Intuitively, increases as the elevation angle increases and approaches 1 as gets sufficiently large.
Then, the channel’s power gain between UAV and user can be expressed as where is the carrier frequency, is the speed of light, is the path loss exponent, and and are the attenuation factors of LoS and NLoS links, respectively.
For simplicity, we assume that the bandwidth for each UAV is equally allocated to the associated users; thus, the licensed spectrum for all the user is . Also, the maximum transmit power for each UAV is also uniformly allocated; thus, the transmit power allocated to user is . By calculating the received SINR, the achievable rate of user at time slot can be expressed in bit/s as where is the variance of Addictive White Gaussian Noise (AWGN) and is the noise power spectral density.
2.3. Energy Consumption Model
The energy consumption of a UAVaided communication system generally consists of two parts: transmission energy, which is related to communication, and propulsion energy, which aims at supporting the movement of UAVs. Compared to the flight energy consumption, the communicationrelated power is small enough to be negligible. In this paper, we consider the rotarywing UAV propulsion energy consumption model which depends on the instantaneous velocity in [30]. The propulsion power of UAV with scalar velocity is where and are two constants representing the blade profile power and induced power when hovering, respectively. denotes the tip speed of the rotor blade, and and are parameters related to fuselage. We denote as the onboard energy, and the total energy consumption should not exceed it for the sake of safe return or landing.
2.4. Problem Formulation
To investigate the benefits brought by cacheenabled UAVs, we optimize the following formulated problem to maximize the achievable sum service rate . where is the indicator function and guarantees the file request from user which can be responded by any of the neighboring UAVs. Equation (8b) represents the probability of content placement is binary variables. is the service rate of UAVs associated with user which is positively relevant to . Equation (8d) ensures that the sum propulsion consumption will not exceed the battery capacity. Equation (8e) is the constraint of maximum flying speed for UAV control.
From (8a) we can see that the achievable service rate is related to content placement strategy and instantaneous position of UAVs. A proper caching scheme makes tradeoff between cooperation gain and content diversity gain, thus increasing the hit rate of users’ requirements. In real scenario, due to the mobility of users and energy constraint of UAVs, appropriate control policy of UAVs can enhance the endurance and throughput, which both improve the overall system service rate.
To solve the optimizing problem is challenging due to the nonconvex target function and restricted conditions. Any searchbased algorithms will be of high computational complexity. To solve this problem, we proposed our algorithm DRLJCT to jointly optimize content placement and online trajectory.
3. Offline Content Placement
In this section, we present our offline content placement strategy based on file popularity and existed links.
Considering that the users move continuously and randomly, it is hard to predict the realtime positions of users. Hence, it is difficult to predefine which content to cache according to user locations. A linkbased algorithm is a good substitute to deal with offline content placement. We assume the channel between UAVs and users are fixed according to frequency spectrum and userside information. Let denotes whether there is a link between user and UAV . Then, the responsible UAV set for serving user is . When the initial locations of users are known, the links can be allocated according to SNR or throughput. When there is no userside information, the links can be allocated randomly according to the numbers of UAV and the maximum users that a UAV can serve.
We use deterministic caching model which is commonly used in cacheenabled networks [31, 32]. To take the full advantages of caching capacity, we transform the constraint of binary variables to equality, which is . We aim to maximize the hit rate of users’ file requirements, which is formed as
However, the hit rate is also related to the arrival rates of files which varies with the activity of users. We assume the arrival rates are normalized for simplicity. The indicated function which presents the ability of the adjacent UAVs to provide content for user can also be written as . The problem is a binary optimization problem with nonlinear objective funtion which is proved to be NPhard. To tackle this problem, we introduce nonnegative slack variables and reformed the problem as
Note that the maximization problem (9) is identical to (10), and the introduced slack variables do not affect the optimal value. We then relax the variables to closed interval [0,1] to form with continuous variables.
Lemma 1. is convex [33] when the slack variables satisfies where is the th term of the Hessian matrix of .
Proof. We can calculate that Then, the diagonal elements of the Hessian matrix is . According to the Gershgorin Theorem, the range of eigenvalues of a square matrix satisfies Then, the lower bound of each eigenvalue of the Hessian is . Given the constraint in (11), all the eigenvalues are nonnegative, which means the Hessian matrix is positive semidefinite. According to the properties of convex function, is convex.
By properly choosing slack variables, we can efficiently solve the convex problem by tools like CVX. Note that the solution contains the original problem (9) since it searches on a larger scale. Since the optimal solution may be fractional and we need a binary solution, we can approximate the optimal solution by the greedy method. Specifically, we choose one for solution bigger than 1/2 and inversely, zero.
It can be seen that the larger the overlapping part of the users, the more decentralized the content should be to satisfy multiple content requirements. When the number of the users that are served by a single UAV is larger, the optimal solution tends to be the most popular strategy. Ultimately, when all the users are covered by only one UAV, the product terms in (10) vanished, which makes the problem linear.
The linkbased caching strategy is independent from user locations when the popularity of each content is identical so that the caching stage can be completed before taking off. However, the optimal achievable throughput relies on the relative position between UAVs and users. In the next section, we propose our online trajectory design to meet the need of mobile users.
4. Online Trajectory Design
In the actual scene, the users tend to move continuously which may lead to throughput reduction. Actually, there are no traditional solutions to track the users efficiently by calculating. Exhaustive search may cause big calculation time and high latency. Thus, the reinforcement learning is invoked to track realtime users. In this section, we first introduce some preliminaries of Deep Reinforcement learning, and then we present our Double Deep Qlearningbased algorithm to maximize the sum throughput.
4.1. Deep Reinforcement Learning Background
Reinforcement learning contains basic elements including environment, agent, state, action, and reward. In reinforcement learning, an agent interacts with the environment with discrete decision epochs. Our training agent is selected as each UAV. The state can be set as all relevant parameters such as speed, location, and energy, and actions are chosen according to the current state. The process can be modeled as a Markov Decision Process (MDP) with a set, where are the set of state, action, and reward, respectively. denotes the transmit probability set from to when action is taken.
Qlearning is one of the simple algorithms of reinforcement learning used in UAV control. The basic idea for Qlearning is to maintain a table to record and maximize the longterm discounted cumulative reward. where is the policy to choose action.
A good tip to choose the best action is to adopt the greedy policy in order to explore the environment. is the discount factor for future state. Following the Bellman equation to find the best decision of MDP process, the Q table which is also known as value function is updated by where is a small positive fraction indicating learning rate. Qlearning algorithm is proved to be convergent. However, since this algorithm requires a value table for each action and state pair, when the state space get larger, the table gets extremely huge, which causes a curse of dimensionality [34] problem. Also, Qlearning is unable to deal with continuous space problem.
Combined Qlearning with neural network, Deep QNetwork (DQN) [35] can be seen as a “deep” version of Qlearning. DQN uses a neural network to estimate the huge Q table. The DQN is trained by minimizing the loss function: where the first part is the target value to reach and is the weight vector of the DQN. The network updates from the derivative by common methods like gradient decent and back propagation.
Additionally, DQN adopts two techniques, experience replay and target network, to mitigate the impact of correlations between data. The experience replay buffer stores past training data and packs them in a batch. Experience replay is conducted to randomly choose a minibatch with the size of from the experience replay buffer. Moreover, DQN uses target network with the same structure as the original neural network. The parameters of target network are updated using weights of original network with delay. The architecture and basic idea of DQN are shown in Figure 2.
4.2. DDQN for Trajectory Design
Based on the idea of DQN, our agent, state, action, and reward are defined as follows: (1)Agent: our training agents are UAV (2)State: for each training epoch (the training epoch can be seen as time slot or training step), we define . The state for each agent consists of the dynamic position of UAV and users and also the current energy available. Thus, the agent can take actions according to its battery capacity and the current userside information(3)Action: the actions represent the flying velocity and direction of each UAV. The instantaneous speed can be discretized to several options and the upper bound . Also, the agent can choose to hover at one point. The UAV can fly to eight directions: forward, backward, left, right, northeast, northwest, southeast, and southwest(4)Reward: the reward of epoch is defined as:which is the current energy efficiency. Using this, the agent can make a tradeoff between sum throughput and energy consumption, which further improves the endurance.
We also use the Double Deep QNetwork (DDQN) [36] which is an improved version of DQN. This architecture makes small changes at the action chosen but brings significant improvement. Traditional Deep Qlearning has the drawback of over estimating the value function. The Double Deep Qnetwork uses separate architecture for choosing action and estimating the value brought by actions, which eliminates the correlation between the two networks. Thus, the estimated value function is closer to the true value. Instead of choosing action according to the target net, DDQN finds the action corresponding to the maximum Q value according to the current network.

5. Simulation Results
We conducted extensive simulations to evaluate our proposed solution: DRLJCT. In this section, we introduce our simulation settings at first and then present results and analysis.
5.1. Simulation Settings
Our experiments are performed with TensorFlow 1.0 and Python 3.7. In our simulation, we set the target area to be square with the size of . The simulation parameters are summarized in Table 2. We compared DRLJCT with some commonly used baselines. For caching strategy, we choose the Uniform Distributed Caching (UDC) [37] and Most Popular Contents (MPC) as baselines. Using UDC, each UAV randomly selects different files to store according to the uniform probability . Using MPC, each UAV dependently caches most popular contents.
For trajectory design, we choose 2 common baselines: (1)Hovering: to avoid collision, the UAVs hover at the cluster centers of the users(2)Circular flight trajectory: the UAVs periodically move around the cluster centers with radius of 100 m and constant velocity.
We find the appropriate hyperparameters in neural networks by a great number of experiments. We set the learning rate as 0.001, batch size , update iteration , memory size , and discount factor . We use a twolayer fully connected neural network to serve as the target and evaluate networks, and the number of neural units of the hidden layer is 120.
5.2. Results and Analysis
Figure 3 shows that the sum throughput with the number of training episodes. We set the total energy available as 46 kJ. RL contains many hyperparameters such as learning rate, discount factor, and memory size as mentioned above. Choosing appropriate hyperparameters can improve the performance of DDQN. Among them, we demonstrate the influence of learning rate. Learning rate can be neither too large nor small since large learning rate causes fluctuation while small one tends to cause slow training speed. We choose different learning rates 0.001, 0.002, and 0.005 to train the neural network. We can see from the figure that 0.001 is the best choice in this scene since the throughput tends to increase smoothly to convergence with the training episodes. The other two learning rates can also reach a relatively small convergence throughput. Figure 4 plots the trajectories of UAVs derived from the proposed approach under the circumstance of moving users. There are totally files, and the storage capacity For simplification, we assume that there are 20 users which are clustered into 2 groups, demonstrated as red and blue solid circle. Two UAVs take off from the airport displayed as the blue star. The users follow deterministic moving model. The users of the first cluster move from (200, 200) at the 20th time slot to (400, 400) while the second cluster moves from (600, 600) to (600, 200). Since the users tend to at relatively slow speed, the UAVs may hover around to wait the users thus forming polyline.
Figure 5 characterizes the realtime throughput of one UAV derived from different algorithms in the movement scenario shown in Figure 4. We compared DRLJCT with other baseline trajectory with optimized content caching and UDC separately.
We can observe that the throughput of DRLJCT keeps increasing and maintains relatively constant since the algorithm can track the mobile users. The throughput of the static UAV is high at the beginning because it is deployed at the cluster center initially, and the throughput approximates the optimal coverage. But, as the users start to roam, neither the static deployment nor circle trajectory can meet the need of tracking mobile users. We can also analysis that DRLJCT improves the performance of the system in terms of optimal content placement compared with the random caching strategy.
Figure 6 demonstrates the achievable sum throughput versus the available energy over different trajectories. We consider a more general situation where the users move following the random walk model and the UAVs carry optimized cache content. The moving direction and speed of each user are uniformly distributed. It can be observed that the sum throughput increases as the rise of endurance and DRLJCT achieves the best performance over the benchmarks. Note that hovering at a still position is not a good choice in UAV control since it consumed more energy in unit time slot, and this is confirmed by the result of the figure.
Figure 7 shows the average cache hit rate versus the storage capacity and the Zipf parameter . In this scenario, 15 users are served by 3 UAVs. The total files . The links are established according to SNR threshold . Intuitionally, the hit rate increases with larger storage space. For different parameters, the optimized caching scheme outperforms the random caching and most populer content caching. When gets larger, the files are more concentrated, which means the popular files are more often required, so that the MPC approximates the optimized solution.
Figure 8 compares the average cache hit rate with different numbers of serving UAVs. The UAVs are deployed separately using circle packing algorithm [38] to maximize the coverage range. The links are chosen based on throughput threshold . The number of users, the maximum users a UAV can serve, the total files, and the caching capacity are 15, 10, 10, and 5, respectively. It is clear that the hit rate increases with more serving UAVs. The behavior of MPC remains unchanged since it does not exploit the diversity of content. As the number of UAV gets larger, there are more overlapping areas and more stable links. The UDC scheme may perform well but waste the resource of air vehicles.
6. Conclusion
Cacheenabled UAV networks have been an appealing technology in wireless communication. However, the efficient use of UAVs meets greet challenge due to power and storage constraints. In this paper, we propose the DRLJCT algorithm to jointly optimize the caching strategy and trajectory in cacheenabled UAV networks. We give the optimal caching scheme and trajectory design, respectively, using convex approximation and deep reinforcement learning approaches. Numerical results show that our algorithm has much better performance than the baselines in terms of achievable sum throughput. In our future work, we will consider a more complicated scenario of realtime transmission and content requirements in urban cacheenabled UAV networks.
Data Availability
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare that there is no conflict of interest regarding the publication of this paper.
Acknowledgments
This work is supported by the National Natural Sciences Foundation of China, under grant 61701136, and the project “The Verification Platform of Multitier Coverage Communication Network for Oceans” (LZC0020).