Next Article in Journal
A Test System for Transmission Expansion Planning Studies
Previous Article in Journal
Hybrid Uncertainty Calibration for Multimodal Sentiment Analysis
Previous Article in Special Issue
Learning-Based Multi-Domain Anti-Jamming Communication with Unknown Information
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Agent-Deep-Reinforcement-Learning-Enabled Offloading Scheme for Energy Minimization in Vehicle-to-Everything Communication Systems

1
School of Information Engineering, Southwest University of Science and Technology, Mianyang 621000, China
2
College of Computer Science, Chengdu University, Chengdu 610100, China
3
Guangdong Provincial Key Laboratory of Future Networks of Intelligence, The Chinese University of Hong Kong, Shenzhen 518172, China
4
Department of Information and Communication Engineering, Tongji University, Shanghai 201804, China
*
Authors to whom correspondence should be addressed.
Electronics 2024, 13(3), 663; https://doi.org/10.3390/electronics13030663
Submission received: 9 January 2024 / Revised: 28 January 2024 / Accepted: 31 January 2024 / Published: 5 February 2024
(This article belongs to the Special Issue Advances in Deep Learning-Based Wireless Communication Systems)

Abstract

:
Offloading computation-intensive tasks to mobile edge computing (MEC) servers, such as road-side units (RSUs) and a base station (BS), can enhance the computation capacities of the vehicle-to-everything (V2X) communication system. In this work, we study an MEC-assisted multi-vehicle V2X communication system in which multi-antenna RSUs with liner receivers and a multi-antenna BS with a zero-forcing (ZF) receiver work as MEC servers jointly to offload the tasks of the vehicles. To control the energy consumption and ensure the delay requirement of the V2X communication system, an energy consumption minimization problem under a delay constraint is formulated. The multi-agent deep reinforcement learning (MADRL) algorithm is proposed to solve the non-convex energy optimization problem, which can train vehicles to select the beneficial server association, transmit power and offloading ratio intelligently according to the reward function related to the delay and energy consumption. The improved K-nearest neighbors (KNN) algorithm is proposed to assign vehicles to the specific RSU, which can reduce the action space dimensions and the complexity of the MADRL algorithm. Numerical simulation results show that the proposed scheme can decrease energy consumption while satisfying the delay constraint. When the RSUs adopt the indirect transmission mode and are equipped with matched-filter (MF) receivers, the proposed joint optimization scheme can decrease the energy consumption by 56.90% and 65.52% compared to the maximum transmit power and full offloading schemes, respectively. When the RSUs are equipped with ZF receivers, the proposed scheme can decrease the energy consumption by 36.8% compared to the MF receivers.

1. Introduction

The sixth generation (6G) is expected to enhance energy efficiency and the intelligence level to meet mass connectivity and low latency requirements of wireless communication network [1]. Supported by 6G, vehicle-to-everything (V2X) with the requirements of low communication delay is an instrumental element of future connected autonomous vehicles [2]. This promising technology can obtain the location and speed of vehicles and road hazards, reduce traffic accidents and improve road safety [3,4], and has gained significant interest from vehicle manufacturers, researchers and scientific communities [5]. However, as intelligent applications, i.e., in-vehicle Internet access and cooperative collision warning [6], high mobility of the device [7] and low-latency requirements [8], using V2X technology to handle computation-intensive tasks that require a large amount of data computation and communication resources is a challenge [9]. By offloading tasks to mobile edge computing (MEC) servers, i.e., base stations (BSs) [7], road-side units (RSUs) [10] and unmanned aerial vehicles (UAVs) [11,12,13], MEC technology can meet the demand for computation resources in V2X networks [14]. In addition, offloading tasks to the MEC servers that are located close to the vehicles can effectively reduce the computation delays, meeting real-time communication requirements [15,16].
In [17], the authors developed a three-tier offloading architecture where vehicles can offload tasks to the RSUs and BS, and the average latency can be effectively reduced. In [18], vehicles offload tasks to the infrastructures and other vehicles to minimize the communication delay. In [19], the weighted sum of delay and energy consumption is minimized while considering the impact of interference on MEC-assisted V2X systems. In order to reduce the power consumption, the joint connection modes, uplink paths and task assignment optimization are studied in [20]. The communication and computation resource allocation, optimized jointly, is studied in [21] to minimize the cost of the V2X system under delay and energy constraints. In [22], the authors optimized user association and resource allocation jointly to maximize the overall data rate of both cellular users and device-to-device pairs. In [23], the end-to-end latency is minimized by optimizing the user association and resource allocation jointly. But, due to the coupling of many parameters, these optimization problems are highly non-convex and difficult to solve.
Deep reinforcement learning (DRL) is one of the leading research fields of artificial intelligence [24]. It can find the globally optimal or near-optimal solutions for more complex optimization problems even under an unknown environment [25,26,27], and has been adopted in numerous applications [28]. In [29], the authors present a DRL algorithm to maximize the long-term cache hit rate of the system, which consists of a single BS and several users. In a given time slot, the number of contents that users can request from the BS is fixed, and the BS acts as an agent and makes a content store decision. The simulation results show that the DRL algorithm can improve the cache hit rates and provide significant savings in runtime. In [30], the authors studied the UAV-assisted V2X system, which consists of several BSs and vehicles. In order to minimize the age of information, the DRL algorithm is proposed to jointly optimize the transmit power and computation offloading. The simulation results show that the DRL algorithm can significant reduce the age of information.
This paper studies an MEC-assisted multi-vehicle V2X system, where the BS and RSUs work as MEC servers jointly to offload the tasks of vehicles. In order to reduce energy consumption while ensuring the requirement of V2X communication delay, the energy consumption minimization problem is formulated under delay and power constraints, and the DRL algorithm is proposed to solve the non-convex energy consumption optimization problem. The abbreviations and acronyms used in this paper are summarized in Table 1 and the main contributions of this work can be summarized as follows:
(1)
To compute the computation-intensive tasks for the computation-limited vehicles, we study an MEC-assisted multi-vehicle V2X communication system, where multi-antenna RSUs with linear receivers and a BS with a zero-forcing (ZF) receiver offload the tasks of vehicles jointly. In order to control the energy consumption, we formulate the energy consumption minimization problem and transform the non-convex optimization problem into a multi-agent decision process. Thus, each vehicle is capable of making intelligent decisions in its own communication environment.
(2)
In order to solve the non-convex optimization problem while satisfying the delay and power constraints, the multi-agent deep reinforcement learning (MADRL)-enabled server association, transmit power and offloading ratio joint optimization scheme is proposed. According to the reward function, which is related to the delay and energy consumption, vehicles are trained to select the beneficial transmit power, server association and offloading ratio. In order to reduce the action space dimensions and complexity of the MADRL algorithm, the improved K-nearest neighbors (KNN) algorithm is used to assign the vehicles that are located within the coverage area of several RSUs to the specific RSUs. Vehicles that are allocated to the same RSU as a group, and vehicles in the l-th group, can only offload tasks to the RSU l or BS.
(3)
Numerical results show that the proposed MADRL scheme can reduce more energy consumption compared with the full offloading and maximum transmit power schemes, and RSUs equipped with ZF receivers can decrease more energy consumption compared to the matched-filtering (MF) receivers. In addition, the proposed DRL scheme has a stable convergence under the different number of vehicles and data packet sizes.

2. System Model

As shown in Figure 1, we consider an uplink MEC-assisted multi-vehicle V2X communication system that consists of a BS equipped with N B antennas, L RSUs equipped with N R antennas and K single-antenna vehicles. In addition, the number of RSUs L = 4 and number of vehicles K = 6 , and the radii of the BS and RSUs are 100 m and 200 m, respectively. In order to ensure real-time communication when the number of vehicles increases or vehicles move at a high speed, the RSUs and BS all work as the MEC servers jointly to offload the computation-intensive task of the vehicles. Thus, the vehicles can process the information locally or offload it to the RSUs via a vehicle-to-infrastructure (V2I) communication link or the BS via a vehicle-to-BS (V2B) communication link for edge computing. Meanwhile, each RSU has two transmission modes: direct mode , which transmits the processed task to corresponding vehicles directly, and indirect mode , which transmits the task to the wide-coverage BS, which transmits the processed information to the vehicles. For simplicity, the RSUs adopt the indirect transmission mode.
Significant interference caused by the multi-antenna BS and RSUs will increase the computation complexity of the multi-input multi-output (MIMO) system [31]. Thus, we adopt the linear receivers for the BS and RSUs to reduce the computation complexity [32]. Specifically, the BS is equipped with a ZF receiver and RSUs with linear receivers, respectively.

2.1. Channel Model of the Multi-Antenna RSUs

In our vehicular system, the RSUs are equipped with N R antennas to serve many vehicles at the same time. Assuming that the number of vehicles in the system K = K 1 + K 2 + + K L , with K l denoting the number of vehicles in RSU l, the received signal at the l-th RSU can be defined as
Y l R = ( P l R ) 1 / 2 G l R X l R + Z l R ,
where the diagonal matrix P l R is the transmission power matrix of the vehicles in RSU l, and P l R = diag [ p 1 R , p 2 R , , p K l R ] . p k R are the transmit power of the k-th vehicle in the l-th RSU, with indexes k denoting the k-th vehicle in the l-th RSU. G l R and X l R denote the channel matrix and the transmitted signal matrix between the vehicles and the l-th RSU, respectively. Z l R denotes the additive complex Gaussian white noise at the l-th RSU. The channel matrix between the vehicles and the l-th RSU can be defined as
G l R = [ g 1 , l R , g 2 , l R , , g K l , l R ] = H l R ( D l R ) 1 / 2 ,
where H l R = [ h 1 , l R , h 2 , l R , , h K l , l R ] and diagonal matrix D l R = diag [ β 1 , l R , β 2 , l R , , β K l , l R ] are the small-scale and large-scale fading matrix between the vehicles and the l-th RSU, respectively. h k , l R and β k , l R denote the small-scale and large-scale fading between the k-th vehicle and the l-th RSU, respectively. Thus, the channel vector between the vehicle k and the l-th RSU is given by g k , l R = β k , l R h k , l R .
Interference in the MIMO system will increase the analysis complexity of the multi-vehicle V2X system [33]. Thus, the liner equalizers such as the MF and the ZF receivers are applied to reduce the analysis complexity of the system [32]. The MF receiving matrix is represented by A l MF = ( G l R ) H . Thus, the received signal at the l-th RSU which is equipped with an MF receiver, is given by
Y l MF = A l MF X l R = ( G l R ) H X l R .
The signal-to-interference-plus-noise ratio (SINR) for vehicle k at the l-th RSU can be defined as
γ k , l MF = p k R | ( g k , l R ) H g k , l R | 2 I k , l MF ,
where I k , l MF = i = 1 , i k p i R | ( g k , l R ) H g i , l R | 2 + σ 2 | | g k , l R | | 2 is the interference between the k-th vehicle and the l-th RSU equipped with the MF receiver.
The ZF receiving matrix is represented by A l ZF = ( ( G l R ) H G l R ) 1 ( G l R ) H . Thus, the received signal at the l-th RSU, which is equipped with a ZF receiver, can be defined as
Y l ZF = A l ZF X l R = ( ( G l R ) H G l R ) 1 ( G l R ) H X l R .
The SINR for vehicle k at the l-th RSU is given by
γ k , l ZF = p k R σ 2 [ ( ( G l R ) H G l R ) 1 ] k , k .

2.2. Communication Model of the Multi-Antenna BS

In our vehicular system, the BS is equipped with an N B -antenna to serve the vehicles and RSUs. Therefore, all the RSUs and vehicles are users of the BS. Let M denote the BS’s users number, which can be regarded as a combination of L RSUs and K vehicles, i.e., M = L + K . Thus, the received signal at the BS can be defined as
Y B = ( P B ) 1 / 2 G B X B + Z B ,
where the diagonal matrix P B is the transmit power matrix of the users, which can be defined as P B = diag [ p 1 B , p 2 B , , p M B ] , with p m B denoting the transmit power of the m-th user. G B and X B denote the channel matrix and the transmitted signal matrix between the users and the BS, respectively. Z B denotes the additive complex Gaussian white noise at the BS. The channel matrix between the users and BS is given by
G B = [ g 1 B , g 2 B , , g M B ] = H B ( D B ) 1 / 2 ,
where H B = [ h 1 B , h 2 B , , h M B ] and diagonal matrix D B = diag [ β 1 B , β 2 B , , β M B ] are the small-scale and large-scale fading matrix between the users and BS, respectively. h m B and β m B denote the small-scale and large-scale fading between the m-th user and the BS. Thus, the channel vector between the m-th user and the BS is given by g m B = β m B h m B . In addition, in the vehicular system, the BS is equipped with a ZF receiver to eliminate the interference and provide higher communication rates of the V2B and infrastructure-to-BS (I2B) communication links [33]. The ZF receiving matrix can be defined as A ZF = ( ( G B ) H G ) 1 ( G B ) H . Thus, the received signal at the BS can be defined as
Y ZF = A ZF Y B = ( ( G B ) H G ) 1 ( G B ) H X B .
The SINR for user m at the BS can be defined as
γ m ZF = p m B σ 2 [ ( ( G B ) H G B ) 1 ] m , m .

3. Computing Model of MEC-Assisted V2X Communication System

The processing capabilities of the vehicles, RSUs and BS executing one bit of data are f V , f R and f B (in cycles/bit) CPU cycles, respectively. The data packet size generated by the vehicle is D k . In our vehicular system, the data model adopts a partial offloading model. Thus, the data packet can be regarded as a combination of local computation data D k L and offloading computation data D k O , i.e., D k = D k L + D k O . Let D k , l O , R and D k O , B denote the data offloading to the l-th RSU and the BS from the k-th vehicle, respectively. Thus,
D k O = D k , l O , R , x k = 0 , D k O , B , x k = 1 ,
where x k denotes the server association of vehicle k. x k = 0 and x k = 1 represent the vehicle offloading tasks to the RSUs or the BS, respectively. It should be noticed that, when the k-th vehicle offloads a task to the RSUs, D k O , B = 0 . Similarly, when the k-th vehicle offloads a task to the BS, D k , l O , R = 0 .

3.1. Local Computing Model

When the k-th vehicle offloads partial data to MEC servers, the vehicle needs to compute partial tasks locally. The computation delay and energy (in Joules, J) at vehicle k can be defined as [19]
T k L = D k L f k V , E k L = c 0 D k L ( f k V ) 2 ,
where f k V and c 0 denote the processing capability of the k-th vehicle and the energy coefficient depending on the chip architecture [34], respectively.

3.2. RSU Computing Model

The k-th vehicle offloading computation-intensive tasks to the l-th RSU for edge computing consists of three steps: (1) the vehicle offloads tasks to the associated RSU via a V2I communication link, and the RSU computes the offloaded data, (2) the RSU transmits the computed data to the BS via an I2B communication link and (3) the BS transmits downlink data. The feedback data packet size is small; thus, the delay and energy consumption of downlink transmission are ignored.
(1)
V2I communication link
The MF and ZF receivers are adopted to provide higher communication rates of the V2I communication links. When the RSUs are equipped with the MF receivers, according to Equation (4), the corresponding communication rate between the k-th vehicle and the specific l-th RSU can be written as
R k , l V 2 I = B V 2 I log 2 ( 1 + p k V | ( g k , l R ) H g k , l R | 2 i = 1 , i k p i V | ( g k , l R ) H g i , l R | 2 + σ 2 | | g k , l R | | 2 ) ,
where B V 2 I is the bandwidth of the V2I communication link and p k V is the transmit power of the k-th vehicle. When the RSUs are equipped with the ZF receivers, according to Equation (6), the corresponding communication rate between the vehicle k and the specific l-th RSU can be defined as
R k , l V 2 I = B V 2 I log 2 ( 1 + p k V σ 2 [ ( ( G l R ) H G l R ) 1 ] k , k ) .
Thus, the transmission delay and energy between vehicle k and the l-th RSU can be defined as [21,35]
T k , l V 2 I = D k , l O , R R k , l V 2 I , E k , l V 2 I = p k V T k , l V 2 I .
When the k-th vehicle offloads partial data D k , l O , R to the l-th RSU for edge computing, the computation delay and energy at the l-th RSU is given by [21]
T k , l O , R = D k , l O , R f l R , E k , l O , R = c 1 D k , l O , R ( f l R ) 2 ,
where f l R and c 1 denote the processing capability of the l-th RSU and the energy coefficient.
(2)
I2B communication link
The ZF receiver is adopted to eliminate the interference so that the communication rate of the I2B communication link can be improved. According to Equation (10), the communication rate between the l-th RSU and the BS is given by
R l I 2 B = B I 2 B log 2 ( 1 + p l R σ 2 [ ( ( G B ) H G B ) 1 ] K + l , K + l ) ,
where B I 2 B denotes the bandwidth of the I2B communication link, and p l R denotes the transmit power of the l-th RSU. Let D prc denote the tasks after computing. The transmission delay and energy between RSU l and the BS are given by
T l I 2 B = D prc R l I 2 B , E l I 2 B = p l R T l I 2 B .
The delay for the k-th vehicle offloading tasks to the l-th RSU for edge computing includes T k , l V 2 I , T k , l O , R and T l I 2 B , and energy consumption includes E k , l V 2 I , E k , l O , R and E l I 2 B . Therefore, the delay and energy consumption for the k-th vehicle offloads tasks to the l-th RSU for edge computing can be written as
T k , l R = T k , l V 2 I + T k , l O , R + T l I 2 B , E k , l R = E k , l V 2 I + E k , l O , R + E l I 2 B .

3.3. BS Processing Model

Vehicle k offloading tasks to the BS for edge computing consists of two steps: (1) the vehicle offloads task to the BS via the V2B communication link and the BS computes the offloaded data, and (2) the BS transmits downlink data. The delay and energy consumption of downlink transmission are ignored. The ZF receiver is adopted to eliminate interference so that the communication rate of the V2B communication link can be improved. According to Equation (10), the corresponding communication rate between vehicle k and the BS is given by
R k V 2 B = B V 2 B log 2 ( 1 + p k V σ 2 [ ( ( G B ) H G B ) 1 ] k , k ) .
Thus, the transmission delay and energy between the k-th vehicle and the BS can be defined as
T k V 2 B = D k O , B R k V 2 B , E k V 2 B = p k V T k V 2 B .
When the k-th vehicle offloads partial data D k O , B to the BS for edge computing, the computation delay and energy at the BS is given by
T k O , B = D k O , B f B , E k O , B = c 1 D k O , B ( f B ) 2 ,
where c 1 is the energy coefficient.
The delay for vehicle k offloading tasks to the BS includes T k V 2 B and T k O , B , and energy includes E k V 2 B and E k O , B . Thus, the delay and energy consumption for vehicle k offloading tasks to the BS for edge computing can be defined as
T k B = T k V 2 B + T k O , B , E k B = E k V 2 B + E k O , B .
Thus, the delay and energy consumption of the k-th vehicle is related to server association { x k = 0 , 1 } , offloading ratio and transmit power, and can be defined as
T k total = T k L + T k , l R , x k = 0 , T k L + T k B , x k = 1 , E k total = E k L + E k , l R , x k = 0 , E k L + E k B , x k = 1 .

3.4. Optimization Problem

In order to reduce the energy consumption of the V2X system while satisfying the requirements of communication delay, the energy consumption minimization problem is formulated under the delay constraint, which can be written as follows:
( P 1 ) : min x k , D k O , p k V k = 0 K E k total
s . t . T k total T max , k K ,
x k { 0 , 1 } , k K ,
0 p k V P max V , k K ,
0 D k O D k , k K .
To ensure basic communication, the first constraint limits that the processing delay of the tasks generated by vehicle k must be less than the maximum delay. The second constraint ensures that the tasks can be offloaded to the RSUs or BS for edge computing. Constraint (25c) is to limit p k V to not be greater than the maximum transmit power P max V . Constraint (25d) restricts that, for the vehicles that adopt the partial offloading model, the offloading quantity must be not greater than the maximum value D k . It is noted that, because of the coupling of server association, transmit power and offloading ratio, (P1) is a non-convex problem and difficult to solve by using the traditional convex optimization schemes while satisfying the delay and power constraints. Thus, the DRL algorithm is adopted to solve (P1), which can find the globally optimal or near-optimal solution of the complex optimization problem [36].

4. Proposed Scheme for Solving the Problem (P1)

In order to solve the highly non-convex problem, the DRL algorithm is proposed by optimizing the server association, transmit power and offloading ratio jointly. In addition, the improved KNN algorithm is used to assign vehicles and reduce the action space dimensions and complexity of the DRL algorithm.

4.1. Vehicle Grouping Based on the Improved KNN Algorithm

The optimization problem (P1) is aimed at minimizing the energy consumption of the MEC-assisted multi-vehicle V2X system while satisfying the delay constraint, which is related to the transmission rate and SINR of the wireless communication links. A higher SINR can effectively improve the communicate rate in the V2X system [37]. Thus, in order to minimize energy consumption, the SINR must be maximized. According to Equations (4), (6) and (10), the SINR is related to the vehicle’s transmit power in the same group. Therefore, assigning vehicles that are located within the coverage area of several RSUs to an RSU with a smaller user number can provide a higher SINR and reduce energy consumption.
The model-free KNN [38] method is one of the commonly used classification algorithms. It calculates the distance between initial center points and all training samples, and then obtains the test sample’s nearest neighbors sample and groups them together. But, it is hard for KNNs to correctly classify overlapping samples [39]. Removing an overlapped sample from the training set can increase the accuracy of the KNN classifier [40]. In this paper, the locations of RSUs and vehicles are regarded as initial center points and samples, respectively, and the improved KNN algorithm [41] is adopted to assign the vehicles within the coverage area of multiple RSUs to a specific RSU. The distance between the vehicle and RSUs is denoted by d k , l , which can be defined as
d k , l = ( x k V x l R ) 2 + ( y k V y l R ) ,
where ( x k V , y k V ) and ( x l R , y l R ) are the position of vehicle k and the l-th RSU, respectively. The k-th vehicle can communicate with the l-th RSU when d k , l R RSU , with R RSU denoting the radius of the l-th RSU. After calculating the distance between vehicles and RSUs, the improved KNN algorithm assigns a vehicle to the RSU with a smaller number of vehicles to decrease system energy consumption and computational complexity. The improved KNN algorithm is shown in Algorithm 1.
Algorithm 1 The Improved K-nearest Neighbors Algorithm
1:
Initial: The location of vehicles and RSUs. The radius of RSUs and the number of vehicles in each RSU.
2:
for vehicle k = 1 : K  do Initial the set I k and number i k of RSUs that can be selected by the k-th vehicle.
3:
      for RSU l = 1 : L  do Calculate the distance d k , l in (26). If d k , l R RSU , I k appends RSU l and i k + 1 .
4:
      end for
5:
      if  i k > 1  then Assigning vehicle k to the l-th RSU which is in I k and has a lower number of vehicles.
6:
      else Assigning vehicle k to corresponding RSU l which makes d k , l R RSU .
7:
      end if
8:
end for

4.2. Joint-Optimized Server Association, Offloading Ratio and Transmission Power Scheme Based on DRL

DRL learns from the environment-to-action mappings and develops an optimal strategy via trial and error [24]; according to the reward function, it trains agents to make quick decisions and optimal policies. Due to the non-convexity of objective function (P1), we propose an MADRL scheme. Agents interact with the environment and update the learning strategies. Therefore, the agent can choose the optimal action to minimize the total energy consumption of the V2X system while satisfying the delay constraint.
(1)
Agent: In the system, vehicles work as agents. They know their own information—since the BS and RSUs have no direct link to exchange the information, it is difficult to make the optimal decisions for offloading and power. Thus, the training is performed in the optimization problem to make the adjustment to the dynamic environment. We choose the vehicle as the agent to make the decision in the uplink link, and the BS and RSUs will send the corresponding information to the associated vehicles—i.e., the packet size of the task D k generated by vehicle k, set I k and the channel state information.
(2)
Action space: Due to the limited communication resources in the system, the server association, offloading ratio and transmit power affect the communication rate and determine the communication energy consumption. Thus, the action space of vehicle k comprises the server association, offloading ratio and transmit power. The server association action space of the k-th vehicle is given as A 1 = { x k = 0 , 1 } . The offloading and power control action space are given as A 2 = { D k d p , 2 D k d p , 3 D k d p , , D k } and A 3 = { P max V d l , 2 P max V d l , 3 P max V d l , , P max V } . d p and d l represent the length of offloading and the power control action space. Therefore, the k-th agent can choose action from the action space a k A = { A 1 , A 2 , A 3 } , k K .
(3)
State space: According to the communication model established in the system, the system energy consumption is related to transmission power, rate and delay; therefore, the state space comprises the transmit power p k V , transmission rate R k des and communication delay T k total in Equation (24). When x k = 0 , the transmission rate R k des is calculated by (14), and when x k = 1 , the transmission rate R k des is calculated by (20). Thus, the state of vehicle k can be expressed as S k = [ P k V , R k des , T k total ] , k K .
(4)
Reward: In the DRL algorithm, the agents are trained to adjust the action choice strategy and obtain the expected value by accumulating the maximum reward return. Aiming to minimize the total energy consumption of the V2X system and meet the delay constraint, the reward function of vehicle k is modeled as
r k = b k = 0 K E k total , if satisfied ( 25 a ) , T k total , otherwise ,
where b is a positive number. When the corresponding delay constraint can be satisfied, the agent will obtain a greater reward related with the energy consumption of the V2X system. When the corresponding delay constraint cannot be satisfied, the agent will obtain a negative reward related with the delay. In order to obtain the long-term rewards, agents are trained to choose the action that can minimize the energy consumption and meet the delay constraint.
The detailed design framework based on the deep Q-network (DQN) joint server association, offloading ratio and transmit power optimization scheme in the MEC-assisted V2X system is shown in Figure 2. The framework of the DQN contains two neural networks and an experience replay buffer, and vehicles act as agents interacting with the environment. On the current environment state s k , the k-th agent chooses and executes action a k and observes the next state s k and the greatest discount reward r k . The experience replay buffer is used to store < s k , a k , r k , s k > . DQN trains the agent by randomly selecting a batch of samples from the experience replay buffer during the exploration cycle. Specifically, the main network takes current state s k and action a k from each data sample to obtain the predicted Q-value Q ( s k , a k ) of the particular action a k . The target network takes next state s k and predicts the action a k with the largest Q-value from all actions that can be taken in that state, obtaining the target Q-value Q ( s k , a k ) . The predicted and target Q-value is used to calculate the loss function and adjust the parameters of the neural network.
The loss function of the k-th agent is used to obtain the best Q-function by adjusting the neural network parameters, which is given by [42]
L ( θ i ) = ( r k + γ ( max Q ( s k , a k | θ i ) Q ( s k , a k | θ i ) ) ) 2 ,
where θ i and θ i denote the weights parameters of the main network and target network during the i-th training, respectively. γ 0 , 1 is a discount factor that can weight the future rewards. In order to obtain the maximum long-term reward, the Q-function is updated based on the Bellman equation, which is written as
Q ( s k , a k ) = ( 1 α ) Q ( s k , a k ) + α ( r k + γ max ( Q ( s k , a k ) ) ) ,
where α denotes the learning rate, which directly determines how quickly the agent can adapt to the environment. DRL combines reinforcement learning with the DQN neural network [43] and makes agents observe from the environment and intelligently select the action that interacts with the environment. With repeated iterations, the agent will choose a better server association, offloading ratio and transmit power to minimize the energy consumption of the MEC-assisted multi-vehicle V2X communication system. The DRL-based scheme is show in Algorithm 2.
Algorithm 2 DRL-based Multi-agent Transmit Power and Offloading Optimization Scheme
1:
Inputs: The sate s of the vehicles.
2:
Initial: DQN-networks for all agents, including of policy strategy π ( s , a ) , Q ( s , a ) , and { α , γ , ϵ , θ } .
3:
for each iteration episode do
4:
    Agents observe state s t , randomly selecting an action with probability ϵ , or a r g max a t A { Q ( s t , a t ) } from the action space with probability 1 ϵ . Interacting with the environment, obtaining the next state s t and reward (27). Storing < s t , a t , r t , s t > in the experience replay buffer.
5:
    for each training step do
6:
        Agents select a random mini-batch data from the experience replay buffer, and transmit it to the neural network. The estimate network calculate the predicted Q-value according to s t , a t , the target network calculate the target Q-value according to r t , s t . According to the predicted and target Q-value, computing the loss function in (28), update the weights θ i to the target network and Q-value Q ( s t , a t ) in (29).
7:
    end for
8:
end for
9:
Outputs: The action a of the vehicles used to optimize the offloading decision, offloading ratio and power control.

4.3. DRL Algorithm Complexity Analysis

Computational complexity is critical for evaluating the algorithm performance. For the Q-learning algorithm, the Q-table of agents consists of ( | S | ) K rows with | S | = 3 denoting the length of the environment states and ( | a | p ) K columns with | a | p = 50 denoting distinct possible agent actions in our simulation. Thus, the whole Q-learning algorithm is O ( ( | S | ) K · ( | a | p ) K ) , and the complexity of the Q-learning algorithm is primarily determined by the dimensions of state space, the distinct possible agent actions and the number of agents. From Algorithm 2, it can be known that the whole MADRL algorithm procedure mainly contains two parts:
(1)
Calculate the reward function: Agents, according to the state, select the beneficial action, interact with the environment and obtain the reward. Thus, the computational complexity of an agent calculating the reward is O ( | s t | ) , with | s t | denoting the length of the state space for the t-th training step.
(2)
Select the beneficial action: For each agent, the numbers of layers in the DQN network and neurons in each layer are considered. For the DQN network, the number of layers in the DQN network is M, and neurons in the m-th layer is U m . Thus, the computational complexity of the m-th layer is O ( U m 1 U m + U m U m + 1 ) , and, for the t-th step, the computational complexity of an agent selecting the beneficial action is O c = O ( | s t | · U 2 + m = 3 M ( U m 1 U m + U m U m + 1 ) + U M 1 · | a t | ) , with | a t | denoting the length of the action space for the t-th training step. Therefore, the computational complexity of an agent is O ( O r + O c ) . The computational complexity for a complete episode is O ( N step ( O r + O c ) ) , where N step is the number of steps in one episode. The computational complexity for the whole algorithm is O ( N episode · N step ( O r + O c ) ) , where N episode is the number of iteration episodes. In this paper, all agents have the same DQN network, and the computational complexity of all agents is O ( K ( N episode · N step ( O r + O c ) ) ) . The complexity of the proposed algorithm is primarily determined by the network architectures of the DQN network structure and the dimensions of the state and action space. In addition, the complexity of the Q-learning algorithm is primarily determined by the number of agents, and the implementation of Q-learning is more complex compared to the MADRL algorithm in the multi-vehicle V2X communication system. Thus, the proposed MADRL algorithm is more suitable for solving the optimization problem (P1) in this work.

5. Simulation Results

Numerical results are provide to prove the effectiveness of the proposed DRL scheme in this section. Unless otherwise stated, the BS is located at the origin and its radius is 400 m. The number of RSUs L = 4 and the radius of the RSUs is 200 m. The number of vehicles K = 6 . Note that the vehicles are in the coverage of the RSUs, which are in the coverage of the BS. Other parameters are shown in Table 2. In addition, in order to reflect the excellent performance of the joint optimization scheme, the maximum transmit power and full offloading schemes are adopted as benchmark schemes. Specifically, the maximum transmit power scheme represents that vehicles use their maximum transmit power offloading task, and the full offloading scheme represents that vehicles offload all tasks to the RSUs or BS for edge computing. The DQN has one input layer, one output layer and two hidden layers, and the number of neurons in each layer is 10. The simulation environment is Python 3.7.4 and TensorFlow 2.1.0.
The energy consumption of the MEC-assisted multi-vehicle V2X system versus the number of training episodes under different learning rates, i.e., α = 0.005 , 0.01 and 0.05, is shown in Figure 3. Figure 3a,b show that the energy consumption decreases when the RSUs are equipped with MF and ZF receivers, respectively. It can be seen that, whether the RSUs are equipped with MF or ZF receivers, as the training episode increases, the energy consumption decreases and is finally stable under the proposed scheme with different learning rates, especially when α = 0.01 . Thus, α = 0.01 is adopted to train vehicles to select the beneficial server association, offloading ratio and transmit power to minimize the energy consumption. In addition, energy consumption when the RSUs are equipped with the ZF receivers is lower than when equipped with the MF receivers. This is because the ZF receivers eliminating the inter-user interference of the V2I, I2B and V2B communication links results in a higher transmission rate. The delay of each vehicles versus the number of training episodes under the proposed scheme when α = 0.01 is shown in Figure 4. Figure 4a,b show the delay of each vehicle when the RSUs are equipped with MF and ZF receivers, respectively. It is noted that the delay of each vehicles is less than the maximum vehicle delay; thus, the proposed scheme can decrease the energy consumption while satisfying the delay constraint.
The energy consumption versus the number of training episodes under different schemes is shown in Figure 5. Figure 5a,b show the energy consumption under different schemes when the RSUs are equipped with MF and ZF receivers, respectively. It is noted that the energy consumption decreases and is finally stable under different schemes. When the RSUs are equipped with the MF receivers, the proposed scheme can decrease the energy consumption by 55.89% and 64.67% more than the maximum transmit power and full offloading schemes, respectively. This is because the proposed scheme optimizes the offloading ratio and the transmission power jointly, which both have an impact on the energy consumption. When the RSUs are equipped with the ZF receivers, the proposed scheme can decrease the energy consumption by 20.00% more than the full offloading scheme, but has a similar performance compared to the maximum transmit power scheme. This is because ZF receivers can eliminate inter-user interference, making vehicles choose the maximum transmit power to offload tasks. In addition, RSUs equipped with ZF receivers under the proposed scheme can decrease the energy consumption by 35.04% more than MF receivers.
Figure 6 shows the impact of the number of vehicles on the energy consumption. It can be seen that as the number of vehicles increases, the energy consumption increases under the same scheme, which is independent of the RSUs equipped with the receiver. This is because the number of vehicles increases, the interference caused by other vehicles increases and transmission rate decreases. In order to satisfy the delay constraint, vehicles need to offload more tasks to the MEC server for edge consumption, which makes the energy consumption increase. When the number of vehicles K is lower than the number of RSUs L, the energy consumption of the maximum transmit power scheme is the same as the proposed scheme. This is because the improved KNN algorithm assigns vehicles to different RSUs, and the vehicles will use the maximum transmit power in the offloading task but not cause interference to each other. When the number of vehicles is larger than the number of RSUs, the proposed scheme has a lower energy consumption than the benchmark schemes. Specifically, when K = 5 and RSUs are equipped with MF receivers, the proposed scheme can decrease the energy consumption by 42.86% and 54.29% compared with the maximum transmission power and full offloading schemes, respectively. When K = 9 , the energy consumption of the proposed scheme reduces by 42.26% and 47.27% compared with the maximum transmit power and the offloading schemes, respectively. When K = 9 and RSUs are equipped with ZF receivers, the proposed scheme can decrease the energy consumption by 17.78% compared with the full offloading schemes, respectively. Thus, the proposed scheme has a better performance in reducing the energy consumption of the system when the number of vehicles increases.
The energy consumption versus the number of RSUs L under different schemes when the number of vehicles K = 6 is shown in Figure 7. It can be seen that as the number of RSUs increases, the energy consumption decreases under the same scheme. This is because the number of RSUs increases and more vehicles can offload tasks to the RSUs and have a lower energy consumption. When the number of RSUs L = 8 , the proposed scheme can decrease energy consumption by 19.93% more than the full offloading scheme and has a similar performance compared to the maximum transmit power scheme. This is because the improved KNN algorithm assigns vehicles to different RSUs when L > K , making vehicles choose the maximum transmit power to offload tasks.
The energy consumption versus packet size increase under different schemes is shown in Figure 8. It is noted that as the packet size increases, the energy consumption increases under the same scheme, no matter what receivers the RSUs are equipped with. This is because the packet size increases and the process delay increases, and so the vehicles need to offload more tasks to the MEC server for edge consumption to satisfy the delay constraint. This makes the energy consumption increase. In addition, the energy consumption of the proposed scheme is lower than the benchmark schemes, and when the RSU is equipped with a ZF receiver, it can reduce more energy consumption. Specifically, when the packet size is 1.2 M and RSUs are equipped with MF receivers, the energy consumption of the proposed scheme reduces by 52.38% and 80.95% compared with the maximum transmit power and offloading scheme, respectively. When the packet size is 3M, the energy consumption of the proposed scheme reduces by 52.30% and 61.84% compared with the benchmark schemes. Thus, the proposed scheme has a better performance in reducing the energy consumption of the system when the packet size increases.
The DRL scheme is proposed to solve the non-convex energy consumption minimization problem. From the above simulation results, it can be concluded that the proposed DRL scheme can obtain superior performance in reducing the energy consumption of the system under a different number of vehicles, number of RSUs and packet size.

6. Conclusions

This paper studied the uplink MEC-assisted multi-vehicle V2X communication system in which vehicles can offload tasks to the RSUs and BS for edge computing. To minimize the energy consumption and satisfy the delay requirements, an energy consumption minimization problem was formulated under a delay constraint. Due to the coupling of the server association, offloading ratio and transmit power, as well as delay constraints, the minimization problem is highly non-convex and difficult to solve. Thus, the DRL algorithm was proposed to solve the optimization problem. Vehicles as agents were trained according to the reward function, which is related to the energy consumption of the system and processing delay, to obtain a better action containing server association, offloading ratio and transmit power. In addition, an improved KNN algorithm was used to assign vehicles within the coverage area of multiple RSUs to reduce the action space and complexity of the DRL scheme. Numerical results have shown that the proposed scheme outperforms the maximum transmit power and full offloading schemes regarding minimizing the energy consumption with a different number of vehicles and packet size. In addition, the RSUs equipped with ZF receivers can decrease more energy consumption than MF receivers. However, the collaborative RSUs for computation processing are not considered in this work due to the complicated action space and the computation complexity. It is interesting to investigate the collaborative RSUs for computation processing to reduce the energy consumption and reduce the latency, especially for the resource-limited V2X network. Joint offloading and RSU allocation optimization is difficult with communication delay and power constraints due to the action space being related to a discrete RSU.

Author Contributions

Conceptualization, W.D., Y.H. and X.Z.; methodology, W.D., X.L. and Y.H.; software, H.C.; writing—original draft, X.L. and X.Z.; writing—review and editing, W.D. and X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under Grant 62101386, the Natural Science Foundation of Sichuan Province under Grant 2023NSFSC1388, the Guangdong Provincial Key Laboratory of Future Networks of Intelligence, the Chinese University of Hong Kong, Shenzhen under Grant 2022B1212010001-OF04, the National Natural Science Foundation of China under Grant 62201479 and the Fundamental Research Funds for the Central Universities under Grant 22120230311.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. You, X.; Wang, C.; Huang, J.; Gao, X. Towards 6G Wireless Communication Networks: Vision, Enabling Technologies, and New Paradigm Shifts. Sci. China Inf. Sci. 2021, 64, 110301. [Google Scholar] [CrossRef]
  2. Moubayed, A.; Shami, A.; Heidari, P.; Larabi, A.; Brunner, R. Edge-Enabled V2X Service Placement for Intelligent Transportation Systems. IEEE Trans. Mob. Comput. 2021, 20, 1380–1392. [Google Scholar] [CrossRef]
  3. Noor-A-Rahim, M.; Liu, Z.; Lee, H.; Khyam, M.O.; He, J.; Pesch, D.; Moessner, K.; Saad, W.; Poor, H.V. 6G for Vehicle-to-Everything (V2X) Communications: Enabling Technologies, Challenges, and Opportunities. Proc. IEEE 2022, 110, 712–734. [Google Scholar] [CrossRef]
  4. Parada, R.; Vázquez-Gallego, F.; Sedar, R.; Vilalta, R. An Inter-Operable and Multi-Protocol V2X Collision Avoidance Service Based on Edge Computing. In Proceedings of the IEEE Vehicular Technology Conference (VTC-Spring), Helsinki, Finland, 19–22 June 2022; pp. 1–5. [Google Scholar]
  5. Vladyko, A.; Elagin, V.; Spirkina, A.; Muthanna, A.; Ateya, A.A. Distributed Edge Computing with Blockchain Technology to Enable Ultra-Reliable Low-Latency V2X Communications. Electronics 2022, 11, 173. [Google Scholar] [CrossRef]
  6. Amrita, G.; Mauro, C. Security Issues and Challenges in V2X: A Survey. Comput. Netw. 2020, 169, 107093. [Google Scholar]
  7. Wang, J.; Lv, T.; Huang, P.; Mathiopoulos, P.T. Mobility-Aware Partial Computation Offloading in Vehicular Networks: A deep Reinforcement Learning Based Scheme. China Commun. 2020, 17, 31–49. [Google Scholar] [CrossRef]
  8. Amrita, G.; Mauro, C. Efficient Anchor Point Deployment for Low Latency Connectivity in MEC-Assisted C-V2X Scenarios. IEEE Trans. Veh. Technol. 2023, 72, 16637–166495. [Google Scholar]
  9. Prathiba, S.B.; Raja, G.; Anbalagan, S.; Dev, K.; Gurumoorthy, S.; Sankaran, A.P. Federated Learning Empowered Computation Offloading and Resource Management in 6G-V2X. IEEE Trans. Netw. Sci. Eng. 2022, 9, 3234–3243. [Google Scholar] [CrossRef]
  10. Zhang, K.; Leng, S.; Peng, X.; Pan, L.; Maharjan, S.; Zhang, Y. Artificial Intelligence Inspired Transmission Scheduling in Cognitive Vehicular Communications and Networks. IEEE Internet Things J. 2019, 6, 1987–1997. [Google Scholar] [CrossRef]
  11. Pratik, T.; Anurag, T.; Atul, K. GREENSKY: A Fair Energy-Aware Optimization Model for UAVs in Next-Generation Wireless Networks. Green Energy Intell. Transp. 2024, 6, 100130. [Google Scholar]
  12. Li, X.; Li, J.; Yin, B.; Yan, J.; Fang, Y. Age of Information Optimization in UAV-Enabled Intelligent Transportation System via Deep Reinforcement Learning. In Proceedings of the IEEE Vehicular Technology Conference (VTC-Fall), London, UK, 26–29 September 2022; pp. 1–5. [Google Scholar]
  13. Hwang, R.H.; Islam, M.M.; Tanvir, M.A.; Hossain, M.S.; Lin, Y.D. Communication and Computation Offloading for 5G V2X: Modeling and Optimization. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), Taipei, Taiwan, 7–11 December 2020; pp. 1–6. [Google Scholar]
  14. Huang, Y.; Fang, Y.; Li, X.; Xu, J. Coordinated Power Control for Network Integrated Sensing and Communication. IEEE Trans. Veh. Technol. 2022, 71, 13361–13365. [Google Scholar] [CrossRef]
  15. Nguyen, P.L.; Hwang, R.H.; Khiem, P.M.; Nguyen, K.; Lin, Y.D. Modeling and Minimizing Latency in Three-Tier V2X Networks. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), Taipei, Taiwan, 7–11 December 2020; pp. 1–6. [Google Scholar]
  16. Bréhon-Grataloup, L.; Kacimi, R.; Beylot, A.L. Mobile Edge Computing for V2X Architectures and Applications: A Survey. Comput. Netw. 2022, 206, 108797. [Google Scholar] [CrossRef]
  17. Dinh, H.; Nguyen, N.H.; Nguyen, T.T.; Nguyen, T.H.; Nguyen, T.T.; Le Nguyen, P. Deep Reinforcement Learning-Based Offloading for Latency Minimization in 3-Tier V2X Networks. In Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC), Austin, TX, USA, 10–13 April 2022; pp. 1803–1808. [Google Scholar]
  18. Wang, H.; Lin, Z.; Guo, K.; Lv, T. Computation Offloading Based on Game Theory in MEC-Assisted V2X Networks. In Proceedings of the IEEE International Conference on Communications Workshops (ICC Workshops), Montreal, QC, Canada, 14–23 June 2021; pp. 1–6. [Google Scholar]
  19. Zhang, Y.; Dong, X.; Zhao, Y. Decentralized Computation Offloading over Wireless-Powered Mobile-Edge Computing Networks. In Proceedings of the IEEE International Conference on Artificial Intelligence and Information Systems (ICAIIS), Dalian, China, 20–22 March 2020; pp. 137–140. [Google Scholar]
  20. Xiong, R.; Zhang, C.; Yi, X.; Li, L.; Zeng, H. Joint Connection Modes, Uplink Paths and Computational Tasks Assignment for Unmanned Mining Vehicles? Energy Saving in Mobile Edge Computing Networks. IEEE Access 2020, 8, 142076–142085. [Google Scholar] [CrossRef]
  21. Zhang, J.; Hu, X.; Ning, Z.; Ngai, E.C.H.; Zhou, L.; Wei, J.; Cheng, J.; Hu, B. Energy-Latency Trade-Off for Energy-Aware Offloading in Mobile Edge Computing Networks. IEEE Internet Things J. 2018, 5, 2633–2645. [Google Scholar] [CrossRef]
  22. Kai, C.; Meng, X.; Mei, L.; Huang, W. Deep Reinforcement Learning Based User Association and Resource Allocation for D2D-Enabled Wireless Networks. In Proceedings of the IEEE/CIC International Conference on Communications in China (ICCC), Xiamen, China, 28–30 July 2021; pp. 1172–1177. [Google Scholar]
  23. Sun, Y.; Xu, J.; Cui, S. Joint User Association and Resource Allocation Optimization for MEC-Enabled IoT Networks. In Proceedings of the IEEE International Conference on Communications (ICC), Seoul, Republic of Korea, 16–20 May 2022; pp. 4884–4889. [Google Scholar]
  24. Lyu, L.; Shen, Y.; Zhang, S. The Advance of Reinforcement Learning and Deep Reinforcement Learning. In Proceedings of the IEEE International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), Changchun, China, 25–27 February 2022; pp. 644–648. [Google Scholar]
  25. Lin, Y.; Zhang, Y.; Li, J.; Shu, F.; Li, C. Popularity-Aware Online Task Offloading for Heterogeneous Vehicular Edge Computing Using Contextual Clustering of Bandits. IEEE Internet Things J. 2022, 9, 5422–5433. [Google Scholar] [CrossRef]
  26. Lin, Y.; Zhang, Z.; Huang, Y.; Li, J.; Shu, F.; Hanzo, L. Heterogeneous User-Centric Cluster Migration Improves the Connectivity-Handover Trade-Off in Vehicular Networks. IEEE Trans. Veh. Technol. 2020, 69, 16027–16043. [Google Scholar] [CrossRef]
  27. Liang, T.; Lin, Y.; Shi, L.; Li, J.; Zhang, Y.; Qian, Y. Distributed Vehicle Tracking in Wireless Sensor Network: A Fully Decentralized Multiagent Reinforcement Learning Approach. IEEE Sens. Lett. 2021, 5, 1–4. [Google Scholar] [CrossRef]
  28. Luong, N.C.; Hoang, D.T.; Gong, S.; Niyato, D.; Wang, P.; Liang, Y.C.; Kim, D.I. Applications of Deep Reinforcement Learning in Communications and Networking: A Survey. IEEE Commun. Surv. Tutor. 2019, 21, 3133–3174. [Google Scholar] [CrossRef]
  29. Zhong, C.; Gursoy, M.C.; Velipasalar, S. A Deep Reinforcement Learning-Based Framework for Content Caching. In Proceedings of the Conference on Information Sciences and Systems (CISS), Princeton, NJ, USA, 21–23 March 2018; pp. 1–6. [Google Scholar]
  30. Yin, B.; Li, X.; Yan, J.; Zhang, S.; Zhang, X. DQN-Based Power Control and Offloading Computing for Information Freshness in Multi-UAV-Assisted V2X System. In Proceedings of the IEEE Vehicular Technology Conference (VTC-Fall), London, UK, 26–29 September 2022; pp. 1–6. [Google Scholar]
  31. Hossain, T.; Ali, M.Y.; Mowla, M.M. Energy Efficient Massive MIMO 5G System with ZF Receiver. In Proceedings of the International Conference on Electrical, Computer & Telecommunication Engineering (ICECTE), Rajshahi, Bangladesh, 26–28 December 2019; pp. 133–136. [Google Scholar]
  32. Das, D.; Shbat, M.; Tuzlukov, V. Employment of Generalized Receiver with Equalization in MIMO Systems. In Proceedings of the IET International Conference on Information Science and Control Engineering (ICISCE ), York, UK, 15–17 May 2012; pp. 1–5. [Google Scholar]
  33. Louie, R.H.Y.; McKay, M.R.; Collings, I.B. Spatial Multiplexing with MRC and ZF Receivers in Ad Hoc Networks. In Proceedings of the IEEE International Conference on Communications (ICC), Dresden, Germany, 14–18 June 2009; pp. 1–5. [Google Scholar]
  34. Wang, H.; Li, X.; Ji, H.; Zhang, H. Federated Offloading Scheme to Minimize Latency in MEC-Enabled Vehicular Networks. In Proceedings of the IEEE Globecom Workshops (GC Wkshps), Abu Dhabi, United Arab Emirates, 9–13 December 2018; pp. 1–6. [Google Scholar]
  35. Yang, T.; Li, X.; Shao, H. Federated Learning-Based Power Control and Computing for Mobile Edge Computing System. In Proceedings of the IEEE Vehicular Technology Conference (VTC-Fall), Norman, OK, USA, 27–30 September 2021; pp. 1–6. [Google Scholar]
  36. Osman, R.A. Optimizing Autonomous Vehicle Communication through an Adaptive Vehicle-to-Everything (AV2X) Model: A Distributed Deep Learning Approach. Electronics 2023, 12, 4023. [Google Scholar] [CrossRef]
  37. Wu, X.; Ma, Z.; Wang, Y. Joint User Grouping and Resource Allocation for Multi-User Dual Layer Beamforming in LTE-A. IEEE Commun. Lett. 2015, 19, 1822–1825. [Google Scholar] [CrossRef]
  38. Wang, Q.; Wang, C.; Feng, Z.; Ye, J.F. Review of K-Means Clustering Algorithm. Electron. Des. Eng. 2012, 20, 21–24. [Google Scholar]
  39. Zhang, N.; Karimoune, W.; Thompson, L.; Dang, H. A Between-Class Overlapping Coherence-Based Algorithm in KNN classification. In Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics (SMC), Banff, AB, Canada, 5–8 October 2017; pp. 572–577. [Google Scholar]
  40. Eick, C.; Zeidat, N.; Vilalta, R. Using Representative-Based Clustering for Nearest Neighbor Dataset Editing. In Proceedings of the IEEE International Conference on Data Mining (ICDM), Brighton, UK, 1–4 November 2004; pp. 375–378. [Google Scholar]
  41. C, C. Prediction of Heart Disease using Different KNN Classifier. In Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS), Madurai, India, 6–8 May 2021; pp. 1186–1194. [Google Scholar]
  42. Li, X.; Yin, B.; Yan, J.; Zhang, X.; Wei, R. Joint Power Control and UAV Trajectory Design for Information Freshness via Deep Reinforcement Learning. In Proceedings of the IEEE Vehicular Technology Conference (VTC-Spring), Helsinki, Finland, 19–22 June 2022; pp. 1–5. [Google Scholar]
  43. Chen, W.; Qiu, X.; Cai, T.; Dai, H.N.; Zheng, Z.; Zhang, Y. Deep Reinforcement Learning for Internet of Things: A Comprehensive Survey. IEEE Commun. Surv. Tutor. 2021, 23, 1659–1692. [Google Scholar] [CrossRef]
Figure 1. The system model of the MEC-assisted multi-vehicle V2X system.
Figure 1. The system model of the MEC-assisted multi-vehicle V2X system.
Electronics 13 00663 g001
Figure 2. The framework of DQN-based multi-agent transmit power and task offloading scheme.
Figure 2. The framework of DQN-based multi-agent transmit power and task offloading scheme.
Electronics 13 00663 g002
Figure 3. Energy consumption under the proposed scheme with different learning rate when L = 4 . (a) RSU equipped with MF receivers. (b) RSU equipped with ZF receivers.
Figure 3. Energy consumption under the proposed scheme with different learning rate when L = 4 . (a) RSU equipped with MF receivers. (b) RSU equipped with ZF receivers.
Electronics 13 00663 g003
Figure 4. Delay of each agents under the proposed scheme when α = 0.01 and L = 4 . (a) RSU equipped with MF receivers. (b) RSU equipped with ZF receivers.
Figure 4. Delay of each agents under the proposed scheme when α = 0.01 and L = 4 . (a) RSU equipped with MF receivers. (b) RSU equipped with ZF receivers.
Electronics 13 00663 g004
Figure 5. Energy consumption versus training episodes under different schemes when L = 4 . (a) RSU equipped with MF receivers. (b) RSU equipped with ZF receivers.
Figure 5. Energy consumption versus training episodes under different schemes when L = 4 . (a) RSU equipped with MF receivers. (b) RSU equipped with ZF receivers.
Electronics 13 00663 g005
Figure 6. Energy consumption versus number of vehicles when L = 4 .
Figure 6. Energy consumption versus number of vehicles when L = 4 .
Electronics 13 00663 g006
Figure 7. Energy consumption versus number of RSUs.
Figure 7. Energy consumption versus number of RSUs.
Electronics 13 00663 g007
Figure 8. Energy consumption versus the packet size.
Figure 8. Energy consumption versus the packet size.
Electronics 13 00663 g008
Table 1. List of acronyms in alphabetical order.
Table 1. List of acronyms in alphabetical order.
AcronymDescriptionAcronymDescription
BSBase stationRSURoad-side unit
DQNDeep Q-networkSINRSignal-to-interference-plus-noise-ratio
DRLDeep reinforcement learning6GSixth generation
I2BInfrastructure-to-base-stationUAVUnmanned aerial vehicle
KNNK-nearest neighborsV2BVehicle-to-base-station
MFMatched filterV2XVehicle-to-everything
MECMobile edge computingV2IVehicle-to-infrastructure
MADRLMulti-agent deep reinforcement learningZFZero forcing
MIMOMulti-input multi-output      
Table 2. Simulation parameters.
Table 2. Simulation parameters.
SymbolDescriptionValue
T max Maximum vehicle delay8 s
f V Processing capability of the vehicles0.1 Mbit/s
f R Processing capability of the RSUs5 Mbit/s
f BS Processing capability of the BS10 Mbit/s
D max Data packet2 M
D prc Processed data packet size1 M
B V 2 I Bandwidth of the V2I communication link1 MHz
B I 2 B Bandwidth of the I2B communication link5 MHz
B V 2 B Bandwidth of the V2B communication link5 MHz
P max V Maximum transmit power of the vehicles23 dBm
P R Transmit power of the RSUs40 dBm
d o Length of offloading action space5
d p Length of power control action space5
σ 2 Noise power−90 dBm
α Learning rate0.01
γ Discount factor0.9
ϵ Exploration possibility0.96
N episode Iteration episode350
N step Training step in one episode200
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Duan, W.; Li, X.; Huang, Y.; Cao, H.; Zhang, X. Multi-Agent-Deep-Reinforcement-Learning-Enabled Offloading Scheme for Energy Minimization in Vehicle-to-Everything Communication Systems. Electronics 2024, 13, 663. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics13030663

AMA Style

Duan W, Li X, Huang Y, Cao H, Zhang X. Multi-Agent-Deep-Reinforcement-Learning-Enabled Offloading Scheme for Energy Minimization in Vehicle-to-Everything Communication Systems. Electronics. 2024; 13(3):663. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics13030663

Chicago/Turabian Style

Duan, Wenwen, Xinmin Li, Yi Huang, Hui Cao, and Xiaoqiang Zhang. 2024. "Multi-Agent-Deep-Reinforcement-Learning-Enabled Offloading Scheme for Energy Minimization in Vehicle-to-Everything Communication Systems" Electronics 13, no. 3: 663. https://0-doi-org.brum.beds.ac.uk/10.3390/electronics13030663

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop