Unmanned ship adaptive navigation method and system based on hierarchical reinforcement learning and long-short term memory network, electronic equipment and storage medium
Through hierarchical reinforcement learning and long and short-term memory networks, high-level decision-making modules and low-level decision-making modules are constructed, combined with deep reinforcement learning algorithms, to solve the problem of insufficient navigation stability and reliability of unmanned boats in complex environments, and achieve adaptive The selection of navigation strategies improves navigation performance.
Patent Information
- Application Number
- CN202410727285.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-01
AI Technical Summary
Existing unmanned boat systems lack navigation stability and reliability in complex environments, mainly because a single navigation strategy cannot effectively cope with dynamic obstacles and environmental changes, resulting in insufficient dynamic performance and high control difficulty.
An adaptive navigation method based on hierarchical reinforcement learning and long-short-term memory network is used to reduce the dimension of lidar data through minimum pooling, construct the Markov decision-making process and reward function of the high-level decision-making module and the low-level decision-making module, and combine with deep reinforcement learning The algorithm trains the navigation strategy and realizes end-to-end control instruction generation.
It improves the adaptability of the unmanned ship to environmental changes, enhances the robustness and generalization of the navigation strategy, enables it to adaptively select the most appropriate navigation strategy in complex environments, and improves the stability and reliability of navigation.
Smart Images

Figure CN118730109A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned boat navigation, and specifically relates to an unmanned boat adaptive navigation method, system, electronic equipment and storage medium based on hierarchical reinforcement learning and long short-term memory network. Background Art
[0002] As an advanced intelligent water equipment with autonomous navigation capabilities, unmanned surface vessels have shown great application potential in many fields such as civil, military and ocean exploration. Its core technologies involve sensor systems, communication systems, motion control systems and autonomous navigation systems. Among them, the autonomous navigation system is the key to ensuring that unmanned surface vessels can complete their operations safely and efficiently.
[0003] The main task of autonomous navigation of unmanned boats is to drive unmanned surface boats to reach the target point safely and efficiently in a complex and unknown environment through optimized actions and decisions; but since the existing unmanned boat systems mostly adopt under-actuated systems, the dimension of their actual control input is smaller than the dimension of the unmanned boat's motion space, which easily leads to insufficient dynamic performance of the unmanned boat, and it is necessary to achieve operations such as heading keeping and path tracking through coupled motion; in the actual process of autonomous navigation, unmanned boats also need to deal with various complex dynamic obstacles and changeable natural environment interference, and existing unmanned boats mostly adopt a single navigation strategy. These external factors will greatly increase the difficulty of unmanned boat navigation control and affect the stability and reliability of existing unmanned boat navigation. Summary of the invention
[0004] In order to solve the problem that the existing single navigation strategy of unmanned boats is insufficient in environmental adaptability, the present invention provides an unmanned boat adaptive navigation method, system, electronic device and storage medium based on hierarchical reinforcement learning and long short-term memory network, which can adaptively adjust the navigation strategy according to the environmental state.
[0005] Based on the above purpose, the present invention is achieved through the following technical solutions:
[0006] A first aspect of the present invention provides an unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, comprising the following steps:
[0007] S1. Use the minimum pooling method to reduce the dimension of lidar data.
[0008] S2. Calculate the state information of the unmanned boat according to the target point coordinate information and the position and speed data of the unmanned boat.
[0009] S3. Collect the top N including the current time step The perception data of each time point is organized into a sequence vector.
[0010] S4. Use long short-term memory network to encode the sequence data of the lidar and the unmanned boat’s own status to extract the timing features and state features in the data.
[0011] S5. Based on the unmanned boat adaptive navigation problem, a Markov decision process and reward function of the high-level decision module are constructed, and the high-level decision module is used to output the navigation skill vector according to the encoded observation data.
[0012] S6. Based on the adaptive navigation problem of the unmanned boat, a Markov decision process and reward function of the low-level decision module are constructed, and the low-level decision module is used to control the unmanned boat to execute specific motion instructions according to the encoded observation data and the skill vector output by the high-level decision module.
[0013] S7. Based on the Markov decision process and reward function of the low-level decision-making module in S6, a deep reinforcement learning algorithm is used to train a group of unmanned boat navigation strategies with different performance behaviors to obtain the network model of the low-level decision-making module.
[0014] The Markov decision process and reward function of the low-level decision module in S6 are based on the SAC (Soft Actor-Critic) algorithm (Haarnoja T, Zhou A, Abbeel P, et al. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor [J].) to train the network model of the low-level decision module;
[0015] S8, based on the Markov decision process and reward function of the high-level decision-making module in S5 and the low-level decision-making module after training in S7, the network model of the high-level decision-making module is obtained by training with a deep reinforcement learning algorithm.
[0016] Based on the Markov decision process and reward function of the high-level decision modules in S5 and the low-level decision modules after training, the SAC algorithm is used to train the network model of the high-level decision modules;
[0017] S9, based on the network model of the low-level decision-making module in S7 and the network model of the high-level decision-making module in S8, uses the high-level decision-making module to analyze the environmental status at a higher level and provide skill vectors for navigation strategy guidance, while the low-level decision-making module executes appropriate navigation control strategies according to the guidance of the high-level decision-making module.
[0018] According to the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, preferably, in step S1, the minimum pooling method includes the following steps:
[0019] S100: removing radar reflection data generated by the water surface according to the difference in reflectivity between the water surface and the solid obstacle.
[0020] S101, dividing the laser radar detection area into N fan-shaped sub-intervals in the horizontal direction, and selecting the shortest distance from the point cloud to the unmanned boat in each sub-interval as the representative output of the area.
[0021] According to the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, preferably, in step S2, the calculation of the unmanned boat's own state information includes the following steps:
[0022] S200, according to the target point coordinate information (x target ,y target ) and the unmanned boat position data (x, y, φ), and convert the target point coordinate information into polar coordinate information (d goal ,θ goal ), where φ represents the heading angle of the unmanned boat.
[0023] S201. Obtain the motion speed v, angular velocity w, and drift angle β of the unmanned boat according to the position and speed data of the unmanned boat.
[0024] According to the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, preferably, in step S5, constructing the Markov decision process and reward function of the high-level decision module includes the following steps:
[0025] S500, the action space of the high-level decision module is a set of five-element skill vectors Among them, the skill vector a high Serves as the coefficient of the reward function of the low-level decision module.
[0026] S501, the state space of the high-level decision module is the sequence data of the laser radar after the long short-term memory network encoding LSTM ( scan ) and the sequence data of the unmanned boat's own state LSTM ([d goal ,θ goal ,v,w,β]).
[0027] S502, reward function R of high-level decision module high for:
[0028]
[0029] Among them, D reach Indicates the threshold for the unmanned boat to reach the target point.
[0030] According to the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, preferably, in step S6, constructing the Markov decision process and reward function of the low-level decision module includes the following steps:
[0031] S600, the action space of the low-level decision module is the actual control instruction of the unmanned boat a high =[n τ , n w ]; where n τ Indicates the propulsion command of the unmanned boat propeller; n w Indicates the steering command of the unmanned boat propeller.
[0032] S601, the state space of the low-level decision module is the sequence data of the laser radar after the long short-term memory network encoding LSTM (0 scan ), the sequence data LSTM of the unmanned boat's own state ([d goal ,θ goal , v, w, β]) and the skill vector a output by the high-level decision module high .
[0033] S602, navigation result reward function R of the low-level decision module result for:
[0034]
[0035] Among them, d obstacles represents the distance from the unmanned boat to any obstacle, D collision Indicates the threshold for collision of unmanned boats.
[0036] S603, process reward function R of low-level decision module process , Navigation Deviation Penalty Speed Reward R v , angular velocity reward R w for:
[0037]
[0038] Where, Δd max Indicates the maximum sailing distance of a single step; Indicates the current heading The deviation value of the target point relative to the unmanned boat's position.
[0039] S604, safety reward function R of low-level decision module saje for:
[0040]
[0041] Among them, D safeIndicates the safety warning distance of the unmanned boat; d scan Represents the distance of any laser point cloud.
[0042] S605. The final reward function R of the low-level decision module is obtained according to the navigation result reward function, process reward function and safety reward function of the low-level decision module:
[0043]
[0044] According to the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, preferably, in step S7, the network model of the low-level decision module includes the following training steps:
[0045] S700, building a reinforcement learning training environment according to the Markov decision process of the low-level decision module in S6.
[0046] S701. Build a deep neural network based on the low-level decision-making module Actor-Critic structure.
[0047] S702. Set the hyperparameters of the deep reinforcement learning algorithm, and add a random skill vector to the observation state at the beginning of each round to form the state space of the low-level decision module to start training; the deep reinforcement learning algorithm is the SAC algorithm.
[0048] S703: Save the trained network model.
[0049] According to the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network, preferably, in step S8, the network model of the high-level decision module includes the following training steps:
[0050] S800, building a reinforcement learning training environment according to the Markov decision process of the high-level decision module in S5.
[0051] S801. Build a deep neural network based on the high-level decision-making module Actor-Critic structure.
[0052] S802, setting the hyperparameters of the deep reinforcement learning algorithm, loading the trained low-level decision module to start training, and using the post-experience playback technology to accelerate the training process; the deep reinforcement learning algorithm is the SAC algorithm.
[0053] S803: Save the trained network model.
[0054] The unmanned boat adaptive navigation system using the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network includes a long short-term perception processing module, a high-level decision module and a low-level decision module, and various forms of reward functions are designed to guide the model training; the long short-term perception processing module uses the long short-term memory network to learn and parse the time series characteristics of the lidar perception data and the unmanned boat's own state information, and then obtains the state input containing time domain information, helping the decision network to better understand and predict complex dynamic environments; the high-level decision module is used to understand and judge the current environmental situation and formulate a macro-strategy vector based on the state input at the current moment, so as to guide the low-level decision module to call the best navigation strategy; the low-level decision module has a set of navigation skills with different strategy tendencies, which are used to deploy appropriate navigation skills based on the current state input and the macro-strategy vector of the high-level decision module to drive the unmanned boat to the target point.
[0055] A second aspect of the present invention provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, any step of the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in the first aspect is implemented.
[0056] The third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer processor, it implements any step in the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in the first aspect.
[0057] Compared with the prior art, the present invention has the following beneficial effects:
[0058] 1. The present invention uses the sensor data carried by the unmanned boat for training. It is not necessary to understand the kinematic model and dynamic model of the unmanned boat. It can directly map the observed state to the control command of the unmanned boat, thereby realizing end-to-end training.
[0059] 2. The long-short-term perception processing module of the present invention processes the original sensor data of the lidar and the unmanned boat from the time domain dimension through the long short-term memory network, and extracts time domain features. By extracting the timing features and state features in the data, it assists the model in understanding and predicting changes in complex dynamic environments, making it convenient for the unmanned boat to adaptively select appropriate navigation strategies according to environmental changes, thereby improving the unmanned boat's ability to adapt to environmental changes and improving the adaptive ability of the unmanned boat's navigation.
[0060] 3. The present invention adopts a hierarchical control framework, which uses a high-level decision-making module to conduct a comprehensive analysis of the observation status, and manages and coordinates the navigation control strategies of a group of low-level decision-making modules, thereby guiding the low-level decision-making modules to deploy appropriate navigation strategies, realizing the learning and adaptive deployment of multiple navigation strategies, enabling the model to adapt to various environmental conditions, enhancing the robustness and generalization of the strategy, and facilitating the unmanned boat to adaptively deploy the most suitable navigation strategy according to the environment.
[0061] 4. The present invention includes a long- and short-time perception processing module, a high-level decision-making module and a low-level decision-making module; the long- and short-time perception processing module uses a minimization method to reduce the dimension of the lidar data, and calculates the state information of the unmanned boat itself according to the target point coordinate information and the unmanned boat posture and speed data, and collects a series of perception data connected in time series to form a sequence vector, so as to use the long- and short-time memory network to extract the time series characteristics and state characteristics in the data; the present invention constructs the Markov decision process and reward function of the high-level decision module based on the functional objectives of the high-level decision module and the unmanned boat adaptive navigation problem; the low-level decision module is constructed based on the functional objectives of the low-level decision module and the unmanned boat adaptive navigation problem. Markov decision process and reward function; then, based on the Markov decision process and reward function of the low-level decision-making module and the high-level decision-making module, a deep reinforcement learning algorithm is used to train the navigation strategy of the unmanned boat; finally, the trained model is mounted on the unmanned boat, and the high-level decision-making module is used to output the navigation skill vector according to the encoded observation data, and the low-level decision-making module is used to control the unmanned boat to execute specific motion instructions according to the encoded observation data and the skill vector output by the high-level decision-making module, so as to facilitate the deployment of appropriate navigation control strategies for the unmanned boat; the present invention realizes the adaptive selection of appropriate navigation strategies according to different environmental state characteristics, and opens up new ideas for the subsequent research on unmanned boat navigation strategies.
[0062] In summary, the present invention can comprehensively analyze the characteristics of the current dynamic environmental state, use the high-level decision-making module to abstractly analyze the environmental state at a higher level, and guide the low-level decision-making module to deploy appropriate navigation control strategies, so that the model can adapt to various environmental conditions and enhance the robustness and generalization of the strategy. The present invention can adaptively select appropriate navigation strategies according to different environmental states, which is convenient for the unmanned boat to achieve the purpose of adaptively adjusting the navigation strategy in complex and unknown water environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a schematic diagram of the architecture of the present invention;
[0064] Figure 2 Schematic diagram of the minimum optimization method;
[0065] Figure 3 Schematic diagram of the hierarchical decision-making architecture. DETAILED DESCRIPTION
[0066] The present invention is further described in detail below through specific examples, but the scope of the present invention is not limited thereto.
[0067] Example 1
[0068] An adaptive navigation method for unmanned boats based on hierarchical reinforcement learning and long short-term memory network, the architecture of which is as follows Figure 1 As shown, the following steps are included:
[0069] S1. Use the minimum pooling method to reduce the dimension of lidar data.
[0070] In this embodiment, a VLP-16 laser radar is used to detect the surrounding area of the unmanned boat within a horizontal range of 360°, a vertical range of ±15°, and a distance of 100m.
[0071] The minimum optimization method comprises the following steps: Figure 2 As shown:
[0072] S100: removing radar reflection data generated by the water surface according to the difference in reflectivity between the water surface and the solid obstacle.
[0073] S101, dividing the laser radar detection area into N fan-shaped sub-intervals in the horizontal direction, and selecting the shortest distance from the point cloud to the unmanned boat in each sub-interval as the representative output of the area.
[0074] S2. Calculate the state information of the unmanned boat according to the target point coordinate information and the position and speed data of the unmanned boat.
[0075] Use the GPS and IMU sensors on the unmanned boat to obtain the coordinates, attitude, speed, acceleration and other information of the unmanned boat
[0076] The calculation of the state information of the unmanned boat itself includes the following steps:
[0077] S200, according to the target point coordinate information (x target ,y target ) and the unmanned boat position data (x, y, φ), and convert the target point coordinate information into polar coordinate information (d goal ,θ goal ), where φ represents the heading angle of the unmanned boat.
[0078] S201. Obtain the motion speed v, angular velocity w, and drift angle β of the unmanned boat according to the position and speed data of the unmanned boat.
[0079] S3. Collect the perception data of the previous Nstep time points including the current moment and organize them into a sequence vector.
[0080] Specifically, in the process of environmental interaction of reinforcement learning, this embodiment captures and stores a series of laser radar and unmanned boat status data that are closely connected in time sequence. In this embodiment, the sequence length N step =5, the sampling control frequency is 10Hz.
[0081] S4, the long-short-term perception processing module uses a long-short-term memory network to encode the sequence data of the lidar and the unmanned boat's own status to extract the time series features and status features in the data.
[0082] Specifically, this embodiment uses long short-term memory units to encode the sequence data of the laser radar and the unmanned boat's own status respectively, and splices the encoded data as the status input of the subsequent decision-making module.
[0083] S5. Construct the Markov decision process and reward function of the high-level decision module based on the unmanned boat adaptive navigation problem, such as Figure 3 As shown, a high-level decision module is used to output a navigation skill vector according to the encoded observation data; the high-level decision module is responsible for outputting a navigation skill vector according to the encoded observation data.
[0084] Specifically, this embodiment establishes a Markov decision process and a reward function of the high-level decision module according to the functional objectives of the high-level decision module. Constructing the Markov decision process and the reward function of the high-level decision module includes the following steps:
[0085] S500, define the action space of the high-level decision module as a set of five-element skill vectors a high = Among them, the skill vector a high As the coefficient of the reward function of the low-level decision module, the skill vector a high The value range of each element of is [0, 0.2].
[0086] S501, define the state space of the high-level decision module as the sequence data of the laser radar after the long short-term memory network encoding LSTM ( scan ) and the sequence data of the unmanned boat's own state LSTM ([d goal ,θ goal ,v,w,β]).
[0087] S502, define the reward function R of the high-level decision module high for:
[0088]
[0089] Among them, D reach Indicates the threshold value of the unmanned boat reaching the target point. In this embodiment, the target arrival threshold D reach is 5m.
[0090] S6. Construct the Markov decision process and reward function of the low-level decision module based on the unmanned boat adaptive navigation problem, such as Figure 3 As shown, the low-level decision module controls the unmanned boat to execute specific motion instructions based on the encoded observation data and the skill vector output by the high-level decision module; the low-level decision module controls the unmanned boat to execute specific motion instructions based on the encoded observation data and the skill vector output by the high-level decision module.
[0091] Specifically, this embodiment establishes a Markov decision process and a reward function of the low-level decision module according to the functional objectives of the low-level decision module. Constructing the Markov decision process and the reward function of the low-level decision module includes the following steps:
[0092] S600, define the action space of the low-level decision module as the actual control instruction a of the unmanned boat high =[n τ , n w ];
[0093] Among them, n τ Indicates the propulsion command of the unmanned boat propulsion system, n τ The value range of n is [O, 1]; w Indicates the steering command of the unmanned boat propeller, n w The value range is [-30°, +30°].
[0094] S601, define the state space of the low-level decision module as the sequence data of the laser radar after the long short-term memory network encoding LSTM (0 scan ), the sequence data LSTM of the unmanned boat's own state ([d goal ,θ goal , v, w, β]) and the skill vector a output by the high-level decision module high .
[0095] S602: Define the navigation result reward function R of the low-level decision module result for:
[0096]
[0097] Among them, d obstacles represents the distance from the unmanned boat to any obstacle, D collision Indicates the threshold for the collision of the unmanned boat. In this embodiment, the collision threshold D collision is 3m.
[0098] S603, define the process reward function R of the low-level decision module process , Navigation Deviation Penalty Speed Reward R v , angular velocity reward Rw for:
[0099]
[0100] Where, Δd max Indicates the maximum sailing distance of a single step, the maximum sailing distance of a single step Δd max In this embodiment, it is 0.25m; Indicates the current heading The deviation value of the target point relative to the unmanned boat's position.
[0101] S604. Define the safety reward function R of the low-level decision module safe for:
[0102]
[0103] Among them, D safe Indicates the safety warning distance of the unmanned boat. In this embodiment, the maximum safety warning distance D of the unmanned boat is set safe 25m;d scan Represents the distance of any laser point cloud.
[0104] S605, the final reward function R of the low-level decision module is:
[0105]
[0106] S7. Based on the Markov decision process and reward function of the low-level decision-making module in S6, a deep reinforcement learning algorithm is used to train a group of unmanned boat navigation strategies with different performance behaviors to obtain the network model of the low-level decision-making module.
[0107] The network model of the low-level decision module includes the following training steps:
[0108] S700, building a reinforcement learning training environment according to the Markov decision process of the low-level decision module in S6.
[0109] S701. Build a deep neural network based on the low-level decision-making module Actor-Critic structure to train the unmanned boat navigation strategy; both Actor and Critic are multi-layer perceptrons, and the input is the state in S601, where the skill vector is randomly given at the beginning of each round of training, and the output is the control command and state value in S600.
[0110] S702, set the hyperparameters of the deep reinforcement learning algorithm. The hyperparameters are Adam as the optimizer, Relu as the activation function, and a learning rate of 10 -4 , experience replay batch size is 512, reward discount factor is 0.99, experience replay pool size is 10 6, the weighted average parameter of the target network is 0.01; and at the beginning of each round, a random skill vector is added to the observed state to form the state space of the low-level decision module to start training; the deep reinforcement learning algorithm is the SAC algorithm.
[0111] S703. When the rewards during training and the rewards during evaluation are both stable, save the trained network model.
[0112] S8, based on the Markov decision process and reward function of the high-level decision-making module in S5 and the low-level decision-making module after training in S7, the network model of the high-level decision-making module is obtained by training with a deep reinforcement learning algorithm.
[0113] Specifically, this embodiment designs a neural network of a high-level decision module and trains the high-level decision module to output a navigation strategy guidance vector according to the environmental state; the network model of the high-level decision module includes the following training steps:
[0114] S800, building a reinforcement learning training environment according to the Markov decision process of the high-level decision module in S5.
[0115] S801. Build a deep neural network based on the Actor-Critic structure of the high-level decision-making module to train the high-level decision-making module; both Actor and Critic are multi-layer perceptrons, the input is the state in S501, and the output is the skill vector and state value in S500.
[0116] S802, setting the hyperparameters of the deep reinforcement learning algorithm, and loading the trained low-level decision module to start training, so as to actually drive the unmanned boat to move according to the output of the high-level decision module, and at the same time use the post-experience playback technology to accelerate the training process; the deep reinforcement learning algorithm is the SAC algorithm.
[0117] S803. When the rewards during training and the rewards during evaluation are both stable, save the trained network model.
[0118] S9. Based on the network model of the low-level decision-making module in S7 and the network model of the high-level decision-making module in S8, the above network models are deployed on the unmanned boat. The high-level decision-making module is used to analyze the environmental status at a higher level and provide skill vectors for navigation strategy guidance, while the low-level decision-making module executes appropriate navigation control strategies according to the guidance of the high-level decision-making module.
[0119] An unmanned boat adaptive navigation system using the above-mentioned unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network includes a long and short-term perception processing module, a high-level decision module and a low-level decision module, and various forms of reward functions are designed to guide the model training; the long and short-term perception processing module uses the long and short-term memory network to learn and parse the time series characteristics of the lidar perception data and the unmanned boat's own state information, and then obtains the state input containing time domain information, helping the decision network to better understand and predict complex dynamic environments; the high-level decision module is used to understand and judge the current environmental situation and formulate a macro-strategy vector based on the state input at the current moment, so as to guide the low-level decision module to call the best navigation strategy; the low-level decision module has a set of navigation skills with different strategy tendencies, which are used to deploy appropriate navigation skills based on the current state input and the macro-strategy vector of the high-level decision module to drive the unmanned boat to the target point.
[0120] Example 2
[0121] An electronic device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, any step of the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in Example 1 is implemented.
[0122] The hardware of the electronic device in this embodiment also includes a GPU, a display buffer memory, a RAMD / A converter, and a heat sink that cooperate with the processor; the GPU is responsible for processing the graphic display of the electronic device, providing image rendering and acceleration functions, and using its parallel computing advantages to accelerate the processing of large-scale data-intensive tasks such as deep learning training and scientific computing.
[0123] Further, the process of the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network described in Example 1 can be implemented as a computer software program. For example, this embodiment includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method. In such an embodiment, the computer program can be downloaded and installed from the network, and / or installed from a removable medium. When the computer program is executed by the processor, the above functions defined in the method of the present application are executed.
[0124] Example 3
[0125] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any step in an unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in Example 1.
[0126] The computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0127] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as python, C++, and also conventional procedural programming languages or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0128] The computer-readable storage medium of this embodiment can be accelerated by hardware such as a GPU, and the parallel computing advantages of the GPU can be used to accelerate the processing of any step in the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in Example 1.
[0129] In summary, the present invention effectively overcomes the deficiencies in the prior art and has a high industrial utilization value. The above embodiments serve to illustrate the substantive content of the present invention, but do not limit the protection scope of the present invention. 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 protection scope of the technical solution of the present invention.
[0130] The above embodiments are specific implementation methods of the present invention, but the implementation methods of the present invention are not limited to the above embodiments. Any other combination, change, modification, substitution and simplification that does not exceed the design concept of the present invention shall fall within the protection scope of the present invention.
Claims
1. An adaptive navigation method for unmanned boats based on hierarchical reinforcement learning and long short-term memory networks. It is characterized in that The following steps are involved: S1, using the minimum pooling method to reduce the dimension of the lidar data; S2. Calculate the state information of the unmanned boat according to the coordinate information of the target point and the position and speed data of the unmanned boat; S3. Collect the top N including the current time step The perception data of each time point is organized into a sequence vector; S4. Use long short-term memory network to encode the sequence data of the laser radar and the unmanned boat's own state to extract the time series features and state features in the data; S5. Construct a Markov decision process and reward function of a high-level decision module based on the adaptive navigation problem of the unmanned boat, and use the high-level decision module to output a navigation skill vector according to the encoded observation data; S6. Construct a Markov decision process and reward function of the low-level decision module based on the adaptive navigation problem of the unmanned boat, and use the low-level decision module to control the unmanned boat to execute specific motion instructions according to the encoded observation data and the skill vector output by the high-level decision module; S7, based on the Markov decision process and reward function of the low-level decision module in S6, a deep reinforcement learning algorithm is used to train a group of unmanned boat navigation strategies with different performance behaviors to obtain the network model of the low-level decision module; S8, based on the Markov decision process and reward function of the high-level decision module in S5 and the low-level decision module after training in S7, a network model of the high-level decision module is obtained by training with a deep reinforcement learning algorithm; S9, based on the network model of the low-level decision-making module in S7 and the network model of the high-level decision-making module in S8, uses the high-level decision-making module to analyze the environmental status at a higher level and provide skill vectors for navigation strategy guidance, while the low-level decision-making module executes appropriate navigation control strategies according to the guidance of the high-level decision-making module.
2. The unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network according to claim 1, It is characterized in that In step S1, the minimum pooling method includes the following steps: S100, removing radar reflection data generated by the water surface according to the difference in reflectivity between the water surface and the solid obstacle; S101, dividing the laser radar detection area into N fan-shaped sub-intervals in the horizontal direction, and selecting the shortest distance from the point cloud to the unmanned boat in each sub-interval as the representative output of the area.
3. The unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network according to claim 1, It is characterized in that In step S2, the calculation of the state information of the unmanned boat includes the following steps: S200, according to the target point coordinate information (x target ,y target ) and the unmanned boat position data (x, y, φ), and convert the target point coordinate information into polar coordinate information (d goal ,λ goal ), where φ represents the heading angle of the unmanned boat; S201. Obtain the motion speed v, angular velocity w, and drift angle β of the unmanned boat according to the position and speed data of the unmanned boat.
4. The unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network according to claim 1, It is characterized in that In step S5, constructing the Markov decision process and reward function of the high-level decision module includes the following steps: S500, the action space of the high-level decision module is a set of five-element skill vectors Among them, the skill vector a high As the coefficient of the reward function of the low-level decision module; S501, the state space of the high-level decision module is the sequence data of the laser radar after the long short-term memory network encoding LSTM ( scan ) and the sequence data of the unmanned boat's own state LSTM ([d goal ,θ goal ,v,w,β]); S502, reward function R of high-level decision module high for: Among them, D reach Indicates the threshold for the unmanned boat to reach the target point.
5. The unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network according to claim 4, It is characterized in that In step S6, constructing the Markov decision process and reward function of the low-level decision module includes the following steps: S600, the action space of the low-level decision module is the actual control instruction of the unmanned boat a high =[n τ ,n w ]; Among them, n τ Indicates the propulsion command of the unmanned boat propeller; n w Indicates the steering command of the unmanned boat propeller; S601, the state space of the low-level decision module is the sequence data of the laser radar after the long short-term memory network encoding LSTM ( scan ), the sequence data LSTM of the unmanned boat's own state ([d goal ,β goal ,v,w,β]) and the skill vector a output by the high-level decision module high ; S602, navigation result reward function R of the low-level decision module result for: Among them, d obstacles represents the distance from the unmanned boat to any obstacle, D collision It indicates the threshold value of collision of unmanned boats; S603, process reward function R of low-level decision module process , Navigation Deviation Penalty Speed Reward R v , angular velocity reward R w for: Where, Δd max Indicates the maximum sailing distance of a single step; Indicates the current heading Deviation value from the target point relative to the unmanned boat’s orientation; S604, safety reward function R of low-level decision module safe for: Among them, D safe Indicates the safety warning distance of the unmanned boat; d scan Represents the distance of any laser point cloud; S605, the final reward function R of the low-level decision module is:
6. The unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network according to claim 1, It is characterized in that In step S7, the network model of the low-level decision module includes the following training steps: S700, building a reinforcement learning training environment according to the Markov decision process of the low-level decision module in S6; S701. Build a deep neural network based on the low-level decision-making module Actor-Critic structure; S702, setting the hyperparameters of the deep reinforcement learning algorithm, and adding a random skill vector to the observation state at the beginning of each round to form the state space of the low-level decision module to start training; the deep reinforcement learning algorithm is the SAC algorithm; S703: Save the trained network model.
7. The unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network according to claim 1, It is characterized in that In step S8, the network model of the high-level decision module includes the following training steps: S800, building a reinforcement learning training environment according to the Markov decision process of the high-level decision module in S5; S801. Build a deep neural network based on the Actor-Critic structure of high-level decision-making modules; S802, setting the hyperparameters of the deep reinforcement learning algorithm, loading the trained low-level decision module to start training, and using the post-experience playback technology to accelerate the training process; the deep reinforcement learning algorithm is the SAC algorithm; S803: Save the trained network model.
8. An unmanned boat adaptive navigation system using the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in any one of claims 1 to 7, It is characterized in that It includes a long- and short-term perception processing module, a high-level decision module and a low-level decision module, and designs various forms of reward functions to guide model training; the long- and short-term perception processing module uses a long- and short-term memory network to learn and analyze the time series characteristics of the laser radar perception data and the state information of the unmanned boat itself, and then obtains the state input containing time domain information, which helps the decision network to better understand and predict complex dynamic environments; The high-level decision-making module is used to understand and judge the current environmental situation and formulate a macro-strategy vector based on the current state input to guide the low-level decision-making module to call the best navigation strategy; the low-level decision-making module has a set of navigation skills with different strategic tendencies, which are used to deploy appropriate navigation skills based on the current state input and the macro-strategy vector of the high-level decision-making module to drive the unmanned boat to the target point.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, it implements any step in the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a computer processor, implements any step in the unmanned boat adaptive navigation method based on hierarchical reinforcement learning and long short-term memory network as described in any one of claims 1-7.
Citation Information
Cited By
Unmanned ship autonomous navigation method and decision making system based on laser radar real-time perception
CN120293142A
An unmanned ship autonomous navigation method and decision system based on real-time perception of laser radar
CN120293142B
Unmanned aerial vehicle autonomous navigation system based on hierarchical reinforcement learning strategy
CN120800385A
Multi-unmanned ship vector propeller game control method based on hierarchical multi-agent reinforcement learning
CN121386387A
A multi-unmanned ship vector propeller game control method based on hierarchical multi-agent reinforcement learning
CN121386387B
