A spectrum sharing method for Internet of Vehicles based on multi-agent reinforcement learning

By applying the SAC method of multi-agent reinforcement learning in the Internet of Vehicles environment, the spectrum resources of V2I and V2V links are collaboratively allocated, which solves the problem of failure to effectively consider the cooperation of multiple V2I links in the existing technology and achieves channel capacity. And maximize the load delivery rate and link cooperation to improve the communication performance of the Internet of Vehicles.

CN113613207BActive Publication Date: 2024-10-18NANJING UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010538089.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-10-18
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

The existing spectrum resource allocation methods for the Internet of Vehicles fail to effectively consider the cooperation mechanism of multiple V2I links, resulting in the deterioration of network link performance and the inability to simultaneously maximize channel sum rate, delay and reliability constraints for V2I and V2V communications.

Method used

Using the SAC method based on multi-agent reinforcement learning, in the Internet of Vehicles environment, by establishing the Internet of Vehicles system model and Markov decision-making process, a spectrum sharing strategy is designed so that V2I and V2V links collaboratively allocate spectrum resources within unit time. Maximizing the channel capacity and load delivery rate, and introducing the basic interaction model of reinforcement learning, the agent learns behavioral strategies by observing environmental information, and selects spectrum subbands and transmission power.

Benefits of technology

It maximizes the total capacity of the V2I link channel and the load delivery rate of the V2V link, while promoting the cooperation mechanism between links and improving the performance and efficiency of Internet of Vehicles communications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113613207B_ABST
    Figure CN113613207B_ABST
Patent Text Reader

Abstract

The present invention discloses a spectrum sharing method for an Internet of Vehicles based on multi-agent reinforcement learning, including establishing an Internet of Vehicles system model, establishing a basic model of observation space, behavior space, and reward setting in reinforcement learning based on a Markov decision process, and then treating the vehicle links in the system model as agents, and designing a spectrum sharing method using the reinforcement learning SAC (Soft Actor-critic) idea. The design scheme of the present invention can realize spectrum sharing of vehicle-to-vehicle (V2V) links and vehicle-to-roadside infrastructure (V2I) links in the Internet of Vehicles in a cooperative manner, ensuring the maximization of the channel capacity and performance of the V2I link and the successful transmission probability performance of the V2V link load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless network communication technology, and specifically to a vehicle networking spectrum sharing method based on multi-agent reinforcement learning in a vehicle networking environment. Background Art

[0002] With the continuous development of modern transportation and network communication technology, the concept of Internet of Vehicles has emerged and is a key technical support for realizing safe and efficient intelligent transportation systems. Resource allocation mechanism is one of the important technologies to ensure information exchange in Internet of Vehicles. Resource allocation methods based on reinforcement learning have become a research hotspot in Internet of Vehicles in recent years. Most previous studies have adopted the Q-Learning idea, which is only applicable to low-dimensional discrete behavior space and does not take into account the changing needs of behavior space, which leads to the deterioration of network link performance. In response to the above problems, Yihan Xu et al. proposed a spectrum resource allocation method for Internet of Vehicles based on reinforcement learning DDPG to process continuous high-dimensional action space, which maximizes the sum rate of V2I communication and meets the strict delay and reliability constraints of V2V communication. However, the above resource allocation method does not take into account the cooperation mechanism of multiple V2I links. Summary of the invention

[0003] The present invention aims to provide a spectrum sharing method based on multi-agent reinforcement learning in a vehicle networking environment to complete the spectrum resource allocation task of V2I link and V2V link.

[0004] The scheme for realizing the purpose of the present invention is: a spectrum sharing method based on multi-agent reinforcement learning SAC in a connected vehicle environment, and the specific steps are:

[0005] Step 1: Establish a vehicle networking system model and determine the parameters and performance indicators required in the entire simulation process.

[0006] Step 2: Based on the Markov decision process, a spatial model of the interaction between the agent and the environment in reinforcement learning is established. A fixed period of time T is determined as a cycle to obtain the behavior of the agent in the environment and the rewards obtained.

[0007] Step 3: Introduce the basic interaction model of reinforcement learning into the Internet of Vehicles system model, and design a spectrum sharing method based on the multi-agent reinforcement learning SAC idea.

[0008] Compared with the prior art, the present invention has the following significant advantages: the present invention can allocate existing spectrum resources according to the different communication requirements of the links in the Internet of Vehicles environment, and promote the cooperation mechanism between links on the basis of maximizing the total capacity of the V2I link channel and the V2V link load delivery rate, thereby providing assistance for the effective communication of the Internet of Vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 Flowchart of the present invention

[0010] Figure 2 is the total capacity of the V2I link in a multi-agent environment and its variation with the number of payloads B

[0011] Figure 3 The success probability of V2V payload transmission in a multi-agent environment varies with the payload size B

[0012] Figure 4 The transmission rate of the V2V link in the SAC model changes over time

[0013] Figure 5 The transmission rate of the V2V link in the random baseline model changes over time DETAILED DESCRIPTION

[0014] In the present invention, the spectrum sharing scheme is specifically that the spectrum of the V2I link has been pre-allocated within the unit time T. A single V2V agent is regarded as an intelligent agent, and a three-layer neural network is used to simulate its behavior strategy. The K intelligent agents in the vehicle network continuously interact with the environment, and obtain the spectrum usage of the V2I link, channel interference information, and communication conditions of other intelligent agents in the environment. According to the observation results, the intelligent agent will learn an effective behavior strategy to select the V2I spectrum sub-band and its own transmission power to be occupied within the unit time T, so as to send data. A spectrum sharing method based on multi-agent reinforcement learning SAC in a vehicle network environment, the specific steps are:

[0015] Step 1: Establish a vehicle networking system model and determine the parameters and performance indicators required in the entire simulation process.

[0016] Step 2: Based on the Markov decision process, a spatial model of the interaction between the agent and the environment in reinforcement learning is established. A fixed period of time T is determined as a cycle to obtain the behavior of the agent in the environment and the rewards obtained.

[0017] Step 3: Introduce the basic interaction model of reinforcement learning into the Internet of Vehicles system model, and design a spectrum sharing method based on the multi-agent reinforcement learning SAC idea.

[0018] Preferably, the specific process of establishing the Internet of Vehicles system model is as follows:

[0019] Step 1-1, establish a model with each road section corresponding to the intersection as the research background. An infrastructure (BaseStation, BS) is set up in the area to collect and broadcast information. There are a certain number of moving vehicles, forming I V2I communication links and K V2V communication links.

[0020] Step 1-2, use β k [i] represents the choice of spectrum allocation scheme. If β k [i] = 1 means that V2V link k and V2I link i share a spectrum sub-band. At this time, the channel power gain of V2V link k sharing the i-th sub-band is expressed as:

[0021] G k [i] = δ k ·h k [i]

[0022] δ k represents the frequency-independent large-scale fading effects in the channel—shadowing and path loss, h k [i] represents the frequency-dependent small-scale fading power component in the channel.

[0023] Step 1-3: The corresponding received signal-to-noise ratios of the V2I link i and the V2V link k sharing the i-th sub-band are expressed as:

[0024]

[0025] and

[0026]

[0027] The interference power I k It is expressed as:

[0028]

[0029] P i c and represents the transmission power of the i-th V2I transmitter and the k-th V2V transmitter in the i-th subband, Represents the interference channel of all V2I transmitters Gain, g k represents the interference channel (B[i]) gain from the transmitter to all base stations, g k' represents the interference channel (k[i]) gain from other V2V transmitters.

[0030] Step 1-4: According to Shannon's formula, the channel capacities of the V2I link i and the V2V link k sharing the i-th frequency band on the i-th frequency band are expressed as:

[0031]

[0032] and

[0033]

[0034] W is the bandwidth of the corresponding spectral sub-band.

[0035] Step 1-5 sets the successful delivery rate of a data packet of size B on the V2V link within the limited time T to be:

[0036]

[0037] B represents the size of the load that the V2V link needs to deliver, ΔT is the set delivery time, and the parameter t is added to the channel capacity of the V2V link k on the i-th frequency band to represent the capacity change of the V2V link at different times.

[0038] Preferably, the reinforcement learning basic model of the interaction between the agent and the environment is specifically:

[0039] Step 2-1: A single V2V agent perceives its own state by determining the environmental observation function. In system design, the observation space of a V2V agent k can be expressed as:

[0040] ·g k [i]: Information about own channel

[0041] ·g k' / k[i](k'≠k): interference channel information from other V2V proxy transmitters

[0042] ·g k / B[i]: Interference channel information from own transmitter to all BSs

[0043] · Interference channel information of all V2I (i∈I) transmitters

[0044] ·B k : V2V remaining payload

[0045] ·T k : The remaining unit time

[0046] The observation information related to the channel is first expressed as:

[0047]

[0048] Finally, the environment observation function of the V2V agent k is expressed as

[0049] O(S t ,k)={L k ,T k ,{I k [i]} i∈I ,{Z k [i]} i∈I}

[0050] Step 2-2, determine the two actions that the V2V agent takes in the environment: the selection of its own link transmission power and the selection of the spectrum sub-band occupied by the transmission information. Set the power selection range of four levels [23, 10, 5, -100] dBm, and the behavior space can be expressed as:

[0051] A t =(i i∈I ,P P∈[23,10,5,-100] )

[0052] Finally, each action corresponds to a set of two choices: spectrum subband and power level.

[0053] Step 2-3: In order to encourage cooperation between V2V agents and avoid their competitive behavior as much as possible, the same reward function is set for each V2V agent k in unit time T:

[0054]

[0055] Taking into account the "delayed return" problem in reinforcement learning and the communication performance requirements in actual vehicle networks, the corresponding reward in each time period is finally set to:

[0056]

[0057] ε c and ε d represents the balance between maximizing the channel capacity of the V2I link and maximizing the probability of successful transmission of V2V link information, ε c +ε d =1.

[0058] Preferably, the spectrum sharing method that introduces the SAC concept on the reinforcement learning basic model is specifically:

[0059] Step 3-1: Establish a neural network Policy network and Soft Q network to simulate the agent's behavior selection and behavior value estimation, and determine the network's loss function, learning rate, and update method.

[0060] Step 3-2: Use the experience replay method to store a set of data in the replay buffer each time you train based on the behavior strategy and the feedback from the environment. By setting the replay buffer D to a finite size, when the number of stored samples reaches the upper limit, the old samples will be removed to reserve space for new samples, ensuring that the buffer always has the latest sample data. The Policy network and the Soft Q network randomly sample a batch of data from the buffer memory to update the network in each training round.

[0061] Step 3-3: Initialize the Internet of Vehicles environment within each unit time T and train the agent to observe the state S of its environment. t , and react according to the status A t And get the feedback reward R from the environment t In the next unit time T, the agent continues to react and receive rewards based on the rewards it has received and the current state of the environment, and this cycle repeats until the end of the training.

[0062] Preferably, the network design process of the Policy network and the Soft Q network is:

[0063] Step 3-1-1: Determine the loss function of the Policy network, and the calculation formula is:

[0064]

[0065] in

[0066]

[0067] Step 3-1-2: Determine the loss function of the Soft Q network, and the calculation formula is:

[0068]

[0069] γ is the value coefficient and is taken as 0.9.

[0070] Step 3-1-3, determine the loss function of the temperature entropy coefficient α, the calculation formula is:

[0071]

[0072] in

[0073]

[0074] Z represents the size of the behavior space, and χ is the target entropy coefficient, which is taken as 0.95.

[0075] Step 3-1-4: Determine the gradient update method of the Policy network and Soft Q network:

[0076]

[0077]

[0078]

[0079] In the actual training process, there is also a target network target_q_net of the Soft Q network, which is used to simulate the value function like the Soft Q network, and the final Q value is the minimum value of the two network outputs. The target network target_q_net does not actively learn, and its parameter update adopts the method of directly copying the Soft Q network parameters at regular intervals.

[0080] Step 3-1-5: Determine the learning rate λ of the Policy network and Soft Q network to be 0.001. The learning process of the neural network is to continuously update the parameter φ π ,θ Q and α minimize the process of network loss function.

[0081] Preferably, the specific training process of the agent is:

[0082] Starting from the jth training set (j=0,1...,n_episode)

[0083] Step 3-3-1, initialize the cumulative reward total_reward = 0

[0084] Step 3-3-2: Update the environment every 100 training sets

[0085] Start from the kth step (k=0,1……,n_step)

[0086] Step 3-3-3, calculate the total number of current training steps C_S = j·n_step+k

[0087] Step 3-3-4: Get the current state S of the environment t , and according to formula A t =π φ (S t )Get the action selected in the current environment

[0088] Step 3-3-5: According to the current action A t The environment gives corresponding rewards R t , and give the next state S t+1

[0089] Step 3-3-6, a group (S t ,A t ,R,S t+1 )Data is stored in the buffer

[0090] Step 3-3-7: When the current total number of training steps C_S> the update threshold number of steps U_S, start learning and updating the network

[0091] Step 3-3-8: Sample a batch of sample data (St ,A t ,R,S t+1 )

[0092] Step 3-3-9: Calculate the soft state value function

[0093] V soft (s t )=π(s t ) T [min(Q1(s t ),Q2(s t ))-αlog(π(s t ))]

[0094] Step 3-3-10: Update the network parameters by minimizing the SoftQ network loss function J(θ), the Policy network loss function J(φ), and the temperature entropy coefficient learning objective function J(α)

[0095]

[0096]

[0097]

[0098] Step 3-3-11, Update the parameters of the Soft Q target network target_q_net network

[0099] End the current step and proceed to the next step

[0100] End the current training set and enter the next round

[0101] like Figure 1 As shown, the present invention determines relevant parameters of the Internet of Vehicles system model, determines an interaction model based on a Markov decision process, and then develops a spectrum sharing method based on SAC to maximize the performance indicators of the information transmission link in the Internet of Vehicles.

[0102] Example 1

[0103] The present invention uses Python software to implement the method. The number of agents in the network is K=4, the unit time is T=100ms, the number of neurons in the three-layer neural network is 500, 250, and 125 respectively, 3000 training sets and 100 test sets are used, and the number of samples for training once is set to 128. When training the model, the starting load size of the V2V link is set to 2120Bytes, and then the load size is changed during the test to verify the robustness of the proposed method. Consider the following two vehicle network spectrum sharing schemes. Scheme 1: A vehicle network spectrum sharing method based on reinforcement learning SAC is adopted. Scheme 2: A vehicle network spectrum sharing method based on a random baseline model (Random Baseline) is adopted, that is, the intelligent agent selects the spectrum sub-band and transmission power in a random manner.

[0104] like Figure 2 and Figure 3 As shown in the figure, as the number of V2V link loads increases, the total channel capacity of the V2I link and the successful transmission rate of the load of the V2V link are both decreasing, but the two simulation results of the SAC method in scheme 1 are always higher than those of the random baseline method in scheme 2. This phenomenon shows that the spectrum sharing method of the Internet of Vehicles based on reinforcement learning SAC provided by the present invention helps the intelligent agent learn an effective spectrum selection strategy in the network and obtain the best link transmission performance.

[0105] like Figure 4 As shown in Figure 1, the four V2V links in Scheme 1 complete the load transmission task in sequence at the highest rate, avoiding interference caused by simultaneous information transmission between links. Figure 5 As shown in the figure, the four V2V links in Scheme 2 completed the load transmission task in no order and slowly, and each link did not consider the communication status of other links when transmitting information. This phenomenon shows that the spectrum sharing method of Internet of Vehicles based on reinforcement learning SAC provided by the present invention can provide an efficient cooperation mechanism for the spectrum sharing strategy of multiple intelligent agents.

Claims

1. A spectrum sharing method for Internet of Vehicles based on multi-agent reinforcement learning, Features: Step 1: Establish a vehicle networking system model with each road section corresponding to the intersection as the research background. A base station is set up in the area to collect and broadcast information. There are a certain number of moving vehicles, forming I V2I communication links and K V2V communication links; use β k [i] represents the choice of spectrum allocation scheme. If β k [i] = 1 means that the V2V link k and the V2I link i share a spectrum sub-band at this time; at this time, the channel power gain of the V2V link k sharing the i-th spectrum sub-band is expressed as: G k [i]=δ k ·h k [i] δ k represents the frequency-independent large-scale fading effects in the channel—shadowing and path loss, h k [i] represents the frequency-dependent small-scale fading power component in the channel; Step 2: The corresponding received signal-to-noise ratios of the V2I link i and the V2V link k sharing the i-th spectrum subband are expressed as: and The interference power I k It is expressed as: P i c and represents the transmission power of the i-th V2I transmitter and the k-th V2V transmitter in the i-th spectrum subband, Represents the interference channel of all V2I transmitters Gain, g k represents the interference channel B[i] gain from the transmitter to all base stations, g k' represents the interference channel k[i] gain from other V2V transmitters, σ 2 represents the noise power; According to Shannon's formula, the channel capacities of the V2I link i and the V2V link k sharing the i-th spectrum sub-band on the i-th spectrum sub-band are expressed as: and Where W is the bandwidth of the corresponding spectrum subband; The successful delivery rate of a data packet of size B on the V2V link within a limited time T is set to: B represents the size of the load that the V2V link needs to deliver, ΔT is the set delivery time, and the parameter t is added to the channel capacity of the V2V link k on the i-th spectrum subband to represent the capacity change of the V2V link at different times; Step 3: Establish a basic reinforcement learning model for the interaction between the agent and the environment based on the Markov decision process, determine a fixed period of time T as a cycle, and obtain the behavior of the agent in the environment and the reward obtained; Step 4: Introduce the reinforcement learning basic model of the interaction between the reinforcement learning agent and the environment into the Internet of Vehicles system model, and design a spectrum sharing method based on multi-agent reinforcement learning SAC.

2. According to claim 1, the vehicle network spectrum sharing method based on multi-agent reinforcement learning, It is characterized in that The basic reinforcement learning model for the interaction between the agent and the environment established in step 3 is as follows: Step 3-1: A single V2V agent perceives its own state by determining the environmental observation function. In system design, the observation space of a V2V link k can be expressed as: ·g k [i]: information of own channel; ·g k' / k[i](k'≠k): interference channel information from other V2V link transmitters; ·g k / B[i]: interference channel information from own transmitter to all base stations; · Interference channel information of all V2I(i∈I) transmitters; ·B k : The number of payloads remaining in V2V link k; ·T k : The remaining unit time; The observation information related to the channel is expressed as: Finally, the environmental observation function of V2V link k is expressed as: O(S t ,k)={B k ,T k ,{I k [i]} i∈I ,{Z k [i]} i∈I } Step 3-2: Determine two actions that the V2V agent performs in the environment: the selection of its own link transmission power and the selection of the spectrum subband occupied by the transmission information; set the power selection range of four levels [23, 10, 5, -100] dBm, and the behavior space can be expressed as: A t =(i i∈I ,P P∈[23,10,5,-100] ) Finally, each behavior corresponds to a set of two choices: spectrum subband and power level; Step 3-3: In order to encourage cooperation between V2V links and avoid competition between them, the same reward function is set for each V2V link k in unit time T: Taking into account the "delayed return" problem in reinforcement learning and the communication performance requirements in actual vehicle networks, the corresponding reward in each time period is finally set to: ε c and ε d represents the balance between maximizing the channel capacity of the V2I link and maximizing the probability of successful transmission of V2V link information, ε c +ε d =1.

3. According to claim 1, the spectrum sharing method for Internet of Vehicles based on multi-agent reinforcement learning, It is characterized in that In step 4, the basic reinforcement learning model of the interaction between the reinforcement learning agent and the environment is introduced into the vehicle networking system model, and the spectrum sharing method based on multi-agent reinforcement learning SAC is designed as follows: Step 4-1: Establish the neural network Policy network and Soft Q network that simulate the agent's behavior selection and behavior value estimation, and determine the network's loss function, learning rate, and update method; Step 4-2: Use the experience replay method to store a set of data in the replay buffer each time you train based on the behavior strategy and the feedback from the environment. By setting the replay buffer D to a finite size, when the number of stored samples reaches the upper limit, the old samples will be removed to reserve space for new samples, ensuring that the buffer always contains the latest sample data. The Policy network and the Soft Q network will randomly sample a batch of data from the buffer memory to update the network in each training round. Step 4-3: Initialize the Internet of Vehicles environment within each unit time T and train the agent to observe the state S of its environment. t , and according to the state in the behavior space A t Choose a behavior to get the feedback reward R from the environment t ; In the next unit time T, the agent continues to react and receive rewards based on the rewards it has received and the current state of the environment, and this cycle repeats until the end of training.

4. According to claim 3, the vehicle network spectrum sharing method based on multi-agent reinforcement learning, It is characterized in that The network design process of Policy network and Soft Q network is as follows: Step 4-1-1: Determine the loss function of the Policy network, and the calculation formula is: in Step 4-1-2: Determine the loss function of the Soft Q network, and the calculation formula is: γ is the value coefficient and takes 0.9, m represents the amount of data in a batch of random samples, and a t Indicates the behavior choice corresponding to the current state, Q 1 (s t ) and Q 2 (s t ) are the two output values ​​of the network policy value function of the Policy network in the same state; Step 4-1-3, determine the loss function of the temperature entropy coefficient α, the calculation formula is: in Z represents the size of the behavior space, χ is the target entropy coefficient and is taken as 0.95; Step 4-1-4: Determine the gradient update method of the Policy network and Soft Q network: In the actual training process, there is also a target network target_q_net of the Soft Q network. It is used to simulate the value function like the Soft Q network, and the final Q value is the minimum value of the two network outputs. The target network target_q_net does not actively learn, and its parameter update adopts the method of directly copying the Soft Q network parameters at regular intervals. Step 4-1-5: Determine the learning rate λ of the Policy network and Soft Q network to be 0.

001. The learning process of the neural network is to continuously update the parameter φ π ,θ Q and α, thereby minimizing the process of the network loss function.

5. According to claim 3, the vehicle network spectrum sharing method based on multi-agent reinforcement learning, It is characterized in that The process of training the agent in step 4-3 is: Starting from the jth training set j=0,1...,n_episode: Step 4-3-1, initialize the cumulative reward total_reward = 0; Step 4-3-2: Update the environment every 100 training sets; Starting from the kth step k=0,1……,n_step: Step 4-3-3, calculate the total number of current training steps C_S = j·n_step+k; Step 4-3-4: Get the current state S of the environment t , and according to formula A t =π φ (S t )Get the action selected in the current environment; Step 4-3-5: According to the current action A t The environment gives corresponding rewards R t , and give the next state S t+1 ; Step 4-3-6, a group of S t ,A t ,R,S t+1 The data is stored in the buffer; Step 4-3-7, when the current total number of training steps C_S> the update threshold number of steps U_S, start learning and updating the network; Step 4-3-8: Sample a batch of sample data S from the buffer t ,A t ,R,S t+1 ; Step 4-3-9, calculate the soft state value function: V soft (s t )=π(s t ) T [min(Q 1 (s t ),Q 2 (s t ))-αlog(π(s t ))] Step 4-3-10, update the network parameters by minimizing the Soft Q network loss function J(θ), the Policy network loss function J(φ), and the temperature entropy coefficient learning objective function J(α): Step 4-3-11, Update the parameters of the Soft Q target network target_q_net network End the current step and proceed to the next step; End the current training set and enter the next round.

Citation Information

Patent Citations

  • Resource management and access scheme based on resource sharing in Internet of vehicles

    CN104080176A

  • Cooperative agent learning method based on multi-agent reinforcement learning

    CN110852448A