Multi-agent deep reinforcement learning path planning method based on improved A*heuristic
By improving the combination of A* heuristic and deep reinforcement learning, generating static prior path information and Q-table, optimizing the MADQN model, it solves the computational complexity and scalability problems of traditional multi-agent path planning algorithms in complex environments, and achieves for more efficient path planning and adaptability.
Patent Information
- Application Number
- CN202410890388.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Traditional multi-agent path planning algorithms have high computational complexity, poor scalability, and difficulty adapting to dynamic changes in complex environments, and are prone to path conflicts and huge resource consumption.
Propose a multi-agent deep reinforcement learning path planning method based on the improved A* heuristic, use the QH-A* algorithm to generate static prior path information and Q tables, optimize the MADQN model, design dynamic weight parameters and multi-objective reward functions, and balance exploration With utilization, the efficiency and stability of the algorithm can be improved by storing and adjusting the Q value weight through a priori replay pool.
It significantly reduces the initial exploration time and computing resources of the MADQN algorithm, improves the efficiency and stability of the early training stage, optimizes the collaboration and action exploration strategies between agents, and improves the efficiency and adaptability of path planning. It is significantly better than traditional algorithms in complex tasks. performance in the environment.
Smart Images

Figure CN118759846A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to a multi-agent deep reinforcement learning path planning method based on improved A* heuristic. Background Art
[0002] With the continuous advancement of intelligent technology, unmanned aerial vehicles (UAVs), as a highly maneuverable aerial platform, are widely used in agricultural monitoring, map making, disaster relief and other fields. However, in complex environments, the shortcomings of a single UAV, such as low fault tolerance and limited operational capabilities, are gradually emerging. Therefore, the study of multi-agent path planning problems has become increasingly important.
[0003] At present, multi-agent path planning technology is mainly based on the classic MAPF (multi-agent path finding, MAPF) algorithm. Classic MAPF algorithms such as the A* search algorithm optimize the search process by introducing heuristic functions. Based on the conflict-based search algorithm (CBS), a high-low double-layer search is used to build a binary search tree to add restrictions to resolve conflicts, which can solve problems faster than other methods. The increasing cost tree search algorithm (ICTS) finds the optimal cost of each agent based on high-level search, and then verifies the effectiveness of these costs through low-level search. The hybrid strategy can maintain good performance in environments of different types of maps and scales.
[0004] Research in recent years has shown that the classic MAPF algorithm performs well in solving path planning problems. However, these methods usually rely on a central planner to obtain complete map information and the positions of all agents. This centralized approach requires the collection of a large amount of data to plan the optimal path, resulting in huge consumption of computing resources. With breakthroughs in artificial intelligence, the MAPF algorithm based on reinforcement learning (RL) has shown great potential in solving scenarios with dynamically changing environments. Reinforcement learning demonstrates significant adaptability and scalability through the interaction and exploration of agents with unknown environments. Deep reinforcement learning (DRL) combined with deep neural networks further enhances adaptability, enabling agents to make precise decisions in complex environments, making it a powerful tool to replace traditional MAPF methods.
[0005] The Deep Q-Network (DQN) algorithm uses a deep neural network to fit the action value function Q of the Q-learning algorithm (QL) to generate an estimated Q value, which significantly improves the ability to process high-dimensional perceptual inputs and the overall learning efficiency. At the same time, the DQN algorithm introduces two key technologies: experience replay and target network. The experience replay mechanism maintains an experience replay pool to store the state, action, reward, and next state observed by the agent in the environment, and randomly extracts experience samples from it to train the network. The target network provides a relatively stable target Q value, reducing the training fluctuations caused by excessively frequent target Q values during the learning process. This breaks the temporal correlation between samples, improves the stability of learning, and optimizes the long-term decision-making process.
[0006] However, in the study of path planning for multi-UAV systems, the traditional DQN algorithm still has many limitations. First, as the number of agents increases, the computational complexity rises sharply, making it difficult to effectively execute in real-time applications. Second, in a dense obstacle environment, the agent only focuses on local path optimization and cannot guarantee the global optimal path. Path conflicts are prone to occur, which may lead to deadlocks or bottlenecks. In addition, the algorithm assumes that the environment is static and is difficult to adapt to dynamic changes such as obstacle movement or environmental mutations, which affect the overall path planning effect. Finally, the traditional DQN algorithm has poor scalability and has high requirements for computing resources and memory in a multi-agent environment, which limits its application in resource-constrained environments. Summary of the invention
[0007] The purpose of the present invention is to address the defects and shortcomings of the above-mentioned prior art, and propose a multi-agent deep reinforcement learning path planning method based on improved A* heuristic. By proposing a path search algorithm called QH-A* (Q-Heuristic A*Algorithm), the algorithm uses the improved Q-learning algorithm as a heuristic function to generate static prior path information and Q table. As prior information, it reduces the initial exploration time and computing resources of the MADQN algorithm, and improves the efficiency and stability in the early stage of training.
[0008] The technical solution adopted by the present invention to solve the technical problem is: a multi-agent deep reinforcement learning path planning method based on improved A* heuristic, the method comprising the following steps:
[0009] Step 1: Generate prior knowledge based on the QH-A* algorithm;
[0010] Step 2: Optimize the MADQN model, use the prior knowledge explored by the QH-A* algorithm to generate global information, design dynamic weight parameters, and use the prior Q value to optimize the multi-agent Q value function;
[0011] Step 3: Use the QH-A* algorithm to explore the unknown environment based on the heuristic function of the improved Q-learning algorithm to generate prior knowledge and store it in the prior replay pool D * middle.
[0012] Furthermore, the step 1 includes using the improved Q-learning algorithm as the heuristic function h(s), which is defined as:
[0013] h(s)=r+γmax a Q(s,a)+f(N) (2)
[0014] Among them, f(N) is the initial exploration reward, which is specifically expressed as:
[0015]
[0016] Among them, N(s,a) is the number of times action a is executed in state s, and β is a constant used to encourage exploration of unknown environments and obtain global information;
[0017] Design g(s) to represent the path cost of the current state, which is specifically expressed as:
[0018] g(s) = g(s t-1 )+g a (s t-1 ,s) (4)
[0019] Among them, s t-1 Indicates the state at the previous moment, g a (s t-1 ,s) represents the cost of taking action a to reach the current state s;
[0020] In summary, the cost function of the QH-A* algorithm is:
[0021] f(s)=g(s)+h(s) (5)
[0022] Design a priori replay pool D * , storing the static prior path information of the drone Includes the current state * , Action taken a * , get rewards * and the next state s′ * ,s * is the current state, expressed as:
[0023] s* ={(x,y),(x tg ,y tg ),t,(x obs ,y obs ),done} (6)
[0024] In formula (6), the current position coordinates of drone i (x i ,y i ); target position coordinates (x tg ,y tg ); the time step information t of the current position; used to determine whether there will be a collision between drones; the position coordinate set of potential collision obstacles on the path (x obs ,y obs ); Task completion status done, determine whether the drone has reached the destination, if it has arrived, the status value is 1; otherwise 0;
[0025] a * It is based on QH-A* taking the current state s * Arrive at the next moment state s' * The optimal action is represented by a * ={dx,dy},r * Is to perform action a * Rewards received;
[0026] s′ * Is the drone performing action a * The new state generated is specifically expressed as:
[0027] s′ * ={(x i +dx,y i +dx),(x tg ,y tg ),t′,(x obs ′,y obs ′)} (7)
[0028] In formula (7), t′ is the time step information of the UAV path, (x i +dx,y i +dx) is the new position coordinate;
[0029] Based on the heuristic function of formula (2), the prior Q value of each state action is extracted from the Q table, Q p The expression is:
[0030]
[0031] Furthermore, the step 2 includes, in the decision-making process, the agent balances exploration and utilization by dynamically adjusting the action selection strategy based on the cumulative reward to adapt to the learning needs of different stages, and designs an improved multi-objective reward function, which specifically includes the following steps:
[0032] Step 2-1: Optimize the multi-agent Q value based on prior knowledge, according to the prior replay pool D * The prior information in generates global information τ. The expression of the global information τ(i) of the i-th agent is:
[0033]
[0034] in, is the distance between UAV i and the destination, expressed as;
[0035]
[0036] The distance between the drone and the boundaries and obstacles The expression is:
[0037]
[0038] A dynamic weight parameter λ(t) is introduced to learn and train the agent based on the rewards it obtains from interactions in an unknown environment:
[0039]
[0040] Among them, N max is the maximum training round, k is the current training round;
[0041] Through λ(t), according to the number of training rounds, the global Q value Q is reasonably adjusted τ The prior Q value Q P And the estimated Q-value weights:
[0042] Q τ (s,a;θ)=(1-λ(t))Q p (s,a)+λ(t)Q θ (s,a;θ) (13)
[0043] At the same time, based on the global information τ, the weight ω based on the target distance and obstacles is introduced i , the expression is:
[0044]
[0045] Among them, α is a constant used to adjust the importance of target distance;
[0046] Normalized weight ω i′, the expression is:
[0047]
[0048] Then the joint value Q function of the system as a whole is total , the expression is:
[0049]
[0050] Using the loss function L in formula (14) θ , update the deep neural network parameters θ, the expression is:
[0051]
[0052] In formula (17), Y t i The target Q value for each agent is expressed as:
[0053]
[0054] Step 2-2: Based on the action selection strategy dynamically adjusted by cumulative rewards, a dynamic balance between exploration and exploitation is achieved by adaptively adjusting the random action probability ε;
[0055] In the early stage, the system focuses on exploration, obtaining comprehensive environmental information, and building a more accurate estimated Q value; in the later stage, the system focuses on using known information to improve the efficiency of path planning;
[0056]
[0057] In formula (19), k is the current training round, ε min is the set minimum value of ε, ε o is the initial value of ε, R k is the cumulative reward for the kth round of training, is the average reward of the first k rounds of training, is the average reward of the first k-1 rounds of training, and N is the total number of training rounds;
[0058] According to the optimized exploration strategy, the system can balance exploration and utilization at different stages, thereby selecting better actions and obtaining:
[0059]
[0060] Step 2-3: Establish a reward function based on multi-objective coordination, which consists of three parts: exploration reward, obstacle avoidance reward, and multi-agent collaboration reward; specifically, the reward function R consists of three parts:
[0061] R=R T +R O +RS (twenty one)
[0062] Among them, R T For exploration rewards; R O Reward for obstacle avoidance; R S Coordinating rewards for multiple agents.
[0063] Furthermore, the steps 2-3 include:
[0064] (1) Exploring the Reward Function
[0065] Design exploration reward function R T , use positive feedback to motivate the UAV to move toward the target point and approach the target, and apply negative feedback to reduce invalid exploration;
[0066]
[0067] Among them, d t ' is the distance from the target point at the next moment;
[0068] (2) Obstacle Avoidance Reward Function
[0069] Designing the obstacle avoidance reward function R O To ensure flight safety, when the distance between the drone and the nearest obstacle is less than s f , the drone will be penalized, and the MADQN path selection will be optimized to avoid collision risks;
[0070]
[0071] Among them, s f The safe distance between the drone and obstacles;
[0072] (3) Multi-agent Collaboration Reward Function
[0073] Design a multi-agent collaboration reward function R S , coordinate the path planning between drones to prevent collisions between drones, and the distance between drone i and drone j for:
[0074]
[0075] Further, step 3 includes: according to the optimized MADQN model, calling D in the prior replay pool * , perform initial learning, and adjust the prior Q value Q according to the training round p And the weights of the estimated Q-values are used to generate global information τ based on prior knowledge, taking into account the obstacles and target information in the current environment and optimizing the joint Q-value of the system.
[0076] Beneficial effects:
[0077] 1. This paper proposes a path search algorithm named QH-A* (Q-Heuristic A*Algorithm), which uses an improved Q-learning algorithm as a heuristic function to generate static prior path information and Q table. As prior information, it reduces the initial exploration time and computing resources of the MADQN algorithm and improves the efficiency and stability in the early stage of training.
[0078] 2. The present invention designs a multi-agent deep Q network (QH-A*-MADQN) path planning algorithm that combines QH-A* prior knowledge, reasonably adjusts the weights of prior knowledge Q value and estimated Q value, generates the overall Q value of the system, realizes collaborative optimization among agents, further optimizes action exploration strategy and multi-objective reward function, balances the relationship between exploration and utilization, and enhances the autonomous decision-making ability of UAVs, so that it can be more effectively applied to complex environments with multiple UAVs.
[0079] 3. The present invention verifies the QH-A*-MADQN algorithm proposed in this paper through simulation experiments of multi-agent path planning. The algorithm is significantly superior to traditional algorithms in terms of path planning efficiency, convergence speed, task success rate and ability to adapt to dynamic environments, further proving its high efficiency and robustness in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 A schematic diagram for generating prior knowledge of the present invention.
[0081] Figure 2 This is a flow chart of the QH-A*-MADQN algorithm of the present invention. DETAILED DESCRIPTION
[0082] The invention will be further described in detail below in conjunction with the accompanying drawings.
[0083] The present invention is based on an improved A*-inspired multi-agent deep reinforcement learning path planning method, which comprises the following steps:
[0084] Step 1: Generate prior knowledge based on the QH-A* algorithm;
[0085] The A* algorithm is a global path planning algorithm commonly used in multi-agent path planning. The cost function of the A* algorithm is:
[0086] f(n)=g(n)+h(n) (1)
[0087] Among them, g(n) is the actual cost from the starting point to the current node, and h(n) is the estimated cost from the current node to the goal.
[0088] However, the heuristic function of the traditional A* algorithm leads to insufficient search in unexplored areas, thus affecting the global optimality of path planning. In addition, the A* algorithm needs to frequently recalculate the path in a dynamic environment, which reduces the efficiency and accuracy of path planning.
[0089] To solve the above problems, the present invention proposes a new path search algorithm QH-A*, which uses the improved Q-learning algorithm as the heuristic function h(s), which is defined as:
[0090] h(s)=r+γmax a Q(s,a)+f(N) (2)
[0091] Among them, f(N) is the initial exploration reward, which is specifically expressed as:
[0092]
[0093] Among them, N(s,a) is the number of times action a is executed in state s, and β is a constant used to encourage exploration of unknown environments and obtain global information.
[0094] Design g(s) to represent the path cost of the current state, which is specifically expressed as:
[0095] g(s) = g(s t-1 )+g a (s t-1 ,s) (4)
[0096] Among them, s t-1 Indicates the state at the previous moment, g a (s t-1 ,s) represents the cost of taking action a to reach the current state s.
[0097] In summary, the cost function of the QH-A* algorithm is:
[0098] f(s)=g(s)+h(s) (5)
[0099] Design a priori replay pool D * , storing the static prior path information of the drone Includes the current state * , Action taken a * , get rewards * and the next state s′ * .like Figure 1 As shown, s * is the current state, which can be expressed as:
[0100] s * ={(x,y),(x tg ,y tg),t,(x obs ,y obs ),done} (6)
[0101] In formula (6), the current position coordinates of drone i (x i ,y i ); target position coordinates (x tg ,y tg ); the time step information t of the current position; used to determine whether there will be a collision between drones. The position coordinate set of potential collision obstacles on the path (x obs ,y obs ). Mission completion status done (determine whether the drone has reached the destination, if it has, the status value is 1; otherwise 0).
[0102] a * It is based on QH-A* taking the current state s * Arrive at the next moment state s' * The optimal action can be expressed as a * ={dx,dy},r * Is to perform action a * The reward you get.
[0103] s′ * Is the drone performing action a * The new state generated is specifically expressed as:
[0104] s′ * ={(x i +dx,y i +dx),(x tg ,y tg ),t′,(x obs ′,y obs ′)} (7)
[0105] In formula (7), t′ is the time step information of the UAV path, (x i +dx,y i +dx) is the new position coordinate.
[0106] Based on the heuristic function of formula (2), the prior Q value of each state action is extracted from the Q table, Q p The expression is:
[0107]
[0108] Based on the heuristic function of the improved Q-Learning algorithm, the UAV system can perform more efficient search and decision-making in unknown environments. In addition, using the prior replay pool D *With the prior knowledge stored in , the DQN model can utilize historical experience to optimize decision-making strategies, achieving faster learning and more efficient task execution.
[0109] Step 2: Optimize the MADQN model; use the prior knowledge explored by the QH-A* algorithm to generate global information, design dynamic weight parameters, and use the prior Q value to optimize the multi-agent Q value function; then, in the decision-making process, the agent balances exploration and utilization through an action selection strategy dynamically adjusted based on the cumulative reward, thereby adapting to the learning needs of different stages; finally, design an improved multi-objective reward function, which significantly improves the learning efficiency and task execution effect of the agent in complex environments by comprehensively considering the exploration reward, obstacle avoidance reward and multi-agent collaboration reward, including:
[0110] Step 2-1: Optimize the multi-agent Q value based on prior knowledge; according to the prior replay pool D * The prior information in generates global information τ. The expression of the global information τ(i) of the i-th agent is:
[0111]
[0112] in, is the distance between UAV i and the destination, expressed as;
[0113]
[0114] The distance between the drone and the boundaries and obstacles The expression is:
[0115]
[0116] Since prior knowledge fails to fully consider the global complex dynamic environment, it has certain limitations. A dynamic weight parameter λ(t) is introduced to combine the rewards obtained by the agent from the interaction in the unknown environment for learning and training:
[0117]
[0118] Among them, N max is the maximum training round, and k is the current training round.
[0119] Through λ(t), the global Q value Q can be reasonably adjusted according to the number of training rounds τ The prior Q value Q P And the estimated Q-value weights:
[0120] Q τ (s,a;θ)=(1-λ(t))Q p (s,a)+λ(t)Q θ(s,a;θ) (13)
[0121] At the same time, based on the global information τ, the weight ω based on the target distance and obstacles is introduced i , the expression is:
[0122]
[0123] Among them, α is a constant used to adjust the importance of target distance.
[0124] Normalized weight ω i ′, the expression is:
[0125]
[0126] Then the joint value Q function of the system as a whole is total , the expression is:
[0127]
[0128] Using the loss function L shown in formula (14) θ , update the deep neural network parameters θ, the expression is:
[0129]
[0130] In formula (17), Y t i The target Q value for each agent is expressed as:
[0131]
[0132] The algorithm flow is as follows Figure 2 As shown in the figure, based on global information, coordination and cooperation between intelligent agents will be promoted to maximize the overall reward of the system, making the algorithm more adaptable to complex and changeable practical application scenarios.
[0133] Step 2-2: Based on the action selection strategy dynamically adjusted by cumulative rewards, a dynamic balance between exploration and exploitation is achieved by adaptively adjusting the random action probability ε;
[0134] In the early stage, the system focuses on exploration, obtaining comprehensive environmental information, and building a more accurate estimated Q value; in the later stage, the system focuses on using known information to improve the efficiency of path planning;
[0135]
[0136] In formula (19), k is the current training round, ε min is the set minimum value of ε, ε o is the initial value of ε, R k is the cumulative reward for the kth round of training, is the average reward of the first k rounds of training, is the average reward of the first k-1 rounds of training, and N is the total number of training rounds.
[0137] According to the optimized exploration strategy, the system can balance exploration and utilization at different stages, thereby selecting better actions and obtaining:
[0138]
[0139] The action selection strategy based on dynamic adjustment of cumulative rewards enables the agent to adapt to changes in the environment, which not only improves the training efficiency of the algorithm, but also enhances its robustness in complex environments. It solves the problems that the traditional MADQN algorithm cannot balance exploration and utilization in complex environments and is prone to falling into local optimality. The core idea of this strategy is to dynamically adjust the balance between exploration and utilization according to the changes in cumulative rewards during training, which improves the adaptability and learning efficiency of the MADQN algorithm at different stages.
[0140] Step 2-3: Establish a reward function based on multi-objective coordination, which consists of three parts: exploration reward, obstacle avoidance reward, and multi-agent collaboration reward; specifically, the reward function R consists of three parts:
[0141] R=R T +R O +R S (twenty one)
[0142] Among them, R T For exploration rewards; R O Reward for obstacle avoidance; R S Coordinating rewards for multiple agents.
[0143] (1) Exploring the Reward Function
[0144] Design exploration reward function R T , use positive feedback to motivate the drone to move towards the target point and approach the target, and apply negative feedback to reduce invalid exploration, thereby improving the exploration efficiency of the MADQN algorithm in the initial training stage;
[0145]
[0146] Among them, d t ′ is the distance from the target point at the next moment.
[0147] (2) Obstacle Avoidance Reward Function
[0148] Designing the obstacle avoidance reward function R O To ensure flight safety, when the distance between the drone and the nearest obstacle is less than s f, the drone will be penalized, and the MADQN path selection will be optimized to avoid collision risks;
[0149]
[0150] Among them, s f The safe distance between the drone and obstacles.
[0151] (3) Multi-agent Collaboration Reward Function
[0152] Design a multi-agent collaboration reward function R S , coordinate the path planning between drones to prevent collisions between drones. The distance between drone i and drone j for:
[0153]
[0154] In summary, the multi-objective coordinated reward function improves the learning efficiency of the MADQN algorithm and the robustness of the system by comprehensively considering the three factors of exploration, obstacle avoidance and collaboration.
[0155] Step 3: Use the QH-A* algorithm to explore the unknown environment based on the heuristic function of the improved Q-learning algorithm to generate prior knowledge and store it in the prior replay pool D * According to the optimized MADQN model, call D in the prior replay pool * , perform initial learning, and adjust the prior Q value Q according to the training round p And the weight of the estimated Q value. Based on prior knowledge, generate global information τ, consider the obstacles and target information in the current environment, and optimize the joint Q value of the system. The specific process is shown in Table 1:
[0156] Table 1 QH-A*-MADQN algorithm flow
[0157]
[0158]
[0159] For those skilled in the art, other advantages and variations can be easily associated with the above implementation types. Therefore, the present invention is not limited to the above specific examples, which are merely used as examples to provide a detailed and exemplary description of one form of the present invention. Without departing from the scope of the present invention, the technical solutions obtained by those skilled in the art through various equivalent substitutions based on the above specific examples should be included in the scope of the claims of the present invention and their equivalents.
Claims
1. A multi-agent deep reinforcement learning path planning method based on improved A* heuristic, characterized by: The method comprises the following steps: Step 1: Generate prior knowledge based on the QH-A* algorithm; Step 2: Optimize the MADQN model, use the prior knowledge explored by the QH-A* algorithm to generate global information, design dynamic weight parameters, and use the prior Q value to optimize the multi-agent Q value function; Step 3: Use the QH-A* algorithm to explore the unknown environment based on the heuristic function of the improved Q-learning algorithm to generate prior knowledge and store it in the prior replay pool D * middle.
2. The multi-agent deep reinforcement learning path planning method based on improved A* heuristic according to claim 1 is characterized in that: The step 1 includes using the improved Q-learning algorithm as the heuristic function h(s), which is defined as: h(s)=r+γmax a Q(s,a)+f(N) (2) Among them, f(N) is the initial exploration reward, which is specifically expressed as: Among them, N(s,a) is the number of times action a is executed in state s, and β is a constant used to encourage exploration of unknown environments and obtain global information; Design g(s) to represent the path cost of the current state, which is specifically expressed as: g(s)=g(s t-1 )+g a (s t-1 ,s) (4) Among them, s t-1 Indicates the state at the previous moment, g a (s t-1 ,s) represents the cost of taking action a to reach the current state s; In summary, the cost function of the QH-A* algorithm is: f(s)=g(s)+h(s) (5) Design a priori replay pool D * , storing the static prior path information of the drone Includes the current state * , Action taken a * , get rewards * and the next state s′ * ,s * is the current state, expressed as: s * ={(x,y),(x tg ,y tg ),t,(x obs ,y obs ),done} (6) In formula (6), the current position coordinates of drone i (x i ,y i ); target position coordinates (x tg ,y tg ); the time step information t of the current position; used to determine whether there will be a collision between drones; the position coordinate set of potential collision obstacles on the path (x obs ,y obs ); Task completion status done, determine whether the drone has reached the destination, if it has arrived, the status value is 1; otherwise 0; a * It is based on QH-A* taking the current state s * Arrive at the next moment state s' * The optimal action is represented by a * ={dx,dy},r * Is to perform action a * Rewards received; s′ * Is the drone performing action a * The new state generated is specifically expressed as: s′ * ={(x i +dx,y i +dx),(x tg ,y tg ),t′,(x obs ′,y obs ′)} (7) In formula (7), t′ is the time step information of the UAV path, (x i +dx,y i +dx) is the new position coordinate; Based on the heuristic function of formula (2), the prior Q value of each state action is extracted from the Q table, Q p The expression is:
3. The multi-agent deep reinforcement learning path planning method based on improved A* heuristic according to claim 1 is characterized in that: The step 2 includes, in the decision-making process, the agent balances exploration and exploitation by dynamically adjusting the action selection strategy based on the accumulated rewards to adapt to the learning needs of different stages, and designs an improved multi-objective reward function, which specifically includes the following steps: Step 2-1: Optimize the multi-agent Q value based on prior knowledge, according to the prior replay pool D * The prior information in generates global information τ. The expression of the global information τ(i) of the i-th agent is: in, is the distance between UAV i and the destination, expressed as; The distance between the drone and the boundaries and obstacles The expression is: A dynamic weight parameter λ(t) is introduced to learn and train the agent based on the rewards it obtains from interactions in an unknown environment: Among them, N max is the maximum training round, k is the current training round; Through λ(t), according to the number of training rounds, the global Q value Q is reasonably adjusted τ The prior Q value Q P And the estimated Q-value weights: Q τ (s,a;θ)=(1-λ(t))Q p (s,a)+λ(t)Q θ (s,a;θ) (13) At the same time, based on the global information τ, the weight ω based on the target distance and obstacles is introduced i , the expression is: Among them, α is a constant used to adjust the importance of target distance; Normalized weight ω′ i , the expression is: Then the joint value Q function of the system as a whole is total , the expression is: Using the loss function L in formula (14) θ , update the deep neural network parameters θ, the expression is: In formula (17), Y t i The target Q value for each agent is expressed as: Step 2-2: Based on the action selection strategy dynamically adjusted by cumulative rewards, a dynamic balance between exploration and exploitation is achieved by adaptively adjusting the random action probability ε; In the early stage, the system focuses on exploration, obtaining comprehensive environmental information, and building a more accurate estimated Q value; in the later stage, the system focuses on using known information to improve the efficiency of path planning; In formula (19), k is the current training round, ε min is the set minimum value of ε, ε o is the initial value of ε, R k is the cumulative reward for the kth round of training, is the average reward of the first k rounds of training, is the average reward of the first k-1 rounds of training, and N is the total number of training rounds; According to the optimized exploration strategy, the system can balance exploration and exploitation at different stages, thereby selecting better actions and obtaining: Step 2-3: Establish a reward function based on multi-objective coordination, which consists of three parts: exploration reward, obstacle avoidance reward, and multi-agent collaboration reward; specifically, the reward function R consists of three parts: R=R T +R O +R S (21) Among them, R T For exploration rewards; R O Reward for obstacle avoidance; R S Coordinating rewards for multiple agents.
4. The multi-agent deep reinforcement learning path planning method based on improved A* heuristic according to claim 3 is characterized in that: The steps 2-3 include: (1) Exploring the Reward Function Design exploration reward function R T , use positive feedback to motivate the UAV to move toward the target point and approach the target, and apply negative feedback to reduce invalid exploration; Among them, d t ' is the distance from the target point at the next moment; (2) Obstacle Avoidance Reward Function Designing the obstacle avoidance reward function R O To ensure flight safety, when the distance between the drone and the nearest obstacle is less than s f , the drone will be penalized, and the MADQN path selection will be optimized to avoid collision risks; Among them, s f The safe distance between the drone and obstacles; (3) Multi-agent Collaboration Reward Function Design a multi-agent collaboration reward function R S , coordinate the path planning between drones to prevent collisions between drones, and the distance between drone i and drone j for:
5. The multi-agent deep reinforcement learning path planning method based on improved A* heuristic according to claim 1, characterized in that: The step 3 includes: according to the optimized MADQN model, calling D in the prior replay pool * , perform initial learning, and adjust the prior Q value Q according to the training round p And the weights of the estimated Q-values are used to generate global information τ based on prior knowledge, taking into account the obstacles and target information in the current environment and optimizing the joint Q-value of the system.
Citation Information
Patent Citations
Multi-robot path planning method based on priori knowledge and DQN algorithm
CN110321666A
Multi-intelligent agent reinforcement learning path planning method based on ant colony algorithm
CN112286203A
Cited By
Multi-robot path planning method based on course deep reinforcement learning
CN119642843A
A multi-robot path planning method based on curriculum deep reinforcement learning
CN119642843B
Intelligent aviation medicine simulation rescue path planning method
CN119781505A
Path planning method based on machine learning in easily degraded environment
CN119845286A
Multi-agent path planning method and system based on improved RND3QN network
CN119960464A
