A robot navigation method without map

By adopting the map-free navigation method of adaptive similarity clustering and global curiosity reward in industrial AMR, the problem of map navigation method failure in industrial environments is solved, efficient navigation strategy optimization and path finding are achieved, and the robot's performance in the robot is improved. Navigation performance in complex environments.

CN118111462BActive Publication Date: 2024-08-27CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410240115.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-04
Publication Date
2024-08-27
Estimated Expiration
2044-03-04

AI Technical Summary

Technical Problem

When industrial AMR uses map-based navigation methods in complex and large-scale industrial environments, establishing and updating maps is cumbersome and ineffective in dynamic and changing environments, resulting in low training efficiency and easy convergence to local optimal strategies, making it difficult to achieve seamless implementation. Map navigation.

Method used

A map-free robot navigation method based on adaptive similarity clustering and global curiosity reward is adopted. By initializing the training environment and neural network model, combined with extrinsic rewards, global curiosity rewards and local curiosity rewards, deep reinforcement learning is used for navigation. Strategy optimization, including Actor network, Critic network and intrinsic curiosity module, uses Gazebo simulation environment to simulate industrial scenarios and optimize neural network parameters to improve navigation performance.

Benefits of technology

It improves the exploratory nature of map-free navigation tasks, enables the robot to jump out of the local optimal strategy, find the optimal path, and improves the efficiency and accuracy of navigation in industrial environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118111462B
    Figure CN118111462B
Patent Text Reader

Abstract

The present invention discloses a robot mapless navigation method, comprising the following steps: initializing a simulation environment, combining laser sensor data, obstacle information and target information to form a high-dimensional state space, inputting the high-dimensional state into the Actor network to convert it into a continuous action command of the robot, the robot executes the action command, interacts with the environment to obtain the state observed at the next moment, and obtains a reward signal composed of an external reward and a curiosity reward; the four-tuple composed of the state, action, reward and the state at the next moment is stored in an experience replay pool until the data in the experience replay pool reaches a threshold, sampling experience to update network parameters, and continuously repeating the above process until the training is completed, and then importing the trained model into a mobile robot in the real world for navigation. The present invention improves the exploratory nature of mapless navigation tasks, enabling robots to jump out of local optimal strategies and find the optimal path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the fields of reinforcement learning and robot mapless navigation, and in particular to a robot mapless navigation method based on adaptive similarity clustering and global curiosity reward. Background Art

[0002] Industrial AMRs achieve autonomous perception, path planning and obstacle avoidance by integrating intelligent perception and decision-making, and determine their navigation routes according to the mission objectives, thus being widely used in the industrial field. Industrial AMRs usually use map-based navigation methods for motion planning. However, this method relies on a complete environmental geometry model and precise positioning. In complex and large-scale areas, it is very cumbersome, time-consuming and arduous for remote-operated robots to establish and update complex and accurate maps in the environment. Moreover, under dangerous operating conditions such as high temperature, high pressure, high radiation, heavy pollution, strong noise, and unstructured environments, this map-based method loses its effectiveness when facing dynamic, changing and unstructured scenes, and may even cause harm to relevant personnel. Therefore, a navigation method based on deep reinforcement learning is proposed. Deep reinforcement learning selects corresponding actions through continuous interaction with the environment, and observes the rewards or penalties obtained by the selected actions to continuously adjust its own actions and learn navigation strategies. However, industrial environments usually have the characteristics of large spans and large ranges, resulting in sparse rewards, low robot training efficiency, and even convergence to local optimal strategies. Therefore, there are still certain difficulties and challenges in directly applying advanced map-free navigation technology algorithms to industrial AMRs. In order to enable industrial AMR to realize map-free motion planning in industrial environments and overcome the local optimal problem caused by sparse rewards, it is urgent to develop a robot map-free navigation method based on adaptive similarity clustering and global curiosity reward to ensure that industrial AMR can smoothly perform work tasks. Summary of the invention

[0003] In order to solve the above technical problems, the present invention proposes a robot map-free navigation method. The purpose of the present invention is achieved through the following technical solutions:

[0004] A robot map-free navigation method comprises the following steps:

[0005] S1: Initialize the training environment and neural network model;

[0006] S2: The robot observes the environment and performs actions;

[0007] S3: Obtaining extrinsic rewards;

[0008] S4: Get global curiosity reward;

[0009] S5: Get local curiosity reward;

[0010] S6: store the experience quadruple into the experience pool and regularly update the network parameters of the neural network model;

[0011] S7: Repeat steps S2 to S6.

[0012] As a further improvement, in step S1, the method for initializing the training environment is as follows:

[0013] Load the constructed Gazebo simulated industrial environment and mobile robot, set the parameters of the mobile robot, including the continuous linear velocity range, continuous angular velocity range, laser radar dimension, and maximum number of steps. The method of constructing the Gazebo simulated industrial environment is to set static landmarks and dynamic obstacles in the map through the Gazebo simulation environment to simulate the industrial environment; randomly set the robot's direction, starting point, and target point at the beginning of each training round to improve the generalization of the navigation strategy;

[0014] The neural network model includes four networks, an Actor network, an Actor target network, a Critic network and a Critic target network; the Actor network provides a strategy for the current state and is updated through a policy gradient; the Actor target network is used to provide a strategy for the next state, and the network parameters are copied to the Actor network; the Critic network outputs the Q-value function value of the state-action at the current moment and is updated by minimizing the loss function; the Critic target network is used to approximately estimate the Q-value function of the state-action at the next moment, and the network parameters are copied to the Critic network; initially, the Actor network and the Critic network are randomly initialized, and the network parameters of the Actor network and the Critic network are copied to the Actor target network and the Critic target network respectively;

[0015] The Actor target network and the Critic target network are exactly the same as the Actor network and the Critic network structures respectively; both the Actor network and the Critic network use multi-layer perceptron as the backbone, and each hidden layer uses RELU as the activation function; the input of the Actor network is the state observed by the robot, and the last hidden layer regresses to the linear velocity and angular velocity through two independent branches. Assuming that the robot only moves forward, the linear velocity is limited to (0,1) through the sigmoid function, and the angular velocity is limited to (-1,1) through the Tanh function; the input of the Critic network is the state observed by the robot and the continuous actions output by the Actor network, and the last hidden layer regresses to the value of the current action.

[0016] For further improvement, the specific steps of step S2 are as follows:

[0017] The robot observes the environment and transmits the lidar information t , target information g t and obstacle information t Constructing a 28-dimensional state space s t ={z t ,g t ,o t}.in Covering the robot's 360 degrees, it is the 24-dimensional laser sensor observation data at time t. Target information g t Include {h t ,d g}, h t is the angle difference between the current robot orientation and the target point, that is, the target angle minus the current angle, d g is the Euclidean distance between the robot and the target point, which can be calculated as follows:

[0018]

[0019]

[0020] where x g and g Indicates the horizontal and vertical coordinates of the target, x t and t Represents the horizontal coordinate of the robot and the vertical distance between the robot and the target, θ t Indicates the robot's heading angle.

[0021] The relevant information of obstacles can be calculated through sensor observation data {d o ,θ o}, d o is the distance to the nearest obstacle in the LiDAR scan data, θ o is the angle of the nearest obstacle in the LiDAR scan data, which can be calculated as follows:

[0022] d o =min(z t ) (3)

[0023]

[0024] The state observed by the robot is input into the Actor network, and an action a is generated according to the random behavior strategy. t , as follows:

[0025] a t =μ(s t |θ μ )+χ t (5)

[0026] Among them, t represents time t, μ represents the behavior strategy, and s t represents the observed state, θ μ Represents the parameters of the Actor network, χ t represents the exploration noise of the behavior strategy;

[0027] The robot then performs actions, interacts with the Gazebo environment, and receives rewards r t and the state s at the next moment t+1 .

[0028] For further improvement, the specific steps of step S3 are as follows:

[0029] The extrinsic rewards consist of angle rewards, obstacle rewards, and target rewards, which are:

[0030]

[0031]

[0032]

[0033] where h t is the orientation of the robot at time t, is the distance between the robot and the obstacle at the current moment, Represents the distance between the robot and the target point at the current moment, Represents the distance between the robot and the target point at the last moment, Represents the distance between the robot's starting point and the target point. In order to encourage the robot to reach the target point and reduce the probability of collision, there should be corresponding rewards and penalties for reaching and colliding. Then the total external reward is for:

[0034]

[0035] represents the angle reward, Represents obstacle reward, Represents the target reward.

[0036] As a further improvement, the specific steps of step S4 are as follows: the global curiosity reward includes a global curiosity reward based on an intrinsic curiosity module and a local curiosity reward based on adaptive similarity clustering;

[0037] Among them, in multiple rounds, an intrinsic curiosity module is used to construct a global curiosity reward, and the intrinsic curiosity module includes: an encoder, a forward dynamics model and an inverse dynamics model; the encoder is used to convert the current state of the mobile robot and the state of the next moment into state features, the forward dynamics model is used to predict the features of the next state of the mobile robot through the state features and actions of the mobile robot at the current moment, and the inverse dynamics model is used to predict the behavior of the mobile robot through the features of the next state of the mobile robot and the features of the current state of the mobile robot; first, the state s t and t+1 Encoded by the encoder, the feature vector φ(s t θ E ) and φ(s t+1 θ E ), later abbreviated as φ(s t ) and φ(s t+1 ), θ E represents the parameters of the encoder; then it is input into the inverse dynamics model g and outputs the predicted action Right now

[0038]

[0039] Among them, θ I Represents the parameters of the inverse dynamics model

[0040] The inverse dynamics model and encoder are trained by optimizing equation (12), where is a t The predicted value, L I Measuring the difference between the two,

[0041]

[0042] a t represents the actual action of the mobile robot, L I represents the loss between actual action and predicted action, θ I represents the parameters of the inverse dynamics model. The parameters of the inverse dynamics model and the encoder are updated by minimizing the action loss;

[0043] φ(s t ) and a t Input into the forward dynamics model f to predict the characteristics of the next state Right now:

[0044]

[0045] θ F represents the parameters of the forward dynamics model;

[0046] The forward dynamics model is learned by optimizing equation (14), where is φ(s t+1 ), L F Measure the difference between the two;

[0047]

[0048] L F represents the loss between the predicted state features and the actual state features, and min represents updating the parameters of the forward dynamics model by minimizing the loss;

[0049] The error value between the predicted state characteristics at the next moment and the actual state characteristics at the next moment That is the global curiosity reward, as shown in formula (15).

[0050]

[0051] Where η>0 is a proportional coefficient. By training the model with equations (11), (12), and (14), the robot has better prediction ability for observed states, and the global curiosity reward is reduced. For unobserved states, the prediction ability is poor, and the global curiosity reward will increase. This allows the robot to explore more unexplored environments, improve the robot's exploratory nature, and prompt the robot to find the optimal strategy. However, after multiple rounds, the prediction difference method will reduce the freshness of the state, resulting in the possibility of missing potential states. Therefore, a local curiosity reward is constructed between single rounds.

[0052] For further improvement, the specific steps of step S5 are as follows: In a single round, the adaptive similarity clustering method is used to construct a local curiosity reward to improve the robot's exploration efficiency. First, when the number of states in the current round is greater than or equal to 3, the current state and each state in the past of the current round are combined into several state pairs, and the Euclidean distance d between each state pair is calculated. n , as the state similarity;

[0053]

[0054] n represents the number of states, t represents the time t, represents the 28th dimension of the first state at time t, The 28th dimension representing the nth state at time t;

[0055] q is the similarity counting factor, the initial value is 0, the Euclidean distance is compared with the preset threshold ε, and the value of the parameter q is calculated, that is:

[0056] q=q+1,if d n <ε (17)

[0057] After comparing the Euclidean distances of all state pairs, if q>0, the difference between all Euclidean distances less than the threshold and the threshold is recorded as If q = 0, all Euclidean distances are clustered into m categories using the K-Means algorithm to obtain the distance category set {D 1 ,D 2 ,...,D m}, and calculate the mean Euclidean distance of each category respectively, and then calculate the local curiosity reward, as shown in formula (13).

[0058]

[0059] where c 1 ,c 2 They are all hyperparameters, K and M are the maximum values ​​of the set reward limits, Represents the mean of the similarity class after clustering; Reward for local curiosity; It represents the average value of the difference between all Euclidean distances less than the threshold and the threshold, and min represents the minimum value;

[0060] Robot training is divided into exploration, exploration and exploitation stages. Since the local curiosity reward is a reward constructed within a single round and cannot adapt to different stages of robot training, an adaptive greed factor is added to actively adjust the size of the local curiosity reward according to the degree of interaction between the robot and the environment, as shown in formula (14):

[0061]

[0062] Where conv represents the number of times the target point is successfully reached, episode represents the number of rounds, and d g Represents the current distance to the target point, d G Represents the distance between the starting point and the target point; e represents the natural logarithm; represents the adaptive greed factor;

[0063] Therefore, the overall curiosity reward for

[0064]

[0065] For further improvement, the specific steps of step S6 are as follows:

[0066] Add the external reward and the curiosity reward to get the robot's action a t Rewards received t

[0067]

[0068] In order to make full use of the sampled data and reduce the correlation between the data, the experience replay technology is used to convert the state, action, reward and the state of the next moment into a four-tuple {s t ,a t ,r t ,s t+1}Stored in the experience replay pool, the experience is continuously stored until the experience replay pool reaches the preset threshold;

[0069] If the experience replay pool reaches a preset threshold, the data in the experience replay pool is randomly sampled. After batch random sampling from the experience replay pool, the Critic network is updated by minimizing the loss function:

[0070]

[0071] L represents the loss function of the Critic network, N represents the number of sampled data, and y i represents the target Q value of the state-action at the previous moment, Q(s i ,a i |θ Q ) represents the Q value function of the current state-action, θ Q Represents the parameters of the Critic network, i represents the i-th sampled data, s i represents the state in the i-th sample data, a i represents the action in the i-th sample data;

[0072] where y i =r i +γQ'(s i+1 ,μ'(s i+1 |θ μ' )|θ Q' ), calculated through the Actor target network and the Critic target network; r i represents the reward in the i-th sampled data, γ represents the discount factor, which is used to measure the importance of future rewards and is set artificially, and Q' represents the reward in s i+1 The state is the Q value calculated by the Critic target network when the Actor target network selects the action, μ' represents the action selected by the Actor target network, θ μ′ Represents the parameters of the Actor target network, θ Q′ Represents the parameters of the Critic target network;

[0073] Next, update the Actor network through policy gradient:

[0074]

[0075] in, represents the policy gradient, J represents the performance of the policy, that is, the expected cumulative return, and the parameters of the policy network are updated by maximizing the gradient of J so that the policy can obtain a higher cumulative return. N represents (the number of sampled data), ▽ a Q(s,a|θ Q ) represents the gradient of the value function of action a, μ represents the action output by the Actor network, that is, the strategy function, i represents the i-th sample data, represents the gradient of the policy function parameter θ, θ μ Represents the parameters of the Actor network;

[0076] Then, to ensure the stability of learning, the Actor target network and the Critic target network are updated through sampling "soft update":

[0077] θ Q' ←——τθ Q +(1-τ)θ Q' (twenty four).

[0078] θ μ' ←——τθ μ +(1-τ)θ μ'

[0079] τ represents the soft update rate, which is a hyperparameter with a value range of 0 to 1. The closer τ is to 0, the slower the target network is updated; the closer τ is to 1, the faster the target network is updated.

[0080] The beneficial effects of the present invention are:

[0081] The present invention constructs a map-free navigation architecture based on deep deterministic policy gradient, introduces local curiosity reward construction based on adaptive similarity clustering, global curiosity reward construction based on intrinsic curiosity module, and extrinsic reward construction based on obstacle information and target information, which improves the exploratory nature of map-free navigation tasks and enables the robot to jump out of the local optimal strategy and find the optimal path. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The present invention is further described with reference to the accompanying drawings, but the contents in the accompanying drawings do not constitute any limitation to the present invention.

[0083] Figure 1 It is the overall flow chart of the present invention

[0084] Figure 2 This is the Gazebo simulation environment diagram of the present invention

[0085] Figure 3 This is the structure diagram of the map-free navigation model of the present invention

[0086] Figure 4This is a schematic diagram of the Actor-Critic network of the present invention.

[0087] Figure 5 This is a schematic diagram of the intrinsic curiosity module of the present invention. DETAILED DESCRIPTION

[0088] In order to make the purpose, technical solutions and advantages of the invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and examples.

[0089] Example 1

[0090] In combination with the accompanying drawings and preferred embodiments, the specific implementation method, structure, and features of a robot mapless navigation method based on adaptive similarity clustering and global curiosity reward proposed in accordance with the present invention are described in detail below. The accompanying drawings involved only illustrate some implementation cases of the present invention and should not be regarded as limiting the scope. For technicians in this field, in combination with specific cases and their own technical level, other relevant information can also be obtained based on the accompanying drawings.

[0091] like Figure 1 As shown, the present invention proposes a robot map-free navigation method based on adaptive similarity clustering and global curiosity reward, and the method comprises the following steps:

[0092] S1: Initialize the training environment and neural network model

[0093] Load the built Gazebo simulated industrial environment and mobile robot, and set the parameters of the mobile robot, including the continuous linear velocity range, continuous angular velocity range, laser radar dimension, maximum number of steps, etc. Figure 2 As shown in the figure, the Gazebo simulation environment is used to set static landmarks and dynamic obstacles in the map to simulate the industrial environment. At the beginning of each training round, the robot's orientation, starting point, and target point are randomly set to improve the generalization of the navigation strategy.

[0094] The structure of the map-free navigation model is as follows Figure 3 As shown in Figure 2, the Actor target network and the Critic target network have the same structure as the Actor network and the Critic network, respectively. Both the Actor network and the Critic network use a multi-layer perceptron as the backbone, as shown in Figure 2. Figure 4As shown in the figure, each hidden layer uses RELU as the activation function. The difference between the two is that the input of the Actor network is the state, and the last hidden layer regresses to the linear velocity and angular velocity through two independent branches. Assuming that the robot only moves forward, the linear velocity is limited to (0,1) through the sigmoid function, and the angular velocity is limited to (-1,1) through the Tanh function. The input of the Critic network is the state and the continuous action output by the Actor network. The last hidden layer regresses to the value of the current action.

[0095] S2: The robot observes the environment and performs actions

[0096] The robot observes the environment and transforms the lidar information, obstacle information and target information into a high-dimensional state space s t ={z t ,g t ,o t} is input into the Actor network and generates action a according to the random behavior strategy t , as follows:

[0097] a t =μ(s t |θ μ )+χ t (25)

[0098] The robot then performs actions, interacts with the Gazebo environment, and receives rewards r t and the state s at the next moment t+1 .

[0099] S3: Get extrinsic rewards

[0100] The rewards are composed of external rewards and curiosity rewards. The external rewards are composed of angle rewards, obstacle rewards and target rewards, which are:

[0101]

[0102]

[0103]

[0104] where h t is the orientation of the robot at the current moment, is the distance between the robot and the obstacle at the current moment, Represents the distance between the robot and the target point at the current moment, Represents the distance between the robot and the target point at the last moment, represents the distance between the robot's starting point and the target point. Then the total external reward is the sum of the three, namely:

[0105]

[0106] S4: Get global curiosity reward

[0107] The curiosity reward is divided into two aspects: the global curiosity reward based on the intrinsic curiosity module and the local curiosity reward based on adaptive similarity clustering.

[0108] Among them, in multiple rounds, the intrinsic curiosity module is used to construct the global curiosity reward. The intrinsic curiosity module is as follows Figure 5 As shown in Figure 1, it consists of three parts: encoder, forward dynamics model and reverse dynamics model. The encoder converts the current state and the next state into state features. The forward dynamics model predicts the next state features through the current state features and actions. The reverse dynamics model predicts the behavior through the next state features and the current state features. First, s t and t+1 Encoded by the encoder, the feature vector φ(s t θ E ) and φ(s t+1 θ E ), later abbreviated as φ(s t ) and φ(s t+1 ), which is then input into the inverse dynamics model g, and the predicted action is output Right now

[0109]

[0110] The inverse dynamics model is trained by optimizing equation (7), where is a t The predicted value, L I Measure the difference between the two.

[0111]

[0112] φ(s t ) and a t Input into the forward dynamics model f to predict the characteristics of the next state Right now:

[0113]

[0114] The forward dynamics model is learned by optimizing equation (9), where is φ(s t+1 ), L F Measure the difference between the two.

[0115]

[0116] The error value between the predicted state characteristics at the next moment and the actual state characteristics at the next moment It is the global curiosity reward, as shown in formula (10).

[0117]

[0118] Where η>0 is a proportional coefficient.

[0119] S5: Get local curiosity reward

[0120] Constructing global curiosity rewards only through the intrinsic curiosity module is likely to miss potential states and trap the robot in place. Therefore, in a single round, the adaptive similarity clustering method is used to construct local curiosity rewards to improve the robot's exploration efficiency. First, when the number of states in the current round is greater than or equal to 3, the Euclidean distance d between the current state and each state in the past round is calculated. n , as the state similarity.

[0121]

[0122] Then the Euclidean distance is compared with the preset threshold ε to calculate the value of the parameter q, that is:

[0123] q=q+1,if d n <ε (36)

[0124] After comparing the Euclidean distances of all state pairs, if q>0, the difference between all Euclidean distances less than the threshold and the threshold is recorded as If q = 0, all Euclidean distances are clustered into m categories using the K-Means algorithm to obtain the distance category set {D 1 ,D 2 ,...,D m}, and calculate the mean Euclidean distance of each category respectively, and then the local curiosity reward can be calculated, as shown in formula (13).

[0125]

[0126] where c 1 ,c 2 are all hyperparameters, N and M are the maximum rewards set, {μ(D 1 ),μ(D 2 ),...,μ(D m )} represents the mean of the similarity class after clustering.

[0127] Robot training is divided into exploration, exploration and exploitation stages. Since the local curiosity reward is a reward constructed within a single round and cannot adapt to different stages of robot training, an adaptive greed factor is added to actively adjust the size of the local curiosity reward according to the degree of interaction between the robot and the environment, as shown in formula (14):

[0128]

[0129] Where conv represents the number of times the target point is successfully reached, episode represents the number of rounds, and d g Represents the current distance to the target point, d G Represents the distance between the starting point and the target point.

[0130] Therefore, the overall curiosity reward is

[0131]

[0132] S6: Store the experience quadruple into the experience pool and update the network parameters regularly

[0133] Add the external reward and the curiosity reward to get the robot's action a t Rewards received t .

[0134]

[0135] In order to make full use of the sampled data and reduce the correlation between the data, the experience replay technology is used to convert the state, action, reward and the state of the next moment into a four-tuple {s t ,a t ,r t ,s t+1}Stored in the experience replay pool. Continue to store experience until the experience replay pool reaches a preset threshold.

[0136] If there is enough data, randomly sample the data, randomly sample small batches from the experience pool, and update the Critic network by minimizing the loss:

[0137]

[0138] where y i =r i +γQ'(s i+1 ,μ'(s i+1 |θ μ' )|θ Q' ), calculated through the Actor target network and the Critic target network.

[0139] Next, update the Actor network through policy gradient:

[0140]

[0141] Then, to ensure the stability of learning, the target network is updated by sampling “soft update”:

[0142] θ Q' ←——τθ Q +(1-τ)θ Q' (43)

[0143] θ μ' ←——τθ μ +(1-τ)θ μ'

[0144] Repeat the above steps to complete the training of navigation strategy.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the essence and scope of the technical solution of the present invention.

Claims

1. A robot map-free navigation method, characterized in that: The steps include: S1: Initialize the training environment and neural network model: The method to initialize the training environment is as follows: Load the constructed Gazebo simulated industrial environment and mobile robot, set the parameters of the mobile robot, including the continuous linear velocity range, continuous angular velocity range, laser radar dimension, and maximum number of steps. The method of constructing the Gazebo simulated industrial environment is to set static landmarks and dynamic obstacles in the map through the Gazebo simulation environment to simulate the industrial environment; randomly set the robot's direction, starting point, and target point at the beginning of each training round to improve the generalization of the navigation strategy; The neural network model includes four networks, Actor network, Actor target network, Critic network and Critic target network; the Actor network provides the strategy of the current state and is updated through policy gradient; the Actor target network is used to provide the strategy of the next state, and the network parameters are copied to the Actor network; the Critic network outputs the Q value function value of the state-action at the current moment and is updated by minimizing the loss function; the Critic target network is used to approximate the Q value function of the state-action at the next moment, and the network parameters are copied to the Critic network; initially, the Actor network and the Critic network are randomly initialized, and the network parameters of the Actor network and the Critic network are copied to the Actor target network respectively The Actor target network and the Critic target network are exactly the same as the Actor network and the Critic network respectively; the Actor network and the Critic network both use multi-layer perceptron as the backbone, and each hidden layer uses RELU as the activation function; the input of the Actor network is the state observed by the robot, and the last hidden layer regresses to the linear velocity and angular velocity through two independent branches. Assuming that the robot only moves forward, the linear velocity is limited to (0,1) through the sigmoid function, and the angular velocity is limited to (-1,1) through the Tanh function; the input of the Critic network is the state observed by the robot and the continuous actions output by the Actor network, and the last hidden layer regresses to the value of the current action. S2: The robot observes the environment and performs actions: The robot observes the environment and transmits the lidar information t , target information g t and obstacle information t Constructing a 28-dimensional state space s t ={z t ,g t ,o t };in Covering the robot's 360 degrees, it is the 24-dimensional laser sensor observation data at time t; the target information g t Include {h t ,d g }, h t is the angle difference between the current robot orientation and the target point, that is, the target angle minus the current angle, d g is the Euclidean distance between the robot and the target point, which can be calculated as follows: where x g and g Indicates the horizontal and vertical coordinates of the target, x t and t Represents the horizontal coordinate of the robot and the vertical distance between the robot and the target, θ t Indicates the robot's heading angle; The relevant information of obstacles can be calculated through sensor observation data {d o ,θ o }, d o is the distance to the nearest obstacle in the LiDAR scan data, θ o is the angle of the nearest obstacle in the LiDAR scan data, which can be calculated as follows: d o =min(of t ) (3) The state observed by the robot is input into the Actor network, and an action a is generated according to the random behavior strategy. t , as follows: a t =μ(s t |θ μ )+x t (5) Among them, t represents time t, μ represents the behavior strategy, and s t represents the observed state, θ μ Represents the parameters of the Actor network, χ t represents the exploration noise of the behavior strategy; The robot then performs actions, interacts with the Gazebo environment, and receives rewards r t and the state s at the next moment t+1 ; S3: Get extrinsic rewards: The extrinsic rewards consist of angle rewards, obstacle rewards, and target rewards, which are: where h t is the orientation of the robot at time t, is the distance between the robot and the obstacle at the current moment, Represents the distance between the robot and the target point at the current moment, Represents the distance between the robot and the target point at the last moment, Represents the distance between the robot's starting point and the target point; in order to encourage the robot to reach the target point and reduce the probability of collision, there should be corresponding rewards and penalties for reaching and colliding. Then the total external reward is for: represents the angle reward, Represents obstacle reward, Indicates target reward; S4: Get global curiosity reward: The global curiosity reward includes a global curiosity reward based on an intrinsic curiosity module and a local curiosity reward based on adaptive similarity clustering; Among them, in multiple rounds, an intrinsic curiosity module is used to construct a global curiosity reward, and the intrinsic curiosity module includes: an encoder, a forward dynamics model and an inverse dynamics model; the encoder is used to convert the current state of the mobile robot and the state of the next moment into state features, the forward dynamics model is used to predict the features of the next state of the mobile robot through the state features and actions of the mobile robot at the current moment, and the inverse dynamics model is used to predict the behavior of the mobile robot through the features of the next state of the mobile robot and the features of the current state of the mobile robot; first, the state s t and t+1 Encoded by the encoder, the feature vector φ(s t θ E ) and φ(s t+1 θ E ), later abbreviated as φ(s t ) and φ(s t+1 ), θ E represents the parameters of the encoder; then it is input to the inverse dynamics model g and outputs the predicted action Right now Among them, θ I Parameters representing the inverse dynamics model The inverse dynamics model and encoder are trained by optimizing equation (12), where is a t The predicted value, L I Measuring the difference between the two, a t represents the actual action of the mobile robot, L I represents the loss between actual action and predicted action, θ I represents the parameters of the inverse dynamics model, and updates the parameters of the inverse dynamics model and the encoder by minimizing the action loss; φ(s t ) and a t Input into the forward dynamics model f to predict the characteristics of the next state Right now: θ F represents the parameters of the forward dynamics model; The forward dynamics model is learned by optimizing equation (14), where is φ(s t+1 ), L F Measure the difference between the two; L F represents the loss between the predicted state features and the actual state features, and min represents updating the parameters of the forward dynamics model by minimizing the loss; The error value between the predicted state characteristics at the next moment and the actual state characteristics at the next moment That is the global curiosity reward, as shown in formula (15): Where η>0 is a proportional coefficient. By training the model with equations (11), (12), and (14), the robot has better prediction ability for observed states, and the global curiosity reward is reduced. For unobserved states, the prediction ability is poor, and the global curiosity reward is increased. This allows the robot to explore more unexplored environments, improve the robot's exploratory nature, and prompt the robot to find the optimal strategy. However, after multiple rounds, the prediction difference method will reduce the freshness of the state, resulting in the possibility of missing potential states. Therefore, a local curiosity reward is constructed between single rounds. S5: Get local curiosity reward: In a single round, the adaptive similarity clustering method is used to construct local curiosity rewards to improve the robot's exploration efficiency. First, when the number of states in the current round is greater than or equal to 3, the current state and each state in the past of the current round are combined into several state pairs, and the Euclidean distance d between each state pair is calculated. n , as the state similarity; n represents the number of states, t represents the time t, represents the 28th dimension of the first state at time t, The 28th dimension representing the nth state at time t; q is the similarity counting factor, the initial value is 0, the Euclidean distance is compared with the preset threshold ε, and the value of the parameter q is calculated, that is: q=q+1,if d n <ε (17) After comparing the Euclidean distances of all state pairs, if q>0, the difference between all Euclidean distances less than the threshold and the threshold is recorded as If q = 0, all Euclidean distances are clustered into m classes using the K-Means algorithm to obtain a distance class set {D1, D2, ..., D m }, and calculate the mean Euclidean distance of each category respectively, and then calculate the local curiosity reward, as shown in formula (13): Among them, c1 and c2 are hyperparameters, K and M are the maximum value of the set reward limit, Represents the mean of the similarity class after clustering; Reward for local curiosity; It represents the average value of the difference between all Euclidean distances less than the threshold and the threshold, and min represents the minimum value; Robot training is divided into exploration, exploration and exploitation stages. Since the local curiosity reward is a reward constructed within a single round and cannot adapt to different stages of robot training, an adaptive greed factor is added to actively adjust the size of the local curiosity reward according to the degree of interaction between the robot and the environment, as shown in formula (14): Where conv represents the number of times the target point is successfully reached, episode represents the number of rounds, and d g Represents the current distance to the target point, d G Represents the distance between the starting point and the target point; e represents the natural logarithm; represents the adaptive greed factor; Therefore, the overall curiosity reward for S6: store the experience quadruple into the experience pool and regularly update the network parameters of the neural network model; Add the external reward and the curiosity reward to get the robot's action a t Rewards received t In order to make full use of the sampled data and reduce the correlation between the data, the experience replay technology is used to convert the state, action, reward and the state of the next moment into a four-tuple {s t ,a t ,r t ,s t+1 }Stored in the experience replay pool, the experience is continuously stored until the experience replay pool reaches the preset threshold; If the experience replay pool reaches a preset threshold, the data in the experience replay pool is randomly sampled. After batch random sampling from the experience replay pool, the Critic network is updated by minimizing the loss function: L represents the loss function of the Critic network, N represents the number of sampled data, and y i represents the target Q value of the state-action at the previous moment, Q(s i ,a i |θ Q ) represents the Q value function of the current state-action, θ Q Represents the parameters of the Critic network, i represents the i-th sampled data, s i represents the state in the i-th sample data, a i represents the action in the i-th sample data; where y i =r i +γQ'(s i+1 ,μ'(s i+1 |θ μ' )|θ Q' ), calculated through the Actor target network and the Critic target network; r i represents the reward in the i-th sampled data, γ represents the discount factor, which is used to measure the importance of future rewards and is set artificially, and Q' represents the reward in s i+1 The state is the Q value calculated by the Critic target network when the Actor target network selects the action, μ' represents the action selected by the Actor target network, θ μ Represents the parameters of the Actor target network, θ Q′ Represents the parameters of the Critic target network; Next, update the Actor network through policy gradient: in, represents the policy gradient, J represents the performance of the policy, that is, the expected cumulative return, and the parameters of the policy network are updated by maximizing the gradient of J so that the policy can obtain a higher cumulative return; N represents the number of sampled data, represents the gradient of the value function of action a, μ represents the action output by the Actor network, that is, the strategy function, i represents the i-th sampled data, represents the gradient of the policy function parameter θ, θ μ Represents the parameters of the Actor network; Then, to ensure the stability of learning, the Actor target network and the Critic target network are updated through sampling "soft update": i Q' ←——tth Q +(1-τ)θ Q' (24) i μ' ←——tth μ +(1-τ)θ μ' τ represents the soft update rate, which is a hyperparameter with a value range of 0 to 1. The closer τ is to 0, the slower the target network is updated; the closer τ is to 1, the faster the target network is updated. S7: Repeat steps S2 to S6.