A robot path planning method based on value uncertainty replay
By optimizing robot navigation methods using Transformer encoders and value distribution evaluation networks, the problems of insufficient navigation stability and training efficiency in complex environments in existing technologies are solved, and more efficient path planning and navigation strategy generation are achieved.
Patent Information
- Application Number
- CN202611343222.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-27
AI Technical Summary
Existing SAC-based mobile robot navigation methods struggle to fully utilize the correlation relationships in 2D LiDAR scanning data in complex environments, resulting in insufficient training efficiency and navigation stability. Furthermore, existing methods fail to effectively utilize value distribution standard deviation information for sample priority scheduling.
A Transformer encoder is used to extract spatial correlation features from radar scan data. Combined with a value distribution evaluation network, the uncertainty of empirical samples is calculated through a multi-head self-attention mechanism and the standard deviation of value distribution. Dynamic experience replay scheduling and importance sampling are performed to optimize the training of the policy network and the value distribution evaluation network.
It improves the efficiency of sample utilization and training stability of robots in complex environments, generates more efficient navigation strategies, and can maintain stable navigation in narrow channels and multi-channel scenarios, reducing the risk of collision.
Smart Images

Figure CN123175301A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of robot path planning and autonomous navigation technology, specifically relating to a robot path planning method based on value uncertainty playback. Background Technology
[0002] Existing SAC-based mobile robot navigation methods typically use 2D LiDAR scan data as ordinary vector inputs to the policy and evaluation networks. While this approach preserves the order of the radar scan beams, it has limited ability to model local geometric relationships between adjacent scan directions, spatial relationships between long-range scan directions, and the global obstacle layout. In scenarios such as narrow passages, obstacle boundaries, and multi-channel selection, a single radar distance value often cannot fully characterize the environmental structure, necessitating further modeling of the relationships between different scan directions.
[0003] Furthermore, existing priority experience replay methods often use TD error as the primary basis for prioritizing experience samples. While TD error reflects the fitting deviation of the current value function, it is not entirely equivalent to the importance of the sample to navigation safety and strategy improvement. For state-action samples near obstacles, passage entrances, locally optimal regions, or with large fluctuations in value estimation, relying solely on TD error may lead to insufficient reuse of such critical samples, thereby affecting training efficiency and navigation stability in complex environments.
[0004] Distributed or value-distributed evaluation networks can output the mean and standard deviation of state-action values, where the standard deviation reflects the dispersion of the current evaluation network's state-action value estimates. However, existing methods typically only use this standard deviation for value distribution modeling, failing to fully utilize it for prioritizing empirical samples or integrating it with evaluation network objective value constraints and loss weight adjustments. Therefore, how to incorporate value distribution standard deviation information into the empirical replay sampling and evaluation network update process to improve sample utilization efficiency, training stability, and path planning success rate in complex obstacle environments is a technical problem that needs to be solved. Summary of the Invention
[0005] To address the issue of how to incorporate value distribution standard deviation information into the experience replay sampling and evaluation network update process to improve sample utilization efficiency, training stability, and path planning success rate in complex obstacle environments, this invention provides a robot path planning method based on value uncertainty replay.
[0006] To achieve the above objectives, the present invention employs the following technical solutions:
[0007] A robot path planning method based on value uncertainty replay includes the following steps:
[0008] Step 1: Acquire two-dimensional LiDAR scanning data of the robot's surrounding environment. Perform invalid value replacement, distance clipping, downsampling, and normalization on the two-dimensional LiDAR scanning data to obtain a radar distance sequence arranged by scanning angle. At the same time, acquire the robot's navigation status, which includes at least the target distance, target angle, current linear velocity, current angular velocity, historical actions, distance to the nearest obstacle, and minimum collision time.
[0009] Step 2: Input the radar range sequence into the lidar sequence encoding network to embed tokens and obtain token features. Add position encoding to represent scanning angle information. Extract spatial correlation features between different scanning directions through a multi-head self-attention mechanism. Perform pooling processing on the encoded token features to obtain radar environment features. The lidar sequence encoding network is a Transformer encoder.
[0010] The specific operation of step 2 is as follows:
[0011] The Transformer encoder indexes the radar range sequence as... radar range value Mapped to the first token through token embedding operation Token characteristics The formula is as follows: ;
[0012] in, and These are the learnable parameters of the token embedding layer in the Transformer encoder. For token feature dimensions;
[0013] Transformer encoder to token features A sinusoidal position code is added to characterize the scanning angle position. The formula for the sinusoidal position code is as follows: ; ;
[0014] in, For radar sequence indexing, For dimension indexing; Indicates the first Each radar sequence location corresponds to a location code value in an even-numbered dimension; Indicates the first Each radar sequence location corresponds to a location code value in an odd-numbered dimension;
[0015] The token feature formula after adding position encoding is as follows: ;
[0016] in, For the first time after adding position encoding Each token feature vector serves as input to the Transformer encoder.
[0017] Subsequently, the Transformer encoder extracts spatial correlation features between different scanning directions through a multi-head self-attention mechanism, the formula of which is as follows: ;
[0018] in, , , These are the query matrix, key matrix, and value matrix, respectively. The dimension of the key vector. Indicates transpose;
[0019] The Transformer encoder then performs average pooling and normalization on the encoded token features to obtain radar environment features. The formula is as follows: ;
[0020] in, The first output of the Transformer encoder Each token characteristic The length of the radar sequence. This is a layer normalization operation.
[0021] Step 3: Fuse the radar environmental features with the robot's navigation state to obtain a fused navigation state; construct a reinforcement learning network model including a policy network, a first value distribution evaluation network, and a second value distribution evaluation network, and input the fused navigation state into the reinforcement learning network model; use the policy network to output continuous motion actions based on the fused navigation state; use the first and second value distribution evaluation networks to estimate the value distribution of the fused navigation state and corresponding actions, respectively, to obtain the mean and standard deviation of the state-action value; the standard deviation of the state-action value is used to characterize the dispersion of the state-action value estimation and serves as the basis for calculating the uncertainty of empirical sample value. The specific operations of step 3 are as follows:
[0022] Radar environment characteristics Combined with the robot's navigation state to form a fused navigation state The formula is as follows: ;
[0023] in, This indicates the robot is in navigation mode.
[0024] Construct a reinforcement learning network model comprising a policy network, a first value distribution evaluation network, and a second value distribution evaluation network. Input the fused navigation state into the reinforcement learning network model, and utilize the policy network based on the fused navigation state. Output continuous motion distribution parameters, and generate continuous motion based on the continuous motion distribution parameters through reparameterization. The formula is as follows: ;
[0025] in, This represents continuous motion, including linear velocity control and angular velocity control. This represents the mean of the action distribution. Indicates the standard deviation of the action distribution. This represents random noise that follows a standard normal distribution, used to implement random exploration during the action sampling process; This represents element-wise vector multiplication. This represents a multidimensional standard normal distribution with a mean of 0 and a covariance matrix of identity.
[0026] The first and second value distribution evaluation networks are used to estimate the value distribution of the fused navigation state and its corresponding actions, respectively, and the corresponding mean state-action value and standard deviation state-action value are output, as shown in the following formula: ;
[0027] in, For the first A value distribution evaluation network; Indicates the first The value distribution evaluates the mean state-action value of the network output; Indicates the first The original value of the standard deviation of the state-action value output by the value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The original value of the standard deviation of the state-action value output by the value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The value distribution evaluates the mean state-action value of the network output;
[0028] To ensure the non-negativity of the state-action value standard deviation, the original standard deviation is mapped to a positive state-action value standard deviation using the Softplus function, and this state-action value standard deviation is used as an indicator of value distribution dispersion, as shown in the following formula: ;
[0029] in, This represents the standard deviation of the state-action value after Softplus mapping, used to describe the dispersion of the value estimation distribution.
[0030] Step 4: The robot performs continuous motion actions and interacts with the environment to obtain experience samples. The experience samples include the current fusion navigation state, actions, rewards, the next fusion navigation state, and a termination flag. The experience samples are then stored in the experience pool.
[0031] Step 5: Set up a target policy network and a target value distribution evaluation network with the same structure as the policy network and the value distribution evaluation network. The policy network and the value distribution evaluation network participate in parameter updates as online networks. The target policy network and the target value distribution evaluation network are used to calculate the training objective and are maintained through soft updates of the corresponding online network parameters. Calculate the soft Bellman target value based on the target policy network and the target value distribution evaluation network. Sampling of the value distribution is performed based on the mean and standard deviation of the state-action value output by the target value distribution evaluation network to obtain a randomized state-action value estimate. Calculate the randomized target value based on the randomized state-action value estimate. Apply boundary constraints to the offset of the randomized target value relative to the mean of the state-action value based on the standard deviation of the state-action value output by the value distribution evaluation network and its moving average to obtain the boundary-constrained target value. Determine the training objectives of the first value distribution evaluation network and the second value distribution evaluation network based on the soft Bellman target value, the boundary-constrained target value, and the mean of the state-action value. Calculate the adaptive weight ratio based on the standard deviation of the state-action value and its moving average for subsequent updates of the value distribution evaluation network parameters.
[0032] The specific operation of step 5 is as follows:
[0033] The soft Bellman objective value is calculated based on the objective policy network and the objective value distribution evaluation network. The formula for calculating the soft Bellman objective value is as follows: ;
[0034] in, Indicates the soft Bellman target value; For instant rewards, As a discount factor, As a termination marker, For temperature coefficient, This represents the logarithmic probability of the target policy network generating the next action; Indicates the first The target value distribution evaluates the next state—mean action value—of the network output.
[0035] The target value distribution evaluation network samples the value distribution based on the mean state-action value and the standard deviation of the state-action value after Softplus mapping, and obtains a random state-action value estimate, as shown in the following formula: ;
[0036] in, Let be a normally distributed random variable. Indicates the first The state-action value estimate obtained by sampling from a value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The value distribution evaluates the mean state-action value of the network output; This represents the standard deviation of the state-action value after Softplus mapping, used to describe the dispersion of the value estimation distribution;
[0037] The next-state-action value term in the soft Bellman objective is replaced with the stochastic state-action value estimate, and the same Bellman objective calculation structure as the soft Bellman objective is used to obtain the stochastic objective value. Based on the moving average of the standard deviation of the state-action values output by the value distribution evaluation network, a boundary constraint is applied to the offset of the stochastic objective value relative to the mean of the state-action values, resulting in the boundary-constrained objective value. The formula for calculating the target value after boundary constraints is as follows: ;
[0038] in, To randomize the target value, The moving average is used to limit the range of deviation of the randomized target value relative to the mean of the current state-action value; This represents the mean state-action value of the network output, indicating the current value distribution. This indicates a boundary truncation operation, used to limit the offset of the randomized target value relative to the current state-action value mean within a given range; The moving average of the standard deviation of state-action value is used to characterize the average level of uncertainty in the current value estimate;
[0039] The formula for calculating the moving average of the standard deviation of the state-action value is as follows: ;
[0040] in, The moving average coefficient; Indicates the first The moving average of the standard deviation of the state-action value output by the value distribution evaluation network is used to reflect the average level of uncertainty in value estimation. Indicates the first The standard deviation of the state-action value output by the value distribution evaluation network is used to measure the dispersion of the value distribution of the current state-action pair.
[0041] The adaptive weighting ratio is calculated based on the current state—the standard deviation of action value—and its moving average, using the following formula: ;
[0042] in, To adapt the weight ratio, This represents the minimum limit for the adaptive weight ratio, used to avoid insufficient gradient contribution due to excessively small weights; This represents the maximum limit value for the adaptive weight ratio, used to avoid excessive weights due to high uncertainty samples, which would affect training stability.
[0043] The adaptive weight ratio is used for subsequent value distribution evaluation network parameter updates. When updating the value distribution evaluation network in step 7, the adaptive weight ratio and the importance sampling weight are applied together to the evaluation network loss function to dynamically adjust the loss contribution of different experience samples, so as to reduce gradient fluctuations caused by high uncertainty samples and improve the training stability of the value distribution evaluation network.
[0044] Step 6: Calculate the value distribution dispersion index of the experience samples based on the standard deviation of state-action value output by the first and second value distribution evaluation networks. Calculate the TD error of the experience samples based on the deviation between the soft Bellman target value and the mean state-action value. Then, normalize the value distribution dispersion index and the TD error respectively, and then weight and fuse the normalized value distribution dispersion index and the normalized TD error to obtain the comprehensive priority of the experience samples. Determine the sampling probability of the experience samples based on the comprehensive priority, and calculate the importance sampling weight based on the sampling probability.
[0045] The specific operation of step 6 is as follows:
[0046] The value distribution dispersion index of the empirical samples is calculated based on the standard deviation of the state-action value output by the first and second value distribution evaluation networks, using the following formula: ;
[0047] in, For the first A measure of the dispersion of the value distribution of an empirical sample; This represents the standard deviation of the state-action value output of the first value distribution evaluation network. This represents the standard deviation of the state-action value output of the second value distribution evaluation network;
[0048] The TD error of the empirical sample is calculated based on the deviation between the soft Bellman target value and the mean state-action value, using the following formula: ;
[0049] in, For the first TD error for an empirical sample This represents the mean state-action value output by the first value distribution evaluation network. This represents the mean state-action value output by the second value distribution evaluation network. This represents the soft Bellman target value corresponding to the empirical sample; the value distribution dispersion index and TD error are normalized respectively, as shown in the following formula: ; ;
[0050] in, An index representing the dispersion of value distribution after normalization; This represents the maximum value of the dispersion index of the value distribution of all empirical samples in the current training batch; This represents the normalized TD error; Indicates the first The absolute value of the TD error for each empirical sample; This represents the maximum absolute value of the TD error for all empirical samples in the current training batch; This represents a very small constant to prevent the denominator from being zero;
[0051] The normalized value distribution dispersion index and the normalized TD error are weighted and fused to obtain the comprehensive priority of the empirical samples, as shown in the following formula: ;
[0052] in, For the first The overall priority of a single empirical sample and These are the weighting coefficients for value distribution dispersion and TD error, respectively; This represents a tiny positive number to prevent empirical samples from having a priority of zero;
[0053] The sampling probability of the empirical sample is determined based on the overall priority. The formula is as follows: ;
[0054] in, For experience pool, Priority index; Indicates the first A comprehensive priority is obtained by weighting and fusing the empirical samples based on the value distribution dispersion index and TD error.
[0055] Importance sampling weights are calculated based on the sampling probabilities and used for weighted adjustments to the loss function of the subsequent value distribution evaluation network. The formula for the importance sampling weights is as follows: ; ;
[0056] in, The importance sampling weight index, For importance sampling weights, The normalized importance sampling weights are used for updating the value distribution evaluation network parameters in step 7. When updating the value distribution evaluation network parameters, the normalized importance sampling weights are introduced into the loss function of the value distribution evaluation network to adjust the loss contribution of different experience samples in a weighted manner, so as to reduce the sampling bias caused by priority experience playback.
[0057] Step 7: According to the sampling probability determined in Step 6, training samples are extracted from the experience pool. Using the training samples, and in combination with the adaptive weight ratio determined in Step 5 and the importance sampling weight obtained in Step 6, the parameters of the policy network, the first value distribution evaluation network, and the second value distribution evaluation network are updated, and the corresponding target network parameters are updated using a soft update method. After the network parameters are updated, the value distribution dispersion index and TD error of the sampled experience samples are recalculated. The comprehensive priority of the experience samples in the experience pool is updated according to the recalculation results, and the sampling probability in the subsequent training process is re-determined according to the updated comprehensive priority. The process of experience sample sampling, network parameter updating, recalculation of value distribution dispersion index and TD error, and comprehensive priority updating is repeated to form a dynamic experience replay scheduling closed loop based on the standard deviation of value distribution.
[0058] Step 8: Perform path planning using the trained policy network: Input the robot's current fused navigation state into the trained policy network to generate corresponding continuous motion control actions. Obtain the linear velocity control and angular velocity control quantities required for the robot's movement based on the action output results. Control the robot to move according to the motion control quantities. Reacquire the robot's environmental perception information and navigation state in each control cycle, and repeat the above action generation and motion control process until the robot meets the target arrival condition, collision termination condition, or reaches the maximum number of control steps. Continuously record the position state corresponding to each control cycle during the robot's movement to form the robot's motion trajectory from the starting position to the target position, and output the motion trajectory as the final path planning result.
[0059] In step 8, the path planning is generated online by the trained policy network. Specifically, in each control cycle, the current fused navigation state is input into the policy network, and normalized linear velocity action and normalized angular velocity action are output. The normalized linear velocity action and normalized angular velocity action are mapped to physical linear velocity and physical angular velocity, respectively. After the robot moves according to the physical linear velocity and physical angular velocity, it obtains the next fused navigation state. The above process is repeated until the target arrival condition, collision condition, or maximum step count condition is met. The robot pose sequence corresponding to each control cycle is used as the planned path.
[0060] Compared with the prior art, the present invention has the following advantages:
[0061] 1) Compared with existing baseline methods, this method has a significantly faster convergence speed and a highly stable training process. Through uncertainty-guided dynamic experience replay scheduling (UG-PER) and importance sampling correction, the cumulative reward value grows steadily, effectively alleviating the distribution bias and later oscillation problems caused by priority sampling.
[0062] 2) The navigation strategy generated by this method has higher execution efficiency and can decisively and smoothly output propulsion actions in dense environment obstacles, significantly reducing the number of global spatial steps and time, and reducing the partition layout of animation.
[0063] 3) In complex environments with long, narrow passages and “traps” interference, this method demonstrates excellent cross-scene generalization and escape capabilities; when faced with previously unseen scenarios with strong geometric constraints, it is not prone to getting stuck in a “timeout” deadlock caused by local optimization, and can maintain a stable arrival without collisions throughout the entire process. Attached Figure Description
[0064] Figure 1 These are the cumulative reward change curves for different methods during the training process;
[0065] Figure 2 These are schematic diagrams of four simulation test scenarios;
[0066] Figure 3 This is the path planning result of the method of the present invention in scenario one, wherein Figure 3 (a) to Figure 3 (c) These are the path planning results for groups 1 to 3 of scenario 1, respectively;
[0067] Figure 4 This is the path planning result of the method of the present invention in scenario two, wherein Figure 4 (a) to Figure 4 (c) These are the path planning results for groups 1 to 3 in scenario 2, respectively;
[0068] Figure 5 This is the path planning result of the method of the present invention in scenario three, wherein Figure 5 (a) to Figure 5 (c) These are the path planning results for groups 1 to 3 in scenario 3, respectively;
[0069] Figure 6 This is the path planning result of the method of the present invention in scenario four, wherein Figure 6 (a) to Figure 6 (c) These are the path planning results for groups 1 to 3 in scenario 4, respectively;
[0070] Figure 7 This is the actual navigation visualization result of the method of this invention in RViz;
[0071] Figure 8 This is the actual navigation result of the method of the present invention on a real robot platform. Detailed Implementation
[0072] To gain a deeper understanding of this invention, we will provide a comprehensive and detailed description. However, this invention has various implementations and is not limited to the specific examples listed herein. These examples are presented to enhance a full understanding of the disclosure of this invention.
[0073] A robot path planning method based on value uncertainty replay includes the following steps:
[0074] Step 1: Acquire two-dimensional LiDAR scanning data of the robot's surrounding environment. Perform invalid value replacement, distance clipping, downsampling, and normalization on the two-dimensional LiDAR scanning data to obtain a radar distance sequence arranged by scanning angle. At the same time, acquire the robot's navigation status, which includes at least the target distance, target angle, current linear velocity, current angular velocity, historical actions, distance to the nearest obstacle, and minimum collision time.
[0075] Step 2: Input the radar range sequence into the lidar sequence encoding network to embed tokens and obtain token features. Add position encoding to represent scanning angle information. Extract spatial correlation features between different scanning directions through a multi-head self-attention mechanism. Perform pooling processing on the encoded token features to obtain radar environment features. The lidar sequence encoding network is a Transformer encoder.
[0076] The specific operation of step 2 is as follows:
[0077] The Transformer encoder indexes the radar range sequence as... radar range value Mapped to the first token through token embedding operation Token characteristics The formula is as follows: ;
[0078] in, and These are the learnable parameters of the token embedding layer in the Transformer encoder. For token feature dimensions;
[0079] Transformer encoder to token features A sinusoidal position code is added to characterize the scanning angle position. The formula for the sinusoidal position code is as follows: ; ;
[0080] in, For radar sequence indexing, For dimension indexing; Indicates the first Each radar sequence location corresponds to a location code value in an even-numbered dimension; Indicates the first Each radar sequence location corresponds to a location code value in an odd-numbered dimension;
[0081] The token feature formula after adding position encoding is as follows: ;
[0082] in, For the first time after adding position encoding Each token feature vector serves as input to the Transformer encoder.
[0083] Subsequently, the Transformer encoder extracts spatial correlation features between different scanning directions through a multi-head self-attention mechanism, the formula of which is as follows: ;
[0084] in, , , These are the query matrix, key matrix, and value matrix, respectively. The dimension of the key vector. Indicates transpose;
[0085] The Transformer encoder then performs average pooling and normalization on the encoded token features to obtain radar environment features. The formula is as follows: ;
[0086] in, The first output of the Transformer encoder Each token characteristic The length of the radar sequence. This is a layer normalization operation.
[0087] Step 3: The radar environmental features are fused with the robot's navigation state to obtain a fused navigation state. This fused navigation state is then input into a reinforcement learning network model that includes a policy network, a first value distribution evaluation network, and a second value distribution evaluation network. The policy network outputs continuous motion actions based on the fused navigation state. The first and second value distribution evaluation networks are used to estimate the value distribution of the fused navigation state and the corresponding actions, respectively, to obtain the mean and standard deviation of the state-action value. The standard deviation of the state-action value is used to characterize the dispersion of the state-action value estimation and serves as the basis for calculating the uncertainty of empirical sample value. Therefore, the standard deviation of the state-action value is used as an index of value distribution dispersion.
[0088] The specific operation of step 3 is as follows:
[0089] Radar environment characteristics Combined with the robot's navigation state to form a fused navigation state The formula is as follows: ;
[0090] in, This indicates the robot is in navigation mode.
[0091] The fused navigation state is input into a reinforcement learning network model that includes a policy network, a first value distribution evaluation network, and a second value distribution evaluation network. The policy network then uses the fused navigation state... Output continuous motion distribution parameters, and generate continuous motion based on the continuous motion distribution parameters through reparameterization. The formula is as follows: ;
[0092] in, This represents continuous motion, including linear velocity control and angular velocity control. This represents the mean of the action distribution. Indicates the standard deviation of the action distribution. This represents random noise that follows a standard normal distribution, used to implement random exploration during the action sampling process; This represents element-wise vector multiplication. This represents a multidimensional standard normal distribution with a mean of 0 and a covariance matrix of identity.
[0093] The first and second value distribution evaluation networks are used to estimate the value distribution of the fused navigation state and its corresponding actions, respectively, and the corresponding mean state-action value and standard deviation state-action value are output, as shown in the following formula: ;
[0094] in, For the first A value distribution evaluation network; Indicates the first The value distribution evaluates the mean state-action value of the network output; Indicates the first The original value of the standard deviation of the state-action value output by the value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The mean state-action value estimated by a value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The value distribution evaluates the mean state-action value of the network output;
[0095] Since the original standard deviation of the neural network output may be negative, to ensure the non-negativity of the state-action value standard deviation, the original standard deviation is mapped to a positive state-action value standard deviation using the Softplus function. This state-action value standard deviation is then used as an indicator of the value distribution dispersion, as shown in the following formula: ;
[0096] in, This represents the standard deviation of the state-action value after Softplus mapping, used to describe the dispersion of the value estimation distribution.
[0097] Step 4: The robot performs continuous motion actions and interacts with the environment to obtain experience samples. The experience samples include the current fusion navigation state, actions, rewards, the next fusion navigation state, and a termination flag. The experience samples are then stored in the experience pool.
[0098] Step 5: Set up a target policy network and a target value distribution evaluation network with the same structure as the policy network and the value distribution evaluation network. The policy network and the value distribution evaluation network participate in parameter updates as online networks, while the target policy network and the target value distribution evaluation network are used to calculate the training objective and are maintained through soft updates of the corresponding online network parameters. Calculate the soft Bellman objective value based on the target policy network and the target value distribution evaluation network, and sample the value distribution based on the mean and standard deviation of the state-action value output by the target value distribution evaluation network to obtain a randomized state-action value estimate. Calculate the randomized objective value based on the randomized state-action value estimate. Apply boundary constraints to the offset of the randomized objective value relative to the mean of the state-action value based on the standard deviation of the state-action value output by the value distribution evaluation network and its moving average to obtain the boundary-constrained objective value. Determine the training objectives of the first and second value distribution evaluation networks based on the soft Bellman objective value, the boundary-constrained objective value, and the mean of the state-action value. Calculate the adaptive weight ratio based on the standard deviation of the state-action value and its moving average for subsequent updates of the value distribution evaluation network parameters.
[0099] The specific operation of step 5 is as follows:
[0100] The soft Bellman objective value is calculated based on the objective policy network and the objective value distribution evaluation network. The formula for calculating the soft Bellman objective value is as follows: ;
[0101] in, Indicates the soft Bellman target value; For instant rewards, As a discount factor, As a termination marker, For temperature coefficient, This represents the logarithmic probability of the target policy network generating the next action; Indicates the first The target value distribution evaluates the next state—mean action value—of the network output.
[0102] The value distribution evaluation network samples the value distribution based on the mean state-action value and the standard deviation of the state-action value after Softplus mapping, and obtains a random state-action value estimate, as shown in the following formula: ;
[0103] in, Let be a normally distributed random variable. Indicates the first The state-action value estimate obtained by sampling from a value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The value distribution evaluates the mean state-action value of the network output; This represents the standard deviation of the state-action value after Softplus mapping, used to describe the dispersion of the value estimation distribution;
[0104] The next-state-action value term in the soft Bellman objective is replaced with the stochastic state-action value estimate, and the same Bellman objective calculation structure as the soft Bellman objective is used to obtain the stochastic objective value. Based on the moving average of the standard deviation of the state-action values output by the value distribution evaluation network, a boundary constraint is applied to the offset of the stochastic objective value relative to the mean of the state-action values, resulting in the boundary-constrained objective value. The formula for calculating the target value after boundary constraints is as follows: ;
[0105] in, To randomize the target value, The moving average is used to limit the range of deviation of the randomized target value relative to the mean of the current state-action value; This represents the mean state-action value of the network output, indicating the current value distribution. This indicates a boundary truncation operation, used to limit the offset of the randomized target value relative to the current state-action value mean within a given range; The moving average of the standard deviation of state-action value is used to characterize the average level of uncertainty in the current value estimate;
[0106] The formula for calculating the moving average of the standard deviation of the state-action value is as follows: ;
[0107] in, The moving average coefficient; Indicates the first The moving average of the standard deviation of the state-action value output by the value distribution evaluation network is used to reflect the average level of uncertainty in value estimation. Indicates the first The standard deviation of the state-action value output by the value distribution evaluation network is used to measure the dispersion of the value distribution of the current state-action pair.
[0108] The adaptive weighting ratio is calculated based on the current state—the standard deviation of action value—and its moving average, using the following formula: ;
[0109] in, To adapt the weight ratio, This represents the minimum limit for the adaptive weight ratio, used to avoid insufficient gradient contribution due to excessively small weights; This represents the maximum limit value for the adaptive weight ratio, used to avoid excessive weights due to high uncertainty samples, which would affect training stability.
[0110] The adaptive weight ratio is used for subsequent value distribution evaluation network parameter updates. When updating the value distribution evaluation network in step 7, the adaptive weight ratio and the importance sampling weight are applied together to the evaluation network loss function to dynamically adjust the loss contribution of different experience samples, so as to reduce gradient fluctuations caused by high uncertainty samples and improve the training stability of the value distribution evaluation network.
[0111] Step 6: Calculate the value distribution dispersion index of the experience samples based on the standard deviation of state-action value output by the first and second value distribution evaluation networks. Calculate the TD error of the experience samples based on the deviation between the soft Bellman target value and the mean state-action value. Then, normalize the value distribution dispersion index and the TD error respectively, and weight and fuse the normalized value distribution dispersion index and the normalized TD error to obtain the comprehensive priority of the experience samples. Determine the sampling probability of the experience samples based on the comprehensive priority, so that the comprehensive priority of the experience samples increases with the increase of the value distribution dispersion index or the TD error, thereby increasing the sampling probability of the corresponding experience samples. Calculate the importance sampling weight based on the sampling probability.
[0112] The specific operation of step 6 is as follows:
[0113] The value distribution dispersion index of the empirical samples is calculated based on the standard deviation of the state-action value output by the first and second value distribution evaluation networks, using the following formula: ;
[0114] in, For the first A measure of the dispersion of the value distribution of an empirical sample; This represents the standard deviation of the state-action value output of the first value distribution evaluation network. This represents the standard deviation of the state-action value output of the second value distribution evaluation network;
[0115] The TD error of the empirical sample is calculated based on the deviation between the soft Bellman target value and the mean state-action value, using the following formula: ;
[0116] in, For the first TD error for an empirical sample This represents the mean state-action value output by the first value distribution evaluation network. This represents the mean state-action value output by the second value distribution evaluation network. This represents the soft Bellman target value corresponding to the empirical sample; the value distribution dispersion index and TD error are normalized respectively, as shown in the following formula: ; ;
[0117] in, An index representing the dispersion of value distribution after normalization; This represents the maximum value of the dispersion index of the value distribution of all empirical samples in the current training batch; This represents the normalized TD error; Indicates the first The absolute value of the TD error for each empirical sample; This represents the maximum absolute value of the TD error for all empirical samples in the current training batch; This represents a very small constant to prevent the denominator from being zero;
[0118] The normalized value distribution dispersion index and the normalized TD error are weighted and fused to obtain the comprehensive priority of the empirical samples, as shown in the following formula: ;
[0119] in, For the first The overall priority of a single empirical sample and These are the weighting coefficients for value distribution dispersion and TD error, respectively; This represents a tiny positive number to prevent empirical samples from having a priority of zero;
[0120] The sampling probability of empirical samples is determined based on the overall priority, giving higher overall priority to empirical samples with larger value distribution dispersion and TD error, thereby increasing their sampling probability; the sampling probability of empirical samples The formula is as follows: ;
[0121] in, For experience pool, Priority index; Indicates the first A comprehensive priority is obtained by weighting and fusing the empirical samples based on the value distribution dispersion index and TD error.
[0122] Importance sampling weights are calculated based on the sampling probabilities and used for weighted adjustments to the loss function of the subsequent value distribution evaluation network. The formula for the importance sampling weights is as follows: ; ;
[0123] in, The importance sampling weight index, For importance sampling weights, The normalized importance sampling weights are used for updating the value distribution evaluation network parameters in step 7. When updating the value distribution evaluation network parameters, the normalized importance sampling weights are introduced into the loss function of the value distribution evaluation network to adjust the loss contribution of different experience samples in a weighted manner, so as to reduce the sampling bias caused by priority experience playback.
[0124] Step 7: According to the sampling probability determined in Step 6, training samples are extracted from the experience pool. Using the training samples, and combined with the adaptive weight ratio determined in Step 5 and the importance sampling weight obtained in Step 6, the parameters of the policy network, the first value distribution evaluation network, and the second value distribution evaluation network are updated, and the corresponding target network parameters are updated using a soft update method. After the network parameters are updated, the value distribution dispersion index and TD error of the sampled experience samples are recalculated. The comprehensive priority of the experience samples in the experience pool is updated according to the recalculation results, and the sampling probability in the subsequent training process is re-determined according to the updated comprehensive priority. The process of experience sample sampling, network parameter updating, recalculation of value distribution dispersion index and TD error, and comprehensive priority updating is repeated to form a dynamic experience replay scheduling closed loop based on the standard deviation of value distribution.
[0125] Step 8: Perform path planning using the trained policy network: Input the robot's current fused navigation state into the trained policy network to generate corresponding continuous motion control actions. Obtain the linear velocity control and angular velocity control quantities required for the robot's movement based on the action output results. Control the robot to move according to the motion control quantities. Reacquire the robot's environmental perception information and navigation state in each control cycle, and repeat the above action generation and motion control process until the robot meets the target arrival condition, collision termination condition, or reaches the maximum number of control steps. Continuously record the position state corresponding to each control cycle during the robot's movement to form the robot's motion trajectory from the starting position to the target position, and output the motion trajectory as the final path planning result.
[0126] In step 8, the path planning is generated online by the trained policy network. Specifically, in each control cycle, the current fused navigation state is input into the policy network, and normalized linear velocity action and normalized angular velocity action are output. The normalized linear velocity action and normalized angular velocity action are mapped to physical linear velocity and physical angular velocity, respectively. After the robot moves according to the physical linear velocity and physical angular velocity, it obtains the next fused navigation state. The above process is repeated until the target arrival condition, collision condition, or maximum step count condition is met. The robot pose sequence corresponding to each control cycle is used as the planned path.
[0127] Example 1
[0128] Simulation experimental environment and evaluation indicators:
[0129] This embodiment verifies the intelligent robot path planning method described in this invention in the Gazebo simulation environment. The simulation platform uses the ScoutMini mobile robot model, which is equipped with a two-dimensional LiDAR sensor to acquire environmental distance information within a 360° range around the robot. The raw LiDAR scan data is preprocessed and downsampled to obtain a 72-dimensional LiDAR distance sequence, which, together with the target distance, target angle, current linear velocity, current angular velocity, previous action, nearest obstacle distance, and minimum collision time, constitutes the robot's observation state.
[0130] In this embodiment, the robot's motion space is a two-dimensional continuous motion, including linear velocity control and angular velocity control. After training, within each control cycle, the robot inputs the current LiDAR observation and navigation status into the policy network. The policy network outputs the linear velocity and angular velocity actions for the current moment. After executing this action, the robot enters the next state and continues to generate actions for the next control cycle until the target arrival, collision, or maximum step count termination conditions are met. The continuous pose sequence formed by the robot from the starting position to the ending position constitutes the planned path.
[0131] This embodiment uses success rate, average number of steps, average arrival time, and cumulative reward as evaluation metrics. Success rate represents the proportion of times the robot successfully reaches the target point without collision within a specified maximum number of steps; average number of steps represents the average number of control steps required for the robot to complete one target arrival task; average arrival time represents the average time required for the robot to reach the target point from the starting point; and cumulative reward is used to evaluate the changes in strategy returns and training stability during the training process.
[0132] Example 2
[0133] Training reward comparison experiment:
[0134] To verify the effectiveness of the method of the present invention in terms of training efficiency and training stability, this embodiment compares the method of the present invention with methods such as SAC, DSAC, TR+DSAC, and P+DSAC. Each method is trained under the same simulation environment, the same robot model, and the same training settings, and the cumulative reward changes during the training process are recorded.
[0135] Figure 1 This shows the cumulative reward change curves for different methods during the training process. Figure 1 It can be seen that the traditional SAC method has a slow reward growth in the early stage of training and some fluctuations in the later stage; the DSAC method improves some training stability by modeling the value distribution, but it is still prone to slow convergence in complex obstacle environments; the TR+DSAC method enhances the radar state representation capability by introducing Transformer encoding, but the utilization efficiency of key samples is limited because the experience replay sampling still does not fully utilize the value distribution dispersion information; the P+DSAC method improves the utilization efficiency of some samples by prioritizing experience replay, but lacks sufficient modeling of the global spatial relationship of the lidar.
[0136] Compared with the above methods, the method of the present invention simultaneously introduces a LiDAR sequence encoding network based on Transformer and a priority experience replay mechanism based on the standard deviation of value distribution. This enables the robot to make full use of the spatial correlation information between different scanning directions during the training process and increases the sampling probability of experience samples with large value distribution dispersion or large TD error, thereby improving the efficiency of experience sample utilization and training stability.
[0137] Example 3
[0138] Main test scenario path planning comparison experiment:
[0139] This embodiment verifies the path planning performance of the method of the present invention in a main test scenario. The main test scenario includes multiple obstacles and target points, which can examine the robot's obstacle avoidance ability, path generation ability, and target arrival ability in complex obstacle layouts.
[0140] In this embodiment, each method was tested 100 times independently in the main test scenario, and the test results are shown in Table 1.
[0141] Table 1. Path planning results of different methods in the main test scenario.
[0142]
[0143] As shown in Table 1, the method of this invention achieved a navigation success rate of 94% in the main test scenario, with an average of 475.5 steps and an average arrival time of 14.26 seconds. Compared with the SAC and DSAC methods, the method of this invention shows significant improvements in success rate, average number of steps, and average arrival time. Compared with the P+DSAC method, which only incorporates a priority experience replay mechanism, the method of this invention further shortens the number of steps required for path planning and the arrival time. Compared with the TR+DSAC method, which only incorporates a LiDAR-Transformer encoder, the method of this invention significantly improves path planning stability. The above results demonstrate that this invention can effectively improve the success rate of path planning and task completion efficiency in complex obstacle environments.
[0144] Example 4
[0145] Four-scenario path planning experiment:
[0146] To further verify the adaptability of the method of the present invention under different environmental structures, this embodiment sets up four simulation test scenarios. The four scenarios are used to examine the robot's path planning capabilities in different obstacle layouts, narrow passages, bypass structures, and complex multi-channel environments.
[0147] Figure 2 Four simulation test scenarios were constructed for this embodiment. Scene I is the main test scenario, mainly used to examine the robot's ability to reach targets in environments with complex obstacle distribution; Scene II is a narrow passage scenario, used to examine the robot's ability to navigate long passages and corner structures; Scene III is a circular obstacle avoidance scenario, used to examine the robot's ability to avoid and select paths when facing central obstacles; Scene IV is a multi-channel complex scenario, used to examine the robot's path planning ability under the combined constraints of platforms, walls, and oblique obstacles.
[0148] Figure 3 (a) to Figure 3 (c) shows the three sets of path planning results of the method of the present invention in scenario one. The method of the present invention can generate continuous actions online based on the current lidar observation and target status in different scenarios. The robot starts from the starting position, gradually approaches the target point while avoiding obstacles, and finally forms a continuous and smooth planned path.
[0149] Example 5
[0150] Cross-scenario generalization experiment:
[0151] To verify the generalization ability of the method in unseen environments, this embodiment directly deploys the trained policy network to multiple untrained test scenarios for verification. Each unseen test scenario has three different target tasks, for a total of nine test tasks. The methods are compared under the same test tasks, and the results are shown in Table 2.
[0152] Table 2. Task completion results of different methods in unseen scenarios.
[0153]
[0154] Table 2 shows that in the three test scenarios where no training was involved, both the SAC and DSAC methods failed to complete the target arrival task, indicating that relying solely on the conventional soft actor-commentator structure has limited generalization ability in complex, unseen environments. The TR+DSAC method completed one task, demonstrating that the LiDAR-Transformer encoder can enhance state representation capabilities to some extent, but its generalization ability remains limited when lacking an active scheduling mechanism for key experience samples. The P+DSAC method completed three tasks, indicating that priority experience replay guided by the standard deviation of the value distribution can improve the learning efficiency of some key samples, but it is still prone to failure in complex geometrically constrained scenarios when global spatial structure modeling is lacking.
[0155] The method of this invention successfully completed the target arrival task in several unseen scenario test tasks, indicating that the invention enhances the spatial correlation modeling capability of LiDAR through the LiDAR-Transformer encoder, and improves the learning efficiency of key samples by jointly guiding the experience replay sampling through the standard deviation of value distribution and TD error. As a result, the robot exhibits good path planning generalization ability in unseen narrow passages, detour scenarios and complex multi-channel environments.
[0156] Figures 4 to 6 The results were as follows: In narrow passage scenarios, the robot was able to move steadily along the passage and avoid collisions with walls; in circular obstacle detour scenarios, the robot was able to choose a reasonable detour direction based on the distribution of obstacles; in complex multi-passage scenarios, the robot was able to choose a suitable path from multiple feasible passages to reach the target point, without any obvious long-term stagnation, stationary rotation, or collisions.
[0157] Figure 4 (a) to Figure 4 (c) shows the three sets of path planning results of the method of the present invention in scenario two. The robot can maintain stable movement in narrow passages and corner environments, and adjust its movement direction in real time according to the passage boundary, indicating that the method of the present invention has good narrow space passage capability.
[0158] Figure 5 (a) to Figure 5(c) shows the three sets of path planning results of the method of the present invention in scenario three. The robot is able to complete the detour around the central obstacle and maintain a safe distance during the detour, indicating that the method of the present invention can handle detour tasks with obvious geometric constraints.
[0159] Figure 6 (a) to Figure 6 (c) shows the three sets of path planning results of the method of the present invention in scenario four. The robot is able to select a suitable passage area in a complex multi-channel environment and successfully avoid oblique obstacles and platform boundaries, indicating that the method of the present invention has good adaptability to complex scenarios.
[0160] Example 6
[0161] Real-world navigation verification experiment:
[0162] To verify the deployability of the method of this invention on a real robot platform, this embodiment deploys the trained policy network onto the ScoutMini mobile robot platform for real-world navigation verification. The robot is equipped with a two-dimensional LiDAR sensor to acquire environmental distance information in real-time in a real corridor obstacle environment, and outputs linear and angular velocity control values based on the current fused navigation state.
[0163] Figure 7 This is a visualization of the actual navigation results of the method of this invention in RViz. The figure shows the LiDAR observation information of the robot in the real environment, the robot's current position, and the navigation trajectory. Figure 7 It can be seen that the robot can adjust its path based on real-time LiDAR data and move towards the target point along the passable area.
[0164] Figure 8 This is the actual navigation result of the method of the present invention on a real robot platform. The robot is able to execute continuous actions output by the policy network in a real corridor obstacle environment, avoiding obstacles and reaching the target area. This result shows that the method of the present invention can not only complete path planning tasks in a simulation environment, but also achieve online obstacle avoidance navigation under real two-dimensional LiDAR perception and mobile robot motion control conditions.
[0165] In summary, this embodiment demonstrates, through simulation training reward comparison, main test scenario path planning experiment, four-scenario path planning experiment, cross-scenario generalization experiment, and real-machine navigation verification, that the method of the present invention can improve the success rate of path planning, training stability, key sample utilization efficiency, and practical deployment feasibility of intelligent robots in complex obstacle environments.
[0166] Contents not described in detail in this specification are prior art known to those skilled in the art. Although illustrative specific embodiments of the invention have been described above to facilitate understanding by those skilled in the art, it should be understood that the invention is not limited to the scope of the specific embodiments. Various modifications are readily apparent to those skilled in the art as long as they fall within the spirit and scope of the invention as defined and determined by the appended claims, and all inventions utilizing the concept of this invention are protected.
Claims
1. A robot path planning method based on value uncertainty replay, characterized in that, Includes the following steps: Step 1: Acquire two-dimensional LiDAR scanning data of the robot's surrounding environment. Perform invalid value replacement, distance clipping, downsampling, and normalization on the two-dimensional LiDAR scanning data to obtain a radar distance sequence arranged by scanning angle. At the same time, acquire the robot's navigation status, which includes at least the target distance, target angle, current linear velocity, current angular velocity, historical actions, distance to the nearest obstacle, and minimum collision time. Step 2: Input the radar range sequence into the lidar sequence encoding network to embed tokens and obtain token features. Add position encoding to represent scanning angle information. Extract spatial correlation features between different scanning directions through a multi-head self-attention mechanism. Perform pooling processing on the encoded token features to obtain radar environment features. The lidar sequence encoding network is a Transformer encoder. Step 3: Fuse the radar environmental features with the robot's navigation state to obtain a fused navigation state; construct a reinforcement learning network model including a policy network, a first value distribution evaluation network, and a second value distribution evaluation network, and input the fused navigation state into the reinforcement learning network model; use the policy network to output continuous motion actions based on the fused navigation state; use the first value distribution evaluation network and the second value distribution evaluation network to estimate the value distribution of the fused navigation state and the corresponding actions, respectively, to obtain the mean value and standard deviation of the state-action value; the standard deviation of the state-action value is used to characterize the dispersion of the state-action value estimation and serves as the basis for calculating the uncertainty of the empirical sample value; Step 4: The robot performs continuous motion actions and interacts with the environment to obtain experience samples. The experience samples include the current fusion navigation state, actions, rewards, the next fusion navigation state, and a termination flag. The experience samples are then stored in the experience pool. Step 5: Set up a target policy network and a target value distribution evaluation network with the same structure as the policy network and the value distribution evaluation network. The policy network and the value distribution evaluation network participate in parameter updates as online networks, while the target policy network and the target value distribution evaluation network are used to calculate the training objective and are maintained through soft updates of the corresponding online network parameters. Calculate the soft Bellman objective value based on the target policy network and the target value distribution evaluation network, and sample the value distribution based on the mean and standard deviation of the state-action value output by the target value distribution evaluation network to obtain a randomized state-action value estimate. Calculate the randomized objective value based on the randomized state-action value estimate. Apply boundary constraints to the offset of the randomized objective value relative to the mean of the state-action value based on the standard deviation of the state-action value output by the value distribution evaluation network and its moving average to obtain the boundary-constrained objective value. Determine the training objectives of the first and second value distribution evaluation networks based on the soft Bellman objective value, the boundary-constrained objective value, and the mean of the state-action value. Calculate the adaptive weight ratio based on the standard deviation of the state-action value and its moving average for subsequent updates of the value distribution evaluation network parameters. Step 6: Calculate the value distribution dispersion index of the experience samples based on the standard deviation of state-action value output by the first and second value distribution evaluation networks. Calculate the TD error of the experience samples based on the deviation between the soft Bellman target value and the mean state-action value. Then, normalize the value distribution dispersion index and the TD error respectively, and then weight and fuse the normalized value distribution dispersion index and the normalized TD error to obtain the comprehensive priority of the experience samples. Determine the sampling probability of the experience samples based on the comprehensive priority, and calculate the importance sampling weight based on the sampling probability. Step 7: According to the sampling probability determined in Step 6, training samples are extracted from the experience pool. Using the training samples, and combined with the adaptive weight ratio determined in Step 5 and the importance sampling weight obtained in Step 6, the parameters of the policy network, the first value distribution evaluation network, and the second value distribution evaluation network are updated, and the corresponding target network parameters are updated using a soft update method. After the network parameters are updated, the value distribution dispersion index and TD error of the sampled experience samples are recalculated. The comprehensive priority of the experience samples in the experience pool is updated according to the recalculation results, and the sampling probability in the subsequent training process is re-determined according to the updated comprehensive priority. The process of experience sample sampling, network parameter updating, recalculation of value distribution dispersion index and TD error, and comprehensive priority updating is repeated to form a dynamic experience replay scheduling closed loop based on the standard deviation of value distribution. Step 8: Perform path planning using the trained policy network: Input the robot's current fused navigation state into the trained policy network to generate corresponding continuous motion control actions. Obtain the linear velocity control and angular velocity control quantities required for the robot's movement based on the action output results. Control the robot to move according to the motion control quantities. Reacquire the robot's environmental perception information and navigation state in each control cycle, and repeat the above action generation and motion control process until the robot meets the target arrival condition, collision termination condition, or reaches the maximum number of control steps. Continuously record the position state corresponding to each control cycle during the robot's movement to form the robot's motion trajectory from the starting position to the target position, and output the motion trajectory as the final path planning result.
2. The robot path planning method based on value uncertainty playback according to claim 1, characterized in that, The specific operation of step 2 is as follows: The Transformer encoder indexes the radar range sequence as... radar range value Mapped to the first token through token embedding operation Token characteristics The formula is as follows: ; in, and These are the learnable parameters of the token embedding layer in the Transformer encoder. For token feature dimensions; Transformer encoder to token features A sinusoidal position code is added to characterize the scanning angle position. The formula for the sinusoidal position code is as follows: ; ; in, For radar sequence indexing, For dimension indexing; Indicates the first Each radar sequence location corresponds to a location code value in an even-numbered dimension; Indicates the first Each radar sequence location corresponds to a location code value in an odd-numbered dimension; The token feature formula after adding position encoding is as follows: ; in, For the first time after adding position encoding Each token feature vector serves as input to the Transformer encoder. Subsequently, the Transformer encoder extracts spatial correlation features between different scanning directions through a multi-head self-attention mechanism, the formula of which is as follows: ; in, , , These are the query matrix, key matrix, and value matrix, respectively. The dimension of the key vector. Indicates transpose; The Transformer encoder then performs average pooling and normalization on the encoded token features to obtain radar environment features. The formula is as follows: ; in, The first output of the Transformer encoder Each token characteristic The length of the radar sequence. This is a layer normalization operation.
3. The robot path planning method based on value uncertainty replay according to claim 2, characterized in that, The specific operation of step 3 is as follows: Radar environment characteristics Combined with the robot's navigation state to form a fused navigation state The formula is as follows: ; in, This indicates the robot's navigation status. A reinforcement learning network model is constructed, comprising a policy network, a first value distribution evaluation network, and a second value distribution evaluation network. The fused navigation state is then input into the reinforcement learning network model. The policy network is then used to evaluate the fused navigation state. Output continuous motion distribution parameters, and generate continuous motion based on the continuous motion distribution parameters through reparameterization. The formula is as follows: ; in, This represents continuous motion, including linear velocity control and angular velocity control. This represents the mean of the action distribution. Indicates the standard deviation of the action distribution. This represents random noise that follows a standard normal distribution, used to implement random exploration during the action sampling process; This represents element-wise vector multiplication. This represents a multidimensional standard normal distribution with a mean of 0 and a covariance matrix of identity. The first and second value distribution evaluation networks are used to estimate the value distribution of the fused navigation state and its corresponding actions, respectively, and the corresponding mean state-action value and standard deviation state-action value are output, as shown in the following formula: ; in, For the first A value distribution evaluation network; Indicates the first The value distribution evaluates the mean state-action value of the network output; Indicates the first The original value of the standard deviation of the state-action value output by the value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The original value of the standard deviation of the state-action value output by the value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The value distribution evaluates the mean state-action value of the network output; To ensure the non-negativity of the state-action value standard deviation, the original standard deviation is mapped to a positive state-action value standard deviation using the Softplus function, and this state-action value standard deviation is used as an indicator of value distribution dispersion, as shown in the following formula: ; in, This represents the standard deviation of the state-action value after Softplus mapping, used to describe the dispersion of the value estimation distribution.
4. The robot path planning method based on value uncertainty playback according to claim 3, characterized in that, The specific operation of step 5 is as follows: The soft Bellman objective value is calculated based on the objective policy network and the objective value distribution evaluation network. The formula for calculating the soft Bellman objective value is as follows: ; in, Indicates the soft Bellman target value; For instant rewards, As a discount factor, As a termination marker, For temperature coefficient, This represents the logarithmic probability of the target policy network generating the next action; Indicates the first The target value distribution evaluates the next state—mean action value—of the network output. The target value distribution evaluation network samples the value distribution based on the output mean state-action value and the standard deviation of the state-action value after Softplus mapping, and obtains a random state-action value estimate, as shown in the following formula: ; in, Let be a normally distributed random variable. Indicates the first The state-action value estimate obtained by sampling from a value distribution evaluation network; Indicates that the system is in fused navigation mode. and actions Conditions, No. The value distribution evaluates the mean state-action value of the network output; This represents the standard deviation of the state-action value after Softplus mapping, used to describe the dispersion of the value estimation distribution; The next-state-action value term in the soft Bellman objective is replaced with the stochastic state-action value estimate, and the same Bellman objective calculation structure as the soft Bellman objective is used to obtain the stochastic objective value. Based on the moving average of the standard deviation of the state-action values output by the value distribution evaluation network, a boundary constraint is applied to the offset of the stochastic objective value relative to the mean of the state-action values, resulting in the boundary-constrained objective value. The formula for calculating the target value after boundary constraints is as follows: ; in, To randomize the target value, The moving average is used to limit the range of deviation of the randomized target value relative to the mean of the current state-action value; This represents the mean state-action value of the network output, indicating the current value distribution. This indicates a boundary truncation operation, used to limit the offset of the randomized target value relative to the current state-action value mean within a given range; The moving average of the standard deviation of state-action value is used to characterize the average level of uncertainty in the current value estimate; The formula for calculating the moving average of the standard deviation of the state-action value is as follows: ; in, The moving average coefficient; Indicates the first The moving average of the standard deviation of the state-action value output by the value distribution evaluation network is used to reflect the average level of uncertainty in value estimation. Indicates the first The standard deviation of the state-action value output by the value distribution evaluation network is used to measure the dispersion of the value distribution of the current state-action pair. The adaptive weighting ratio is calculated based on the current state—the standard deviation of action value—and its moving average, using the following formula: ; in, To adapt the weight ratio, This represents the minimum limit for the adaptive weight ratio, used to avoid insufficient gradient contribution due to excessively small weights; This represents the maximum limit value for the adaptive weight ratio, used to avoid excessive weights due to high uncertainty samples, which would affect training stability. The adaptive weight ratio is used for subsequent value distribution evaluation network parameter updates. When updating the value distribution evaluation network in step 7, the adaptive weight ratio and the importance sampling weight are applied together to the evaluation network loss function to dynamically adjust the loss contribution of different experience samples, so as to reduce gradient fluctuations caused by high uncertainty samples and improve the training stability of the value distribution evaluation network.
5. The robot path planning method based on value uncertainty playback according to claim 4, characterized in that, The specific operation of step 6 is as follows: The value distribution dispersion index of the empirical samples is calculated based on the standard deviation of the state-action value output by the first and second value distribution evaluation networks, using the following formula: ; in, For the first A measure of the dispersion of the value distribution of an empirical sample; This represents the standard deviation of the state-action value output of the first value distribution evaluation network. This represents the standard deviation of the state-action value output of the second value distribution evaluation network; The TD error of the empirical sample is calculated based on the deviation between the soft Bellman target value and the mean state-action value, using the following formula: ; in, For the first TD error for an empirical sample This represents the mean state-action value output by the first value distribution evaluation network. This represents the mean state-action value output by the second value distribution evaluation network. This represents the soft Bellman target value corresponding to the empirical sample; the value distribution dispersion index and TD error are normalized respectively, as shown in the following formula: ; ; in, An index representing the dispersion of value distribution after normalization; This represents the maximum value of the dispersion index of the value distribution of all empirical samples in the current training batch; This represents the normalized TD error; Indicates the first The absolute value of the TD error for each empirical sample; This represents the maximum absolute value of the TD error for all empirical samples in the current training batch; This represents a very small constant to prevent the denominator from being zero; The normalized value distribution dispersion index and the normalized TD error are weighted and fused to obtain the comprehensive priority of the empirical samples, as shown in the following formula: ; in, For the first The overall priority of a single empirical sample and These are the weighting coefficients for value distribution dispersion and TD error, respectively; This represents a tiny positive number to prevent empirical samples from having a priority of zero; The sampling probability of the empirical sample is determined based on the overall priority. The formula is as follows: ; in, For experience pool, Priority index; Indicates the first A comprehensive priority is obtained by weighting and fusing the empirical samples based on the value distribution dispersion index and TD error. The importance sampling weights are calculated based on the sampling probabilities and used for weighted adjustments to the loss function of the subsequent value distribution evaluation network. The formula for the importance sampling weights is as follows: ; ; in, The importance sampling weight index, For importance sampling weights, The normalized importance sampling weights are used for updating the value distribution evaluation network parameters in step 7. When updating the value distribution evaluation network parameters, the normalized importance sampling weights are introduced into the loss function of the value distribution evaluation network to adjust the loss contribution of different experience samples in a weighted manner, so as to reduce the sampling bias caused by priority experience playback.
6. The robot path planning method based on value uncertainty playback according to claim 5, characterized in that, In step 8, the path planning is generated online by the trained policy network. Specifically, in each control cycle, the current fused navigation state is input into the policy network, and normalized linear velocity action and normalized angular velocity action are output. The normalized linear velocity action and normalized angular velocity action are mapped to physical linear velocity and physical angular velocity, respectively. After the robot moves according to the physical linear velocity and physical angular velocity, it obtains the next fused navigation state. The above process is repeated until the target arrival condition, collision condition, or maximum step count condition is met. The robot pose sequence corresponding to each control cycle is used as the planned path.
