Multi-relay-node joint optimization method and device based on deep reinforcement learning
Dynamic management of the number and location of relay nodes through deep reinforcement learning technology solves the local optimal and time cost problems of deployment optimization in emergency communication scenarios in existing technologies, achieves optimization of relay link quality and energy consumption, and enhances System adaptability.
Patent Information
- Application Number
- CN202410670163.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing technologies are prone to falling into local optimal solutions when optimizing relay deployment in emergency communications scenarios, and have poor generalization capabilities. In addition, finding optimal strategies in large-scale networks requires a lot of time and cost, and it is difficult to dynamically adjust to meet changing network conditions.
A multi-relay node joint optimization method based on deep reinforcement learning is used to dynamically manage the number and location of relay nodes through the interaction between the agent module and the simulation environment. It uses deep neural networks to optimize the quality of relay links and reduce the number of nodes and energy consumption. Real-time optimization of link quality.
It improves the quality and efficiency of relay links, reduces the number of nodes and operating energy consumption, enhances the system's adaptability and generalization capabilities, and enables rapid response and optimization in emergency communication scenarios.
Smart Images

Figure CN118740235A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication, and in particular to a multi-relay node joint optimization method and device based on deep reinforcement learning Background Art
[0002] In emergency communication scenarios, infrastructure often cannot meet the basic communication service requirements of rescue operations due to accidents. The wireless mesh network (Flying Ad-Hoc Network, FANET) composed of drone nodes has the advantages of fast initial deployment, strong fault tolerance, large coverage, and high flexibility, which is very suitable for building emergency communication networks.
[0003] Most of the current research uses heuristic algorithms such as genetic algorithms, computational geometry algorithms, virtual potential field methods, and particle swarm optimization algorithms to optimize relay deployment, based on the deployment environment information including user node locations, base station locations, obstacle locations, and user node movement trajectories. However, since heuristic algorithms are prone to local optimal limitations, their parameters need to be adjusted when the network state changes, and their generalization ability is poor. In addition, when dealing with large-scale networks, it takes a lot of time to find the optimal strategy. In contrast, reinforcement learning, as a method based on interactive learning between agents and the environment, has certain advantages in dealing with complex optimization problems with multiple constraints. Its autonomous learning and exploration characteristics enable reinforcement learning to overcome the limitations of traditional heuristic algorithms when looking for suitable solutions, improve the accuracy of optimization, accelerate the convergence speed, and avoid falling into local optimal solutions, thus providing a new solution to the optimization problem in emergency communication scenarios. Summary of the invention
[0004] The purpose of an embodiment of the present invention is to provide a multi-relay node joint optimization method and device based on deep reinforcement learning, so as to achieve, in an emergency communication scenario, under the premise of ensuring that the communication of the relay link is basically unobstructed, managing the number of relay nodes and dynamically optimizing the positions of the relay nodes, so as to ultimately enable the relay link to obtain better link quality, fewer nodes and smaller operating energy consumption.
[0005] To achieve the above objectives, an embodiment of the present invention discloses a multi-relay node joint optimization method based on deep reinforcement learning, which is applied to a command center. The communication relay optimization method includes:
[0006] The status acquisition module installed in the command center periodically obtains the status information of the entire relay link from the relay nodes, wherein the timing refers to an extremely short period of time Δt, usually within one second. The entire relay link includes all relay nodes, task nodes and the relay network composed of the command center.
[0007] The command center controls the number of relay nodes through the command center node quantity management algorithm installed on the intelligent body module, wherein the node quantity management algorithm input is the overall link information of the above-mentioned relay link, and the output is to select one of three actions from the action space, and the action space includes: (1) sending a start operation signal to the new relay node; (2) sending a recovery signal to the most recently departed relay node; (3) monitoring the environmental status and maintaining the number of relay nodes unchanged, wherein the new relay node is a relay node dormant in the command center. After receiving the start operation signal, it will start from the command center to execute the relay optimization method, form a relay link with other relay drones, and provide relay for the task node.
[0008] The status information collected by the status collection module installed in the command center includes the relevant link quality R of the last two relay nodes added in the relay link 1o , R 2o , the link quality R with the minimum link quality among all relay links that can be known at this time o , relative position (x 1 ,y 1 ), (x 2 ,y 2 ), the number of relay nodes n o and quantity limit n max In addition, in order to enable the agent to have certain predictive capabilities, the input state will also include the state of the previous moment.
[0009] The command center status information is:
[0010] S o =[x 1 ,y 1 ,x 2 ,y 2 ,R 1o ,R 2o ,R o ,n n ,n max ] T=t,t-1
[0011] The link quality R is represented by the link received signal strength (RSSI), T=t is the current moment, and T=t-1 is the previous moment.
[0012] The node quantity management method interacts with the simulation environment module during the training phase. The simulation environment updates parameters according to the actions, and the agent module updates and improves its own strategy according to the reward function of the simulation environment module.
[0013] The simulation environment module is built according to the real emergency scenario, ignoring the existence of obstacles. The relay nodes and task nodes in the environment meet the dynamic constraints of the drone nodes. The channels between the nodes meet the drone channel model. The environment model will end the current round of training when the maximum number of time steps is reached or the relay link is disconnected.
[0014] Among them, the reward function is related to the overall link status, the number of relay nodes and the location of the task node.
[0015] Specific reward value r o =r t +r nn +r ex , where r t It is expressed as the sum of rewards or penalties obtained due to communication quality, r nn represents the reward related to the number of nodes in the relay link, r ex Indicates the reward given due to system termination or over-limit.
[0016] The algorithm of the agent module in the deep reinforcement learning node quantity management method uses a neural network composed of three fully connected layers as the basic network. The network input is the 18-dimensional variable command center state information, and the output is the expected action value Q that can be obtained by each of the three actions of the command center. The expected action value Q is the sum of the reward r obtained by executing the current action and the predicted reward obtained in the future multiplied by the reward decay exponent γ. The expected action value is:
[0017] Q(s,a)=r+γQ(s',a')
[0018] Among them, s' is the next environmental state, and a' is the action corresponding to the maximum expected action value that the next environmental command center node quantity management algorithm will output.
[0019] The intelligent agent will also add a certain amount of exploration noise in action selection during training, that is, explore other actions with a probability of ε, and ε will become smaller and smaller as the training progresses.
[0020] The node quantity management algorithm of the agent module has a training network and a target network. The training network updates its strategy according to past experience during the interaction with the simulation environment, and the target network updates its own parameters after the training network is updated several times. The network parameter update method is the gradient descent method. The purpose is to make the action value output by the training network close to the sum of the weighted predicted action value output by the target network and the actual reward value. The update parameter difference is:
[0021]
[0022] Where a is the learning rate, s', a' are the state of the next node and the action selected to maximize the action value, θ, θ' represent the parameters in the target network and the training network respectively. The agent will add a certain amount of noise when selecting actions to enhance its efficiency in exploring other actions. The noise will satisfy the normal distribution and the mean of the distribution will be towards the node with the poor quality of the current link. The status of the relay node and the status of the overall link are optimized in real time to optimize the communication quality of the relay link and minimize the mobile power consumption and node quantity consumption, including:
[0023] The status acquisition module installed in the relay node regularly summarizes its own link status information based on its own status and the information obtained from the nodes at both ends, wherein the nodes at both ends are the predecessor and successor nodes of the chain wireless mesh relay network that maintain wireless network communication connectivity with the relay node.
[0024] The relay node adjusts its own position in real time through the relay node position optimization algorithm installed in the relay agent module, wherein the input of the position optimization algorithm is the state information summarized by the above relay node, and the output is the acceleration of the drone node operation that meets the drone node's own constraints, including the direction and magnitude of the acceleration.
[0025] The status information obtained by the relay node status acquisition module includes the relative coordinates (x r ,y r ), (x m -x r ,y m -y r ), the node's own speed (v x ,v y ), RSSI value R of the two links of the node 1 , R 2 , the minimum RSSI value R of the overall link at the left and right ends of the node L , R L , and contains the states of this step and the previous step.
[0026] The relay node status information is:
[0027] S t =[x r ,y r ,x m -x r ,y m -y r ,v x ,v y ,R 1 ,R 2 ,R L ,RR ] T=t,t-1
[0028] Similar to the command center quantity control method, the relay node location optimization method designs a segmented reward function in the simulation environment module to guide the relay node location optimization agent, where the reward function is segmented according to the relay link quality related to the current node, and is related to the link quality, mobile energy consumption, overall link quality and whether to change the number of nodes.
[0029] Specific reward value r = r t +r p +r n +r ex
[0030] where r t It is expressed as the sum of rewards or penalties obtained due to communication quality, r p represents the sum of rewards or penalties obtained due to motion power consumption, r n Represents the reward obtained from the overall link or other nodes, r ex Represents the sum of other rewards or penalties, including the penalty the agent receives for violating constraints, the reward or penalty the agent receives based on the final result after a round of training, etc.
[0031] The node position optimization method stores the experience data and weights of each step of the agent's interaction with the environment into the memory pool, and randomly selects and eliminates them according to the weights. The weights are related to the state of the relay node and its contribution to the overall agent learning. The minimum weight is 1, and the weight is reduced by 1 after each use, and is deleted after it is reduced to 0.
[0032] The relay node agent uses a neural network composed of three fully connected layers as the basic network. The overall network uses two target evaluation networks, two training evaluation networks, a target action network and a training action network. The action network inputs the state S observed by the agent and outputs the action A that maximizes the action value. The evaluation network inputs the state S and action A and outputs the calculated action value Q. The ultimate goal of the algorithm is to complete the training of the Actor target network so that it can reasonably respond to the state S in the environment and output the action that maximizes the cumulative action value. The training evaluation network is updated as follows:
[0033] a'=π φ' (s')+ε,ε~clip(N(0,σ),-c,c)
[0034]
[0035] Among them, π φ'(s') is the action output by the training action network according to the next state, r is the reward value obtained after the current action is executed, and the network uses gradient descent to minimize the square value of the difference between the reward value r and the sum of the weighted maximum action value output by the network with the smallest prediction of the next action value in the two action evaluation networks and the action value under the current state action. On this basis, the training action uses gradient descent to maximize the action value of its output action.
[0036] The training network parameters will be soft-synchronized with the target network every few rounds. The update method is:
[0037] θ i '←τθ i +(1-τ)θ i '
[0038] φ'←τφ+(1-τ)φ'
[0039] where θ i is the parameter of the i-th training evaluation network, θ i ' is the parameter of the i-th target evaluation network, φ is the parameter of the i-th training action network, and φ' is the parameter of the target action network.
[0040] The embodiment of the present invention discloses a multi-relay node joint optimization device based on deep reinforcement learning, which is applied to a command center. The node quantity management device includes:
[0041] The command center status acquisition module is used to collect the environmental parameters required by the input state of the intelligent body module at each moment, normalize them, and provide them to the intelligent body module.
[0042] The command center agent module is used to manage actions based on the number of nodes that need to be executed according to the state output, and optimize its own output strategy based on the rewards given by the environment.
[0043] The command center memory pool module is used to store the action state reward at the current moment and the state at the next moment generated by the interaction between the command center agent module and the simulation environment module, and provide it to the agent for learning to improve the agent strategy.
[0044] The command center action exploration module is used to determine the specific actions performed by the command center and optimize the output strategy while fully exploring the action space.
[0045] An embodiment of the present invention provides a multi-relay node joint optimization device based on deep reinforcement learning, which is applied to a command center. The location optimization device includes:
[0046] The relay node state acquisition module is used to collect the environmental parameters required by the input state of the intelligent agent module at each moment, perform normalization processing, and provide them to the intelligent agent module.
[0047] The relay node agent module is used to manage actions based on the number of nodes that need to be executed according to the state output, and optimize its own output strategy based on the rewards given by the environment.
[0048] The relay node memory pool module is used to store the current action, state, reward and next state and weight generated by the interaction between the relay node agent module and the simulation environment module, and provide them to the agent for learning to improve the agent strategy.
[0049] The relay node action exploration module is used to determine the specific actions performed by the relay node and optimize the output strategy while fully exploring the action space.
[0050] It can be seen from the above technical solution that in the embodiment of the present invention, the command center and relay node agents generate experience data by interacting with the simulated environment. These data and their weights are stored in a memory pool, and when the agent meets the iterative optimization conditions, they are randomly taken out with weights for the agent to learn and optimize its own strategy, ultimately achieving real-time optimization of the relay link in the emergency communication scenario, and being able to learn action modes that adapt to special tasks and autonomously respond to emergencies in the environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 It is a flowchart of the deep reinforcement learning relay optimization method provided by an embodiment of the present invention.
[0053] Figure 2 A deep reinforcement learning relay link topology diagram provided by an embodiment of the present invention
[0054] Figure 3 This is a structural diagram of the deep reinforcement learning command center intelligent agent module provided by an embodiment of the present invention
[0055] Figure 4 This is a structural diagram of the deep reinforcement learning relay node agent module provided by an embodiment of the present invention
[0056] Figure 5 This is a diagram of the command center structure provided by an embodiment of the present invention.
[0057] Figure 6 The relay node structure diagram provided by the embodiment of the present invention is DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] The present invention is described in detail below through specific implementation examples.
[0060] See also Figure 1 , Figure 1 It is a flow chart of the relay optimization method provided by an embodiment of the present invention.
[0061] Step 101, the initialization step includes the initialization of the agent and the initialization of the simulation environment. The initialization of the agent mainly initializes the target network in the command center agent and synchronizes it to the training network, as well as the target evaluation network and target action network in the relay node agent and synchronizes them to the training evaluation network and training action network. The initialization of the simulation environment module is the random initialization of the initialization environment parameters and the position of each node and the target position of the task node.
[0062] Step 102: When the agent collects the status, the status collection modules in the command center and the relay nodes collect the status they need and normalize it. The status collection module installed in the command center collects the status information required by the agent module in the command center, including the relevant link quality R of the last two relay nodes added in the relay link. 1o , R 2o , the link quality R with the minimum link quality among all relay links that can be known at this time o , relative position (x 1 ,y 1 ), (x 2 ,y 2 ), the number of relay nodes n o and quantity limit n max In addition, in order to enable the agent to have certain predictive capabilities, the input state will also include the state of the previous moment.
[0063] The command center status information is:
[0064] S o =[x 1 ,y 1 ,x 2 ,y2 ,R 1o ,R 2o ,R o ,n n ,n max ] T=t,t-1
[0065] The link quality R is represented by the link received signal strength (RSSI), T=t is the current moment, and T=t-1 is the previous moment.
[0066] The relay node status acquisition module collects the status information required by the relay node intelligent agent module, including the relative coordinates (x r ,y r ), (x m -x r ,y m -y r ), the node's own speed (v x ,v y ), RSSI value R of the two links of the node 1 , R 2 , the minimum RSSI value R of the overall link at the left and right ends of the node L , R L The overall schematic diagram of the left and right sections is as follows Figure 2 The final state will also include the states of this step and the previous step.
[0067] The relay node status information is:
[0068] S t =[x r ,y r ,x m -x r ,y m -y r ,v x ,v y ,R 1 ,R 2 ,R L ,R R ] T=t,t-1
[0069] When the agent outputs an action, the more stable target network in the command center agent outputs new nodes and reduces nodes according to the input state, keeping the current state value of each of the three actions as it is, and then adds a certain amount of exploration noise when selecting actions, that is, exploring other actions with a probability of ε, where ε is less than 1 and will become smaller and smaller as the training progresses.
[0070] When the relay node agent outputs an action, the more stable target action network in the agent outputs the action that can get the maximum current action value according to the input state. Then the agent will add a certain amount of noise when selecting the action to enhance its exploration. The central action is modified to satisfy the environmental constraints, and then the position of each node is changed. The link quality and power between the nodes are calculated, and finally the reward functions of the relay node and the command center are used to calculate the reward value and return it.
[0071] The reward function of the relay node simulation environment takes into account the communication quality and energy consumption requirements of the node at each stage under normal circumstances, as well as the influence of other nodes and the requirements of the overall link. It is specifically expressed as:
[0072] r=r t +r p +r n +r ex
[0073] Where r t It is expressed as the sum of rewards or penalties obtained due to communication quality, r p represents the sum of rewards or penalties obtained due to motion power consumption, r n Represents the reward obtained from the overall link or other nodes, r ex Represents the sum of other rewards or penalties, including the penalty the agent receives for violating constraints, the reward or penalty the agent receives based on the final result after a round of training, etc.
[0074] In the emergency communication scenario, the first thing to ensure is the quality of the communication link. In the multi-relay node deployment problem, the relay node first needs to ensure the communication quality of the two links related to itself. Let the RSSI of the worse link be R. Therefore, when designing the reward function, this paper divides it into three stages according to R: dangerous stage, adjustment stage, and rich stage. t , r p The calculation is as follows:
[0075] When R is less than a certain threshold value R 1 When R 0 ≤R<R 1 When the communication link quality is poor, the bit error rate increases, the communication quality decreases, the transmission rate decreases, and there is even a high risk of causing unstable or interrupted connections. Therefore, at this time, r t To avoid the situation where the task node needs to perform a rescue mission at the edge of the reachable range, which causes the relay link communication quality to be poor, and the relay node continues to receive a large penalty value, the ratio of the RSSI of the two links is introduced into the reward function at this time. When the RSSI values of the two links of the relay node are relatively balanced, the penalty value is appropriately reduced. The formula is:
[0076] r t =c(RR 1 )·β 1
[0077] where β 1 =α 1 r o / R 1 A fixed value is added to normalize the reward value and correct the slope. Increasing the link RSSI ratio c can also guide the agent to avoid being too close to a node in the early stage of learning, which may cause the other end node to be disconnected from the relay node.
[0078] When the link communication status is poor, in order to encourage the agent to find possible ways to get out of the predicament and obtain a relay link with better communication quality, the penalty given by the agent's energy consumption will also be appropriately reduced. The calculation formula is:
[0079] r e =k 1 e l,t
[0080] where e l,t is the accumulated energy at the current moment, and the calculation formula is:
[0081] e l,t =P(v,a)Δt+γ e e l,t-Δt
[0082] Where γ e (0<γ e <1) is the cumulative energy consumption discount. In order to allow the agent to consider the energy consumption, it can focus on the nearest 1 / γ e In the process of making decisions, the intelligent agent can consider the impact of the current decision on the next few steps.
[0083] When R is greater than R 1 But it is less than a larger threshold value R 2 When , the relay node can ensure the reliability of communication between the task node and the command center with a certain margin, but at the same time, optimizing the communication link can still provide better support for task execution, so that the overall relay link can reduce transmission delay and improve overall communication efficiency. Therefore, at this time, the reward function gives it a positive reward value, and it increases significantly with the increase of R. The specific formula is as follows:
[0084] r t =(RR 1 )·β 2
[0085] The normalization coefficient β 2 =α 2 r 0 / (R 2 -R 1 ).
[0086] This state of good communication quality of the relay link is theoretically a state that the intelligent body will maintain for a long time. It is also the stage where the algorithm mainly needs to optimize learning. In this stage, the intelligent body also needs to take into account the size of energy consumption during the movement. e The calculation formula is r e =k 2 e l , where k 2 >k 1 , the impact of energy consumption and the acquisition of reward value to a greater extent.
[0087] When R is greater than the threshold value R 2 When , the node has obtained a large RSSI, and the relay link can be regarded as being able to meet the needs of all rescue tasks. At this time, it is difficult to achieve better results by reducing the node spacing or increasing the link quality in other ways. Therefore, the reward value given by the reward function will be maintained at a higher reward and will change less with the fluctuation of R. The specific formula is:
[0088] r t =α 2 r 0 +(RR 2 )·β 3
[0089] The normalization coefficient β 3 =α 3 r 0 / (R max -R 2 ).
[0090] At this time, the agent should pay more attention to the size of its energy consumption, so the reward function will be more sensitive to changes in energy consumption, r e =k 3 e l , where k 3 >k 2 .
[0091] In addition, the reward function will also penalize other inappropriate actions of the agent. For example, when the agent performs actions beyond the speed and acceleration limits, the penalty is calculated based on the magnitude of the limit.
[0092] r ex1 =α 4 (|Δa|2 +|Δv| 2 )
[0093] Where Δa and Δv represent the magnitude of the acceleration and speed exceeding the limit. In addition, the agent will be given a termination reward or penalty based on the final termination state of the algorithm in this round of training. Assume that the environment has executed a total of n rounds of actions at the end, and the agent can perform at most n actions in each round. max Step training, if n<n max This means that the agent unexpectedly terminates this round of training due to other reasons. At this time, the reward function will give it a larger penalty value, which is -α 5 r 0 , and successfully completing all training rounds will receive a positive value as a reward, where α 5 It is a large constant, usually above ten.
[0094] And r n It is related to the overall link status and other nodes, and its calculation formula is:
[0095] r n =r nt +r nn
[0096] where r nt is the reward associated with the overall link state, r nn is the reward associated with adding or reducing nodes, i.e. the number of nodes, r nt The formula is:
[0097] r nt =(R n -R 1 )·β n
[0098] Where R n The RSSI of the link with the smallest RSSI in the overall link can reflect the status of the overall link to the greatest extent while facilitating collection. A fixed value added to normalize the reward and correct the slope, α n It is a fixed value preset according to task requirements and training stage. nn The calculation formula is:
[0099] r m =[F del ·(max(T n ,0,T s ) / T s )-F ad ]β nn
[0100] Among them, F delA flag to record whether to reduce the node. If the reduction is successful, it is 1; otherwise, it is 0. ad A flag to record whether a node is added. If the addition is successful, it is 1; otherwise, it is 0. max(T n ,0,T s ) / T s Indicates the number of rounds that the node survives. The more rounds the node survives, the more valuable the node is and the more rewards it will receive. nn =r 0 α nn is the normalization coefficient.
[0101] The reward function of the command center simulation environment module takes into account the overall link status and the location of the task node, as well as the number of nodes in the current system. The calculation formula is:
[0102] r o =r t +r nn +r ex
[0103] Where r t It is expressed as the sum of rewards or penalties obtained due to communication quality, r nn represents the reward related to the number of nodes in the relay link, r ex Indicates the reward given due to system termination or over-limit.
[0104] r t The calculation formula is:
[0105] r t =(R n -R 1 )·β ot
[0106] Where R n The RSSI of the link with the smallest RSSI in the overall link can reflect the status of the overall link to the greatest extent while facilitating collection. A fixed value added to normalize the reward and correct the slope, α ot These are fixed values preset according to task requirements and training stages.
[0107] r nn For rewards related to the number of nodes, the calculation formula on the command center side is different from that on the relay node side:
[0108]
[0109] Where F del A flag to record whether to reduce the node. If the reduction is successful, it is 1; otherwise, it is 0. ad A flag to record whether a node is added. If the addition is successful, it is 1, otherwise it is 0.o1 =r 0 α nn is the normalization coefficient. r Indicates the distance between the mission node and the command center, d 0 Indicates the relay distance at which the relay node can maintain a good link, β o2 =r 0 α o2 is the normalization coefficient.
[0110] In addition, other rewards are penalties for nodes that increase the limit r ex1 =α oex1 r 0 and the reward r for successfully completing the entire round of training ex2 =α oex2 r 0 , and the penalty for unexpectedly ending this round of training -r ex2 .
[0111] The reward function of the command center takes into account the overall link status and the location of the task node, as well as the number of nodes in the current system. The calculation formula is:
[0112] r o =r t +r nn +r ex
[0113] Where r t It is expressed as the sum of rewards or penalties obtained due to communication quality, r nn represents the reward related to the number of nodes in the relay link, r ex Indicates the reward given due to system termination or over-limit.
[0114] r t The calculation formula is:
[0115] r t =(R n -R 1 )·β ot
[0116] Where R n The RSSI of the link with the smallest RSSI in the overall link can reflect the status of the overall link to the greatest extent while facilitating collection. A fixed value added to normalize the reward and correct the slope, α ot These are fixed values preset according to task requirements and training stages.
[0117] r nn For rewards related to the number of nodes, the calculation formula on the command center side is different from that on the relay node side:
[0118]
[0119] The first half of the formula is similar to that of the relay node side, β ot =r 0 α o1 is the normalization coefficient, the second half d r Indicates the distance between the mission node and the command center, d 0 Indicates the relay distance at which the relay node can maintain a good link, β o2 =r 0 α o2 is the normalization coefficient. In addition, other rewards are penalties for nodes that increase the limit r ex1 =α oex1 r 0 and the reward r for successfully completing the entire round of training ex2 =α oex2 r 0 , and the penalty for unexpectedly ending this round of training -r ex2 .
[0120] Step 104, when storing experience, the memory pool module in the relay node position optimization method and the memory pool module in the command center node quantity management method will store the five-tuple (s, a, r, s', done) consisting of the current state S, the current action a, the state S' at the next moment and the reward value r and its priority weight m into the memory pool. The priority weight of the experience will be determined by its loss function value and the state of the relay node.
[0121] Step 105, when the agent extracts experience batches, it will randomly extract experience from the memory pool according to the priority weight, and its weight value will be reduced by 1 after the experience is used. When the experience pool is full, the experience with the lowest weight and the longest time will be eliminated first.
[0122] The structure diagram of the relay node intelligent agent module is as follows: Figure 3 As shown in the figure, the overall module contains two neural networks, namely the action network (Actor) and the evaluation network (Critic network). The action network inputs the state S observed by the agent and outputs the action A that can maximize the action value. The evaluation network inputs the state S and action A and outputs the action value Q calculated by it. The ultimate goal of the algorithm is to complete the training of the Actor target network so that it can reasonably respond to the state S in the environment and output the action that can maximize the cumulative action value. The training network will be iteratively updated during each training, and the update method is shown in the following formula.
[0123] a'=π φ' (s')+ε,ε~clip(N(0,σ),-c,c)
[0124]
[0125] As shown in the above formula, the gradient descent method is used each time to update the current action state value prediction and the next action value prediction The square value of the difference with the sum of the current reward value r is smaller. Where s' is the state of the next step, the agent module will select the smallest one from the output of the two target evaluation networks for iterative optimization. The update method of the training action network is to use the gradient descent method to minimize the action value of its own output action.
[0126] The structural diagram of the command center node quantity management agent is as follows: Figure 4 As shown in the figure, similar to the relay node position optimization agent, the node quantity control algorithm also has a training network and a target network. The network parameter update method is the gradient descent method. The purpose is to make the action value output by the training network close to the sum of the weighted predicted action value of the next step output by the target network and the actual reward value. The specific formula is expressed as follows:
[0127]
[0128] Where a is the learning rate, s', a' are the state of the next node and the action selected to maximize the action value, θ, θ' represent the parameters in the target network and the training network respectively.
[0129] Step 106, when updating the target network action network of the agent, a soft update method is adopted, that is, the parameters of the training network are added to the target network at a ratio of a smaller value τ, and the expression is as follows
[0130] φ'←τφ+(1-τ)φ'
[0131] Step 107, reset the environment module, that is, when the relay link is disconnected or the current training round ends and the next training round begins, the state parameters in the environment are reset, the task node position is reset to the command center, and the task node task target point is randomly set again.
[0132] See also Figure 5 , Figure 5 This is a structural diagram of a relay optimization device provided by an embodiment of the present invention, which is applied to a command center and includes:
[0133] The simulation environment module is used to change the environment state according to the output of the command center during simulation training, and calculate the reward value to feed back to the intelligent agent module.
[0134] The command center status acquisition module is used to collect the environmental parameters required by the input state of the intelligent body module at each moment, normalize them, and provide them to the intelligent body module.
[0135] The command center agent module is used to manage actions based on the number of nodes that need to be executed according to the state output, and optimize its own output strategy based on the rewards given by the environment.
[0136] The decision-making part is in a relatively stable state and is responsible for real-time interaction with the environment and outputting actions based on the observed state. The optimization part starts to optimize the parameters of the agent after it has a certain amount of experience in the memory pool so that its strategy can obtain a larger reward value.
[0137] The command center memory pool module is used to store the action state reward at the current moment and the state at the next moment generated by the interaction between the command center agent module and the simulation environment module, and provide it to the agent for learning to improve the agent strategy.
[0138] See also Figure 6 , Figure 6 It is a structural diagram of a relay optimization device provided by an embodiment of the present invention, which is applied to a relay node and includes:
[0139] The simulation environment module is used to change the environment state according to the output of the command center during simulation training, and calculate the reward value to feed back to the intelligent agent module.
[0140] The relay node state acquisition module is used to collect the environmental parameters required by the input state of the intelligent agent module at each moment, perform normalization processing, and provide them to the intelligent agent module.
[0141] The relay node agent module is used to manage actions based on the number of nodes that need to be executed according to the state output, and optimize its own output strategy based on the rewards given by the environment.
[0142] The decision-making part is in a relatively stable state and is responsible for real-time interaction with the environment and outputting actions based on the observed state. The optimization part starts to optimize the parameters of the agent after it has a certain amount of experience in the memory pool so that its strategy can obtain a larger reward value.
[0143] The relay node memory pool module is used to store the action state reward at the current moment and the state at the next moment generated by the interaction between the command center intelligent agent module and the simulation environment module, and provide it to the intelligent agent for learning to improve the intelligent agent strategy.
[0144] In an embodiment of the present invention, the relay node agent optimizes its own strategy each time it outputs an action, so that the action state value output by itself is close to the actual situation in the environment, so that when selecting the optimal action, it can also get closer and closer to the optimal action under the actual situation, ultimately enabling the relay link to obtain higher link quality while maintaining smooth operation, lower operating energy consumption and a lower number of nodes while improving the first two optimization goals.
[0145] The device of the embodiment of the present invention is a device that applies the above relay optimization method, so all embodiments of the above relay user method are applicable to the device and can achieve the same or similar beneficial effects.
[0146] Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0147] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A multi-relay node joint optimization method based on deep reinforcement learning, Features: Applied to the command center and relay nodes, the command center is a node that issues tasks to task nodes, the relay nodes are nodes that forward data, and the task nodes are nodes that specifically execute tasks. During the execution of tasks, they must maintain communication with the command center. The relay optimization method includes: The number of nodes in the overall relay link is controlled by a deep reinforcement learning agent applied by the command center. The input state space is a multi-dimensional continuously changing vector, which contains a lot of information observed by the command center state observation module that can provide support for relay optimization. Its output action is to select an action from an action space containing at least three actions, and the action space at least includes: (1) sending a start operation signal to the new relay node; (2) sending a recovery signal to the most recently departed relay node; (3) monitoring the environmental state and maintaining the number of relay nodes unchanged, wherein the new relay node is a relay node dormant in the command center. After receiving the start operation signal, it will start from the command center to execute the relay optimization method, form a relay link with other relay drones, and provide relay for the task node. The deep reinforcement learning agent applied by the relay node controls the movement of the relay node to optimize its relay position. Its output action is at least a two-dimensional continuous variable, representing its acceleration, and the input state space is a multi-dimensional continuously changing vector, which contains a lot of information observed by the relay node state observation module to support relay optimization; By managing the number of relay nodes in the command center and optimizing their locations, when the task nodes gradually move away from the command center to perform tasks, the relay link can adjust the number of relay nodes in the link and the location of each relay node in real time to optimize the link quality of the overall communication link.
2. The communication relay optimization method according to claim 1, Features: Applied to the command center, the state information collected by the state collection module includes at least state variables related to the link quality in the relay link; state variables related to the position of the relay node in the relay link; state variables related to the current number and number limit of the relay nodes in the relay link; other state variables related to the management of the number of relay nodes in the relay link; all of the above state variables in the previous moment, wherein all state variables are normalized when used as input to the intelligent agent.
3. The communication relay optimization method according to claim 1, Features: Applied to relay nodes, the state information collected by the state acquisition module includes at least state variables related to the link quality in the relay link related to the relay node; state variables related to the positions of other nodes around the relay node; state variables related to the relay node's own factors such as speed, acceleration, power consumption, etc.; other state variables related to the optimization of the relay node position; all of the above state variables in the previous moment, wherein all state variables will be normalized when used as input to the intelligent agent.
4. The communication relay optimization method according to claim 1, Features: Applied to the command center, the quantity management agent module uses a multi-layer neural network to form a basic network, the input is the command center status information described in claim 2, and the output is the action taken by the command center, wherein the action output by the agent will be modified by the action exploration module.
5. The communication relay optimization method according to claim 1, Features: Applied to relay nodes, the relay node position optimization agent adopts a multi-layer neural network as the basic network, and adopts multiple evaluation networks and multiple action networks as a whole, wherein the action network inputs the relay node state S described in claim 3, and outputs the action A described in claim 1, and the evaluation network inputs S and A and outputs the calculated value Q. The two networks cooperate with each other to eventually complete the training of the Actor target network, so that it can reasonably respond to the state S in the environment, and output the action that can maximize the cumulative action value, wherein the action output by the agent will be corrected by the action exploration module.
6. The communication relay optimization method according to claim 1, Features: Design an adaptive piecewise reward function to guide the agent so that the action it chooses ensures the communication quality of the relay link while taking into account factors such as the energy consumption of the relay node. The reward function value is related to at least four factors, including the part related to the communication quality of the relay link; the part related to the node movement such as the speed and acceleration of the relay node; and the part related to the change in the number of relay nodes in the relay link. Parts related to other situations such as relay node agent outputting illegal actions.
7. The communication relay optimization method according to claim 1, It is characterized in that The agent stores the experience data and weights of each step of the agent's interaction with the environment into the memory pool, and randomly selects them according to the weights when the agent updates and iterates its own strategy. When the agent stores excessive new experience data, the minimum weight experience is eliminated. The weight is at least related to the state of the relay node and the contribution to the overall learning speed of the agent. The minimum weight is 1. After each experience is learned by the agent, its weight is reduced by 1 until it is reduced to 0.
8. The communication relay optimization method according to claim 1, It is characterized in that When the agent performs an action, the action exploration module will correct the final output action, so that the agent can strike a balance between exploring more possible actions and executing better actions. The degree of action correction is at least related to the results of the previous few action executions, the reward value and the current training stage, and gradually decreases during the training process.
9. A multi-relay node joint optimization device based on deep reinforcement learning, It is characterized in that Applied to a command center, the device comprises: The command center status collection module is used to collect the environmental parameters required by the input status of the intelligent agent module at every moment, perform normalization processing, and provide them to the intelligent agent module; The command center agent module is used to manage the actions according to the number of nodes that need to be executed according to the state output, and optimize its own output strategy according to the rewards given by the environment; The command center memory pool module is used to store the action state reward at the current moment and the state at the next moment generated by the interaction between the command center agent module and the simulation environment module, and provide it to the agent for learning to improve the agent strategy; The command center action exploration module is used to determine the specific actions performed by the command center and optimize the output strategy while fully exploring the action space.
10. A multi-relay node joint optimization device based on deep reinforcement learning, It is characterized in that Applied to a relay node, the location optimization device comprises: The relay node state acquisition module is used to collect the environmental parameters required by the input state of the intelligent agent module at each moment, perform normalization processing, and provide them to the intelligent agent module; The relay node agent module is used to manage the actions according to the number of nodes that need to be executed according to the state output, and optimize its own output strategy according to the rewards given by the environment; The relay node memory pool module is used to store the current action, state, reward and next state and weight generated by the interaction between the relay node agent module and the simulation environment module, and provide them to the agent for learning to improve the agent strategy; The relay node action exploration module is used to determine the specific actions performed by the relay node and optimize the output strategy while fully exploring the action space.
Citation Information
Patent Citations
Multi-unmanned aerial vehicle formation cluster control method based on multi-agent deep reinforcement learning
CN115755949A
Distributed multi-unmanned aerial vehicle relay network coverage method
CN116017479A
Marine unmanned aerial vehicle optical chain data transmission method based on multi-agent reinforcement learning
CN117856903A
Method and apparatus for generating multi-drone network cooperative operation plan based on reinforcement learning
US20230297859A1
Cited By
Rule and data hybrid driven unmanned mine truck path planning system and method
CN119759034A
