Online planning method based on efficient search strategy in uncertain environment
Through the discounted representation of the upper and lower limits of belief nodes of the DESPOT-DULB algorithm, the computational complexity and strategy quality problems of the POMDP model in an uncertain environment are solved, and more efficient online planning and behavioral decision-making are achieved.
Patent Information
- Application Number
- CN202111401793.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-11-24
AI Technical Summary
In existing technology, in robot motion planning in an uncertain environment, the POMDP model leads to high computational complexity and poor strategy quality. It is difficult for traditional heuristic search algorithms to accurately represent belief node information, resulting in suboptimal online planning strategies.
The efficient search strategy DESPOT-DULB algorithm is introduced to represent the current belief information by discounting the upper and lower limits of belief nodes, build a better belief tree, avoid the greedy and suboptimal nature of a single upper limit search, and improve the expansion quality of the belief tree.
It improves the convergence speed and strategy quality of the online planning algorithm, and its performance is better than DESPOT and POMCP. It can construct belief trees more accurately in uncertain environments and obtain approximately optimal behavioral strategies.
Smart Images

Figure CN114118441B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of robots and relates to an online planning method based on an efficient search strategy in an uncertain environment. Background Art
[0002] With the rapid development of science and information technology, robots have gradually integrated into people's daily life. As an important research field in robotics, motion planning has also received extensive attention.
[0003] The motion planning method based on heuristic search can calculate a feasible solution close to the optimal solution within a limited time and space. Traditional planning algorithms based on heuristic search include simulated annealing algorithm (SA), genetic algorithm (GA), and ant colony algorithm (ACO). The characteristics of the SA algorithm are that it can efficiently solve NP-complete problems, such as the Traveling Salesman Problem, the Max Cut Problem, the Zero One Knapsack Problem, the Graph Colouring Problem, etc., but its parameters are difficult to control and cannot guarantee convergence to the optimal value in one go. Generally, it takes multiple attempts to obtain it and in most cases it will still fall into the local optimal value. The GA algorithm performs global optimization based on biological evolution and genetics and has good global search capabilities, but there are problems such as premature convergence. ANN algorithm Artificial neural network is an algorithm model inspired by biological neural networks. The algorithm can be quickly adjusted and effectively adapt to new environments, but it has high hardware requirements and long computing and training time. The ACO algorithm is a probabilistic algorithm used to find the optimal path. It is inspired by the behavior of ants in finding paths while searching for food. It is a global optimization algorithm, but it has problems such as slow convergence. The above heuristic algorithms can effectively plan near-optimal paths for specific problems, but they do not consider the uncertainty of the model caused by the environment, sensors, etc. In real environments, the model is usually uncertain. Decision-theoretic planning is of great significance for solving planning under uncertainty, so motion planning research based on reinforcement learning is a good research topic.
[0004] Reinforcement learning is an interdisciplinary subject in many fields, such as machine learning, decision and operations research, deep learning, and control engineering. In a reinforcement learning system, the agent learns in a "trial and error" manner, and the rewards obtained by interacting with the environment guide the behavior so that the agent can obtain the maximum long-term reward. Therefore, reinforcement learning is an important method to solve the optimal sequence decision problem. In reinforcement learning, the agent in a deterministic environment and an uncertain environment can generally be represented as a Markov decision process (MDP) and a partially observable Markov decision process (POMDP) model. The difference is that in the MDP model, the agent's own state is completely observable, but in the POMDP model, its own state is partially observable.
[0005] In the early research of MDP problems, the focus was mainly on discrete states and action spaces. However, in real-world tasks, it is necessary to process continuous states and action spaces, and the learning efficiency and applicability of the algorithm cannot meet the latest requirements. In recent years, approximate solvers of reinforcement learning methods can effectively improve the above problems, such as approximate value function iteration, approximate policy iteration, and actor-evaluator algorithms. Reinforcement learning algorithms not only focus on a single long-term reward goal, but also have great developments in reinforcement learning problems for multi-objective planning, such as using multi-objective learning to improve the flexibility of longitudinal control of autonomous land vehicles, multi-machine multi-task planning, etc. However, the MDP model does not take into account the uncertainties brought about by the environment, sensors, etc., which will result in poor quality of the calculated strategy.
[0006] POMDP provides a basic framework for planning in uncertain environments. The POMDP framework has been able to solve real-world sequential decision-making problems. Considering that when a robot performs a task, the important factors that restrict the reliable operation of the robot are the uncertainty of the environment, sensors, etc. Therefore, it is an important topic in the field of robotics to achieve online and effective planning in an uncertain environment with a large state and observation space. POMDP represents the current possible state as a belief. The planning algorithm continuously performs forward search to build a belief tree. Each node of the belief tree represents a belief, and the parent node and the child node are connected through the behavior-observation branch. However, POMDP is uncomputable in some worst cases due to the "curse of dimensionality" and "curse of historical information". Despite this, some approximate POMDP solvers: DESPOT, POMCP and POMCPOW have been widely used in many tasks, such as resource management, unmanned driving, navigation, and robotic arms.
[0007] The latest online POMDP algorithms such as DESPOT and POMCP use the Monte Carlo method and the idea of UCB to perform belief updates and forward search to construct belief trees respectively to deal with the curse of dimensionality. The UCB method can effectively solve the exploration and exploitation balance problem. DESPOT uses the idea of UCB to further explore the initial upper limit of the belief node as a heuristic exploration item to construct the corresponding belief tree. In POMDP tasks with large state spaces, DESPOT can calculate an approximately optimal strategy. Theoretical analysis shows that the heuristic based on the initial upper limit of the belief node can search for ∈-optimal behavior and can guarantee approximately optimal online planning with a high probability. However, the initial upper limit of the belief node is inaccurate and a single initial upper limit cannot represent all the information of the belief node, especially in a large observation space, resulting in a non-optimal belief tree constructed by the forward search, which in turn affects the quality of the online planning strategy. Summary of the invention
[0008] In view of the defects and shortcomings of the prior art, the purpose of the present invention is to provide an online planning method in an uncertain environment based on an efficient search strategy, which is suitable for online planning when a robot performs a task.
[0009] It introduces an efficient search strategy on the basic framework of DESPOT and proposes the DESPOT-DULB online planning algorithm. Consider combining the initial upper and lower limits of the belief node and then discounting them to represent the overall information of the current belief node. The core of the efficient search strategy is to consider the factors affecting the information redundancy and accuracy of the belief node in the forward search process. The information of the current belief is represented by combining the upper and lower limits of the belief node and then discounting them, and then constructing a heuristic for forward search. The optimal behavior and observation branches obtained by the efficient search strategy avoid the greed and suboptimality of a single upper limit search, can expand a better belief tree, and reduce the expansion of behavior and observation branches with poor quality. When constructing a belief tree, DESPOT uses a single upper limit as a heuristic for forward search, but for the current belief node, a single upper limit value cannot accurately represent the information of the current belief. Therefore, for the current belief node, a forward search is performed with discounted upper and lower limits to expand better belief nodes, thereby obtaining a better belief tree.
[0010] Considering that the main reason why the robot cannot operate reliably in an uncertain environment is the uncertainty of the POMDP model; in the POMDP model, the robot can observe part of its own state information and can interact with the environment through continuous "trial and error" to obtain a strategy with the maximum reward value; in the online planning method under uncertain environment, the state of the robot is regarded as a belief, recorded as belief, and the upper and lower boundaries of the current belief are initialized by the POMDP algorithm, and then the entire information of the current belief is represented by the discounted upper and lower limits, and then a forward search is performed to construct a belief tree, so as to obtain the optimal strategy under the current belief; each node of the belief tree represents a belief, and the parent node and the child node are connected by a behavior-observation branch; the DESPOT-DULB algorithm provided by the present invention has better performance than DESPOT and POMCP, and has advantages in convergence speed and strategy quality.
[0011] The basic strategy can be summarized as follows:
[0012] Step S1: The agent randomly samples K states in the current belief space b to construct a state set Φ b ; Step S2: Build belief tree D with belief b as root node and initialize the current experience value of belief b The upper bound U(b), lower bound L(b) and RWDU optimal value V * (b) is the upper bound μ(b) and the lower bound l(b); Step S3: define the uncertainty of the agent's current belief b as ∈(b)=μ(b)-l(b), and further determine whether the current uncertainty satisfies ∈(b)<∈0 or whether the running time is greater than T max , if the condition is met, proceed to step S5, otherwise, proceed to step S4; Step S4: Perform a forward search on the root node b to expand the belief tree; Step S5: When the expanded child node b meets the requirements, the belief tree will stop expanding and perform a backup BACKUP(D, b) on the node from bottom to top. If a blocked node is encountered, a cut operation PRUNE(D, b) will be performed; Step S6: For the root node b, the DESPOT-DULB algorithm selects the optimal behavior a corresponding to the largest l(b) returned by the belief tree * , and compare it with the value L(b) of the default policy π0 to select the optimal behavior a * ,Right now And compare it with the value L(b) of the default strategy π0 to select the optimal behavior; Step S7: The agent repeats the above process until it reaches the target point.
[0013] The present invention specifically adopts the following technical solutions:
[0014] An online planning method based on an efficient search strategy in an uncertain environment is characterized in that: the state of a robot is regarded as a belief, and after initializing the upper and lower boundaries of the current belief with the POMDP algorithm, all the information of the current belief is represented by the discounted upper and lower limits, and then a forward search is performed to construct a belief tree, so as to obtain the optimal strategy under the current belief; each node of the belief tree represents a belief, and the parent node and the child node are connected through a behavior-observation branch.
[0015] Furthermore, the POMDP algorithm adopts an online POMDP planning algorithm DESPOT-DULB, comprising the following steps:
[0016] Step S1: The agent randomly samples K states in the current belief space to construct a state set Φ b ;
[0017] Step S2: Build belief tree D with belief b as root node b0 and initialize the current experience value of belief b The upper bound U(b), lower bound L(b) and RWDU optimal value V * The upper bound μ(b) and the lower bound of (b)
[0018] Step S3: Define the uncertainty of the agent’s current belief b as And further determine whether the current uncertainty satisfies ∈(b)<∈0 or whether the running time is greater than T max , if the condition is met, execute step S5, otherwise, execute step S4;
[0019] Step S4: Perform a forward search on the belief b as the root node b0 to expand the belief tree;
[0020] Step S5: When the belief b as a child node meets the requirements, the belief tree stops expanding and performs a backup operation BACKUP(D, b) on the nodes from bottom to top. If a blocked node is encountered, a cut operation PRUNE(D, b) is performed.
[0021] Step S6: For belief b as root node b0, select the largest The corresponding optimal behavior a * ,Right now And compare it with the value L(b) of the default strategy π0 to select the optimal behavior;
[0022] Step S7: The agent repeats the above process until it reaches the target point.
[0023] Furthermore, step S2 specifically includes the following process:
[0024] Calculation format using experience value Where V π,φ Represents the simulation strategy π, calculates each sampling sequence φ∈Φ b The calculation of U(b) is done by assuming that the state is fully observable, converting the online POMDP problem into an online MDP problem, and then calculating the optimal value V in the MDP environment. MDP :
[0025]
[0026] Experience The lower bound is calculated using a default strategy π0, which can be a fixed behavior or a random behavior. For each sequence Φ of each node b b Simulate the default strategy for a limited number of explorations, calculate the discounted reward for each sequence, and then find the average;
[0027] The corresponding upper and lower limits of RWDU μ(b) Through U(b) and L(b) according to the regularized weighted discounted utility function (RWDU)
[0028]
[0029] Find:
[0030]
[0031]
[0032] Where γ is a discount factor, |Φ b | is the number of scenarios that pass through node b, Δ(b) represents the depth of node b in strategy π, π b is the subtree at node b, |π b | represents π b The size of |π b |=0, λ is the regularization factor. refers to the normalized weighted discounted utility value of executing the default policy π0 at b (Formula 2), υ π (b) With experience related. Represents the value (i.e., lower limit) of the normalized weighted discounted utility when the default policy is executed at b.
[0033] Furthermore, step S4 specifically includes the following process:
[0034] Define b′=τ(b, a, z) as the child node of node b taking a certain action a and obtaining the observation z; when performing the belief tree operation of expanding deeper nodes on node b, first initialize the values U(b), L(b), μ(b) and Then each forward exploration is to reduce the current upper and lower limit difference ∈(b) at the root node b0 to the target difference ξ∈(b) as quickly as possible, where ξ∈(0, 1) is a constant; during the exploration process, the optimal behavior of node b is based on the discounted upper and lower limit information of node b.
[0035]
[0036] Where ω is the scaling factor, and ρ(b, a) represents the average discounted return with a regularization factor for executing behavior a at node b. It is specifically defined as:
[0037]
[0038] K represents the number of sampled scenes, s φ represents the initial state of the scene φ, Δ(b) represents the depth of node b, R(s φ , a) means in the initial state s φ is the reward for performing action a, γ is the discount factor, and λ is the regularization factor.
[0039] When executing a * Then, by choosing the observation z that maximizes the excess uncertainty * To obtain the child node b′=τ(b, a * , z), to minimize uncertainty:
[0040]
[0041] Among them, β is a depth-based function used to adjust the uncertainty of the current belief and further ensure the search depth of the belief tree; the definition of β is:
[0042] β=κ Δ(b) Formula 8;
[0043] Among them, κ is a constant, κ>1, and Δ(b) represents the depth of belief node b.
[0044] The above belief tree expansion process is repeated until the following situations occur: (1) The belief tree is expanded to the maximum depth D, that is, Δ(b)>D; (2) The uncertainty of node b has dropped to the expected value, that is, E(b)<0, and it is meaningless to continue exploring b; (3) The parent node b of node b′ no longer has enough sampling sequences:
[0045]
[0046] Among them, l(b′, b) represents the number of nodes on the path from b to b′; if the sampling sequence of the parent node b is insufficient, continuing to expand b will increase the number of b′ child strategy trees, which may cause overfitting and reduce the effect of b′ regularization; if some belief nodes satisfy the above formula during the expansion of the belief tree, it is necessary to perform pruning PRUNE(D, b) operation.
[0047] Furthermore, the specific implementation form of the clipping operation PRUNE (D, b) is: if the sampling sequence of the parent node b cannot meet the requirement of stopping the forward search, the boundary value calculation of the parent node b assigns the calculated initial lower bound to the upper bound, which means that the uncertainty of the current node b has met the requirement, that is:
[0048] U(b)←L(b)
[0049]
[0050] Then execute BACKUP(D, b).
[0051] Furthermore, the backup operation BACKUP(D, b) is specifically implemented as follows: the DESPOT-DULB algorithm follows the Bellman rule to update the value of the nodes in the belief tree from bottom to top along the deepest node on the belief tree:
[0052]
[0053]
[0054]
[0055] Where b′ is a child node of b, b′=τ(b,a,z), |Φ b′ | is the number of scenes passing through node b′, ω1 is the proportion factor, and β1 is similar to the definition of β, β1=κ1 Δ(b) , κ1 is a constant greater than 1, and Δ(b) is the depth of node b. For the meaning of ω and ω1 and β and β1, ω and β are parameters in the search phase, while ω1 and β1 are parameters in the backup phase. Generally speaking, the parameters set in the search phase are larger than those set in the backup phase.
[0056] And, an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the program, the steps of the online planning method based on an efficient search strategy in an uncertain environment as described above are implemented.
[0057] And, a non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the online planning method based on an efficient search strategy in an uncertain environment as described above are implemented.
[0058] Compared with the existing online POMDP planning algorithms DESPOT and POMCP, the algorithm proposed by the present invention and its preferred solution has the following advantages:
[0059] (1) The algorithm proposed in this invention is close to optimal;
[0060] (2) The core of the efficient search strategy is to consider the influencing factors of information redundancy and accuracy of belief nodes in the forward search process. The present invention represents the information of the current belief by combining the upper and lower limits of the belief nodes and then discounting them, and uses this as the basis for forward search. The optimal behavior and observation branches obtained by the efficient search strategy avoid the greed and suboptimality of a single upper limit search, can expand high-quality belief trees, and reduce the expansion of behavior and observation branches with poor quality;
[0061] (3) When constructing a belief tree, DESPOT performs forward search based on a single upper limit as a heuristic, but for the current belief node, a single upper limit value cannot accurately represent the current belief information. The present invention performs forward search on the current belief node with discounted upper and lower limits to expand better belief nodes, thereby obtaining a better belief tree;
[0062] (4) An efficient search strategy is proposed to improve the algorithm performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0064] Figure 1 A schematic diagram of the process of constructing a belief tree in an embodiment of the present invention.
[0065] Figure 2 Schematic diagram of the expansion method of the belief tree in an embodiment of the present invention (solid circles represent belief nodes, squares represent belief-behavior nodes, solid circles without grayscale represent different states, [A, B] or [C, D] A (C) represents the initial upper limit of the current belief, B (D) represents the initial lower limit of the current belief, and the discounted C+λD represents the future information of the parent node of the current belief node when executing this behavior).
[0066] Figure 3Schematic diagrams of embodiments of the present invention in three common POMDP simulation environments (respectively: (a) Tag. The robot chases the target it wants to escape from. (b) Laser Tag. The robot chases the target in a grid of randomly scattered obstacles. The robot is equipped with a radar to measure the distance between the target and the obstacle. (c) Pocman. The original Pacman game).
[0067] Figure 4 Schematic diagram of belief node depth and current uncertainty in different environments in an embodiment of the present invention ((a) Tag, (b) Laser Tag, (c) Pocman).
[0068] Figure 5 Schematic diagram of normalized planning time of different task algorithms in an embodiment of the present invention. DETAILED DESCRIPTION
[0069] In order to make the features and advantages of this patent more obvious and easy to understand, the following embodiments are specifically described in detail as follows:
[0070] like Figure 1-Figure 5 As shown, this embodiment provides an online planning method based on an efficient search strategy in an uncertain environment, which is used for online planning when a robot performs a task. Its characteristics are as follows: In an uncertain environment, the main reason why the robot cannot operate reliably is the uncertainty of the POMDP model; in the POMDP model, the robot can observe part of its own state information and can interact with the environment through continuous "trial and error" to obtain a strategy with the maximum reward value;
[0071] In the online planning method under an uncertain environment of this embodiment, the state of the robot is regarded as a belief, recorded as belief, and the upper and lower boundaries of the current belief are initialized by the POMDP algorithm. Then, all the information of the current belief is represented by the discounted upper and lower limits, and then a forward search is performed to construct a belief tree, so as to obtain the optimal strategy under the current belief; each node of the belief tree represents a belief, and the parent node and the child node are connected through the behavior-observation branch.
[0072] like Figure 1 As shown, the POMDP algorithm specifically adopted in this embodiment is the newly proposed online POMDP planning algorithm DESPOT-DULB, which includes the following steps:
[0073] Step S1: The agent randomly samples K states in the current belief space b to construct a state set Φ b ;
[0074] Step S2: Build a belief tree D with belief b as the root node and initialize the current experience value of belief b The upper bound U(b), lower bound L(b) and RWDU optimal value V * The upper bound μ(b) and the lower bound of (b)
[0075] Step S3: Define the uncertainty of the agent's current belief b as And further determine whether the current uncertainty satisfies ∈(b)<∈0 or whether the running time is greater than T max If the condition is met, proceed to step S5, otherwise, proceed to step S4;
[0076] Step S4, forward search the root node b to expand the belief tree;
[0077] Step S5, when the expanded child node b meets the requirements, the belief tree will stop expanding and perform a backup operation BACKUP(D, b) on the nodes from bottom to top. If a blocked node is encountered, a cut operation PRUNE(D, b) will be performed;
[0078] Step S6: For the root node b, the DESPOT-DULB algorithm selects the largest The corresponding optimal behavior a * ,Right now And compare it with the value L(b) of the default strategy π0 to select the optimal behavior;
[0079] Step S7: The agent repeats the above process until it reaches the target point.
[0080] The specific implementation form of step S2 is: using the calculation form of empirical value Where V π,φ Represents the simulation strategy π to calculate each sampling sequence φ∈Φ b The calculation of U(b) is done by assuming that the state is fully observable, which converts the online POMDP problem into an online MDP problem, and then calculates the optimal value V in the MDP environment. MDP :
[0081]
[0082] The experience value The lower bound is calculated using a default strategy π0, which can be a fixed behavior or a random behavior. For each sequence Φ of each node b in DESPOT-DULB b Simulate the default strategy for a limited number of explorations, calculate the discounted reward for each sequence, and then find the average.
[0083] The corresponding upper and lower limits of RWDU μ(b) It can be expressed by U(b) and L(b) according to the regularized weighted discounted utility function (RWDU)
[0084]
[0085] Find:
[0086]
[0087]
[0088] Where γ is a discount factor, |Φ b | is the number of scenarios that pass through node b, Δ(b) represents the depth of node b in strategy π, π b is the subtree at node b, |π b | represents π b The size of |π b |=0, λ is the regularization factor.
[0089] like Figure 2 As shown, the specific implementation form of step S4 is: define b′=τ(b, a, z) as the child node of b taking a certain action a and obtaining the observation z; when performing the belief tree operation of expanding deeper nodes on node b, firstly, it is necessary to initialize the values U(b), L(b), μ(b) and As shown in step S2; then each forward exploration is to reduce the current upper and lower limit difference ∈(b) at the root node b to the target difference ξ∈(b) more quickly, where ξ∈(0,1) is a constant; during the exploration process, the optimal behavior selection of node b is based on the discounted upper and lower limit information of node b
[0090]
[0091] Where ω is the scaling factor, and ρ(b, a) represents the average discounted return with a regularization factor for executing behavior a at node b. It is specifically defined as:
[0092]
[0093] K represents the number of sampled scenes, s φ represents the initial state of the scene φ, Δ(b) represents the depth of node b, R(s φ , a) means in the initial state s φ is the reward for performing action a, γ is the discount factor, and λ is the regularization factor.
[0094] When executing a * Then, by choosing the observation z that maximizes the excess uncertainty *To obtain the child node b′=τ(b, a * , z), to minimize uncertainty:
[0095]
[0096] Among them, β is a function based on depth, which is used to adjust the uncertainty of the current belief and further ensure the search depth of the belief tree. Definition of β:
[0097] β=κ Δ(b) Formula 8;
[0098] Among them, κ is a constant, κ>1, and Δ(b) represents the depth of belief node b.
[0099] The expansion process of the belief tree will be repeated until the following situations occur: (1) the belief tree is expanded to the maximum depth D, that is, Δ(b)>D; (2) the uncertainty of node b has dropped to the expected value, that is, E(b)<0, and it is meaningless to continue exploring b; (3) the parent node b of node b′ no longer has enough sampling sequences:
[0100]
[0101] l(b′, b) represents the number of nodes on the path from b to b′; if the sampling sequence of the parent node b is insufficient, then continuing to expand b will increase the number of b′ child strategy trees, which may cause overfitting and reduce the regularization effect of b′. If some belief nodes satisfy the above formula during the belief tree expansion process, the pruning PRUNE(D, b) operation needs to be performed.
[0102] The specific implementation form of the clipping operation PRUNE (D, b) in step S5 is: if the sampling sequence of the parent node b cannot meet the requirement of stopping the forward search, the boundary value calculation of the parent node b assigns the calculated initial lower bound to the upper bound, which means that the uncertainty of the current node b has met the requirement, that is:
[0103] U(b)←L(b)
[0104]
[0105] Then execute BACKUP(D, b) in the same way.
[0106] The specific implementation of the backup operation BACKUP(D, b) in step S5 is as follows: when the belief tree terminates the search and BACKUP(D, b) needs to be executed, the DESPOT-DULB algorithm follows the Bellman rule to update the value of the nodes in the belief tree from bottom to top along the deepest node on the belief tree:
[0107]
[0108]
[0109]
[0110] Where b′ is a child node of b, b′=τ(b,a,z), |Φ b′ | is the number of scenes passing through node b′, ω1 is the proportion factor, and β1 is similar to the definition of β, β1=κ1 Δ(b) , κ1 is a constant greater than 1, and Δ(b) is the depth of node b.
[0111] The following is a detailed description of the implementation of the present invention using a specific simulation experiment. The present invention provides an online planning method based on an efficient search strategy in an uncertain environment. For the POMDP planning problem, there are some standard POMDP simulation evaluation environments, so the performance of the DESPOT-DULB algorithm is tested through a common simulation evaluation environment and compared with the latest POMDP algorithm. The specific experimental settings are as follows:
[0112] Simulation experiment:
[0113] The simulation experiment is carried out in Ubuntu 18.04 system.
[0114] The performance of the DESPOT-DULB algorithm is evaluated in three simulation tasks, as shown in Table 1, which is the algorithm performance table in a common POMDP simulation environment (showing the average discounted reward of the algorithm in three different tasks):
[0115]
[0116]
[0117] These three tasks are common evaluation benchmarks for evaluating POMDP algorithms. The sampling sequence K=500 is set in the environment Tag, and Laser Tag, and K=100 is set in the environment Pocman. For each task, this embodiment sets the corresponding parameters as follows: for Tag, the parameters are set to ω=0.20, ω1=0.02, β1=1.0 and κ=1.012; for LaserTag tasks of different sizes, the parameter settings are ω=0.20, ω1=0.02, β1=1.0κ=1.05, ω=0.25, ω1=0.025, β1=1.0κ=1.05, and ω=0.35, ω1=0.03, β1=1.0, κ=1.05; for the Pocman task, the parameters are set to ω=0.03, ω1=0.002, β1=1.0 and κ=1.012. All algorithms are simulated on a unified platform and the maximum running time of the online POMDP algorithm is set to 1 second. DESPOT-DULB mainly consists of two parts: discounted upper and lower bound heuristic search and adjustment of the uncertainty of the current node. This embodiment shows the performance of the discounted and undiscounted algorithms through Table 2, and illustrates the impact of discounting on the algorithm performance. This table considers the impact of discounting on the algorithm performance (two parts of DESPOT-DULB: representing the future information of the belief node according to the upper and lower bound combination and the discounted node upper and lower bound combination):
[0118]
[0119] In order to further illustrate the performance of the DESPOT-DULB algorithm, this embodiment Figure 4 : Schematic diagram of belief node depth and current uncertainty in different environments, Figure 5 :Schematic diagram of the normalized planning time of different task algorithms. These two angles illustrate the superiority of DESPOT-DULB.
[0120] (1) Simulation environment 1: Tag
[0121] Tag is a standard POMDP benchmark proposed by Pineau et al. in 2003. The robot and the target machine move in a space with 29 positions (e.g. Figure 3 (a)). The robot's goal is to find and mark the target machine, so that the target machine will consciously escape. At the beginning, the robot and the target machine will obtain a random position. The robot can know its own position, but cannot obtain the position of the target machine. Only when the robot and the target machine are in the same square can the robot observe the position of the target machine. The robot can perform 5 actions, staying in place and moving in four adjacent directions, and each step costs -1. At the same time, the robot can mark the target, and the reward for successful marking is +10, and the penalty for failed marking is -10.
[0122] In the tag environment, the robot only observes its own position information and cannot determine the location of the target. The belief tree is constructed by forward search through discounted upper and lower limits of belief nodes to reduce uncertainty. Figure 4 (a) shows that as the depth of belief nodes increases, uncertainty gradually decreases. The lower the uncertainty, the more conducive it is for the robot to quickly grasp the target.
[0123] (2) Simulation scenario 2: LaserTag
[0124] Laser Tag is an extended version of Tag with a large observation space. In Laser Tag, this embodiment sets three scenes of different sizes: (1) the robot moves in a 6×8 rectangular grid with 6 obstacles randomly placed; (2) the robot moves in a 7×11 rectangular grid with 8 obstacles randomly placed ( Figure 3 (b)); (3) The robot moves in a 9×12 rectangular grid, and 12 obstacles are randomly placed. The settings of the robot and the target machine are the same as in Tag. The robot has an initial position, but the robot cannot know its position accurately. To locate the position of the robot, the robot is equipped with a laser rangefinder to measure the distance in eight directions. The size of each grid in the figure is 1. The laser reading in each direction is generated by a normal distribution, which is centered on the true distance from the robot to the obstacle in that direction and has a standard deviation of 2.5. The reading is rounded to the nearest integer. So one observation contains eight integers, and the total number of observations is approximately 3.5×10 5 , 1.5×10 6 , and 4.1×10 6 .
[0125] In the large observation space Laser Tag environment, the robot only knows the location information of the breeding. In order to reduce planning time and uncertainty, the robot is equipped with a laser rangefinder to measure the distance in eight directions. This embodiment considers further reducing uncertainty by discounting the upper and lower limit information. Figure 4 (b) shows that uncertainty decreases as the depth of belief nodes increases, so as to quickly determine the state of the robot and then perform the best behavior.
[0126] (3) Simulation environment 3: Pocman
[0127] Pocman is a video game Pacman (as Figure 3(c)) Partial deformation. In Pocman, the agent and four ghosts move in a 17×19 maze filled with food particles. Each step of the agent's movement costs -1, and each food particle provides a reward of +10. If the agent is caught by the ghost, the game ends and a penalty of -100 is incurred. In addition, there are 4 energy fruits in the maze, and the agent can eat the ghosts and receive a reward of +25 after 15 steps after eating the energy fruit. The ghost chases the agent if the Manhattan distance between the two is within 5, but the ghost will flee if it can only be in the state of eating the energy fruit. The agent does not know the exact location of the ghost, but can receive information about whether it sees the ghost in all directions, whether it hears the ghost within a Manhattan distance of 2, whether it can sense the wall in four directions, and whether it can smell food particles in adjacent and diagonal cells. Pocman has a large state space of about 10 56 status.
[0128] In a large state space Pocman environment, since the agent can only know whether there is food in adjacent or diagonally adjacent positions, it cannot know whether there is food further away. This embodiment reduces the uncertainty of the environment by obtaining more complete future information as a heuristic for forward search. Figure 3 (c) shows that the uncertainty of the environment decreases as the depth of the node increases. By constructing a belief tree using the above method, the optimal behavior can be obtained more effectively.
[0129] (4) Comparison of DESPOT-DULB running time and convergence performance
[0130] Assume T max is bounded, the DESPOT-DULB algorithm constructs a partial belief tree DESPOT-DULB D′, the difference between the upper and lower limits of the root node b0 is ∈(b0). Then the optimal regularization strategy obtained from D′ is satisfy:
[0131]
[0132] Among them, v * (b0) is the value of the calculated regularized optimal policy from the full DESPOT-DULBD belief tree. ∈(b0) will change with T max At the same time, building a belief tree based on an efficient search strategy can further reduce ∈(b0). As time goes by, it will gradually approach the optimal regularization strategy.
[0133] The belief tree constructed according to the DESPOT-DULB algorithm more accurately represents the information of the current node to determine the current state. The uncertainty ∈(b0) decreases faster within a limited time. It can converge to the optimal strategy faster, and DESPOT-DULB has a shorter planning time overall. Since DESPOT-DULB is an online POMDP planning algorithm, this embodiment sets each time step to 1 second, so it is unrealistic to reduce the uncertainty of the current belief to 0 within a limited time, and the size of the uncertainty reflects the degree of convergence. Figure 4 Uncertainty metrics for different deep beliefs across multiple tasks are presented. Figure 5 The comparison of the running time of multiple tasks is shown. The vertical axis represents the proportion of the running time of different algorithms for the same task after normalization. Overall, the DESPOT-DULB algorithm has an advantage in planning time.
[0134] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
[0135] The above system and method provided in this embodiment can be stored in a computer-readable storage medium in a coded form and implemented in the form of a computer program, and the basic parameter information required for calculation is input through computer hardware, and the calculation result is output.
[0136] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
[0141] This patent is not limited to the above-mentioned optimal implementation mode. Anyone can derive other forms of online planning methods based on efficient search strategies in uncertain environments under the inspiration of this patent. All equal changes and modifications made according to the scope of the patent application of the present invention should be covered by this patent.
Claims
1. An online planning method based on an efficient search strategy in an uncertain environment, characterized by: The robot's state is regarded as a belief. After initializing the upper and lower bounds of the current belief with the POMDP algorithm, all the information of the current belief is represented by the discounted upper and lower bounds, and then a forward search is performed to construct a belief tree, so as to obtain the optimal strategy under the current belief. Each node of the belief tree represents a belief, and the parent node and the child node are connected through the behavior-observation branch. The POMDP algorithm adopts the online POMDP planning algorithm DESPOT-DULB, which includes the following steps: Step S1: The agent randomly samples k states in the current belief space to construct a state set Φ b ; Step S2: Build belief tree D with belief node b as root node b0 and initialize the current belief node b’s experience value The upper bound U(b), lower bound L(b) and RWDU optimal value V * The upper bound μ(b) and the lower bound of (b) Step S3: Define the uncertainty of the agent's current belief node b as And further determine whether the current uncertainty satisfies ∈(b)<∈0 or whether the running time is greater than T max , if the condition is met, execute step S5, otherwise, execute step S4; Step S4: forward search the belief node b as the root node b0 to expand the belief tree; Step S5: When the belief node b as a child node of the expansion meets the requirements, the belief tree stops expanding and performs a backup operation BACKUP(D, b) on the nodes from bottom to top. If a blocked node is encountered, a cut operation PRUNE(D, b) is performed; Step S6: For the belief node b which is the root node b0, select the largest The corresponding optimal behavior a * ,Right now And compare it with the value L(b) of the default strategy π0 to select the optimal behavior; Step S7: The agent repeats the above process until it reaches the target point; Step S2 specifically includes the following process: Calculation format using experience value Where V π,φ Represents the simulation strategy π, calculates each sampling sequence φ∈Φ b The calculation of U(b) is done by assuming that the state is fully observable, converting the online POMDP problem into an online MDP problem, and then calculating the optimal value V in the MDP environment. MDP : Experience The calculation of the lower bound is obtained using a default strategy π0, which is a fixed behavior or a random behavior. For each sequence Φ of each belief node b b Simulate the default strategy for a limited number of explorations, calculate the discounted reward for each sequence, and then find the average; The corresponding upper and lower limits of RWDU μ(b) Through U(b) and L(b) according to the normalized weighted discounted utility function RWDU: Find: Where γ is a discount factor, |Φ b | is the number of sampling sequences passing through node b, Δ(b) represents the depth of node b, and π b is the subtree at node b, |π b | represents π b The size of |π b |=0, λ is the regularization factor; refers to the normalized weighted discounted utility value of executing the default policy π0 at b; Step S4 specifically includes the following process: Define b′=τ(b, a, z) as the child node of belief node b taking a certain action a and obtaining observation z; when the belief tree operation of expanding deeper nodes is performed on belief node b, firstly initialize the values of all child nodes b′ of all belief nodes b through step S2: U(b′), L(b′), μ(b′) and Then each forward exploration is to reduce the node uncertainty ∈(b) at the root node b0 to the target uncertainty ξ∈(b) as quickly as possible, where ξ∈(0, 1) is a constant; during the exploration process, the optimal behavior of the belief node b is chosen as a * All based on the discount upper and lower limit information of belief node b Where ω is the scaling factor, and ρ(b, a) represents the average discounted return with a regularization factor for executing behavior a at belief node b; it is specifically defined as: K represents the number of sampling sequences, s φ represents the initial state of the sampling sequence φ, Δ(b) represents the depth of the belief node b, and R(s φ , a) means in the initial state s φ The reward for performing action a, γ is the discount factor, and λ is the regularization factor; When executing a * Then, by choosing the observation z that maximizes the excess uncertainty * To obtain the child node b′=τ(b, a * , z * ) to minimize uncertainty: Among them, β is a depth-based function used to adjust the uncertainty of the current belief and further ensure the search depth of the belief tree; the definition of β is: β=κ Δ(b) Formula 8; Where κ is a constant, κ>1, Δ(b) represents the depth of belief node b; Repeat the above belief tree expansion process until the following situations occur: (1) The belief tree expands to the maximum depth D, that is, Δ(b)>D; (2) The uncertainty of belief node b has dropped to the expected value, that is, E(b)<0, and it is meaningless to continue exploring b; (3) The parent node b of node b′ no longer has enough sampling sequences: Among them, l(b′, b) represents the number of nodes on the path from parent node b to b′; if the sampling sequence of parent node b is insufficient, continuing to expand parent node b will increase the number of b′ child strategy trees, which may cause overfitting and reduce the effect of b′ regularization; if some belief nodes satisfy the above formula during the belief tree expansion process, it is necessary to perform pruning operation PRUNE(D, b).
2. The online planning method based on efficient search strategy in an uncertain environment according to claim 1, characterized in that: The specific implementation form of the pruning operation PRUNE (D, b) is: if the sampling sequence of the parent node b cannot meet the requirement of stopping the forward search, the boundary value calculation of the parent node b assigns the initial lower bound calculated to the upper bound, which means that the uncertainty of the current belief node b has met the requirement, that is: U(b)←L(b) Then execute BACKUP(D, b).
3. The online planning method based on efficient search strategy in an uncertain environment according to claim 1, characterized in that: The specific implementation of the backup operation BACKUP(D, b) is as follows: The DESPOT-DULB algorithm follows the Bellman rule to update the value of the nodes in the belief tree from bottom to top along the deepest node on the belief tree: Where b′ is a child node of b, b′=τ(b,a,z), |Φ b′ | is the number of sampling sequences passing through node b′, ω1 is the proportion factor, β1 is the depth-based function, β1=κ1 Δ(b) , κ1 is a constant greater than 1, and Δ(b) is the depth of belief node b.
4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the online planning method based on an efficient search strategy in an uncertain environment as described in any one of claims 1-3 are implemented.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the online planning method based on an efficient search strategy in an uncertain environment as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Online planning method based on Kernel sampling strategy in uncertain environment
CN112356031A
Partially observable markov decision process-based optimal robot path planning method
WO2019148645A1
